summaryrefslogtreecommitdiff
path: root/gdb/linespec.c
Commit message (Collapse)AuthorAgeFilesLines
* gdb/ChangeLog:Jim Blandy2002-04-051-1/+1
| | | | | | | | | | | | | | | * stack.c (get_selected_block): Add new argument `addr_in_block', used to return the exact code address we used to select the block, not just the block. * blockframe.c (get_frame_block, get_current_block): Same. * frame.h (get_frame_block, get_current_block, get_selected_block): Update declarations. * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c, linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed. gdb/mi/ChangeLog: * mi-cmd-stack.c (list_args_or_locals): Pass new arg to get_frame_block. (See entry in gdb/ChangeLog.)
* 2002-03-22 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-03-221-1/+1
| | | | | | | | | | | | | | | | * symtab.h (lookup_block_symbol): Add mangled_name argument to prototype. * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol with new mangled_name argument. * linespec.c (decode_line_1): Likewise. * valops (value_of_this): Likewise. * symtab.c (lookup_transparent_type): Likewise. (lookup_symbol_aux): Likewise. Accept new mangled_name argument. (lookup_symbol): If we are given a mangled name, pass it down to lookup_symbol_aux. (lookup_block_symbol): If we are given a mangled name to check against, only return symbols which match it.
* Revert accidental commit.Daniel Jacobowitz2002-02-141-1/+1
|
* 2002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-02-141-1/+34
| | | | | Fix part of PR gdb/267. * linespec.c (find_methods): Handle constructors specially for now.
* * utils.c (error_begin): Make static.Andrew Cagney2002-02-021-25/+31
| | | | | | | | | | | * defs.h (error_begin): Delete declaration. * linespec.c (cplusplus_error): Replace cplusplus_hint. (decode_line_1): Use cplusplus_error instead of error_begin, cplusplus_hint and return_to_top_level. * coffread.c (coff_symfile_read): Use error instead of error_begin and return_to_top_level. * infrun.c (default_skip_permanent_breakpoint): Ditto.
* Approved by Jim Blandy:Fred Fish2001-12-101-1/+1
| | | | | | | | | | | 2001-12-10 Fred Fish <fnf@redhat.com> * arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than zero in args to lookup_minimal_symbol. * linespec.c (decode_line_1): Ditto. * i386-linux-tdep.c (skip_hurd_resolver): Ditto. * minsyms.c (find_stab_function_addr): Ditto. * symfile.c (simple_read_overlay_table): Ditto. (simple_read_overlay_region_table): Ditto.
* s/value_ptr/struct value */Andrew Cagney2001-11-101-1/+1
|
* (Changes from Daniel Berlin, with revisions by Jim Blandy.)Jim Blandy2001-04-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Abstract out operations specific to particular C++ ABI's, and invoke them through a function table. This removes the C++ ABI dependencies scattered throughout the code, and allows us to cleanly add support for new C++ ABI's. * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files. * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c, jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c: #include "cp-abi.h". These files all use functions now declared there. * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P): Deleted. These services are now provided by functions declared in cp-abi.h. * value.h (value_rtti_type, value_virtual_fn_field): Same. * values.c (value_virtual_fn_field): Same, for this definition. * valops.c (value_rtti_type): Same. * c-typeprint.c (c_type_print_base): Use the functions from "cp-abi.h", instead of the old macros, or hard-coded ABI-specific tests. * dbxread.c (record_minimal_symbol): Same. * gdbtypes.c (get_destructor_fn_field, virtual_base_index, virtual_base_index_skip_primaries): Same. * jv-typeprint.c (java_type_print_base): Same. * linespec.c (find_methods, decode_line_1): Same. * symtab.c (gdb_mangle_name): Same. * Makefile.in (SFILES): Add the new .c files mentioned above. (cp_abi_h): New variable. (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o. (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets. (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o, jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add dependency on $(cp_abi_h).
* * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB onlyAndrew Cagney2001-03-231-29/+0
| | | | | | | compiles using an ISO-C compiler. (MALLOC_INCOMPATIBLE): Ditto. * linespec.c (decode_line_1): Delete hack to work around HPPA_COMPILER_BUG.
* * gdb/linespec.c (find_methods): Whitespace differences aren'tJim Blandy2001-03-211-1/+1
| | | | | | | | significant in *un*mangled method names. Use strcmp_iw to compare them, not STREQ. (Fix from Daniel Berlin.) * gdb/testsuite/gdb.c++/userdef.exp: Check that GDB tolerates whitespace in unmangled operator names.
* * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, ratherJim Blandy2001-03-201-9/+5
| | | | | than asking for sym_class's type; that's circuitous. Remove sym_class, since the last use of it is gone.
* 2001-03-15 Martin Hunt <hunt@redhat.com>Martin Hunt2001-03-151-6/+4
| | | | | * linespec.c (decode_line_1): Remove trailing quote when parsing double quotes.
* * linespec.c (decode_line_1): Skip argptr over a leadingKeith Seitz2001-03-141-2/+2
| | | | double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+2
|
* Replace free() with xfree().Kevin Buettner2000-12-151-4/+4
|
* 2000-11-30 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2000-12-011-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * linespec.h: New file. Declarations for linespec.c. * linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c, symtab.c, tracepoint.c: Include the above. * completer.c: New file. Line completion stuff for GDB. (get_gdb_completer_word_break_characters, get_gdb_completer_quote_characters): New functions. Accessors for useful completer internal data. (filename_completer, line_completion_function, skip_quoted): Moved here from top.c. * completer.h: New file. Declarations for the above. * linespec.c (decode_line_1): Use get_gdb_completer_word_break_characters and get_gdb_completer_quote_characters. * top.c: Include completer.h. (filename_completer, line_completion_function, skip_quoted): Moved to completer.c. * corefile.c, exec.c, source.c, symfile.c, linespec.c: Include completer.h. * Makefile.in (SFILES): Add completer.c. (COMMON_OBS): Add completer.o. (completer.o): New target. (linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o, symtab.o, tracepoint.o): Add linespec.h to dependencies list. (corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h to dependencies list.
* * symtab.c (no_symtab_msg): Remove definition.Jim Blandy2000-11-191-4/+2
| | | | | | | | (sources_info): Replace use of no_symtab_msg with the string itself. * linespec.c (no_symtab_msg): Remove declaration. (decode_line_1): Replace uses of no_symtab_msg with the string itself.
* 2000-11-10 Fernando Nasser <fnasser@totem.toronto.redhat.com>Fernando Nasser2000-11-101-0/+1266
* symtab.c (decode_line_1, total_number_of_methods, find_methods, build_command_line_spec, find_toplevel_char, decode_line_2): Move to linespec.c. * linespec.c: New file. Routines that handle linespecs, formerly in symtab.c. * symtab.h: Export find_line_symtab and find_function_start_sal, * Makefile.in: Add linespec.c.