This is the mail archive of the
insight@sourceware.cygnus.com
mailing list for the Insight project.
Re: A few questions
- To: lduperval AT sprint.ca
- Subject: Re: A few questions
- From: James Ingham <jingham AT cygnus dot com>
- Date: Thu, 16 Sep 1999 16:43:39 -0700 (PDT)
- Cc: Insight Maling List <insight AT sourceware.cygnus dot com>
- References: <199909162328.TAA16126@hme0.smtp04.sprint.ca>
lduperval@sprint.ca writes:
> Hi,
>
> I'm a new user and I have a couple of questions:
>
> - Is it possible to save my breakpoints? When I debug a program, I'd ike
> to reload the same breakpoints I had the last time. Especially since
> debugging that program makes gdb crash...
Bring up the breakpoints window, and choose:
Global->Save Breakpoints
This writes a gdb command file with the breakpoints in it. This
command doesn't yet store away the commands and conditions, but that
would not be too hard to hack in...
There is an equivalent restore breakpoints entry.
>
> - How do I pass command line parameters to the program I'm debugging? In
> cli mode I can do "run params" but how does it work with th GUI?
Couple of ways. You can do:
(gdb) set args whatever
in the console window before you run.
Or you can bring up the Target Settings dialog (File->Target
Settings), set the target to exec, and enter the args in the magical
Args box that will appear below the target dropdown.
>
> I'm using a July release (I've a slow connection). If the above is
> available in the most recent release, let me know and i'll just hog the
> phone line a little more.
I think you should have both of these.
Jim
P.S. If you can get a reproducible case which crashes gdb, please send
it to us. We will try to fix it.
Jim
--
++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++
Jim Ingham jingham@cygnus.com
Cygnus Solutions Inc.