diff options
author | Tom Tromey <tromey@adacore.com> | 2019-11-27 11:38:56 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-11-27 11:38:56 -0700 |
commit | fad03f6e5b7cf88d86e41734b1c44c31daf2fc2b (patch) | |
tree | 2f34901a14f65d661e212a0089bb232c25de66ad | |
parent | 43678b0afe412f6e920e1edd6d403068918ab259 (diff) | |
download | binutils-fad03f6e5b7cf88d86e41734b1c44c31daf2fc2b.zip binutils-fad03f6e5b7cf88d86e41734b1c44c31daf2fc2b.tar.gz binutils-fad03f6e5b7cf88d86e41734b1c44c31daf2fc2b.tar.bz2 |
Remove some unnecessary backslashes
I found a couple of unnecessary backslashes in gdb. This removes
them.
Offhand, I wonder whether this abstract_to_concrete thing could be
done some other way? This seems possibly expensive.
Anyway, tested by rebuilding. I'm going to check this in as obvious.
gdb/ChangeLog
2019-11-27 Tom Tromey <tromey@adacore.com>
* dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
backslashes.
* cp-support.c: Remove unnecessary backslashes.
Change-Id: I956c91ae24407eeafec8a731545b45f5222e6a9d
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/cp-support.c | 2 | ||||
-rw-r--r-- | gdb/dwarf2read.h | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 028a58c..f1ed42a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-11-27 Tom Tromey <tromey@adacore.com> + + * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary + backslashes. + * cp-support.c: Remove unnecessary backslashes. + 2019-11-27 Christian Biesinger <cbiesinger@google.com> * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME diff --git a/gdb/cp-support.c b/gdb/cp-support.c index bec8dc8..9286259 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -2006,7 +2006,7 @@ static std::string quote (const char *str) { if (str != NULL) - return std::string (1, '\"') + str + '\"'; + return std::string (1, '"') + str + '"'; else return "<null>"; } diff --git a/gdb/dwarf2read.h b/gdb/dwarf2read.h index 53fc7f4..140bbed 100644 --- a/gdb/dwarf2read.h +++ b/gdb/dwarf2read.h @@ -259,8 +259,8 @@ public: /* Mapping from abstract origin DIE to concrete DIEs that reference it as DW_AT_abstract_origin. */ - std::unordered_map<sect_offset, std::vector<sect_offset>, \ - gdb::hash_enum<sect_offset>> \ + std::unordered_map<sect_offset, std::vector<sect_offset>, + gdb::hash_enum<sect_offset>> abstract_to_concrete; }; |