[Lazarus] How to exec some gdb command on start in lazarus
Petr Kristan
petr.kristan at epos.cz
Tue Jun 25 11:51:30 CEST 2013
On Tue, Jun 25, 2013 at 10:07:10AM +0100, martin wrote:
> On 25/06/13 07:49, Petr Kristan wrote:
> >Thank you for the fast response. I try it, but I get this message:
> >Debugger: Initialization output: &"Undefined command: \"\". Try \"help\".\n
> >
> >In processes i have
> >/usr/bin/gdb -silent -i mi -nx --eval-command="handle SIGPIPE nostop noprint pass"
> >
> >But gdb already stops on SIGPIPE.
> >
> >If I try run
> >/usr/bin/gdb -silent -i mi -nx --eval-command="handle SIGPIPE nostop noprint pass"
> >from bash, then it works ok.
>
> Did you try single quotes ?
> looks like the parts of the command line are not correctly broken
> into individual args.
Yes. With the same result.
I try to debug Debugger_Startup_Options: --eval-command="handle SIGPIPE nostop noprint pass"
with strace and here is execve line:
[pid 20053] execve("/usr/bin/gdb", ["/usr/bin/gdb", "-silent", "-i",
"mi", "-nx", "--eval-command=\"handle SIGPIPE nostop noprint pass\""],
[/* 52 vars */]) = 0
IMHO it looks ok.
Petr
--
Petr Kristan
.
EPOS PRO s.r.o., Smilova 333, 530 02 Pardubice
tel: +420 461101401 Czech Republic (Eastern Europe)
fax: +420 461101481
More information about the Lazarus
mailing list