8sa1-binutils-gdb/gdb/testsuite/lib
Simon Marchi 9307efbe9e gdb/testsuite: add test for .debug_{rng,loc}lists section without offset array
It is possible for the tables in the .debug_{rng,loc}lists sections to
not have an array of offsets.  In that case, the offset_entry_count
field of the header is 0.  The forms DW_FORM_{rng,loc}listx (reference
by index) can't be used with that table.  Instead, the
DW_FORM_sec_offset form, which references a {rng,loc}list by direct
offset in the section, must be used.  From what I saw, this is what GCC
currently produces.

Add tests for this case.  I didn't see any bug related to this, I just
think that it would be nice to have coverage for this. A new
`-with-offset-array` option is added to the `table` procs, used when
generating {rng,loc}lists, to decide whether to generate the offset
array.

gdb/testsuite/ChangeLog:

	* lib/dwarf.exp (rnglists): Add -no-offset-array option to
	table proc.
	* gdb.dwarf2/rnglists-sec-offset.exp: Add test for
	.debug_rnglists table without offset array.
	* gdb.dwarf2/loclists-sec-offset.exp: Add test for
	.debug_loclists table without offset array.

Change-Id: I8e34a7bf68c9682215ffbbf66600da5b7db91ef7
2021-02-02 10:42:12 -05:00
..
ada.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
append_gdb_boards_dir.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
attributes.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
build-piece.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cache.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
check-test-names.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cl_util.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cl_util.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compiler.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compiler.cc Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
completion-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cp-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
d-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
data-structures.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dtrace.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dwarf.exp gdb/testsuite: add test for .debug_{rng,loc}lists section without offset array 2021-02-02 10:42:12 -05:00
fortran.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
future.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gdb-guile.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gdb-python.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gdb-utils.exp gdb: add new version style 2021-01-22 19:09:31 +00:00
gdb.exp gdb/testsuite: unset XDG_CONFIG_HOME 2021-01-28 10:05:33 +00:00
gdbserver-support.exp Handle additional connection error 2021-01-21 17:18:23 -03:00
gen-perf-test.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gnat_debug_info_test.adb
go.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
jit-elf-helpers.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
memory.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-support.exp gdb/testsuite: eliminate gdb_suppress_tests mechanism 2021-01-22 15:42:36 -05:00
my-syscalls.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
my-syscalls.S Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
objc.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
opencl_hostapp.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
opencl_kernel.cl
opencl.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
pascal.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
pdtrace.in Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
perftest.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
prelink-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
prompt.exp gdb/testsuite: eliminate gdb_suppress_tests mechanism 2021-01-22 15:42:36 -05:00
range-stepping-support.exp gdb: add remote_debug_printf 2021-01-22 12:43:27 -05:00
read1.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
rust-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
selftest-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
set_unbuffered_mode.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sym-info-cmds.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
trace-support.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tuiterm.exp gdb/testsuite: improve logging in lib/tuiterm.exp 2021-01-21 14:04:00 -05:00
unbuffer_output.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
valgrind.exp Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00