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 22:06:00 -0000 Message-id: <20040519220655.GM10684@gnat.com> References: <20040519204003.GU566@tausq.org> <20040519213741.GJ10684@gnat.com> <20040519214440.GV566@tausq.org> X-SW-Source: 2004-05/msg00587.html > > I was going to add the event at the begining of exec.c:exec_file_attach(). > > Would that work for you as well? > > exec_file_attach () seems to be called before the symbols are read into > gdb. If so the lookups that I need to do will not work. Am I right? Yes you are right. I didn't look at your patch closely enough to see that you were going to do symbol lookups during the notification. > I can change the hppa code to do lazy init if we use this approach; > just need to understand the semantics :) I don't want to force you to take any approach. A signal at symbol file update is good too. However, could you in that case use a different name for the observer, I found it confusing since the notification is not necessarily emitted when the program has been changed. Something like program_symbols_changed? We'll have two observers instead of one: One for the executable changed, and one for the program symbols changed. I don't know what the other maintainers will think about this? -- Joel