Bram Kuijvenhoven wrote:

> Uwe Grauer wrote:
>
>> Yes, i'm using Firebird. It crashes when running under gdb.
>
>
> Even in a small Firebird app? I don't have a Firebird db running at
> the time, nor do I have Lazarus compiled with the sqldblaz package. So
> it would take some effort to test your program. I hope you can find
> the cause, but otherwise I'm willing to help. I was planning to
> install a Firebird server on my devel machine anyway...
>
>>> BTW what command line options does Lazarus pass to gdb?
>>
>>
>> How do i find this out?
>
>
> Good question, I hoped the Laz devels knew this, but actually it is
> easy to find out using a program like Process Explorer (from
> www.sysinternals.com). The command line is:
>
> C:\lazarus\mingw\bin\gdb.exe -silent -i mi -nx
>
>
> Note that there is also a Debug output window in Lazarus under View ->
> Debug windows. It shows the gdb commands. There I found the following
> interesting lines:
>
> ===== Debug output window ====

Maybe this helps?
Here is my debug window:
(gdb)

<-gdb-set confirm off>
^done

(gdb)

<-gdb-set new-console off>
^done

(gdb)

<-gdb-version>
~"GNU gdb 6.0\n"

~"Copyright 2003 Free Software Foundation, Inc.\n"

~"GDB is free software, covered by the GNU General Public License, and
you are\n"

~"welcome to change it and/or distribute copies of it under certain
conditions.\n"

~"Type \"show copying\" to see the conditions.\n"

~"There is absolutely no warranty for GDB.  Type \"show warranty\" for
details.\n"

~"This GDB was configured as \"i686-pc-mingw32\".\n"

^done

(gdb)

<-gdb-set env ALLUSERSPROFILE=C:\Documents and Settings\All Users>
^done

(gdb)

<-gdb-set env APPDATA=C:\Documents and
Settings\Administrator\Application Data>
^done

(gdb)

<-gdb-set env APR_ICONV_PATH=C:\Program Files\Subversion\iconv>
^done

(gdb)

<-gdb-set env COLLECTIONID=COL8143>
^done

(gdb)

<-gdb-set env CommonProgramFiles=C:\Program Files\Common Files>
^done

(gdb)

<-gdb-set env COMPUTERNAME=ATHLON28>
^done

(gdb)

<-gdb-set env ComSpec=C:\WINNT\system32\cmd.exe>
^done

(gdb)

<-gdb-set env HMSERVER=https://wwss1pro.cce.hp.com/wuss/servlet/WUSSServlet>
^done

(gdb)

<-gdb-set env HOMEDRIVE=C:>
^done

(gdb)

<-gdb-set env HOMEPATH=\Documents and Settings\Administrator>
^done

(gdb)

<-gdb-set env ITEMID=dj-22741-15>
^done

(gdb)

<-gdb-set env LANG=1031>
^done

(gdb)

<-gdb-set env LOGONSERVER=\\ATHLON28>
^done

(gdb)

<-gdb-set env NUMBER_OF_PROCESSORS=1>
^done

(gdb)

<-gdb-set env Os2LibPath=C:\WINNT\system32\os2\dll;>
^done

(gdb)

<-gdb-set env OS=Windows_NT>
^done

(gdb)

<-gdb-set env OSVER=win2KP>
^done

(gdb)

<-gdb-set env
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\Python24;d:\work\bin;C:\Program
Files\Common Files\GTK\2.0\bin;C:\Program Files\cvsnt;C:\Program
Files\Subversion\bin>
^done

(gdb)

<-gdb-set env PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH>
^done

(gdb)

<-gdb-set env PROCESSOR_ARCHITECTURE=x86>
^done

(gdb)

<-gdb-set env PROCESSOR_IDENTIFIER=x86 Family 6 Model 10 Stepping 0,
AuthenticAMD>
^done

(gdb)

<-gdb-set env PROCESSOR_LEVEL=6>
^done

(gdb)

<-gdb-set env PROCESSOR_REVISION=0a00>
^done

(gdb)

<-gdb-set env ProgramFiles=C:\Program Files>
^done

(gdb)

<-gdb-set env SESSIONID=1114352996666htx694e1e2b3:103e575e2a7:1c39>
^done

(gdb)

<-gdb-set env SWUTVER=1.0.22.20030804>
^done

(gdb)

<-gdb-set env SystemDrive=C:>
^done

(gdb)

<-gdb-set env SystemRoot=C:\WINNT>
^done

(gdb)

<-gdb-set env TEMP=C:\TEMP>
^done

(gdb)

<-gdb-set env TIMEOUT=0>
^done

(gdb)

<-gdb-set env TMP=C:\TEMP>
^done

(gdb)

<-gdb-set env
TOOLPATH=/C:\Program%20Files\HP\HP%20Software%20Update\install.htm>
^done

(gdb)

<-gdb-set env UPDATEDIR=C:\temp\radEF5F1.tmp>
^done

(gdb)

<-gdb-set env USERDOMAIN=ATHLON28>
^done

(gdb)

<-gdb-set env USERNAME=Administrator>
^done

(gdb)

<-gdb-set env USERPROFILE=C:\Documents and Settings\Administrator>
^done

(gdb)

<-gdb-set env VERSION=3.0.5.001>
^done

(gdb)

<-gdb-set env windir=C:\WINNT>
^done

(gdb)

<-file-exec-and-symbols "D:/Work/mywork/lazarus/Tabakshop/tabakshop.exe">
^done

(gdb)

<-environment-cd "D:/Work/mywork/lazarus/Tabakshop/">
^done

(gdb)

<-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
^done,value="0x0"

(gdb)

<-gdb-set language pascal>
^done

(gdb)

<-break-insert -t main>
^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="$00401038",func="main",file="tabakshop.lpr",line="11",times="0"}

(gdb)

<-break-insert FPC_RAISEEXCEPTION>
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="$0040a0ea",func="fpc_raiseexception",file="except.inc",line="180",times="0"}

(gdb)

<-break-insert FPC_BREAK_ERROR>
^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="$0040c59e",func="HANDLEERRORADDRFRAME",file="system.inc",line="675",times="0"}

(gdb)

<-break-insert FPC_RUNERROR>
^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="$0040c682",func="RUNERROR",file="system.inc",line="711",times="0"}

(gdb)

<info file>
&"info file\n"

~"Symbols from \"D:/Work/mywork/lazarus/Tabakshop/tabakshop.exe\".\n"

~"Local exec file:\n"

~"\t`D:/Work/mywork/lazarus/Tabakshop/tabakshop.exe', file type pei-i386.\n"

~"\tEntry point: $40100c\n"

~"\t$00401000 - $0055ee50 is .text\n"

~"\t$0055f000 - $005f7350 is .data\n"

~"\t$005f8000 - $0060cd90 is .bss\n"

~"\t$0060d000 - $00610088 is .idata\n"

^done

(gdb)

<-exec-run>
^running

(gdb)

*stopped,thread-id="1",frame={addr="$00401038",func="main",args=[],file="tabakshop.lpr",line="11"}

(gdb)

<info program>
&"info program\n"

~"\tUsing the running image of child thread 1072.0x440.\n"

~"\n"

~"   Program stopped at $401038.\n"

~"It stopped at a breakpoint that has since been deleted.\n"

~"Type \"info stack\" or \"info registers\" for more information.\n"

^done

(gdb)

<-exec-continue>
^running

(gdb)

*stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation
fault",thread-id="1",frame={addr="$004054c7",func="fpc_ansistr_incr_ref",args=[{name="S",value="$baadf00d"}],file="astrings.inc",line="119"}

(gdb)


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to