Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Where to hook reading of new symbol file
@ 2007-10-01  0:34 Rodney M. Bates
  2007-10-01  0:41 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Rodney M. Bates @ 2007-10-01  0:34 UTC (permalink / raw)
  To: gdb

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?
-- 
-------------------------------------------------------------
Rodney M. Bates, retired assistant professor
Dept. of Computer Science, Wichita State University
Wichita, KS 67260-0083
316-978-3922
rodney.bates@wichita.edu


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where to hook reading of new symbol file
  2007-10-01  0:34 Where to hook reading of new symbol file Rodney M. Bates
@ 2007-10-01  0:41 ` Daniel Jacobowitz
  2007-10-01  1:47   ` Rodney M. Bates
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-10-01  0:41 UTC (permalink / raw)
  To: Rodney M. Bates; +Cc: gdb

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.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where to hook reading of new symbol file
  2007-10-01  0:41 ` Daniel Jacobowitz
@ 2007-10-01  1:47   ` Rodney M. Bates
  0 siblings, 0 replies; 3+ messages in thread
From: Rodney M. Bates @ 2007-10-01  1:47 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb



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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-01  1:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-01  0:34 Where to hook reading of new symbol file Rodney M. Bates
2007-10-01  0:41 ` Daniel Jacobowitz
2007-10-01  1:47   ` Rodney M. Bates

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox