Re: The newest gdb 8.3 crash on OpenBSD

Nan Xiao <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CA+MhoaOSuQRC50adRUAn8wXYR7OZmiAGWsQ_O04W=gLCzbUP7w@mail.gmail.com>
Hi Simon,

Got it, thanks again for your help!

Best Regards
Nan Xiao

On Tue, Feb 4, 2020 at 1:00 AM Simon Marchi <[email protected]> wrote:
>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.