Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Dave Trollope <trollope@lucent.com>
To: David Steven Trollope <trollope@lucent.com>
Cc: gdb@sources.redhat.com
Subject: Re: Intrusive GDB Symbol Lookup when debugging remotely
Date: Sat, 22 Jan 2005 04:25:00 -0000	[thread overview]
Message-ID: <41F1D5C2.9040005@lucent.com> (raw)
In-Reply-To: <41E5E102.2010703@lucent.com>

Hello,

No-one responded to this, but I'm sure someone on this list understands 
how difficult it would be to implement a new handler for a signal to run 
gdb in a "Local" mode when connected to a gdbserver. I'd really 
appreciate an estimate of how much effort this would be, or where in the 
code to start looking.

Cheers
Dave
David Steven Trollope wrote:

> Hello!
>
> I'm trying to determine if there exists an alternative solution, or a 
> patch for the following problem, or if someone familiar with the GDB 
> source can estimate how much work it would be to implement a patch. 
> Any advice would be welcome and appreciated.
>
>
> Configuration:
>
> GDB running on a Sun Solaris machine.
> GDBServer running on a PowerPC Linux machine
> The application is running on the target in GDBServer and GDB is 
> connected to the target using "target remote x.x.x.x:y"
>
> Problem:
>
> While the target is running, I don't think it is possible to examine 
> the symbol table from within gdb without sending an interrupt signal 
> to GDB. This is a problem because users (and frontends) don't seem to 
> be able to look up symbols in the symbol table in GDB without 
> interrupting the target.
>
> In theory, it would be possible to stop the interrupt being propogated 
> to the server and hence the target could remain running without 
> interruption. One possible way of solving this would be to use a 
> different signal as a "Non-intrusive interrupt" or "Local Interrupt". 
> The symbol lookup can occur, and then gdb resumes. This would imply 
> gdb would need to know if its running in "Local" or "Remote" mode to 
> prevent operations trying to access the target.
>
> An alternative mechanism could be to have a separate thread that runs 
> and is signalled for non-intrusive operations.
>
> You might ask why not just run a separate gdb instance to do this kind 
> of look up? However, I am dealing with large executables where loading 
> separate instances for the sake of a symbol lookup is neither 
> efficient, timely or practical.
>
> I would very much appreciate discussion on this topic with regard to 
> feasibility, if its been done already or how much effort it would be 
> to implement this type of functionality.
>
> Cheers
> Dave Trollope
>


  reply	other threads:[~2005-01-22  4:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1093622671.2836.ezmlm@sources.redhat.com>
2004-08-27 17:56 ` GDB/MI Output Syntax Jim Ingham
2004-08-27 19:12   ` Michael Chastain
2005-01-05 23:27     ` Bob Rossi
2005-01-06  4:48       ` Eli Zaretskii
2005-01-06 23:31         ` Bob Rossi
2005-01-07  0:36           ` Jim Ingham
2005-01-07  1:12             ` Bob Rossi
2005-01-07  3:12               ` Russell Shaw
2005-01-11 19:35                 ` Bob Rossi
2005-01-13  2:23                   ` Bob Rossi
2005-01-13  2:46                   ` Intrusive GDB Symbol Lookup when debugging remotely David Steven Trollope
2005-01-22  4:25                     ` Dave Trollope [this message]
2005-01-24 19:48                       ` Andrew Cagney
2005-01-24 19:54                         ` David Steven Trollope
2005-03-18 16:29                     ` Linux Realtime Scheduling Option David Steven Trollope
2005-03-18 18:12                       ` Daniel Jacobowitz
2005-03-21 19:21                         ` David Steven Trollope
2005-03-21 19:33                           ` Daniel Jacobowitz
2005-03-22  3:04                             ` Dave Trollope
2005-03-22  4:06                               ` Daniel Jacobowitz

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=41F1D5C2.9040005@lucent.com \
    --to=trollope@lucent.com \
    --cc=gdb@sources.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