From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25267 invoked by alias); 11 Jan 2011 03:38:22 -0000 Received: (qmail 25247 invoked by uid 22791); 11 Jan 2011 03:38:20 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,TW_RG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Jan 2011 03:38:17 +0000 Received: from hpaq2.eem.corp.google.com (hpaq2.eem.corp.google.com [172.25.149.2]) by smtp-out.google.com with ESMTP id p0B3cEro018857 for ; Mon, 10 Jan 2011 19:38:14 -0800 Received: from qwi2 (qwi2.prod.google.com [10.241.195.2]) by hpaq2.eem.corp.google.com with ESMTP id p0B3bn1e010531 for ; Mon, 10 Jan 2011 19:38:13 -0800 Received: by qwi2 with SMTP id 2so4553637qwi.3 for ; Mon, 10 Jan 2011 19:38:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.95.200 with SMTP id e8mr25525386qcn.213.1294717091585; Mon, 10 Jan 2011 19:38:11 -0800 (PST) Received: by 10.220.118.80 with HTTP; Mon, 10 Jan 2011 19:38:11 -0800 (PST) In-Reply-To: <201101101729.10772.vapier@gentoo.org> References: <1294308908-23356-1-git-send-email-vapier@gentoo.org> <201101101729.10772.vapier@gentoo.org> Date: Tue, 11 Jan 2011 03:38:00 -0000 Message-ID: Subject: Re: [PATCH] gdb: add callback defines for new ARGV handling From: Doug Evans To: Mike Frysinger Cc: gdb-patches@sourceware.org, toolchain-devel@blackfin.uclinux.org, newlib@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00213.txt.bz2 [+ newlib] On Mon, Jan 10, 2011 at 2:29 PM, Mike Frysinger wrote: >> For callback.h, IWBN to add some documentation regarding why things >> are the way they are. =A0E.g. if argn is preferred over argv, why? > > these things were created long before i had even heard of either project,= so i > can only speculate on their history. Understood. > i would guess that argv/argvlen made it > more difficult to do what most people actually want -- pass argc/argv to = the > main function. =A0and so argc/argn were born. I wouldn't mind hearing more, sounds pretty fishy. Though I understand it was before your time. I found these in the newlib archives: An inquiry into argv,argvlen: http://sourceware.org/ml/newlib/2006/msg00859.html Submission of argc,argn,argnlen: http://sourceware.org/ml/newlib/2006/msg00883.html I couldn't find any pushback when argn,argnlen were submitted. > all i really know is that argc/argn/argnlen are labeled as "the new appro= ach" > in a few places, and as such, it is what the Blackfin port supports. Blech. I'm hesitant to approve the patch, but since this is sim,newlib I don't want to hold things up much just because of this. > it also seems like the syscall handling intended to handle argv at some p= oint, > but someone didnt get around to implementing it. =A0so i could flesh that= out > too so that i could take the Blackfin argn/argc code and move it to > common/syscall.c in the sim. newlib: does anyone know the history of SYS_argc,argn,argnlen vs SYS_argv,argvlen beyond the above mentioned emails?