From owner-freebsd-current Fri Jun 7 8:19:55 2002 Delivered-To: freebsd-current@freebsd.org Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by hub.freebsd.org (Postfix) with ESMTP id 1D93237B403 for ; Fri, 7 Jun 2002 08:19:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id 80F2C24D58 for ; Sat, 8 Jun 2002 00:19:46 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id 9A06924D22 for ; Sat, 8 Jun 2002 00:19:40 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id A41341E46E9 for ; Sat, 8 Jun 2002 00:19:37 +0900 (JST) Date: Sat, 08 Jun 2002 00:19:37 +0900 Message-ID: <7mzny715h2.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: Current Subject: How to use gdb52 port User-Agent: Wanderlust/2.9.10 (Unchained Melody) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS on ns.imgsrc.co.jp 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 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) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message