From: Xavier Roirand <roirand@adacore.com>
To: gdb@sourceware.org
Subject: variable displayed twice when using GDB/MI
Date: Tue, 05 Jun 2018 09:49:00 -0000 [thread overview]
Message-ID: <4370e1fc-ec28-0889-85fa-28706ce38630@adacore.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1806042040490.6942@tp.orcam.me.uk>
Hello,
I'm using a simple C program:
void main() {
int i=0;
}
When debugging with MI interpreter, I want to display variable i:
(gdb)
-break-insert main
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000040049b",func="main",file="foo.c",fullname="/tmp/foo.c",line="2",thread-groups=["i1"],times="0",original-location="main"}
(gdb)
-exec-run
[...]
display i
&"display i\n"
~"1: i = 0"
~"\n"
^done
(gdb)
If I do a 'next':
(gdb)
n
&"n\n"
^running
*running,thread-id="all"
(gdb)
~"1: i = 0"
~"\n"
~"3\t}\n"
~"1: i = 0"
~"\n"
[...]
(gdb)
The variable i is displayed twice, is it expected ? Using CLI
interpreter it's displayed only once so I'm wondering if this is
expected or not ?
Regards.
next prev parent reply other threads:[~2018-06-05 9:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-30 17:59 Documentation build regressions Maciej W. Rozycki
2018-05-30 20:12 ` Tom Tromey
2018-05-30 20:56 ` Jan Kratochvil
2018-05-31 17:23 ` Joseph Myers
2018-06-01 14:01 ` Jan Kratochvil
2018-06-01 19:38 ` Joseph Myers
2018-06-04 20:27 ` Maciej W. Rozycki
2018-06-05 9:49 ` Xavier Roirand [this message]
2018-06-07 11:33 ` variable displayed twice when using GDB/MI Pedro Alves
2018-05-31 17:51 ` Documentation build regressions Pedro Alves
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=4370e1fc-ec28-0889-85fa-28706ce38630@adacore.com \
--to=roirand@adacore.com \
--cc=gdb@sourceware.org \
/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