Handle debug symbols in dynamically loaded (relocated) code:
authorJohn Gilmore <gnu@cygnus>
Tue, 28 Jan 1992 02:57:37 +0000 (02:57 +0000)
committerJohn Gilmore <gnu@cygnus>
Tue, 28 Jan 1992 02:57:37 +0000 (02:57 +0000)
commitc55e616795e1b472543b22ae5c67da86976f529b
tree7a112a21c1cb0a8fbb2f9ca964c437c168aa95a8
parentf005e85b88b980a7bf632f894fab61b597a05f1a
Handle debug symbols in dynamically loaded (relocated) code:

* dbxread.c (read_ofile_symtab):  Fix up N_CATCH better.  Pass
offset to process_one_symbol.
(process_one_symbol):  Take new offset parameter.  Add it into
appropriate symbol types to relocate symbols to loaded addresses.
Handle all possible symbol types, and complain() about types that
we don't expect to see.
* mipsread.c (psymtab_to_symtab_1):  Pass offset of zero to
process_one_symbol (FIXME, should pass real offset).

Misc bugfixes:

* breakpoint.c (resolve_sal_pc):  Split out code to resolve a
sal's PC value.
(set_breakpoint, break_command_1, until_break_command,
catch_command_1, breakpoint_re_set_one):  Use it.
(breakpoint_re_set_one):  Disable bkpts that don't re-set cleanly.
(breakpoint_re_set):  Mention breakpoint number in error messages.
* symtab.h (resolve_sal_pc):  Declare.
* infcmd.c (jump_command):  Use resolve_sal_pc.

* source.c (find_source_lines):  Avoid "Source file is more
recent than executable" when bfd_get_mtime gives 0.
(list_command):  Shorten "FILE, line N" to "FILE:N".

* putenv.c (putenv):  Avoid unportably casting pointers to unsigneds.
gdb/ChangeLog
gdb/dbxread.c
gdb/mipsread.c
gdb/putenv.c