Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB/MI absolute path
@ 2003-02-06 21:55 Bob Rossi
  2003-02-06 22:13 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Rossi @ 2003-02-06 21:55 UTC (permalink / raw)
  To: gdb

Hello,

I've asked this question twice on the gdb mailing list, and received no
response.  Does anyone know the answer?

I am tring to successfully get positive information out of GDB/MI.

Should I be using gdb-5.3 or the latest cvs? They act different.

Also, what is the best way to ask mi for the absolute path to the
current source file. This wasn't a problem using annotate 1 or 2, and I
can't figure out how to get it using mi.

I used to just do this:
(gdb) list test.c:1,1
1  #include <stdio.h>
(gdb) info source
Current source file is test.c
Compilation directory is /home/bob/cvs/gdb/gdb/
Located in /home/bob/cvs/gdb/gdb/test.c
Contains 9 lines.
Source language is c.
Compiled with stabs debugging format.
(gdb)

But with mi I get this:
(gdb)
list test.c:1,1
&"list test.c:1,1\n"
^done,line="1",file="test.c"
(gdb)
info source
&"info source\n"
~"Current source file is test.c\n"
~"Compilation directory is /home/bob/cvs/gdb/gdb/\n"
~"Source language is c.\n"
~"Compiled with stabs debugging format.\n"
~"Does not include preprocessor macro info.\n"
^done
(gdb)

GDB/MI does not have the 'Located in' section. Is this done on purpose?
I am looking at gdb/mi/mi-cmds.c for a command that would be helpfull
but I don't see any.

Thanks,
Bobby


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <1044623213.10462.ezmlm@sources.redhat.com>]

end of thread, other threads:[~2003-02-07 18:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-06 21:55 GDB/MI absolute path Bob Rossi
2003-02-06 22:13 ` Keith Seitz
2003-02-07 13:06   ` Bob Rossi
     [not found] <1044623213.10462.ezmlm@sources.redhat.com>
2003-02-07 18:04 ` Jim Ingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox