From: Bob Rossi <bob_rossi@cox.net>
To: gdb@sources.redhat.com
Subject: GDB/MI absolute path
Date: Thu, 06 Feb 2003 21:55:00 -0000 [thread overview]
Message-ID: <20030206215525.GC7441@white> (raw)
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
next reply other threads:[~2003-02-06 21:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-06 21:55 Bob Rossi [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030206215525.GC7441@white \
--to=bob_rossi@cox.net \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox