[Lazarus] Breakpoints not working

Dave Coventry dgcoventry at gmail.com
Mon Feb 28 18:20:35 CET 2011


Hi Marten, thanks for your assistance.

On 28 February 2011 18:59, Martin <lazarus at mfriebe.de> wrote:
> Which version of gdb?

dave at SNECCI:~$ gdb -v
GNU gdb (GDB) 7.2-ubuntu
...
This GDB was configured as "i686-linux-gnu".

> When you start the app F9, are there little blue dots in the gutter, on the
> lines that have pascal instructions?

Not that I can see.

> - Have you compiled with debug info?

I just ran the create_lazarus_deb.sh  script as I have done in the past.

> What is the output in the Window: Menu: View => Debug Windows => Debug
> output ?
> (open the window first, then start (F9) your app)

Relevant lines listed below.
This line would seem to indicate the cause:
error,msg="No symbol table is loaded.  Use the \"file\" command.


=thread-group-added,id="i1"
(gdb)
<-gdb-set confirm off>
^done
(gdb)
<-gdb-set new-console off>
^error,msg="No symbol table is loaded.  Use the \"file\" command."
(gdb)
<-gdb-version>
~"GNU gdb (GDB) 7.2-ubuntu\n"
~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\nThis is free software: you are
free to change and redistribute it.\nThere is NO WARRANTY, to the
extent permitted by law.  Type \"show copying\"\nand \"show warranty\"
for details.\n"
~"This GDB was configured as \"i686-linux-gnu\".\nFor bug reporting
instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
^done
(gdb)
<-gdb-version>
~"GNU gdb (GDB) 7.2-ubuntu\n"
~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\nThis is free software: you are
free to change and redistribute it.\nThere is NO WARRANTY, to the
extent permitted by law.  Type \"show copying\"\nand \"show warranty\"
for details.\n"
~"This GDB was configured as \"i686-linux-gnu\".\nFor bug reporting
instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
^done
(gdb)
<-gdb-set env DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-yi0wPd6Kfr,guid=59df9e1583eb279ed42943d100000028>
^done
(gdb)
<-gdb-set env DEFAULTS_PATH=/usr/share/gconf/gnome.default.path>
^done
(gdb)
<-gdb-set env DESKTOP_SESSION=gnome>
^done
(gdb)
<-gdb-set env DISPLAY=:0.0>
^done
(gdb)
<-gdb-set env GDM_KEYBOARD_LAYOUT=us>
^done
(gdb)
<-gdb-set env GDM_LANG=en_ZA.utf8>
^done
(gdb)
<-gdb-set env GDMSESSION=gnome>
^done
(gdb)
<-gdb-set env GIO_LAUNCHED_DESKTOP_FILE=/home/dave/.local/share/applications/lazarus.desktop>
^done
(gdb)
<-gdb-set env GIO_LAUNCHED_DESKTOP_FILE_PID=6473>
^done
(gdb)
<-gdb-set env GNOME_DESKTOP_SESSION_ID=this-is-deprecated>
^done
(gdb)
<-gdb-set env GNOME_KEYRING_CONTROL=/tmp/keyring-PMZAA1>
^done
(gdb)
<-gdb-set env GTK_MODULES=canberra-gtk-module>
^done
(gdb)
<-gdb-set env HOME=/home/dave>
^done
(gdb)
<-gdb-set env LANG=en_ZA.utf8>
^done
(gdb)
<-gdb-set env LOGNAME=dave>
^done
(gdb)
<-gdb-set env MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path>
^done
(gdb)
<-gdb-set env ORBIT_SOCKETDIR=/tmp/orbit-dave>
^done
(gdb)
<-gdb-set env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games>
^done
(gdb)
<-gdb-set env PWD=/home/dave>
^done
(gdb)
<-gdb-set env SESSION_MANAGER=local/SNECCI:@/tmp/.ICE-unix/1308,unix/SNECCI:/tmp/.ICE-unix/1308>
^done
(gdb)
<-gdb-set env SHELL=/bin/bash>
^done
(gdb)
<-gdb-set env SSH_AGENT_PID=1386>
^done
(gdb)
<-gdb-set env SSH_AUTH_SOCK=/tmp/keyring-PMZAA1/ssh>
^done
(gdb)
<-gdb-set env USER=dave>
^done
(gdb)
<-gdb-set env USERNAME=dave>
^done
(gdb)
<-gdb-set env WINDOWPATH=7>
^done
(gdb)
<-gdb-set env XAUTHORITY=/var/run/gdm/auth-for-dave-3RIVzb/database>
^done
(gdb)
<-gdb-set env XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg>
^done
(gdb)
<-gdb-set env XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/>
^done
(gdb)
<-gdb-set env XDG_SESSION_COOKIE=c201650037553c373d7b90fc00000014-1298851370.190416-1886606836>
^done
(gdb)
<-file-exec-and-symbols "/home/dave/Documents/Projects/Grifta/Grifta">
^done
(gdb)
<-environment-cd .>
^done
(gdb)
<-environment-cd "/home/dave/Documents/Projects/Grifta/">
^done
(gdb)
<-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
^error,msg="No symbol table is loaded.  Use the \"file\" command."
(gdb)
<info functions FPC_CPUINIT>
&"info functions FPC_CPUINIT\n"
~"All functions matching regular expression \"FPC_CPUINIT\":\n"
^done
(gdb)
<info functions $$_RUNERROR$>
&"info functions $$_RUNERROR$\n"
~"All functions matching regular expression \"$$_RUNERROR$\":\n"
^done
(gdb)
<-exec-arguments >
^done
(gdb)
<set width 50000>
&"set width 50000\n"
^done
(gdb)
<set inferior-tty /dev/null>
&"set inferior-tty /dev/null\n"
^done
(gdb)
<-gdb-set language pascal>
^done
(gdb)
<info address main>
&"info address main\n"
&"No symbol \"main\" in current context.\n"
^error,msg="No symbol \"main\" in current context."
(gdb)
<-break-insert -t main>
^error,msg="Function \"main\" not defined."
(gdb)
<ptype TObject>
&"ptype TObject\n"
&"No symbol table is loaded.  Use the \"file\" command.\n"
^error,msg="No symbol table is loaded.  Use the \"file\" command."
(gdb)
<info address FPC_RAISEEXCEPTION>
&"info address FPC_RAISEEXCEPTION\n"
&"No symbol \"FPC_RAISEEXCEPTION\" in current context.\n"
^error,msg="No symbol \"FPC_RAISEEXCEPTION\" in current context."
(gdb)
<-break-insert FPC_RAISEEXCEPTION>
^error,msg="Function \"FPC_RAISEEXCEPTION\" not defined."
(gdb)
<info address FPC_BREAK_ERROR>
&"info address FPC_BREAK_ERROR\n"
&"No symbol \"FPC_BREAK_ERROR\" in current context.\n"
^error,msg="No symbol \"FPC_BREAK_ERROR\" in current context."
(gdb)
<-break-insert FPC_BREAK_ERROR>
^error,msg="Function \"FPC_BREAK_ERROR\" not defined."
(gdb)
<info address FPC_RUNERROR>
&"info address FPC_RUNERROR\n"
&"No symbol \"FPC_RUNERROR\" in current context.\n"
^error,msg="No symbol \"FPC_RUNERROR\" in current context."
(gdb)
<-break-insert FPC_RUNERROR>
^error,msg="Function \"FPC_RUNERROR\" not defined."
(gdb)




More information about the Lazarus mailing list