[Lazarus] GDB strangeness

Michael Van Canneyt michael at freepascal.org
Tue Aug 25 12:06:49 CEST 2015


Hi,

I'm debugging a program, and it just won't debug inside lazarus.

When I look at the debug output in Lazarus, I see:

<-exec-run>
=thread-group-started,id="i1",pid="20658"
=thread-created,id="1",group-id="i1"
^running
*running,thread-id="all"
(gdb) 
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
^error,msg="During startup program exited with code 1."

The strange thing is that if I use gdb on the command-line, it does start and run the program,
and I can debug as I would expect it (albeit very rudimentary).

What could be the cause of this difference in behaviour ?
Are there any options I can give through 'Debugger_startup_options' to diagnose more ?

Michael.




More information about the Lazarus mailing list