GNU Binutils with patches for OS216
修订版 | 3c8ea5be24ecc76600b6cea36240449a84c0fc22 (tree) |
---|---|
时间 | 2020-07-03 23:01:22 |
作者 | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
Fix gdb.base/structs2.exp with Clang
gdb.base/structs2.exp fails to run with Clang, because of:
=== gdb Summary ===
Fix it by passing actual negative numbers.
gdb/testsuite/ChangeLog:
* gdb.base/structs2.c (main): Adjust second parem_reg call to
explicitly write negative numbers.
* gdb.base/structs2.exp: Adjust expected output.
@@ -1,5 +1,11 @@ | ||
1 | 1 | 2020-07-03 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * gdb.base/structs2.c (main): Adjust second parem_reg call to | |
4 | + explicitly write negative numbers. | |
5 | + * gdb.base/structs2.exp: Adjust expected output. | |
6 | + | |
7 | +2020-07-03 Pedro Alves <palves@redhat.com> | |
8 | + | |
3 | 9 | * gdb.base/charset.c (init_string): Change all char parameters to |
4 | 10 | unsigned char parameters. |
5 | 11 |
@@ -13,7 +13,7 @@ main () | ||
13 | 13 | |
14 | 14 | bkpt = 0; |
15 | 15 | param_reg (120, 130, 32000, 33000); |
16 | - param_reg (130, 120, 33000, 32000); | |
16 | + param_reg (-120, 130, -32000, 33000); | |
17 | 17 | |
18 | 18 | return 0; |
19 | 19 | } |
@@ -49,5 +49,5 @@ if [test_compiler_info gcc-3-*] { | ||
49 | 49 | setup_xfail hppa*-* gcc/15860 |
50 | 50 | } |
51 | 51 | gdb_test "continue" \ |
52 | - ".*pr_char=-126.*pr_uchar=120.*pr_short=-32536.*pr_ushort=32000.*bkpt = 1.*" \ | |
52 | + ".*pr_char=-120.*pr_uchar=130.*pr_short=-32000.*pr_ushort=33000.*bkpt = 1.*" \ | |
53 | 53 | "structs2 continue2" |