Skip to content

Conversation

@ziuziakowska
Copy link
Contributor

@ziuziakowska ziuziakowska commented Nov 11, 2025

This PR fixes:

  • Without libexpat, GDB is not able to remote connect to QEMU.
  • Since switching away from Crosstool-NG, GDB erroneously builds without ELF support(!). Caused by:
configure:16552: checking for ELF support in BFD
configure:16571: gcc -o conftest -I../../gdb/../include -I../bfd -I../../gdb/../bfd -g -O2  -L../bfd -L../libiberty -L../zlib   conftest.c -lbfd -liberty -lz  -lncursesw -lm -ldl  >&5
In file included from conftest.c:189:
../../gdb/../bfd/elf-bfd.h: In function 'bfd_section_is_ctf':
../../gdb/../bfd/elf-bfd.h:3069:10: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
 3069 |   return strncmp (name, ".ctf", 4) == 0 && (name[4] == 0 || name[4] == '.');
      |          ^~~~~~~

This also closes #93 as we can now verify that the original patch works.

@ziuziakowska ziuziakowska marked this pull request as ready for review November 11, 2025 11:39
Copy link
Contributor

@jwnrt jwnrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@ziuziakowska ziuziakowska merged commit 0c31d90 into lowRISC:master Nov 11, 2025
4 checks passed
@ziuziakowska ziuziakowska deleted the gdb-fix branch November 17, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GDB does not recognise and disassemble bitmanip instructions

3 participants