* recent changes to frame pointer handling on trunk?
@ 2002-12-03 19:08 Jafa
2002-12-03 19:36 ` Andrew Cagney
2002-12-04 2:22 ` Roland Egger
0 siblings, 2 replies; 4+ messages in thread
From: Jafa @ 2002-12-03 19:08 UTC (permalink / raw)
To: gdb
Hi guys,
I am working from the gdb trunk and the ip2k port of gdb.
I have been running a trunk snapshot from about 4 weeks ago and when asked
for the frame-pointer I go and figure it out (the fp isn't normally stored
by the c-compiler).
I just updated to the trunk and now the frames are all wrong.
What I am seeing is that my code figures the FP out correctly (for example
SP+10) but instead of looking for the first parameter at FP+0, it looks for
the first parameter at FP+10.
Does this make any sense to anyone?
Thanks
Nick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recent changes to frame pointer handling on trunk?
2002-12-03 19:08 recent changes to frame pointer handling on trunk? Jafa
@ 2002-12-03 19:36 ` Andrew Cagney
2002-12-03 19:43 ` Daniel Jacobowitz
2002-12-04 2:22 ` Roland Egger
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-12-03 19:36 UTC (permalink / raw)
To: Jafa; +Cc: gdb
> Hi guys,
>
>
>
> I am working from the gdb trunk and the ip2k port of gdb.
(unless I'm missing something) GDB does not include a port to the ip2k.
Suggest contacting who ever supplied you with this GDB.
Andrew
> I have been running a trunk snapshot from about 4 weeks ago and when asked
> for the frame-pointer I go and figure it out (the fp isn't normally stored
> by the c-compiler).
>
>
>
> I just updated to the trunk and now the frames are all wrong.
>
>
>
> What I am seeing is that my code figures the FP out correctly (for example
> SP+10) but instead of looking for the first parameter at FP+0, it looks for
> the first parameter at FP+10.
>
>
>
> Does this make any sense to anyone?
>
>
>
> Thanks
>
>
>
> Nick
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recent changes to frame pointer handling on trunk?
2002-12-03 19:36 ` Andrew Cagney
@ 2002-12-03 19:43 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-12-03 19:43 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Jafa, gdb
On Tue, Dec 03, 2002 at 10:36:30PM -0500, Andrew Cagney wrote:
> >Hi guys,
> >
> >
> >
> >I am working from the gdb trunk and the ip2k port of gdb.
>
> (unless I'm missing something) GDB does not include a port to the ip2k.
> Suggest contacting who ever supplied you with this GDB.
<translation>
He's the one writing the ip2k port, I believe...
> >I have been running a trunk snapshot from about 4 weeks ago and when asked
> >for the frame-pointer I go and figure it out (the fp isn't normally stored
> >by the c-compiler).
> >
> >
> >
> >I just updated to the trunk and now the frames are all wrong.
> >
> >
> >
> >What I am seeing is that my code figures the FP out correctly (for example
> >SP+10) but instead of looking for the first parameter at FP+0, it looks for
> >the first parameter at FP+10.
> >
> >
> >
> >Does this make any sense to anyone?
> >
> >
> >
> >Thanks
> >
> >
> >
> >Nick
> >
> >
> >
>
>
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recent changes to frame pointer handling on trunk?
2002-12-03 19:08 recent changes to frame pointer handling on trunk? Jafa
2002-12-03 19:36 ` Andrew Cagney
@ 2002-12-04 2:22 ` Roland Egger
1 sibling, 0 replies; 4+ messages in thread
From: Roland Egger @ 2002-12-04 2:22 UTC (permalink / raw)
To: Jafa; +Cc: gdb
Hi,
On Tue, Dec 03, 2002 at 07:08:51PM -0800, Jafa wrote:
> Hi guys,
>
>
>
> I am working from the gdb trunk and the ip2k port of gdb.
>
>
>
> I have been running a trunk snapshot from about 4 weeks ago and when asked
> for the frame-pointer I go and figure it out (the fp isn't normally stored
> by the c-compiler).
>
>
>
> I just updated to the trunk and now the frames are all wrong.
>
>
>
> What I am seeing is that my code figures the FP out correctly (for example
> SP+10) but instead of looking for the first parameter at FP+0, it looks for
> the first parameter at FP+10.
I don't know much about ip2k but for sparc and pa-risc fp is the old sp.
If fp = sp+10 then fp+10 is the old fp. It looks like the +10 is done twice
perhaps at your chages and somewhere else but unfortunately I'm not a
gdb developer ...
Do you know where (in which cpp file) the backtrace functionality is?
(I've programmed it for sparc solaris and intel linux and try to do it
for pa-risc hp-ux, but on hp-ux the most things seems to be a little bit
more complicated ...)
Bye
Roland
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-04 10:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-03 19:08 recent changes to frame pointer handling on trunk? Jafa
2002-12-03 19:36 ` Andrew Cagney
2002-12-03 19:43 ` Daniel Jacobowitz
2002-12-04 2:22 ` Roland Egger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox