[PING][PATCH] gdb/elfread.c: Use bfd filename instead of objfile->original_name
Aaron Merey
amerey@redhat.com
Wed Aug 31 00:45:41 GMT 2022
On Tue, Aug 30, 2022 at 2:01 PM Tom Tromey <tom@tromey.com> wrote:
> Thanks, this is ok.
Thanks, pushed as commit 803584b96d9.
> >> > In some cases original_name is prefixed with gdb's working directory
> >> > even though the objfile is not located in the working directory.
>
> Offhand this seems bad.
It looks like this can occur when gdb_abspath converts an executable name
to an absolute path in the objfile ctor. For invocations like `gdb prog`
it assumes the user meant `gdb ./prog` even when prog is found somewhere
else.
Aaron
More information about the Gdb-patches
mailing list