aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
AgeCommit message (Collapse)AuthorFilesLines
2001-03-24* stabsread.c (read_cpp_abbrev): Properly construct the names ofJim Blandy1-1/+6
virtual function table pointer fields.
2001-03-21* frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macroAndrew Cagney1-6/+9
already defined. From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>: * stabsread.c (define_symbol): A parameter ('R'), a local ('r'), or a reference ('a') can be in a pseudo register. * infcmd.c (do_registers_info): Must take into account the pseudo registers to print their value. (registers_info): Likewise. * stack.c (frame_info): Likewise. * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2000-12-15Replace free() with xfree().Kevin Buettner1-11/+11
2000-11-10* stabsread.c (read_range_type): Properly construct complexJim Blandy1-4/+8
type nodes.
2000-10-262000-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-0/+21
* stabsread.c (define_symbol): Update comment. 2000-10-26 Pierre Muller <muller@ics.u-strasbg.fr> * stabsread.c (define_symbol): Set the type_name of the type of the new symbol to the symbol name for type symbol, if the language is Pascal.
2000-10-24Protoization.Kevin Buettner1-17/+5
2000-07-30Protoization.Kevin Buettner1-155/+65
2000-05-28PARAMS removal.Kevin Buettner1-66/+50
2000-05-04Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-3/+3
* objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Define as functions of OBJFILE. Add sect_index_text, sect_index_data, sect_index_rodata, sect_index_bss to objfile structure. * gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Remove. * objfiles.c (allocate_objfile): Initialize sect_index_{text,data,bss,rodata} to -1, for error detection. * symfile.c (default_symfile_offsets): Initialize sect_index_{text,data,bss,rodata} from bfd information. * xcoffread.c (xcoff_symfile_offsets): Ditto. * somread.c (som_symfile_offsets): Initialize sect_index_{text,data,bss,rodata}. * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c, mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h, remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c, stabsread.c, symfile.c, xcoffread.c: Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the current objfile. * xcoffread.c: Add new field objfile to find_targ_sec_arg.
2000-04-22Convert REG_STRUCT_HAS_ADDR to multi-arch. Use REG_STRUCT_HAS_ADDR_PAndrew Cagney1-6/+4
in conversion.
2000-02-08 Clean up compiler warnings:Jim Kingdon1-1/+1
* bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c, stack.c, valprint.c: Change variables to unsigned. * bcache.c: Rearrange to avoid warnings about variables not being set. * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h rather than declaring print_max and repeat_count_threashold ourselves (incorrectly). * valprint.h: Do declare repeat_count_threashold. * ch-exp.c: Use default case for internal error. * findvar.c: Don't omit argument type. * symtab.c: Remove unused variable.
1999-12-07import gdb-1999-12-06 snapshotJason Molenda1-9/+9
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-9/+9
1999-08-23import gdb-1999-08-23 snapshotJason Molenda1-1/+2
1999-08-16import gdb-1999-08-16 snapshotJason Molenda1-1/+13
1999-08-02import gdb-1999-08-02 snapshotJason Molenda1-7/+19
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-1031/+1067
1999-07-07import gdb-1999-07-07 pre reformatJason Molenda1-0/+2
1999-05-25import gdb-1999-05-25 snapshotJason Molenda1-0/+2
1999-04-26import gdb-19990422 snapshotStan Shebs1-76/+79
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+5207
1999-04-16Initial creation of sourceware repositoryStan Shebs1-5207/+0
1998-10-06 From David Purves <purves@apogee.com>:Stan Shebs1-12/+20
* stabsread.c (rs6000_builtin_type): Create a complex float instead of an error. (read_sun_floating_type): Similarly. (read_range_type): Create a complex float if self_subrange is true.
1998-09-16 * stabsread.c (resolve_symbol_reference): Return 1 on success, 0 onStu Grossman1-5/+6
failure. * (define_symbol): Check return value from resolve_symbol_reference, and drop symbol if it fails.
1998-09-15 * stabsread.c: Make all complaints static.Stu Grossman1-69/+89
* Fix formatting of live range splitting code. * (resolve_symbol_reference define_symbol resolve_live_range): Change errors to complaints so that bad live range symbols won't abort the entire symbol table. Handle errors by aborting just the current symbol. * (ref_init): Goes away. Folded into ref_add(). * (REF_MAP_SIZE): Put parens around parameter so that args like `1 + 2' get handled correctly (yes, this was a real bug). * (ref_add): Remove check for allocation failures. Not necessary when using xrealloc(). Fix pointer arithmetic problem when clearing memory. This and the previous patch prevent random SEGV's when there are lots of live range symbols.
1998-06-28 Improve support for SunPro F77.Peter Schauer1-4/+12
* dbxread.c (end_psymtab, process_one_symbol): Handle minimal symbols with trailing underscore names. * minsyms.c (find_stab_function_addr): Ditto. * dbxread.c (process_one_symbol): Ignore N_ALIAS for now. * partial-stab.h (case N_ALIAS): Ditto. * stabsread.c (read_sun_builtin_type): Handle boolean types.
1998-05-16* Bringing over patches for PR 15870, 15653 from chill/d30v branches.Frank Ch. Eigler1-6/+8
Also, fixed a small third-party sanitize typo in ChangeLog.
1998-05-04* Fixes for chill PR 15681Frank Ch. Eigler1-0/+1
Fri May 1 19:51:32 1998 Frank Ch. Eigler <fche@cygnus.com> * stabsread.c (read_one_struct_field): Do not override supplied bitfield size for a range type value. * gdbtypes.c (create_range_type): For a range with positive lower limit, declare range type as unsigned.
1998-05-01 * breakpoint.c (delete_command): Skip internal breakpoints whenPeter Schauer1-10/+39
all breakpoints are requested. * stabsread.c (define_symbol): Record parameter types from Sunpro function stabs in the TYPE_FIELDS of the function type.
1998-04-23Thu Apr 23 12:27:43 1998 Philippe De Muyter <phdm@macqel.be>Jason Molenda1-1/+2
* symfile.c (simple_overlay_update_1): Do not prefix array address by `&'. * bcache.h (BCACHE_DATA_ALIGNMENT): Ditto. * tracepoint.c (encode_actions): Ditto. * language.c, complaints.c, utils.c (varargs.h): Do not include that file here, it is already included indirectly by defs.h. * dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return value to the appropriate pointer type. * utils.c (floatformat_from_doublest): Ditto. * tracepoint.c (read_actions, _initialize_tracepoint): Ditto. (add_memrange): Likewise with xrealloc return value. * stabsread.c (ref_add): Ditto. * coffread.c (coff_symfile_init): Likewise for xmmalloc return value. * elfread.c (elf_symfile_read): Ditto. * os9kread.c (os9k_symfile_init): Ditto.
1998-04-11Fri Apr 10 22:36:28 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)Jason Molenda1-2/+2
Update support for x86 Solaris 2. * config/i386/tm-i386sol2.h, nm-i386sol2.h: New configuration files for x86 Solaris 2. * config/i386/i386sol2.mt, i386sol2.mh: Use them. * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY): New macro, extract carry flag from a given regset. (IS_STATIC_TRANSFORM_NAME): New macro, check if a symbol name is a SunPro transformed name. * i386-tdep.c (sunpro_static_transform_name): New function to extract the source name from a SunPro transformed name. * inferior.h (procfs_first_available, procfs_get_pid_fd): Add prototypes. * infrun.c (wait_for_inferior): Handle breakpoint hit in signal handler without intervening stop in sigtramp. * procfs.c (procfs_lwp_creation_handler): Use PROCFS_GET_CARRY instead of direct access to the status register. (procfs_get_pid_fd): New function, returns procfs fd for a given pid. * sol-thread.c (ps_lgetLDT): New function, returns LDT for a given lwpid. (sol_find_new_threads): Handle failed libthread_db initialization gracefully. * stabsread.c (define_symbol): Use IS_STATIC_TRANSFORM_NAME to check for a SunPro transformed symbol name.
1998-03-19 * stabsread.c (define_symbol): Don't look for ',' as a LRSJeff Law1-1/+1
indicator.
1997-11-22* valops.c (call_function_by_hand): If the function has aJim Blandy1-4/+14
prototype, convert its arguments as if by assignment. Otherwise, do the usual promotions. * stabsread.c (define_symbol): Set the TYPE_FLAG_PROTOTYPED flag on functions' types when we can; all C++ functions should get it, and if the Sun-style prototype notation is in the stabs, we can notice that.
1997-10-23 * dbxread.c (process_one_symbol): Put back initializationJeff Law1-3/+4
of a variable lost during last change. Don't perform assignment inside conditionals. * stabsread.c (symbol_reference_defined): Return -1 for error/not found. All callers changed appropriately. (define_symbol): Don't perform assignment inside conditionals.
1997-10-22 * mdebugread.c (psymtab_to_symtab_1): Handle new live range stabsJeff Law1-139/+137
entries. * dbxread.c: More comment cleanups. * stabsread.c: Fix various violations of the GNU coding and formatting standards. Update/add comments to make code clearer. (resolve_reference): Delete unused function. (ref_search_val): Remove function. It didn't belong in stabsread.c (resolve_live_range): No longer returns a value. Do not add it to the live range list until the entire range stab has been parsed. (get_substring): Remove duplicate declaration. (resolve_symbol_reference): Now static. Remove unnecessary code to deal with cleanups. (ref_add): Use xrealloc instea of realloc. (process_reference): Reorganize slightly to make clearer. * stabsread.h (resolve_symbol_reference): Remove declaration. (resolve_reference): Likewise. * symtab.c (find_active_alias): New function. (lookup_block_symbol): Use find_active_alias. * symtab.h (struct range_list): Fix dangling struct live_range reference. (ref_search_val): Remove decl. * symtab.h (struct range_list): Renamed from struct live_range. (struct symbol): Remove struct live_range_info substruct. Bring the alias list and range list fields up to the toplevel as "aliases" and "ranges". (SYMBOL_ALIASES, SYMBOL_RANGES): Corresponding changes. (SYMBOL_RANGE_START, SYMBOL_RANGE_END, SYMBOL_RANGE_NEXT): Delete. * stabsread.c: Corresponding changes. Bring first round of cleanups over from r5900 branch.
1997-10-15Bring over from r5900 branch.Jeff Law1-6/+26
1997-09-22 * stabsread.h, symtab.h, dbxread.c, symtab.c, stabsread.c:Dawn Perchik1-28/+13
Fix prototypes. Remove function scoped function declarations.
1997-09-09 * symtab.c, dbxread.c, stabsread.c: Fix up ANSI-C isms. FixJeff Law1-7/+19
some formatting problems.
1997-09-08 * dbxread.c, buildsym.c, symtab.c, stabsread.c: Add support forDawn Perchik1-180/+601
reading stabs extensions for live range information. * stabsread.h, partial-stab.h: Add prototypes for new functions. * symtab.h: Add structure for storing live range information.
1997-08-05 * gdbtypes.h: Re-interpret struct field. Suppport address of static.Per Bothner1-33/+26
Add a bunch of macros. * coffread.c, dwarf2read.c, dwarfread.c, mdebugread.c, stabsread.c: Update to use new macros. * coffread.c, hpread.c, stabsread.c: Remove bugus TYPE_FIELD_VALUE. * value.h, values.c (value_static_field): New function. * cp-valprint.c, valops.c: Modify to use value_static_field.
1997-02-22 * stabsread.c (read_type): Fix handling of template namesPeter Schauer1-9/+15
with template parameters containing `::'. * valops.c (search_struct_field, search_struct_method): Pass correct valaddr parameter to baseclass_offset. Prevent gdb crashes by making sure that the virtual base pointer from an user object still points to accessible memory.
1996-11-02 * irix5-nat.c, osfsolib.c, solib.c (symbol_add_stub): HandlePeter Schauer1-63/+81
missing or zero-sized .text sections properly. * mdebugread.c: Handle scRConst and scSUndefined storage classes. * stabsread.c (scan_file_globals): Try to resolve symbols for shared libraries from the minimal symbol table of the main executable first.
1996-10-13 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,Peter Schauer1-14/+18
follow typedefs before checking TYPE_CODE for structures and unions.
1996-10-07 Replace header_files global by per-objfile field.Per Bothner1-2/+2
* gdb-stabs.h (struct dbx_symfile_info): Add fields header_files, n_header_files, n_allocated_header_files. * stabsread.h (header_files, n_header_files, n_allocated_header_files): Replace externs by macros HEADER_FILES, N_HEADER_FILES, and N_ALLOCATED_HEADER_FILES. * dbxread.c (dbx_symfile_finish): Free HEADER_FILES. (free_header_files, init_header-files): Don't free/init headerfiles. (various functions): Use macros instead of header_files globals. * stabsread.c (various functions): Likewise.
1996-07-31 * stabsread.c (get_substring): Declare second arg as int.Stan Shebs1-30/+34
* remote-es.c: Include gdb_string.h after defs.h.
1996-07-28 * configure.in: Add test for "long long" support.Fred Fish1-13/+7
* configure: Regenerate with autoconf. * acconfig.h: Add CC_HAS_LONG_LONG * config.in: Regenerate with autoheader. * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove. * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove. * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove. * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove (PRINTF_HAS_LONG_LONG): Remove. (FORCE_LONG_LONG): Remove. * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version. * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove (PRINTF_HAS_LONG_LONG): Remove. * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove. (PRINTF_HAS_LONG_LONG): Remove. * config/pa/tm-hppa.h (GET_FIELD): Put parens around subtraction inside shift. Put parens around subtraction in operand of bitwise and. (struct frame_info): Forward declare if __STDC__ defined. (frame_saved_regs): Ditto. (struct value): Ditto. (struct type): Ditto. (struct inferior_status): Ditto. (init_extra_frame_info): Add prototype. (skip_prologue): Ditto. (frameless_function_invocation): Ditto. (frame_chain): Ditto. (frame_chain_valid): Ditto. (saved_pc_after_call): Ditto. (hppa_fix_call_dummy): Ditto. (hppa_push_arguments): Ditto. (pa_do_registers_info): Ditto. (in_solib_call_trampoline): Ditto. (in_solib_return_trampoline): Ditto. (push_dummy_frame): Ditto. * convex-tdep.c (decout): Use print_longest rather than fprintf_filtered. * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set CC_HAS_LONG_LONG. (INT_MIN): Fix so it works correctly when assigned to a long long. * valprint.c (longest_to_int): Rewrite to remove dependence on INT_MIN and INT_MAX. (print_longest): Rewrite the code that falls back to synthesized hex output when LONGEST value is not representable as in a long and printf doesn't support printing long longs. * ch-valprint.c (chill_val_print): Cast 2nd arg of chill_print_type_scalar to LONGEST. chill_print_type_scalar): Make static and add prototype. * hppa-tdep.c (get_field): Ifdef out unused function. (set_field): Ditto. (extract_3): Ditto. (extract_5_store): Ditto. (extract_11): Ditto. (extract_12): Ditto. (deposit_17): Ditto. (extract_14): Convert to static and add prototype. (deposit_14): Ditto. (extract_21): Ditto. (deposit_21): Ditto. (extract_17): Ditto. (extract_5r_store): Ditto. (extract_5R_store): Ditto. (extract_5_load): Ditto. (find_proc_framesize): Ditto. (find_dummy_frame_regs): Ditto. (sign_extend): Ditto. (find_unwind_entry): Add prototype. (find_return_regnum): Ditto. (unwind_command): Ditto. (find_dummy_frame_regs): Add parens around subtraction in operand of bitwise-and. (skip_prologue): Add parens around operands of logical-and inside operand of logical-or. (sign_extend): Add parens around operands of subtraction inside operand of shift. (low_sign_extend): Ditto. * top.c (filename_completer): Convert old style decl of filename_completion_function into prototype. * f-lang.c (patch_common_entries): Ifdef out unused function. * stabsread.c (read_cfront_baseclasses): Remove unused local variable "msg_noterm". (resolve_cfront_continuation): Remove unused local variable "fip". (read_type): Remove unused variable xtypenums. (read_cfront_static_fields): Remove unused variable "i". (read_cfront_static_fields): Remove unused variable "nfields". (read_cfront_member_functions): Add missing comment terminator. (read_cfront_static_fields): Return 1 rather than random value. (read_cfront_baseclasses): Ditto. (read_cfront_baseclasses): Ditto. (read_cfront_baseclasses): Ditto. * somsolib.c (som_solib_create_inferior_hook): Remove unused variable "u". (som_solib_create_inferior_hook): Remove unused variable shadow_contents. (language.h): Add for needed prototypes. (som_solib_sharedlibrary_command): Add prototype. * hpread.c: (hpread_read_array_type): Add prototype. * somread.c (hpread_build_pysmtabs): Add prototype. (hpread_symfile_finish): Ditto. (hpread_symfile_init): Ditto. * hppah-nat.c (fetch_register): Convert old style decl to prototype. (gdbcore.h): Include for needed prototypes. (fetch_register): Remove unused variable "mess". * remote-pa.c (get_offsets): Ifdef out unused function. (remote_start_remote): Remove unused variable "timeout". (boot_board): Add prototype. (reaad_frame): Add prototype. (getpkt): Remove unused variable "bp". (remote_kill): Add prototype. (remote_mourn): Add prototype. (remote_insert_breakpoint): Add prototype. (remote_remove_breakpoint): Add prototype. * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined. * infcmd.c (do_registers_info): Only need prototype if DO_REGISTERS_INFO is not defined. (breakpoint_auto_delete_contents): Only need if CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1996-07-26See gdb ChangeLog entry with header:Fred Fish1-4/+7
Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com> for a rather huge set of changes. I was going to put them here, but it made cvs dump core. :-(
1996-07-08(laying some groundwork for a fix for PR 8443)Fred Fish1-1/+2
* coffread.c (record_minimal_symbol): Don't presave name string on symbol_obstack before passing to prim_record_minimal_symbol. It now handles saving the string itself. * dbxread.c (read_dbx_dynamic_symtab): Ditto. * mipsread.c (read_alphacoff_dynamic_symtab): Ditto. * os9kread.c (record_minimal_symbol): Ditto. * solib.c (solib_add_common_symbols): Ditto. * coffread.c (coff_symtab_read): Don't presave name string on symbol_obstack before passing to prim_record_minimal_symbol_and_info. It now handles saving the string itself. * dbxread.c (record_minimal_symbol): Ditto. * elfread.c (record_minimal_symbol_and_info): Ditto. * dstread.c (record_minimal_symbol): Remove static function that just called prim_record_minimal_symbol with the same args (after change to prim_record_minimal_symbol to do it's own name string saves). * nlmread.c (record_minimal_symbol): Ditto. * somread.c (record_minimal_symbol): Ditto. * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack. (hpread_read_function_type): Ditto. (hpread_process_one_debug_symbol): Ditto. * mdebugread.c (parse_symbol): Ditto. (new_symbol): Ditto. * minsyms.c (prim_record_minimal_symbol_and_info): Ditto. * coffread.c (process_coff_symbol): Use obsavestring to save SYMBOL_NAME, rather than obstack_copy0. * dstread.c (create_new_symbol): Ditto * symfile.c (obconcat): Ditto. * stabsread.c (patch_block_stabs): Ditto. * xcoffread.c (SYMNAME_ALLOC): Ditto. * symfile.c (obsavestring): Update comments * solib.c (solib_add_common_symbols): Remove local var origname.
1996-06-24add type for read_cfront_member_functionsAngela Marie Thomas1-0/+1