This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

symtab/2413: If a file is Compiled as .o first and .out finally, with -g option, GDB reports (no debugging symbols found), however dbx works fine with the same file. Further if the file is compiled in single go from .cpp to .out gdb reports no such error


>Number:         2413
>Category:       symtab
>Synopsis:       If a file is Compiled as .o first and .out finally, with -g option, GDB reports (no debugging symbols found), however dbx works fine with the same file. Further if the file is compiled in single go from .cpp to .out gdb reports no such e
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 09 11:28:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Tested on 6.7.1 (and the latest available source in cvs)
>Release:        unknown-1.0
>Organization:
>Environment:
SunOS 5.8 Generic_117000-05 sun4u sparc SUNW,Ultra-80
Following is the compiler:
/usr/local/CRFS/solaris2.8-sunpro5.3/THIRDPARTY_SUNSTUDIO9/0_0_3/bin/SUNWspro/prod/bin/CC
>Description:
Please find details inline as /*comments*/

src> CC -c -g test.cpp -o test.o
src> CC -g test.o
src> gdb a.out
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(no debugging symbols found)
(gdb) quit
src> dbx a.out  /*Trying same file with DBX*/
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.3' in your .dbxrc
Reading a.out
Reading ld.so.1
Reading libm.so.1
Reading libc.so.1
Reading libdl.so.1
Reading libc_psr.so.1
(dbx) quit
/*Here is the interesting part*/
/*If I compile the same file in one go from .cpp to .out*/
/*GDB would work fine!!!!*/
skumar58@sos36a-3401 /home/users/bud/skumar58/test1/src> CC -g test.cpp
skumar58@sos36a-3401 /home/users/bud/skumar58/test1/src> gdb a.out
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) /*Note : no warmning */
>How-To-Repeat:
Please refer Description. 
I built the GDB using "cc" c-compiler since with "CC" the C-plus-plus-compiler the build fails. Following is the c-compiler used to build GDB.
/usr/local/CRFS/solaris2.8-sunpro5.3/THIRDPARTY_SUNSTUDIO9/0_0_3/bin/SUNWspro/prod/bin/CC
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 rror  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]