[Qt-creator] [Fwd: Debugging shared library, how to?]

Abdelrazak Younes younes.abdel at gmail.com
Wed Mar 25 09:58:52 CET 2009


Abdelrazak Younes wrote:
> André Pönitz wrote:
>
>>
>> Do you have a "Synchronize breakpoints" item in the breakpoint view's 
>> context menu?  That's rather new....
>>   
>
> Yep, it's there. Doesn't seem to do anything...

No news about this? I tried with a static lib instead but it's no 
better. I am starting to think I should switch back to a monolithic 
program...

If anyone could help, here is an example output from the gdb tab, this 
happens for any breakpoint inside the library, independently of the context.

stdout:(gdb)

status:Stopping temporarily.

status:Stop requested...

debug:Current state: 3

debug:QUEUING COMMAND -break-insert 
"\"/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp\":23"

status:Stopped.

status:Temporarily stopped.

status:Handling queued commands.

09:52:01.180

stdout:47*stopped,reason="signal-received",signal-name="SIGTRAP",signal-meaning="Trace/breakpoint 
trap",thread-id="1",frame={addr="0x00007f1787197496",func="poll",args=[],from="/lib/libc.so.6"}

debug:RUNNING QUEUED COMMAND -break-insert 
"\"/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp\":23" 
207

input:48-break-insert 
"\"/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp\":23"

input:49p temporaryStop

09:52:01.184

stdout:(gdb)

status:Running requested...

status:Continuing after temporary stop.

09:52:01.255

stdout:&"No source file named 
/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp.\n"

09:52:01.255

stdout:48^error,msg="No source file named 
/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp."

input:50break 
"/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp":23

09:52:01.255

stdout:(gdb)

09:52:01.255

stdout:&"p temporaryStop\n"

09:52:01.255

stdout:&"No symbol \"temporaryStop\" in current context.\n"

09:52:01.255

stdout:49^error,msg="No symbol \"temporaryStop\" in current context."

input:51-exec-continue

09:52:01.257

stdout:(gdb)

status:Running...

status:Running...

09:52:01.337

stdout:&"break 
\"/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp\":23\n"

09:52:01.337

stdout:&"No source file named 
/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp.\n"

09:52:01.337

stdout:~"Breakpoint 9 
(\"/home/younes/lea-svn/plc_development/software/libplc/PlugAccess.cpp\":23) 
pending.\n"

09:52:01.337

stdout:50^done

09:52:01.337

stdout:(gdb)

09:52:01.337

stdout:51^running

09:52:01.339

stdout:(gdb)


Abdel.




More information about the Qt-creator-old mailing list