From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Brobecker To: Randolph Chung Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] New program_changed event, cleanup some HPUXHPPA mess Date: Wed, 19 May 2004 21:37:00 -0000 Message-id: <20040519213741.GJ10684@gnat.com> References: <20040519204003.GU566@tausq.org> X-SW-Source: 2004-05/msg00583.html 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