From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24686 invoked by alias); 1 Feb 2007 11:26:44 -0000 Received: (qmail 24677 invoked by uid 22791); 1 Feb 2007 11:26:43 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.175) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 Feb 2007 11:26:37 +0000 Received: by ug-out-1314.google.com with SMTP id 75so445212ugb for ; Thu, 01 Feb 2007 03:26:35 -0800 (PST) Received: by 10.82.183.19 with SMTP id g19mr567588buf.1170329194479; Thu, 01 Feb 2007 03:26:34 -0800 (PST) Received: by 10.82.186.15 with HTTP; Thu, 1 Feb 2007 03:26:34 -0800 (PST) Message-ID: <7ac1e90c0702010326r74b32eabs2a28061d5e9ecede@mail.gmail.com> Date: Thu, 01 Feb 2007 11:26:00 -0000 From: "Bahadir Balban" To: "Andreas Schwab" Subject: Re: breakpoint on non-function symbol Cc: gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7ac1e90c0702010248r59985822td2dea302226b5ffa@mail.gmail.com> 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/msg00005.txt.bz2 On 2/1/07, Andreas Schwab wrote: > "Bahadir Balban" writes: > > > Is it possible to put a breakpoint on a symbol that is not a function? > > You can put a breakpoint at any address with the "break *ADDR" syntax. > > Andreas. 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. Thanks, Bahadir