Closed mmastrac closed 2 years ago
I haven't used gdb in a while so I can really tell.
Maybe you're right this line causes the error. You can comment it locally and build from source to test it. If it works I'll make a fix.
Unfortunately, I tried a few different edits after posting that message (removing various combinations of --disable-*, install vs install-gdb) and had no luck.
It's busted, but I am really at a loss as to how it might be fixed. Hopefully someone with more experience can point me at some ideas!
I also had this problem and found this clue: https://unix.stackexchange.com/questions/624486/gdb-installed-from-homebrew-on-macos-big-sur-fails-to-load-symbols-from-elf32-i3
So, I tried to insert the line "#include
Cheers, Bernhard
I'm encountering this same issue, and unfortunately @felias-fogg 's solution hasn't worked for me. I'm on MacOS Big Sur version 11.2.3.
Neither adding the inreplace
line into the formula, nor including the patch
block from #255 worked for me.
Actually, scratch that, I was being dumb. The patch inserts from #255 worked for me, I just needed to --build-from-source
when installing avr-binutils
and avr-gdb
. Now seems to work for me!
Does someone want to take over #255 and the patch?
@ladislas Sure thing, here you go: #259
This should now be fixed thanks to @danapplegate!
I'll close the issue now.
Feel free to open a new one if needed.
I've been scratching my head over this for a while, but I cannot get the
avr-gdb
package here to load an elf file successfully. I tried a known-good incantation from http://blog.oddbit.com/post/2019-01-22-debugging-attiny-code-pt-1/, but something about elf32-avr is busted.This is a repro with a simple, empty main.c (int main(void) { }):
Uninstalled and reinstalled
avr-gdb
,avr-gcc
andavr-binutils
from this tap. Tried various combinations of flags (-g
,-Og
, different CPUs, etc).Is it possible that the part of the
avr-gdb
formula that skips BFD/opcodes causes this? https://github.com/osx-cross/homebrew-avr/blob/master/Formula/avr-gdb.rb#L43