This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] problem fetching inferior memory due to breakpoint


> Date: Sat, 29 Apr 2006 10:20:38 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Joel Brobecker <brobecker@adacore.com>, gdb-patches@sources.redhat.com
> 
> That's why.  Your Cygwin compiler uses DWARF-2 unwinding; therefore the
> prologue analyzer is never even invoked.  Try using -gstabs instead of
> -gdwarf-2 (or not using -g at all), and I bet you'll see the problem.

Right you are.  (Btw, it's not a Cygwin compiler, it's a MinGW
compiler.)

The MinGW compiler uses stabs by default.  I used an explicit
"-gdwarf-2" switch because I couldn't imagine the Cygwin port doesn't
use DWARF-2.  Why doesn't it?  (Not that it's related to the issue at
hand.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]