Patchwork [FYI] Remove some unnecessary backslashes

login
register
mail settings
Submitter Tom Tromey
Date Nov. 27, 2019, 6:39 p.m.
Message ID <20191127183956.8181-1-tromey@adacore.com>
Download mbox | patch
Permalink /patch/36309/
State New
Headers show

Comments

Tom Tromey - Nov. 27, 2019, 6:39 p.m.
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
---
 gdb/ChangeLog    | 6 ++++++
 gdb/cp-support.c | 2 +-
 gdb/dwarf2read.h | 4 ++--
 3 files changed, 9 insertions(+), 3 deletions(-)

Patch

diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index bec8dc86157..9286259f459 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 53fc7f4d9be..140bbed08ae 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;
 };