From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61902 invoked by alias); 4 Feb 2020 09:20:07 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 61893 invoked by uid 89); 4 Feb 2020 09:20:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*i:sk:aa755de, H*f:sk:aa755de, Best X-HELO: mail-il1-f194.google.com Received: from mail-il1-f194.google.com (HELO mail-il1-f194.google.com) (209.85.166.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Feb 2020 09:20:05 +0000 Received: by mail-il1-f194.google.com with SMTP id f70so15244579ill.6 for ; Tue, 04 Feb 2020 01:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jjc5OV7QRlMyV8gqMO54T0AiUBgk2dBpnZoC6pSrgEE=; b=dm7P5UPJSFKCKoyDKHkgjGCf0cwGV2qb8Dlg6hWcvJQLZsYxH5u+LDgHv8JVaPyQMZ 6KiFSy0m9Sq4+Ulm3E2XosjSGoQwBLRw214KyBGDQIUIVNmZyhEY9ZwTZE2bWjc7T17V 9+83TXSU0hCwx2zh/iQ1BuXzLMRQvLZZAt85rHbJOXxDiIV3DC5vmuQZVrOcWLFvAkb1 IUv12QCv03tpL2ZMkmfnzhenjHXr684NeJAFGbvsoEWe5GHezFZb7FvKAKNQ7hii7MIQ 6vGz+GApyFa9vefp3RR0u2AaoTcy/OHiZTtZZNQWMlZbmcRxcsoMQkxkvEjYRj0CnJG8 gxLg== MIME-Version: 1.0 References: In-Reply-To: From: Nan Xiao Date: Tue, 04 Feb 2020 09:20:00 -0000 Message-ID: Subject: Re: The newest gdb 8.3 crash on OpenBSD To: Simon Marchi Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00008.txt.bz2 Hi Simon, Got it, thanks again for your help! Best Regards Nan Xiao On Tue, Feb 4, 2020 at 1:00 AM Simon Marchi 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 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