public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Andrew Burgess <aburgess@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/unwinders: better support for $pc not saved
Date: Mon, 29 Jan 2024 08:49:40 -0800	[thread overview]
Message-ID: <9b93df65-1317-4e6d-8fe0-b0940db7f1db@redhat.com> (raw)
In-Reply-To: <4d3be44a23e2e5853d966c081bccbeb751004310.1706366387.git.aburgess@redhat.com>

On 1/27/24 07:26, Andrew Burgess wrote:
> This started with a Red Hat bug report which can be seen here:
> 
>    https://bugzilla.redhat.com/show_bug.cgi?id=1850710
> 
> The problem reported here was using GDB on GNU/Linux for S390, the
> user stepped into JIT generated code.  As they enter the JIT code GDB
> would report 'PC not saved', and this same message would be reported
> after each step/stepi.

I really appreciate that you've looked into this. For several years
now, any interested user has seen my hack workaround (posted in 28313)!

I haven't dug into this yet, but I wanted to point out that on s390x,
the new test file comes with a FAIL (on unix, native-gdbserver, and
native-extended-gdbserver boards):


		=== gdb Summary ===

# of expected passes		6
# of unexpected failures	1

The failure from gdb.log (I'm testing through our internal beaker
test infra on RHEL9, so all tests are run (unfortunately) as root):

bt
#0  other_func () at 
/root/test-fsf-master/gdb/build-s390x-redhat-linux-gnu/gdb/
testsuite/../../../gdb/testsuite/gdb.base/pc-not-saved.c:24
#1  0x00000000010006ae in break_bt_here () at 
/root/test-fsf-master/gdb/build-s3
90x-redhat-linux-gnu/gdb/testsuite/../../../gdb/testsuite/gdb.base/pc-not-saved.
c:38
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) FAIL: gdb.base/pc-not-saved.exp: backtrace from other_func function

Keith


  parent reply	other threads:[~2024-01-29 16:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-27 15:26 Andrew Burgess
2024-01-28 20:56 ` Kevin Buettner
2024-01-29 16:49 ` Keith Seitz [this message]
2024-02-02 15:19 ` [PATCHv2] " Andrew Burgess
2024-03-05 16:41   ` Andrew Burgess
2024-03-07 14:43     ` Keith Seitz
2024-03-11 10:07       ` Andrew Burgess

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=9b93df65-1317-4e6d-8fe0-b0940db7f1db@redhat.com \
    --to=keiths@redhat.com \
    --cc=aburgess@redhat.com \
    --cc=gdb-patches@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).