From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2942 invoked by alias); 1 Feb 2007 10:48:49 -0000 Received: (qmail 2931 invoked by uid 22791); 1 Feb 2007 10:48:48 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 Feb 2007 10:48:43 +0000 Received: by nf-out-0910.google.com with SMTP id n28so767529nfc for ; Thu, 01 Feb 2007 02:48:41 -0800 (PST) Received: by 10.82.169.4 with SMTP id r4mr611917bue.1170326920433; Thu, 01 Feb 2007 02:48:40 -0800 (PST) Received: by 10.82.186.15 with HTTP; Thu, 1 Feb 2007 02:48:39 -0800 (PST) Message-ID: <7ac1e90c0702010248r59985822td2dea302226b5ffa@mail.gmail.com> Date: Thu, 01 Feb 2007 10:48:00 -0000 From: "Bahadir Balban" To: gdb@sourceware.org Subject: breakpoint on non-function symbol MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00003.txt.bz2 Hi, Is it possible to put a breakpoint on a symbol that is not a function? I have two elf images, the first is a loader that contains the second image in itself. I want to refer to a symbol defined in the second from the first. To achieve that, I extracted the symbol from second and defined it as a variable in the linker script of the first. When I break on the symbol gdb complains its not a function. I could possibly define it as a function in assembler but I've done enough tweaks; don't want to add more unless you have a better suggestion. Thanks, Bahadir