From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10408 invoked by alias); 9 Nov 2009 17:20:07 -0000 Received: (qmail 10393 invoked by uid 22791); 9 Nov 2009 17:20:06 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Nov 2009 17:20:01 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id B68FC10CE9; Mon, 9 Nov 2009 17:19:59 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id A45AA1065D; Mon, 9 Nov 2009 17:19:59 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1N7XuI-0006P9-Qc; Mon, 09 Nov 2009 12:19:58 -0500 Date: Mon, 09 Nov 2009 17:44:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: Arjun Roy , gdb@sourceware.org Subject: Re: Python Scripting Question Message-ID: <20091109171958.GA24542@caradoc.them.org> Mail-Followup-To: Tom Tromey , Arjun Roy , gdb@sourceware.org References: <4AF63479.7010602@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00092.txt.bz2 On Mon, Nov 09, 2009 at 09:41:54AM -0700, Tom Tromey wrote: > It isn't clear to me that gdb commands are allowed to overwrite their > argument strings, though. Are they? disassemble_command does do this, > but it seems wrong to me -- won't it permanently modify the command > stored in a command script? Is it this bit? /* Two arguments. */ *space_index = '\0'; I don't think we should let commands modify their argument string. -- Daniel Jacobowitz CodeSourcery