[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Font lock in GUD buffer
From: |
Nick Roberts |
Subject: |
Font lock in GUD buffer |
Date: |
Thu, 17 Jan 2008 13:19:12 +1300 |
I would like to be able to vist file locations from the GUD buffer.
By way of illustration consider a program myprog compiled with -g3 (macro
information) and with the header math.h included:
(gdb) start
Breakpoint 1 at 0x80485bb: file myprog.c, line 83.
Starting program: /home/nickrob/myprog
main (argc=1, argv=0xbfe13914) at myprog.c:83
(gdb) info macro M_PI
Defined at /usr/include/math.h:355
included at /home/nickrob/myprog.c:4
#define M_PI 3.14159265358979323846
(gdb)
If you do "M-x compilation-minor-mode" the locations myprog.c:83,
/usr/include/math.h:355 and /home/nickrob/myprog.c:4 are in red and underlined.
If you click on them you can visit them in another buffer. Of course, you have
to turn off compilation-minor-mode to continue the debug session. Also when
you do this you find that the mouse-face and help-echo have disappeared from
previous input commands, presumably due to some interaction with
font-lock-mode.
Does anyone know how to do this cleanly?
--
Nick http://www.inet.net.nz/~nickrob
- Font lock in GUD buffer,
Nick Roberts <=