Re: gdb start-with-shell
Re: gdb start-with-shell
- Subject: Re: gdb start-with-shell
- From: Jason Molenda <email@hidden>
- Date: Mon, 21 Jul 2008 13:09:01 -0700
start-with-shell is a standard feature of gdb; it is not Apple
specific. Starting your debuggee process via a shell invocation is
useful to get the arguments to your program expanded as you'd likely
expect. A concrete example:
(gdb) file /bin/echo
(gdb) set start-with-shell 1
(gdb) run .cshr*
Starting program: /bin/echo .cshr*
.cshrc .cshrc-nothing
Program exited normally.
(gdb) set start-with-shell 0
(gdb) run .cshr*
.cshr*
Program exited normally.
(gdb)
In the start-with-shell 1 case, the ".cshr*" was expanded to the two
files in my current working directory that start with ".cshr". In the
start-with-shell 0 case, the string ".cshr*" was passed as a single
argument to the program; no glob expansion by the shell was done.
J
On Jul 21, 2008, at 11:50 AM, Jeff LaMarche wrote:
Does anyone know where the start-with-shell option for gdb is
documented? I've seen it mentioned in a few places in release notes,
mailing lists, and in the Memory Usage Performance Guidelines. This
option does not appear in the documentation for gdb, neither in the
user documentation or the documentation of GDB internals.. is this
something that Apple added? Is there a description of exactly what
it's doing?
Thanks,
Jefs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden