Bug 22354 - xemacs does not work with gdb
Summary: xemacs does not work with gdb
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gdb   
(Show other bugs)
Version: 7.0
Hardware: i386 Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2000-12-15 16:39 UTC by Christopher Wong
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-15 18:42:30 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Christopher Wong 2000-12-15 16:39:21 UTC
This bug should be assigned to the xemacs package, but I could not
find the component in the bugzilla components list. These are the 
relevant packages: xemacs-21.1.12-3, emacs-20.7-17, gdb-5.0-7.

XEmacs does not interact with gdb correctly in its debugging mode. 
When I enter debugging mode (M-x gdb), it launches gdb in its
buffer as expected. But no command works. When I type a simple
command like list at its (gdb) prompt, nothing happens. On the 
other hand, emacs works fine.

Comment 1 Trond Eivind Glomsrxd 2000-12-15 17:00:27 UTC
it works just fine here, with simple test programs... can you be more specific?

Comment 2 Christopher Wong 2000-12-15 17:12:20 UTC
I just tried with a simple test case:

#include <stdio.h>

int main(void)
   printf("Hello, sunshine\n");
   printf("Goodbye, rain\n");
   return 0;

This was compiled with gcc -g -o foo and invoked with M-x gdb, "gdb foo". 
This is what the gdb buffer looks like:

Current directory is /tmp/
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) list

But nothing appears after "list". It sort of hangs until I type C-c C-c, upon 
which it writes "Quit" and displays the (gdb) prompt again. There is no other
meaningful output that I can see. Gdb works fine standalone or with Emacs. It
only has trouble with xemacs. ps shows the command line as 
"/usr/bin/gdb --annotate=2 /tmp/foo".

Comment 3 Christopher Wong 2000-12-15 17:22:22 UTC
The problem seems related to jde. Here's how to reproduce:

1. Start xemacs.
2. Load jde. You can simply start editing "foo.java". It does not have 
   to have content.
3. Do M-x gdb on a C executable.

Comment 4 Trond Eivind Glomsrxd 2000-12-15 18:42:27 UTC
As you say, it seems to be related to jde usage. It works just fine when not
using JDE (which then is the obvious workaround).

Comment 5 Trond Eivind Glomsrxd 2001-01-31 23:47:22 UTC
OK, I got no response on the jde mailing list and this would touch a lot JDE -
they're assuming that all debugging will be java debugging. Can't fix that
without major brainsurgery on code.

Workaround: Run standard debugging and java editing in different XEmacs sessions.

Note You need to log in before you can comment on or make changes to this bug.