aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-03-26 01:27:45 +0000
committerTom Tromey <tromey@redhat.com>2009-03-26 01:27:45 +0000
commit78485d59c67238c52451c48fe22fed2b865ef4e2 (patch)
treedf4d219589beb042a3d5c3711377c7632ff20237 /gdb
parent94ae1714190d492723cc34ff51d6f45eb8beb4cc (diff)
downloadgdb-78485d59c67238c52451c48fe22fed2b865ef4e2.zip
gdb-78485d59c67238c52451c48fe22fed2b865ef4e2.tar.gz
gdb-78485d59c67238c52451c48fe22fed2b865ef4e2.tar.bz2
* gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
* stack.c (print_this_frame_argument_p): Use check_typedef.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbtypes.h5
-rw-r--r--gdb/stack.c4
3 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d52404d..497e3a3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2009-03-25 Tom Tromey <tromey@redhat.com>
+ * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
+ * stack.c (print_this_frame_argument_p): Use check_typedef.
+
+2009-03-25 Tom Tromey <tromey@redhat.com>
+
* configure: Rebuild.
* acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
Rearrange flags setting. Add comments.
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 816a208..3c4e948 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -1185,7 +1185,10 @@ extern struct type *lookup_signed_typename (char *);
extern struct type *check_typedef (struct type *);
-#define CHECK_TYPEDEF(TYPE) (TYPE) = check_typedef (TYPE)
+#define CHECK_TYPEDEF(TYPE) \
+ do { \
+ (TYPE) = check_typedef (TYPE); \
+ } while (0)
extern void check_stub_method_group (struct type *, int);
diff --git a/gdb/stack.c b/gdb/stack.c
index 8146979..bf9e576 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -181,9 +181,9 @@ print_this_frame_argument_p (struct symbol *sym)
/* The user asked to print only the scalar arguments, so do not
print the non-scalar ones. */
- type = CHECK_TYPEDEF (SYMBOL_TYPE (sym));
+ type = check_typedef (SYMBOL_TYPE (sym));
while (TYPE_CODE (type) == TYPE_CODE_REF)
- type = CHECK_TYPEDEF (TYPE_TARGET_TYPE (type));
+ type = check_typedef (TYPE_TARGET_TYPE (type));
switch (TYPE_CODE (type))
{
case TYPE_CODE_ARRAY: