All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/gdb: relax requirement on symlink location
@ 2016-10-14 10:07 Tobias Waldekranz
  2016-10-17 15:45 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Waldekranz @ 2016-10-14 10:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: jan.kiszka

The current construct for inserting the `scripts/gdb/` directory into
the python path requires `vmlinux-gdb.py` to be symlinked in the root of
the kernel build tree.

By first resolving the symlink and inserting that path, the symlink can
be placed in an arbitrary directory.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.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 ce82bf5..a9029f4 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(os.path.realpath(__file__)))
 
 try:
     gdb.parse_and_eval("0")
-- 
1.8.4.357.g8d83871.dirty

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-17 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 10:07 [PATCH] scripts/gdb: relax requirement on symlink location Tobias Waldekranz
2016-10-17 15:45 ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.