aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
AgeCommit message (Collapse)AuthorFilesLines
1994-09-29* xcoffread.c (read_xcoff_symtab): Fix comment for yesterday's change.Jim Kingdon1-7/+6
1994-09-28 * xcoffread.c (read_xcoff_symtab, case C_FILE):Jim Kingdon1-1/+5
Set main_aux before using it.
1994-09-28 * xcoffread.c (read_xcoff_symtab): Process XTY_LD symbols we wereJim Kingdon1-8/+23
ignoring before. But continue to ignore XMC_DS.
1994-09-14 * xcoffread.c (read_xcoff_symtab): Fix obsolete comment aboutJim Kingdon1-4/+7
mst_solib_trampoline. * f-valprint.c (f_val_print): Change cast of valaddr from CORE_ADDR * to char **, since that is how it is used. * dbxread.c (read_dbx_dynamic_symtab): Save copy of symbol names using obsavestring, and pass that to prim_record_minimal_symbol. Having the objfile point to bfd_asymbol_name directly doesn't work if we save and restore a mapped symbol file.
1994-09-03 * objfiles.c (allocate_objfile): Add the newly-created objfile toStan Shebs1-18/+27
the end of the list of objfiles, instead of at the beginning. * xcoffread.c (allocate_include_entry): New function, abstracted from code in record_include_begin. (record_include_begin, record_include_end): Call it. * blockframe.c (reinit_frame_cache): Test inferior_pid instead of target_has_stack to decide whether to create a real stack frame for the cache. * coffread.c (process_coff_symbol) [CXUX_TARGET]: Ignore vendor section. * config/m88k/tm-cxux.h (CXUX_TARGET): Define. * h8300-tdep.c: Include "dis-asm.h" instead of <dis-asm.h>.
1994-05-18Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-2/+3
* xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use the auxent if the symbol's name is ".file". From David Edelsohn <c1dje@watson.ibm.com>.
1994-04-20 * xcoffread.c (xcoff_next_symbol_text): Don't return beforeJim Kingdon1-5/+21
updating raw_symbol and symnum. Return a value in the case where we complained.
1994-04-12Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)Stu Grossman1-1/+1
* xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT, smtyp XTY_LD, sclass XMC_DS (external data segment label). They often have the same names as debug symbols for functions, and confuse lookup_symbol().
1994-03-30 * xcoffread.c (xcoff_next_symbol_text): New function.Jim Kingdon1-3/+3
(read_xcoff_symtab): Set next_symbol_text_func to it. Move raw_symbol outside of read_xcoff_symtab.
1994-03-30 * xcoffread.c (xcoff_next_symbol_text): New function.Jim Kingdon1-13/+26
(read_xcoff_symtab): Set next_symbol_text_func to it. Move raw_symbol outside of read_xcoff_symtab.
1994-03-15 For Sunos 4.x targets, enable gdb to set breakpoints in sharedPeter Schauer1-8/+11
library functions before the executable is run. Retrieve dynamic symbols from stripped executables. * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type. * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols), symtab.c (list_symbols): Handle mst_solib_trampoline. * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline for all targets, remove IBM6000_TARGET dependencies. * dbxread.c (read_dbx_dynamic_symtab): New function. * dbxread.c (dbx_symfile_read): Use it. * dbxread.c (SET_NAMESTRING): Set namestring to "<bad string table index>" instead of "foo" if the string index is corrupt. * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead of mst_unknown. * symtab.c (list_symbols): Take from_tty as parameter and pass it to break_command. Handle mst_file_* minimal symbol types.
1994-02-02 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to useIan Lance Taylor1-1/+1
x_scnlen.l rather than x_scnlen to match corresponding change in coff/internal.h.
1994-02-01 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takesIan Lance Taylor1-5/+6
additional arguments. * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
1994-01-21 * xcoffread.c (xcoff_symfile_read): Make second parameter aJim Kingdon1-6/+2
struct section_offsets *, not a (nonexistent) struct section_offset *.
1994-01-21 * xcoffread.c (read_xcoff_symtab): Make main_aux just a unionJim Kingdon1-14/+14
internal_xcoff_symtab, not an array of one of them. Change lots of "main_aux" to "&main_aux" and so on.
1994-01-21 * coffread.c, xcoffread.c: Include <coff/internal.h>Jim Kingdon1-4/+4
before "symfile.h".
1994-01-20 * xcoffread.c (read_xcoff_symtab): complain() not abort().Jim Kingdon1-6/+10
* xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes a completely gratuitous difference between xcoffread.c and coffread.c).
1994-01-18 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the nameJim Kingdon1-3/+11
from either the symbol name or the auxent. * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename, no longer static.
1994-01-16 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if notJim Kingdon1-18/+19
within_function.
1993-12-27 * minsyms.c, symtab.h (prim_record_minimal_symbol{,_and_info}),Jim Kingdon1-7/+8
coffread.c (record_minimal_symbol), xcoffread.c (RECORD_MINIMAL_SYMBOL), callers: Add objfile parameter.
1993-11-01Change the stream argument to _filtered to GDB_FILE *.Thomas Lord1-7/+7
Change all references to stdout/stderr to gdb_stdout/gdb_stderr. Replace all calls to stdio output functions with calls to corresponding _unfiltered functions (`fprintf_unfiltered') Replaced calls to fopen for output to gdb_fopen. Added sufficient goo to utils.c and defs.h to make the above work. The net effect is that stdio output functions are only directly used in utils.c. Elsewhere, the _unfiltered and _filtered functions and GDB_FILE type are used. In the near future, GDB_FILE will stop being equivalant to FILE. The semantics of some commands has changed in a very subtle way: called in the right context, they may cause new occurences of prompt_for_continue() behavior. The testsuite doesn't notice anything like this, though. Please respect this change by not reintroducing stdio output dependencies in the main body of gdb code. All output from commands should go to a GDB_FILE. Target-specific code can still use stdio directly to communicate with targets.
1993-10-31 * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,Jim Kingdon1-1/+1
coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c: Change from using bfd target name to using the flavour.
1993-10-31 * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,Jim Kingdon1-3/+11
coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c: Change from using bfd target name to using the flavour.
1993-10-21 * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):Jim Kingdon1-4/+7
Sort symtabs for this objfile only, not for all objfiles.
1993-10-21 * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):Jim Kingdon1-1/+4
Sort symtabs for this objfile only, not for all objfiles. * symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
1993-10-12 * stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):Jim Kingdon1-12/+15
Move common block handling from dbxread.c to stabsread.c. Use the name from the BCOMM instead of the ECOMM. Allocate things on the symbol_obstack. * xcoffread.c (process_xcoff_symbol): Process C_BCOMM, C_ECOMM, and C_ECOML. On unrecognized storage classes, go ahead and call define_symbol (after the complaint). * dbxread.c (process_one_symbol): Don't relocate 'S' symbols by the text offset.
1993-09-01index -> strchrK. Richard Pixley1-1/+1
1993-09-01bzero -> memsetK. Richard Pixley1-8/+8
1993-09-01 * symtab.h (struct linetable), xcoffread.c (arrange_linetable):Jim Kingdon1-0/+2
Revise comments re linetable sorting. * buildsym.c (compare_line_numbers): Sort by pc, not by line. * coffread.c: Tell end_symtab to sort the line table. * coffread.c: Re-work a lot of the coff-specific stuff to use stuff in buildsym.c. This includes coff_finish_block, coff_context_stack, coff_local_symbols, coff_file_symbols, coff_global_symbols, coff_end_symtab and coff_add_symbol_to_list. (read_enum_type): Deal with it now that we have a "struct pending" not a "struct coff_pending". * buildsym.c (end_symtab): Don't realloc subfile->linetable.
1993-09-01bcopy -> memcpyK. Richard Pixley1-1/+1
1993-07-27 * breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide ifPeter Schauer1-1/+17
we have breakpoints or watchpoints as we might have to ignore internal breakpoints. Fix gdb core dumps after `file newfile' commands. * symtab.h, symfile.c (clear_symtab_users): New routine which unconditionally clears symtab users. clear_symtab_users_once commented out as it was a noop anyway. * objfiles.c (free_objfile): Don't call clear_symtab_users_once. * objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile), xcoffexec.c (exec_close): Call clear_symtab_users if necessary. * symfile.c (syms_from_objfile): Install cleanups for errors during symbol reading. * coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read): Lint cleanup code, call do_cleanups explicitly. * symfile.c (symbol_file_add): Call new_symfile_objfile and reinit_frame_cache _after_ the new symbols are read in.
1993-06-28* xcoffread.c: Remove obsolete NO_TYPEDEFS comment.Jim Kingdon1-6/+0
1993-05-27 * xcoffread.c (read_xcoff_symtab): If several program csects in oneJim Kingdon1-9/+13
source file, give them all the name of the source file, rather than the 2nd and subsequent ones having NULL names.
1993-05-25 * stabsread.c: Remove all uses of error(). Make error_type andJim Kingdon1-106/+0
read_type_number static. (define_symbol): Don't try to deal with a missing symbol descriptor which isn't followed by digit, '(', or '-'. * stabsread.h: Don't declare read_type_number here. * gdbtypes.h: Don't declare error_type here. * xcoffread.c: Remove NO_TYPEDEFS code.
1993-05-21 * complaint.c: Make sure all complain() pass the address of the struct.Jim Kingdon1-3/+3
* xcoffread.c: Make sure all struct complaints are static not auto.
1993-05-21 * Makefile.in: Add rule for xcoffexec.o like that for paread.o.Jim Kingdon1-1/+1
* xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
1993-05-21 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.Jim Kingdon1-10/+8
1993-05-04Doc fixJim Kingdon1-3/+3
1993-04-26 * symtab.h, xcoffread.c: Revise linetable sorting comments.Jim Kingdon1-94/+50
1993-04-19 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.Jim Kingdon1-95/+4
* stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'. xcoffread.c (process_xcoff_symbol, case C_RPSYM): Don't muck with SYMBOL_CLASS.
1993-04-15 * source.c (select_source_symtab): Clean up comment. Also, ifJim Kingdon1-3/+0
we have a current_source_symtab, and s is NULL, return without doing anything. xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab. breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
1993-04-15 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.Jim Kingdon1-5/+13
1993-04-07 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.Jim Kingdon1-8/+2
Remove FIXME comment regarding this.
1993-04-07use E_SYMNMLENJim Kingdon1-5/+6
1993-04-06 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols ofJim Kingdon1-0/+10
exactly 8 characters.
1993-04-03* xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.Jim Kingdon1-1/+9
1993-03-29 * xcoffread.c (sort_syms, compare_symbols): Remove.Jim Kingdon1-59/+1
(xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c not our own sort_syms (it is identical).
1993-03-29* xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).Jim Kingdon1-3/+0
1993-03-26 * Clean up xcoff relocation.Jim Kingdon1-32/+98
objfiles.h (struct objfiles): Add section_offsets, num_sections. symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets): Set them. symtab.h (struct general_symbol_info): Add section field. minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it. xcoffread.c: Set section for symbols and msymbols. (struct symtab): Add block_line_section field. buildsym.c (end_symtab): Set it. (end_symtab and callers): Add section parameter. objfiles.c (objfile_relocate): New funciton. xcoffexec.c (vmap_symtab): Use it. xcoffsolib.h (struct vmap): Remove unused fields. config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove CORE_NEEDS_RELOCATION, symtab_relocated. config/rs6000/tm-rs6000.h: Remove use of loadinfotext. rs6000-tdep.c: Make loadinfotext static. breakpoint.c (fixup_breakpoints): Doc fix. symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c (end_symtab): primary field replaces nonreloc.
1993-03-18 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.Jim Kingdon1-1/+1