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: [RFA/RFC] New command: ``start''


> That sounds good to me.  Note that now you can avoid playing with
> xmalloc/xfree and just return the constant "main".

Before starting on this, there are a couple of things we might want
to discuss:

   . It think it would be better if we cached the main name, so as
     to avoid recomputing it each time we do a backtrace. But that
     causes a problem when debugging 2 different executables one
     after the other during the same GDB session. During the second
     debugging run, we'll end up using the wrong main procedure name.
     We need to insert an observer I think at the begining of
     exec_file_attach() to signal us that the cached main_name
     is obsolete.

   . Could you clarify a bit more what you mean about the xmalloc/xfree
     juggle? I see that set_main_name() takes care of this for me, so
     do you mean that the language method should be returning a string
     located in a temporary buffer? Something like: result is good until
     next call? (I am not too keen on that).

Thanks,
-- 
Joel


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