From: Sam Warner <samuel.r.warner@me.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb@sourceware.org
Subject: Re: GDB and MacOS 11.4/BigSur
Date: Mon, 28 Jun 2021 11:10:59 -0700 [thread overview]
Message-ID: <A63F99BE-424F-4A02-862D-72421D7BAE1D@me.com> (raw)
In-Reply-To: <f550f468-cd23-1cfa-a073-435f8e6bf0f3@polymtl.ca>
Hi, - some good news Gdb 9.2 doesn’t have this issue.
I’ll go confirm Eclipse/CDT works with GDB 9.2 for a quick check, and then back to setting up the build-environment for 10.2 (and testing the fix you have). Just want to aid others with an interim solution for Eclipse/CDT.
Sam
sam@eclipsec bin % gdb gdb
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin19.4.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gdb...
(No debugging symbols found in gdb)
(gdb) file /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.HelloWorld.MacOS.Gcc
Reading symbols from /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.HelloWorld.MacOS.Gcc...
(No debugging symbols found in /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.HelloWorld.MacOS.Gcc)
BFD: /usr/lib/dyld(i386:x86-64): unknown load command 0x34
BFD: /usr/lib/dyld(i386:x86-64): unknown load command 0x34
BFD: /usr/lib/dyld(i386:x86-64): unknown load command 0x34
(gdb) run
Starting program: /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.HelloWorld.MacOS.Gcc
[New Thread 0x2703 of process 25537]
> On Jun 27, 2021, at 5:48 PM, Simon Marchi <simon.marchi@polymtl.ca> wrote:
>
> On 2021-06-27 6:44 p.m., Sam Warner wrote:
>> Hi Simon,
>>
>> Thanks - yes - I’ll start with that patch first. I obtain the same call stack
>>
>> My next two things to learn is how to get the equivalent of the symbol-server working, and then to setup a developer-environment for GDB. Any pointers would be great.
>
> I don't know what symbol-server is, I can't help you with that.
>
> To build gdb, you normally just need to run these commands at the
> top-level:
>
> ./configure
> make all-gdb
>
> The built gdb will be at gdb/gdb. But there are some additional quirks
> on macOS though, so it's not as simple as that. GDB requires libgmp, so
> you need to install that. You need GNU make to build (the make that
> comes with macOS is not GNU make). You can install those using Macports
> (or Brew, I guess) or by building them by hand. You can then probably
> get by using the commands:
>
> ./configure --disable-nls CFLAGS="-g3 -O0" CXXFLAGS="-std=gnu++17 -g3 -O0" --with-libgmp-prefix=/opt/local
> gmake
>
> Update /opt/local to point where your libgmp is installed. gmake refers
> to GNU make, when installed through Macports.
>
> Simon
next prev parent reply other threads:[~2021-06-28 18:11 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-26 18:40 Sam Warner
2021-06-26 23:08 ` Simon Marchi
2021-06-26 23:27 ` Sam Warner
2021-06-27 0:51 ` Simon Marchi
2021-06-27 4:00 ` Simon Marchi
2021-06-27 20:32 ` Sam Warner
2021-06-27 22:27 ` Simon Marchi
2021-06-27 22:44 ` Sam Warner
2021-06-28 0:48 ` Simon Marchi
2021-06-28 18:10 ` Sam Warner [this message]
2021-06-28 21:51 ` Sam Warner
2021-06-29 0:03 ` Sam Warner
2021-06-29 0:29 ` Sam Warner
2021-06-29 1:34 ` Sam Warner
2021-06-29 1:44 ` Sam Warner
2021-06-29 14:04 ` Simon Marchi
2021-06-29 14:38 ` Sam Warner
2021-06-29 14:43 ` Simon Marchi
2021-06-29 14:45 ` Sam Warner
2021-06-29 14:59 ` Sam Warner
2021-06-29 15:17 ` Sam Warner
2021-06-29 15:23 ` Simon Marchi
2021-06-30 21:29 ` Sam Warner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A63F99BE-424F-4A02-862D-72421D7BAE1D@me.com \
--to=samuel.r.warner@me.com \
--cc=gdb@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).