summaryrefslogtreecommitdiff
path: root/extra/chromium/gdbinit.patch
blob: 39d34644f3796d6fbfda8b6b5a04bbff90e37be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ./tools/gdb/gdbinit.orig
+++ ./tools/gdb/gdbinit
@@ -50,17 +50,7 @@
 
 def set_src_dir(compile_dir):
   global src_dir
-  git = subprocess.Popen(
-      ['git', '-C', compile_dir, 'rev-parse', '--show-toplevel'],
-      stdout=subprocess.PIPE,
-      stderr=subprocess.PIPE)
-  src_dir, _ = git.communicate()
-  if git.returncode:
-    return
-  if isinstance(src_dir, str):
-    src_dir = src_dir.rstrip()
-  else:
-    src_dir = src_dir.decode('utf-8').rstrip()
+  src_dir = os.path.abspath(os.getcwd())
 
   load_libcxx_pretty_printers(src_dir)