This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]