public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-charset: fix bad ChangeLog edit
@ 2009-01-14 19:25 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2009-01-14 19:25 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-charset has been updated
       via  8d869ed23bf1e8b9d0abd0fa67bccbd0f075e32c (commit)
      from  f18748f29aca635f08e689bb5230d7cdf451adab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 8d869ed23bf1e8b9d0abd0fa67bccbd0f075e32c
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jan 14 12:21:48 2009 -0700

    fix bad ChangeLog edit
    add PR numbers to ChangeLog
    fix regression introduced by dwarf2read change

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog |    8 ++++++--
 gdb/eval.c    |   12 +++++++++++-
 2 files changed, 17 insertions(+), 3 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b42033b..247838c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,6 +1,8 @@
-2009-01-13  Tom Tromey  <tromey@redhat.com>
+2009-01-14  Tom Tromey  <tromey@redhat.com>
 	    Julian Brown  <julian@codesourcery.com>
 
+	PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
+	PR i18n/9401, PR exp/9613:
 	* dwarf2read.c (process_die) <DW_TAG_typedef>: Call read_type_die
 	before calling new_symbol.
 	* value.h (value_typed_string): Declare.
@@ -72,7 +74,7 @@
 	target_char_to_host, target_char_to_control_char): Remove.
 	(enum transliterations): New type.
 	(convert_between_encodings): Declare.
-1	(HOST_ESCAPE_CHAR): New define.
+	(HOST_ESCAPE_CHAR): New define.
 	(host_letter_to_control_character, host_hex_value): Declare.
 	* charset-list.h: New file.
 	* c-valprint.c (textual_name): New function.
@@ -190,6 +192,8 @@
 	* aclocal.m4, config.in, configure: Rebuild.
 	* configure.ac: Call AM_LANGINFO_CODESET.
 	* acinclude.m4: Include codeset.m4.
+	* eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
+	typedef.
 
 2009-01-06  Jim Blandy  <jimb@red-bean.com>
 
diff --git a/gdb/eval.c b/gdb/eval.c
index 78d03f5..804e9c4 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2475,7 +2475,17 @@ evaluate_subexp_standard (struct type *expect_type,
       if (noside == EVAL_SKIP)
         goto nosideret;
       else if (noside == EVAL_AVOID_SIDE_EFFECTS)
-        return allocate_value (exp->elts[pc + 1].type);
+	{
+	  struct type *type = exp->elts[pc + 1].type;
+	  /* If this is a typedef, then find its immediate target.  We
+	     use check_typedef to resolve stubs, but we ignore its
+	     result because we do not want to dig past all
+	     typedefs.  */
+	  check_typedef (type);
+	  if (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
+	    type = TYPE_TARGET_TYPE (type);
+	  return allocate_value (type);
+	}
       else
         error (_("Attempt to use a type name as an expression"));
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-14 19:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-14 19:25 [SCM] archer-tromey-charset: fix bad ChangeLog edit 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).