public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Can't attach
@ 2001-07-11  9:56 Laurent Duperval
  2001-07-11  9:58 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Duperval @ 2001-07-11  9:56 UTC (permalink / raw)
  To: Insight Mailing List

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

Hi,

I'm using a version of insight from about an hour ago, on CVS. I'm on Linux
Mandrake 8.0. When I try to attach to a process, nothing happens. No window
dialog shows up, no error message, nothing. Where should I start looking?

L

-- 
Laurent Duperval < mailto:lduperval@microcelli5.com >

La lettre, exsangue et chiffonnée, hors d'haleine mais triomphante, aboutit
enfin entre les mains de celui qui suscita toute l'extraordinaire odyssée
d'émotion que je viens de vous narrer: MOI!
                                             -Achille Talon

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't attach
  2001-07-11  9:56 Can't attach Laurent Duperval
@ 2001-07-11  9:58 ` Keith Seitz
  2001-07-11 10:01   ` Laurent Duperval
  0 siblings, 1 reply; 4+ messages in thread
From: Keith Seitz @ 2001-07-11  9:58 UTC (permalink / raw)
  To: Laurent Duperval; +Cc: Insight Mailing List

On Wed, 11 Jul 2001, Laurent Duperval wrote:

> I'm using a version of insight from about an hour ago, on CVS. I'm on Linux
> Mandrake 8.0. When I try to attach to a process, nothing happens. No window
> dialog shows up, no error message, nothing. Where should I start looking?

Try opening a debug window and checking for errors...

(gdb) tk ManagedWin::open DebugWin

or

$ GDBTK_DEBUG=2 gdb

Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't attach
  2001-07-11  9:58 ` Keith Seitz
@ 2001-07-11 10:01   ` Laurent Duperval
  2001-07-11 10:13     ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Duperval @ 2001-07-11 10:01 UTC (permalink / raw)
  To: Insight Mailing List

On 11 Jul, Keith Seitz wrote:
> Try opening a debug window and checking for errors...
> 
> (gdb) tk ManagedWin::open DebugWin
> 
> or
> 
> $ GDBTK_DEBUG=2 gdb
> 
> Keith

(ManagedWin::_open) AttachDlg 
(ManagedWin::_create) win=attachdlg args=
(ModalDialog::destructor)   UNPOST ::.attachdlg0.attachdlg
(iwidgets::Labeledframe::destructor) In Labeledframe destructor for ::.attachdlg0.attachdlg.cpid, reposition is after#32
(iwidgets::Labeledframe::destructor) Canceling reposition after#32 for ::.attachdlg0.attachdlg.cpid
(iwidgets::Labeledframe::destructor) In Labeledframe destructor for ::.attachdlg0.attachdlg.sym, reposition is after#40
(iwidgets::Labeledframe::destructor) Canceling reposition after#40 for ::.attachdlg0.attachdlg.sym
(ManagedWin::_create) object creation of AttachDlg failed: error reading "file4": interrupted system call
(ManagedWin::_create) error reading "file4": interrupted system call
    while executing
"gets $psH line"
    (object "::.attachdlg0.attachdlg" method "::AttachDlg::list_pids" body line 31)
    invoked from within
"$this list_pids"
    (object "::.attachdlg0.attachdlg" method "::AttachDlg::build_win" body line 74)
    invoked from within
"build_win"
    while constructing object "::.attachdlg0.attachdlg" in ::AttachDlg::constructor (body line 4)
    invoked from within
"AttachDlg .attachdlg0.attachdlg"
    ("eval" body line 1)
    invoked from within
"eval AttachDlg .attachdlg0.attachdlg"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 eval $class $newwin $args"
(global::gdbtk_attach_native) ManagedWin got 0 

-- 
Laurent Duperval < mailto:lduperval@microcelli5.com >

You know that little indestructible black box that is used on planes,
why can't they make the whole plane out of the same substance?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can't attach
  2001-07-11 10:01   ` Laurent Duperval
@ 2001-07-11 10:13     ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2001-07-11 10:13 UTC (permalink / raw)
  To: Laurent Duperval; +Cc: Insight Mailing List

On Wed, 11 Jul 2001, Laurent Duperval wrote:

> (ManagedWin::_create) error reading "file4": interrupted system call
>     while executing
> "gets $psH line"
>     (object "::.attachdlg0.attachdlg" method "::AttachDlg::list_pids" body line 31)
>     invoked from within

Well, this is the (symptom of the) problem...

The AttachDlg simply spawns "ps" and reads the output, line by line. I
presume it does it this way to be frugal with memory... Otherwise, the
alternative is to just exec ps and parse the output all at once. Perhaps
this has a better chance of running on your system?

Now the real question is, why is the read being interrupted (by what
signal?)? I dunno.

Do you have a RH box around to try your version of gdb on? If not, could
you put a tarball somewhere for me to try it?

FWIW, this works just fine with my RH7.0 box.

Afraid I dunno what else to say...
Keith

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-11 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-11  9:56 Can't attach Laurent Duperval
2001-07-11  9:58 ` Keith Seitz
2001-07-11 10:01   ` Laurent Duperval
2001-07-11 10:13     ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).