From: Tobias Waldekranz <tobias@waldekranz.com>
To: linux-kernel@vger.kernel.org
Cc: jan.kiszka@siemens.com
Subject: [PATCH] scripts/gdb: relax requirement on symlink location
Date: Fri, 14 Oct 2016 12:07:00 +0200 [thread overview]
Message-ID: <20161014100700.GA9188@gmail.com> (raw)
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
next reply other threads:[~2016-10-14 10:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 10:07 Tobias Waldekranz [this message]
2016-10-17 15:45 ` [PATCH] scripts/gdb: relax requirement on symlink location Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161014100700.GA9188@gmail.com \
--to=tobias@waldekranz.com \
--cc=jan.kiszka@siemens.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.