This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] thread-db.c: Avoid segfault by making sure that ``reg''is initialized
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 18 Nov 2004 17:58:49 -0700
- Subject: Re: [PATCH] thread-db.c: Avoid segfault by making sure that ``reg''is initialized
- Organization: Red Hat
- References: <20041118144457.56939409@saguaro>
On Thu, 18 Nov 2004 14:44:57 -0700
Kevin Buettner <kevinb@redhat.com> wrote:
> I've just committed the patch below. As indicated by the subject line, this
> patch prevents a segfault when thread_db_set_thread_reg() returns an
> uninitialized ``reg''. (This was happening on Fedora Core 2 due to lack of
> xregset support.)
>
> * thread-db.c (thread_db_set_thread_reg): Don't allow a successful
> return without first initializing ``reg''.
My apologies for sending this to the wrong list. This is an RDA patch, and
as such, I intended to send it to the RDA list.
Kevin