From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27990 invoked by alias); 1 Apr 2002 02:22:15 -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 27983 invoked from network); 1 Apr 2002 02:22:14 -0000 Received: from unknown (HELO smtp.comcast.net) (24.153.64.2) by sources.redhat.com with SMTP; 1 Apr 2002 02:22:14 -0000 Received: from rogue (bgp507590bgs.verona01.nj.comcast.net [68.38.9.13]) by mtaout45-01.icomcast.net (iPlanet Messaging Server 5.1 (built Feb 6 2002)) with ESMTP id <0GTV00EJQAL0F5@mtaout45-01.icomcast.net> for gdb@sources.redhat.com; Sun, 31 Mar 2002 21:22:12 -0500 (EST) Date: Sun, 31 Mar 2002 18:22:00 -0000 From: Koon-Seng Lim Subject: RE: Setting breakpoints in a virtual function on a dynamically loaded DLL In-reply-to: <20020331200737.A22942@nevyn.them.org> To: 'Daniel Jacobowitz' Cc: gdb@sources.redhat.com Reply-to: koonseng@ctr.columbia.edu Message-id: <000001c1d923$e00fa910$9e01a8c0@rogue> Organization: Columbia University MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-SW-Source: 2002-03/txt/msg00311.txt.bz2 > -----Original Message----- > From: Daniel Jacobowitz [mailto:drow@mvista.com] > Sent: Sunday, March 31, 2002 8:08 PM > To: Koon-Seng Lim > Cc: gdb@sources.redhat.com > Subject: Re: Setting breakpoints in a virtual function on a dynamically > loaded DLL > > On Sun, Mar 31, 2002 at 07:52:31PM -0500, Koon-Seng Lim wrote: > > Hi, > > > > I'm trying to set a breakpoint in a virtual function (new_foo::bar()) > > implemented in a DLL (testdll.dll) which I load dynamically from an .exe > > (fooloader.exe). I get the following errors: > > > > $ gdb fooloader.exe > > ... > > (gdb) shared testdll.dll > > (gdb) > > (gdb) break new_foo::bar > > Error: Cannot access memory at address 0x010001014 > > > > If I forcibly set a breakpoint at new_foo::bar using the GUI, I get an > > error dialog that says "cannot insert breakpoint 1:" and the message > > "Error: Cannot access memory at address 0x01000101e" in the console > > window. > > > > My question is: > > 1. Is there any way at all to set a breakpoint in the testdll.dll? > > 2. Did I doing something silly? The code is very simple and it steps > > correctly under the MSVC debugger. > > > > I'm running gdb 5.0 with the Insight GUI on cygwin 1.3.10 on a windows > > box. Any help is greatly appreciated!!! > > - What version of GCC are you using? > - Please try a GDB snapshot; 5.0 is very old now, and has rotten C++ > support. > > -- > Daniel Jacobowitz Carnegie Mellon University > MontaVista Software Debian GNU/Linux Developer Thanks for the reply! I'm using gcc version 2.95.3-5. I've just tried out the latest weekly snapshot(insight+dejagnu-weekly-20020326.tar.bz2) but alas, he problem remains. Thanks -Koon Seng