[fpc-devel] Debugging FPC
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Apr 5 16:55:12 CEST 2008
On 05 Apr 2008, at 16:40, Никита Баль wrote:
> Thank you, i'll try under Linux.
>
> Can you tell me all list of command to gdb, which you call?
jmaebe at nie:~/fpc/tests/webtbs$ gdb ppn59 --directory=~/fpc/compiler/
GNU gdb Red Hat Linux (6.6-45.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) b PASCALMAIN
Breakpoint 1 at 0x8048213: file pp.pas, line 202.
(gdb) r
Starting program: /home/jmaebe/private/bin/ppn59
Breakpoint 1, 0x08048213 in main () at pp.pas:202
202 begin
(gdb) n
203 oldexit:=exitproc;
(gdb)
204 exitproc:=@myexit;
(gdb)
209 Halt(compiler.Compile(''));
(gdb) s
COMPILE (CMD='') at compiler.pas:216
216 begin
(gdb)
(ppn59 is the name of my current development binary). "n" is a
shortcut for "next", "s" for "step" (into), "b" for "break"
Jonas
More information about the fpc-devel
mailing list