Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Michal Ludvig <mludvig@suse.cz>
Cc: GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] Debug info detection.
Date: Fri, 07 Mar 2003 16:32:00 -0000	[thread overview]
Message-ID: <3E68C9A8.8070601@redhat.com> (raw)
In-Reply-To: <3E68BF3C.2090503@suse.cz>

> For now I have...
> 
> const struct frame_unwind *
> x86_64_frame_p (CORE_ADDR pc)
> {
>   struct frame_unwind *unwind_cfi = NULL;
>   struct frame_unwind *unwind_asm = &x86_64_asm_frame_unwind;
>   struct frame_unwind *unwind_sigtramp = &x86_64_sigtramp_frame_unwind;
>   char *name;
> 
>   find_pc_partial_function (pc, &name, NULL, NULL);
>   if (gdbarch_pc_in_sigtramp (current_gdbarch, pc, name))
>     return unwind_sigtramp;
>   else if (cfi_have_unwind_info (pc))
>     return unwind_cfi;   /* Returns NULL here...  */
>   else
>     return unwind_asm;
> }

The function x86-64-tdep.c:x86_64_frame_p() should contain:
	return x86_64_unwind;

The file/function dwarf2cfi-frame.c:dwarf2cfi_frame_p() should contain:
	if (cfi_have_unwind_info (pc))
	     return dwarf2cfi_unwind;

(Assuming sigtramps are os specific) The file/function 
x86-64-linux-tdep.c:x86_64_linux_sigtramp_frame_p() should contain:
 >   if (gdbarch_pc_in_sigtramp (current_gdbarch, pc, name))
 >     return x86_64_linux_sigtramp_unwind;

Andrew



      reply	other threads:[~2003-03-07 16:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-06 23:06 Michal Ludvig
2003-03-07 15:25 ` Andrew Cagney
2003-03-07 15:48   ` Michal Ludvig
2003-03-07 16:32     ` 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=3E68C9A8.8070601@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mludvig@suse.cz \
    /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