[PATCH]: Symbol origin patch, with changelog
David Taylor
taylor@cygnus.com
Thu Feb 8 09:21:00 GMT 2001
From: Daniel Berlin <dan@redhat.com>
Date: Fri, 5 Jan 2001 13:46:27 -0500 (EST)
SYmbol origin patch again, with changelog this time.
I made the small change Eli requested to the documentation as well.
I know it needs apporoval from jim blandy, and fernando, but even after
looking at the maintainers file, i'm a bit confused as to who else i need
approval from, since i'm not sure what domain some of these files are
considered part of.
So, I know it's a cop out, but if you think part of this falls under your
maintainership, feel free to approve/reject that part. Any overlap that
occurs should be straightened out anyway.
The c-exp.y, defs.h, and printcmd.c parts of this are approved.
2001-01-05 Daniel Berlin <dberlin@redhat.com>
* breakpoint.c (print_one_breakpoint): Add origin of symbol, if
requested.
* c-exp.y (top level): Add struct objfile variable to keep track
of where user is trying to get symbol from.
Add OBJFILE token.
(block): Also let them specify an objfile as context.
(variable): Same here.
(yylex): Handle checking to see if user typed an objfile.
* defs.h : Add print_symbol_origin variable, general_symbol_info
forward declaration, prefix_symbol_origin declaration.
* linespec.c (decode_line_2): Add SYMFILE:FUNCTION to accepted
syntax in comment.
(decode_line_1): Handle user specifying object file as part of
name of symbol.
* printcmd.c: Add print_symbol_origin variable to control printing
of symbol origin.
(prefix_symbol_origin): New function, prefixes symbol passed in
with origin, if requested by user.
(build_address_symbolic): Call function to prefix symbol origin.
Add origin variable to set/show print list.
* stack.c (print_frame): Call function to prefix symbol origin.
(frame_info): Ditto.
* symtab.c (print_symbol_info): Add new argument to specify component.
(lookup_objfile): New function. Given a name, return the object
file with that name.
(lookup_symbol_objfile): New function. Find definition of symbol
in a given object file.
* symtab.h: Add definitions of lookup_symbol_objfile,
lookup_objfile.
(doc/gdb.texinfo): Add documentation for the new symbol origin
stuff.
More information about the Gdb-patches
mailing list