From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26368 invoked by alias); 9 Jul 2007 11:56:52 -0000 Received: (qmail 26358 invoked by uid 22791); 9 Jul 2007 11:56:52 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Jul 2007 11:56:50 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 726239829E for ; Mon, 9 Jul 2007 11:56:49 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 4FD439817C for ; Mon, 9 Jul 2007 11:56:49 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1I7rrD-00012P-R3 for gdb@sourceware.org; Mon, 09 Jul 2007 07:56:47 -0400 Date: Mon, 09 Jul 2007 11:56:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: $_ and info breakpoint Message-ID: <20070709115647.GC3095@caradoc.them.org> Mail-Followup-To: gdb@sourceware.org References: <18064.7905.924535.720690@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18064.7905.924535.720690@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-07/txt/msg00064.txt.bz2 On Sun, Jul 08, 2007 at 11:16:49AM +1200, Nick Roberts wrote: > The convenience variable `$_' and the default > examining-address for the `x' command are set to the address of > the last breakpoint listed I didn't know this was there, but if it's a documented feature, we should probably leave it be. But it's not documented for -break-list and I can't see any reason why it should be. > 1) That "info breakpoint" doesn't set $_. At least -break-list shouldn't do > this. Is changing -break-list enough to fix your problem? If so, I recommend that; either by separating -break-list and info break into different functions, or by the old hack of ui_out_is_mi_like_p. -- Daniel Jacobowitz CodeSourcery