* [PATCH] gdb/testsuite: add comments to line table from DWARF assembler
@ 2025-01-27 11:47 Andrew Burgess
2025-01-28 1:17 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Burgess @ 2025-01-27 11:47 UTC (permalink / raw)
To: gdb-patches; +Cc: Andrew Burgess
Add comments to the assembler generated by the DWARF assembler that
builds the line table. I found these comments useful when debugging
issues with the line table parsing.
This patch should make no difference to what is being tested. The
test binaries should be unchanged after this commit.
---
gdb/testsuite/lib/dwarf.exp | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index f6348972968..bcf3d73bff2 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -2648,25 +2648,25 @@ namespace eval Dwarf {
set _line_address_update 0
variable _line_program_terminated
set _line_program_terminated 0
- _op .byte 1
+ _op .byte 1 DW_LNS_copy
}
proc DW_LNS_negate_stmt {} {
variable _line_program_terminated
set _line_program_terminated 0
- _op .byte 6
+ _op .byte 6 DW_LNS_negate_stmt
}
proc DW_LNS_set_prologue_end {} {
variable _line_program_terminated
set _line_program_terminated 0
- _op .byte 0x0a
+ _op .byte 0x0a DW_LNS_set_prologue_end
}
proc DW_LNS_set_epilogue_begin {} {
variable _line_program_terminated
set _line_program_terminated 0
- _op .byte 0x0b
+ _op .byte 0x0b DW_LNS_set_epilogue_begin
}
proc DW_LNS_advance_pc {offset} {
@@ -2674,7 +2674,7 @@ namespace eval Dwarf {
set _line_program_terminated 0
variable _line_address_update
set _line_address_update 1
- _op .byte 2
+ _op .byte 2 DW_LNS_advance_pc
_op .uleb128 ${offset}
}
@@ -2682,7 +2682,7 @@ namespace eval Dwarf {
variable _line_program_terminated
set _line_program_terminated 0
variable _line
- _op .byte 3
+ _op .byte 3 DW_LNS_advance_line
_op .sleb128 ${offset}
set _line [expr $_line + $offset]
}
@@ -2705,7 +2705,7 @@ namespace eval Dwarf {
proc DW_LNS_set_file {num} {
variable _line_program_terminated
set _line_program_terminated 0
- _op .byte 4
+ _op .byte 4 DW_LNS_set_file
_op .sleb128 ${num}
}
base-commit: c779771dfe9e4a35b7ba31d1a906dc8273707392
--
2.47.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] gdb/testsuite: add comments to line table from DWARF assembler
2025-01-27 11:47 [PATCH] gdb/testsuite: add comments to line table from DWARF assembler Andrew Burgess
@ 2025-01-28 1:17 ` Kevin Buettner
2025-01-29 10:19 ` Andrew Burgess
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2025-01-28 1:17 UTC (permalink / raw)
To: Andrew Burgess; +Cc: gdb-patches
On Mon, 27 Jan 2025 11:47:45 +0000
Andrew Burgess <aburgess@redhat.com> wrote:
> Add comments to the assembler generated by the DWARF assembler that
> builds the line table. I found these comments useful when debugging
> issues with the line table parsing.
>
> This patch should make no difference to what is being tested. The
> test binaries should be unchanged after this commit.
LGTM.
Approved-by: Kevin Buettner <kevinb@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gdb/testsuite: add comments to line table from DWARF assembler
2025-01-28 1:17 ` Kevin Buettner
@ 2025-01-29 10:19 ` Andrew Burgess
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Burgess @ 2025-01-29 10:19 UTC (permalink / raw)
To: Kevin Buettner; +Cc: gdb-patches
Kevin Buettner <kevinb@redhat.com> writes:
> On Mon, 27 Jan 2025 11:47:45 +0000
> Andrew Burgess <aburgess@redhat.com> wrote:
>
>> Add comments to the assembler generated by the DWARF assembler that
>> builds the line table. I found these comments useful when debugging
>> issues with the line table parsing.
>>
>> This patch should make no difference to what is being tested. The
>> test binaries should be unchanged after this commit.
>
> LGTM.
>
> Approved-by: Kevin Buettner <kevinb@redhat.com>
Pushed.
Thanks,
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-29 10:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-27 11:47 [PATCH] gdb/testsuite: add comments to line table from DWARF assembler Andrew Burgess
2025-01-28 1:17 ` Kevin Buettner
2025-01-29 10:19 ` Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox