Breakpoints in shared libraries loaded at runtime [message #1018331] |
Wed, 13 March 2013 16:12 |
Catalin Doras Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Hello,
Trying to debug a shared library I ran into the following problem:
I start my debug session, load the shared library, insert breakpoints in it and debug. I end the session and restart it. The breakpoints that were in the shared library are not enabled after I load the shared library again.
Debugging this I noticed that for the shared libraries that are linked, Eclipse would issue a break insert comamnd to GDB for those breakpoints, but for the library I load at runtime, there is no break insert command.
When I load the library, I issue an shared library event, but it doesn't result in an attempt from GDB to insert the breakpoints. I am using CDT/CDI.
Is this a known Eclipse CDT issue, or there is another event type that I need to trigger when adding shared libraries at runtime. (The corresponding GDB action for loading this library is to issue an add-symbol-file command).
The codes that fires the event looks like this:
MIShared shared = new MIShared(from, to, true, file);
SharedLibrary library = new SharedLibrary(target, shared);
Session session = (Session)target.getSession();
ICDIEvent event = new CreatedEvent(session, library);
EventManager eventManager = (EventManager) session.getEventManager();
eventManager.fireEvents(new ICDIEvent[] {event});
Thank you,
Catalin
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03457 seconds