From: Fabian Cenedese <Cenedese@indel.ch>
To: gdb@sources.redhat.com
Subject: Re: View registers from stack frames
Date: Wed, 06 Oct 2004 07:18:00 -0000 [thread overview]
Message-ID: <5.2.0.9.1.20041006084237.01cf98c0@NT_SERVER> (raw)
In-Reply-To: <41634E72.70205@gnu.org>
>>It is better in so far as the pc did change from frame 0 to frame 1.
>>But now reading the whole call stack is messed up. Funny though
>>that only the pc stays the same, other values do change.
>
>That's a separate bug - the new frame unwind code is running into trouble. I'd check a current gdb (:-/), and if no luck, post more details here - KevinB is the PPC maintainer.
I just tried with gdb-6.2.1 but it has the same errors in the unwinding.
Here is a bt with gdb-6.2.1 of the halted thread:
GNU gdb 6.2.1
--snip--
This GDB was configured as "--host=i686-pc-cygwin --target=powerpc-eabi"...
(gdb) bt
#0 CMyWorkerTask::Test (this=0x1815d4, str=@0x18d734)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:456
#1 0x00060564 in CMyWorkerTask::Test (this=0x1815d4, str=@0x18d734)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:469
#2 0x00060564 in CMyWorkerTask::Test (this=0x1815d4, str=@0xa)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:469
#3 0x00060564 in CMyWorkerTask::Test (this=0x1815d4, str=@0x0)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:469
#4 0x00060564 in CMyWorkerTask::Test (this=0x1815d4, str=@0x64646464)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:469
#5 0x00060564 in CMyWorkerTask::Test (this=0x1815d4, str=@0x32414000)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:469
Previous frame inner to this frame (corrupt stack?)
Here is a bt of the same target with gdb-6.1.1 (last working gdb):
GNU gdb 6.1.1
--snip--
This GDB was configured as "--host=i686-pc-cygwin --target=powerpc-eabi"..
(gdb) bt
#0 CMyWorkerTask::Test (this=0x1815d4, str=@0x18d734)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:456
#1 0x00060564 in CMyWorkerTask::Test (this=0x1815d4, str=@0x18d734)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:469
#2 0x00060408 in CMyWorkerTask::Action (this=0x1815d4)
at N:\Temp\SAMCLASS\Applicat\Src\Test1.cpp:433
#3 0x0008c8a8 in CINOSTask::MainLoop (this=0x1815d4)
at N:\Temp\SAMCLASS\os\inos\Src\Inos.cpp:823
#4 0x0008c6bc in CINOSTask::CINOSTask (this=0x1815d4,
aName=0x64646464 "|ù\022", aStackSize=1684300900, aPriority=1684300900,
aFloatingPoint=1684300900, aTimeSlice=1684300900,
aInterruptsDisabled=1684300900, apHandler=0x64646464, apObject=0x132fb8)
at N:\Temp\SAMCLASS\os\inos\Src\Inos.cpp:786
#5 0x32414000 in ?? ()
(It's possible that frames 4 and 5 have wrong data as the start of
our call stack is maybe not properly initialized. 0x64646464 is
our pattern of uninitialized memory.)
The first two frames seem ok, only frame 3 and more are wrong.
If more info is needed (e.g. the remote debug protocol) I can also
post it here or send to anyone.
Well, that only leaves me with the cvs version...
Thanks
bye Fabi
next prev parent reply other threads:[~2004-10-06 6:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 12:48 Fabian Cenedese
2004-10-05 13:30 ` Andrew Cagney
2004-10-05 14:02 ` Fabian Cenedese
2004-10-05 14:03 ` Daniel Jacobowitz
2004-10-05 15:00 ` Fabian Cenedese
2004-10-05 17:57 ` Fabian Cenedese
2004-10-06 1:57 ` Andrew Cagney
2004-10-06 7:18 ` Fabian Cenedese [this message]
2004-10-06 16:41 ` Kevin Buettner
2004-10-07 9:04 ` Fabian Cenedese
2004-10-11 19:21 ` Kevin Buettner
2004-10-07 17:50 Xinan Tang
[not found] <5.2.0.9.1.20041007134711.01d12d90@NT_SERVER>
[not found] ` <20041007085738.45b5b55a@saguaro>
2004-10-08 10:14 ` Fabian Cenedese
2004-10-11 19:16 ` Kevin Buettner
2004-10-12 14:03 ` Fabian Cenedese
2004-10-16 15:11 ` Kevin Buettner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.2.0.9.1.20041006084237.01cf98c0@NT_SERVER \
--to=cenedese@indel.ch \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox