This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: core dump when watchpoint set
- From: "Robert Norton" <rnorton at broadcom dot com>
- To: "Michael Snyder" <msnyder at vmware dot com>, "Joel Sherrill" <joel dot sherrill at oarcorp dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Fri, 12 Sep 2008 08:24:32 -0700
- Subject: RE: core dump when watchpoint set
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <48C68C26.3030305@oarcorp.com> <48C6F43D.90601@vmware.com>
> -----Original Message-----
> From: gdb-owner@sourceware.org
> [mailto:gdb-owner@sourceware.org] On Behalf Of Michael Snyder
> Sent: 09 September 2008 23:10
> To: Joel Sherrill
> Cc: gdb@sourceware.org
> Subject: Re: core dump when watchpoint set
>
> Hmmm, yeah, a null value is being passed up, resulting in
> a null type being sent to value_type, which dereferences it
> without null-checking.
>
> And in fact, the current source (breakpoint.c) does check
> b->val != NULL before it makes the corresponding call.
>
> So you can expect that this is fixed.
In fact I fixed exactly this bug in our 6.8 port this week by applying this patch:
http://sourceware.org/ml/gdb-patches/2008-02/msg00472.html
Robert