[PATCH v2] gdb: Change "list ." command's error when no debuginfo is available
Eli Zaretskii
eliz@gnu.org
Thu Apr 18 05:10:29 GMT 2024
> Date: Wed, 17 Apr 2024 16:57:32 -0300
> Cc: gdb-patches@sourceware.org, simark@simark.ca
> From: Guinevere Larsen <blarsen@redhat.com>
>
> On 4/17/24 16:26, Eli Zaretskii wrote:
> >>>>
> >>>> (gdb) list .
> >>>> No debug information available to print source lines at current PC (0x55555555511d).
> >>>> or
> >>>> (gdb) list .
> >>>> No debug information available to print source lines at default location.
> >>>>
> >>>> The difference now is if the inferior has started already, which is
> >>>> controlled by the user and may be useful.
> >>> How about this text instead:
> >>>
> >>> Insufficient debug info for showing source lines at current PC (0x55555555511d).
> >>>
> >> You mean this change only for the error when the inferior has already
> >> started, or to the prefix of both errors?
> >>
> >> Seeing as the errors are for the same root cause, I'd like to keep the
> >> prefix the same.
> > I'm afraid I don't understand what is the "prefix" in this case.
> >
> Sorry, I meant the start of the sentence. I wasn't sure if you were
> suggesting the errors should be
>
> Insufficient debug info for showing source lines at current PC
> (0x55555555511d).
> No debug information available to print source lines at default
> location.
>
> Or if you meant that they should both be changed to start with
> "insufficient debug info (...)".
I meant to make both begin with "Insufficient debug info", yes.
> I think I prefer this second option,
So we agree.
More information about the Gdb-patches
mailing list