From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12981 invoked by alias); 25 Jan 2005 22:46:21 -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 12939 invoked from network); 25 Jan 2005 22:46:17 -0000 Received: from unknown (HELO smtp2.global.net.uk) (80.189.94.52) by sourceware.org with SMTP; 25 Jan 2005 22:46:17 -0000 Received: from gr.189.160.16.dial.global.net.uk ([80.189.160.16] helo=NTHOME) by smtp2.global.net.uk with esmtp (Exim 4.24; FreeBSD) id 1CtZRw-000Nsz-Jv for gdb@sources.redhat.com; Tue, 25 Jan 2005 22:46:17 +0000 From: "Spen" To: Subject: gdb function address Date: Tue, 25 Jan 2005 22:46:00 -0000 Message-ID: <000401c5032f$94ad2a90$10a0bd50@NTHOME> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Authenticated-Sender: X-SW-Source: 2005-01/txt/msg00124.txt.bz2 I am currently using gdb/insight to debug a arm7tdmi via OCDRemote GDBServer/TCP. The hardware breakpoints can be set as follows: monitor set hbreak 0x20000000 - which sets a hardware breakpoint @ address 0x20000000. This method only gives access to a single breakpoint, the other used by ocdremote for stepping etc. The user command below is another method and gives access to both hardware breakpoints define ibreak monitor reg w$arg0av = $arg1 monitor reg w$arg0am = 1 monitor reg w$arg0dv = 0 monitor reg w$arg0dm = 0xFFFFFFFF monitor reg w$arg0cv = 0x100 monitor reg w$arg0cm = 0xFFFFFEF7 end ibreak 0 0x20000000 - set breakpoint zero @ 0x20000000 The drawback is that the breakpoint address needs to be known, is there any way to get behaiour similar to the standard break/hbreak commands, ie. break main. And resolve the function name into an address ? Many Thanks Spencer Oliver