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]

Re: gdb/2172: gdb-6.5 solaris 10 x86 i86pc 64-bit support, prerequesuites,install


The following reply was made to PR gdb/2172; it has been noted by GNATS.

From: Alois Wiedenhofer <a.wiedenhofer@culturall.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: alois.wiedenhofer@culturall.com, gdb-gnats@sources.redhat.com,
   alois.wiedenhofer@aon.at
Subject: Re: gdb/2172: gdb-6.5 solaris 10  x86 i86pc 64-bit support, prerequesuites,
 install
Date: Tue, 19 Sep 2006 18:14:49 +0200

 Hello,
 
 we run Solaris 10 on x86, SUN galaxy machine ( AMD Processors ) with 
 Oracle 10R2, all 64-bit and have to analyze an oracle core dump,
 get the Stack trace of the core file and send it to Oracle.
 
 I am new to gdb sorry:
 The question first is: is gdb supported on Solaris 10 x86 to debug 
 64-bit applications ?
 If yes, how to compile id and are the some prerequsites
 
 our compiler (shipped with SUN OS )
 
     (oracle@chsrv1:CHDB1) $ gcc -v
     Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
     Configured with:
     /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
     --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
     --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
     --enable-shared
     Thread model: posix
     gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
     (oracle@chsrv1:CHDB1) $
 
 
 downloaded gdb-6.5
 
 what i did::
 
 *export CFLAGS="-m64 -g -O2"*
 .*/configure*
 *make all* ... produces some warnings
 *make install*
 
 *su - oracle*
 
 (oracle@chsrv1:CHDB1) $ *which gdb*
 /usr/local/bin/gdb
 (oracle@chsrv1:CHDB1) $ *file /usr/local/bin/gdb*
 /usr/local/bin/gdb:     ELF 64-bit LSB executable AMD64 Version 1, 
 dynamically linked, not stripped
 (oracle@chsrv1:CHDB1) $ *gdb /opt/oracle/product/10.2.0/bin/ocssd.bin 
 /opt/oracle/product/10.2.0/log/chsrv1/cssd/core*
 GNU gdb 6.5
 Copyright (C) 2006 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i386-pc-solaris2.10"...(no debugging symbols 
 found)
 
 BFD: /usr/lib/amd64/ld.so.1: don't know how to handle OS specific 
 section `.SUNW_syminfo' [0x6ffffffc]
 
 warning: Unable to grok dynamic linker /usr/lib/amd64/ld.so.1 as an 
 object file
 
 warning: Unable to find dynamic linker breakpoint function.
 GDB will be unable to debug shared library initializers
 and track explicitly loaded dynamic code.
 Core was generated by `/opt/oracle/product/10.2.0/bin/ocssd.bin'.
 Program terminated with signal 6, Aborted.
 #0  0xfffffd7ffdb8de5a in ?? ()
 (gdb) *bt*
 #0  0xfffffd7ffdb8de5a in ?? ()
 Cannot access memory at address 0xfffffd7ffc1fdde8
 (gdb) *thread apply all where*
 
 Thread 11 (process 789462    ):
 #0  0xfffffd7ffdb8acf7 in ?? ()
 Cannot access memory at address 0xfffffd7ffc3fdcb8
 
 Thread 10 (process 723926    ):
 #0  0xfffffd7ffdb8acf7 in ?? ()
 Cannot access memory at address 0xfffffd7ffc5fdcb8
 
 Thread 9 (process 658390    ):
 #0  0xfffffd7ffdb8d99a in ?? ()
 Cannot access memory at address 0xfffffd7ffc7fcf58
 
 Thread 8 (process 592854    ):
 #0  0xfffffd7ffdb8acf7 in ?? ()
 Cannot access memory at address 0xfffffd7ffc9fdd58
 
 Thread 7 (process 527318    ):
 #0  0xfffffd7ffdb8d99a in ?? ()
 Cannot access memory at address 0xfffffd7ffcbfd2b8
 
 Thread 6 (process 461782    ):
 #0  0xfffffd7ffdb8acf7 in ?? ()
 Cannot access memory at address 0xfffffd7ffcdfdd58
 
 Thread 5 (process 396246    ):
 #0  0xfffffd7ffdb8d99a in ?? ()
 Cannot access memory at address 0xfffffd7ffcffcd38
 
 Thread 4 (process 330710    ):
 #0  0xfffffd7ffdb8acf7 in ?? ()
 Cannot access memory at address 0xfffffd7ffd1fde18
 
 Thread 3 (process 134102    ):
 #0  0xfffffd7ffdb8acf7 in ?? ()
 Cannot access memory at address 0xfffffd7ffd5fde18
 
 Thread 2 (process 68566    ):
 #0  0xfffffd7ffdb8d99a in ?? ()
 Cannot access memory at address 0xfffffd7fffdfe8c8
 
 Thread 1 (process 854998    ):
 #0  0xfffffd7ffdb8de5a in ?? ()
 Cannot access memory at address 0xfffffd7ffc1fdde8
 (gdb) quit
 (oracle@chsrv1:CHDB1) $
 
 
 => got thos BFD Error and no real stack trace
 
 regards
 Alois
 
 
 Daniel Jacobowitz wrote:
 > On Tue, Sep 19, 2006 at 03:56:42PM -0000, alois.wiedenhofer@culturall.com wrote:
 >   
 >>> Synopsis:       gdb-6.5 solaris 10  x86 i86pc 64-bit support, prerequesuites, install
 >>>       
 >
 > I'm sorry, I don't understand - is this a question?  What is your
 > question?
 >
 >   


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