Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Paul Koning" <Paul_Koning@Dell.com>
To: "Frédéric RISS" <frederic.riss@gmail.com>,
	"Michael Eager" <eager@eagerm.com>
Cc: <gdb@sourceware.org>
Subject: RE: Backtrace from kernel to user space in coredump
Date: Sat, 12 Jun 2010 16:16:00 -0000	[thread overview]
Message-ID: <D8CEBB6AE9D43848BD2220619A43F32665BBEE@M31.equallogic.com> (raw)
In-Reply-To: <1276355966.1798.3.camel@localhost.localdomain>

I've done just what you describe for MIPS, by adding a bunch of code to the prologue analyzers.  The user space symbols are a bit of a hassle, not so much for the program itself (add-symbol-file is easy enough for that) but because of the shared libraries (if you have those -- in my case it was NetBSD so that did matter).

	paul

> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of Frédéric RISS
> Sent: Saturday, June 12, 2010 11:19 AM
> To: Michael Eager
> Cc: gdb@sourceware.org
> Subject: Re: Backtrace from kernel to user space in coredump
> 
> Le samedi 12 juin 2010 à 06:06 -0700, Michael Eager a écrit :
> > Are there better ways to do this?   How have other
> > people handled traces back from kernel to user space?
> 
> It's more heavyweight than just setting the registers, but it's quite
> easy to add specific unwinders for syscalls, exceptions, interrupts...
> And this works very nicely (well, the real difficulty is to have GDB
> load the debug information for the appropriate userspace task, but
> that's maybe not an issue in your case).
> 
> Fred
> 


  reply	other threads:[~2010-06-12 16:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-12 13:06 Michael Eager
2010-06-12 15:19 ` Frédéric RISS
2010-06-12 16:16   ` Paul Koning [this message]
2010-06-14  3:18     ` Michael Eager
2010-06-14  7:23 ` Hui Zhu

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=D8CEBB6AE9D43848BD2220619A43F32665BBEE@M31.equallogic.com \
    --to=paul_koning@dell.com \
    --cc=eager@eagerm.com \
    --cc=frederic.riss@gmail.com \
    --cc=gdb@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