Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Yao Qi <qiyaoltc@gmail.com>
To: Luis Machado <lgustavo@codesourcery.com>
Cc: Steve Ellcey <sellcey@caviumnetworks.com>,  gdb <gdb@sourceware.org>
Subject: Re: Question about backtraces through signal handlers for aarch64 ILP32 support
Date: Tue, 28 Feb 2017 10:21:00 -0000	[thread overview]
Message-ID: <868toqsjj0.fsf@gmail.com> (raw)
In-Reply-To: <1fb132ae-4230-2ae1-ad57-6ca51b1c8d97@codesourcery.com> (Luis	Machado's message of "Mon, 27 Feb 2017 18:36:16 -0600")

Luis Machado <lgustavo@codesourcery.com> writes:

>> 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?
>
> That extra frame indicates gdb is getting confused when extracting
> register state from the signal frame and creates a spurious frame at
> 0x0. Maybe gdb is finding a frame pointer that points to 0x0 and
> should instead point to 0x00400740 (main)? Tracking that down may help
> figure it out.

I think Luis is right.  From your log, I can see that sigframe is found,
and the right unwinder is used, but it gets the wrong value when it
unwinds stack.  Probably, you need to look at
aarch64-linux-tdep.c:aarch64_linux_sigframe_init and some macros defines
above.

-- 
Yao (齐尧)


  reply	other threads:[~2017-02-28 10:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-28  0:26 Steve Ellcey
2017-02-28  0:36 ` Luis Machado
2017-02-28 10:21   ` Yao Qi [this message]
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=868toqsjj0.fsf@gmail.com \
    --to=qiyaoltc@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=lgustavo@codesourcery.com \
    --cc=sellcey@caviumnetworks.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