public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-tromey-python: * python/python-type.c (typy_lookup_type): Rearrange to avoid
@ 2008-11-07 17:27 tromey
0 siblings, 0 replies; only message in thread
From: tromey @ 2008-11-07 17:27 UTC (permalink / raw)
To: archer-commits
The branch, archer-tromey-python has been updated
via 1e9b69a0f9de79f42992b4d7be1d70968d9af35f (commit)
from aac1baf0b0f00a2c3580248d7532018be33b53d4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 1e9b69a0f9de79f42992b4d7be1d70968d9af35f
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Nov 7 10:27:20 2008 -0700
* python/python-type.c (typy_lookup_type): Rearrange to avoid
warning.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/python/python-type.c | 23 ++++++++++++-----------
2 files changed, 17 insertions(+), 11 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 013f3a7..ca08460 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-07 Tom Tromey <tromey@redhat.com>
+
+ * python/python-type.c (typy_lookup_type): Rearrange to avoid
+ warning.
+
2008-11-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-type.c (typy_lookup_type): New fn.
diff --git a/gdb/python/python-type.c b/gdb/python/python-type.c
index 5162986..77bb489 100644
--- a/gdb/python/python-type.c
+++ b/gdb/python/python-type.c
@@ -143,17 +143,18 @@ typy_lookup_type (struct demangle_component *demangled,
type = typy_lookup_type (demangled->u.s_binary.left, block);
if (! type)
return NULL;
- }
- switch (demangled->type)
- {
- case DEMANGLE_COMPONENT_REFERENCE:
- return lookup_reference_type (type);
- case DEMANGLE_COMPONENT_POINTER:
- return lookup_pointer_type (type);
- case DEMANGLE_COMPONENT_CONST:
- return make_cv_type (1, 0, type, NULL);
- case DEMANGLE_COMPONENT_VOLATILE:
- return make_cv_type (0, 1, type, NULL);
+
+ switch (demangled->type)
+ {
+ case DEMANGLE_COMPONENT_REFERENCE:
+ return lookup_reference_type (type);
+ case DEMANGLE_COMPONENT_POINTER:
+ return lookup_pointer_type (type);
+ case DEMANGLE_COMPONENT_CONST:
+ return make_cv_type (1, 0, type, NULL);
+ case DEMANGLE_COMPONENT_VOLATILE:
+ return make_cv_type (0, 1, type, NULL);
+ }
}
type_name = cp_comp_to_string (demangled, 10);
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-07 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-07 17:27 [SCM] archer-tromey-python: * python/python-type.c (typy_lookup_type): Rearrange to avoid tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).