external functions' type info

Golubev I. N. gin-nospam@mo.msk.ru
Tue Nov 2 07:16:00 GMT 1999


Version: 2.95.2
System: alpha-dec-osf4.0f

Assume that I have no system libraries built with debug info.

Is there a way to cause `gcc -g' to generate debugging information
about functions that are declared external, e. g., malloc(), so that
they may be called in debugger without having to use explicit type
conversions for saving their return value?  It is especially
burdensome on 64- bit architectures, since default function retval
type (int) differs from pointer in size and implicit type conversions
do not work, e. g., in gdb-4.18.

Putting asm directives in translation units explicitly is also
burdensome.  But creating `once and for ever' some additional objects'
set that describe functions and vars of libc and so on is good
enough.  Is there a way to create such an object using declarations
from system header(s)?

Please reply by mail.  Remove the obvious from the email address.


More information about the Gcc-help mailing list