Conversation
Binutils build changes: - Enable GDB in both cross and native 2.40 builds (remove --disable-gdb) - Add --with-python=no to native build configuration GDB native debugging fixes (patch 0002): - Fix register fetch/store: correct GPR/FPR indexing, implement WriteTaskContext for store_registers, gate AltiVec on ECF_VECTOR - Fix trap numbers: use SDK TRAPNUM_* values from exec/interrupts.h instead of raw PPC vector offsets - Implement attach() for connecting to running processes - Fix kill() to use Signal+RestartTask instead of DeleteTask - Add message pool safety with Forbid/Permit and NULL checks - Fix BFD file cache: skip realpath on AmigaOS to prevent path mangling (assigns like T: resolve to "RAM Disk:T/" which fails) - Fix charset: force UTF-8 host charset on AmigaOS (clib4 iconv) Test infrastructure: - Add GDB test targets to tests/makefile (test-gdb-all, test-gdb-smoke, test-gdb-load, test-gdb-disasm, test-gdb-remote) - Add docs/ to .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Based on your work i created a PR against the binutils-gdb project containing your changes. There I will comment about it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--disable-gdb, add--with-python=no)0002-Fix-GDB-native-debugging-on-AmigaOS-4.patchwith fixes for native GDB on AmigaOS 4tests/makefileGDB Fixes (patch 0002)
Register handling:
fetch_registers()GPR loop indexing (usedregnoinstead of loop variable)ECF_VECTORcontext flagstore_registers()usingIDebug->WriteTaskContext()Trap/signal handling:
TRAPNUM_*values fromexec/interrupts.hTRAP_TRAP(breakpoints),TRAP_DATA_BREAKPOINT(DABR),TRAP_TRACE(single-step)wait()instead of collapsing toGDB_SIGNAL_0Process control:
attach()for connecting to running processeskill()to useSignal(SIGBREAKF_CTRL_C)+RestartTaskinstead ofDeleteTaskon Process objectsBFD file path fix:
canonicalize_file_name()on AmigaOS ingdb_realpath()— AmigaOSrealpath()resolves assigns (e.g.T:becomesRAM Disk:T/) producing paths that fail when BFD's file cache tries to reopen themCharset fix:
nl_langinfo(CODESET)returnsISO-8859-1but its iconv cannot reliably convert to UTF-32Test plan
info functions— DWARF symbols with source file and line numbersdisassemble— correct PPC instruction dumpbreak— breakpoints resolved to source locationsptype— struct, enum, union, function typesx/— memory examination (hex, instructions, strings)maintenance info sections— all sections including.debug_*gild checkout binutils 2.40🤖 Generated with Claude Code