public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* RE: View registers from stack frames
@ 2004-10-07 17:50 Xinan Tang
  0 siblings, 0 replies; 16+ messages in thread
From: Xinan Tang @ 2004-10-07 17:50 UTC (permalink / raw)
  To: Fabian Cenedese, gdb

Hi 

  This can be done by issuing these two commands:

  >set debug remote 1
  >set remotelogfile  file_xyz

  Then file_xyz will record everything including the remote protocol
packets.

Good luck

--Xinan

-----Original Message-----
From: gdb-owner@sources.redhat.com [mailto:gdb-owner@sources.redhat.com]
On Behalf Of Fabian Cenedese
Sent: Thursday, October 07, 2004 12:09 AM
To: gdb@sources.redhat.com
Subject: Re: View registers from stack frames

Would it be helpful to have the debug log of the remote protocol
communication? Like that you would see what addresses gdb
probes and the read values. Or maybe a memory dump of the
call stack of a thread?

Thanks

bye  Fabi



^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <5.2.0.9.1.20041007134711.01d12d90@NT_SERVER>]
* View registers from stack frames
@ 2004-10-05 12:48 Fabian Cenedese
  2004-10-05 13:30 ` Andrew Cagney
  0 siblings, 1 reply; 16+ messages in thread
From: Fabian Cenedese @ 2004-10-05 12:48 UTC (permalink / raw)
  To: gdb

Hi

With the stack commands (frame, up, down) I can select a different
stack frame. Local variables and arguments (even with same name)
have different values, depending on the stack frame number. But it
seems that registers aren't corrected for previous stack frames. Is
this correct? e.g. the PC and LR should change their value on every
frame, and the PC was the last LR. But "info reg" always shows the
same values. Is there any way to get the previous frame's registers?

When I do "info frame x" I get something like "saved pc 0x..." so at
least this information is available, why isn't this put into the register
overview? And what about the other SPRs and GPRs?

Thanks

bye  Fabi


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-10-15 22:34 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07 17:50 View registers from stack frames 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
  -- strict thread matches above, loose matches on Subject: below --
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
2004-10-06 16:41               ` Kevin Buettner
2004-10-07  9:04                 ` Fabian Cenedese
2004-10-11 19:21                   ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).