Re: [PATCH] gdb: correct sys.path insertion

2020-12-17 Thread Johannes Berg
Hi Jan, > > -sys.path.insert(0, os.path.dirname(__file__) + "/scripts/gdb") > > +sys.path.insert(0, os.path.dirname(__file__)) > > > > try: > > gdb.parse_and_eval("0") > > > > How did you test that, which setup? I just ran "gdb > /build/vmlinux", and "python print(sys.path)" didn't expos

Re: [PATCH] gdb: correct sys.path insertion

2020-12-17 Thread Jan Kiszka
On 16.12.20 14:36, Johannes Berg wrote: > From: Johannes Berg > > 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 > --- >

[PATCH] gdb: correct sys.path insertion

2020-12-16 Thread Johannes Berg
From: Johannes Berg 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 --- scripts/gdb/vmlinux-gdb.py | 2 +- 1 file changed, 1 inser