Bug 72609

Summary: gdb mode won't display current line marker
Product: [Retired] Red Hat Public Beta Reporter: Alexandre Oliva <aoliva>
Component: emacsAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED DUPLICATE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: nullCC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-26 04:19:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexandre Oliva 2002-08-26 04:19:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Description of problem:
The GDB (gud) mode in earlier releases of GNU Emacs (say 20.7) would display a
`=>' overlay in the beginning of the line being executed in a C program.  The
current version does not.

At first, I thought it was being smart and taking advantage of the fact that, on
X, it might as well just position the cursor on the active line, and let the
cursor work as the marker.

However, even emacs -nw fails to display the `=>' marker.  Or, more accurately,
it *does* display it, but it's quickly overwritten by something else.  This
makes it almost impossible to run a remote debugging session, since X isn't
really usable over low latencies.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Create a program, say foo.c:
  main () {
  }
2.Compile it with debugging info:
  % gcc -g -o foo foo.c
3.Start emacs in text mode:
  % emacs -nw
4.Start the debugger:
  M-x gdb ENTER foo ENTER
5.Set a breakpoint and start the program
  (gdb) b main
  (gdb) run
6.Try to figure out which is the active line.


Actual Results:  You can't figure it out unless you look at the line number in
the context bar, and translate that info into one of the lines being displayed
(can be tricky in a large file)

Expected Results:  The `=>' overlay should not be overwritten.

Additional info:

Comment 1 Trond Eivind Glomsrxd 2002-08-26 22:15:55 UTC

*** This bug has been marked as a duplicate of 56890 ***