From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21787 invoked by alias); 26 Mar 2008 21:14:15 -0000 Received: (qmail 21688 invoked by uid 22791); 26 Mar 2008 21:14:15 -0000 X-Spam-Check-By: sourceware.org Received: from rn-out-0910.google.com (HELO rn-out-0910.google.com) (64.233.170.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Mar 2008 21:13:52 +0000 Received: by rn-out-0910.google.com with SMTP id i6so2435610rng.2 for ; Wed, 26 Mar 2008 14:13:50 -0700 (PDT) Received: by 10.150.199.21 with SMTP id w21mr339271ybf.60.1206566030652; Wed, 26 Mar 2008 14:13:50 -0700 (PDT) Received: by 10.150.215.20 with HTTP; Wed, 26 Mar 2008 14:13:50 -0700 (PDT) Message-ID: Date: Wed, 26 Mar 2008 21:22:00 -0000 From: "gdb guy" To: "gdb guy" , gdb Subject: Re: Why won't gdb stop on packed (UPX) file breakpoint at entrypoint? In-Reply-To: <20080326211059.GA13713@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080326210050.GA12885@caradoc.them.org> <20080326211059.GA13713@caradoc.them.org> 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-03/txt/msg00255.txt.bz2 Sorry to not be clear, but I was doing it before running: $gdb ./UPXps GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) x/2i 0xc07fd0 0xc07fd0: Cannot access memory at address 0xc07fd0 Gary Guy On Wed, Mar 26, 2008 at 5:10 PM, Daniel Jacobowitz wrote: > On Wed, Mar 26, 2008 at 05:09:33PM -0400, gdb guy wrote: > > I get the following error. > > (gdb) x/2i 0xc07fd0 > > 0xc07fd0: Cannot access memory at address 0xc07fd0 > > Do it before the first time you run and that may help. > > -- > Daniel Jacobowitz > CodeSourcery >