From: Cedric Jehasse <cedric.jehasse@gmail.com>
To: gdb@sourceware.org
Subject: Frame.pc () python function returns a 64-bit value on with a 32-bit mips target
Date: Fri, 10 Feb 2017 08:32:00 -0000 [thread overview]
Message-ID: <CABvLYuAQN6-W5WCiR0QDBAPVvTxif+yoi+Us+KFEPMs2jVo7Zw@mail.gmail.com> (raw)
Hi,
i have built gdb from git configured with ./configure --target=mipsisa32-elf.
I use gdb to connect to openocd which is connected using JTAG to a
32-bit little endian mips.
When i to use the python api to print the pc, it prints a 64-bit
address with the upper 32-bits set to 0xffffffff. Eg.
(gdb) python print hex(gdb.newest_frame().pc())
0xffffffff803453fcL
The addresses printed in gdb's cli are all 32-bit.
Is there something wrong in my configuration?
Thanks,
Cedric
next reply other threads:[~2017-02-10 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-10 8:32 Cedric Jehasse [this message]
2017-02-15 3:08 ` Mike Frysinger
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=CABvLYuAQN6-W5WCiR0QDBAPVvTxif+yoi+Us+KFEPMs2jVo7Zw@mail.gmail.com \
--to=cedric.jehasse@gmail.com \
--cc=gdb@sourceware.org \
/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