This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Where to hook reading of new symbol file
Daniel Jacobowitz wrote:
On Sun, Sep 30, 2007 at 07:34:41PM -0500, Rodney M. Bates wrote:
Where would be the right place to hook in some language/compiler-
dependent actions to be executed whenever a new symbol file is
loaded for any reason, e.g., file command, attach command, or
specified on the gdb command line?
Probably the new_objfile observer, but it depends what you need to do
with it.
I just need to change the default handling of a signal, for user convenience.
The preferred way to set it up depends on the compiler used. I detect that
by the absence/presence of certain symbols that come from the runtime system.
--
-------------------------------------------------------------
Rodney M. Bates, retired assistant professor
Dept. of Computer Science, Wichita State University
Wichita, KS 67260-0083
316-978-3922
rodney.bates@wichita.edu