Re: [PATCH] Fix call functions command bug in 64-bit programs for AIX and PC read in psymtab-symtab warning

Ulrich Weigand via Gdb-patches
2023-04-27T12:23:37Z

>We see that gcc 10 has this debug symbol which is copied in every binary compiled with gcc 10.
>
>But if I use gcc 11 whose debug format is dwarf and -g compiled this symbol is as below. And I do not see that bug anymore.

Well, that's not surprising given that the bug was in the
GDB stabs handling code - if you don't use stabs you of
course won't see the bug.

>So this looks like a gcc problem..

I don't see how this is a GCC problem? The stabs code
emitted by GCC seems fine according to the specs, it's
GDB that isn't handling it correctly.

Bye,
Ulrich