]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Introduce common/symbol.h
authorGary Benson <gbenson@redhat.com>
Thu, 11 Sep 2014 10:43:04 +0000 (11:43 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 11 Sep 2014 10:43:21 +0000 (11:43 +0100)
commitbd9269f70c70b1218b0eb73a6f487d6ca481e5ac
tree87a113269227ef0da65e91772516f107efdaac2b
parentf8c1d06b82ab0fd56bcffc9030cb44b5a946113e
Introduce common/symbol.h

This introduces common/symbol.h.  This file declares a function that
the shared code can use and that the clients must implement.  It also
changes some shared code to use these functions.

gdb/ChangeLog:

* common/symbol.h: New file.
* Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
* minsyms.c (find_minimal_symbol_address): New function.
* common/agent.c: Include common/symbol.h.
[!GDBSERVER]: Don't include objfiles.h.
(agent_look_up_symbols): Use find_minimal_symbol_address.

gdb/gdbserver/ChangeLog:

* symbol.c: New file.
* Makefile.in (SFILES): Add symbol.c.
(OBS): Add symbol.o.
gdb/ChangeLog
gdb/Makefile.in
gdb/common/agent.c
gdb/common/symbol.h [new file with mode: 0644]
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/symbol.c [new file with mode: 0644]
gdb/minsyms.c