|
List Info
Thread: GDB caused segmentation fault when stepping into C++ code in shared library
|
|
| GDB caused segmentation fault when
stepping into C++ code in shared
library |

|
2007-01-23 11:23:08 |
|
|
Hi,
I have some C++ code in shared library, I used set solib-absoluate-prefix and loaded in those libs at the point where I need to exam the source codes. When I stepped into those codes, (the first one is new an object), GDB complained segmentation fault. The code runs OK without gdb though.
Stepping into C++ in current exe is OK.
I even set a breakpoint in the shared library, but not hit either. Wondering the lib is not mapped correctly. Some of you must have made this work, I believe. Any idea? is the way I compile my codes or some GDB configuration ?
I am using gdb6.3 to remotely debug an embedded system on Arm.
thanks
patrick
_________________________________________________________________
Fixing up the home? Live Search can help.
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=wlmemailtaglinenov06
|
| Re: GDB caused segmentation fault when
stepping into C++ code in shared
library |

|
2007-01-23 11:32:44 |
|
| On Tue, Jan 23, 2007 at 05:23:08PM +0000, Patrick Zou wrote:
> I even set a breakpoint in the shared library, but not hit either.
> Wondering the lib is not mapped correctly. Some of you must have made
> this work, I believe. Any idea? is the way I compile my codes or some
> GDB configuration ?
Sorry, there is not enough information here to help you. A testcase
would be nice; failing that, we will need at least a full transcript
of the session.
--
Daniel Jacobowitz
CodeSourcery
|
[1-2]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|