Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Randolph Chung <randolph@tausq.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa] Add some flags to tramp frame unwinder
Date: Mon, 13 Dec 2004 21:34:00 -0000	[thread overview]
Message-ID: <41BDFED3.10408@gnu.org> (raw)
In-Reply-To: <20041213033707.GI29171@tausq.org>

Randolph Chung wrote:
>>Instead of this, delete the test and in its place add a comment 
>>explaining what was there.  I just hit another similar case - signal 
>>trampolines on altstacks - where there's either/or a valid symbol or 
>>segment.
> 
> 
> ok, checked in the following
> 
> 
> 
> 2004-12-12  Randolph Chung  <tausq@debian.org>
> 
> 	* tramp-frame.c (tramp_frame_sniffer): Allow frames with names or 
> 	sections to be trampolines too.

Thanks.

Andrew

> Index: tramp-frame.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/tramp-frame.c,v
> retrieving revision 1.7
> diff -u -p -r1.7 tramp-frame.c
> --- tramp-frame.c	7 Nov 2004 12:54:58 -0000	1.7
> +++ tramp-frame.c	13 Dec 2004 01:35:42 -0000
> @@ -122,19 +122,12 @@ tramp_frame_sniffer (const struct frame_
>    const struct tramp_frame *tramp = self->unwind_data->tramp_frame;
>    CORE_ADDR pc = frame_pc_unwind (next_frame);
>    CORE_ADDR func;
> -  char *name;
>    struct tramp_frame_cache *tramp_cache;
>  
> -  /* If the function has a valid symbol name, it isn't a
> -     trampoline.  */
> -  find_pc_partial_function (pc, &name, NULL, NULL);
> -  if (name != NULL)
> -    return 0;
> -  /* If the function lives in a valid section (even without a starting
> -     point) it isn't a trampoline.  */
> -  if (find_pc_section (pc) != NULL)
> -    return 0;
> -  /* Finally, check that the trampoline matches at PC.  */
> +  /* tausq/2004-12-12: We used to assume if pc has a name or is in a valid 
> +     section, then this is not a trampoline.  However, this assumption is
> +     false on HPUX which has a signal trampoline that has a name; it can
> +     also be false when using an alternative signal stack.  */
>    func = tramp_frame_start (tramp, next_frame, pc);
>    if (func == 0)
>      return 0;
> 
> randolph


      reply	other threads:[~2004-12-13 20:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-09 17:35 Randolph Chung
2004-12-09 17:59 ` Joel Brobecker
2004-12-12 16:38 ` Andrew Cagney
2004-12-13  4:06   ` Randolph Chung
2004-12-13 21:34     ` Andrew Cagney [this message]

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=41BDFED3.10408@gnu.org \
    --to=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