|
From: Paul F. <pj...@wa...> - 2023-01-08 20:51:39
|
Hi
The python loading doesn't seem to work on FreeBSD.
Possibly a bug in gdb?
I've tried putting in .gdbinit
set debug auto-load
set auto-load safe-path /
I still get things like
--- mcleak.stdoutB.exp 2022-12-31 08:58:43.734255000 +0100
+++ mcleak.stdoutB.out 2023-01-08 21:39:59.656817000 +0100
@@ -1,5 +1,14 @@
Breakpoint 1 at 0x........: file leak-delta.c, line 10.
Continuing.
+To enable execution of this file add
+ add-auto-load-safe-path
/usr/home/paulf/tools/valgrind/libexec/valgrind/valgrind-monitor.py
+line to your configuration file "/home/paulf/.gdbinit".
+To completely disable this security protection add
+ set auto-load safe-path /
+line to your configuration file "/home/paulf/.gdbinit".
+For more information about this security protection see the
+"Auto-loading safe path" section in the GDB manual. E.g., run from the
shell:
+ info "(gdb)Auto-loading safe path"
and
--- mcleak.stderrB.exp 2022-12-31 08:58:43.733901000 +0100
+++ mcleak.stderrB.out 2023-01-08 21:39:59.747972000 +0100
@@ -1,4 +1,5 @@
vgdb-error value changed from 0 to 999999
+warning: File
"/usr/home/paulf/tools/valgrind/libexec/valgrind/valgrind-monitor.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
10 bytes in 1 blocks are still reachable in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: f (leak-delta.c:15)
A+
Paul
|