Re: [PATCH] Fix coff symbol table reading problem for C code compiled by g++

Eli Zaretskii
2004-08-21T12:19:35Z

> Date: Sun, 15 Aug 2004 02:29:40 +0200 (CEST)
> From: Ton van Overbeek <v-overbeek@cistron.nl>
>
> Here is a script illustrating the problem. Since I am working on a gdb-6.x
> port for m68k-palmos the script is m68k-palmos specific (main has to be
> called PilotMain), but it should be easy to adapt to the general case.

I tried to reproduce this problem with GCC 2.95.2, but couldn't see
the problem: an unpatched GDB 6.1 reported "f(void)" instead of
"g__Fv". Perhaps the problem was solved in GCC 2.95.2, or it is
specific to the m68k-palmos port.

Nevertheless, I cannot see any problems with the proposed patch, so as
a maintainer of one of the few GDB ports that use COFF debugging info,
I recommend this patch for being accepted.

Jim and Elena, could you please review this and approve it if you
don't have any objections?