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


> > 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


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