From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17762 invoked by alias); 19 Sep 2011 07:04:04 -0000 Received: (qmail 17752 invoked by uid 22791); 19 Sep 2011 07:04:03 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from feith1.FEITH.COM (HELO feith1.FEITH.COM) (192.251.93.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Sep 2011 07:03:37 +0000 Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.14.4+Sun/8.12.9) with ESMTP id p8J73bRm003407 for ; Mon, 19 Sep 2011 03:03:37 -0400 (EDT) (envelope-from john@jwlab.FEITH.COM) Received: from jwlab.FEITH.COM (localhost [127.0.0.1]) by jwlab.FEITH.COM (8.14.4+Sun/8.14.4) with ESMTP id p8J73bLE009322 for ; Mon, 19 Sep 2011 03:03:37 -0400 (EDT) Received: (from john@localhost) by jwlab.FEITH.COM (8.14.4+Sun/8.14.4/Submit) id p8J73b4m009321 for sid@sources.redhat.com; Mon, 19 Sep 2011 03:03:37 -0400 (EDT) Date: Mon, 19 Sep 2011 07:04:00 -0000 From: John Wehle Message-Id: <201109190703.p8J73b4m009321@jwlab.FEITH.COM> To: sid@sources.redhat.com Subject: sid-20110801 Patch to sync SYS_argc, SYS_argnlen, SYS_argn with newlib MIME-Version: 1.0 Content-Type: text/plain X-DCC-Misty-Metrics: feith1; whitelist Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2011-q3/txt/msg00005.txt.bz2 Currently the default values used by sid for SYS_argc, SYS_argnlen, SYS_argn don't match the default values used by newlib. Looking at the simulators supplied with gdb we see they default to the same values as newlib. The only exception is the gdb sh and sh64 simulators which use different values. Given that the sid sh and sh64 simulators already provide a custom mapping with matches the gdb simulators, it seems reasonible to sync the default values used by sid with that values used by newlib and the gdb simulators. This way new ports can just use the default newlib values and have command line argument passing working "out of the box" with both the gdb simulators and sid. The enclosed patch has been tested on FreeBSD with sid configured for tomi Borealis (a processor under development by Venray Technology). ChangeLog: Mon Sep 19 01:52:59 EDT 2011 John Wehle (john@feith.com) * component/gloss/libgloss.h (SYS_argc, SYS_argnlen, SYS_argn): Sync with newlib/libgloss/syscall.h. -- John ------------------------8<------------------------------8<--------------- --- component/gloss/libgloss.h.ORIGINAL 2011-09-19 00:56:13.000000000 -0400 +++ component/gloss/libgloss.h 2011-09-18 03:00:01.000000000 -0400 @@ -39,9 +39,9 @@ SYS_gettimeofday = 19, SYS_times = 20, SYS_reconfig = 25, - SYS_argc = 172, - SYS_argnlen = 173, - SYS_argn = 174, + SYS_argc = 22, + SYS_argnlen = 23, + SYS_argn = 24, SYS_unsupported = 255 // arbitrary syscall number, unsupported by default gloss component }; }; -------------------------------------------------------------------------