Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2002 09:27:51 -0700
From:      Mark Peek <mp@FreeBSD.org>
To:        Jun Kuriyama <kuriyama@imgsrc.co.jp>, Current <freebsd-current@FreeBSD.org>
Subject:   Re: How to use gdb52 port
Message-ID:  <p05111a2cb9268f0430f2@[10.1.1.198]>
In-Reply-To: <7mzny715h2.wl@black.imgsrc.co.jp>
References:  <7mzny715h2.wl@black.imgsrc.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111a2cb9268f0430f2>