diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:34:03 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:34:03 +0000 |
commit | 7fc75ca750afe059352f475d7511330506e835ef (patch) | |
tree | 725265227eee99a142aae9b779d0969ccc2e6d03 /gdb | |
parent | 3405876ae7971153e14fd5c2ed17cb0bb6cdf117 (diff) | |
download | gdb-7fc75ca750afe059352f475d7511330506e835ef.zip gdb-7fc75ca750afe059352f475d7511330506e835ef.tar.gz gdb-7fc75ca750afe059352f475d7511330506e835ef.tar.bz2 |
* c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/c-exp.y | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2804269..01765e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-01-25 Tom Tromey <tromey@redhat.com> + + * c-exp.y (qualified_name): Use TYPE_SAFE_NAME. + 2013-01-25 Pedro Alves <palves@redhat.com> * remote.c (stop_reply_extract_thread): New. diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 9847120..d396ae5 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -923,7 +923,7 @@ qualified_name: TYPENAME COLONCOLON name && TYPE_CODE (type) != TYPE_CODE_UNION && TYPE_CODE (type) != TYPE_CODE_NAMESPACE) error (_("`%s' is not defined as an aggregate type."), - TYPE_NAME (type)); + TYPE_SAFE_NAME (type)); write_exp_elt_opcode (OP_SCOPE); write_exp_elt_type (type); @@ -939,7 +939,7 @@ qualified_name: TYPENAME COLONCOLON name && TYPE_CODE (type) != TYPE_CODE_UNION && TYPE_CODE (type) != TYPE_CODE_NAMESPACE) error (_("`%s' is not defined as an aggregate type."), - TYPE_NAME (type)); + TYPE_SAFE_NAME (type)); tmp_token.ptr = (char*) alloca ($4.length + 2); tmp_token.length = $4.length + 1; @@ -959,7 +959,7 @@ qualified_name: TYPENAME COLONCOLON name char *copy = copy_name ($3); error (_("No type \"%s\" within class " "or namespace \"%s\"."), - copy, TYPE_NAME ($1.type)); + copy, TYPE_SAFE_NAME ($1.type)); } ; |