[haiku-development] GDB doesn't reach the specified breakpoints

  • From: Marcello Maggioni <hayarms@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 29 Nov 2010 01:30:48 +0000

Hi , I'm beginning delving into haiku programming, and to do so I'm
trying to debug some programs trying to solving bugs in the bug
tracker marked as easy.

I'm trying in particular to debug StyledEdit. Do debug it I downloaded
the sources of Haiku, created a file UserBuildConfig with the line :

SetConfigVar DEBUG : HAIKU_TOP src : 1 : global ;

in order to compile the whole tree with debug symbols and then I
compiled styled edit with the command

jam -q StyledEdit

The build went fine, but GDB doesn't seem to be able to reach breakpoints.

I tried to place some breakpoints around, in particular I tried
breakpoints at the beginning of:

StyledEditWindow::OpenFile
and
StyleEditWindow::_LoadFile

, but running the program never triggers the breakpoints even if I
think it should.

Also during execution a lot of threads are spawned and this interrupts
gdb execution with SIGCONT signal messages.

Putting a breakpoint at the beginning of the main function works, but
is the only breakpoint so far that I've been able to reach.

What's the problem with GDB? Anyway to solve it?

Thanks

Marcello

Other related posts: