From owner-freebsd-current Fri Jun 7 9:28:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by hub.freebsd.org (Postfix) with SMTP id 32AB437B400 for ; Fri, 7 Jun 2002 09:28:15 -0700 (PDT) Received: (qmail 45288 invoked from network); 7 Jun 2002 16:28:13 -0000 Received: from nat.ironport.com (HELO ?10.1.1.198?) (63.251.108.100) by relay1.pair.com with SMTP; 7 Jun 2002 16:28:13 -0000 X-pair-Authenticated: 63.251.108.100 Mime-Version: 1.0 X-Sender: (Unverified) Message-Id: In-Reply-To: <7mzny715h2.wl@black.imgsrc.co.jp> References: <7mzny715h2.wl@black.imgsrc.co.jp> Date: Fri, 7 Jun 2002 09:27:51 -0700 To: Jun Kuriyama , Current From: Mark Peek Subject: Re: How to use gdb52 port Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 12:19 AM +0900 6/8/02, Jun Kuriyama wrote: >I've installed gdb-5.2_1, but I cannot debug usual code. I've tried >with "-g", "-gstabs+" and "-g -gstabs+" but got same result. > > >% cat test1.c >int main() { int *p; *p = 1; } >% cc -g test1.c -o test1 >% ./test1 >Bus error (core dumped) >% gdb52 test1 test1.core >GNU gdb 5.2 (FreeBSD) >Copyright 2002 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 "i386-portbld-freebsd5.0"... >Core was generated by `test1'. >Program terminated with signal 10, Bus error. >regcache.c:96: gdb-internal-error: register_buffer: Assertion >`regnum >= 0 && re >gnum < (NUM_REGS + NUM_PSEUDO_REGS)' failed. >An internal GDB error was detected. This may make further >debugging unreliable. Quit this debugging session? (y or n) Thanks for noticing. The fix has been committed. Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message