From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20494 invoked by alias); 12 Feb 2008 15:54:59 -0000 Received: (qmail 20485 invoked by uid 22791); 12 Feb 2008 15:54:58 -0000 X-Spam-Check-By: sourceware.org Received: from rn-out-0910.google.com (HELO rn-out-0910.google.com) (64.233.170.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Feb 2008 15:54:36 +0000 Received: by rn-out-0910.google.com with SMTP id e11so2536922rng.0 for ; Tue, 12 Feb 2008 07:54:34 -0800 (PST) Received: by 10.142.13.13 with SMTP id 13mr1148036wfm.89.1202831673610; Tue, 12 Feb 2008 07:54:33 -0800 (PST) Received: by 10.143.125.5 with HTTP; Tue, 12 Feb 2008 07:54:33 -0800 (PST) Message-ID: Date: Tue, 12 Feb 2008 15:54:00 -0000 From: "Yakov Lerner" To: gdb@sourceware.org Subject: substitute gdb convenience variable into gdb command MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: 2008-02/txt/msg00069.txt.bz2 How do I substitute value of gdb convenience variable into gdb command ? For example: set $thread_num=5 thread apply $thread_num where Error parsing $thread_num where eval thread apply $thread_num where Undefined command: "eval". Try "help". Thanks Y.L.