|
From: Paul F. <pa...@so...> - 2023-01-29 16:36:11
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=ea733f262e37ae691d27122b534a141fc6854ba8 commit ea733f262e37ae691d27122b534a141fc6854ba8 Author: Paul Floyd <pj...@wa...> Date: Sun Jan 29 17:35:08 2023 +0100 macOS: Try to fix build, doesn't like .debug_gdb_scripts Diff: --- coregrind/vg_preloaded.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coregrind/vg_preloaded.c b/coregrind/vg_preloaded.c index 75a3b7ed0c..d6e05898c9 100644 --- a/coregrind/vg_preloaded.c +++ b/coregrind/vg_preloaded.c @@ -49,6 +49,7 @@ #include <features.h> #endif +#if !defined(VGO_darwin) /* Instruct GDB via a .debug_gdb_scripts section to load the valgrind and tool front-end commands. */ /* Note: The "MS" section flags are to remove duplicates. */ @@ -61,6 +62,7 @@ "); DEFINE_GDB_PY_SCRIPT(VG_LIBDIR "/valgrind-monitor.py") +#endif #if defined(VGO_linux) || defined(VGO_solaris) || defined(VGO_freebsd) |
|
From: Philippe W. <phi...@sk...> - 2023-01-30 21:20:36
|
What is the problem/error message/.... ? On Sun, 2023-01-29 at 16:35 +0000, Paul Floyd wrote: > https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=ea733f262e37ae691d27122b534a141fc6854ba8 > > commit ea733f262e37ae691d27122b534a141fc6854ba8 > Author: Paul Floyd <pj...@wa...> > Date: Sun Jan 29 17:35:08 2023 +0100 > > macOS: Try to fix build, doesn't like .debug_gdb_scripts > > Diff: > --- > coregrind/vg_preloaded.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/coregrind/vg_preloaded.c b/coregrind/vg_preloaded.c > index 75a3b7ed0c..d6e05898c9 100644 > --- a/coregrind/vg_preloaded.c > +++ b/coregrind/vg_preloaded.c > @@ -49,6 +49,7 @@ > #include <features.h> > #endif > > > +#if !defined(VGO_darwin) > /* Instruct GDB via a .debug_gdb_scripts section to load the valgrind and tool > front-end commands. */ > /* Note: The "MS" section flags are to remove duplicates. */ > @@ -61,6 +62,7 @@ > "); > > > DEFINE_GDB_PY_SCRIPT(VG_LIBDIR "/valgrind-monitor.py") > +#endif > > > #if defined(VGO_linux) || defined(VGO_solaris) || defined(VGO_freebsd) > > > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers |
|
From: Paul F. <pj...@wa...> - 2023-01-30 21:33:13
|
On 30-01-23 22:20, Philippe Waroquiers wrote:
> What is the problem/error message/.... ?
<inline asm>:1:14: error: mach-o section specifier uses an unknown
section type
.pushsection ".debug_gdb_scripts", "MS",@progbits,1
^
<inline asm>:4:13: error: .popsection without corresponding .pushsection
.popsection
This is macOS, so it's mach-o rather than ELF object format.
I tried to search to see if there is an equivalent, but couldn't find
anything. I don't think that gdb gets much use on macOS these days,
mostly lldb under XCode.
A+
Paul
|