Execute zero with a program, but without running it as soon as zero starts up

1 view
Skip to first unread message

Ary Borenszweig

unread,
Jul 9, 2008, 11:28:42 AM7/9/08
to zerobugs
Hi,

I'm developing a user interface for ZeroBUGS for Descent (
http://dsource.org/projects/descent ). I'm already supporting gdb and
ddbg. With all of them what I do is the following:
1. run the debugger, telling it which program I'll be debugging
2. set the breakpoints the user indicated
3. run the debugged program (the debugee)

With zero I'm not able to do this because point 1 runs point 3
immediately. Is there any command line argument I can pass to zero to
tell it not to execute the debugee on startup?

I'm also looking for a command line argument to not stop on main,
because you don't always want to do that.

Thanks in advance,
Ary

C. Vlasceanu

unread,
Jul 10, 2008, 2:19:15 AM7/10/08
to zero...@googlegroups.com
Hi Ary,

Try defining ZERO_START_MAIN to 0 or "false" in your environment. The program should load and stop at the first instruction. See also: http://www.zero-bugs.com/2.0/manual_environ.html

As a side comment: my understanding is that Eclipse interfaces with GDB using DMI (debugger-machine interface, http://www.linuxfoundation.org/en/DMI). Zero does not implement DMI out of the box, but it can be done with a bit of Python scripting, see a proof-of-concept example here: http://zero-bugs.com/examples/dmi.py

Best regards,
Cristian Vlasceanu
--
the-free-meme.blogspot.com
Reply all
Reply to author
Forward
0 new messages