This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] null ptr check to prevent gdbserver from crashing
- From: Pedro Alves <palves at redhat dot com>
- To: Sanimir Agovic <sanimir dot agovic at intel dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 06 Feb 2013 15:27:32 +0000
- Subject: Re: [PATCH] null ptr check to prevent gdbserver from crashing
- References: <1355994542-6176-1-git-send-email-sanimir.agovic@intel.com>
On 12/20/2012 09:09 AM, Sanimir Agovic wrote:
> Evaluating a thread local storage variable in a remote scenario crashes
> gdbserver if libthread-db could not be loaded.
>
> 2012-12-18 Sanimir Agovic <sanimir.agovic@intel.com>
Note there should be two spaces before and after your name.
>
> gdbserver/
> * thread-db.c (thread_db_get_tls_address):
> NULL pointer check thread_db.
>
> testsuite/
> * gdb.server/no-thread-db.exp: New file.
> * gdb.server/no-thread-db.c: New file.
> * gdb.server/Makefile.in (EXECUTABLES): Add no-thread-db.
Thanks. This is OK.
> +++ b/gdb/testsuite/gdb.server/no-thread-db.c
> @@ -0,0 +1,28 @@
> +/* This testcase is part of GDB, the GNU debugger.
> +
> + Copyright 2012 Free Software Foundation, Inc.
Remember to update copyright years.
--
Pedro Alves