From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1766 invoked by alias); 16 Jan 2006 01:49:09 -0000 Received: (qmail 1647 invoked by uid 22791); 16 Jan 2006 01:49:08 -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; Mon, 16 Jan 2006 01:49:07 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EyJUX-0005Jt-0k; Sun, 15 Jan 2006 20:49:05 -0500 Date: Mon, 16 Jan 2006 01:49:00 -0000 From: Daniel Jacobowitz To: "H. J. Lu" Cc: GDB Subject: Re: Does gdb support weak/normal symbols? Message-ID: <20060116014904.GA20402@nevyn.them.org> Mail-Followup-To: "H. J. Lu" , GDB References: <20060116004831.GA1186@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060116004831.GA1186@lucon.org> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00131.txt.bz2 On Sun, Jan 15, 2006 at 04:48:31PM -0800, H. J. Lu wrote: > foo in weak.c isn't in the symbol table. But gdb sets the breakpoint > of foo on it. Shouldn't gdb be clever enough to know to check the > other one? GDB uses the debug information in preference to the ELF symbol table. That one says this is a definition of foo. Eventually "break foo" will breakpoint both of them. -- Daniel Jacobowitz CodeSourcery