From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19507 invoked by alias); 16 Nov 2001 13:41:08 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19304 invoked from network); 16 Nov 2001 13:41:07 -0000 Received: from unknown (HELO TheWorld.com) (199.172.62.104) by sourceware.cygnus.com with SMTP; 16 Nov 2001 13:41:07 -0000 Received: from world.std.com (world-f.std.com [199.172.62.5]) by TheWorld.com (8.9.3/8.9.3) with ESMTP id IAA23295; Fri, 16 Nov 2001 08:41:06 -0500 Received: from localhost (qqi@localhost) by world.std.com (8.9.3/8.9.3) with ESMTP id IAA13498; Fri, 16 Nov 2001 08:41:06 -0500 (EST) Date: Mon, 05 Nov 2001 08:25:00 -0000 From: Quality Quorum To: Steven Bauer cc: Subject: Re: x86 hardware breakpoint question In-Reply-To: <20011115125927.B3449@atlas.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2001-11/txt/msg00060.txt.bz2 On Thu, 15 Nov 2001, Steven Bauer wrote: > Quick question, does gdb support hardware breakpoints on > x86 architectures? I have been trying to get them to work keep > getting an unknown error. > > (gdb) hbreak *0x80485d9 > > .... > > warning: Cannot insert breakpoint 3: > Error accessing memory address 0x80485d9: Unknown error 4294967295. > > > One other question, is there any way to have breakpoints enabled > when an exec occurs. What I would like to do is continue through the > exec getting the sigtrap if the new process is loaded, delete old > breakpoints, load the symbols for the new process, and eventually > reset breakpoints once main is hit. The reason I want this is that > the exec could fail, in which case I want the original breakpoints to > still be in place. If I remove all the breakpoints before the > exec, continue, and the exec fails, I miss all the functions I > originally had breakpoints set for. First, it has to be supported be stub, current stub does not do it. Plus, there are few things to be improved on the gdb side. > > Thanks, > Steve > > > > Thanks, Aleksey