Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "J. Johnston" <jjohnstn@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com,
	Andrew Cagney <ac131313@redhat.com>,
	kevinb@redhat.com, davidm@hpl.hp.com
Subject: Re: getunwind syscall
Date: Fri, 31 Oct 2003 21:02:00 -0000	[thread overview]
Message-ID: <3FA2CDDB.9020703@redhat.com> (raw)
In-Reply-To: <20031031200126.GA6723@nevyn.them.org>



Daniel Jacobowitz wrote:
> On Fri, Oct 31, 2003 at 02:28:10PM -0500, J. Johnston wrote:
> 
>>More info from David.
> 
> 
> So the getunwind syscall returns data from the gate DSO?  I was under
> the impression it was some register backing store, or similar.  In that
> case Roland's patches for the same issue on x86 should be persued
> instead of using the syscall.
> 
> 

I don't believe that level of complexity is required.  The syscall is only used 
if we fail the find_pc_section() call.  Admittedly, Andrew has comments 
regarding replacing the find_pc_section() and accompanying bfd calls but that is 
an orthogonal issue.  The x86 problem is different in my mind in that gdb 
doesn't have other recourse.  Per comments, I have already changed the syscall 
in ia64-tdep.c to be a call to to_read_partial() which for linux ends up being 
mapped to the syscall within the ia64-linux-nat.c code (I haven't reposted a 
change yet as I want to also get the bfd stuff cleared up too).  Failing all of 
this, the regular prologue examination methods still come into play and they are 
good enough to match libunwind for the gdb testsuite.

-- Jeff J.

>>
>>-------- Original Message --------
>>
>>
>>>>>>>On Thu, 30 Oct 2003 14:20:13 -0500, "J. Johnston" 
>>>>>>><jjohnstn@redhat.com> said:
>>
>>  >> Nothing which involves a syscall is acceptable in a tdep file.
>>  >> That's what the t means - target support.
>>
>>  Andrew> Is this information available via /proc?  In a core file?
>>
>>The unwind info for the Linux kernel does get included in the
>>core-dump (see Roland McGrath's work on this), but it is not available
>>via /proc.  Note that in the future, it won't be necessary to do a
>>syscall.  Instead, the kernel's unwind info will be available (to the
>>running process) via dl_iterate_phdr().  I'm not sure though how this
>>is supposed to be made accessible to programs such as gdb.
>>
>>	--david
>>
>>
> 
> 


  reply	other threads:[~2003-10-31 21:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-31 19:28 J. Johnston
2003-10-31 20:01 ` Daniel Jacobowitz
2003-10-31 21:02   ` J. Johnston [this message]
2003-10-31 22:49   ` David Mosberger
2003-10-31 21:42 ` Marcel Moolenaar
2003-10-31 23:01   ` David Mosberger

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=3FA2CDDB.9020703@redhat.com \
    --to=jjohnstn@redhat.com \
    --cc=ac131313@redhat.com \
    --cc=davidm@hpl.hp.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.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