]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 15 Jul 2020 03:18:01 +0000 (23:18 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 15 Jul 2020 03:18:30 +0000 (23:18 -0400)
commit054a0959265eb89210626b6f2d84b93b82ef7ae9
tree59b62b08662c42c20e51e262fa327b987c4756a3
parent360f1cd72da997ff5300db7ce76c8727db046868
gdb/testsuite/lib/dwarf.exp: fix addr_size parameter comments

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/ChangeLog
gdb/testsuite/lib/dwarf.exp