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/rfa] allow unwinding "past main" for dummy frames


On Sun, Dec 05, 2004 at 08:59:33PM -0800, Randolph Chung wrote:
> > Some sense, but not good sense.
> > 
> > Can we edit the space registers ourselves?  If so, why don't we rely on
> > that?  I'm not talking about the call, just the return.  So generate a
> > call to __gcc_plt_call with a return address anywhere you please, and
> > after the dummy call when we restore the saved regcache the space
> > registers will be right again.  So you could just use _start.
> 
> the problem is precisely that ... the register that we need to restore
> (pcsqh/pcsqt) cannot be written to by gdb :(

"can not" is a funny thing.  Can it be written by userspace?  If so,
you could synthesize an update onto the stack and execute that, but I
agree that's unnecessarily messy.

Patch is OK, but definitely needs a comment.  And the comment should
mention HP/UX specifically.

-- 
Daniel Jacobowitz


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