Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB  caused segmentation fault when stepping into C++ code in  shared library
@ 2007-01-23 17:23 Patrick Zou
  2007-01-23 17:32 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Zou @ 2007-01-23 17:23 UTC (permalink / raw)
  To: gdb


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GDB  caused segmentation fault when stepping into C++ code in  shared library
  2007-01-23 17:23 GDB caused segmentation fault when stepping into C++ code in shared library Patrick Zou
@ 2007-01-23 17:32 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-01-23 17:32 UTC (permalink / raw)
  To: Patrick Zou; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-23 17:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23 17:23 GDB caused segmentation fault when stepping into C++ code in shared library Patrick Zou
2007-01-23 17:32 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox