[binutils-gdb] gdb/testsuite: Allow DWARF assembler to create multiple line tables
Andrew Burgess
aburgess@sourceware.org
Mon Jan 13 23:58:00 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d93c6db74b7a9d6154f55f92d96f38819838bc99
commit d93c6db74b7a9d6154f55f92d96f38819838bc99
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date: Fri Dec 6 21:35:18 2019 +0000
gdb/testsuite: Allow DWARF assembler to create multiple line tables
Fixes a bug in the DWARF assembler that prevents multiple line tables
from being created in a test. We currently don't initialise a couple
of flags, as a result we will only ever generate one end of file list,
and one end of header, in the first line table. Any additional line
tables will be missing these parts, and will therefore be corrupt.
This fix will be required for a later commit. There should be no
change in the testsuite after this commit.
gdb/testsuite/ChangeLog:
* lib/dwarf.exp (Dwarf::lines): Reset _line_saw_program and
_line_saw_file.
Change-Id: Id7123f217a036f26ee32d608db3064dd43164596
Diff:
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/lib/dwarf.exp | 2 ++
2 files changed, 7 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 10d7cbe..4209c57 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
+ * lib/dwarf.exp (Dwarf::lines): Reset _line_saw_program and
+ _line_saw_file.
+
+2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
+
* lib/tuiterm.exp (Term::_check_box): Check some parts of the top
border.
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index da9763e..6c6ffbe 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -1309,6 +1309,8 @@ namespace eval Dwarf {
set is_64 0
set _unit_version 4
set _unit_addr_size default
+ set _line_saw_program 0
+ set _line_saw_file 0
foreach { name value } $options {
switch -exact -- $name {
More information about the Gdb-cvs
mailing list