From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30255 invoked by alias); 1 Apr 2002 01:07:32 -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 30244 invoked from network); 1 Apr 2002 01:07:30 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 1 Apr 2002 01:07:30 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16rqIL-0005ye-00; Sun, 31 Mar 2002 20:07:37 -0500 Date: Sun, 31 Mar 2002 17:07:00 -0000 From: Daniel Jacobowitz To: Koon-Seng Lim Cc: gdb@sources.redhat.com Subject: Re: Setting breakpoints in a virtual function on a dynamically loaded DLL Message-ID: <20020331200737.A22942@nevyn.them.org> Mail-Followup-To: Koon-Seng Lim , gdb@sources.redhat.com References: <000001c1d917$853ae830$9e01a8c0@rogue> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c1d917$853ae830$9e01a8c0@rogue> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-03/txt/msg00310.txt.bz2 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