Author Topic: SIGTRAP  (Read 10261 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
SIGTRAP
« on: November 21, 2008, 07:47:14 pm »
My debuger (gdb) interupts not only on breakpoints.

It interupt many times with that message:

Continuing...
Program received signal SIGTRAP, Trace/breakpoint trap.
In _libkernel32_a_iname () ()

It is very frustrating because I need to say "continue" to the debuger over 30 times to reach my own breakpoint.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: SIGTRAP
« Reply #1 on: November 21, 2008, 08:36:52 pm »
You can try to disable the "Catch C++ exceptions" option in the settings of the Debugger.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: SIGTRAP
« Reply #2 on: November 21, 2008, 10:49:04 pm »
disable the "Catch C++ exceptions" option in the settings of the Debugger.

Hm... I didn't found that or any other option like that somewhere in Code::Blocks.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: SIGTRAP
« Reply #3 on: November 21, 2008, 11:01:29 pm »
disable the "Catch C++ exceptions" option in the settings of the Debugger.

Hm... I didn't found that or any other option like that somewhere in Code::Blocks.
If your C::B is r5018 or newer you find it in: "Settings -> Compiler and debugger... -> Debugger settings".

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: SIGTRAP
« Reply #4 on: November 22, 2008, 09:31:13 am »
If your C::B is r5018 or newer you find it in: "Settings -> Compiler and debugger... -> Debugger settings".

Ok, thank you. I only have the latest official release 8.02. I think it is to old.

Sometimes I tried to build C::B by myself but it didn't work. ;)

Do you know a HOWTO build C::B (on Win32) or something like that?

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: SIGTRAP
« Reply #5 on: November 22, 2008, 11:28:55 am »
Do you know a HOWTO build C::B (on Win32) or something like that?

Ah, I found it in the wiki. And now the option is still there.

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: SIGTRAP
« Reply #6 on: November 23, 2008, 06:43:41 pm »
The option is there but has no effect.

But the debuger log now is more detailed. Maye this help?
Code
Program received signal SIGTRAP, Trace/breakpoint trap.
In _libkernel32_a_iname () ()
At C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allocator.h:86