Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Wiljan Derks" <Wiljan.Derks@zonnet.nl>
To: "Joel Brobecker" <brobecker@adacore.com>,
		"Robert Dewar" <dewar@adacore.com>, 	<gdb@sourceware.org>,
		"Mark Kettenis" <kettenis@gnu.org>
Subject: Re: How to tell gdb about dlls using remote protocol
Date: Mon, 05 Feb 2007 20:34:00 -0000	[thread overview]
Message-ID: <000801c74965$087eca00$9600000a@kamer> (raw)
In-Reply-To: <20070202173456.GT17864@adacore.com>

I totoally agree with Joel that some practical approach is needed to make 
tracebacks
from code of which no information is available since usually most of the 
treads are somewhere
in a windows dll when stopping things.
The patch of Joel is based on a procedure that checks if code is in a known 
dll.
This is exactly what got me into problems when trying to make tracebacks 
using the gdb remote
interface on windows.
Because the gdb remote protocol does not allow to inform gdb about the dll's 
in de debugee,
this patch does not work in that case.
For that reason, I modified the code so that I check if the pc is inside one 
of the sections of the program.
If it is not, I use the same unwinding as used in Joels patch when the pc is 
detected to be in some dll.
This avoids having knowledge about the dlls in gdb and still gives the same 
tracebacks.
I guess the result is the same as for Joels patch, except that now also the 
remote protocol works
because gdb does not need to have knowledge on the dlls.

This patch made things work for me using the remote protocol of gdb.

What do you think of this approach ?

Wiljan


  reply	other threads:[~2007-02-05 20:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-31 21:08 Wiljan Derks
2007-01-31 22:31 ` Daniel Jacobowitz
2007-02-01 17:52   ` Joel Brobecker
2007-02-01 22:54     ` Daniel Jacobowitz
2007-02-01 23:02       ` Joel Brobecker
2007-02-01 23:59         ` Daniel Jacobowitz
2007-02-02  6:20           ` Robert Dewar
2007-02-02 11:43             ` Daniel Jacobowitz
2007-02-02 16:51               ` Joel Brobecker
2007-02-02 16:56                 ` Daniel Jacobowitz
2007-02-02 17:34                   ` Joel Brobecker
2007-02-05 20:34                     ` Wiljan Derks [this message]
2007-02-05 21:21                       ` Joel Brobecker
2007-02-07 21:47                     ` Mark Kettenis
2007-02-07 22:14     ` Mark Kettenis
2007-02-07 22:17       ` Daniel Jacobowitz
2007-02-08 21:14         ` Mark Kettenis
2007-02-08 23:00           ` Daniel Jacobowitz
2007-02-14  8:51             ` Joel Brobecker

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='000801c74965$087eca00$9600000a@kamer' \
    --to=wiljan.derks@zonnet.nl \
    --cc=brobecker@adacore.com \
    --cc=dewar@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=kettenis@gnu.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