View Issue Details

IDProjectCategoryView StatusLast Update
0026664LazarusDebuggerpublic2015-10-07 11:55
ReporterMarius MaximusAssigned ToMartin Friebe 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionProduct Build 
Target Version1.4Fixed in Version1.3 (SVN) 
Summary0026664: In revision 44763 stop debug throught SSH
DescriptionIn Lazarus revision 44762 all work ok, I could debug application from windows to linux over SSH

After update to trunk I could

44762 is last revision where debug throught SSH works OK
Steps To Reproduce1) Compile lazarus in trunk revision
fpcup64 ^
    --noconfirm --verbose --fpcURL=trunk --lazURL=trunk --fpcopt="-g -gl -O1" --lazopt="-g -gl -O1" ^
    --installdir=d:\fpc64debug --lazlinkname=LAZ_64_debug ^
    --logfilename=fpc64debug.log ^
    --fpcrevision=27097 ^
    --only=FPC,Lazarus

2) Compile FPC for cross linux x86_64

fpcup64 ^
    --noconfirm --verbose --fpcURL=trunk --lazURL=trunk --lazlinkname=LAZ_64_debug --fpcopt="-g -gl -O1" --lazopt="-g -gl -O1" ^
    --installdir=d:\fpc64debug ^
    --logfilename=fpc64.log ^
    --cputarget=x86_64 --ostarget=linux ^
    --lazrevision=43984 ^
    --fpcrevision=27097 ^
    --only=FPCCleanOnly,FPCBuildOnly

3) Run&Debug simple application over SSH

4) Compile lazarus in revision 44762
fpcup64 ^
    --noconfirm --verbose --fpcURL=trunk --lazURL=trunk --fpcopt="-g -gl -O1" --lazopt="-g -gl -O1" ^
    --installdir=d:\fpc64debug --lazlinkname=LAZ_64_debug ^
    --logfilename=fpc64debug.log ^
    --lazrevision=44762 ^
    --fpcrevision=27097 ^
    --only=FPC,Lazarus

5) Run&Debug simple application over SSH
Additional InformationDebuger in revision>44762
stop on line
*stopped,reason="breakpoint-hit",disp="keep",bkptno="4",frame={addr="0x000000000041def0",func="_start",args=[]},thread-id="1",stopped-threads="all",core="1"


I attached two files
debug_from_windows.txt - debug output when debugger don't start (*stopped,reason="breakpoint-hit" is always last line)



TagsNo tags attached.
Fixed in Revision47147
LazTarget1.4
Widgetset
Attached Files
  • debug_from_windows.txt (28,570 bytes)
    =thread-group-added,id="i1"
    =thread-group-added,id="i1"
    (gdb) 
    (gdb) 
    <-gdb-set confirm off>
    ^done
    (gdb) 
    <-gdb-set new-console off>
    ^error,msg="No symbol table is loaded.  Use the \"file\" command."
    (gdb) 
    <set width 50000>
    &"set width 50000\n"
    =cmd-param-changed,param="width",value="50000"
    ^done
    (gdb) 
    <set target-async on>
    &"set target-async on\n"
    =cmd-param-changed,param="target-async",value="on"
    ^done
    (gdb) 
    <show target-async>
    &"show target-async\n"
    ~"Controlling the inferior in asynchronous mode is on.\n"
    ^done
    (gdb) 
    <-gdb-version>
    ~"GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1\n"
    ~"Copyright (C) 2014 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 \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details."
    ~"\nFor bug reporting instructions, please see:\n"
    ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
    ~"For help, type \"help\".\n"
    ~"Type \"apropos word\" to search for commands related to \"word\".\n"
    ^done
    (gdb) 
    <-gdb-set env ALLUSERSPROFILE=C:\ProgramData>
    ^done
    (gdb) 
    <-gdb-set env APPDATA=C:\Users\mariusz\AppData\Roaming>
    ^done
    (gdb) 
    <-gdb-set env CG_BOOST_ROOT=C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\include\boost_1_39>
    ^done
    (gdb) 
    <-gdb-set env CommonProgramFiles=C:\Program Files\Common Files>
    ^done
    (gdb) 
    <-gdb-set env CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files>
    ^done
    (gdb) 
    <-gdb-set env CommonProgramW6432=C:\Program Files\Common Files>
    ^done
    (gdb) 
    <-gdb-set env COMPUTERNAME=MAX-7>
    ^done
    (gdb) 
    <-gdb-set env ComSpec=C:\Windows\system32\cmd.exe>
    ^done
    (gdb) 
    <-gdb-set env CUDA_BIN_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5bin>
    ^done
    (gdb) 
    <-gdb-set env CUDA_INC_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5include>
    ^done
    (gdb) 
    <-gdb-set env CUDA_LIB_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5lib\x64>
    ^done
    (gdb) 
    <-gdb-set env CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5>
    ^done
    (gdb) 
    <-gdb-set env CUDA_PATH_V4_2=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\>
    ^done
    (gdb) 
    <-gdb-set env CUDA_PATH_V5_0=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\>
    ^done
    (gdb) 
    <-gdb-set env CUDA_PATH_V6_0=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0>
    ^done
    (gdb) 
    <-gdb-set env CUDA_PATH_V6_5=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5>
    ^done
    (gdb) 
    <-gdb-set env DXSDK_DIR=C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\>
    ^done
    (gdb) 
    <-gdb-set env FP_NO_HOST_CHECK=NO>
    ^done
    (gdb) 
    <-gdb-set env HOMEDRIVE=C:>
    ^done
    (gdb) 
    <-gdb-set env HOMEPATH=\Users\mariusz>
    ^done
    (gdb) 
    <-gdb-set env LOCALAPPDATA=C:\Users\mariusz\AppData\Local>
    ^done
    (gdb) 
    <-gdb-set env LOGONSERVER=\\MAX-7>
    ^done
    (gdb) 
    <-gdb-set env NO_XILINX_DATA_LICENSE=HIDDEN>
    ^done
    (gdb) 
    <-gdb-set env NUMBER_OF_PROCESSORS=8>
    ^done
    (gdb) 
    <-gdb-set env NVCUDASAMPLES5_0_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\>
    ^done
    (gdb) 
    <-gdb-set env NVCUDASAMPLES6_0_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.0>
    ^done
    (gdb) 
    <-gdb-set env NVCUDASAMPLES6_5_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5>
    ^done
    (gdb) 
    <-gdb-set env NVCUDASAMPLES_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5>
    ^done
    (gdb) 
    <-gdb-set env NVSDKCOMPUTE_ROOT=C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2>
    ^done
    (gdb) 
    <-gdb-set env NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\>
    ^done
    (gdb) 
    <-gdb-set env OS=Windows_NT>
    ^done
    (gdb) 
    <-gdb-set env Path=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\libnvvp;C:\Program Files (x86)\DVTk\DVT\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\libnvvp;C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\bin;C:\Users\Public\Documents\RAD Studio\12.0\Bpl;C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\bin64;C:\Users\Public\Documents\RAD Studio\12.0\Bpl\Win64;C:\Ruby193\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\codetyphon\fpc\bin\i386-win32;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\libnvvp;C:\Program Files (x86)\dxgettext;C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin;C:\Users\Public\Documents\RAD Studio\9.0\Bpl;C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin64;C:\Users\Public\Documents\RAD Studio\9.0\Bpl\Win64;C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\bin;C:\Users\Public\Documents\RAD Studio\7.0\Bpl;C:\Windows\System32\WindowsPowerShell\v1.0;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\Microsoft Windows Performance Toolkit;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\C\common\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\TortoiseHg\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Git\bin;>
    ^done
    (gdb) 
    <-gdb-set env PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW>
    ^done
    (gdb) 
    <-gdb-set env PROCESSOR_ARCHITECTURE=AMD64>
    ^done
    (gdb) 
    <-gdb-set env PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 30 Stepping 5, GenuineIntel>
    ^done
    (gdb) 
    <-gdb-set env PROCESSOR_LEVEL=6>
    ^done
    (gdb) 
    <-gdb-set env PROCESSOR_REVISION=1e05>
    ^done
    (gdb) 
    <-gdb-set env ProgramData=C:\ProgramData>
    ^done
    (gdb) 
    <-gdb-set env ProgramFiles=C:\Program Files>
    ^done
    (gdb) 
    <-gdb-set env ProgramFiles(x86)=C:\Program Files (x86)>
    ^done
    (gdb) 
    <-gdb-set env ProgramW6432=C:\Program Files>
    ^done
    (gdb) 
    <-gdb-set env PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\>
    ^done
    (gdb) 
    <-gdb-set env PUBLIC=C:\Users\Public>
    ^done
    (gdb) 
    <-gdb-set env RUBODICOMVIEWER=C:\Program Files (x86)\DICOMviewer demo>
    ^done
    (gdb) 
    <-gdb-set env SESSIONNAME=Console>
    ^done
    (gdb) 
    <-gdb-set env SystemDrive=C:>
    ^done
    (gdb) 
    <-gdb-set env SystemRoot=C:\Windows>
    ^done
    (gdb) 
    <-gdb-set env TEMP=C:\Users\mariusz\AppData\Local\Temp>
    ^done
    (gdb) 
    <-gdb-set env TERM=dumb>
    ^done
    (gdb) 
    <-gdb-set env TMP=C:\Users\mariusz\AppData\Local\Temp>
    ^done
    (gdb) 
    <-gdb-set env USERDOMAIN=max-7>
    ^done
    (gdb) 
    <-gdb-set env USERNAME=mariusz>
    ^done
    (gdb) 
    <-gdb-set env USERPROFILE=C:\Users\mariusz>
    ^done
    (gdb) 
    <-gdb-set env VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\>
    ^done
    (gdb) 
    <-gdb-set env VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\>
    ^done
    (gdb) 
    <-gdb-set env VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\>
    ^done
    (gdb) 
    <-gdb-set env VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\>
    ^done
    (gdb) 
    <-gdb-set env windir=C:\Windows>
    ^done
    (gdb) 
    <-gdb-set env DISPLAY=:0>
    ^done
    (gdb) 
    <-file-exec-and-symbols "/media/sf_UTT/5555/project1">
    ^done
    (gdb) 
    <-gdb-set language pascal>
    ^done
    (gdb) 
    <-environment-cd .>
    ^done
    (gdb) 
    <-environment-cd "/media/sf_UTT/5555">
    ^done
    (gdb) 
    <-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
    ^done,value="{function  (LONGWORD) : POINTER} 0xb1f290 <FPC_THREADVAR_RELOCATE>"
    (gdb) 
    <-exec-arguments >
    ^done
    (gdb) 
    <-gdb-set language pascal>
    ^done
    (gdb) 
    <ptype TObject>
    &"ptype TObject\n"
    ~"type = ^TOBJECT = class \n"
    ~"  public\n"
    ~"    function  CREATE () : TOBJECT;\n"
    ~"    procedure DESTROY (); virtual;\n"
    ~"    function  NEWINSTANCE () : TOBJECT; virtual;\n"
    ~"    procedure FREEINSTANCE (); virtual;\n"
    ~"    function  SAFECALLEXCEPTION () : HRESULT; virtual;\n"
    ~"    procedure DEFAULTHANDLER (); virtual;\n"
    ~"    procedure FREE ();\n"
    ~"    function  INITINSTANCE () : TOBJECT;\n"
    ~"    procedure CLEANUPINSTANCE ();\n"
    ~"    function  CLASSTYPE () : TCLASS;\n"
    ~"    function  CLASSINFO () : POINTER;\n"
    ~"    function  CLASSNAME () : SHORTSTRING;\n"
    ~"    function  CLASSNAMEIS () : BOOLEAN;\n"
    ~"    function  CLASSPARENT () : TCLASS;\n"
    ~"    function  INSTANCESIZE () : INT64;\n"
    ~"    function  INHERITSFROM () : BOOLEAN;\n"
    ~"    function  STRINGMESSAGETABLE () : PSTRINGMESSAGETABLE;\n"
    ~"    function  METHODADDRESS () : POINTER;\n"
    ~"    function  METHODNAME () : SHORTSTRING;\n"
    ~"    function  FIELDADDRESS () : POINTER;\n"
    ~"    procedure AFTERCONSTRUCTION (); virtual;\n"
    ~"    procedure BEFOREDESTRUCTION (); virtual;\n"
    ~"    procedure DEFAULTHANDLERSTR (); virtual;\n"
    ~"    procedure DISPATCH (); virtual;\n"
    ~"    procedure DISPATCHSTR (); virtual;\n"
    ~"    function  GETINTERFACE () : BOOLEAN;\n"
    ~"    function  GETINTERFACE () : BOOLEAN;\n"
    ~"    function  GETINTERFACEBYSTR () : BOOLEAN;\n"
    ~"    function  GETINTERFACEWEAK () : BOOLEAN;\n"
    ~"    function  GETINTERFACEENTRY () : PINTERFACEENTRY;\n"
    ~"    function  GETINTERFACEENTRYBYSTR () : PINTERFACEENTRY;\n"
    ~"    function  GETINTERFACETABLE () : PINTERFACETABLE;\n"
    ~"    function  UNITNAME () : ANSISTRING;\n"
    ~"    function  EQUALS () : BOOLEAN; virtual;\n"
    ~"    function  GETHASHCODE () : INT64; virtual;\n"
    ~"    function  TOSTRING () : ANSISTRING; virtual;\n"
    ~"end\n"
    ^done
    (gdb) 
    <ptype Exception>
    &"ptype Exception\n"
    ~"type = ^EXCEPTION = class : public TOBJECT \n"
    ~"  private\n"
    ~"    FMESSAGE : ANSISTRING;\n"
    ~"    FHELPCONTEXT : LONGINT;\n"
    ~"    HELPCONTEXT : LONGINT;\n"
    ~"    MESSAGE : ANSISTRING;\n"
    ~"\n"
    ~"  public\n"
    ~"    function  CREATE () : EXCEPTION;\n"
    ~"    function  CREATEFMT () : EXCEPTION;\n"
    ~"    function  CREATERES () : EXCEPTION;\n"
    ~"    function  CREATERESFMT () : EXCEPTION;\n"
    ~"    function  CREATEHELP () : EXCEPTION;\n"
    ~"    function  CREATEFMTHELP () : EXCEPTION;\n"
    ~"    function  CREATERESHELP () : EXCEPTION;\n"
    ~"    function  CREATERESFMTHELP () : EXCEPTION;\n"
    ~"    function  TOSTRING () : ANSISTRING; virtual;\n"
    ~"end\n"
    ^done
    (gdb) 
    <ptype Shortstring>
    &"ptype Shortstring\n"
    ~"type = ShortString = record \n"
    ~"    length : BYTE;\n"
    ~"    st : array [1..255] of CHAR;\n"
    ~"end\n"
    ^done
    (gdb) 
    <ptype pointer>
    &"ptype pointer\n"
    ~"type = ^pointer\n"
    ^done
    (gdb) 
    <ptype byte>
    &"ptype byte\n"
    ~"type = BYTE\n"
    ^done
    (gdb) 
    <set print elements 2500>
    &"set print elements 2500\n"
    =cmd-param-changed,param="print elements",value="2500"
    ^done
    (gdb) 
    <info file>
    &"info file\n"
    ~"Symbols from \"/media/sf_UTT/5555/project1\".\n"
    ~"Local exec file:\n"
    ~"\t`/media/sf_UTT/5555/project1', file type elf64-x86-64.\n"
    ~"\tEntry point: 0x41def0\n"
    ~"\t0x00000000004001c8 - 0x00000000004001e4 is .interp\n"
    ~"\t0x00000000004001e4 - 0x0000000000400204 is .note.ABI-tag\n"
    ~"\t0x0000000000400208 - 0x00000000004025ec is .hash\n"
    ~"\t0x00000000004025f0 - 0x0000000000409c70 is .dynsym\n"
    ~"\t0x0000000000409c70 - 0x0000000000411102 is .dynstr\n"
    ~"\t0x0000000000411102 - 0x0000000000411ae2 is .gnu.version\n"
    ~"\t0x0000000000411ae8 - 0x0000000000411b48 is .gnu.version_r\n"
    ~"\t0x0000000000411b48 - 0x0000000000411de8 is .rela.dyn\n"
    ~"\t0x0000000000411de8 - 0x0000000000419198 is .rela.plt\n"
    ~"\t0x0000000000419198 - 0x00000000004191b2 is .init\n"
    ~"\t0x00000000004191c0 - 0x000000000041def0 is .plt\n"
    ~"\t0x000000000041def0 - 0x000000000072d0d0 is .text\n"
    ~"\t0x000000000072d0d0 - 0x000000000072d0d9 is .fini\n"
    ~"\t0x000000000072d0e0 - 0x00000000007758c0 is .rodata\n"
    ~"\t0x00000000007758c0 - 0x00000000007758c0 is .eh_frame\n"
    ~"\t0x00000000009758c0 - 0x0000000000975b20 is .dynamic\n"
    ~"\t0x0000000000975b20 - 0x0000000000975bd8 is .got\n"
    ~"\t0x0000000000975bd8 - 0x0000000000978280 is .got.plt\n"
    ~"\t0x0000000000978280 - 0x0000000000af3d78 is .data\n"
    ~"\t0x0000000000af3d78 - 0x0000000000b1cfd0 is fpc.resources\n"
    ~"\t0x0000000000b1d000 - 0x0000000000b38ab8 is .bss\n"
    ~"\t0x0000000000b38ab8 - 0x0000000000b38ca0 is fpc.reshandles\n"
    ^done
    (gdb) 
    <-data-evaluate-expression sizeof(POINTER)>
    ^done,value="8"
    (gdb) 
    <-break-insert -f foo>
    &"Function \"foo\" not defined.\n"
    ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="foo",times="0",original-location="foo"}
    (gdb) 
    <-break-delete 1>
    ^done
    (gdb) 
    <-break-insert main>
    ^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df99",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="16",thread-groups=["i1"],times="0",original-location="main"}
    (gdb) 
    <-break-insert +0>
    ^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df99",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="12",thread-groups=["i1"],times="0",original-location="/media/sf_UTT/5555/project1.lpr:+0"}
    (gdb) 
    <-break-insert *4316912>
    ^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041def0",at="<_start>",thread-groups=["i1"],times="0",original-location="*4316912"}
    (gdb) 
    <-exec-run &>
    ^error,msg="Invalid argument: &"
    (gdb) 
    <-exec-run>
    =thread-group-started,id="i1",pid="14343"
    =thread-created,id="1",group-id="i1"
    ^running
    *running,thread-id="all"
    =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
    (gdb) 
    =library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11.so.6",target-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",host-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libglib-2.0.so.0",target-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",host-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libcairo.so.2",target-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",host-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libpng12.so.0",target-name="/lib/x86_64-linux-gnu/libpng12.so.0",host-name="/lib/x86_64-linux-gnu/libpng12.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",target-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",host-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",target-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",host-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",target-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",host-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrender.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",target-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",host-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXext.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libffi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libpcre.so.3",target-name="/lib/x86_64-linux-gnu/libpcre.so.3",host-name="/lib/x86_64-linux-gnu/libpcre.so.3",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libthai.so.0",target-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",host-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libEGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libz.so.1",target-name="/lib/x86_64-linux-gnu/libz.so.1",host-name="/lib/x86_64-linux-gnu/libz.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/librt.so.1",target-name="/lib/x86_64-linux-gnu/librt.so.1",host-name="/lib/x86_64-linux-gnu/librt.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXau.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libselinux.so.1",target-name="/lib/x86_64-linux-gnu/libselinux.so.1",host-name="/lib/x86_64-linux-gnu/libselinux.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libresolv.so.2",target-name="/lib/x86_64-linux-gnu/libresolv.so.2",host-name="/lib/x86_64-linux-gnu/libresolv.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",target-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",host-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libexpat.so.1",target-name="/lib/x86_64-linux-gnu/libexpat.so.1",host-name="/lib/x86_64-linux-gnu/libexpat.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",target-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",host-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgbm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libdrm.so.2",target-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",host-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libglapi.so.0",target-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",host-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",target-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",host-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",symbols-loaded="0",thread-group="i1"
    ~"[Thread debugging using libthread_db enabled]\n"
    ~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"
    =breakpoint-modified,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041def0",at="<_start>",thread-groups=["i1"],times="1",original-location="*4316912"}
    *stopped,reason="breakpoint-hit",disp="keep",bkptno="4",frame={addr="0x000000000041def0",func="_start",args=[]},thread-id="1",stopped-threads="all",core="1"
    
    debug_from_windows.txt (28,570 bytes)
  • debug_from_linux.txt (28,045 bytes)
    =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) 
    <set width 50000>
    &"set width 50000\n"
    =cmd-param-changed,param="width",value="50000"
    ^done
    (gdb) 
    <-gdb-version>
    ~"GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1\n"
    ~"Copyright (C) 2014 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 \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details."
    ~"\nFor bug reporting instructions, please see:\n"
    ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
    ~"For help, type \"help\".\n"
    ~"Type \"apropos word\" to search for commands related to \"word\".\n"
    ^done
    (gdb) 
    <-gdb-set env XDG_VTNR=7>
    ^done
    (gdb) 
    <-gdb-set env MATE_DESKTOP_SESSION_ID=this-is-deprecated>
    ^done
    (gdb) 
    <-gdb-set env SSH_AGENT_PID=5563>
    ^done
    (gdb) 
    <-gdb-set env XDG_SESSION_ID=80>
    ^done
    (gdb) 
    <-gdb-set env GPG_AGENT_INFO=/run/user/1000/keyring-sajsUV/gpg:0:1>
    ^done
    (gdb) 
    <-gdb-set env TERM=xterm>
    ^done
    (gdb) 
    <-gdb-set env SHELL=/bin/bash>
    ^done
    (gdb) 
    <-gdb-set env XDG_SESSION_COOKIE=e705516949cb21fd609477b4538c2b84-1409557293.385911-905934184>
    ^done
    (gdb) 
    <-gdb-set env WINDOWID=12582940>
    ^done
    (gdb) 
    <-gdb-set env GNOME_KEYRING_CONTROL=/run/user/1000/keyring-sajsUV>
    ^done
    (gdb) 
    <-gdb-set env USER=root>
    ^done
    (gdb) 
    <-gdb-set env LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:>
    ^done
    (gdb) 
    <-gdb-set env XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1>
    ^done
    (gdb) 
    <-gdb-set env XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0>
    ^done
    (gdb) 
    <-gdb-set env SSH_AUTH_SOCK=/run/user/1000/keyring-sajsUV/ssh>
    ^done
    (gdb) 
    <-gdb-set env SESSION_MANAGER=local/debian:@/tmp/.ICE-unix/5505,unix/debian:/tmp/.ICE-unix/5505>
    ^done
    (gdb) 
    <-gdb-set env MC_TMPDIR=/tmp/mc-root>
    ^done
    (gdb) 
    <-gdb-set env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin>
    ^done
    (gdb) 
    <-gdb-set env DESKTOP_SESSION=mate>
    ^done
    (gdb) 
    <-gdb-set env MAIL=/var/mail/root>
    ^done
    (gdb) 
    <-gdb-set env PWD=/root/development/lazarus>
    ^done
    (gdb) 
    <-gdb-set env GNOME_KEYRING_PID=5496>
    ^done
    (gdb) 
    <-gdb-set env LANG=en_US.UTF-8>
    ^done
    (gdb) 
    <-gdb-set env GDM_LANG=en_US.utf8>
    ^done
    (gdb) 
    <-gdb-set env GDMSESSION=mate>
    ^done
    (gdb) 
    <-gdb-set env HISTCONTROL=ignorespace>
    ^done
    (gdb) 
    <-gdb-set env SHLVL=3>
    ^done
    (gdb) 
    <-gdb-set env XDG_SEAT=seat0>
    ^done
    (gdb) 
    <-gdb-set env HOME=/root>
    ^done
    (gdb) 
    <-gdb-set env LANGUAGE=en_US:en>
    ^done
    (gdb) 
    <-gdb-set env MC_SID=6001>
    ^done
    (gdb) 
    <-gdb-set env LOGNAME=root>
    ^done
    (gdb) 
    <-gdb-set env DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bjxlDT7PLl,guid=cd8e7d93d77c792b70ff0373540420d3>
    ^done
    (gdb) 
    <-gdb-set env XDG_RUNTIME_DIR=/run/user/1000>
    ^done
    (gdb) 
    <-gdb-set env DISPLAY=:0.0>
    ^done
    (gdb) 
    <-gdb-set env COLORTERM=mate-terminal>
    ^done
    (gdb) 
    <-gdb-set env XAUTHORITY=/home/max/.Xauthority>
    ^done
    (gdb) 
    <-gdb-set env OLDPWD=/root/development>
    ^done
    (gdb) 
    <-gdb-set env _=./lazarus>
    ^done
    (gdb) 
    <unset env DISPLAY>
    &"unset env DISPLAY\n"
    ^done
    (gdb) 
    <-gdb-set env DISPLAY=:0>
    ^done
    (gdb) 
    <-file-exec-and-symbols "/media/sf_UTT/5555/project1">
    ^done
    (gdb) 
    <-gdb-set language pascal>
    ^done
    (gdb) 
    <-environment-cd .>
    ^done
    (gdb) 
    <-environment-cd "/media/sf_UTT/5555/">
    ^done
    (gdb) 
    <-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
    ^done,value="{function  (LONGWORD) : POINTER} 0xb1f450 <FPC_THREADVAR_RELOCATE>"
    (gdb) 
    <-exec-arguments >
    ^done
    (gdb) 
    <set inferior-tty /dev/pts/4>
    &"set inferior-tty /dev/pts/4\n"
    =cmd-param-changed,param="inferior-tty",value="/dev/pts/4"
    ^done
    (gdb) 
    <-gdb-set language pascal>
    ^done
    (gdb) 
    <ptype TObject>
    &"ptype TObject\n"
    ~"type = ^TOBJECT = class \n"
    ~"  public\n"
    ~"    function  CREATE () : TOBJECT;\n"
    ~"    procedure DESTROY (); virtual;\n"
    ~"    function  NEWINSTANCE () : TOBJECT; virtual;\n"
    ~"    procedure FREEINSTANCE (); virtual;\n"
    ~"    function  SAFECALLEXCEPTION () : HRESULT; virtual;\n"
    ~"    procedure DEFAULTHANDLER (); virtual;\n"
    ~"    procedure FREE ();\n"
    ~"    function  INITINSTANCE () : TOBJECT;\n"
    ~"    procedure CLEANUPINSTANCE ();\n"
    ~"    function  CLASSTYPE () : TCLASS;\n"
    ~"    function  CLASSINFO () : POINTER;\n"
    ~"    function  CLASSNAME () : SHORTSTRING;\n"
    ~"    function  CLASSNAMEIS () : BOOLEAN;\n"
    ~"    function  CLASSPARENT () : TCLASS;\n"
    ~"    function  INSTANCESIZE () : INT64;\n"
    ~"    function  INHERITSFROM () : BOOLEAN;\n"
    ~"    function  STRINGMESSAGETABLE () : PSTRINGMESSAGETABLE;\n"
    ~"    function  METHODADDRESS () : POINTER;\n"
    ~"    function  METHODNAME () : SHORTSTRING;\n"
    ~"    function  FIELDADDRESS () : POINTER;\n"
    ~"    procedure AFTERCONSTRUCTION (); virtual;\n"
    ~"    procedure BEFOREDESTRUCTION (); virtual;\n"
    ~"    procedure DEFAULTHANDLERSTR (); virtual;\n"
    ~"    procedure DISPATCH (); virtual;\n"
    ~"    procedure DISPATCHSTR (); virtual;\n"
    ~"    function  GETINTERFACE () : BOOLEAN;\n"
    ~"    function  GETINTERFACE () : BOOLEAN;\n"
    ~"    function  GETINTERFACEBYSTR () : BOOLEAN;\n"
    ~"    function  GETINTERFACEWEAK () : BOOLEAN;\n"
    ~"    function  GETINTERFACEENTRY () : PINTERFACEENTRY;\n"
    ~"    function  GETINTERFACEENTRYBYSTR () : PINTERFACEENTRY;\n"
    ~"    function  GETINTERFACETABLE () : PINTERFACETABLE;\n"
    ~"    function  UNITNAME () : ANSISTRING;\n"
    ~"    function  EQUALS () : BOOLEAN; virtual;\n"
    ~"    function  GETHASHCODE () : INT64; virtual;\n"
    ~"    function  TOSTRING () : ANSISTRING; virtual;\n"
    ~"end\n"
    ^done
    (gdb) 
    <ptype Exception>
    &"ptype Exception\n"
    ~"type = ^EXCEPTION = class : public TOBJECT \n"
    ~"  private\n"
    ~"    FMESSAGE : ANSISTRING;\n"
    ~"    FHELPCONTEXT : LONGINT;\n"
    ~"    HELPCONTEXT : LONGINT;\n"
    ~"    MESSAGE : ANSISTRING;\n"
    ~"\n"
    ~"  public\n"
    ~"    function  CREATE () : EXCEPTION;\n"
    ~"    function  CREATEFMT () : EXCEPTION;\n"
    ~"    function  CREATERES () : EXCEPTION;\n"
    ~"    function  CREATERESFMT () : EXCEPTION;\n"
    ~"    function  CREATEHELP () : EXCEPTION;\n"
    ~"    function  CREATEFMTHELP () : EXCEPTION;\n"
    ~"    function  CREATERESHELP () : EXCEPTION;\n"
    ~"    function  CREATERESFMTHELP () : EXCEPTION;\n"
    ~"    function  TOSTRING () : ANSISTRING; virtual;\n"
    ~"end\n"
    ^done
    (gdb) 
    <ptype Shortstring>
    &"ptype Shortstring\n"
    ~"type = ShortString = record \n"
    ~"    length : BYTE;\n"
    ~"    st : array [1..255] of CHAR;\n"
    ~"end\n"
    ^done
    (gdb) 
    <ptype pointer>
    &"ptype pointer\n"
    ~"type = ^pointer\n"
    ^done
    (gdb) 
    <ptype byte>
    &"ptype byte\n"
    ~"type = BYTE\n"
    ^done
    (gdb) 
    <set print elements 2500>
    &"set print elements 2500\n"
    =cmd-param-changed,param="print elements",value="2500"
    ^done
    (gdb) 
    <info file>
    &"info file\n"
    ~"Symbols from \"/media/sf_UTT/5555/project1\".\n"
    ~"Local exec file:\n"
    ~"\t`/media/sf_UTT/5555/project1', file type elf64-x86-64.\n"
    ~"\tEntry point: 0x41df90\n"
    ~"\t0x00000000004001c8 - 0x00000000004001e4 is .interp\n"
    ~"\t0x00000000004001e4 - 0x0000000000400204 is .note.ABI-tag\n"
    ~"\t0x0000000000400208 - 0x00000000004025f8 is .hash\n"
    ~"\t0x00000000004025f8 - 0x0000000000409cc0 is .dynsym\n"
    ~"\t0x0000000000409cc0 - 0x000000000041119c is .dynstr\n"
    ~"\t0x000000000041119c - 0x0000000000411b82 is .gnu.version\n"
    ~"\t0x0000000000411b88 - 0x0000000000411be8 is .gnu.version_r\n"
    ~"\t0x0000000000411be8 - 0x0000000000411e88 is .rela.dyn\n"
    ~"\t0x0000000000411e88 - 0x0000000000419238 is .rela.plt\n"
    ~"\t0x0000000000419238 - 0x0000000000419252 is .init\n"
    ~"\t0x0000000000419260 - 0x000000000041df90 is .plt\n"
    ~"\t0x000000000041df90 - 0x000000000072d240 is .text\n"
    ~"\t0x000000000072d240 - 0x000000000072d249 is .fini\n"
    ~"\t0x000000000072d250 - 0x0000000000775a30 is .rodata\n"
    ~"\t0x0000000000775a30 - 0x0000000000775a34 is .eh_frame\n"
    ~"\t0x0000000000975a38 - 0x0000000000975a40 is .init_array\n"
    ~"\t0x0000000000975a40 - 0x0000000000975a48 is .fini_array\n"
    ~"\t0x0000000000975a48 - 0x0000000000975a50 is .jcr\n"
    ~"\t0x0000000000975a50 - 0x0000000000975cf0 is .dynamic\n"
    ~"\t0x0000000000975cf0 - 0x0000000000975da8 is .got\n"
    ~"\t0x0000000000975da8 - 0x0000000000978450 is .got.plt\n"
    ~"\t0x0000000000978450 - 0x0000000000af3f58 is .data\n"
    ~"\t0x0000000000af3f58 - 0x0000000000b1d1b0 is fpc.resources\n"
    ~"\t0x0000000000b1d1c0 - 0x0000000000b38c78 is .bss\n"
    ~"\t0x0000000000b38c78 - 0x0000000000b38e60 is fpc.reshandles\n"
    ^done
    (gdb) 
    <-data-evaluate-expression sizeof(POINTER)>
    ^done,value="8"
    (gdb) 
    <-break-insert -f foo>
    &"Function \"foo\" not defined.\n"
    ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="foo",times="0",original-location="foo"}
    (gdb) 
    <-break-delete 1>
    ^done
    (gdb) 
    <-break-insert main>
    ^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041e109",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="16",thread-groups=["i1"],times="0",original-location="main"}
    (gdb) 
    <-break-insert +0>
    ^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041e109",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="12",thread-groups=["i1"],times="0",original-location="/media/sf_UTT/5555/project1.lpr:+0"}
    (gdb) 
    <-break-insert *4317072>
    ^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df90",at="<_start>",thread-groups=["i1"],times="0",original-location="*4317072"}
    (gdb) 
    <-exec-run>
    =thread-group-started,id="i1",pid="14363"
    =thread-created,id="1",group-id="i1"
    ^running
    *running,thread-id="all"
    (gdb) 
    =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11.so.6",target-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",host-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libglib-2.0.so.0",target-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",host-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libcairo.so.2",target-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",host-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libpng12.so.0",target-name="/lib/x86_64-linux-gnu/libpng12.so.0",host-name="/lib/x86_64-linux-gnu/libpng12.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",target-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",host-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",target-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",host-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",target-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",host-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrender.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",target-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",host-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXext.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libffi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libpcre.so.3",target-name="/lib/x86_64-linux-gnu/libpcre.so.3",host-name="/lib/x86_64-linux-gnu/libpcre.so.3",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libthai.so.0",target-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",host-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libEGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libz.so.1",target-name="/lib/x86_64-linux-gnu/libz.so.1",host-name="/lib/x86_64-linux-gnu/libz.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/librt.so.1",target-name="/lib/x86_64-linux-gnu/librt.so.1",host-name="/lib/x86_64-linux-gnu/librt.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXau.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libselinux.so.1",target-name="/lib/x86_64-linux-gnu/libselinux.so.1",host-name="/lib/x86_64-linux-gnu/libselinux.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libresolv.so.2",target-name="/lib/x86_64-linux-gnu/libresolv.so.2",host-name="/lib/x86_64-linux-gnu/libresolv.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",target-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",host-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib/x86_64-linux-gnu/libexpat.so.1",target-name="/lib/x86_64-linux-gnu/libexpat.so.1",host-name="/lib/x86_64-linux-gnu/libexpat.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",target-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",host-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgbm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libdrm.so.2",target-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",host-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libglapi.so.0",target-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",host-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",target-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",host-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",symbols-loaded="0",thread-group="i1"
    ~"[Thread debugging using libthread_db enabled]\n"
    ~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"
    =breakpoint-modified,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df90",at="<_start>",thread-groups=["i1"],times="1",original-location="*4317072"}
    *stopped,reason="breakpoint-hit",disp="keep",bkptno="4",frame={addr="0x000000000041df90",func="_start",args=[]},thread-id="1",stopped-threads="all",core="0"
    (gdb) 
    <-break-delete 2>
    ^done
    (gdb) 
    <-break-delete 4>
    ^done
    (gdb) 
    <-break-delete 3>
    ^done
    (gdb) 
    <info address FPC_RAISEEXCEPTION>
    &"info address FPC_RAISEEXCEPTION\n"
    ~"Symbol \"FPC_RAISEEXCEPTION\" is at 0x430c30 in a file compiled without debugging.\n"
    ^done
    (gdb) 
    <-break-insert *4394032>
    ^done,bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000430c30",func="fpc_raiseexception",file="../inc/except.inc",fullname="/root/development/fpc/rtl/inc/except.inc",line="181",thread-groups=["i1"],times="0",original-location="*4394032"}
    (gdb) 
    <info address FPC_BREAK_ERROR>
    &"info address FPC_BREAK_ERROR\n"
    ~"Symbol \"FPC_BREAK_ERROR\" is at 0x434200 in a file compiled without debugging.\n"
    ^done
    (gdb) 
    <-break-insert *4407808>
    ^done,bkpt={number="6",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000434200",func="HANDLEERRORADDRFRAME",file="../inc/system.inc",fullname="/root/development/fpc/rtl/inc/system.inc",line="1101",thread-groups=["i1"],times="0",original-location="*4407808"}
    (gdb) 
    <info address FPC_RUNERROR>
    &"info address FPC_RUNERROR\n"
    ~"Symbol \"FPC_RUNERROR\" is at 0x434340 in a file compiled without debugging.\n"
    ^done
    (gdb) 
    <-break-insert *4408128>
    ^done,bkpt={number="7",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000434340",func="RUNERROR",file="../inc/system.inc",fullname="/root/development/fpc/rtl/inc/system.inc",line="1148",thread-groups=["i1"],times="0",original-location="*4408128"}
    (gdb) 
    <-symbol-list-lines "/media/sf_UTT/5555/project1.lpr">
    ^done,lines=[{pc="0x000000000041e100",line="15"},{pc="0x000000000041e109",line="16"},{pc="0x000000000041e111",line="17"},{pc="0x000000000041e12f",line="18"},{pc="0x000000000041e150",line="19"},{pc="0x000000000041e15d",line="20"},{pc="0x000000000041e164",line="0"}]
    (gdb) 
    <info line "/media/sf_UTT/5555/unit1.pas":34>
    &"info line \"/media/sf_UTT/5555/unit1.pas\":34\n"
    ~"Line 34 of \"unit1.pas\" starts at address 0x45bfab <BUTTON1CLICK+59> and ends at 0x45bfce <BUTTON1CLICK+94>.\n"
    ^done
    (gdb) 
    <-break-insert  "\"/media/sf_UTT/5555/unit1.pas\":34">
    ^done,bkpt={number="8",type="breakpoint",disp="keep",enabled="y",addr="0x000000000045bfab",func="BUTTON1CLICK",file="unit1.pas",fullname="/media/sf_UTT/5555/unit1.pas",line="34",thread-groups=["i1"],times="0",original-location="/media/sf_UTT/5555/unit1.pas:34"}
    (gdb) 
    <-break-enable 8>
    ^done
    (gdb) 
    <-exec-continue>
    ^running
    *running,thread-id="all"
    (gdb) 
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so",target-name="/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so",host-name="/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libglide.so",target-name="/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libglide.so",host-name="/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libglide.so",symbols-loaded="0",thread-group="i1"
    
    
    debug_from_linux.txt (28,045 bytes)
  • gdbmidebugger.pp.patch (745 bytes)
    Index: components/lazdebuggergdbmi/gdbmidebugger.pp
    ===================================================================
    --- components/lazdebuggergdbmi/gdbmidebugger.pp	(revision 46098)
    +++ components/lazdebuggergdbmi/gdbmidebugger.pp	(working copy)
    @@ -2660,8 +2660,8 @@
         if FTheDebugger.FAsyncModeEnabled and FGotStopped then begin
           // There should not be a "(gdb) ",
           // but some versions print it, as they run none async, after accepting "run &"
    -      S := FTheDebugger.ReadLine(50);
    -      if (S <> '(gdb) ') then continue; // since no command was sent, we can loop
    +      //S := FTheDebugger.ReadLine(50);
    +      //if (S <> '(gdb) ') then continue; // since no command was sent, we can loop
           break;
         end;
     
    

Activities

Marius Maximus

2014-09-01 15:44

reporter  

debug_from_windows.txt (28,570 bytes)
=thread-group-added,id="i1"
=thread-group-added,id="i1"
(gdb) 
(gdb) 
<-gdb-set confirm off>
^done
(gdb) 
<-gdb-set new-console off>
^error,msg="No symbol table is loaded.  Use the \"file\" command."
(gdb) 
<set width 50000>
&"set width 50000\n"
=cmd-param-changed,param="width",value="50000"
^done
(gdb) 
<set target-async on>
&"set target-async on\n"
=cmd-param-changed,param="target-async",value="on"
^done
(gdb) 
<show target-async>
&"show target-async\n"
~"Controlling the inferior in asynchronous mode is on.\n"
^done
(gdb) 
<-gdb-version>
~"GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1\n"
~"Copyright (C) 2014 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 \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details."
~"\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
~"For help, type \"help\".\n"
~"Type \"apropos word\" to search for commands related to \"word\".\n"
^done
(gdb) 
<-gdb-set env ALLUSERSPROFILE=C:\ProgramData>
^done
(gdb) 
<-gdb-set env APPDATA=C:\Users\mariusz\AppData\Roaming>
^done
(gdb) 
<-gdb-set env CG_BOOST_ROOT=C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\include\boost_1_39>
^done
(gdb) 
<-gdb-set env CommonProgramFiles=C:\Program Files\Common Files>
^done
(gdb) 
<-gdb-set env CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files>
^done
(gdb) 
<-gdb-set env CommonProgramW6432=C:\Program Files\Common Files>
^done
(gdb) 
<-gdb-set env COMPUTERNAME=MAX-7>
^done
(gdb) 
<-gdb-set env ComSpec=C:\Windows\system32\cmd.exe>
^done
(gdb) 
<-gdb-set env CUDA_BIN_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5bin>
^done
(gdb) 
<-gdb-set env CUDA_INC_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5include>
^done
(gdb) 
<-gdb-set env CUDA_LIB_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5lib\x64>
^done
(gdb) 
<-gdb-set env CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5>
^done
(gdb) 
<-gdb-set env CUDA_PATH_V4_2=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\>
^done
(gdb) 
<-gdb-set env CUDA_PATH_V5_0=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\>
^done
(gdb) 
<-gdb-set env CUDA_PATH_V6_0=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0>
^done
(gdb) 
<-gdb-set env CUDA_PATH_V6_5=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5>
^done
(gdb) 
<-gdb-set env DXSDK_DIR=C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\>
^done
(gdb) 
<-gdb-set env FP_NO_HOST_CHECK=NO>
^done
(gdb) 
<-gdb-set env HOMEDRIVE=C:>
^done
(gdb) 
<-gdb-set env HOMEPATH=\Users\mariusz>
^done
(gdb) 
<-gdb-set env LOCALAPPDATA=C:\Users\mariusz\AppData\Local>
^done
(gdb) 
<-gdb-set env LOGONSERVER=\\MAX-7>
^done
(gdb) 
<-gdb-set env NO_XILINX_DATA_LICENSE=HIDDEN>
^done
(gdb) 
<-gdb-set env NUMBER_OF_PROCESSORS=8>
^done
(gdb) 
<-gdb-set env NVCUDASAMPLES5_0_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\>
^done
(gdb) 
<-gdb-set env NVCUDASAMPLES6_0_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.0>
^done
(gdb) 
<-gdb-set env NVCUDASAMPLES6_5_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5>
^done
(gdb) 
<-gdb-set env NVCUDASAMPLES_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5>
^done
(gdb) 
<-gdb-set env NVSDKCOMPUTE_ROOT=C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2>
^done
(gdb) 
<-gdb-set env NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\>
^done
(gdb) 
<-gdb-set env OS=Windows_NT>
^done
(gdb) 
<-gdb-set env Path=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\libnvvp;C:\Program Files (x86)\DVTk\DVT\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\libnvvp;C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\bin;C:\Users\Public\Documents\RAD Studio\12.0\Bpl;C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\bin64;C:\Users\Public\Documents\RAD Studio\12.0\Bpl\Win64;C:\Ruby193\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\codetyphon\fpc\bin\i386-win32;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\libnvvp;C:\Program Files (x86)\dxgettext;C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin;C:\Users\Public\Documents\RAD Studio\9.0\Bpl;C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin64;C:\Users\Public\Documents\RAD Studio\9.0\Bpl\Win64;C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\bin;C:\Users\Public\Documents\RAD Studio\7.0\Bpl;C:\Windows\System32\WindowsPowerShell\v1.0;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\Microsoft Windows Performance Toolkit;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\C\common\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\TortoiseHg\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Git\bin;>
^done
(gdb) 
<-gdb-set env PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW>
^done
(gdb) 
<-gdb-set env PROCESSOR_ARCHITECTURE=AMD64>
^done
(gdb) 
<-gdb-set env PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 30 Stepping 5, GenuineIntel>
^done
(gdb) 
<-gdb-set env PROCESSOR_LEVEL=6>
^done
(gdb) 
<-gdb-set env PROCESSOR_REVISION=1e05>
^done
(gdb) 
<-gdb-set env ProgramData=C:\ProgramData>
^done
(gdb) 
<-gdb-set env ProgramFiles=C:\Program Files>
^done
(gdb) 
<-gdb-set env ProgramFiles(x86)=C:\Program Files (x86)>
^done
(gdb) 
<-gdb-set env ProgramW6432=C:\Program Files>
^done
(gdb) 
<-gdb-set env PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\>
^done
(gdb) 
<-gdb-set env PUBLIC=C:\Users\Public>
^done
(gdb) 
<-gdb-set env RUBODICOMVIEWER=C:\Program Files (x86)\DICOMviewer demo>
^done
(gdb) 
<-gdb-set env SESSIONNAME=Console>
^done
(gdb) 
<-gdb-set env SystemDrive=C:>
^done
(gdb) 
<-gdb-set env SystemRoot=C:\Windows>
^done
(gdb) 
<-gdb-set env TEMP=C:\Users\mariusz\AppData\Local\Temp>
^done
(gdb) 
<-gdb-set env TERM=dumb>
^done
(gdb) 
<-gdb-set env TMP=C:\Users\mariusz\AppData\Local\Temp>
^done
(gdb) 
<-gdb-set env USERDOMAIN=max-7>
^done
(gdb) 
<-gdb-set env USERNAME=mariusz>
^done
(gdb) 
<-gdb-set env USERPROFILE=C:\Users\mariusz>
^done
(gdb) 
<-gdb-set env VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\>
^done
(gdb) 
<-gdb-set env VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\>
^done
(gdb) 
<-gdb-set env VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\>
^done
(gdb) 
<-gdb-set env VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\>
^done
(gdb) 
<-gdb-set env windir=C:\Windows>
^done
(gdb) 
<-gdb-set env DISPLAY=:0>
^done
(gdb) 
<-file-exec-and-symbols "/media/sf_UTT/5555/project1">
^done
(gdb) 
<-gdb-set language pascal>
^done
(gdb) 
<-environment-cd .>
^done
(gdb) 
<-environment-cd "/media/sf_UTT/5555">
^done
(gdb) 
<-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
^done,value="{function  (LONGWORD) : POINTER} 0xb1f290 <FPC_THREADVAR_RELOCATE>"
(gdb) 
<-exec-arguments >
^done
(gdb) 
<-gdb-set language pascal>
^done
(gdb) 
<ptype TObject>
&"ptype TObject\n"
~"type = ^TOBJECT = class \n"
~"  public\n"
~"    function  CREATE () : TOBJECT;\n"
~"    procedure DESTROY (); virtual;\n"
~"    function  NEWINSTANCE () : TOBJECT; virtual;\n"
~"    procedure FREEINSTANCE (); virtual;\n"
~"    function  SAFECALLEXCEPTION () : HRESULT; virtual;\n"
~"    procedure DEFAULTHANDLER (); virtual;\n"
~"    procedure FREE ();\n"
~"    function  INITINSTANCE () : TOBJECT;\n"
~"    procedure CLEANUPINSTANCE ();\n"
~"    function  CLASSTYPE () : TCLASS;\n"
~"    function  CLASSINFO () : POINTER;\n"
~"    function  CLASSNAME () : SHORTSTRING;\n"
~"    function  CLASSNAMEIS () : BOOLEAN;\n"
~"    function  CLASSPARENT () : TCLASS;\n"
~"    function  INSTANCESIZE () : INT64;\n"
~"    function  INHERITSFROM () : BOOLEAN;\n"
~"    function  STRINGMESSAGETABLE () : PSTRINGMESSAGETABLE;\n"
~"    function  METHODADDRESS () : POINTER;\n"
~"    function  METHODNAME () : SHORTSTRING;\n"
~"    function  FIELDADDRESS () : POINTER;\n"
~"    procedure AFTERCONSTRUCTION (); virtual;\n"
~"    procedure BEFOREDESTRUCTION (); virtual;\n"
~"    procedure DEFAULTHANDLERSTR (); virtual;\n"
~"    procedure DISPATCH (); virtual;\n"
~"    procedure DISPATCHSTR (); virtual;\n"
~"    function  GETINTERFACE () : BOOLEAN;\n"
~"    function  GETINTERFACE () : BOOLEAN;\n"
~"    function  GETINTERFACEBYSTR () : BOOLEAN;\n"
~"    function  GETINTERFACEWEAK () : BOOLEAN;\n"
~"    function  GETINTERFACEENTRY () : PINTERFACEENTRY;\n"
~"    function  GETINTERFACEENTRYBYSTR () : PINTERFACEENTRY;\n"
~"    function  GETINTERFACETABLE () : PINTERFACETABLE;\n"
~"    function  UNITNAME () : ANSISTRING;\n"
~"    function  EQUALS () : BOOLEAN; virtual;\n"
~"    function  GETHASHCODE () : INT64; virtual;\n"
~"    function  TOSTRING () : ANSISTRING; virtual;\n"
~"end\n"
^done
(gdb) 
<ptype Exception>
&"ptype Exception\n"
~"type = ^EXCEPTION = class : public TOBJECT \n"
~"  private\n"
~"    FMESSAGE : ANSISTRING;\n"
~"    FHELPCONTEXT : LONGINT;\n"
~"    HELPCONTEXT : LONGINT;\n"
~"    MESSAGE : ANSISTRING;\n"
~"\n"
~"  public\n"
~"    function  CREATE () : EXCEPTION;\n"
~"    function  CREATEFMT () : EXCEPTION;\n"
~"    function  CREATERES () : EXCEPTION;\n"
~"    function  CREATERESFMT () : EXCEPTION;\n"
~"    function  CREATEHELP () : EXCEPTION;\n"
~"    function  CREATEFMTHELP () : EXCEPTION;\n"
~"    function  CREATERESHELP () : EXCEPTION;\n"
~"    function  CREATERESFMTHELP () : EXCEPTION;\n"
~"    function  TOSTRING () : ANSISTRING; virtual;\n"
~"end\n"
^done
(gdb) 
<ptype Shortstring>
&"ptype Shortstring\n"
~"type = ShortString = record \n"
~"    length : BYTE;\n"
~"    st : array [1..255] of CHAR;\n"
~"end\n"
^done
(gdb) 
<ptype pointer>
&"ptype pointer\n"
~"type = ^pointer\n"
^done
(gdb) 
<ptype byte>
&"ptype byte\n"
~"type = BYTE\n"
^done
(gdb) 
<set print elements 2500>
&"set print elements 2500\n"
=cmd-param-changed,param="print elements",value="2500"
^done
(gdb) 
<info file>
&"info file\n"
~"Symbols from \"/media/sf_UTT/5555/project1\".\n"
~"Local exec file:\n"
~"\t`/media/sf_UTT/5555/project1', file type elf64-x86-64.\n"
~"\tEntry point: 0x41def0\n"
~"\t0x00000000004001c8 - 0x00000000004001e4 is .interp\n"
~"\t0x00000000004001e4 - 0x0000000000400204 is .note.ABI-tag\n"
~"\t0x0000000000400208 - 0x00000000004025ec is .hash\n"
~"\t0x00000000004025f0 - 0x0000000000409c70 is .dynsym\n"
~"\t0x0000000000409c70 - 0x0000000000411102 is .dynstr\n"
~"\t0x0000000000411102 - 0x0000000000411ae2 is .gnu.version\n"
~"\t0x0000000000411ae8 - 0x0000000000411b48 is .gnu.version_r\n"
~"\t0x0000000000411b48 - 0x0000000000411de8 is .rela.dyn\n"
~"\t0x0000000000411de8 - 0x0000000000419198 is .rela.plt\n"
~"\t0x0000000000419198 - 0x00000000004191b2 is .init\n"
~"\t0x00000000004191c0 - 0x000000000041def0 is .plt\n"
~"\t0x000000000041def0 - 0x000000000072d0d0 is .text\n"
~"\t0x000000000072d0d0 - 0x000000000072d0d9 is .fini\n"
~"\t0x000000000072d0e0 - 0x00000000007758c0 is .rodata\n"
~"\t0x00000000007758c0 - 0x00000000007758c0 is .eh_frame\n"
~"\t0x00000000009758c0 - 0x0000000000975b20 is .dynamic\n"
~"\t0x0000000000975b20 - 0x0000000000975bd8 is .got\n"
~"\t0x0000000000975bd8 - 0x0000000000978280 is .got.plt\n"
~"\t0x0000000000978280 - 0x0000000000af3d78 is .data\n"
~"\t0x0000000000af3d78 - 0x0000000000b1cfd0 is fpc.resources\n"
~"\t0x0000000000b1d000 - 0x0000000000b38ab8 is .bss\n"
~"\t0x0000000000b38ab8 - 0x0000000000b38ca0 is fpc.reshandles\n"
^done
(gdb) 
<-data-evaluate-expression sizeof(POINTER)>
^done,value="8"
(gdb) 
<-break-insert -f foo>
&"Function \"foo\" not defined.\n"
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="foo",times="0",original-location="foo"}
(gdb) 
<-break-delete 1>
^done
(gdb) 
<-break-insert main>
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df99",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="16",thread-groups=["i1"],times="0",original-location="main"}
(gdb) 
<-break-insert +0>
^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df99",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="12",thread-groups=["i1"],times="0",original-location="/media/sf_UTT/5555/project1.lpr:+0"}
(gdb) 
<-break-insert *4316912>
^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041def0",at="<_start>",thread-groups=["i1"],times="0",original-location="*4316912"}
(gdb) 
<-exec-run &>
^error,msg="Invalid argument: &"
(gdb) 
<-exec-run>
=thread-group-started,id="i1",pid="14343"
=thread-created,id="1",group-id="i1"
^running
*running,thread-id="all"
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
(gdb) 
=library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11.so.6",target-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",host-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libglib-2.0.so.0",target-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",host-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libcairo.so.2",target-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",host-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libpng12.so.0",target-name="/lib/x86_64-linux-gnu/libpng12.so.0",host-name="/lib/x86_64-linux-gnu/libpng12.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",target-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",host-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",target-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",host-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",target-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",host-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrender.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",target-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",host-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXext.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libffi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libpcre.so.3",target-name="/lib/x86_64-linux-gnu/libpcre.so.3",host-name="/lib/x86_64-linux-gnu/libpcre.so.3",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libthai.so.0",target-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",host-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libEGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libz.so.1",target-name="/lib/x86_64-linux-gnu/libz.so.1",host-name="/lib/x86_64-linux-gnu/libz.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/librt.so.1",target-name="/lib/x86_64-linux-gnu/librt.so.1",host-name="/lib/x86_64-linux-gnu/librt.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXau.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libselinux.so.1",target-name="/lib/x86_64-linux-gnu/libselinux.so.1",host-name="/lib/x86_64-linux-gnu/libselinux.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libresolv.so.2",target-name="/lib/x86_64-linux-gnu/libresolv.so.2",host-name="/lib/x86_64-linux-gnu/libresolv.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",target-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",host-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libexpat.so.1",target-name="/lib/x86_64-linux-gnu/libexpat.so.1",host-name="/lib/x86_64-linux-gnu/libexpat.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",target-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",host-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgbm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libdrm.so.2",target-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",host-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libglapi.so.0",target-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",host-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",target-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",host-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",symbols-loaded="0",thread-group="i1"
~"[Thread debugging using libthread_db enabled]\n"
~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"
=breakpoint-modified,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041def0",at="<_start>",thread-groups=["i1"],times="1",original-location="*4316912"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="4",frame={addr="0x000000000041def0",func="_start",args=[]},thread-id="1",stopped-threads="all",core="1"
debug_from_windows.txt (28,570 bytes)

Marius Maximus

2014-09-01 15:46

reporter  

debug_from_linux.txt (28,045 bytes)
=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) 
<set width 50000>
&"set width 50000\n"
=cmd-param-changed,param="width",value="50000"
^done
(gdb) 
<-gdb-version>
~"GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1\n"
~"Copyright (C) 2014 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 \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details."
~"\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
~"For help, type \"help\".\n"
~"Type \"apropos word\" to search for commands related to \"word\".\n"
^done
(gdb) 
<-gdb-set env XDG_VTNR=7>
^done
(gdb) 
<-gdb-set env MATE_DESKTOP_SESSION_ID=this-is-deprecated>
^done
(gdb) 
<-gdb-set env SSH_AGENT_PID=5563>
^done
(gdb) 
<-gdb-set env XDG_SESSION_ID=80>
^done
(gdb) 
<-gdb-set env GPG_AGENT_INFO=/run/user/1000/keyring-sajsUV/gpg:0:1>
^done
(gdb) 
<-gdb-set env TERM=xterm>
^done
(gdb) 
<-gdb-set env SHELL=/bin/bash>
^done
(gdb) 
<-gdb-set env XDG_SESSION_COOKIE=e705516949cb21fd609477b4538c2b84-1409557293.385911-905934184>
^done
(gdb) 
<-gdb-set env WINDOWID=12582940>
^done
(gdb) 
<-gdb-set env GNOME_KEYRING_CONTROL=/run/user/1000/keyring-sajsUV>
^done
(gdb) 
<-gdb-set env USER=root>
^done
(gdb) 
<-gdb-set env LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:>
^done
(gdb) 
<-gdb-set env XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1>
^done
(gdb) 
<-gdb-set env XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0>
^done
(gdb) 
<-gdb-set env SSH_AUTH_SOCK=/run/user/1000/keyring-sajsUV/ssh>
^done
(gdb) 
<-gdb-set env SESSION_MANAGER=local/debian:@/tmp/.ICE-unix/5505,unix/debian:/tmp/.ICE-unix/5505>
^done
(gdb) 
<-gdb-set env MC_TMPDIR=/tmp/mc-root>
^done
(gdb) 
<-gdb-set env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin>
^done
(gdb) 
<-gdb-set env DESKTOP_SESSION=mate>
^done
(gdb) 
<-gdb-set env MAIL=/var/mail/root>
^done
(gdb) 
<-gdb-set env PWD=/root/development/lazarus>
^done
(gdb) 
<-gdb-set env GNOME_KEYRING_PID=5496>
^done
(gdb) 
<-gdb-set env LANG=en_US.UTF-8>
^done
(gdb) 
<-gdb-set env GDM_LANG=en_US.utf8>
^done
(gdb) 
<-gdb-set env GDMSESSION=mate>
^done
(gdb) 
<-gdb-set env HISTCONTROL=ignorespace>
^done
(gdb) 
<-gdb-set env SHLVL=3>
^done
(gdb) 
<-gdb-set env XDG_SEAT=seat0>
^done
(gdb) 
<-gdb-set env HOME=/root>
^done
(gdb) 
<-gdb-set env LANGUAGE=en_US:en>
^done
(gdb) 
<-gdb-set env MC_SID=6001>
^done
(gdb) 
<-gdb-set env LOGNAME=root>
^done
(gdb) 
<-gdb-set env DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bjxlDT7PLl,guid=cd8e7d93d77c792b70ff0373540420d3>
^done
(gdb) 
<-gdb-set env XDG_RUNTIME_DIR=/run/user/1000>
^done
(gdb) 
<-gdb-set env DISPLAY=:0.0>
^done
(gdb) 
<-gdb-set env COLORTERM=mate-terminal>
^done
(gdb) 
<-gdb-set env XAUTHORITY=/home/max/.Xauthority>
^done
(gdb) 
<-gdb-set env OLDPWD=/root/development>
^done
(gdb) 
<-gdb-set env _=./lazarus>
^done
(gdb) 
<unset env DISPLAY>
&"unset env DISPLAY\n"
^done
(gdb) 
<-gdb-set env DISPLAY=:0>
^done
(gdb) 
<-file-exec-and-symbols "/media/sf_UTT/5555/project1">
^done
(gdb) 
<-gdb-set language pascal>
^done
(gdb) 
<-environment-cd .>
^done
(gdb) 
<-environment-cd "/media/sf_UTT/5555/">
^done
(gdb) 
<-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
^done,value="{function  (LONGWORD) : POINTER} 0xb1f450 <FPC_THREADVAR_RELOCATE>"
(gdb) 
<-exec-arguments >
^done
(gdb) 
<set inferior-tty /dev/pts/4>
&"set inferior-tty /dev/pts/4\n"
=cmd-param-changed,param="inferior-tty",value="/dev/pts/4"
^done
(gdb) 
<-gdb-set language pascal>
^done
(gdb) 
<ptype TObject>
&"ptype TObject\n"
~"type = ^TOBJECT = class \n"
~"  public\n"
~"    function  CREATE () : TOBJECT;\n"
~"    procedure DESTROY (); virtual;\n"
~"    function  NEWINSTANCE () : TOBJECT; virtual;\n"
~"    procedure FREEINSTANCE (); virtual;\n"
~"    function  SAFECALLEXCEPTION () : HRESULT; virtual;\n"
~"    procedure DEFAULTHANDLER (); virtual;\n"
~"    procedure FREE ();\n"
~"    function  INITINSTANCE () : TOBJECT;\n"
~"    procedure CLEANUPINSTANCE ();\n"
~"    function  CLASSTYPE () : TCLASS;\n"
~"    function  CLASSINFO () : POINTER;\n"
~"    function  CLASSNAME () : SHORTSTRING;\n"
~"    function  CLASSNAMEIS () : BOOLEAN;\n"
~"    function  CLASSPARENT () : TCLASS;\n"
~"    function  INSTANCESIZE () : INT64;\n"
~"    function  INHERITSFROM () : BOOLEAN;\n"
~"    function  STRINGMESSAGETABLE () : PSTRINGMESSAGETABLE;\n"
~"    function  METHODADDRESS () : POINTER;\n"
~"    function  METHODNAME () : SHORTSTRING;\n"
~"    function  FIELDADDRESS () : POINTER;\n"
~"    procedure AFTERCONSTRUCTION (); virtual;\n"
~"    procedure BEFOREDESTRUCTION (); virtual;\n"
~"    procedure DEFAULTHANDLERSTR (); virtual;\n"
~"    procedure DISPATCH (); virtual;\n"
~"    procedure DISPATCHSTR (); virtual;\n"
~"    function  GETINTERFACE () : BOOLEAN;\n"
~"    function  GETINTERFACE () : BOOLEAN;\n"
~"    function  GETINTERFACEBYSTR () : BOOLEAN;\n"
~"    function  GETINTERFACEWEAK () : BOOLEAN;\n"
~"    function  GETINTERFACEENTRY () : PINTERFACEENTRY;\n"
~"    function  GETINTERFACEENTRYBYSTR () : PINTERFACEENTRY;\n"
~"    function  GETINTERFACETABLE () : PINTERFACETABLE;\n"
~"    function  UNITNAME () : ANSISTRING;\n"
~"    function  EQUALS () : BOOLEAN; virtual;\n"
~"    function  GETHASHCODE () : INT64; virtual;\n"
~"    function  TOSTRING () : ANSISTRING; virtual;\n"
~"end\n"
^done
(gdb) 
<ptype Exception>
&"ptype Exception\n"
~"type = ^EXCEPTION = class : public TOBJECT \n"
~"  private\n"
~"    FMESSAGE : ANSISTRING;\n"
~"    FHELPCONTEXT : LONGINT;\n"
~"    HELPCONTEXT : LONGINT;\n"
~"    MESSAGE : ANSISTRING;\n"
~"\n"
~"  public\n"
~"    function  CREATE () : EXCEPTION;\n"
~"    function  CREATEFMT () : EXCEPTION;\n"
~"    function  CREATERES () : EXCEPTION;\n"
~"    function  CREATERESFMT () : EXCEPTION;\n"
~"    function  CREATEHELP () : EXCEPTION;\n"
~"    function  CREATEFMTHELP () : EXCEPTION;\n"
~"    function  CREATERESHELP () : EXCEPTION;\n"
~"    function  CREATERESFMTHELP () : EXCEPTION;\n"
~"    function  TOSTRING () : ANSISTRING; virtual;\n"
~"end\n"
^done
(gdb) 
<ptype Shortstring>
&"ptype Shortstring\n"
~"type = ShortString = record \n"
~"    length : BYTE;\n"
~"    st : array [1..255] of CHAR;\n"
~"end\n"
^done
(gdb) 
<ptype pointer>
&"ptype pointer\n"
~"type = ^pointer\n"
^done
(gdb) 
<ptype byte>
&"ptype byte\n"
~"type = BYTE\n"
^done
(gdb) 
<set print elements 2500>
&"set print elements 2500\n"
=cmd-param-changed,param="print elements",value="2500"
^done
(gdb) 
<info file>
&"info file\n"
~"Symbols from \"/media/sf_UTT/5555/project1\".\n"
~"Local exec file:\n"
~"\t`/media/sf_UTT/5555/project1', file type elf64-x86-64.\n"
~"\tEntry point: 0x41df90\n"
~"\t0x00000000004001c8 - 0x00000000004001e4 is .interp\n"
~"\t0x00000000004001e4 - 0x0000000000400204 is .note.ABI-tag\n"
~"\t0x0000000000400208 - 0x00000000004025f8 is .hash\n"
~"\t0x00000000004025f8 - 0x0000000000409cc0 is .dynsym\n"
~"\t0x0000000000409cc0 - 0x000000000041119c is .dynstr\n"
~"\t0x000000000041119c - 0x0000000000411b82 is .gnu.version\n"
~"\t0x0000000000411b88 - 0x0000000000411be8 is .gnu.version_r\n"
~"\t0x0000000000411be8 - 0x0000000000411e88 is .rela.dyn\n"
~"\t0x0000000000411e88 - 0x0000000000419238 is .rela.plt\n"
~"\t0x0000000000419238 - 0x0000000000419252 is .init\n"
~"\t0x0000000000419260 - 0x000000000041df90 is .plt\n"
~"\t0x000000000041df90 - 0x000000000072d240 is .text\n"
~"\t0x000000000072d240 - 0x000000000072d249 is .fini\n"
~"\t0x000000000072d250 - 0x0000000000775a30 is .rodata\n"
~"\t0x0000000000775a30 - 0x0000000000775a34 is .eh_frame\n"
~"\t0x0000000000975a38 - 0x0000000000975a40 is .init_array\n"
~"\t0x0000000000975a40 - 0x0000000000975a48 is .fini_array\n"
~"\t0x0000000000975a48 - 0x0000000000975a50 is .jcr\n"
~"\t0x0000000000975a50 - 0x0000000000975cf0 is .dynamic\n"
~"\t0x0000000000975cf0 - 0x0000000000975da8 is .got\n"
~"\t0x0000000000975da8 - 0x0000000000978450 is .got.plt\n"
~"\t0x0000000000978450 - 0x0000000000af3f58 is .data\n"
~"\t0x0000000000af3f58 - 0x0000000000b1d1b0 is fpc.resources\n"
~"\t0x0000000000b1d1c0 - 0x0000000000b38c78 is .bss\n"
~"\t0x0000000000b38c78 - 0x0000000000b38e60 is fpc.reshandles\n"
^done
(gdb) 
<-data-evaluate-expression sizeof(POINTER)>
^done,value="8"
(gdb) 
<-break-insert -f foo>
&"Function \"foo\" not defined.\n"
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="foo",times="0",original-location="foo"}
(gdb) 
<-break-delete 1>
^done
(gdb) 
<-break-insert main>
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041e109",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="16",thread-groups=["i1"],times="0",original-location="main"}
(gdb) 
<-break-insert +0>
^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041e109",func="main",file="project1.lpr",fullname="/media/sf_UTT/5555/project1.lpr",line="12",thread-groups=["i1"],times="0",original-location="/media/sf_UTT/5555/project1.lpr:+0"}
(gdb) 
<-break-insert *4317072>
^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df90",at="<_start>",thread-groups=["i1"],times="0",original-location="*4317072"}
(gdb) 
<-exec-run>
=thread-group-started,id="i1",pid="14363"
=thread-created,id="1",group-id="i1"
^running
*running,thread-id="all"
(gdb) 
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11.so.6",target-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",host-name="/usr/lib/x86_64-linux-gnu/libX11.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libglib-2.0.so.0",target-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",host-name="/lib/x86_64-linux-gnu/libglib-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libcairo.so.2",target-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",host-name="/usr/lib/x86_64-linux-gnu/libcairo.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libpng12.so.0",target-name="/lib/x86_64-linux-gnu/libpng12.so.0",host-name="/lib/x86_64-linux-gnu/libpng12.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcomposite.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXdamage.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",target-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",host-name="/usr/lib/x86_64-linux-gnu/libXfixes.so.3",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",target-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",host-name="/usr/lib/x86_64-linux-gnu/libfontconfig.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",target-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",host-name="/usr/lib/x86_64-linux-gnu/libfreetype.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrender.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXrender.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXinerama.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXi.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",target-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",host-name="/usr/lib/x86_64-linux-gnu/libXrandr.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXcursor.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXext.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXext.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libffi.so.6",target-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",host-name="/usr/lib/x86_64-linux-gnu/libffi.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libpcre.so.3",target-name="/lib/x86_64-linux-gnu/libpcre.so.3",host-name="/lib/x86_64-linux-gnu/libpcre.so.3",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libthai.so.0",target-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",host-name="/usr/lib/x86_64-linux-gnu/libthai.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",target-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",host-name="/usr/lib/x86_64-linux-gnu/libpixman-1.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libEGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libEGL.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-render.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libz.so.1",target-name="/lib/x86_64-linux-gnu/libz.so.1",host-name="/lib/x86_64-linux-gnu/libz.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libGL.so.1",target-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",host-name="/usr/lib/x86_64-linux-gnu/libGL.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/librt.so.1",target-name="/lib/x86_64-linux-gnu/librt.so.1",host-name="/lib/x86_64-linux-gnu/librt.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXau.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXau.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",target-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",host-name="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libselinux.so.1",target-name="/lib/x86_64-linux-gnu/libselinux.so.1",host-name="/lib/x86_64-linux-gnu/libselinux.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libresolv.so.2",target-name="/lib/x86_64-linux-gnu/libresolv.so.2",host-name="/lib/x86_64-linux-gnu/libresolv.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",target-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",host-name="/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libexpat.so.1",target-name="/lib/x86_64-linux-gnu/libexpat.so.1",host-name="/lib/x86_64-linux-gnu/libexpat.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",target-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",host-name="/usr/lib/x86_64-linux-gnu/libdatrie.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",target-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",host-name="/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-shape.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-client.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",target-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",host-name="/usr/lib/x86_64-linux-gnu/libwayland-server.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgbm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libgbm.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libdrm.so.2",target-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",host-name="/usr/lib/x86_64-linux-gnu/libdrm.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libglapi.so.0",target-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",host-name="/usr/lib/x86_64-linux-gnu/libglapi.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",target-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",host-name="/usr/lib/x86_64-linux-gnu/libxcb-present.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxcb-sync.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",target-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",host-name="/usr/lib/x86_64-linux-gnu/libxshmfence.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",target-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",host-name="/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",target-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",host-name="/usr/lib/x86_64-linux-gnu/libgraphite2.so.3",symbols-loaded="0",thread-group="i1"
~"[Thread debugging using libthread_db enabled]\n"
~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"
=breakpoint-modified,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x000000000041df90",at="<_start>",thread-groups=["i1"],times="1",original-location="*4317072"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="4",frame={addr="0x000000000041df90",func="_start",args=[]},thread-id="1",stopped-threads="all",core="0"
(gdb) 
<-break-delete 2>
^done
(gdb) 
<-break-delete 4>
^done
(gdb) 
<-break-delete 3>
^done
(gdb) 
<info address FPC_RAISEEXCEPTION>
&"info address FPC_RAISEEXCEPTION\n"
~"Symbol \"FPC_RAISEEXCEPTION\" is at 0x430c30 in a file compiled without debugging.\n"
^done
(gdb) 
<-break-insert *4394032>
^done,bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000430c30",func="fpc_raiseexception",file="../inc/except.inc",fullname="/root/development/fpc/rtl/inc/except.inc",line="181",thread-groups=["i1"],times="0",original-location="*4394032"}
(gdb) 
<info address FPC_BREAK_ERROR>
&"info address FPC_BREAK_ERROR\n"
~"Symbol \"FPC_BREAK_ERROR\" is at 0x434200 in a file compiled without debugging.\n"
^done
(gdb) 
<-break-insert *4407808>
^done,bkpt={number="6",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000434200",func="HANDLEERRORADDRFRAME",file="../inc/system.inc",fullname="/root/development/fpc/rtl/inc/system.inc",line="1101",thread-groups=["i1"],times="0",original-location="*4407808"}
(gdb) 
<info address FPC_RUNERROR>
&"info address FPC_RUNERROR\n"
~"Symbol \"FPC_RUNERROR\" is at 0x434340 in a file compiled without debugging.\n"
^done
(gdb) 
<-break-insert *4408128>
^done,bkpt={number="7",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000434340",func="RUNERROR",file="../inc/system.inc",fullname="/root/development/fpc/rtl/inc/system.inc",line="1148",thread-groups=["i1"],times="0",original-location="*4408128"}
(gdb) 
<-symbol-list-lines "/media/sf_UTT/5555/project1.lpr">
^done,lines=[{pc="0x000000000041e100",line="15"},{pc="0x000000000041e109",line="16"},{pc="0x000000000041e111",line="17"},{pc="0x000000000041e12f",line="18"},{pc="0x000000000041e150",line="19"},{pc="0x000000000041e15d",line="20"},{pc="0x000000000041e164",line="0"}]
(gdb) 
<info line "/media/sf_UTT/5555/unit1.pas":34>
&"info line \"/media/sf_UTT/5555/unit1.pas\":34\n"
~"Line 34 of \"unit1.pas\" starts at address 0x45bfab <BUTTON1CLICK+59> and ends at 0x45bfce <BUTTON1CLICK+94>.\n"
^done
(gdb) 
<-break-insert  "\"/media/sf_UTT/5555/unit1.pas\":34">
^done,bkpt={number="8",type="breakpoint",disp="keep",enabled="y",addr="0x000000000045bfab",func="BUTTON1CLICK",file="unit1.pas",fullname="/media/sf_UTT/5555/unit1.pas",line="34",thread-groups=["i1"],times="0",original-location="/media/sf_UTT/5555/unit1.pas:34"}
(gdb) 
<-break-enable 8>
^done
(gdb) 
<-exec-continue>
^running
*running,thread-id="all"
(gdb) 
=library-loaded,id="/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so",target-name="/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so",host-name="/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libglide.so",target-name="/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libglide.so",host-name="/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libglide.so",symbols-loaded="0",thread-group="i1"

debug_from_linux.txt (28,045 bytes)

Marius Maximus

2014-09-01 15:48

reporter   ~0076826

debug_from_linux.txt - I debug aplication locally

Marius Maximus

2014-09-01 18:48

reporter  

gdbmidebugger.pp.patch (745 bytes)
Index: components/lazdebuggergdbmi/gdbmidebugger.pp
===================================================================
--- components/lazdebuggergdbmi/gdbmidebugger.pp	(revision 46098)
+++ components/lazdebuggergdbmi/gdbmidebugger.pp	(working copy)
@@ -2660,8 +2660,8 @@
     if FTheDebugger.FAsyncModeEnabled and FGotStopped then begin
       // There should not be a "(gdb) ",
       // but some versions print it, as they run none async, after accepting "run &"
-      S := FTheDebugger.ReadLine(50);
-      if (S <> '(gdb) ') then continue; // since no command was sent, we can loop
+      //S := FTheDebugger.ReadLine(50);
+      //if (S <> '(gdb) ') then continue; // since no command was sent, we can loop
       break;
     end;
 

Marius Maximus

2014-09-01 18:51

reporter   ~0076828

Problem is in gdbmidebugger.pp -> TGDBMIDebuggerCommandExecuteBase.ProcessRunning


    if FTheDebugger.FAsyncModeEnabled and FGotStopped then begin
      // There should not be a "(gdb) ",
      // but some versions print it, as they run none async, after accepting "run &"
      S := FTheDebugger.ReadLine(50);
      if (S <> '(gdb) ') then continue; // since no command was sent, we can loop
      break;
    end;


I upload simple pach , this help form me ;)
I have GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1

Martin Friebe

2014-12-09 02:15

manager   ~0079712

Please test, and close if ok

Issue History

Date Modified Username Field Change
2014-09-01 15:44 Marius Maximus New Issue
2014-09-01 15:44 Marius Maximus File Added: debug_from_windows.txt
2014-09-01 15:46 Marius Maximus File Added: debug_from_linux.txt
2014-09-01 15:48 Marius Maximus Note Added: 0076826
2014-09-01 15:53 Jonas Maebe Project FPC => Lazarus
2014-09-01 17:02 Vincent Snijders Assigned To => Martin Friebe
2014-09-01 17:02 Vincent Snijders Status new => assigned
2014-09-01 18:48 Marius Maximus File Added: gdbmidebugger.pp.patch
2014-09-01 18:51 Marius Maximus Note Added: 0076828
2014-12-09 02:14 Martin Friebe Fixed in Revision => 47147
2014-12-09 02:14 Martin Friebe LazTarget => 1.4
2014-12-09 02:14 Martin Friebe Status assigned => resolved
2014-12-09 02:14 Martin Friebe Fixed in Version => 1.3 (SVN)
2014-12-09 02:14 Martin Friebe Resolution open => fixed
2014-12-09 02:14 Martin Friebe Target Version => 1.4
2014-12-09 02:15 Martin Friebe Note Added: 0079712
2015-10-07 11:55 Marius Maximus Status resolved => closed