Skip to content

Commit dd0d8a1

Browse files
committed
Update type names in baselines after recent GDB improvements
GDB now exposes decoded type names through the Python API (foo.bar instead of foo__bar): update baselines in relevant tests accordingly. Change-Id: I1b3b75dcbeb766ee6bcffd695f6771a4f3930aa1 TN: N224-026
1 parent 06ae420 commit dd0d8a1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

testsuite/tests/matchers/debug/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
gdb.test('source script.py', """\
1010
Debug: mismatch:
11-
Struct(2 fields) <-> TYPE_CODE_STRUCT (name=foo__my_record, 2 fields)
11+
Struct(2 fields) <-> TYPE_CODE_STRUCT (name=foo.my_record, 2 fields)
1212
Field(name=n) <-> n
1313
TypeName(name=natural) <-> TYPE_CODE_RANGE\
1414
(name=positive@/(___XDLU_1__.*)?/)""")

testsuite/tests/misc/print-gdb-type-tree/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
gdb.test('dbgtype i', '%0 (integer : TYPE_CODE_INT) (4 bytes)')
1313

14-
gdb.test('dbgtype l', '%0 (foo__linked_list : TYPE_CODE_TYPEDEF):'
14+
gdb.test('dbgtype l', '%0 (foo.linked_list : TYPE_CODE_TYPEDEF):'
1515
' %1 (None : TYPE_CODE_PTR):'
16-
' %2 (foo__linked_list_record : TYPE_CODE_STRUCT):'
16+
' %2 (foo.linked_list_record : TYPE_CODE_STRUCT):'
1717
' value: %3 (integer : TYPE_CODE_INT) (4 bytes)'
18-
' next: %0 (foo__linked_list : TYPE_CODE_TYPEDEF)')
18+
' next: %0 (foo.linked_list : TYPE_CODE_TYPEDEF)')
1919

2020
gdb.test('dbgtype s', '%0 (foo__TsS : TYPE_CODE_ARRAY)[1 .. 13]:'
2121
' %1 (character : TYPE_CODE_CHAR)')

testsuite/tests/strings/string-accesses/test.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
gdb.test('set corrupted_string.P_ARRAY = 0x1', '')
1212
gdb.test('set lang auto', '')
1313

14-
gdb.print_expr('null_string', '(foo__string_access) 0x0 [Invalid]')
15-
gdb.print_expr('empty_string', '(foo__string_access) @ADDRESS ""')
16-
gdb.print_expr('some_string', '(foo__string_access) @ADDRESS "Hello, world!"')
14+
gdb.print_expr('null_string', '(foo.string_access) 0x0 [Invalid]')
15+
gdb.print_expr('empty_string', '(foo.string_access) @ADDRESS ""')
16+
gdb.print_expr('some_string', '(foo.string_access) @ADDRESS "Hello, world!"')
1717
gdb.print_expr('binary_string',
18-
'(foo__string_access) @ADDRESS "b["00"]""["ff"]"')
18+
'(foo.string_access) @ADDRESS "b["00"]""["ff"]"')
1919
gdb.print_expr('wstring',
20-
'(foo__wstring_access) @ADDRESS "wide string"')
20+
'(foo.wstring_access) @ADDRESS "wide string"')
2121
gdb.print_expr('wwstring',
22-
'(foo__wwstring_access) @ADDRESS "wide wide string"')
23-
gdb.print_expr('corrupted_string', '(foo__string_access) 0x1 [Invalid]')
22+
'(foo.wwstring_access) @ADDRESS "wide wide string"')
23+
gdb.print_expr('corrupted_string', '(foo.string_access) 0x1 [Invalid]')
2424

2525
gdb.test('python'
2626
' i = gdb.parse_and_eval("i");'

0 commit comments

Comments
 (0)