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 ====

<unset env >
&"unset env \n"

^done

(gdb)
<-gdb-set env =::=::\>
&"Argument required (environment variable to set).\n"

^error,msg="Argument required (environment variable to set)."

==============================

Perhaps this causes some of the problems with running external problems from 
lazarus.

Testing it with my mysqltest program... this is indeed the problem with this 
program! (see below for details). It doesn't seem to be the problem with your 
program though, since it crashes anyway when run from gdb... But it is a problem 
in Lazarus I think. I'm not sure whether it is a bug, because in Run -> Run 
Parameters ..., tab Environment, I can't enable 'Include system variables' (the 
checkbox is grayed out). Is this feature indeed missing? (question pointed to the 
Laz devels of course)

Regards,

Bram


===== Some details =====

$ ../lazarus/mingw/bin/gdb.exe -silent -i mi -nx ./mysqltest.exe
(gdb)
unset env
&"unset env\n"
^done
(gdb)
run
&"run\n"
Can't connect because: Can't create TCP/IP socket (10106)

========================

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

Reply via email to