From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26641 invoked by alias); 25 Aug 2006 21:37:39 -0000 Received: (qmail 26518 invoked by uid 22791); 25 Aug 2006 21:37:26 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 25 Aug 2006 21:37:22 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GGjMc-0005b5-F3; Fri, 25 Aug 2006 17:37:18 -0400 Date: Fri, 25 Aug 2006 21:37:00 -0000 From: Daniel Jacobowitz To: Lee Cc: gdb@sources.redhat.com Subject: Re: arc argv problems Message-ID: <20060825213718.GA21431@nevyn.them.org> Mail-Followup-To: Lee , gdb@sources.redhat.com References: <20060825213013.94568.qmail@web55607.mail.re4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060825213013.94568.qmail@web55607.mail.re4.yahoo.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00203.txt.bz2 On Fri, Aug 25, 2006 at 02:30:13PM -0700, Lee wrote: > I am doing all of this on linux gdb build > gdb-6.5.50.20060823 > > I dumbed down my script for demo purposes here > I even downloaded some sample .gdbinit files and they > did not work either > > I am not sure if this is a bug, or user error Your GDB appears to be very, very broken. I get completely different results using the same gdbinit, which look correct. > edircpr:/gdb/gdb-6.5.50.20060823/gdb # vi ~/.gdbinit > edircpr:/gdb/gdb-6.5.50.20060823/gdb # gdb > GNU gdb 6.4 > Copyright 2005 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General > Public License, and you are > welcome to change it and/or distribute copies of it > under certain conditions. You appear to have edited out your platform. Where are you running this? > I have also tried using $ARGC etc, but I think the > correct one to use is $argc $argv $argc and $arg0 and $arg1. > Also I have not found any good scripting references > specific to gdb. While it is very similar to other > things, there are things that work special like printf > that are close but not the same. It's all in the GDB manual. Search for $argc. -- Daniel Jacobowitz CodeSourcery