From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13360 invoked by alias); 25 Jun 2008 17:21:04 -0000 Received: (qmail 13352 invoked by uid 22791); 25 Jun 2008 17:21:04 -0000 X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 17:20:43 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id m5PHKe2N014271; Wed, 25 Jun 2008 12:20:40 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Jun 2008 12:21:08 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [MI] argv/argc/args Date: Wed, 25 Jun 2008 17:21:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA0429120A@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <200806251907.58610.vladimir@codesourcery.com> From: "Marc Khouzam" To: "Vladimir Prus" , 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-06/txt/msg00252.txt.bz2 SGksDQoNCmp1c3QgdG8gZ2l2ZSBpbnB1dCBvbiBEU0YncyB1c2Ugb2YgdGhl c2UgY29tbWFuZHMsDQphbHRob3VnaCB0aGF0IGRvZXNuJ3Qgc3BlYWsgZm9y IGFueSBvdGhlciBmcm9udGVuZC4NCg0KPiAJLWV4ZWMtbmV4dA0KPiAJLWV4 ZWMtbmV4dC1pbnN0cnVjdGlvbg0KPiAJLWV4ZWMtc3RlcA0KPiAJLWV4ZWMt c3RlcC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xsIHJlcXVpcmUgDQo+IGNo YW5naW5nIG90aGVyIHBhcnRzIG9mDQo+IEdEQiB0byBhdm9pZCBwYXJzaW5n IGZpbGVuYW1lcywgd2hpY2ggaXMgcmlza3kgYXQgdGhpcyBwb2ludC4gDQo+ IEl0IGFwcGVhcnMsIHRoYXQNCj4gaW5zdGVhZCBvZiByZXZlcnRpbmcgbXkg b3JpZ2luYWwgcGF0Y2gsIHdlIGNhbiBqdXN0IHBhdGggDQo+IHRob3NlIDMg Y29tbWFuZHMNCj4gdmlhIENMSSBkaXJlY3RseS4gRG9lcyB0aGUgcGxhbiBz b3VuZCByZWFzb25hYmxlPw0KDQpGb3IgRFNGLCBpdCBzaG91bGQgbWVhbiBu byBjaGFuZ2VzLCBzbyBJIGxpa2UgdGhpcyBzb2x1dGlvbi4NCg0KPiBJZGVh bGx5LCB3ZSdkIHJlcXVpcmUNCj4gYWxsIGNvbW1hbmRzIHRvIHVzZSBNSSBx dW90aW5nLCBidXQgdGhpcyBtaWdodCBicmVhayBsb3RzIG9mIA0KPiB0aGlu Z3MuIFlvdQ0KPiBtaWdodCByZWNhbGwgdGhhdCBvdXIgbm9uLXN0b3AgZGVs aXZlcnkgdG8geW91IHN0YXJ0ZWQgdG8gDQo+IHJlcXVpcmUgcXVvdGluZyBm b3INCj4gLWJyZWFrLWNvbmRpdGlvbiAtLSB3aGljaCB5b3UgZGlkIG5vdCBl eGFjdGx5IGxpa2UgOi0pDQoNClllcywgSSByZW1lbWJlciA6LSkNCkJhY2t3 YXJkcyBjb21wYXRpYmlsaXR5IGlzIGFsd2F5cyBhIHBhaW4uDQo= >From gdb-return-32216-listarch-gdb=sources.redhat.com@sourceware.org Wed Jun 25 17:24:24 2008 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 15219 invoked by alias); 25 Jun 2008 17:24:24 -0000 Received: (qmail 15191 invoked by uid 22791); 25 Jun 2008 17:24:23 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out3.apple.com (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 17:24:02 +0000 Received: from relay12.apple.com (relay12.apple.com [17.128.113.53]) by mail-out3.apple.com (Postfix) with ESMTP id 7C479308783D for ; Wed, 25 Jun 2008 10:24:01 -0700 (PDT) Received: from relay12.apple.com (unknown [127.0.0.1]) by relay12.apple.com (Symantec Mail Security) with ESMTP id 61D42464004 for ; Wed, 25 Jun 2008 10:24:01 -0700 (PDT) X-AuditID: 11807135-a7267bb00000104c-4a-48627f314fff Received: from [17.201.22.244] (gdbrulez.apple.com [17.201.22.244]) by relay12.apple.com (Apple SCV relay) with ESMTP id 47D94420005 for ; Wed, 25 Jun 2008 10:24:01 -0700 (PDT) References: <20080619190942.GA3744@adacore.com> <18528.8720.477338.668458@kahikatea.snap.net.nz> <18529.25738.895554.417986@kahikatea.snap.net.nz> From: Jim Ingham X-Mailer: Apple Mail (2.1018.1) Mime-Version: 1.0 (Apple Message framework v1018.1) To: gdb@sourceware.org Content-Type: text/plain; delsp=yes; charset=us-ascii; format=flowed Message-Id: <00FD404B-B1F1-41FC-848B-24917B546218@apple.com> Date: Wed, 25 Jun 2008 17:24:00 -0000 Content-Transfer-Encoding: 7bit Subject: Re: GDB Focus Group at the 2008 GCC Summit In-Reply-To: <18529.25738.895554.417986@kahikatea.snap.net.nz> 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 Delivered-To: mailing list gdb@sourceware.org X-SW-Source: 2008-06/txt/msg00253.txt.bz2 Content-length: 1917 On Jun 24, 2008, at 2:18 PM, Nick Roberts wrote: > Nick Roberts writes: >>> The IDE is responsible for removing & reinserting breakpoints at the >>> correct line numbers. If you had a breakpoint on main.c:35 and you >>> added a couple of lines of code earlier in the file, that breakpoint >>> needs to be moved to main.c:37. >> >> Quite apart from fix and continue, it would be useful when GDB >> realises that >> an executable has been recompiled and says: >> >> `myprog' has changed; re-reading symbols. >> >> if it could also compute and print the new breakpoint locations, >> possibly >> only in MI as an event notification ("=breakpoints-changed"). > > I was thinking that GDB could detect that the location had changed > but maybe > (as Jason suggests the IDE should do it (certainly if the edit > source in Emacs > the breakpoint icon moves with it's associated line). In which case > it would > seem useful to have an MI command that could move an existing > breakpoint, e.g., > > -break-insert -m BPTNO FILE:LINE > > rather than delete the existing breakpoint and create a new one so > that the > breakpoint number is preserved. If the example above is breakpoint 4: > > -break-insert -m 4 main.c:37 > > Perhaps Apple GDB already does something like this. gdb can't know where a given line has moved to. You need the editor to track that. Since Xcode supports persistent breakpoints, it already had all the machinery to reconstruct breakpoints in their entirety. So we didn't add a move breakpoint command. The only bit of consequence that doesn't follow the move is the hit count (and I guess Xcode could fake that up on its side if we really cared.) The old NeXT version of gdb actually did have a move-breakpoint command, but nobody much used it, and it kept breaking when we did merges, so we removed it years ago. Still, it would be a useful addition. Jim