Skip to content

GDB fixes#96

Merged
ziuziakowska merged 3 commits into
lowRISC:masterfrom
ziuziakowska:gdb-fix
Nov 11, 2025
Merged

GDB fixes#96
ziuziakowska merged 3 commits into
lowRISC:masterfrom
ziuziakowska:gdb-fix

Conversation

@ziuziakowska

@ziuziakowska ziuziakowska commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

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.

Signed-off-by: Alice Ziuziakowska <a.ziuziakowska@lowrisc.org>
Signed-off-by: Alice Ziuziakowska <a.ziuziakowska@lowrisc.org>
Signed-off-by: Alice Ziuziakowska <a.ziuziakowska@lowrisc.org>
@ziuziakowska ziuziakowska marked this pull request as ready for review November 11, 2025 11:39

@jwnrt jwnrt left a comment

Copy link
Copy Markdown
Contributor

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