From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23594 invoked by alias); 1 Feb 2007 12:20:26 -0000 Received: (qmail 23349 invoked by uid 22791); 1 Feb 2007 12:20:23 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 01 Feb 2007 12:20:19 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HCavG-0003W0-Ko; Thu, 01 Feb 2007 07:20:14 -0500 Date: Thu, 01 Feb 2007 12:20:00 -0000 From: Daniel Jacobowitz To: Bahadir Balban Cc: Andreas Schwab , gdb@sourceware.org Subject: Re: breakpoint on non-function symbol Message-ID: <20070201122013.GA13452@nevyn.them.org> Mail-Followup-To: Bahadir Balban , Andreas Schwab , gdb@sourceware.org References: <7ac1e90c0702010248r59985822td2dea302226b5ffa@mail.gmail.com> <7ac1e90c0702010326r74b32eabs2a28061d5e9ecede@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ac1e90c0702010326r74b32eabs2a28061d5e9ecede@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-02/txt/msg00006.txt.bz2 On Thu, Feb 01, 2007 at 11:26:34AM +0000, Bahadir Balban wrote: > The problem is the address is not known in advance, so I had to rely > on the symbol. Anyway, I fixed it in assembler by: > > .global symname; > .type symname, function; > .equ symname, addr > > rather than including it in the linker script. That works, or you can take advantage of what Andreas suggested: set $var = &symbol break *$var -- Daniel Jacobowitz CodeSourcery