From: Steve Ellcey <sellcey@caviumnetworks.com>
To: gdb <gdb@sourceware.org>
Subject: Question about backtraces through signal handlers for aarch64 ILP32 support
Date: Tue, 28 Feb 2017 00:26:00 -0000 [thread overview]
Message-ID: <1488241574.2866.227.camel@caviumnetworks.com> (raw)
I am working on supporting gdb on aarch64 in ILP32 mode but am not that
familiar with gdb and was wondering if anyone could give me some ideas
on where to look for a problem I am seeing.
I run the test case 'gdb.base/sigstep' in gdb by hand and do the initial
commands that that testsuite does:
break main
run
break handler
continue
bt
In LP64 mode, I get this backtrace:
#0Â Â handler (sig=26)
    at /home/ubuntu/sellcey/gdb-ilp32/obj-64/binutils/gdb/testsuite/../../../..
/src/binutils-gdb/gdb/testsuite/gdb.base/sigstep.c:35
#1Â Â <signal handler called>
#2Â Â 0x00000000004008cc in main ()
    at /home/ubuntu/sellcey/gdb-ilp32/obj-64/binutils/gdb/testsuite/../../../..
/src/binutils-gdb/gdb/testsuite/gdb.base/sigstep.c:87
But in ILP32 mode, I get this backtrace:
#0Â Â handler (sig=26)
    at /home/ubuntu/sellcey/gdb-ilp32/obj-32/binutils/gdb/testsuite/../../../..
/src/binutils-gdb/gdb/testsuite/gdb.base/sigstep.c:35
#1Â Â <signal handler called>
#2Â Â 0x00000000 in ?? ()
#3Â Â 0x00400740 in main ()
    at /home/ubuntu/sellcey/gdb-ilp32/obj-32/binutils/gdb/testsuite/../../../..
/src/binutils-gdb/gdb/testsuite/gdb.base/sigstep.c:87
I think the backtrace for ILP32 does not match what is expected because
it has the extra entry in it (#2 with no name or location). I am not sure
if that is a real frame that the test needs to expect or just an error in
how gdb is reading the frame information.
Normal backtraces seem to be working fine, the majority of ILP32 failures
I get in gdb.base (that don't also happen in LP64 mode) are tests with 'sig'
in their name like sigstep.
Any ideas on where to look or what to look for?
Steve Ellcey
sellcey@cavium.com
next reply other threads:[~2017-02-28 0:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 0:26 Steve Ellcey [this message]
2017-02-28 0:36 ` Luis Machado
2017-02-28 10:21 ` Yao Qi
2017-02-28 10:21 ` Andreas Schwab
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=1488241574.2866.227.camel@caviumnetworks.com \
--to=sellcey@caviumnetworks.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