This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: $argc variable
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches at sources dot redhat dot com
- Date: Tue, 15 Nov 2005 12:33:00 +0000
- Subject: Re: $argc variable
- References: <436F35E9.4070808@st.com> <20051107133538.GA2331@nevyn.them.org> <43709E94.4070004@st.com> <u7jbisp6n.fsf@gnu.org> <4371D9A6.40109@st.com> <u3bm5sk6i.fsf@gnu.org> <43731C16.2040203@st.com> <20051113173524.GC1945@nevyn.them.org> <4378BB1A.9070606@st.com> <u7jbaim9z.fsf@gnu.org> <20051115044045.GA12833@nevyn.them.org>
Daniel Jacobowitz wrote:
OK for the documentation patch.
The code is fine too.
Thanks, commited.
Should this go on the branch? Should it go in NEWS? My inclination is
"both".
I have no objection to putting it in. How about the attached for NEWS?
Andrew
2005-11-15 Andrew Stubbs <andrew.stubbs@st.com>
* NEWS (6.4): Mention $argc.
Index: src/gdb/NEWS
===================================================================
--- src.orig/gdb/NEWS 2005-11-15 12:09:47.000000000 +0000
+++ src/gdb/NEWS 2005-11-15 12:15:45.000000000 +0000
@@ -70,6 +70,12 @@ behavior.
GDB now supports the not-quite-ieee VAX F and D floating point formats.
+* User-defined command support
+
+In addition to using $arg0..$arg9 for argument passing, it is now possible
+to use $argc to determine now many arguments have been passed. See the
+section on user-defined commands in the user manual for more information.
+
*** Changes in GDB 6.3:
* New command line option