From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18681 invoked by alias); 30 Sep 2004 19:39:09 -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 18674 invoked from network); 30 Sep 2004 19:39:08 -0000 Received: from unknown (HELO www.citello.it) (80.117.131.170) by sourceware.org with SMTP; 30 Sep 2004 19:39:08 -0000 Received: from gattaccio.codalunga (ANice-205-1-16-5.w81-249.abo.wanadoo.fr [81.249.33.5]) by www.citello.it (Postfix) with ESMTP id 1161D323; Thu, 30 Sep 2004 21:39:07 +0200 (CEST) Received: by gattaccio.codalunga (Postfix, from userid 1001) id 590ACC10C; Thu, 30 Sep 2004 21:37:35 +0200 (CEST) Date: Thu, 30 Sep 2004 19:39:00 -0000 From: Marco Molteni To: Jim Ingham Cc: gdb@sources.redhat.com Subject: Re: breakpoint instruction isn't shown in disassemble or examine (x) commands? Message-Id: <20040930213735.31cbb0df.molter@tin.it> In-Reply-To: <73118E63-1306-11D9-85DF-000A958F4C44@apple.com> References: <1096526181.3491.ezmlm@sources.redhat.com> <73118E63-1306-11D9-85DF-000A958F4C44@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00276.txt.bz2 On Thu, 30 Sep 2004 Jim Ingham wrote: > gdb will always hide the breakpoint trap from you, and show you the > instruction that is actually going to be run when you get to that pc > instead. This is on purpose, it would be very confusing, and not at > all helpful, for folks to see trap instructions showing up in their > disassembly. > > Is there some reason, other than curiosity, the leads you to want to > see the trap there? No, just curiosity and looking for confirmation of what I am doing ;-) > If you are just curious, try running gdb with: > > (gdb) set debug target 1 > > You can see gdb copy out the actual instruction and lay down the > traps, and lots of other things you may or may not want to know > about... that is what I was looking for I think. Thanks. marco