This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] New program_changed event, cleanup some HPUXHPPA mess
- From: Joel Brobecker <brobecker at gnat dot com>
- To: Randolph Chung <randolph at tausq dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 19 May 2004 14:37:41 -0700
- Subject: Re: [patch/rfc] New program_changed event, cleanup some HPUXHPPA mess
- References: <20040519204003.GU566@tausq.org>
Randolph,
> * symfile.c: Include observer.h, remove HPUXHPPA-specific code.
> (symbol_file_add_main_1): Remove HPUXHPPA-specific code; notify
> observers when a new symbol file has been loaded.
> (symbol_file_clear, reread_symbols): Remove HPUXHPPA-specific code.
I think I'll also be needing the program_changed event for something
else. However, I was about to place that event somewhere else. As far
as I understand it, the gdb command to change the executable is
``exec-file''. That means you can change the executable without
reloading the symbols, and hence trigger your notification.
I was going to add the event at the begining of exec.c:exec_file_attach().
Would that work for you as well?
--
Joel