summaryrefslogtreecommitdiffstats
path: root/tools/gdb
diff options
context:
space:
mode:
authoralecflett@chromium.org <alecflett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-01 04:22:47 +0000
committeralecflett@chromium.org <alecflett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-01 04:22:47 +0000
commitc8b120161fe2876a1dfd4263528f8a35299bc10a (patch)
tree7133d65181913c22abf616e1276fdcd6822cbf49 /tools/gdb
parente5b3b4cb07ee7396f2773bbf6d2b8884d4814883 (diff)
downloadchromium_src-c8b120161fe2876a1dfd4263528f8a35299bc10a.zip
chromium_src-c8b120161fe2876a1dfd4263528f8a35299bc10a.tar.gz
chromium_src-c8b120161fe2876a1dfd4263528f8a35299bc10a.tar.bz2
support base::char16 in gdb formatter
in clang, char16 shows up as base::char16 in template definitions. This just adds that to the pattern BUG= Review URL: https://chromiumcodereview.appspot.com/16085009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203568 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gdb')
-rw-r--r--tools/gdb/gdb_chrome.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/gdb/gdb_chrome.py b/tools/gdb/gdb_chrome.py
index 9ff5553..8173fa1 100644
--- a/tools/gdb/gdb_chrome.py
+++ b/tools/gdb/gdb_chrome.py
@@ -57,9 +57,10 @@ class StringPrinter(Printer):
class String16Printer(StringPrinter):
def to_string(self):
return webkit.ustring_to_string(self.val['_M_dataplus']['_M_p'])
-pp_set.add_printer('string16',
- '^string16|std::basic_string<(unsigned short|char16).*>$',
- String16Printer);
+pp_set.add_printer(
+ 'string16',
+ '^string16|std::basic_string<(unsigned short|char16|base::char16).*>$',
+ String16Printer);
class GURLPrinter(StringPrinter):