From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13923 invoked by alias); 14 Jan 2009 19:25:09 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 13895 invoked by uid 306); 14 Jan 2009 19:25:08 -0000 Date: Wed, 14 Jan 2009 19:25:00 -0000 Message-ID: <20090114192508.13880.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-charset: fix bad ChangeLog edit X-Git-Refname: refs/heads/archer-tromey-charset X-Git-Reftype: branch X-Git-Oldrev: f18748f29aca635f08e689bb5230d7cdf451adab X-Git-Newrev: 8d869ed23bf1e8b9d0abd0fa67bccbd0f075e32c X-SW-Source: 2009-q1/txt/msg00044.txt.bz2 List-Id: 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 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 +2009-01-14 Tom Tromey Julian Brown + PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103, + PR i18n/9401, PR exp/9613: * dwarf2read.c (process_die) : 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) : Strip a single + typedef. 2009-01-06 Jim Blandy 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.