lkml.org 
[lkml]   [2020]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] gdb: correct sys.path insertion
Date
From: Johannes Berg <johannes.berg@intel.com>

Perhaps something got moved around at some point, but the
current path that gets inserted has "/scripts/gdb" twice,
since the script is located in scripts/gdb/ already. Fix
the path.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
scripts/gdb/vmlinux-gdb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gdb/vmlinux-gdb.py b/scripts/gdb/vmlinux-gdb.py
index 4136dc2c59df..476da5b6a7ca 100644
--- a/scripts/gdb/vmlinux-gdb.py
+++ b/scripts/gdb/vmlinux-gdb.py
@@ -13,7 +13,7 @@

import os

-sys.path.insert(0, os.path.dirname(__file__) + "/scripts/gdb")
+sys.path.insert(0, os.path.dirname(__file__))

try:
gdb.parse_and_eval("0")
--
2.26.2
\
 
 \ /
  Last update: 2020-12-16 14:38    [W:0.024 / U:3.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site