This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: varobj_get_type cleanup
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: tromey at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 7 Jul 2009 12:46:36 +0400
- Subject: Re: varobj_get_type cleanup
- References: <200906301325.32442.vladimir@codesourcery.com> <m3hbxx7r0i.fsf@fleche.redhat.com>
On Tuesday 30 June 2009 Tom Tromey wrote:
> >>>>> "Vladimir" == Vladimir Prus <vladimir@codesourcery.com> writes:
>
> Vladimir> I've checked in the below obvious cleanup.
>
> Vladimir> +#include "typeprint.h"
>
> FYI, this doesn't declare anything of interest.
>
> type_to_string is declared, strangely, in value.h.
> (I would have expected gdbtypes.h, myself.)
Boo. I don't really understand why a function defined in
typeprint.c is declared in random headers ;-) I've checked
in the below obvious cleanup.
- Volodya
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.10693
diff -u -p -r1.10693 ChangeLog
--- ChangeLog 7 Jul 2009 07:47:19 -0000 1.10693
+++ ChangeLog 7 Jul 2009 08:46:07 -0000
@@ -1,3 +1,7 @@
+2009-07-07 Vladimir Prus <vladimir@codesourcery.com>
+
+ * varobj.c: Remove unnecessary include.
+
2009-07-07 Tristan Gingold <gingold@adacore.com>
* config/i386/darwin.mh (NATDEPFILES): Remove excServer.o.
Index: varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/varobj.c,v
retrieving revision 1.139
diff -u -p -r1.139 varobj.c
--- varobj.c 2 Jul 2009 17:04:22 -0000 1.139
+++ varobj.c 7 Jul 2009 08:46:07 -0000
@@ -34,7 +34,6 @@
#include "vec.h"
#include "gdbthread.h"
#include "inferior.h"
-#include "typeprint.h"
#if HAVE_PYTHON
#include "python/python.h"