The newest gdb 8.3 crash on OpenBSD
Simon Marchi
simark@simark.ca
Mon Feb 3 17:00:00 GMT 2020
On 2020-02-01 5:47 a.m., Nan Xiao wrote:
> Hi Simon,
>
> Thanks very much for your reply!
>
> Yes, you are correct! After checking gdb/config.h, I found all ptrace
> related macros are undefined:
>
> /* Define if sys/ptrace.h defines the PTRACE_GETFPXREGS request. */
> /* #undef HAVE_PTRACE_GETFPXREGS */
>
> /* Define if sys/ptrace.h defines the PTRACE_GETREGS request. */
> /* #undef HAVE_PTRACE_GETREGS */
>
> /* Define to 1 if you have the <ptrace.h> header file. */
> /* #undef HAVE_PTRACE_H */
>
> /* Define if sys/ptrace.h defines the PT_GETDBREGS request. */
> /* #undef HAVE_PT_GETDBREGS */
>
> /* Define if sys/ptrace.h defines the PT_GETXMMREGS request. */
> /* #undef HAVE_PT_GETXMMREGS */
>
> I checked the header files, there is no /usr/include/ptrace.h. There
> is /usr/include/sys/ptrace.h, but the real definitions (such as
> PT_GETREGS, PT_SETREGS, etc) are in system related header files. E.g.,
> in my OS, it is in /usr/include/amd64/ptrace.h. I checked OpenBSD's
> gdb port (gdb 7.12.1, http://openports.se/devel/gdb), it seems I need
> more tweak to make gdb work on OpenBSD, not as simple as just
> "configure" and "make".
>
> Anyway, thanks very much again for your time and help!
>
> Best Regards
>
> Nan Xiao
Ok, it would be nice if GDB worked, instead of crashed, with a simple ./configure && make on
OpenBSD. If you manage to make it work, please consider sending a patch so that other users
don't bump into this problem!
Simon
More information about the Gdb
mailing list