<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: How to debug a method taking a variable list of arguments? --> <!--X-From-R13: Pra Uerrne <terrneNploreuvtujnl.arg> --> <!--X-Date: Sun, 13 Jun 1999 14:24:54 -0700 --> <!--X-Message-Id: 376418A1.EAC839FA#cyberhighway,net --> <!--X-Content-Type: text/plain --> <!--X-Reference: 37634E53.3BA3757C#cyberhighway,net --> <!--X-Reference: slrn7m7umf.2vn.jxh#jamespc,ungerhu.com --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: How to debug a method taking a variable list of </title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:greear#cyberhighway,net"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00800.html">Previous</a> | <a href="msg00802.html">Next</a> ] Thread: [ <a href="msg00794.html">Previous</a> | <a href="msg00795.html">Next</a> ] Index: [ <A HREF="author.html#00801">Author</A> | <A HREF="#00801">Date</A> | <A HREF="thread.html#00801">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: How to debug a method taking a variable list of arguments?</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:jxh#cs,wustl.edu">jxh#cs,wustl.edu</A></LI> <LI><em>Subject</em>: [MUD-Dev] Re: How to debug a method taking a variable list of arguments?</LI> <LI><em>From</em>: Ben Greear <<A HREF="mailto:greear#cyberhighway,net">greear#cyberhighway,net</A>></LI> <LI><em>Date</em>: Sun, 13 Jun 1999 13:46:25 -0700</LI> <LI><em>CC</em>: "<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>" <<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>></LI> <LI><em>Newsgroups</em>: comp.lang.c,comp.lang.c++</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Sender</em>: <A HREF="mailto:greear#burrito,cyberhighway.net">greear#burrito,cyberhighway.net</A></LI> <LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> James Hu wrote: > > On Sat, 12 Jun 1999 23:23:15 -0700, Ben Greear <greear#cyberhighway,net> wrote: > > >I'm trying to pass a list of variable arguments through several methods. > >For one reason or another, it's not working right, and I'm having a hard > >time getting gdb or any other method to figure out why. > > After you have retrieved the va_list from one function, you cannot > pass that list to another that is expecting ``...''. You must pass the > va_list to a function expecting a va_list. > > See, for example, the answer to question 15.5 in the C-faq. > > <A HREF="http://www.eskimo.com/~scs/C-faq/top.html">http://www.eskimo.com/~scs/C-faq/top.html</A> Ahh, the v in front of the vprintf should have warned me!! Thanks, that fixed the problem. > > -- > James C. Hu <jxh#cs,wustl.edu> Computer Science Doctoral Candidate > <A HREF="http://www.cs.wustl.edu/~jxh/">http://www.cs.wustl.edu/~jxh/</A> Washington University in Saint Louis > >>>>>>>>>>>>> I use *SpamBeGone* <URL:<A HREF="http://www.internz.com/SpamBeGone/">http://www.internz.com/SpamBeGone/</A>> -- Ben Greear (greear#cyberhighway,net) <A HREF="http://scry.wanfear.com/~greear">http://scry.wanfear.com/~greear</A> Author of ScryMUD: scry.wanfear.com 4444 (Released under GPL) <A HREF="http://scry.wanfear.com">http://scry.wanfear.com</A> _______________________________________________ MUD-Dev maillist - MUD-Dev#kanga,nu <A HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A> </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00794" HREF="msg00794.html">[MUD-Dev] How to debug a method taking a variable list of arguments?</A></STRONG> <UL><LI><EM>From:</EM> Ben Greear <greear#cyberhighway,net></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00800.html">Re: [MUD-Dev] thoughts on game economies</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00802.html">[MUD-Dev] Twisted Reality</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00794.html">[MUD-Dev] How to debug a method taking a variable list of arguments?</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00795.html">Re: [MUD-Dev] How to debug a method taking a variable list of arguments?</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00801"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00801"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>Re: [MUD-Dev] thoughts on game economies</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <ul compact> <ul compact> <ul compact> <ul compact> <LI><strong><A NAME="00870" HREF="msg00870.html">Re: [MUD-Dev] thoughts on game economies</A></strong>, Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Tue 22 Jun 1999, 01:24 GMT </LI> </ul> </ul> </ul> </ul> </ul> </ul> </LI> <LI><strong><A NAME="00803" HREF="msg00803.html">[MUD-Dev] ADMIN: Searching on MUD-Dev archives</A></strong>, claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Mon 14 Jun 1999, 04:20 GMT <LI><strong><A NAME="00802" HREF="msg00802.html">[MUD-Dev] Twisted Reality</A></strong>, claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Mon 14 Jun 1999, 01:29 GMT <LI><strong><A NAME="00794" HREF="msg00794.html">[MUD-Dev] How to debug a method taking a variable list of arguments?</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 13 Jun 1999, 07:01 GMT <UL> <LI><EM>Message not available</EM><UL> <LI><strong><A NAME="00801" HREF="msg00801.html">[MUD-Dev] Re: How to debug a method taking a variable list of arguments?</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 13 Jun 1999, 21:24 GMT </LI> </UL> </LI> </UL> <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00795" HREF="msg00795.html">Re: [MUD-Dev] How to debug a method taking a variable list of arguments?</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 13 Jun 1999, 17:02 GMT </LI> </UL> </LI> <LI><strong><A NAME="00783" HREF="msg00783.html">[MUD-Dev] Game economics</A></strong>, Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Sat 12 Jun 1999, 00:50 GMT <UL> <LI><strong><A NAME="00790" HREF="msg00790.html">Re: [MUD-Dev] Game economics</A></strong>, Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sat 12 Jun 1999, 02:38 GMT </LI> </UL> </LI> <LI><strong><A NAME="00769" HREF="msg00769.html">[MUD-Dev] Playing the monsters</A></strong>, David95037 <a href="mailto:David95037#aol,com">David95037#aol,com</a>, Fri 11 Jun 1999, 19:26 GMT </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>