User forums > Help
gdb with custom makefiles: unabled to interrupt while running
oBFusCATed:
Does your app interrupts SIGINT?
I think C::B is sending SIGINT to your app first and then tries to send it to gdb.
pasdVn:
Tried this now with sending to the app. It also works in this case (so does not matter if I send it to gdb or the app). What is also interesting (or maybe you can expect that) is, that all the breakpoints I try to set while the application is running are like in a waitqueue: with every SIGINT I send to the application (or gdb) manually, cb sets a breakpoint and resumes the app.
oBFusCATed:
Can you paste the debugger's debug log? (in code tags)
pasdVn:
Here it is:
--- Code: ---LD_LIBRARY_PATH=.:
Command-line: /usr/bin/gdb -nx -fullname -quiet -args ../mangos-server/bin/mangosd
Working dir : /home/tobias/Entwicklung/mangos/origin/builddir/
Reading symbols from /home/tobias/Entwicklung/mangos/origin/mangos-server/bin/mangosd...
> set prompt >>>>>>cb_gdb:
Queued:[tty /dev/pts/4]
done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set print elements -1
>>>>>>cb_gdb:
> set disassembly-flavor intel
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> cd ../mangos-server/bin
>>>>>>cb_gdb:
> directory /home/tobias/Entwicklung/mangos/origin/builddir/
>>>>>>cb_gdb:
> directory /home/tobias/Entwicklung/mangos/origin/
>>>>>>cb_gdb:
> tty /dev/pts/4
>>>>>>cb_gdb:
> run
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff541b700 (LWP 25750)]
[Thread 0x7ffff541b700 (LWP 25750) exited]
--- End code ---
Afterwards there is silence.. as long as I don't start to send SIGINTs manually.
Tried it on my other x86 machine btw. Same problem here, so really seems to be some specific problem with this application :-/
oBFusCATed:
Is your application a daemon?
Does it fork?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version