From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4216 invoked by alias); 15 Sep 2005 12:24:23 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4206 invoked by uid 22791); 15 Sep 2005 12:24:19 -0000 Received: from m31-174.126.com (HELO 126.com) (220.181.31.174) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 15 Sep 2005 12:24:19 +0000 Received: from xf (unknown [218.22.68.243]) by smtp5 (Coremail) with SMTP id IcCvV+hnKUNWWDhd.1 for ; Thu, 15 Sep 2005 20:24:11 +0800 (CST) Date: Thu, 15 Sep 2005 12:24:00 -0000 From: "wmaple" To: "gdb" Subject: Is there a way to define a macro? Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00103.txt.bz2 Message-ID: <20050915122400.ei00qA98dN_6RBq737SPO51sl9_5yiqSaNyDnL4mLV8@z> Hi. When I debug a program on disassambly level, for inspecting registers or memory units, I have to enter same commands again and again. For example, after execution of each instruction, I want to inspecting all common registers. So, every time, I have to enter command 'info register' several times. Is there a way to define a macro, by which I can enter these commands conveniently. Thanks!