SHA256
8
0
forked from pool/gdb
Files
gdb/add-gdbarch_dwarf2_reg_piece_offset-hook.patch

223 lines
8.8 KiB
Diff
Raw Permalink Normal View History

- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
From 60f9e60b8d92e20277026ee4ad5fdc71b2bbe09d Mon Sep 17 00:00:00 2001
From: Tom de Vries <tdevries@suse.de>
Date: Wed, 15 Jan 2025 17:02:00 +0100
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
Subject: [PATCH] [gdb] Add gdbarch_dwarf2_reg_piece_offset hook
In rw_pieced_value, when reading/writing part of a register, DW_OP_piece and
DW_OP_bit_piece are handled the same, but the standard tells us:
- DW_OP_piece: if the piece is located in a register, but does not occupy the
entire register, the placement of the piece within that register is defined
by the ABI.
- DW_OP_bit_piece: if the location is a register, the offset is from the least
significant bit end of the register.
Add a new hook gdbarch_dwarf2_reg_piece_offset that allows us to define the
ABI-specific behaviour for DW_OP_piece.
The default implementation of the hook is the behaviour of DW_OP_bit_piece, so
there should not be any functional changes.
Tested on s390x-linux.
Approved-By: Tom Tromey <tom@tromey.com>
---
gdb/dwarf2/expr.c | 31 +++++++++++++++++++++++++------
gdb/findvar.c | 18 ++++++++++++++++++
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
gdb/gdbarch-gen.c | 22 ++++++++++++++++++++++
gdb/gdbarch-gen.h | 8 ++++++++
gdb/gdbarch_components.py | 16 ++++++++++++++++
gdb/value.h | 2 ++
6 files changed, 91 insertions(+), 6 deletions(-)
diff --git a/gdb/dwarf2/expr.c b/gdb/dwarf2/expr.c
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
index 2a1b85147d3..ee1522b7437 100644
--- a/gdb/dwarf2/expr.c
+++ b/gdb/dwarf2/expr.c
@@ -211,14 +211,33 @@ rw_pieced_value (value *v, value *from, bool check_optimized)
ULONGEST reg_bits = 8 * register_size (arch, gdb_regnum);
int optim, unavail;
- if (gdbarch_byte_order (arch) == BFD_ENDIAN_BIG
- && p->offset + p->size < reg_bits)
+ if (p->offset + p->size < reg_bits)
{
- /* Big-endian, and we want less than full size. */
- bits_to_skip += reg_bits - (p->offset + p->size);
+ /* We want less than full size. */
+
+ if (p->op == DW_OP_piece)
+ {
+ gdb_assert (p->offset == 0);
+
+ /* If the piece is located in a register, but does not
+ occupy the entire register, the placement of the piece
+ within that register is defined by the ABI. */
+ bits_to_skip
+ += 8 * gdbarch_dwarf2_reg_piece_offset (arch, gdb_regnum,
+ p->size / 8);
+ }
+ else if (p->op == DW_OP_bit_piece)
+ {
+ /* If the location is a register, the offset is from the
+ least significant bit end of the register. */
+ if (gdbarch_byte_order (arch) == BFD_ENDIAN_BIG)
+ bits_to_skip += reg_bits - (p->offset + p->size);
+ else
+ bits_to_skip += p->offset;
+ }
+ else
+ error (_("Don't know how to get part of implicit pointer"));
}
- else
- bits_to_skip += p->offset;
this_size = bits_to_bytes (bits_to_skip, this_size_bits);
buffer.resize (this_size);
diff --git a/gdb/findvar.c b/gdb/findvar.c
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
index f7760aa61ca..1a9d2bedfc2 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -541,6 +541,24 @@ default_value_from_register (gdbarch *gdbarch, type *type, int regnum,
return value;
}
+/* Default implementation of gdbarch_dwarf2_reg_piece_offset. Implements
+ DW_OP_bits_piece for DW_OP_piece. */
+
+ULONGEST
+default_dwarf2_reg_piece_offset (gdbarch *gdbarch, int gdb_regnum, ULONGEST size)
+{
+ ULONGEST reg_size = register_size (gdbarch, gdb_regnum);
+ gdb_assert (size <= reg_size);
+ if (reg_size == size)
+ return 0;
+
+ if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG)
+ return reg_size - size;
+
+ return 0;
+}
+
+
/* VALUE must be an lval_register value. If regnum is the value's
associated register number, and len the length of the value's type,
read one or more registers in VALUE's frame, starting with register REGNUM,
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
diff --git a/gdb/gdbarch-gen.c b/gdb/gdbarch-gen.c
index efc784c2311..8137ece78bc 100644
--- a/gdb/gdbarch-gen.c
+++ b/gdb/gdbarch-gen.c
@@ -109,6 +109,7 @@ struct gdbarch
gdbarch_register_to_value_ftype *register_to_value = nullptr;
gdbarch_value_to_register_ftype *value_to_register = nullptr;
gdbarch_value_from_register_ftype *value_from_register = default_value_from_register;
+ gdbarch_dwarf2_reg_piece_offset_ftype *dwarf2_reg_piece_offset = default_dwarf2_reg_piece_offset;
gdbarch_pointer_to_address_ftype *pointer_to_address = unsigned_pointer_to_address;
gdbarch_address_to_pointer_ftype *address_to_pointer = unsigned_address_to_pointer;
gdbarch_integer_to_address_ftype *integer_to_address = nullptr;
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
@@ -372,6 +373,7 @@ verify_gdbarch (struct gdbarch *gdbarch)
/* Skip verify of register_to_value, invalid_p == 0. */
/* Skip verify of value_to_register, invalid_p == 0. */
/* Skip verify of value_from_register, invalid_p == 0. */
+ /* Skip verify of dwarf2_reg_piece_offset, invalid_p == 0. */
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
/* Skip verify of pointer_to_address, invalid_p == 0. */
/* Skip verify of address_to_pointer, invalid_p == 0. */
/* Skip verify of integer_to_address, has predicate. */
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
@@ -789,6 +791,9 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
gdb_printf (file,
"gdbarch_dump: value_from_register = <%s>\n",
host_address_to_string (gdbarch->value_from_register));
+ gdb_printf (file,
+ "gdbarch_dump: dwarf2_reg_piece_offset = <%s>\n",
+ host_address_to_string (gdbarch->dwarf2_reg_piece_offset));
gdb_printf (file,
"gdbarch_dump: pointer_to_address = <%s>\n",
host_address_to_string (gdbarch->pointer_to_address));
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
@@ -2588,6 +2593,23 @@ set_gdbarch_value_from_register (struct gdbarch *gdbarch,
gdbarch->value_from_register = value_from_register;
}
+ULONGEST
+gdbarch_dwarf2_reg_piece_offset (struct gdbarch *gdbarch, int regnum, ULONGEST size)
+{
+ gdb_assert (gdbarch != NULL);
+ gdb_assert (gdbarch->dwarf2_reg_piece_offset != NULL);
+ if (gdbarch_debug >= 2)
+ gdb_printf (gdb_stdlog, "gdbarch_dwarf2_reg_piece_offset called\n");
+ return gdbarch->dwarf2_reg_piece_offset (gdbarch, regnum, size);
+}
+
+void
+set_gdbarch_dwarf2_reg_piece_offset (struct gdbarch *gdbarch,
+ gdbarch_dwarf2_reg_piece_offset_ftype dwarf2_reg_piece_offset)
+{
+ gdbarch->dwarf2_reg_piece_offset = dwarf2_reg_piece_offset;
+}
+
CORE_ADDR
gdbarch_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
{
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
diff --git a/gdb/gdbarch-gen.h b/gdb/gdbarch-gen.h
index 9627f6d6a9f..abffcf99fac 100644
--- a/gdb/gdbarch-gen.h
+++ b/gdb/gdbarch-gen.h
@@ -430,6 +430,14 @@ typedef struct value * (gdbarch_value_from_register_ftype) (struct gdbarch *gdba
extern struct value * gdbarch_value_from_register (struct gdbarch *gdbarch, struct type *type, int regnum, const frame_info_ptr &this_frame);
extern void set_gdbarch_value_from_register (struct gdbarch *gdbarch, gdbarch_value_from_register_ftype *value_from_register);
+/* For a DW_OP_piece located in a register, but not occupying the
+ entire register, return the placement of the piece within that
+ register as defined by the ABI. */
+
+typedef ULONGEST (gdbarch_dwarf2_reg_piece_offset_ftype) (struct gdbarch *gdbarch, int regnum, ULONGEST size);
+extern ULONGEST gdbarch_dwarf2_reg_piece_offset (struct gdbarch *gdbarch, int regnum, ULONGEST size);
+extern void set_gdbarch_dwarf2_reg_piece_offset (struct gdbarch *gdbarch, gdbarch_dwarf2_reg_piece_offset_ftype *dwarf2_reg_piece_offset);
+
typedef CORE_ADDR (gdbarch_pointer_to_address_ftype) (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf);
extern CORE_ADDR gdbarch_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf);
extern void set_gdbarch_pointer_to_address (struct gdbarch *gdbarch, gdbarch_pointer_to_address_ftype *pointer_to_address);
diff --git a/gdb/gdbarch_components.py b/gdb/gdbarch_components.py
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
index f9c18365add..2d528de2c56 100644
--- a/gdb/gdbarch_components.py
+++ b/gdb/gdbarch_components.py
@@ -829,6 +829,22 @@ allocate and return a struct value with all value attributes
invalid=False,
)
+Method(
+ comment="""
+For a DW_OP_piece located in a register, but not occupying the
+entire register, return the placement of the piece within that
+register as defined by the ABI.
+""",
+ type="ULONGEST",
+ name="dwarf2_reg_piece_offset",
+ params=[
+ ("int", "regnum"),
+ ("ULONGEST", "size")
+ ],
+ predefault="default_dwarf2_reg_piece_offset",
+ invalid=False,
+)
+
Method(
type="CORE_ADDR",
name="pointer_to_address",
diff --git a/gdb/value.h b/gdb/value.h
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
index 2c94e09cbf3..8e5fd5403cc 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -1128,6 +1128,8 @@ extern value *default_value_from_register (gdbarch *gdbarch, type *type,
int regnum,
const frame_info_ptr &this_frame);
+extern ULONGEST default_dwarf2_reg_piece_offset (gdbarch *gdbarch, int regnum, ULONGEST size);
+
extern struct value *value_from_register (struct type *type, int regnum,
const frame_info_ptr &frame);
- Update to fedora rawhide @ c65d4ba. Patched dropped: * gdb-6.6-buildid-locate-tests.patch Patches modified: * gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 12e32a6. Patches modified: * gdb-add-rpm-suggestion-script.patch * gdb-backport-buildid-related-changes.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 264209d. Maintenance script import-fedora.sh: * Drop gdb-rhbz1156192-recursive-dlopen-test.patch from skip_patches. - Update to fedora rawhide @ 020018c. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1e3eb79. Maintenance script import-fedora.sh: * Drop gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch from skip_patches. - Update to fedora rawhide @ 1a098a7. Patches dropped: * gdb-6.3-gstack-20050411.patch * gdb-testsuite-require-can_spawn_for_attach-in-gdb.ba.patch - Update to fedora rawhide @ 5fc2d96. Patches dropped: * gdb-backport-buildid-related-changes.patch * gdb-catchpoint-re-set.patch * gdb-remove-qnx-neutrino-support.patch - Update to fedora rawhide @ 6b0ca99 (gdb 16.2). Patches updated (fedora): * gdb-add-rpm-suggestion-script.patch Maintenance script qa-local.sh: * Update version to 16.2. Patches updated: * gdb-testsuite-ada-pie.patch * gdb-tui-enable-work-around-libncurses-segfault.patch * gdb-guile-use-scm_debug_typing_strictness-0.patch * add-gdbarch_dwarf2_reg_piece_offset-hook.patch * gdb-testsuite-fix-gdb.ada-big_packed_array.exp-on-s3.patch * gdb-cli-add-ignore-errors-command.patch * fixup-gdb-add-rpm-suggestion-script.patch Patches dropped: * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch * gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch * fix-gdb.dap-step-out.exp-on-s390x.patch * fix-gdb.dwarf2-shortpiece.exp-on-s390x.patch * gdb-build-fix-unused-var-in-corelow.c.patch * gdb-exp-fix-gdb.fortran-intrinsics.exp-fail-on-arm.patch * gdb-prune-inferior-after-switching-inferior.patch * gdb-record-fix-out-of-bounds-write-in-aarch64_record.patch * gdb-symtab-fix-target-type-of-complex-long-double-on.patch * gdb-symtab-return-correct-reader-for-top-level-cu-in.patch * gdb-tdep-fix-arm-thumb2-hw-breakpoint.patch * gdb-tdep-fix-recording-of-t1-push.patch * gdb-tdep-handle-sycall-statx-for-arm-linux.patch * gdb-tdep-handle-syscall-clock_gettime64-for-arm-linu.patch * gdb-tdep-s390-add-arch15-record-replay-support.patch * gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch * gdb-testsuite-don-t-use-set-auto-solib-add-off.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-on-arm-lin.patch * gdb-testsuite-fix-gdb.arch-arm-pseudo-unwind.exp-wit.patch * gdb-testsuite-fix-gdb.arch-arm-single-step-kernel-he.patch * gdb-testsuite-fix-gdb.arch-riscv-tdesc-regs.exp.patch * gdb-testsuite-fix-gdb.base-empty-host-env-vars.exp.patch * gdb-testsuite-fix-gdb.base-list-dot-nodebug-and-make.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-on-arm.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-fixed-point.exp-on-.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-lines.exp-on-arm-li.patch * gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch * gdb-testsuite-fix-gdb.python-py-format-address.exp-o.patch * gdb-testsuite-fix-gdb.python-py-format-string.exp-wi.patch * gdb-testsuite-fix-gdb.python-py-mi-cmd.exp-with-pyth.patch * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-fix-regexp-in-gdb.ada-mi_var_access.ex.patch * gdb-testsuite-fix-regexp-in-gdb.arch-i386-disp-step-.patch * gdb-testsuite-fix-regexp-in-gdb.threads-stepi-over-c.patch * gdb-testsuite-fix-timeout-in-gdb.mi-mi-multi-command.patch * handle-address-class-annotation-for-s390x-in-some-te.patch * opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch * s390-add-arch15-concurrent-functions-facility-insns.patch * s390-add-arch15-instruction-names.patch * s390-add-arch15-instructions.patch * s390-align-opcodes-to-lower-case.patch * s390-fix-disassembly-of-optional-addressing-operands.patch * s390-relax-risbg-n-z-risb-h-l-gz-rns-ros-rxs-bgt-ope.patch * s390-simplify-dis-assembly-of-insn-operands-with-con.patch * s390-treat-addressing-operand-sequence-as-one-in-dis.patch * use-setvariable-in-gdb.dap-scopes.exp.patch Patches added: * gdb-testsuite-fix-gdb.dwarf2-implptr.exp-regression.patch * gdb-testsuite-work-around-pr32850.patch * gdb-symtab-fix-gdb.base-fission-macro.exp-with-unix-.patch * gdb-testsuite-fix-another-timeout-in-gdb.base-bg-exe.patch - Add "BuildRequires: glibc-locale" for gdb:testsuite to fix SLFO testsuite failures. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=454
2025-04-10 03:19:12 +00:00
base-commit: 82b53ea8aa8bb7fa481e742d5050e0adef8b2d58
--
2.43.0