|
From: Philippe W. <phi...@sk...> - 2023-01-08 21:28:09
|
On Sun, 2023-01-08 at 21:51 +0100, Paul Floyd wrote: > 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 The gdbserver tests are started with --nx, meaning to not load any .gdbinit. When I start my (locally built) gdb with --nx I see this: (gdb) show auto-load safe-path List of directories from which it is safe to auto-load files is :/auto-load. (gdb) In the meantime, what we might do is to add additional patterns in gdbserver_tests/filter_gdb.in to also delete the messages when the python code cannot be loaded. That will at least ensure the tests are working with or without python code loaded. Philippe > > > --- 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 > > > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers |