From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26355 invoked by alias); 17 Feb 2008 20:06:41 -0000 Received: (qmail 26341 invoked by uid 22791); 17 Feb 2008 20:06:40 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 17 Feb 2008 20:06:16 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JQpmA-0000US-Sy for gdb@sourceware.org; Sun, 17 Feb 2008 12:06:14 -0800 Message-ID: <15532302.post@talk.nabble.com> Date: Mon, 18 Feb 2008 04:30:00 -0000 From: sroberts82 To: gdb@sourceware.org Subject: GDB debugging dll loaded by exe - failing MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sroberts82@yahoo.com 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: 2008-02/txt/msg00120.txt.bz2 Hi, I'm trying to use GDB (Cygwin) within Eclipse. I am trying to debug process.exe whose source I do not have but it loads my dll, stephen.dll which I want to debug. Initially, when I attach to the process it appears to suspend it succesfully. However, I get these messages: Cannot access memory at address 0x2ae0000 Previous frame inner to this frame (corrupt stack?) Previous frame inner to this frame (corrupt stack?) Cannot access memory at address 0x2ae0000 Cannot access memory at address 0x2ae0000 I don't know about windows security model for preventing me debugging things I shouldn't but whatever it is I'm presuming it's being enforced here as this is not my exe. However, when I try to view the disassembly, I can't see anything. So, I resume the process. This itself if quite sporadic as to whether or not it is succesful. Quite often (as in 60% plus), gdb crashes. When it does work, I carry on and load my dll and get the following messages: Error: dll starting at 0x2141000 not found. Error: dll starting at 0x661c1000 not found. Error: dll starting at 0x685b1000 not found. Error: dll starting at 0x72801000 not found. When I try to set a breakpoint in my dll code, it seems to get set fine. But when I do whatever I do to get that code to run, gdb just crashes, always. I tried doing the same thing in visual c++ express and it works fine. I can step prefectly and view the disassembly of the exe and the symbols of my source are resolved perfectly. I don't want to use it however as the interfece is horrible and I much prefer that of eclipse. But if I can't use GDB then I can't use it. Has anyone seen this? Is there a configuration issue somewhere? Thanks -- View this message in context: http://www.nabble.com/GDB-debugging-dll-loaded-by-exe---failing-tp15532302p15532302.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15090 invoked by alias); 17 Feb 2008 19:41:27 -0000 Received: (qmail 15078 invoked by uid 22791); 17 Feb 2008 19:41:26 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 17 Feb 2008 19:41:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JQpNl-0007vv-Pi for gdb@sourceware.org; Sun, 17 Feb 2008 11:41:01 -0800 Message-ID: <15532302.post@talk.nabble.com> Date: Sun, 17 Feb 2008 19:41:00 -0000 From: sroberts82 To: gdb@sourceware.org Subject: GDB debugging dll loaded by exe - failing MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sroberts82@yahoo.com 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: 2008-02/txt/msg00118.txt.bz2 Message-ID: <20080217194100.IFxfW9A30QAFJAqFExbhtmPcKn1E4TmjJJygXix80Ws@z> Hi, I'm trying to use GDB (Cygwin) within Eclipse. I am trying to debug process.exe whose source I do not have but it loads my dll, stephen.dll which I want to debug. Initially, when I attach to the process it appears to suspend it succesfully. However, I get these messages: Cannot access memory at address 0x2ae0000 Previous frame inner to this frame (corrupt stack?) Previous frame inner to this frame (corrupt stack?) Cannot access memory at address 0x2ae0000 Cannot access memory at address 0x2ae0000 I don't know about windows security model for preventing me debugging things I shouldn't but whatever it is I'm presuming it's being enforced here as this is not my exe. However, when I try to view the disassembly, I can't see anything. So, I resume the process. This itself if quite sporadic as to whether or not it is succesful. Quite often (as in 60% plus), gdb crashes. When it does work, I carry on and load my dll and get the following messages: Error: dll starting at 0x2141000 not found. Error: dll starting at 0x661c1000 not found. Error: dll starting at 0x685b1000 not found. Error: dll starting at 0x72801000 not found. When I try to set a breakpoint in my dll code, it seems to get set fine. But when I do whatever I do to get that code to run, gdb just crashes, always. I tried doing the same thing in visual c++ express and it works fine. I can step prefectly and view the disassembly of the exe and the symbols of my source are resolved perfectly. I don't want to use it however as the interfece is horrible and I much prefer that of eclipse. But if I can't use GDB then I can't use it. Has anyone seen this? Is there a configuration issue somewhere? Thanks -- View this message in context: http://www.nabble.com/GDB-debugging-dll-loaded-by-exe---failing-tp15532302p15532302.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.