GNU Binutils with patches for OS216
Revisão | bf90c83acca6736f451807d3e231b53dc02bc57b (tree) |
---|---|
Hora | 2020-07-03 23:00:08 |
Autor | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
Fix gdb.base/charset.exp with Clang
gdb.base/charset.exp fails to run with Clang, because of:
11, 162, 17);
167,
167,
=== gdb Summary ===
Fix it by changing init_string to take unsigned char parameters.
gdb/testsuite/ChangeLog:
* gdb.base/charset.c (init_string): Change all char parameters to
unsigned char parameters.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2020-07-03 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * gdb.base/charset.c (init_string): Change all char parameters to | |
4 | + unsigned char parameters. | |
5 | + | |
6 | +2020-07-03 Pedro Alves <palves@redhat.com> | |
7 | + | |
3 | 8 | * gdb.base/call-sc.exp (start_scalars_test): Use |
4 | 9 | prepare_for_testing and don't try compiling with -DNO_PROTOTYPES. |
5 | 10 | * gdb.base/overlays.c: Remove references to PARAMS. |
@@ -77,12 +77,21 @@ short short_array[3]; | ||
77 | 77 | int int_array[3]; |
78 | 78 | long long_array[3]; |
79 | 79 | |
80 | +/* These are unsigned char so we can pass down characters >127 without | |
81 | + explicit casts or warnings. */ | |
82 | + | |
80 | 83 | void |
81 | 84 | init_string (char string[], |
82 | - char x, | |
83 | - char alert, char backspace, char form_feed, | |
84 | - char line_feed, char carriage_return, char horizontal_tab, | |
85 | - char vertical_tab, char cent, char misc_ctrl) | |
85 | + unsigned char x, | |
86 | + unsigned char alert, | |
87 | + unsigned char backspace, | |
88 | + unsigned char form_feed, | |
89 | + unsigned char line_feed, | |
90 | + unsigned char carriage_return, | |
91 | + unsigned char horizontal_tab, | |
92 | + unsigned char vertical_tab, | |
93 | + unsigned char cent, | |
94 | + unsigned char misc_ctrl) | |
86 | 95 | { |
87 | 96 | int i; |
88 | 97 |