This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] revert remote_threads_info
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Michael Snyder <msnyder at vmware dot com>
- Date: Thu, 6 May 2010 00:38:26 +0100
- Subject: Re: [patch] revert remote_threads_info
- References: <4BE1F15E.8000009@vmware.com>
On Wednesday 05 May 2010 23:29:50, Michael Snyder wrote:
> + struct cleanup back_to = make_cleanup (null_cleanup, NULL);
>
> - make_cleanup (null_cleanup, NULL);
There's no way this can compile. ;-)
I'm applying this.
--
Pedro Alves
2010-05-05 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_threads_info): Really revert previous previous
change.
---
gdb/remote.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: src/gdb/remote.c
===================================================================
--- src.orig/gdb/remote.c 2010-05-06 00:33:59.000000000 +0100
+++ src/gdb/remote.c 2010-05-06 00:34:08.000000000 +0100
@@ -2512,7 +2512,7 @@ remote_threads_info (struct target_ops *
{
struct gdb_xml_parser *parser;
struct threads_parsing_context context;
- struct cleanup back_to = make_cleanup (null_cleanup, NULL);
+ struct cleanup *back_to = make_cleanup (null_cleanup, NULL);
context.items = 0;
parser = gdb_xml_create_parser_and_cleanup (_("threads"),