[patch/rfc] New program_changed event, cleanup some HPUXHPPA mess

Joel Brobecker brobecker@gnat.com
Wed May 19 21:37:00 GMT 2004


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



More information about the Gdb-patches mailing list