[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gdb + shared libs
From: |
Nick Papadonis |
Subject: |
gdb + shared libs |
Date: |
24 Jan 2001 02:38:52 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) |
GNU gdb 5.0
This GDB was configured as "i686-pc-linux-gnu"...
GCC 2.95
GNU ld 2.10.1
- All files are compiled with the '-g' option.
- I would like to debug the file 'gphoto2' and need
to load symbols from libgphoto2_canon.so.
- I tried the following:
./gdb libgphoto2_canon.so
(gdb) b canon_get_picture
Breakpoint 1 at 0x3d36: file canon.c, line 536.
(gdb) exec /usr/local/bin/gphoto2
(gdb) set args --camera "Canon PowerShot S100" --port usb --get-picture 1
(gdb) r
Starting program: /usr/local/bin/gphoto2 --camera "Canon PowerShot S100" --port
usb --get-picture 1
warning: Cannot insert breakpoint 1:
Cannot access memory at address 0x3d36
(gdb)
- Why can't I access memory? I also noticed this same problem when
trying to step into the shared library.
Any insight much appreciated.
--
- Nick
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gdb + shared libs,
Nick Papadonis <=