Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Randolph Chung <randolph@tausq.org>
Cc: Andrew Cagney <cagney@gnu.org>, gdb-patches@sources.redhat.com
Subject: Re: [patch/rfa] Signal trampoline unwinder for hppa-hpux
Date: Wed, 26 May 2004 13:20:00 -0000	[thread overview]
Message-ID: <20040526132043.GA7594@nevyn.them.org> (raw)
In-Reply-To: <20040526053609.GV7207@tausq.org>

On Tue, May 25, 2004 at 10:36:09PM -0700, Randolph Chung wrote:
> > Yes, definitly.  Having to do instruction examination should be 
> > considered a last resource.
> 
> ok, this is checked in now too, but can someone please comment on this
> bit:
> 
> ================================================================
> Unfortunately this still fails a lot of the signal related testcases.
> It is not because of a problem with the signal unwinder though:
> 
> On HPUX-SOM, there is an export stub inserted into the call sequence in
> some cases; the export stub is hit on the return path from indirect
> function calls, and apparently on return from a signal handler. This 
> creates an extra frame in the backtrace, viz:
> 
> (gdb) bt
> #0  0x000029e4 in handle_USR1 (sig=0)
>     at ../../../gdb/gdb/testsuite/gdb.base/annota1.c:18
> #1  0x000029c8 in handle_USR1 ()
>     at ../../../gdb/gdb/testsuite/gdb.base/annota1.c:17
> #2  <signal handler called>
> #3  main () at ../../../gdb/gdb/testsuite/gdb.base/annota1.c:40
> 
> Frame 1 comes from the export stub. Because of this, the pattern
> matching in the backtrace test fails.  I am not sure if this is a
> problem with the test script or with the handling of export stubs -- am
> I supposed to somehow supress the export stub from showing up in the
> backtrace? (if so, how?)

Right now, we don't have any mechanism to hide frames.  I'm not sure
whether it's a desirable feature or not.  I've wanted it for C++
occasionally.

I wonder if GDB should have a single knob to switch between
"simplified" and more thorough/accurate display modes?  Could any of
the existing toggles be added to this?

-- 
Daniel Jacobowitz


  reply	other threads:[~2004-05-26 13:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-20  4:17 Randolph Chung
2004-05-20 20:46 ` Joel Brobecker
2004-05-20 20:53   ` Randolph Chung
2004-05-20 22:36   ` Joel Brobecker
2004-05-20 23:33   ` Joel Brobecker
2004-05-21 17:41 ` Andrew Cagney
2004-05-21 18:39   ` Randolph Chung
2004-05-22  1:58   ` Randolph Chung
2004-05-23  0:29     ` Randolph Chung
2004-05-24 17:38       ` Andrew Cagney
2004-05-26  5:36         ` Randolph Chung
2004-05-26 13:20           ` Daniel Jacobowitz [this message]
2004-05-22 18:30 John David Anglin

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=20040526132043.GA7594@nevyn.them.org \
    --to=drow@false.org \
    --cc=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=randolph@tausq.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