From: Torsten Mohr <tmohr@s.netic.de>
To: gdb <gdb@sources.redhat.com>
Subject: ARM, registers, "frame 0", where's the PC?
Date: Wed, 08 Jan 2003 03:49:00 -0000 [thread overview]
Message-ID: <200301080413.48695.tmohr@s.netic.de> (raw)
Hi,
i received a hint by mail to send ALL registers from the
GDB remote protocol server back to arm-unknown-elf-insight.
I now do that but it i still get this unwanted behaviour:
I can download a program, start it, stop it, read registers
(the correct values are shown, as i see in the debug output
of my debug server). The values make sense, R15 is exactly
where i expect it to be.
But when i stop the program, "insight" tells me that it
stopped at 0x01002048. That's nowhere in my program
and not what's shown in R15.
In the GDB console, "info registers" shows the same values
as in "insight". Especially "p/x $pc" says 0x02020070
what makes sense and is correct.
In "info gdb" i read:
Normally, register values are relative to the selected stack frame
(*note Selecting a frame: Selection.). This means that you get the
value that the register would contain if all stack frames farther in
were exited and their saved registers restored. In order to see the
true contents of hardware registers, you must select the innermost
frame (with `frame 0').
When i type "frame 0", gdb says:
gdb) frame 0
#0 0x01002048 in ?? ()
This seems to be related to the problem. I have to admit i don't
understand that. Why can't GDB say where it stopped, it has the
correct value for R15. Also, inbetween the stop ("\x03") and the
reading of the registers ("g") there is no other request from
GDB. What info is missing?
Thanks for any hints,
Torsten.
next reply other threads:[~2003-01-08 3:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-08 3:49 Torsten Mohr [this message]
2003-01-08 19:39 ` Torsten Mohr
2003-01-09 3:31 ` Daniel Jacobowitz
2003-01-09 17:12 ` Torsten Mohr
2003-01-09 17:24 ` Daniel Jacobowitz
2003-01-09 23:23 ` Torsten Mohr
2003-01-09 23:23 ` Torsten Mohr
2003-01-09 23:27 ` Daniel Jacobowitz
2003-01-10 6:52 ` Jan Van Belle
2003-01-10 14:24 ` Daniel Jacobowitz
2003-01-09 12:20 ` Richard Earnshaw
2003-01-09 17:12 ` Torsten Mohr
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=200301080413.48695.tmohr@s.netic.de \
--to=tmohr@s.netic.de \
--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