From: Simon Marchi <simon.marchi@polymtl.ca>
To: "Ömer Sinan Ağacan" <omeragacan@gmail.com>
Cc: gdb <gdb@sourceware.org>
Subject: Re: Buildling gdb on Ubuntu 18.04
Date: Thu, 31 Jan 2019 15:54:00 -0000 [thread overview]
Message-ID: <090b2e06f4a14697a57b75e8b0556dfb@polymtl.ca> (raw)
In-Reply-To: <CAMQQO3nYcxW-depU3cbN-dvFzL2AjT+n3dHTdqE2jOfgN0o=2A@mail.gmail.com>
On 2019-01-31 01:22, Ãmer Sinan AÄacan wrote:
>> Which bug are you referring to? Is it something know and documented
>> in
>> Bugzilla?
>
> I don't of if any of these are documented in Bugzilla, but
>
> - gdb sometimes prints more than one newline after a record. According
> to
> section 27.2.2 there should be only one newline.
Oh, can you give a sequence of commands that triggers this?
> - According to 27.2.2 a sequence of records result records should come
> after
> out-of-band record, but I sometimes get a sequence like
> [out-of-bound,
> result, out-of-bound].
I am not sure about the pedantic accuracy of the grammar for this, but I
guess it works because the last out-of-band record can be considered as
before the next result record, that has not yet arrived. The idea is
that out-of-band records can happen pretty much at any time (and they
are not necessarily related to the command you happen to have just
issued previously).
> - According to 27.2.2 a sequence of records should terminate with
> "(gdb)\n" or
> "(gdb)\r\n", but I get "(gdb) \n".
We should check how old versions behaved, but I would guess that in this
case it's the documentation that is wrong, and should include the space.
Would you mind sending a patch for this?
> - Most annoyingly, when I add a breakpoint to a location that
> corresponds to
> multiple locations in the source code (so it leads to adding more
> than one
> breakpoint), the mi syntax gdb prints looks like this
>
> =breakpoint-created,bkpt={...},{...},{...}
>
> which is not valid because a "result" should look like `x=y` so stuff
> after
> the first "result" (`bkpt={...}`) are not actually results.
This last one is the one I aim to fix in
https://sourceware.org/ml/gdb-patches/2019-01/msg00427.html
Can you check if the proposed output makes sense to you?
Simon
prev parent reply other threads:[~2019-01-31 15:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-30 7:41 Ömer Sinan Ağacan
2019-01-30 14:58 ` Simon Marchi
2019-01-30 15:12 ` Ömer Sinan Ağacan
2019-01-30 15:50 ` Simon Marchi
2019-01-30 19:45 ` Ömer Sinan Ağacan
2019-01-30 20:01 ` Simon Marchi
2019-01-31 6:23 ` Ömer Sinan Ağacan
2019-01-31 15:54 ` Simon Marchi [this message]
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=090b2e06f4a14697a57b75e8b0556dfb@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb@sourceware.org \
--cc=omeragacan@gmail.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