bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB will not resolve symbols for Sun WS's CC without -xs


From: Andrew Ballantyne
Subject: GDB will not resolve symbols for Sun WS's CC without -xs
Date: Sun, 5 Aug 2001 22:28:37 +0100

Hi,

I've found that gdb 5.0 will not resolve the symbols of a binary built
without the flag '-xs'. Here's the blurb from the 'CC's manpage about this
option..

   -xs       Disables Auto-Read for dbx.  Use this option in
               case you cannot keep the .o files around.  This
               option passes -s to the assembler.
               "No Auto-Read" is the older way of loading symbol
               tables. It places all symbol tables for dbx in the
               executable file.  The linker links more slowly,
               and dbx initializes more slowly.
               Auto-Read is the newer and default way of loading
               symbol tables. With Auto-Read, the information is
               distributed in the .o files, so that dbx loads the
               symbol table information only if and when it is
               needed. Hence, the linker links faster, and dbx
               initializes faster.
               With -xs , if you move executables to another
               directory, then to use dbx, you must also move the
               source files.  You can, however, ignore the object
               ( .o ) files.
               Without -xs , if you move the executables, then
               you must move both the source files and the object
               ( .o ) files, or set the path with the dbx pathmap

Is this an known bug/limitation and has it been fixed or will it be?

cheers,
Andrew Ballantyne





reply via email to

[Prev in Thread] Current Thread [Next in Thread]