* [PATCH] gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments
@ 2020-07-13 17:52 Simon Marchi
2020-07-13 19:37 ` Tom Tromey
0 siblings, 1 reply; 4+ messages in thread
From: Simon Marchi @ 2020-07-13 17:52 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
The comments modified in this patch claim that the addr_size parameters
can take the value 32 or 64 (suggesting the value is in bits). In fact,
the expected value is in bytes, either 4 or 8.
The actual value in the DWARF info is in bytes. And we can see that the
default values used (if addr_size == "default") are:
if {$_cu_addr_size == "default"} {
if {[is_64_target]} {
set _cu_addr_size 8
} else {
set _cu_addr_size 4
}
}
gdb/testsuite/ChangeLog:
* lib/dwarf.exp (Dwarf::cu, Dwarf::tu, Dwarf::lines): Change valid
values in documentation for addr_size to 4 and 8.
Change-Id: I4a02dca2bb7992198864e545ef099f020f54ff2f
---
gdb/testsuite/lib/dwarf.exp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index a7dbe25fd458..5448f0ff5df6 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -1026,7 +1026,7 @@ namespace eval Dwarf {
# default = 0 (32-bit)
# version n - DWARF version number to emit
# default = 4
- # addr_size n - the size of addresses, 32, 64, or default
+ # addr_size n - the size of addresses, 4, 8, or default
# default = default
# fission 0|1 - boolean indicating if generating Fission debug info
# default = 0
@@ -1117,7 +1117,7 @@ namespace eval Dwarf {
# default = 0 (32-bit)
# version n - DWARF version number to emit
# default = 4
- # addr_size n - the size of addresses, 32, 64, or default
+ # addr_size n - the size of addresses, 4, 8, or default
# default = default
# fission 0|1 - boolean indicating if generating Fission debug info
# default = 0
@@ -1298,7 +1298,7 @@ namespace eval Dwarf {
# default = 0 (32-bit)
# version n - DWARF version number to emit
# default = 4
- # addr_size n - the size of addresses, 32, 64, or default
+ # addr_size n - the size of addresses, 4, 8, or default
# default = default
#
# LABEL is the label of the current unit (which is probably
--
2.26.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments
2020-07-13 17:52 [PATCH] gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments Simon Marchi
@ 2020-07-13 19:37 ` Tom Tromey
2020-07-13 21:33 ` Simon Marchi
0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2020-07-13 19:37 UTC (permalink / raw)
To: Simon Marchi via Gdb-patches; +Cc: Simon Marchi
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
Simon> - # addr_size n - the size of addresses, 32, 64, or default
Simon> + # addr_size n - the size of addresses, 4, 8, or default
Maybe adding "in bytes" somewhere would be good.
Tom
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments
2020-07-13 19:37 ` Tom Tromey
@ 2020-07-13 21:33 ` Simon Marchi
2020-07-15 3:18 ` Simon Marchi
0 siblings, 1 reply; 4+ messages in thread
From: Simon Marchi @ 2020-07-13 21:33 UTC (permalink / raw)
To: Tom Tromey, Simon Marchi via Gdb-patches; +Cc: Simon Marchi
On 2020-07-13 3:37 p.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
>
> Simon> - # addr_size n - the size of addresses, 32, 64, or default
> Simon> + # addr_size n - the size of addresses, 4, 8, or default
>
> Maybe adding "in bytes" somewhere would be good.
>
> Tom
>
Sure, I can make them:
# addr_size n - the size of addresses in bytes: 4, 8, or default
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments
2020-07-13 21:33 ` Simon Marchi
@ 2020-07-15 3:18 ` Simon Marchi
0 siblings, 0 replies; 4+ messages in thread
From: Simon Marchi @ 2020-07-15 3:18 UTC (permalink / raw)
To: Tom Tromey, Simon Marchi via Gdb-patches; +Cc: Simon Marchi
On 2020-07-13 5:33 p.m., Simon Marchi wrote:
> On 2020-07-13 3:37 p.m., Tom Tromey wrote:
>>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
>>
>> Simon> - # addr_size n - the size of addresses, 32, 64, or default
>> Simon> + # addr_size n - the size of addresses, 4, 8, or default
>>
>> Maybe adding "in bytes" somewhere would be good.
>>
>> Tom
>>
>
> Sure, I can make them:
>
> # addr_size n - the size of addresses in bytes: 4, 8, or default
>
> Simon
>
I pushed it with this change.
Simno
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-15 3:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13 17:52 [PATCH] gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments Simon Marchi
2020-07-13 19:37 ` Tom Tromey
2020-07-13 21:33 ` Simon Marchi
2020-07-15 3:18 ` Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox