This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: gdb 'next' problem with i386 HAL


>>>>> Jonathan Larmour writes:

> So you've presumably added something to switch to the interrupt stack. Fair
> enough, but isn't that a separate issue? The SP value stored in the
> HAL_SavedRegisters is still off by 16 no matter what stack you're running
> on. The SP value to report to GDB must still be the value at the time of
> the exception, not the value just after it, no matter what.

I pop those values off the application stack before copying them to the
stub stack frame. The correct SP just comes out of that. I'm not sure
that simply adjusting the SP is sufficient. It may be for 'next' but
inferior function calls may corrupt the area under the SP passed to
GDB.

--Mark

 



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