all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gdb-ui can't handle mutiple debugging sessions
@ 2004-09-12 20:06 Andreas Schwab
  2004-09-12 22:12 ` Nick Roberts
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Schwab @ 2004-09-12 20:06 UTC (permalink / raw)
  Cc: emacs-devel

When trying to use two debugging sessions at the same time gdb-ui gets
completely confused.  As soon as I start the second session all input is
sent to it, even when typed in the window of the first session.  This is a
serious regression compared the old interface.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: gdb-ui can't handle mutiple debugging sessions
@ 2004-09-15 13:22 Zoltan Kemenczy
  0 siblings, 0 replies; 17+ messages in thread
From: Zoltan Kemenczy @ 2004-09-15 13:22 UTC (permalink / raw)


Another example where multiple debugging sessions are used is concurrent java / c debugging.

In this case a java application (debuggee 1) at some point loads one of the native code extensions (shared library, DLL (debugee 2).  The trouble here is that, because the native code runs from a shared library, one has to stop the java application just after the DLL had been loaded (jdb), and then attach to the native code process using gdb to set breakpoints.  While debugging the native code, the jdb session is active and waiting for the native code to return control...  This can't be performed in a serial fashion.

Regards,
Zoltan Kemenczy

> Message: 4
> Date: Wed, 15 Sep 2004 13:10:06 +0900 (JST)
> From: Kenichi Handa <handa@m17n.org>
> Subject: Re: gdb-ui can't handle mutiple debugging sessions
> To: nickrob@gnu.org
> Cc: schwab@suse.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org
> Message-ID: <200409150410.NAA16483@etlken.m17n.org>
> Content-Type: text/plain; charset=US-ASCII
> 
> In article <000401c49ad5$e94a78e0$bc9260cb@h>, Nick Roberts 
> <nickrob@gnu.org> writes:
> >>  I'm writing a C library.  I also wrote several programs that
> >>  use that library to test it.  So, it's important for me to
> >>  use a single Emacs session to run those test programs under
> >>  multiple gdb sessions...  
> 
> > Why can't you test the library with your programs in a 
> serial fashion?
> > Do you really need to start the second test before 
> finishing the first?
> 
> Because I must confirm that a bug fix for test 2 doesn't
> break test 1.
> 
> ---
> Ken'ichi HANDA
> handa@m17n.org
> 

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: gdb-ui can't handle mutiple debugging sessions
@ 2004-09-15 21:08 Nick Roberts
  0 siblings, 0 replies; 17+ messages in thread
From: Nick Roberts @ 2004-09-15 21:08 UTC (permalink / raw)
  Cc: emacs-devel

> Another example where multiple debugging sessions are used is concurrent
java / c debugging.

> In this case a java application (debuggee 1) at some point loads one of
the native code extensions (shared
> library, DLL (debugee 2).  The trouble here is that, because the native
code runs from a shared library, one
> has to stop the java application just after the DLL had been loaded (jdb),
and then attach to the native code
> process using gdb to set breakpoints.  While debugging the native code,
the jdb session is active and
> waiting for the native code to return control...  This can't be performed
in a serial fashion.

Can you currently do this with 'gdb -fullname' in CVS Emacs
or with Emacs 21.3 with 'M-x gdb' (which also uses -fullname)?

Nick

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: gdb-ui can't handle mutiple debugging sessions
@ 2004-09-15 22:05 Zoltan Kemenczy
  2004-09-15 22:16 ` Stefan Monnier
  0 siblings, 1 reply; 17+ messages in thread
From: Zoltan Kemenczy @ 2004-09-15 22:05 UTC (permalink / raw)
  Cc: emacs-devel

Yes. For the java application I used M-x jdb with the default 'jdb -attach javadebug' parameters, and M-x gdb used 'gbd -fullname' (the 'attach' and 'dll' gdb commands are used subsequently in the *gud* buffer to specify the dll file and process id).
I was able to do this with emacs-CVS and and emacs-21.3.
Zoltan
> -----Original Message-----
> From: Nick Roberts [mailto:nickrob@gnu.org]
> Sent: September 15, 2004 5:08 PM
> To: Zoltan Kemenczy
> Cc: emacs-devel@gnu.org
> Subject: RE: gdb-ui can't handle mutiple debugging sessions
> 
> 
> > Another example where multiple debugging sessions are used 
> is concurrent
> java / c debugging.
> 
> > In this case a java application (debuggee 1) at some point 
> loads one of
> the native code extensions (shared
> > library, DLL (debugee 2).  The trouble here is that, 
> because the native
> code runs from a shared library, one
> > has to stop the java application just after the DLL had 
> been loaded (jdb),
> and then attach to the native code
> > process using gdb to set breakpoints.  While debugging the 
> native code,
> the jdb session is active and
> > waiting for the native code to return control...  This 
> can't be performed
> in a serial fashion.
> 
> Can you currently do this with 'gdb -fullname' in CVS Emacs
> or with Emacs 21.3 with 'M-x gdb' (which also uses -fullname)?
> 
> Nick
> 
> 
> 

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: gdb-ui can't handle mutiple debugging sessions
@ 2004-09-16  0:05 Zoltan Kemenczy
  2004-09-16 13:58 ` Stefan
  0 siblings, 1 reply; 17+ messages in thread
From: Zoltan Kemenczy @ 2004-09-16  0:05 UTC (permalink / raw)
  Cc: Nick Roberts, emacs-devel

No.  And my emacs is a snapshot from CVS on Sep 1, built using mingw (not cygwin).

Ofcourse, jdb (in *gud-javadebug*) is 'dead' while I'm e.g single-stepping native (C) code (as expected), and as soon as I do 'cont' in gdb (in *gud*), my *gud-javadebug* gets control back...

What kind of problems should I be looking for? I am not using gdb-ui in any way during the above.
My original email was just to point out a need for supporting multiple gud session within emacs...

Zoltan

P.S.: It took me a while to 'dust'-off the java/native c code application.  Loading native dlls built with later cygwin gccs (starting at version 3.3.1) fails with JDK 1.4.2, so I had to go back to gcc 3.2 prerelease which still works with this JDK.

> -----Original Message-----
> From: Stefan Monnier [mailto:monnier@iro.umontreal.ca]
> Sent: September 15, 2004 6:17 PM
> To: Zoltan Kemenczy
> Cc: Nick Roberts; emacs-devel@gnu.org
> Subject: Re: gdb-ui can't handle mutiple debugging sessions
> 
> 
> > Yes. For the java application I used M-x jdb with the 
> default 'jdb -attach
> > javadebug' parameters, and M-x gdb used 'gbd -fullname' 
> (the 'attach' and
> > 'dll' gdb commands are used subsequently in the *gud* 
> buffer to specify
> > the dll file and process id).
> > I was able to do this with emacs-CVS and and emacs-21.3.
> 
> And after the M-x gdb step, have you noticed any problems in 
> the jdb buffer?
> 
> 
>         Stefan
> 

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

end of thread, other threads:[~2004-09-17  4:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-12 20:06 gdb-ui can't handle mutiple debugging sessions Andreas Schwab
2004-09-12 22:12 ` Nick Roberts
2004-09-12 22:49   ` Stefan
2004-09-12 23:32     ` Andreas Schwab
2004-09-12 23:44       ` Miles Bader
2004-09-13  3:17       ` Stefan
2004-09-14  1:33     ` Nick Roberts
2004-09-14  2:19       ` Kenichi Handa
2004-09-15  3:39         ` Nick Roberts
2004-09-15  4:10           ` Kenichi Handa
  -- strict thread matches above, loose matches on Subject: below --
2004-09-15 13:22 Zoltan Kemenczy
2004-09-15 21:08 Nick Roberts
2004-09-15 22:05 Zoltan Kemenczy
2004-09-15 22:16 ` Stefan Monnier
2004-09-16  0:05 Zoltan Kemenczy
2004-09-16 13:58 ` Stefan
2004-09-17  4:17   ` Nick Roberts

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.