From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14326 invoked by alias); 6 Jan 2011 09:15:37 -0000 Received: (qmail 14317 invoked by uid 22791); 6 Jan 2011 09:15:34 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Jan 2011 09:15:27 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 344691B40FA; Thu, 6 Jan 2011 09:15:25 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Cc: toolchain-devel@blackfin.uclinux.org Subject: [PATCH] gdb: add callback defines for new ARGV handling Date: Thu, 06 Jan 2011 09:15:00 -0000 Message-Id: <1294308908-23356-1-git-send-email-vapier@gentoo.org> 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/msg00118.txt.bz2 The common sim code has slightly unfinished support for these already, but even arch ports are unable to handle these if the common header does not define them. This is because the generated callback header includes simple common gdb/sim headers only which causes it to skip the new ARGV syscalls. Plus, it isn't like providing these in the common header will break any sim targets which don't want them. Signed-off-by: Mike Frysinger 2010-01-06 Mike Frysinger * callback.h (CB_SYS_argc, CB_SYS_argnlen, CB_SYS_argn): Define. --- include/gdb/callback.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/gdb/callback.h b/include/gdb/callback.h index a1f79f9..296dfc3 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -231,6 +231,11 @@ extern host_callback default_callback; #define CB_SYS_truncate 21 #define CB_SYS_ftruncate 22 #define CB_SYS_pipe 23 + +/* New ARGV support. */ +#define CB_SYS_argc 24 +#define CB_SYS_argnlen 25 +#define CB_SYS_argn 26 /* Struct use to pass and return information necessary to perform a system call. */ -- 1.7.3.1