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

Re: problem with gdb-cris



Schachner Thomas wrote:
> Hello everyone!
> 
> That is my problem:
> 
> thomas@ghost1:~/axis/devboard_lx/apps/onewire> gdb-cris
> GNU gdb 5.2.1
> Copyright 2002 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 "--host=i686-pc-linux-gnu --target=cris".
> (gdb) set solib-absolute-prefix /dev/null
> (gdb) set solib-search-path /usr/local/cris/lib/gcc-lib/cris/2.96/linux
> (gdb) file owServer
> Reading symbols from owServer...(no debugging symbols found)...done.
> (gdb) core-file core
> Core was generated by `./owServer'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from 
> /home/thomas/axis/devboard_lx/apps/onewire/libusb.so...
> (no debugging symbols found)...done.
> Loaded symbols for /home/thomas/axis/devboard_lx/apps/onewire/libusb.so
> Reading symbols from 
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/libstdc++.so.2.10.0...done.
> Loaded symbols for 
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/libstdc++.so.2.10.0
> Reading symbols from 
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/libm-2.2.3.so...done.
> Loaded symbols for 
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/libm-2.2.3.so
> Reading symbols from 
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/libc-2.2.3.so...done.
> Loaded symbols for 
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/libc-2.2.3.so
> Reading symbols from 
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/ld-2.2.3.so...
> done.
> Loaded symbols for /usr/local/cris/lib/gcc-lib/cris/2.96/linux/ld-2.2.3.so
> Cannot access memory at address 0x0
> Cannot access memory at address 0x0
> (gdb)

I'm sorry; I don't quite understand what the problem is.  Does gdb hang 
at this point?  The error message might come from gdb trying to 
derefence a null pointer in your program (but that's just a guess). 
What does the commands 'backtrace' and 'list' show you?

-- 
Orjan Friberg
Axis Communications