From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8043 invoked by alias); 22 Oct 2003 16:19:57 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 7959 invoked from network); 22 Oct 2003 16:19:54 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 22 Oct 2003 16:19:54 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h9MGJnM14434 for ; Wed, 22 Oct 2003 12:19:49 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h9MGJmr20477; Wed, 22 Oct 2003 12:19:48 -0400 Received: from [150.1.200.14] (vpn50-26.rdu.redhat.com [172.16.50.26]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h9MGJiCo005013; Wed, 22 Oct 2003 12:19:47 -0400 Subject: Re: How to use "Command to issue after attaching" From: Keith Seitz To: Cliff Cc: "insight@sources.redhat.com" In-Reply-To: <007f01c39898$5c39d210$0100a8c0@tamahome> References: <007f01c39898$5c39d210$0100a8c0@tamahome> Content-Type: text/plain Organization: Message-Id: <1066839777.1589.7.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Wed, 22 Oct 2003 16:19:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q4/txt/msg00054.txt.bz2 On Wed, 2003-10-22 at 05:31, Cliff wrote: > It is a serial of commands like > monitor long 0x01c80000 = 0x11111002 > monitor long 0x01c80004 = 0x0600 > monitor long 0x01c80008 = 0x7ffc > ..... Is your target set to use "continue" instad of "run"? Check the "More Options" bit in the target selection dialog. Otherwise, there's a workaround... The "more options" thing describes the commands that are used when the Run button is pressed. If it is using "continue", then I would recommend you try running using only command-line gdb: "file MYEXE"; "set remotebaud BAUD" (if needed); "target TGT [OPTIONS]"; "load"; "break FUNCTION"; "cont". In insight, the Run button always means: "Do whatever needs to be done to get something running on the target." Of course, this means different things to various targets. > Then I try the "Command to issue after attaching" in the Target > Selection dialog, but it seems only one command to issue. How can > I run more than one command after attaching the target? Put all your commands into a text file. Then enter the command "source MYFILE" in the "command to ...." in the target selection dialog. Keith