From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27424 invoked by alias); 29 Jan 2008 20:07:48 -0000 Received: (qmail 27416 invoked by uid 22791); 29 Jan 2008 20:07:47 -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; Tue, 29 Jan 2008 20:07:27 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D96D598151; Tue, 29 Jan 2008 20:07:25 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id AA9319811F; Tue, 29 Jan 2008 20:07:25 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JJwjs-0003lV-OI; Tue, 29 Jan 2008 15:07:24 -0500 Date: Tue, 29 Jan 2008 20:15:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: Nick Roberts , gdb-patches@sources.redhat.com Subject: Re: [PATCH] Re: bug in mi when setting breakpoint Message-ID: <20080129200724.GF9019@caradoc.them.org> Mail-Followup-To: Vladimir Prus , Nick Roberts , gdb-patches@sources.redhat.com References: <20071216125625.GE4783@coin> <200801201408.41661.ghost@cs.msu.su> <18323.45014.340535.910232@kahikatea.snap.net.nz> <200801211028.07452.ghost@cs.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801211028.07452.ghost@cs.msu.su> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00718.txt.bz2 On Mon, Jan 21, 2008 at 10:28:06AM +0300, Vladimir Prus wrote: > As I've mentioned, in non-stop mode, adding all breakpoint and then removing > undesired ones won't work. I don't think this is right. "break f" -> [f(int), f(long)] is exactly the same as "break f" -> [f(), f()] or "break f" -> [f inlined into g, f inlined into h]. The fact that we handle all these things differently in GDB today seems like a bug to me. If the IDE wants to set a breakpoint on one of a group of overloaded functions, where it only knows the name, can't it query GDB for the list separately from -break-insert? We have got a problem today: we print out prompts for GDB/MI clients in a completely invalid way. Let's figure out what those prompts should do in MI mode, and make them do it instead of prompting. -- Daniel Jacobowitz CodeSourcery