From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15733 invoked by alias); 24 Nov 2004 03:44:22 -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 15692 invoked from network); 24 Nov 2004 03:44:18 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org with SMTP; 24 Nov 2004 03:44:18 -0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.12.9-20030917/8.12.9) with ESMTP id iAO3iGko008087; Tue, 23 Nov 2004 22:44:17 -0500 (EST) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.9-20030917/8.12.9/Submit) id iAO3iGm7008085; Tue, 23 Nov 2004 22:44:16 -0500 (EST) Message-Id: <200411240344.iAO3iGm7008085@hiauly1.hia.nrc.ca> Subject: Re: pc_requires_run_before_use To: randolph@tausq.org Date: Wed, 24 Nov 2004 03:55:00 -0000 From: "John David Anglin" Cc: gdb@sources.redhat.com In-Reply-To: <20041123212126.GR9148@tausq.org> from "Randolph Chung" at Nov 23, 2004 04:21:26 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00232.txt.bz2 > Does anybody understand what this comment means or what this code is > supposed to do? > > hppa_pc_requires_run_before_use() in hppa-tdep.a says: I haven't looked at this but I think this is typical of the plabel setup for lazy binding. In GCC under linux, we need to call into the dynamic linker to force resolution of the function when doing function pointer comparisons. This is the infamous __cffc routine. I think gdb will have similar issues when trying to set a break in a shared library. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)