Commit | Line | Data |
---|---|---|
75f9892d TT |
1 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * expop.h (gen_expr_binop, gen_expr_structop): Declare. | |
4 | * ax-gdb.c (gen_expr_binop): New function. | |
5 | (gen_expr_structop): Likewise. | |
6 | ||
de401988 TT |
7 | 2021-03-08 Tom Tromey <tom@tromey.com> |
8 | ||
9 | * expprint.c (expr::dump_for_expression): New functions. | |
10 | * expop.h (dump_for_expression): New overloads. | |
11 | (tuple_holding_operation::dump, tuple_holding_operation::do_dump): | |
12 | Update. | |
13 | ||
e2803273 TT |
14 | 2021-03-08 Tom Tromey <tom@tromey.com> |
15 | ||
16 | * expression.h (expr::operation): New class. | |
17 | (expr::make_operation): New function. | |
18 | (expr::operation_up): New typedef. | |
19 | * expop.h: New file. | |
20 | * eval.c (operation::evaluate_for_cast) | |
21 | (operation::evaluate_for_address, operation::evaluate_for_sizeof): | |
22 | New methods. | |
23 | * ax-gdb.c (operation::generate_ax): New method. | |
24 | ||
e18c58f2 TT |
25 | 2021-03-08 Tom Tromey <tom@tromey.com> |
26 | ||
27 | * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter. | |
28 | (gen_expr_binop_rest): New overload. | |
29 | ||
c0d7ed8c TT |
30 | 2021-03-08 Tom Tromey <tom@tromey.com> |
31 | ||
32 | * eval.c (eval_multi_subscript): New function. | |
33 | (evaluate_subexp_standard): Use it. | |
34 | ||
dd5fd283 TT |
35 | 2021-03-08 Tom Tromey <tom@tromey.com> |
36 | ||
37 | * ada-lang.c (ada_binop_exp): New function. | |
38 | (ada_evaluate_subexp): Use it. | |
39 | ||
3848abd6 TT |
40 | 2021-03-08 Tom Tromey <tom@tromey.com> |
41 | ||
42 | * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change | |
43 | parameters. | |
44 | (ada_evaluate_subexp): Use it. | |
45 | ||
38dc70cf TT |
46 | 2021-03-08 Tom Tromey <tom@tromey.com> |
47 | ||
48 | * ada-lang.c (ada_binop_minmax): New function. | |
49 | (ada_evaluate_subexp): Use it. | |
50 | ||
b84564fc TT |
51 | 2021-03-08 Tom Tromey <tom@tromey.com> |
52 | ||
53 | * ada-lang.c (ada_unop_atr): New function. | |
54 | (ada_evaluate_subexp): Use it. | |
55 | ||
b467efaa TT |
56 | 2021-03-08 Tom Tromey <tom@tromey.com> |
57 | ||
58 | * ada-lang.c (ada_binop_in_bounds): New function. | |
59 | (ada_evaluate_subexp): Use it. | |
60 | ||
5ce19db8 TT |
61 | 2021-03-08 Tom Tromey <tom@tromey.com> |
62 | ||
63 | * ada-lang.c (ada_ternop_slice): New function. | |
64 | (ada_evaluate_subexp): Use it. | |
65 | ||
214b13ac TT |
66 | 2021-03-08 Tom Tromey <tom@tromey.com> |
67 | ||
68 | * ada-lang.c (ada_equal_binop): New function. | |
69 | (ada_evaluate_subexp): Use it. | |
70 | ||
faa1dfd7 TT |
71 | 2021-03-08 Tom Tromey <tom@tromey.com> |
72 | ||
73 | * ada-lang.c (ada_mult_binop): New function. | |
74 | (ada_evaluate_subexp): Use it. | |
75 | ||
d05e24e6 TT |
76 | 2021-03-08 Tom Tromey <tom@tromey.com> |
77 | ||
78 | * ada-lang.c (ada_abs): New function. | |
79 | (ada_evaluate_subexp): Use it. | |
80 | ||
68c75735 TT |
81 | 2021-03-08 Tom Tromey <tom@tromey.com> |
82 | ||
83 | * ada-lang.c (ada_atr_size): New function. | |
84 | (ada_evaluate_subexp): Use it. | |
85 | ||
020dbabe TT |
86 | 2021-03-08 Tom Tromey <tom@tromey.com> |
87 | ||
88 | * ada-lang.c (ada_atr_tag): New function. | |
89 | (ada_evaluate_subexp): Use it. | |
90 | ||
7efc87ff TT |
91 | 2021-03-08 Tom Tromey <tom@tromey.com> |
92 | ||
93 | * ada-lang.c (ada_unop_in_range): New function. | |
94 | (ada_evaluate_subexp): Use it. | |
95 | ||
82390ab8 TT |
96 | 2021-03-08 Tom Tromey <tom@tromey.com> |
97 | ||
98 | * ada-lang.c (ada_unop_neg): New function. | |
99 | (ada_evaluate_subexp): Use it. | |
100 | ||
62d4bd94 TT |
101 | 2021-03-08 Tom Tromey <tom@tromey.com> |
102 | ||
103 | * ada-lang.c (eval_ternop_in_range): New function. | |
104 | (ada_evaluate_subexp): Use it. | |
105 | ||
3634f669 TT |
106 | 2021-03-08 Tom Tromey <tom@tromey.com> |
107 | ||
108 | * opencl-lang.c (eval_opencl_assign): New function. | |
109 | (evaluate_subexp_opencl): Use it. | |
110 | ||
5e80600e TT |
111 | 2021-03-08 Tom Tromey <tom@tromey.com> |
112 | ||
113 | * eval.c (eval_op_objc_msgcall): New function. | |
114 | (evaluate_subexp_standard): Use it. | |
115 | ||
fb5ba2ab TT |
116 | 2021-03-08 Tom Tromey <tom@tromey.com> |
117 | ||
118 | * eval.c (eval_binop_assign_modify): New function. | |
119 | (evaluate_subexp_standard): Use it. | |
120 | ||
a49881f7 TT |
121 | 2021-03-08 Tom Tromey <tom@tromey.com> |
122 | ||
123 | * m2-lang.c (eval_op_m2_subscript): New function. | |
124 | (evaluate_subexp_modula2): Use it. | |
125 | ||
41bdced5 TT |
126 | 2021-03-08 Tom Tromey <tom@tromey.com> |
127 | ||
128 | * m2-lang.c (eval_op_m2_high): New function. | |
129 | (evaluate_subexp_modula2): Use it. | |
130 | ||
13ea014a TT |
131 | 2021-03-08 Tom Tromey <tom@tromey.com> |
132 | ||
133 | * eval.c (evaluate_subexp_for_address_base): New function. | |
134 | (evaluate_subexp_for_address): Use it. | |
135 | (evaluate_subexp_for_sizeof_base): New function. | |
136 | (evaluate_subexp_for_sizeof): Use it. | |
137 | ||
1fa41fc7 TT |
138 | 2021-03-08 Tom Tromey <tom@tromey.com> |
139 | ||
140 | * rust-lang.c (eval_op_rust_structop): New function. | |
141 | (rust_evaluate_subexp): Use it. | |
142 | ||
575cae23 TT |
143 | 2021-03-08 Tom Tromey <tom@tromey.com> |
144 | ||
145 | * rust-lang.c (eval_op_rust_struct_anon): New function. | |
146 | (rust_evaluate_subexp): Use it. | |
147 | ||
05104233 TT |
148 | 2021-03-08 Tom Tromey <tom@tromey.com> |
149 | ||
150 | * rust-lang.c (eval_op_rust_array): New function. | |
151 | (rust_evaluate_subexp): Use it. | |
152 | ||
6fa9831f TT |
153 | 2021-03-08 Tom Tromey <tom@tromey.com> |
154 | ||
155 | * rust-lang.c (eval_op_rust_complement): New function. | |
156 | (rust_evaluate_subexp): Use it. | |
157 | ||
d123f9e4 TT |
158 | 2021-03-08 Tom Tromey <tom@tromey.com> |
159 | ||
160 | * rust-lang.c (eval_op_rust_ind): New function. | |
161 | (rust_evaluate_subexp): Use it. | |
162 | ||
984af2cb TT |
163 | 2021-03-08 Tom Tromey <tom@tromey.com> |
164 | ||
165 | * rust-lang.c (rust_subscript): Change parameters. | |
166 | (rust_evaluate_subexp): Update. | |
167 | ||
d148f803 TT |
168 | 2021-03-08 Tom Tromey <tom@tromey.com> |
169 | ||
170 | * rust-lang.c (rust_range): Change parameters. | |
171 | (rust_evaluate_subexp): Update. | |
172 | ||
9cbd1c20 TT |
173 | 2021-03-08 Tom Tromey <tom@tromey.com> |
174 | ||
175 | * f-lang.c (eval_op_f_allocated): New function. | |
176 | (evaluate_subexp_f): Use it. | |
177 | ||
3c18c49c TT |
178 | 2021-03-08 Tom Tromey <tom@tromey.com> |
179 | ||
180 | * f-lang.c (fortran_require_array): New function. | |
181 | (evaluate_subexp_f): Use it. | |
182 | ||
216f6fcb TT |
183 | 2021-03-08 Tom Tromey <tom@tromey.com> |
184 | ||
185 | * f-lang.c (eval_op_f_kind): New function. | |
186 | (evaluate_subexp_f): Use it. | |
187 | ||
00f2db6f TT |
188 | 2021-03-08 Tom Tromey <tom@tromey.com> |
189 | ||
190 | * f-lang.c (eval_op_f_cmplx): New function. | |
191 | (evaluate_subexp_f): Use it. | |
192 | ||
93b2b5fa TT |
193 | 2021-03-08 Tom Tromey <tom@tromey.com> |
194 | ||
195 | * f-lang.c (eval_op_f_modulo): New function. | |
196 | (evaluate_subexp_f): Use it. | |
197 | ||
9f1a1f3c TT |
198 | 2021-03-08 Tom Tromey <tom@tromey.com> |
199 | ||
200 | * f-lang.c (eval_op_f_floor): New function. | |
201 | (evaluate_subexp_f): Use it. | |
202 | ||
3dc41f3c TT |
203 | 2021-03-08 Tom Tromey <tom@tromey.com> |
204 | ||
205 | * f-lang.c (eval_op_f_ceil): New function. | |
206 | (evaluate_subexp_f): Use it. | |
207 | ||
e08109f2 TT |
208 | 2021-03-08 Tom Tromey <tom@tromey.com> |
209 | ||
210 | * f-lang.c (eval_op_f_mod): New function. | |
211 | (evaluate_subexp_f): Use it. | |
212 | ||
cc05c68e TT |
213 | 2021-03-08 Tom Tromey <tom@tromey.com> |
214 | ||
215 | * f-lang.c (eval_op_f_abs): New function. | |
216 | (evaluate_subexp_f): Use it. | |
217 | ||
aec95807 TT |
218 | 2021-03-08 Tom Tromey <tom@tromey.com> |
219 | ||
220 | * eval.c (eval_op_type): New function. | |
221 | (evaluate_subexp_standard): Use it. | |
222 | ||
a220ead5 TT |
223 | 2021-03-08 Tom Tromey <tom@tromey.com> |
224 | ||
225 | * eval.c (eval_op_postdec): New function. | |
226 | (evaluate_subexp_standard): Use it. | |
227 | ||
abffe116 TT |
228 | 2021-03-08 Tom Tromey <tom@tromey.com> |
229 | ||
230 | * eval.c (eval_op_postinc): New function. | |
231 | (evaluate_subexp_standard): Use it. | |
232 | ||
9e1361b7 TT |
233 | 2021-03-08 Tom Tromey <tom@tromey.com> |
234 | ||
235 | * eval.c (eval_op_predec): New file. | |
236 | (evaluate_subexp_standard): Use it. | |
237 | ||
00f50884 TT |
238 | 2021-03-08 Tom Tromey <tom@tromey.com> |
239 | ||
240 | * eval.c (eval_op_preinc): New function. | |
241 | (evaluate_subexp_standard): Use it. | |
242 | ||
3aef2a07 TT |
243 | 2021-03-08 Tom Tromey <tom@tromey.com> |
244 | ||
245 | * eval.c (eval_op_memval): New function. | |
246 | (evaluate_subexp_standard): Use it. | |
247 | ||
acee9468 TT |
248 | 2021-03-08 Tom Tromey <tom@tromey.com> |
249 | ||
250 | * eval.c (eval_op_alignof): New function. | |
251 | (evaluate_subexp_standard): Use it. | |
252 | ||
786f70ee TT |
253 | 2021-03-08 Tom Tromey <tom@tromey.com> |
254 | ||
255 | * eval.c (eval_op_ind): New function. | |
256 | (evaluate_subexp_standard): Use it. | |
257 | ||
24338fb9 TT |
258 | 2021-03-08 Tom Tromey <tom@tromey.com> |
259 | ||
260 | * eval.c (eval_op_lognot): New function. | |
261 | (evaluate_subexp_standard): Use it. | |
262 | ||
1f09ec81 TT |
263 | 2021-03-08 Tom Tromey <tom@tromey.com> |
264 | ||
265 | * eval.c (eval_op_complement): New function. | |
266 | (evaluate_subexp_standard): Use it. | |
267 | ||
606d105f TT |
268 | 2021-03-08 Tom Tromey <tom@tromey.com> |
269 | ||
270 | * eval.c (eval_op_neg): New function. | |
271 | (evaluate_subexp_standard): Use it. | |
272 | ||
39f288be TT |
273 | 2021-03-08 Tom Tromey <tom@tromey.com> |
274 | ||
275 | * eval.c (eval_op_plus): New function. | |
276 | (evaluate_subexp_standard): Use it. | |
277 | ||
eed70b1c TT |
278 | 2021-03-08 Tom Tromey <tom@tromey.com> |
279 | ||
280 | * eval.c (eval_op_repeat): New function. | |
281 | (evaluate_subexp_standard): Use it. | |
282 | ||
60cdd487 TT |
283 | 2021-03-08 Tom Tromey <tom@tromey.com> |
284 | ||
285 | * eval.c (eval_op_leq): New function. | |
286 | (evaluate_subexp_standard): Use it. | |
287 | ||
96e3efd9 TT |
288 | 2021-03-08 Tom Tromey <tom@tromey.com> |
289 | ||
290 | * eval.c (eval_op_geq): New function. | |
291 | (evaluate_subexp_standard): Use it. | |
292 | ||
1f78d732 TT |
293 | 2021-03-08 Tom Tromey <tom@tromey.com> |
294 | ||
295 | * eval.c (eval_op_gtr): New function. | |
296 | (evaluate_subexp_standard): Use it. | |
297 | ||
6cad1349 TT |
298 | 2021-03-08 Tom Tromey <tom@tromey.com> |
299 | ||
300 | * eval.c (eval_op_less): New function. | |
301 | (evaluate_subexp_standard): Use it. | |
302 | ||
1fcb3559 TT |
303 | 2021-03-08 Tom Tromey <tom@tromey.com> |
304 | ||
305 | * eval.c (eval_op_notequal): New function. | |
306 | (evaluate_subexp_standard): Use it. | |
307 | ||
0cc96de8 TT |
308 | 2021-03-08 Tom Tromey <tom@tromey.com> |
309 | ||
310 | * eval.c (eval_op_equal): New function. | |
311 | (evaluate_subexp_standard): Use it. | |
312 | ||
288d26bc TT |
313 | 2021-03-08 Tom Tromey <tom@tromey.com> |
314 | ||
315 | * eval.c (eval_op_subscript): New function. | |
316 | (evaluate_subexp_standard): Use it. | |
317 | ||
7cdcdd02 TT |
318 | 2021-03-08 Tom Tromey <tom@tromey.com> |
319 | ||
320 | * eval.c (eval_op_binary): New function. | |
321 | (evaluate_subexp_standard): Use it. | |
322 | ||
d9790e22 TT |
323 | 2021-03-08 Tom Tromey <tom@tromey.com> |
324 | ||
325 | * eval.c (eval_op_sub): New function. | |
326 | (evaluate_subexp_standard): Use it. | |
327 | ||
aedaf9ac TT |
328 | 2021-03-08 Tom Tromey <tom@tromey.com> |
329 | ||
330 | * eval.c (eval_op_add): New function. | |
331 | (evaluate_subexp_standard): Use it. | |
332 | ||
b7a96ed2 TT |
333 | 2021-03-08 Tom Tromey <tom@tromey.com> |
334 | ||
335 | * eval.c (eval_op_member): New function. | |
336 | (evaluate_subexp_standard): Use it. | |
337 | ||
fb461aa3 TT |
338 | 2021-03-08 Tom Tromey <tom@tromey.com> |
339 | ||
340 | * eval.c (eval_op_structop_ptr): New function. | |
341 | (evaluate_subexp_standard): Use it. | |
342 | ||
3e96c4fc TT |
343 | 2021-03-08 Tom Tromey <tom@tromey.com> |
344 | ||
345 | * eval.c (eval_op_structop_struct): New function. | |
346 | (evaluate_subexp_standard): Use it. | |
347 | ||
f960a617 TT |
348 | 2021-03-08 Tom Tromey <tom@tromey.com> |
349 | ||
350 | * eval.c (eval_op_ternop): New function. | |
351 | (evaluate_subexp_standard): Use it. | |
352 | ||
5c2f201e TT |
353 | 2021-03-08 Tom Tromey <tom@tromey.com> |
354 | ||
355 | * eval.c (eval_op_concat): New function. | |
356 | (evaluate_subexp_standard): Use it. | |
357 | ||
f871bae1 TT |
358 | 2021-03-08 Tom Tromey <tom@tromey.com> |
359 | ||
360 | * eval.c (eval_op_objc_selector): New function. | |
361 | (evaluate_subexp_standard): Use it. | |
362 | ||
14a1c64a TT |
363 | 2021-03-08 Tom Tromey <tom@tromey.com> |
364 | ||
365 | * eval.c (eval_op_string): New function. | |
366 | (evaluate_subexp_standard): Use it. | |
367 | ||
ffff730b TT |
368 | 2021-03-08 Tom Tromey <tom@tromey.com> |
369 | ||
370 | * eval.c (eval_op_register): New function. | |
371 | (evaluate_subexp_standard): Use it. | |
372 | ||
9b1d8af6 TT |
373 | 2021-03-08 Tom Tromey <tom@tromey.com> |
374 | ||
375 | * eval.c (eval_op_func_static_var): New function. | |
376 | (evaluate_subexp_standard): Use it. | |
377 | ||
c0df9289 TT |
378 | 2021-03-08 Tom Tromey <tom@tromey.com> |
379 | ||
380 | * eval.c (eval_op_var_msym_value): New function. | |
381 | (evaluate_subexp_standard): Use it. | |
382 | ||
50b98adc TT |
383 | 2021-03-08 Tom Tromey <tom@tromey.com> |
384 | ||
385 | * eval.c (eval_op_var_entry_value): New function. | |
386 | (evaluate_subexp_standard): Use it. | |
387 | ||
ea2d29f7 TT |
388 | 2021-03-08 Tom Tromey <tom@tromey.com> |
389 | ||
390 | * eval.c (eval_op_scope): New function. | |
391 | (evaluate_subexp_standard): Use it. | |
392 | ||
01573d73 TT |
393 | 2021-03-06 Chernov Sergey <klen_s@mail.ru> |
394 | ||
395 | PR gdb/27528: | |
396 | * ada-lang.c (ada_fold_name): Use gdb::to_string. | |
397 | ||
9938d15a TT |
398 | 2021-03-06 Tom Tromey <tom@tromey.com> |
399 | ||
400 | * dwarf2/sect-names.h (dwarf2_elf_names): Declare. | |
401 | * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h. | |
402 | * dwarf2/read.c (dwarf2_elf_names): No longer static. | |
403 | (locate_dwz_sections, dwz_search_other_debugdirs) | |
404 | (dwarf2_get_dwz_file): Move to dwz.c. | |
405 | * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from | |
406 | read.h. | |
407 | * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs) | |
408 | (dwarf2_get_dwz_file): Move from read.c. | |
409 | ||
18035655 TT |
410 | 2021-03-06 Tom Tromey <tom@tromey.com> |
411 | ||
412 | * debuginfod-support.h: Include scoped_fd.h. | |
413 | ||
a7308ce0 TT |
414 | 2021-03-06 Tom Tromey <tom@tromey.com> |
415 | ||
416 | * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter. | |
417 | * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter. | |
418 | (get_abbrev_section_for_cu, read_attribute_value) | |
419 | (get_debug_line_section): Update. | |
420 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
421 | ||
fbedd546 TT |
422 | 2021-03-06 Tom Tromey <tom@tromey.com> |
423 | ||
424 | * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New | |
425 | method. | |
426 | * dwarf2/read.c (section_is_p): Remove. | |
427 | (dwarf2_per_bfd::locate_sections) | |
428 | (dwarf2_per_bfd::locate_sections, locate_dwz_sections) | |
429 | (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections) | |
430 | (dwarf2_locate_common_dwp_sections) | |
431 | (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections): | |
432 | Update. | |
433 | ||
c2a62a3d TT |
434 | 2021-03-06 Tom Tromey <tom@tromey.com> |
435 | ||
436 | * xcoffread.c: Include sect-names.h. | |
437 | * symfile.h (struct dwarf2_section_names, struct | |
438 | dwarf2_debug_sections): Move to dwarf2/sect-names.h. | |
439 | * dwarf2/sect-names.h: New file, from symfile.h. | |
440 | * dwarf2/read.c: Include sect-names.h. | |
441 | ||
4444f407 TT |
442 | 2021-03-06 Tom Tromey <tom@tromey.com> |
443 | ||
444 | * dwarf2/read.c (read_attribute): Make 'abbrev' const. | |
445 | * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove. | |
446 | (abbrev_table::read): Update. | |
447 | * dwarf2/abbrev.h (struct attr_abbrev): Move earlier. | |
448 | (struct abbrev_info): Reformat. | |
449 | <attrs>: Now an array. | |
450 | (struct abbrev_table) <alloc_abbrev>: Remove. | |
451 | ||
dd99cf0c WP |
452 | 2021-03-06 Weimin Pan <weimin.pan@oracle.com> |
453 | ||
454 | * ctfread.c (ctf_psymtab_add_enums): New function. | |
455 | (ctf_psymtab_type_cb): call ctf_psymtab_add_enums. | |
456 | ||
844be3f2 WP |
457 | 2021-03-06 Weimin Pan <weimin.pan@oracle.com> |
458 | ||
459 | * ctfread.c (read_func_kind_type): Set up function arguments. | |
460 | ||
b2668f28 AB |
461 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
462 | Andrew Burgess <andrew.burgess@embecosm.com> | |
463 | ||
464 | * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h' | |
465 | includes. | |
466 | (riscv_csrset): New static global. | |
467 | (riscv_update_csrmap): New function. | |
468 | (riscv_iterate_over_regset_sections): Process CSRs. | |
469 | ||
d782d24b AB |
470 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
471 | ||
472 | * riscv-tdep.c (riscv_feature_name_csr): Define. | |
473 | (riscv_feature_name_cpu): Define. | |
474 | (riscv_feature_name_fpu): Define. | |
475 | (riscv_feature_name_virtual): Define. | |
476 | (riscv_xreg_feature): Use riscv_feature_name_cpu. | |
477 | (riscv_freg_feature): Use riscv_feature_name_fpu. | |
478 | (riscv_virtual_feature): Use riscv_feature_name_virtual. | |
479 | (riscv_csr_feature): Use riscv_feature_name_csr. | |
480 | * riscv-tdep.h (riscv_feature_name_csr): Declare. | |
481 | ||
fb8f3fc0 AB |
482 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
483 | Craig Blackmore <craig.blackmore@embecosm.com> | |
484 | ||
485 | * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o. | |
486 | (ALLDEPFILES): Add riscv-none-tdep.c. | |
487 | * configure: Regenerate. | |
488 | * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF | |
489 | support. | |
490 | * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c. | |
491 | * elf-none-tdep.c: New file. | |
492 | * elf-none-tdep.h: New file. | |
493 | * riscv-none-tdep.c: New file. | |
494 | ||
95ce627a AB |
495 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
496 | Andrew Burgess <andrew.burgess@embecosm.com> | |
497 | ||
498 | * corelow.c: Add 'xml-tdesc.h' include. | |
499 | (core_target::read_description): Load the target description from | |
500 | the core file when possible. | |
501 | * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description | |
502 | note. | |
503 | * gcore-elf.c: Add 'gdbsupport/tdesc.h' include. | |
504 | (gcore_elf_make_tdesc_note): New function. | |
505 | * gcore-elf.h (gcore_elf_make_tdesc_note): Declare. | |
506 | * linux-tdep.c (linux_make_corefile_notes): Add target description | |
507 | note. | |
508 | ||
f3a5df7b AB |
509 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
510 | ||
511 | * Makefile.in (SFILES): Add gcore-elf.c. | |
512 | (HFILES_NO_SRCDIR): Add gcore-elf.h | |
513 | * configure: Regenerate. | |
514 | * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF | |
515 | support. | |
516 | * fbsd-tdep.c: Add 'gcore-elf.h' include. | |
517 | (struct fbsd_collect_regset_section_cb_data): Delete. | |
518 | (fbsd_collect_regset_section_cb): Delete. | |
519 | (fbsd_collect_thread_registers): Delete. | |
520 | (struct fbsd_corefile_thread_data): Delete. | |
521 | (fbsd_corefile_thread): Delete. | |
522 | (fbsd_make_corefile_notes): Call | |
523 | gcore_elf_build_thread_register_notes instead of the now deleted | |
524 | FreeBSD code. | |
525 | * gcore-elf.c: New file, the content was moved here from | |
526 | linux-tdep.c, functions were renamed and given minor cleanup. | |
527 | * gcore-elf.h: New file. | |
528 | * gcore.c (gcore_find_signalled_thread): Moved here from | |
529 | linux-tdep.c and given a new name. Minor cleanups. | |
530 | * gcore.h (gcore_find_signalled_thread): Declare. | |
531 | * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes. | |
532 | (struct linux_collect_regset_section_cb_data): Delete. | |
533 | (linux_collect_regset_section_cb): Delete. | |
534 | (linux_collect_thread_registers): Delete. | |
535 | (linux_corefile_thread): Call | |
536 | gcore_elf_build_thread_register_notes. | |
537 | (find_signalled_thread): Delete. | |
538 | (linux_make_corefile_notes): Call gcore_find_signalled_thread. | |
539 | ||
d1e93af6 SM |
540 | 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
541 | ||
542 | PR gdb/27147 | |
543 | * sparc-nat.h (sparc_fetch_inferior_registers): Add | |
544 | process_stratum_target parameter, | |
545 | sparc_store_inferior_registers): update callers. | |
546 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
547 | sparc_store_inferior_registers): Add process_stratum_target | |
548 | parameter. Switch current thread before calling | |
549 | sparc_supply_gregset / sparc_collect_rwindow. | |
550 | (sparc_store_inferior_registers): Likewise. | |
551 | * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion. | |
552 | (sparc32obsd_collect_uthread): Likewise. | |
553 | * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): | |
554 | Add assertion. | |
555 | * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread, | |
556 | sparc64obsd_supply_uthread): Add assertion. | |
557 | ||
1178743e TT |
558 | 2021-03-04 Tom Tromey <tromey@adacore.com> |
559 | ||
560 | * ada-lang.c (struct match_data) <found_sym>: Now bool. | |
561 | (aux_add_nonlocal_symbols): Update. | |
562 | (ada_add_block_symbols): Change "found_sym" to bool. | |
563 | ||
1bfa81ac TT |
564 | 2021-03-03 Tom Tromey <tromey@adacore.com> |
565 | ||
566 | * ada-lang.c (ada_resolve_function): Update comment. | |
567 | (is_nonfunction, add_symbols_from_enclosing_procs) | |
568 | (remove_extra_symbols): Likewise. | |
569 | (struct match_data): Add constructor, initializers. | |
570 | (add_nonlocal_symbols): Remove memset. | |
571 | (aux_add_nonlocal_symbols): Update comment. | |
572 | (ada_add_block_renamings, add_nonlocal_symbols) | |
573 | (ada_add_all_symbols): Likewise. | |
574 | * ada-exp.y (write_var_or_type): Clean up trailing whitespace. | |
575 | ||
bbcdf9ab TT |
576 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
577 | ||
578 | * ada-lang.c (cast_from_gnat_encoded_fixed_point_type) | |
579 | (cast_to_gnat_encoded_fixed_point_type): Remove. | |
580 | (ada_value_cast, ada_evaluate_subexp): Update. | |
581 | (gnat_encoded_fixed_point_type_info) | |
582 | (ada_is_gnat_encoded_fixed_point_type) | |
583 | (gnat_encoded_fixed_point_delta) | |
584 | (gnat_encoded_fixed_point_scaling_factor): Remove. | |
585 | * ada-lang.h (ada_is_gnat_encoded_fixed_point_type) | |
586 | (gnat_encoded_fixed_point_delta) | |
587 | (gnat_encoded_fixed_point_scaling_factor): Don't declare. | |
588 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove. | |
589 | (ada_print_type): Update. | |
590 | * ada-valprint.c (ada_value_print_num): Update. | |
591 | * dwarf2/read.c (ada_get_gnat_encoded_number) | |
592 | (ada_get_gnat_encoded_ratio): New functions. | |
593 | (finish_fixed_point_type): Use them. Add parameters. | |
594 | (GNAT_FIXED_POINT_SUFFIX): New define. | |
595 | (gnat_encoded_fixed_point_type_info): New function. | |
596 | (read_base_type): Handle gnat encodings. | |
597 | ||
5f9febe0 TT |
598 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
599 | ||
600 | * ada-lang.c (ada_fold_name, ada_variant_discrim_name) | |
601 | (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use | |
602 | std::string. | |
603 | (GROW_VECT): Remove. | |
604 | (grow_vect): Remove. | |
605 | ||
d1183b06 TT |
606 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
607 | ||
608 | * ada-lang.h (ada_lookup_symbol_list): Return a vector. | |
609 | * ada-lang.c (resolve_subexp): Update. | |
610 | (ada_resolve_function): Accept a vector. | |
611 | (is_nonfunction, add_defn_to_vec) | |
612 | (add_symbols_from_enclosing_procs): Likewise. | |
613 | (num_defns_collected, defns_collected): Remove. | |
614 | (remove_extra_symbols): Return a vector. | |
615 | (remove_irrelevant_renamings): Return void. | |
616 | (ada_add_local_symbols): Accept a vector. | |
617 | (struct match_data) <obstackp>: Remove. | |
618 | <resultp>: New member. | |
619 | (aux_add_nonlocal_symbols): Update. | |
620 | (ada_add_block_renamings, add_nonlocal_symbols) | |
621 | (ada_add_all_symbols): Accept a vector. | |
622 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a | |
623 | vector. | |
624 | (ada_lookup_symbol): Update. | |
625 | (ada_add_block_symbols): Accept a vector. | |
626 | (get_var_value, iterate_over_symbols): Update. | |
627 | * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc): | |
628 | Update. | |
629 | ||
886d459f TT |
630 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
631 | ||
632 | * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom. | |
633 | ||
bdcccc56 TT |
634 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
635 | ||
636 | * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an | |
637 | auto_obstack. | |
638 | <root>: Initialize. | |
639 | (ada_pspace_data): Remove destructor. | |
640 | <sym_cache>: Now a unique_ptr. | |
641 | (ada_init_symbol_cache, ada_free_symbol_cache): Remove. | |
642 | (ada_get_symbol_cache): Use 'new'. | |
643 | (ada_clear_symbol_cache): Rewrite. | |
644 | ||
1228719f TT |
645 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
646 | ||
647 | * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf | |
648 | is null. | |
649 | ||
bb3a4efe LS |
650 | 2021-02-27 Lancelot Six <lsix@lancelotsix.com> |
651 | ||
652 | PR gdb/27393 | |
653 | * source.c (add_path): Skip empty dirnames. | |
654 | ||
26b43ca6 | 655 | 2021-02-25 Kevin Buettner <kevinb@redhat.com> |
0f977b77 KB |
656 | |
657 | * nat/aarch64-sve-linux-ptrace.h: Add comment regarding | |
658 | include order for <sys/ptrace.h> and <asm/ptrace.h>. | |
659 | ||
dffdd8b5 SM |
660 | 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
661 | ||
662 | PR gdb/26861 | |
663 | * target.c (target_mourn_inferior): Only compare pids in | |
664 | target_mourn_inferior. | |
665 | ||
64d38fdd JM |
666 | 2021-02-25 Jan Matyas <jmatyas@codasip.com> |
667 | ||
668 | PR gdb/26819 | |
669 | * remote.c (remote_target::start_remote): Ensure the single | |
670 | thread, automatically added for remote targets without the | |
671 | concept of threading, is initially in set to the "resumed" | |
672 | state. | |
673 | * remote.c (remote_target::add_current_inferior_and_thread): | |
674 | Add return value - return the main thread. | |
675 | ||
2450ad54 JV |
676 | 2021-02-25 Jan Vrany <jan.vrany@labware.com> |
677 | ||
678 | * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output. | |
679 | (mi_tsv_created): Likewise. | |
680 | (mi_tsv_deleted): Likewise. | |
681 | ||
30c80d88 TV |
682 | 2021-02-25 Tom de Vries <tdevries@suse.de> |
683 | ||
684 | PR symtab/27354 | |
685 | * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as | |
686 | section_kind for &dwo_file->sections.info. | |
687 | ||
68337b8b AB |
688 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
689 | ||
690 | PR fortran/26155 | |
691 | * f-lang.c (fortran_argument_convert): Delete declaration. | |
692 | (fortran_prepare_argument): New function. | |
693 | (evaluate_subexp_f): Move logic to new function | |
694 | fortran_prepare_argument. | |
695 | ||
faeb9f13 AB |
696 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
697 | ||
698 | * f-exp.y (f77_keywords): Add 'associated'. | |
699 | * f-lang.c (fortran_associated): New function. | |
700 | (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED. | |
701 | (operator_length_f): Likewise. | |
702 | (print_unop_or_binop_subexp_f): New function. | |
703 | (print_subexp_f): Make use of print_unop_or_binop_subexp_f for | |
704 | FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND. | |
705 | (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED. | |
706 | (operator_check_f): Likewise. | |
707 | * std-operator.def: Add FORTRAN_ASSOCIATED. | |
708 | ||
170f4b23 AB |
709 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
710 | ||
711 | * f-exp.y (fortran_operators): Add ".xor.". | |
712 | ||
aa659cfa TV |
713 | 2021-02-24 Tom de Vries <tdevries@suse.de> |
714 | ||
715 | PR symtab/27336 | |
716 | * dwarf2/attribute.c (attribute::form_is_signed): New function | |
717 | factored out of ... | |
718 | * dwarf2/attribute.h (attribute::as_signed): ... here. | |
719 | (attribute::is_nonnegative, attribute::as_nonnegative): New function. | |
720 | (attribute::form_is_signed): Declare. | |
721 | * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative | |
722 | for DW_AT_decl_file. | |
723 | ||
268c77c1 KB |
724 | 2021-02-24 Kevin Buettner <kevinb@redhat.com> |
725 | ||
726 | * nat/aarch64-linux-hw-point.c: Add comment regarding include | |
727 | order for <sys/ptrace.h> and <asm/ptrace.h>. | |
728 | ||
665af52e KB |
729 | 2021-02-24 Kevin Buettner <kevinb@redhat.com> |
730 | ||
731 | * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after | |
732 | <sys/ptrace.h>. | |
733 | ||
dd80d750 AB |
734 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
735 | ||
736 | * exec.c (set_section_command): Move variable declarations into | |
737 | the function body, and use std::string instead of a fixed size | |
738 | buffer. | |
739 | ||
336aa7b7 AB |
740 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
741 | ||
742 | * exec.c (exec_target::get_section_table): Delete member function. | |
743 | (section_table_read_available_memory): Use current_top_target, not | |
744 | just the exec_ops target. | |
745 | * target-delegates.c: Regenerate. | |
746 | * target.c (default_get_section_table): New function. | |
747 | * target.h (target_ops::get_section_table): Change default | |
748 | behaviour to call default_get_section_table. | |
749 | (default_get_section_table): Declare. | |
750 | ||
02f7d26b AB |
751 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
752 | ||
753 | * exec.c (exec_target::close): Call new clear_target_sections | |
754 | function. | |
755 | (program_space::add_target_sections): Update name of member | |
756 | variable. | |
757 | (program_space::add_target_sections): Update name of member | |
758 | variable. | |
759 | (program_space::remove_target_sections): Likewise. | |
760 | (exec_one_fork): Use new target_sections member function. | |
761 | (exec_target::get_section_table): Likewise. | |
762 | (exec_target::files_info): Likewise. | |
763 | (set_section_command): Likewise. | |
764 | (exec_set_section_address): Likewise. | |
765 | (exec_target::has_memory): Use new target_sections member | |
766 | function. | |
767 | * progspace.h (program_space::clear_target_sections): New member | |
768 | function. | |
769 | (program_space::target_sections): Rename member variable to | |
770 | m_target_sections, replace with a new member function. | |
771 | (program_space::m_target_sections): New member variable. | |
772 | * solib-dsbt.c (scan_dyntag): Use new member function. | |
773 | * solib-svr4.c (scan_dyntag): Likewise. | |
774 | ||
19cf757a AB |
775 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
776 | ||
777 | * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make | |
778 | return type const. | |
779 | * gdb/exec.c (struct exec_target) <get_section_table>: Likewise. | |
780 | (section_table_read_available_memory): Make local const. | |
781 | (exec_target::xfer_partial): Make local const. | |
782 | (print_section_info): Make parameter const. | |
783 | * gdb/exec.h (print_section_info): Likewise. | |
784 | * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local | |
785 | const. | |
786 | * gdb/record-btrace.c (record_btrace_target::xfer_partial): | |
787 | Likewise. | |
788 | * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial): | |
789 | Likewise. | |
790 | * gdb/s390-tdep.c (s390_load): Likewise. | |
791 | * gdb/solib-dsbt.c (scan_dyntag): Likewise. | |
792 | * gdb/solib-svr4.c (scan_dyntag): Likewise. | |
793 | * gdb/target-debug.h (target_debug_print_target_section_table_p): | |
794 | Rename to... | |
795 | (target_debug_print_const_target_section_table_p): ...this. | |
796 | * gdb/target-delegates.c: Regenerate. | |
797 | * gdb/target.c (target_get_section_table): Make return type const. | |
798 | (target_section_by_addr): Likewise. Also make some locals const. | |
799 | (memory_xfer_partial_1): Make some locals const. | |
800 | * gdb/target.h (struct target_ops) <get_section_table>: Make | |
801 | return type const. | |
802 | (target_section_by_addr): Likewise. | |
803 | (target_get_section_table): Likewise. | |
804 | ||
02a79309 AB |
805 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
806 | ||
807 | * NEWS: Mention new 'maint info target-sections' command. | |
808 | * maint.c (maintenance_info_target_sections): New function. | |
809 | (_initialize_maint_cmds): Register new command. | |
810 | ||
895b7b4e AB |
811 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
812 | ||
813 | * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to... | |
814 | (riscv_features_from_bfd): ...this. Change parameter type to | |
815 | 'bfd*', and update as required. | |
816 | (riscv_find_default_target_description): Update call to | |
817 | riscv_features_from_bfd. Select a default xlen based on | |
818 | info.bfd_arch_info. | |
819 | (riscv_gdbarch_init): Update call to riscv_features_from_bfd. | |
820 | ||
bc3c0632 AB |
821 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
822 | ||
823 | * eval.c (evaluate_subexp_standard): Call value_ind for points to | |
824 | dynamic types in UNOP_IND. | |
825 | ||
08ac5771 SM |
826 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
827 | ||
828 | PR gdb/26828 | |
829 | * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>: | |
830 | Instantiate queue. | |
831 | (~dwarf2_queue_guard): Clear queue. | |
832 | (queue_comp_unit): Assert that queue is | |
833 | instantiated. | |
834 | (process_queue): Adjust. | |
835 | * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional. | |
836 | ||
616c069a SM |
837 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
838 | ||
839 | PR gdb/26828 | |
840 | * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded | |
841 | to decide whether or not to enqueue it for expansion. | |
842 | (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs | |
843 | after calling maybe_queue_comp_unit. | |
844 | ||
897608ed SM |
845 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
846 | ||
847 | * linux-nat.c (linux_nat_filter_event): Return void. | |
848 | ||
15908a11 TT |
849 | 2021-02-22 Tom Tromey <tromey@adacore.com> |
850 | ||
851 | * solib-svr4.c (enable_break): Update. | |
852 | * bfd-target.c (class target_bfd) <target_bfd>: Change parameter | |
853 | type. | |
854 | (target_bfd_reopen): Change parameter type. | |
855 | * bfd-target.h (target_bfd_reopen): Change parameter type. | |
856 | ||
f53fc427 SM |
857 | 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
858 | ||
859 | * thread.c (add_thread_silent): Add assert. | |
860 | (find_thread_ptid): Add assert. | |
861 | ||
de146e19 SM |
862 | 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
863 | ||
864 | PR gdb/27435 | |
865 | * inf-ptrace.c (struct target_unpusher): Move to target.h. | |
866 | (target_unpush_up): Likewise. | |
867 | * procfs.c (procfs_target::attach): Push target early. Use | |
868 | target_unpush_up to unpush target in case of error. | |
869 | * target.h (struct target_unpusher): Move here. | |
870 | (target_unpush_up): Likewise. | |
871 | ||
8488c357 KB |
872 | 2021-02-19 Kevin Buettner <kevinb@redhat.com> |
873 | ||
874 | * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h" | |
875 | (which in turn includes <gnulib/config.h>) before include | |
876 | of <signal.h>. | |
877 | ||
5a9f5403 NC |
878 | 2021-02-19 Nelson Chu <nelson.chu@sifive.com> |
879 | ||
880 | PR 27158 | |
881 | * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros. | |
882 | (decode_j_type_insn): Likewise. | |
883 | (decode_cj_type_insn): Likewise. | |
884 | (decode_b_type_insn): Likewise. | |
885 | (decode): Likewise. | |
886 | ||
26f53cd3 TT |
887 | 2021-02-18 Tom Tromey <tom@tromey.com> |
888 | ||
889 | * expression.h (struct expression) <evaluate>: Declare method. | |
890 | * eval.c (evaluate_subexp): Simplify. | |
891 | (expression::evaluate): New method. | |
892 | (evaluate_expression, evaluate_type): Use expression::evaluate. | |
893 | ||
6a780b67 KB |
894 | 2021-02-17 Kevin Buettner <kevinb@redhat.com> |
895 | ||
896 | * ada-lang.c (ada_fold_name): Check for non-empty string prior | |
897 | to accessing it. | |
898 | (ada_lookup_name_info): Likewise. | |
899 | ||
adeab0c5 MF |
900 | 2021-02-13 Mike Frysinger <vapier@gentoo.org> |
901 | ||
902 | * aclocal.m4: Regenerate. | |
903 | ||
089436f7 TV |
904 | 2021-02-12 Tom de Vries <tdevries@suse.de> |
905 | ||
906 | PR threads/26228 | |
907 | * linux-nat.c (lin_thread_get_thread_signals): Remove. | |
908 | (lin_thread_signals): New static var. | |
909 | (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal): | |
910 | New function. | |
911 | * linux-nat.h (lin_thread_get_thread_signals): Remove. | |
912 | (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal): | |
913 | Declare. | |
914 | * linux-thread-db.c (check_thread_signals): Use | |
915 | lin_thread_get_thread_signal_num and lin_thread_get_thread_signal. | |
916 | ||
96df3e28 AB |
917 | 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
918 | ||
919 | * f-exp.y (f77_keywords): Add allocated. | |
920 | * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED. | |
921 | (operator_length_f): Likewise. | |
922 | (print_subexp_f): Likewise. | |
923 | (dump_subexp_body_f): Likewise. | |
924 | (operator_check_f): Likewise. | |
925 | * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator. | |
926 | ||
05f68f52 TV |
927 | 2021-02-11 Tom de Vries <tdevries@suse.de> |
928 | ||
929 | PR symtab/27353 | |
930 | * dwarf2/attribute.c (attribute::form_requires_reprocessing): | |
931 | Return true for DW_FORM_strx. | |
932 | ||
b260f8d6 TT |
933 | 2021-02-11 Tom Tromey <tromey@adacore.com> |
934 | ||
935 | PR gdb/27383: | |
936 | * parse.c (write_exp_symbol_reference): Write sym.block. | |
937 | ||
bf3386f0 AB |
938 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
939 | ||
940 | * NEWS: Mention changes to 'maint info sections'. | |
941 | * maint.c (match_substring): Return a bool, fix whitespace issue. | |
942 | (struct single_bfd_flag_info): New struct. | |
943 | (bfd_flag_info): New static global. | |
944 | (match_bfd_flags): Return a bool, use bfd_flag_info. | |
945 | (print_bfd_flags): Use bfd_flag_info. | |
946 | (maint_print_section_info): Delete trailing whitespace. | |
947 | (struct maint_info_sections_opts): New struct. | |
948 | (maint_info_sections_option_defs): New static global. | |
949 | (maint_info_sections_completer): New function. | |
950 | (maintenance_info_sections): Use option parsing mechanism. | |
951 | (_initialize_maint_cmds): Update command help text for 'maint info | |
952 | sections' and register a command completer. | |
953 | ||
4790db14 AB |
954 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
955 | ||
956 | * maint.c (print_bfd_section_info_maybe_relocated): Delete, | |
957 | functionality merged into... | |
958 | (maint_print_all_sections): ...this new function. | |
959 | (maintenance_info_sections): Make use of maint_print_all_sections, | |
960 | allow all objects to be printed even where there's no executable. | |
961 | ||
1db66e34 AB |
962 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
963 | ||
964 | * breakpoint.c (resolve_sal_pc): Make use of | |
965 | bound_minimal_symbol::obj_section. | |
966 | * maint.c (maintenance_translate_address): Likewise. | |
967 | * minsyms.c (minimal_symbol_upper_bound): Likewise. | |
968 | * minsyms.h (struct bound_minimal_symbol) <obj_section>: New | |
969 | member function. | |
970 | * printcmd.c (info_address_command): Make use of | |
971 | bound_minimal_symbol::obj_section. | |
972 | ||
18b8df43 AM |
973 | 2021-02-11 Alan Modra <amodra@gmail.com> |
974 | ||
975 | * arm-symbian-tdep.c: Delete. | |
976 | * NEWS: Mention arm-symbian removal. | |
977 | * Makefile.in: Remove arm-symbian-tdep entries. | |
978 | * configure.tgt: Remove arm*-*-symbianelf*. | |
979 | * doc/gdb.texinfo: Remove mention of SymbianOS. | |
980 | * osabi.c (gdb_osabi_names): Remove "Symbian". | |
981 | * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN. | |
982 | * testsuite/gdb.base/ending-run.exp: Remove E32Main handling. | |
983 | * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf* | |
984 | handling. | |
985 | * testsuite/gdb.base/dup-sect.exp: Likewise. | |
986 | * testsuite/gdb.base/long_long.exp: Likewise. | |
987 | * testsuite/gdb.base/solib-weak.exp: Likewise. | |
988 | * testsuite/gdb.guile/scm-section-script.exp: Likewise. | |
989 | * testsuite/gdb.python/py-section-script.exp: Likewise. | |
990 | * testsuite/lib/dwarf.exp: Likewise. | |
991 | * testsuite/lib/gdb.exp: Likewise. | |
992 | ||
e92c8eb8 AB |
993 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
994 | ||
995 | * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token. | |
996 | (exp): New pattern using UNOP_OR_BINOP_INTRINSIC. | |
997 | (one_or_two_args): New pattern. | |
998 | (f77_keywords): Add lbound and ubound. | |
999 | * f-lang.c (fortran_bounds_all_dims): New function. | |
1000 | (fortran_bounds_for_dimension): New function. | |
1001 | (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND. | |
1002 | (operator_length_f): Likewise. | |
1003 | (print_subexp_f): Likewise. | |
1004 | (dump_subexp_body_f): Likewise. | |
1005 | (operator_check_f): Likewise. | |
1006 | * std-operator.def (FORTRAN_LBOUND): Define. | |
1007 | (FORTRAN_UBOUND): Define. | |
1008 | ||
a52d653e AB |
1009 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1010 | ||
1011 | * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index | |
1012 | and set_section_index member functions where appropriate. | |
1013 | * coffread.c (coff_symtab_read): Likewise. | |
1014 | (process_coff_symbol): Likewise. | |
1015 | * ctfread.c (set_symbol_address): Likewise. | |
1016 | * dwarf2/read.c (add_partial_symbol): Likewise. | |
1017 | (var_decode_location): Likewise. | |
1018 | * language.c: Likewise. | |
1019 | * minsyms.c (minimal_symbol_reader::record_full): Likewise. | |
1020 | (compact_minimal_symbols): Likewise. | |
1021 | (minimal_symbol_upper_bound): Likewise. | |
1022 | * objfiles.c (relocate_one_symbol): Likewise. | |
1023 | * psympriv.h (partial_symbol::obj_section): Likewise. | |
1024 | (partial_symbol::address): Likewise. | |
1025 | * psymtab.c (partial_symtab::add_psymbol): Likewise. | |
1026 | * stabsread.c (scan_file_globals): Likewise. | |
1027 | * symmisc.c (dump_msymbols): Likewise. | |
1028 | * symtab.c (general_symbol_info::obj_section): Likewise. | |
1029 | (fixup_section): Likewise. | |
1030 | (get_msymbol_address): Likewise. | |
1031 | * symtab.h (general_symbol_info::section): Rename to... | |
1032 | (general_symbol_info::m_section): ...this. | |
1033 | (general_symbol_info::set_section_index): New member function. | |
1034 | (general_symbol_info::section_index): Likewise. | |
1035 | (SYMBOL_SECTION): Delete. | |
1036 | (MSYMBOL_VALUE_ADDRESS): Make use of section_index and | |
1037 | set_section_index member functions where appropriate. | |
1038 | (MSYMBOL_SECTION): Delete. | |
1039 | (symbol::symbol): Update to initialize 'm_section'. | |
1040 | * xcoffread.c (read_xcoff_symtab): Make use of set_section_index. | |
1041 | (process_xcoff_symbol): Likewise. | |
1042 | ||
ebbc3a7d AB |
1043 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1044 | ||
1045 | * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and | |
1046 | MSYMBOL_OBJ_SECTION. | |
1047 | * findvar.c (language_defn::read_var_value): Likewise. | |
1048 | * infcmd.c (jump_command): Likewise. | |
1049 | * linespec.c (minsym_found): Likewise. | |
1050 | * maint.c (maintenance_translate_address): Likewise. | |
1051 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise. | |
1052 | (minimal_symbol_upper_bound): Likewise. | |
1053 | * parse.c (find_minsym_type_and_address): Likewise. | |
1054 | (operator_check_standard): Likewise. | |
1055 | * printcmd.c (info_address_command): Likewise. | |
1056 | * symmisc.c (dump_msymbols): Likewise. | |
1057 | (print_symbol): Likewise. | |
1058 | * symtab.c (general_symbol_info::obj_section): Define new | |
1059 | function. | |
1060 | (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION. | |
1061 | (find_pc_sect_compunit_symtab): Likewise. | |
1062 | (find_function_start_sal): Likewise. | |
1063 | (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and | |
1064 | MSYMBOL_OBJ_SECTION. | |
1065 | * symtab.h (struct general_symbol_info) <obj_section>: Declare new | |
1066 | function. | |
1067 | (SYMBOL_OBJ_SECTION): Delete. | |
1068 | (MSYMBOL_OBJ_SECTION): Delete. | |
1069 | ||
9bb305b3 TT |
1070 | 2021-02-09 Tom Tromey <tom@tromey.com> |
1071 | ||
1072 | * stap-probe.c (stap_parse_argument_conditionally): Fix typo. | |
1073 | ||
cf2b2075 TV |
1074 | 2021-02-09 Tom de Vries <tdevries@suse.de> |
1075 | ||
1076 | PR symtab/27341 | |
1077 | * dwarf2/read.c (read_array_type): Return NULL when not being able to | |
1078 | construct an array type. Add assert to ensure that element_type is | |
1079 | not being modified. | |
1080 | ||
03642b71 AB |
1081 | 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com> |
1082 | ||
1083 | * gcore.c (struct gcore_collect_regset_section_cb_data): Delete. | |
1084 | (gcore_collect_regset_section_cb): Delete. | |
1085 | (gcore_collect_thread_registers): Delete. | |
1086 | (gcore_build_thread_register_notes): Delete. | |
1087 | (gcore_find_signalled_thread): Delete. | |
1088 | * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete | |
1089 | 'gdbarch' and 'thread_info' declarations. | |
1090 | (gcore_build_thread_register_notes): Delete declaration. | |
1091 | (gcore_find_signalled_thread): Likewise. | |
1092 | * fbsd-tdep.c: Remove 'gcore.h' include. | |
1093 | (struct fbsd_collect_regset_section_cb_data): New struct. | |
1094 | (fbsd_collect_regset_section_cb): New function. | |
1095 | (fbsd_collect_thread_registers): New function. | |
1096 | (struct fbsd_corefile_thread_data): New struct. | |
1097 | (fbsd_corefile_thread): New function. | |
1098 | (fbsd_make_corefile_notes): Call FreeBSD specific code. | |
1099 | * linux-tdep.c: Remove 'gcore.h' include. | |
1100 | (struct linux_collect_regset_section_cb_data): New struct. | |
1101 | (linux_collect_regset_section_cb): New function. | |
1102 | (linux_collect_thread_registers): New function. | |
1103 | (linux_corefile_thread): Call Linux specific code. | |
1104 | (find_signalled_thread): New function. | |
1105 | (linux_make_corefile_notes): Call find_signalled_thread. | |
1106 | ||
f73e424f TT |
1107 | 2021-02-09 Tom Tromey <tromey@adacore.com> |
1108 | ||
1109 | * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy | |
1110 | not_lval value. | |
1111 | * value.c (value_contents_copy_raw): Now static. | |
1112 | * value.h (value_contents_copy_raw): Don't declare. | |
1113 | ||
a4f0544b TT |
1114 | 2021-02-09 Tom Tromey <tromey@adacore.com> |
1115 | ||
1116 | * gdbtypes.c (resolve_dynamic_struct): Handle structure with no | |
1117 | fields. | |
1118 | ||
9b3e4b5d SV |
1119 | 2021-02-08 Shahab Vahedi <shahab@synopsys.com> |
1120 | ||
1121 | PR tdep/27369 | |
1122 | * arc-linux-tdep.c (handle_atomic_sequence): New. | |
1123 | (arc_linux_software_single_step): Call handle_atomic_sequence(). | |
1124 | ||
29db1eb3 AB |
1125 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1126 | ||
1127 | * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member | |
1128 | function. | |
1129 | (REQUIRE_WINDOW): Call is_valid member function. | |
1130 | (REQUIRE_WINDOW_FOR_SETTER): New define. | |
1131 | (gdbpy_tui_is_valid): Call is_valid member function. | |
1132 | (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead. | |
1133 | * tui/tui-data.h (struct tui_win_info) <is_visible>: Check | |
1134 | tui_active too. | |
1135 | * tui/tui-layout.c (tui_apply_current_layout): Add an assert. | |
1136 | * tui/tui.c (tui_enable): Move setting of tui_active earlier in | |
1137 | the function. | |
1138 | ||
e0c23e11 AB |
1139 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1140 | ||
1141 | * python/py-tui.c (gdbpy_tui_set_title): Check that the new value | |
1142 | for the title is not nullptr. | |
1143 | ||
1cf23996 AB |
1144 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1145 | ||
1146 | * tui-layout.c (saved_tui_windows): Delete. | |
1147 | (tui_apply_current_layout): Don't make use of saved_tui_windows, | |
1148 | call new get_windows member function instead. | |
1149 | (tui_get_window_by_name): Check in tui_windows. | |
1150 | (tui_layout_window::apply): Don't add to tui_windows. | |
1151 | * tui-layout.h (tui_layout_base::get_windows): New member function. | |
1152 | (tui_layout_window::get_windows): Likewise. | |
1153 | (tui_layout_split::get_windows): Likewise. | |
1154 | ||
a53a2657 AB |
1155 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1156 | ||
1157 | * tui/tui-layout.c (tui_apply_current_layout): Restore the delete | |
1158 | of the window objects. | |
1159 | ||
2708dbbd AB |
1160 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1161 | ||
1162 | * python/python.c (gdbpy_print_stack): Reformat an error message. | |
1163 | ||
cd074e04 AB |
1164 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1165 | ||
1166 | * tui/tui-interp.c (tui_command_line_handler): New function. | |
1167 | (tui_interp::resume): Register tui_command_line_handler as the | |
1168 | input_handler. | |
1169 | * tui/tui-io.c (tui_inject_newline_into_command_window): New | |
1170 | function. | |
1171 | (tui_getc_1): Delete handling of '\n' and '\r'. | |
1172 | * tui-io.h (tui_inject_newline_into_command_window): Declare. | |
1173 | ||
4cf28e91 HD |
1174 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
1175 | ||
1176 | * tui/tui-regs.c (tui_data_window::display_registers_from): | |
1177 | Mark invisible register sub windows. | |
1178 | (tui_data_window::check_register_values): Ignore invisible | |
1179 | register sub windows. | |
1180 | ||
3537bc23 HD |
1181 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
1182 | ||
1183 | * tui/tui-regs.c (tui_data_item_window::rerender): Don't call | |
1184 | n_spaces with a negative value. | |
1185 | ||
5fc2d6aa HD |
1186 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
1187 | ||
1188 | * tui/tui-regs.c (tui_data_window::display_registers_from): | |
1189 | Add refresh_window call. | |
1190 | ||
83962f83 HD |
1191 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
1192 | ||
1193 | * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next. | |
1194 | ||
0110ec82 SM |
1195 | 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca> |
1196 | ||
1197 | * symmisc.c (std_in, std_out, std_err): Remove. | |
1198 | (_initialize_symmisc): Don't set std_in, std_out and std_err. | |
1199 | ||
7c6944ab TV |
1200 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
1201 | ||
1202 | PR breakpoints/27330 | |
1203 | * breakpoint.c (create_exception_master_breakpoint): Handle case that | |
1204 | glibc object file has debug info. | |
1205 | ||
e77b0004 TV |
1206 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
1207 | ||
1208 | PR symtab/27333 | |
1209 | * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit. | |
1210 | ||
0e857c82 TV |
1211 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
1212 | ||
1213 | PR breakpoints/27313 | |
1214 | * break-catch-syscall.c (catch_syscall_split_args): Reject negative | |
1215 | syscall numbers. | |
1216 | ||
bdfea17e TT |
1217 | 2021-02-05 Tom Tromey <tom@tromey.com> |
1218 | ||
1219 | * compile/compile-c-support.c (get_compile_context) | |
1220 | (c_get_compile_context, cplus_get_compile_context): Change return | |
1221 | type. | |
1222 | * language.c (language_defn::get_compile_instance): New method. | |
1223 | * language.h (language_defn::get_compile_instance): Change return | |
1224 | type. No longer inline. | |
1225 | * c-lang.c (c_language::get_compile_instance): Change return type. | |
1226 | (cplus_language::get_compile_instance): Change return type. | |
1227 | * c-lang.h (c_get_compile_context, cplus_get_compile_context): | |
1228 | Change return type. | |
1229 | * compile/compile.c (compile_to_object): Update. | |
1230 | ||
1b30f421 TT |
1231 | 2021-02-05 Tom Tromey <tom@tromey.com> |
1232 | ||
1233 | * parser-defs.h (write_exp_symbol_reference): Declare. | |
1234 | * parse.c (write_exp_symbol_reference): New function. | |
1235 | * p-exp.y (variable): Use write_exp_symbol_reference. | |
1236 | * m2-exp.y (variable): Use write_exp_symbol_reference. | |
1237 | * f-exp.y (variable): Use write_exp_symbol_reference. | |
1238 | * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference. | |
1239 | * c-exp.y (variable): Use write_exp_symbol_reference. | |
1240 | ||
ae710496 TV |
1241 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
1242 | ||
1243 | PR exp/27265 | |
1244 | * valarith.c (complex_binop): Throw an error if complex type can't | |
1245 | be created. | |
1246 | ||
d3b54e63 TV |
1247 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
1248 | ||
1249 | PR symtab/27307 | |
1250 | * dwarf2/read.c (create_cus_from_debug_names_list): Add missing | |
1251 | return. | |
1252 | ||
fc9a13fb TV |
1253 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
1254 | ||
1255 | * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation. | |
1256 | ||
04b4939b MF |
1257 | 2021-02-04 Mike Frysinger <vapier@gentoo.org> |
1258 | ||
1259 | * configure.tgt (riscv*-*-*): Set gdb_sim. | |
1260 | ||
6ff267e1 SM |
1261 | 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca> |
1262 | ||
1263 | * target.c (target_is_non_stop_p): Return bool. | |
1264 | * target.h (target_is_non_stop_p): Return bool. | |
1265 | ||
fdbc5215 SM |
1266 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
1267 | ||
1268 | * record-full.c (record_full_async_inferior_event_handler): | |
1269 | Don't clear async event handler. | |
1270 | (record_full_base_target::wait): Clear async event handler at | |
1271 | beginning. | |
1272 | ||
85d3ad8e SM |
1273 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
1274 | ||
1275 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
1276 | Don't clear async event handler. | |
1277 | (record_btrace_target::wait): Clear async event handler at | |
1278 | beginning. | |
1279 | ||
baa8575b SM |
1280 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
1281 | ||
1282 | * remote.c (remote_target::wait): Clear async event handler at | |
1283 | beginning, mark if needed at the end. | |
1284 | (remote_async_inferior_event_handler): Don't set or clear async | |
1285 | event handler. | |
1286 | ||
6b36ddeb SM |
1287 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
1288 | ||
1289 | * async-event.h (async_event_handler_func): Add documentation. | |
1290 | * async-event.c (check_async_event_handlers): Don't clear | |
1291 | async_event_handler ready flag. | |
1292 | * infrun.c (infrun_async_inferior_event_handler): Clear ready | |
1293 | flag. | |
1294 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
1295 | Likewise. | |
1296 | * record-full.c (record_full_async_inferior_event_handler): | |
1297 | Likewise. | |
1298 | * remote-notif.c (remote_async_get_pending_events_handler): | |
1299 | Likewise. | |
1300 | * remote.c (remote_async_inferior_event_handler): Likewise. | |
1301 | ||
72d383bb SM |
1302 | 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca> |
1303 | ||
1304 | * infrun.c (handle_inferior_event): Move stop_soon variable to | |
1305 | inner scope. | |
1306 | ||
408f6686 PA |
1307 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1308 | ||
1309 | * infcmd.c (detach_command): Hold strong reference to target, and | |
1310 | if all-stop on entry, restart threads on exit. | |
1311 | * infrun.c (switch_back_to_stepped_thread): Factor out bits to ... | |
1312 | (restart_stepped_thread): ... this new function. Also handle | |
1313 | trap_expected. | |
1314 | (restart_after_all_stop_detach): New function. | |
1315 | * infrun.h (restart_after_all_stop_detach): Declare. | |
1316 | ||
ac7d717c PA |
1317 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1318 | ||
1319 | * infrun.c (struct step_over_info): Initialize fields. | |
1320 | (prepare_for_detach): Handle ongoing in-line step over. | |
1321 | ||
e87f0fe8 PA |
1322 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1323 | ||
1324 | * linux-nat.c (linux_nat_target::detach): Remove breakpoints | |
1325 | here... | |
1326 | * remote.c (remote_target::remote_detach_1): ... and here ... | |
1327 | * target.c (target_detach): ... instead of here. | |
1328 | * target.h (target_ops::detach): Add comment. | |
1329 | ||
8ff53139 PA |
1330 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1331 | ||
1332 | * infrun.c (struct wait_one_event): Move higher up. | |
1333 | (prepare_for_detach): Abort in-progress displaced steps instead of | |
1334 | letting them complete. | |
1335 | (handle_one): If the inferior is detaching, don't add the thread | |
1336 | back to the global step-over chain. | |
1337 | (restart_threads): Don't restart threads if detaching. | |
1338 | (handle_signal_stop): Remove inferior::detaching reference. | |
1339 | ||
91475068 PA |
1340 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1341 | ||
1342 | * infrun.c (prepare_for_detach): Don't release scoped_restore | |
1343 | before returning. | |
1344 | ||
d758e62c PA |
1345 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1346 | ||
1347 | * infrun.c (handle_one): New function, factored out from ... | |
1348 | (stop_all_threads): ... here. | |
1349 | ||
b0083dd7 PA |
1350 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1351 | ||
1352 | * remote.c (remote_notif_stop_ack): Don't error out on | |
1353 | TARGET_WAITKIND_IGNORE; instead, just ignore the notification. | |
1354 | (remote_target::discard_pending_stop_replies): Don't delete | |
1355 | in-flight notification; instead, clear its contents. | |
1356 | ||
621cc310 PA |
1357 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1358 | ||
1359 | * remote.c (extended_remote_target::attach): Set target async in | |
1360 | the target-non-stop path too. | |
1361 | ||
2ab76a18 PA |
1362 | 2021-02-03 Pedro Alves <pedro@palves.net> |
1363 | ||
1364 | PR gdb/27055 | |
1365 | * infrun.c (handle_signal_stop): Move main context_switch call | |
1366 | earlier, before STOP_QUIETLY_NO_SIGSTOP. | |
1367 | ||
2e3773ff LS |
1368 | 2021-02-02 Lancelot SIX <lsix@lancelotsix.com> |
1369 | ||
1370 | * NEWS (Changed commands): Add entry for the behavior change of | |
1371 | the inferior command. | |
1372 | * inferior.c (inferior_command): When no argument is given to the | |
1373 | inferior command, display info about the currently selected | |
1374 | inferior. | |
1375 | ||
e57933dc SM |
1376 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1377 | ||
1378 | * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return | |
1379 | a sect_offset. | |
1380 | (read_attribute_reprocess): Adjust. | |
1381 | ||
2b0c7f41 SM |
1382 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1383 | ||
1384 | * dwarf2/die.h (struct die_info) <ranges_base>: Split in... | |
1385 | <gnu_ranges_base>: ... this... | |
1386 | <rnglists_base>: ... and this. | |
1387 | * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in... | |
1388 | <gnu_ranges_base>: ... this... | |
1389 | <rnglists_base>: ... and this. | |
1390 | (read_cutu_die_from_dwo): Adjust | |
1391 | (dwarf2_get_pc_bounds): Adjust | |
1392 | (dwarf2_record_block_ranges): Adjust. | |
1393 | (read_full_die_1): Adjust | |
1394 | (partial_die_info::read): Adjust. | |
1395 | (read_rnglist_index): Adjust. | |
1396 | ||
a1c40103 SM |
1397 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1398 | ||
1399 | PR gdb/26813 | |
1400 | * dwarf2/read.c (read_loclists_rnglists_header): Add | |
1401 | header_offset parameter and use it. | |
1402 | (read_loclist_index): Read header of the current contribution, | |
1403 | not the one at the beginning of the section. | |
1404 | (read_rnglist_index): Likewise. | |
1405 | ||
b1829e1b SM |
1406 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1407 | ||
1408 | PR gdb/26813 | |
1409 | * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear | |
1410 | requires_reprocessing flag. | |
1411 | * dwarf2/attribute.c (attribute::form_is_unsigned): Handle | |
1412 | DW_FORM_loclistx. | |
1413 | (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx | |
1414 | and DW_FORM_loclistx. | |
1415 | * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned | |
1416 | instead of set_address for DW_FORM_loclistx and | |
1417 | DW_FORM_rnglistx. | |
1418 | ||
0c800c6e SM |
1419 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1420 | ||
1421 | * dwarf2/read.c (read_loclist_index): Remove bound check for | |
1422 | start of offset. | |
1423 | (read_rnglist_index): Likewise. | |
1424 | ||
05787bad SM |
1425 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1426 | ||
1427 | * dwarf2/read.c (read_loclist_index): Add bound check for the end | |
1428 | of the offset. | |
1429 | ||
5e4d9bbc SM |
1430 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1431 | ||
1432 | * dwarf2/read.c (read_rnglist_index): Fix bound check. | |
1433 | ||
a0c1eeba SM |
1434 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
1435 | ||
1436 | * dwarf2/read.c (read_loclist_index): Change complaints into | |
1437 | errors. | |
1438 | ||
2bd3e4b8 TV |
1439 | 2021-02-02 Tom de Vries <tdevries@suse.de> |
1440 | ||
1441 | PR symtab/24620 | |
1442 | * dwarf2/index-write.c (write_one_signatured_type): Skip if | |
1443 | psymtab == nullptr. | |
1444 | ||
82a1fd3a AB |
1445 | 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com> |
1446 | ||
1447 | * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h. | |
1448 | * gcore.c (struct gcore_collect_regset_section_cb_data): Moved | |
1449 | here from linux-tdep.c and given a new name. Minor cleanups. | |
1450 | (gcore_collect_regset_section_cb): Likewise. | |
1451 | (gcore_collect_thread_registers): Likewise. | |
1452 | (gcore_build_thread_register_notes): Likewise. | |
1453 | (gcore_find_signalled_thread): Likewise. | |
1454 | * gcore.h (gcore_build_thread_register_notes): Declare. | |
1455 | (gcore_find_signalled_thread): Declare. | |
1456 | * fbsd-tdep.c: Add 'gcore.h' include. | |
1457 | (struct fbsd_collect_regset_section_cb_data): Delete. | |
1458 | (fbsd_collect_regset_section_cb): Delete. | |
1459 | (fbsd_collect_thread_registers): Delete. | |
1460 | (struct fbsd_corefile_thread_data): Delete. | |
1461 | (fbsd_corefile_thread): Delete. | |
1462 | (fbsd_make_corefile_notes): Call | |
1463 | gcore_build_thread_register_notes instead of the now deleted | |
1464 | FreeBSD code. | |
1465 | * linux-tdep.c: Add 'gcore.h' include. | |
1466 | (struct linux_collect_regset_section_cb_data): Delete. | |
1467 | (linux_collect_regset_section_cb): Delete. | |
1468 | (linux_collect_thread_registers): Delete. | |
1469 | (linux_corefile_thread): Call | |
1470 | gcore_build_thread_register_notes. | |
1471 | (find_signalled_thread): Delete. | |
1472 | (linux_make_corefile_notes): Call gcore_find_signalled_thread. | |
1473 | ||
ebde6f2d TV |
1474 | 2021-01-29 Tom de Vries <tdevries@suse.de> |
1475 | ||
1476 | PR breakpoints/26063 | |
1477 | * infrun.c (process_event_stop_test): Reset | |
1478 | ecs->event_thread->current_line to 0 if is-stmt=n and frame has | |
1479 | changed. | |
1480 | ||
0f93c3a2 AB |
1481 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
1482 | ||
1483 | * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an | |
1484 | assert. Extend the header comment. | |
1485 | ||
f237f998 AB |
1486 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
1487 | ||
1488 | * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c. | |
1489 | (HFILES_NO_SRCDIR): Add tui/tui-location.h. | |
1490 | * tui/tui-data.h (TUI_STATUS_WIN): Define. | |
1491 | (tui_locator_win_info_ptr): Delete declaration. | |
1492 | * tui/tui-disasm.c: Add 'tui/tui-location.h' include. | |
1493 | (tui_disasm_window::set_contents): Fetch state from tui_location | |
1494 | global. | |
1495 | (tui_get_begin_asm_address): Likewise. | |
1496 | * tui/tui-layout.c (tui_apply_current_layout): Remove special case | |
1497 | for locator window. | |
1498 | (get_locator_window): Delete. | |
1499 | (initialize_known_windows): Treat locator window just like all the | |
1500 | rest. | |
1501 | * tui/tui-source.c: Add 'tui/tui-location.h' include. | |
1502 | (tui_source_window::set_contents): Fetch state from tui_location | |
1503 | global. | |
1504 | (tui_source_window::showing_source_p): Likewise. | |
1505 | * tui/tui-stack.c: Add 'tui/tui-location.h' include. | |
1506 | (_locator): Delete. | |
1507 | (tui_locator_win_info_ptr): Delete. | |
1508 | (tui_locator_window::make_status_line): Fetch state from | |
1509 | tui_location global. | |
1510 | (tui_locator_window::rerender): Remove check of 'handle', | |
1511 | reindent function body. | |
1512 | (tui_locator_window::set_locator_fullname): Delete. | |
1513 | (tui_locator_window::set_locator_info): Delete. | |
1514 | (tui_update_locator_fullname): Delete. | |
1515 | (tui_show_frame_info): Likewise. | |
1516 | (tui_show_locator_content): Access window through TUI_STATUS_WIN. | |
1517 | * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to | |
1518 | tui/tui-location.h and renamed to | |
1519 | tui_location_tracker::set_location. | |
1520 | (tui_locator_window::set_locator_fullname): Moved to | |
1521 | tui/tui-location.h and renamed to | |
1522 | tui_location_tracker::set_fullname. | |
1523 | (tui_locator_window::full_name): Delete. | |
1524 | (tui_locator_window::proc_name): Delete. | |
1525 | (tui_locator_window::line_no): Delete. | |
1526 | (tui_locator_window::addr): Delete. | |
1527 | (tui_locator_window::gdbarch): Delete. | |
1528 | (tui_update_locator_fullname): Delete declaration. | |
1529 | * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling | |
1530 | for locator window. | |
1531 | * tui/tui-winsource.c: Add 'tui/tui-location.h' include. | |
1532 | (tui_display_main): Call function on tui_location directly. | |
1533 | * tui/tui.h (enum tui_win_type): Add STATUS_WIN. | |
1534 | * tui/tui-location.c: New file. | |
1535 | * tui/tui-location.h: New file. | |
1536 | ||
8ee511af SM |
1537 | 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca> |
1538 | ||
1539 | * gdbtypes.h (get_type_arch): Rename to... | |
1540 | (struct type) <arch>: ... this, update all users. | |
1541 | ||
6ac37371 SM |
1542 | 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca> |
1543 | ||
1544 | * gdbtypes.h (struct type) <arch>: Rename to... | |
1545 | <arch_owner>: ... this, update all users. | |
1546 | <objfile>: Rename to... | |
1547 | <objfile_owner>: ... this, update all users. | |
1548 | ||
24cf6389 AB |
1549 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
1550 | ||
1551 | * gdbcmd.h (execute_command_to_string): Update comment. | |
1552 | * top.c (execute_command_to_string): Update header comment. | |
1553 | ||
2a7f6487 TV |
1554 | 2021-01-28 Tom de Vries <tdevries@suse.de> |
1555 | ||
1556 | PR breakpoints/27205 | |
1557 | * breakpoint.c (create_longjmp_master_breakpoint_probe) | |
1558 | (create_longjmp_master_breakpoint_names): New function, factored out | |
1559 | of ... | |
1560 | (create_longjmp_master_breakpoint): ... here. Only try to install | |
1561 | longjmp_names breakpoints in libc.so/libc.so.debug if installing probe | |
1562 | breakpoint in libc.so failed. | |
1563 | ||
59b59f08 LS |
1564 | 2021-01-27 Lancelot SIX <lsix@lancelotsix.com> |
1565 | ||
1566 | PR gdb/27133 | |
1567 | * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the | |
1568 | unique_ptr is released when the wrapped pointer is kept for later | |
1569 | use. | |
1570 | ||
807f647c MM |
1571 | 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com> |
1572 | ||
1573 | * aarch64-tdep.c (aarch64_displaced_step_others): Account for | |
1574 | BLR and BR instructions. | |
1575 | * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode. | |
1576 | (enum aarch64_masks): New. | |
1577 | ||
4ef367bf TT |
1578 | 2021-01-26 Tom Tromey <tromey@adacore.com> |
1579 | ||
1580 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
1581 | (DEBUG_EXCEPT): Use debug_prefixed_printf_cond. | |
1582 | (windows_init_thread_list, windows_nat::handle_load_dll) | |
1583 | (windows_nat::handle_unload_dll, windows_nat_target::resume) | |
1584 | (windows_nat_target::resume) | |
1585 | (windows_nat_target::get_windows_debug_event) | |
1586 | (windows_nat_target::interrupt, windows_xfer_memory) | |
1587 | (windows_nat_target::close): Update. | |
1588 | * nat/windows-nat.c (DEBUG_EVENTS): Use | |
1589 | debug_prefixed_printf_cond. | |
1590 | (matching_pending_stop, fetch_pending_stop) | |
1591 | (continue_last_debug_event): Update. | |
1592 | ||
4cb1265b MS |
1593 | 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com> |
1594 | ||
1595 | * linux-tdep.c (linux_make_mappings_corefile_notes): Start using | |
1596 | elfcore_write_file_note. | |
1597 | ||
d0cc52bd SV |
1598 | 2021-01-26 Shahab Vahedi <shahab@synopsys.com> |
1599 | ||
1600 | * arc-tdep.c (arc_add_reggroups): New function. | |
1601 | (arc_gdbarch_init): Call arc_add_reggroups. | |
1602 | ||
ac3571d9 | 1603 | 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com> |
d56834cb AK |
1604 | |
1605 | * arc-tdep.c (arc_skip_prologue): Log "pc" address. | |
1606 | ||
9f6c202e TV |
1607 | 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1608 | Simon Marchi <simon.marchi@polymtl.ca> | |
1609 | Tom de Vries <tdevries@suse.de> | |
1610 | ||
1611 | * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for | |
1612 | DW_AT_ranges. | |
1613 | ||
a625a8c9 TT |
1614 | 2021-01-25 Tom Tromey <tromey@adacore.com> |
1615 | ||
1616 | * dwarf2/read.c (get_mpz): New function. | |
1617 | (get_dwarf2_rational_constant): Use it. | |
1618 | ||
19184910 TT |
1619 | 2021-01-25 Tom Tromey <tromey@adacore.com> |
1620 | ||
1621 | * ada-lang.c (resolve_subexp): Handle array context. | |
1622 | ||
b10bae18 TT |
1623 | 2021-01-23 Tom Tromey <tom@tromey.com> |
1624 | ||
1625 | PR compile/25575 | |
1626 | * compile/compile-loc2c.c (note_register): New function. | |
1627 | (pushf_register_address, pushf_register): Use it. | |
1628 | ||
3637a558 TT |
1629 | 2021-01-23 Tom Tromey <tom@tromey.com> |
1630 | ||
1631 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
1632 | Change type of "registers_used". | |
1633 | * dwarf2/loc.h (dwarf2_compile_property_to_c): Update. | |
1634 | * dwarf2/loc.c (dwarf2_compile_property_to_c) | |
1635 | (locexpr_generate_c_location, loclist_generate_c_location): Change | |
1636 | type of "registers_used". | |
1637 | * compile/compile.h (compile_dwarf_expr_to_c) | |
1638 | (compile_dwarf_bounds_to_c): Update. | |
1639 | * compile/compile-loc2c.c (pushf_register_address) | |
1640 | (pushf_register, do_compile_dwarf_expr_to_c) | |
1641 | (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type | |
1642 | of "registers_used". | |
1643 | * compile/compile-c.h (generate_c_for_variable_locations): | |
1644 | Update. | |
1645 | * compile/compile-c-symbols.c (generate_vla_size) | |
1646 | (generate_c_for_for_one_variable): Change type of | |
1647 | "registers_used". | |
1648 | (generate_c_for_variable_locations): Return std::vector. | |
1649 | * compile/compile-c-support.c (generate_register_struct): Change | |
1650 | type of "registers_used". | |
1651 | (compute): Update. | |
1652 | ||
9f7f6cb8 TT |
1653 | 2021-01-23 Tom Tromey <tom@tromey.com> |
1654 | ||
1655 | * compile/compile-internal.h (class compile_instance) | |
1656 | <set_arguments>: Change return type. | |
1657 | * compile/compile.c (compile_to_object): Remove call to reset. | |
1658 | (compile_instance::set_arguments): Change return type. | |
1659 | ||
dd5ca05f SM |
1660 | 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
1661 | ||
1662 | * gdbtypes.c (copy_type_recursive): Use get_type_arch. | |
1663 | * gdbtypes.h (struct type) <set_owner>: Add asserts. | |
1664 | ||
d3ee35db LS |
1665 | 2021-01-23 Lancelot SIX <lsix@lancelotsix.com> |
1666 | ||
1667 | * Makefile.in (SELFTESTS_SRCS): Add | |
1668 | unittests/gdb_tilde_expand-selftests.c. | |
1669 | * unittests/gdb_tilde_expand-selftests.c: New file. | |
1670 | ||
9d2d8a16 AB |
1671 | 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1672 | ||
1673 | PR cli/25956 | |
1674 | * NEWS: Mention new command. | |
1675 | * cli/cli-style.c: Add 'cli/cli-setshow.h' include. | |
1676 | (version_style): Define. | |
1677 | (cli_style_option::cli_style_option): Add intensity parameter, and | |
1678 | use as appropriate. | |
1679 | (_initialize_cli_style): Register version style set/show commands. | |
1680 | * cli/cli-style.h (cli_style_option): Add intensity parameter. | |
1681 | (version_style): Declare. | |
1682 | * top.c (print_gdb_version): Use version_stype, and styled_string | |
1683 | to print the GDB version string. | |
1684 | ||
e7b43072 AB |
1685 | 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1686 | ||
1687 | * utils.c (emit_style_escape): Only emit an escape sequence if the | |
1688 | requested style is different than the current applied style. | |
1689 | (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and | |
1690 | current applied_style. | |
1691 | (fputs_styled): Remove is_default check. | |
1692 | (fputs_styled_unfiltered): Likewise. | |
1693 | (vfprintf_styled_no_gdbfmt): Likewise. | |
1694 | ||
2189c312 SM |
1695 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
1696 | ||
1697 | * remote.h (remote_debug_printf): New. | |
1698 | (remote_debug_printf_nofunc): New. | |
1699 | (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New. | |
1700 | * remote.c: Use above macros throughout file. | |
1701 | ||
02349803 SM |
1702 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
1703 | ||
1704 | * remote.h (remote_debug): Change to bool. | |
1705 | * remote.c (remote_debug): Change to bool. | |
1706 | (_initialize_remote): Adjust. | |
1707 | ||
cda09ec9 SM |
1708 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
1709 | ||
1710 | * target.h (remote_debug): Move to... | |
1711 | * remote.h (remote_debug): ... here. | |
1712 | * top.c (remote_debug): Move to... | |
1713 | * remote.c (remote_debug): ... here. | |
1714 | * remote-sim.c: Include remote.h. | |
1715 | ||
baf2b57f SM |
1716 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
1717 | ||
1718 | * cli/cli-cmds.c (show_remote_debug): Remove. | |
1719 | (show_remote_timeout): Remove. | |
1720 | (_initialize_cli_cmds): Don't register commands. | |
1721 | * remote.c (show_remote_debug): Move here. | |
1722 | (show_remote_timeout): Move here. | |
1723 | (_initialize_remote): Register commands. | |
1724 | ||
344e9841 SM |
1725 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
1726 | ||
1727 | * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the | |
1728 | type::objfile method instead. | |
1729 | ||
30625020 SM |
1730 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
1731 | ||
1732 | * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to | |
1733 | use the type::is_objfile_owned method. | |
1734 | ||
5b7d941b SM |
1735 | 2021-01-22 Simon Marchi <simon.marchi@efficios.com> |
1736 | ||
1737 | * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust. | |
1738 | (TYPE_OWNER): Remove. | |
1739 | (TYPE_OBJFILE): Adjust. | |
1740 | (struct main_type) <flag_objfile_owned>: Rename to... | |
1741 | <m_flag_objfile_owned>: ... this. | |
1742 | <owner>: Rename to... | |
1743 | <m_owner>: ... this. | |
1744 | (struct type) <is_objfile_owned, set_owner, objfile, arch>: New | |
1745 | methods. | |
1746 | (TYPE_ALLOC): Adjust. | |
1747 | * gdbtypes.c (alloc_type): Adjust. | |
1748 | (alloc_type_arch): Adjust. | |
1749 | (alloc_type_copy): Adjust. | |
1750 | (get_type_arch): Adjust. | |
1751 | (smash_type): Adjust. | |
1752 | (lookup_array_range_type): Adjust. | |
1753 | (recursive_dump_type): Adjust. | |
1754 | (copy_type_recursive): Adjust. | |
1755 | * compile/compile-c-types.c (convert_func): Adjust. | |
1756 | (convert_type_basic): Adjust. | |
1757 | * compile/compile-cplus-types.c (compile_cplus_convert_func): | |
1758 | Adjust. | |
1759 | * language.c | |
1760 | (language_arch_info::type_and_symbol::alloc_type_symbol): | |
1761 | Adjust. | |
1762 | ||
d5d24e12 LM |
1763 | 2021-01-21 Luis Machado <luis.machado@linaro.org> |
1764 | ||
1765 | * coffread.c (enter_linenos): Passing string to complaint. | |
1766 | * valops.c (value_assign): Make array view. | |
1767 | ||
a59902a7 SM |
1768 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
1769 | ||
1770 | * auto-load.h (debug_auto_load): Move here. | |
1771 | (auto_load_debug_printf): New. | |
1772 | * auto-load.c: Use auto_load_debug_printf. | |
1773 | (debug_auto_load): Move to header. | |
1774 | * linux-thread-db.c (try_thread_db_load): Use | |
1775 | auto_load_debug_printf. | |
1776 | * main.c (captured_main_1): Likewise. | |
1777 | ||
d3abc0ce SM |
1778 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
1779 | ||
1780 | * f-valprint.c (f77_array_offset_tbl): Remove. | |
1781 | ||
1e15fcac SM |
1782 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
1783 | ||
1784 | * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file. | |
1785 | ||
439706e6 SM |
1786 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
1787 | ||
1788 | * ser-tcp.c (wait_for_connect): Use interruptible_select instead | |
1789 | of gdb_select. | |
1790 | ||
325d39e4 HD |
1791 | 2021-01-21 Hannes Domani <ssbssa@yahoo.de> |
1792 | ||
1793 | PR python/19151 | |
1794 | * python/py-breakpoint.c (bppy_get_location): Handle | |
1795 | bp_hardware_breakpoint. | |
1796 | (bppy_init): Likewise. | |
1797 | (gdbpy_breakpoint_created): Likewise. | |
1798 | ||
7cb6d92a SM |
1799 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
1800 | ||
1801 | * arm-tdep.c (arm_debug_printf): Add and use throughout file. | |
1802 | ||
d4dd4fca SM |
1803 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
1804 | ||
1805 | * gdb_bfd.c (debug_bfd_cache): Change type to bool. | |
1806 | (_initialize_gdb_bfd): Adjust. | |
1807 | ||
de53369b SM |
1808 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
1809 | ||
1810 | PR gdb/26828 | |
1811 | * dwarf2/read.c (maybe_queue_comp_unit): Add assertion. | |
1812 | ||
17e593e9 SM |
1813 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
1814 | ||
1815 | * dwarf2/read.c (follow_die_offset): Add logging. | |
1816 | (dwarf2_per_objfile::age_comp_units): Add logging. | |
1817 | ||
6bd434d6 SM |
1818 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
1819 | ||
1820 | * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static. | |
1821 | * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind, | |
1822 | aarch64_stub_unwind, aarch64_normal_base, ): Make static. | |
1823 | * arm-linux-tdep.c (arm_prologue_unwind): Make static. | |
1824 | * arm-tdep.c (struct frame_unwind): Make static. | |
1825 | * auto-load.c (auto_load_safe_path_vec): Make static. | |
1826 | * csky-tdep.c (csky_stub_unwind): Make static. | |
1827 | * gdbarch.c (gdbarch_data_registry): Make static. | |
1828 | * gnu-v2-abi.c (gnu_v2_abi_ops): Make static. | |
1829 | * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static. | |
1830 | * i386-tdep.c (i386_frame_setup_skip_insns, | |
1831 | i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns): | |
1832 | Make static. | |
1833 | * infrun.c (observer_mode): Make static. | |
1834 | * linux-nat.c (sigchld_action): Make static. | |
1835 | * linux-thread-db.c (thread_db_list): Make static. | |
1836 | * maint-test-options.c (maintenance_test_options_list): | |
1837 | * mep-tdep.c (mep_csr_registers): Make static. | |
1838 | * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name. | |
1839 | (stats): Make static. | |
1840 | * nat/linux-osdata.c (struct osdata_type): Make static. | |
1841 | * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static. | |
1842 | * progspace.c (last_program_space_num): Make static. | |
1843 | * python/py-param.c (struct parm_constant): Remove struct type | |
1844 | name. | |
1845 | (parm_constants): Make static. | |
1846 | * python/py-record-btrace.c (btpy_list_methods): Make static. | |
1847 | * python/py-record.c (recpy_gap_type): Make static. | |
1848 | * record.c (record_goto_cmdlist): Make static. | |
1849 | * regcache.c (regcache_descr_handle): Make static. | |
1850 | * registry.h (DEFINE_REGISTRY): Make definition static. | |
1851 | * symmisc.c (std_in, std_out, std_err): Make static. | |
1852 | * top.c (previous_saved_command_line): Make static. | |
1853 | * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make | |
1854 | static. | |
1855 | * unittests/command-def-selftests.c (nr_duplicates, | |
1856 | nr_invalid_prefixcmd, lists): Make static. | |
1857 | * unittests/observable-selftests.c (test_notification): Make | |
1858 | static. | |
1859 | * unittests/optional/assignment/1.cc (counter): Make static. | |
1860 | * unittests/optional/assignment/2.cc (counter): Make static. | |
1861 | * unittests/optional/assignment/3.cc (counter): Make static. | |
1862 | * unittests/optional/assignment/4.cc (counter): Make static. | |
1863 | * unittests/optional/assignment/5.cc (counter): Make static. | |
1864 | * unittests/optional/assignment/6.cc (counter): Make static. | |
1865 | ||
a6c11cbb JS |
1866 | 2021-01-20 Joel Sherrill <joel@rtems.org> |
1867 | ||
1868 | PR gdb/27219 | |
1869 | * remote.c (struct remote_thread_info) <resume_state>: Rename | |
1870 | to... | |
1871 | <get_resume_state>: ... this. | |
1872 | (remote_target::resume): Adjust. | |
1873 | (remote_target::commit_resume): Adjust. | |
1874 | (remote_target::select_thread_for_ambiguous_stop_reply): Adjust. | |
1875 | ||
6f52fdf4 SDJ |
1876 | 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net> |
1877 | Tom Tromey <tom@tromey.com> | |
1878 | ||
1879 | * stap-probe.c (stap_parse_single_operand): Handle '!' | |
1880 | operator. | |
1881 | (stap_parse_argument_conditionally): Likewise. | |
1882 | Skip spaces after processing open-parenthesis sub-expression. | |
1883 | (stap_parse_argument_1): Skip spaces after call to | |
1884 | stap_parse_argument_conditionally. | |
1885 | Handle case when right-side expression is a parenthesized | |
1886 | sub-expression. | |
1887 | Skip spaces after call to stap_parse_argument_1. | |
1888 | ||
1c3b85ad LS |
1889 | 2021-01-19 Lancelot SIX <lsix@lancelotsix.com> |
1890 | ||
1891 | * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN. | |
1892 | ||
a9a87d35 LM |
1893 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
1894 | ||
1895 | * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate | |
1896 | memory and save data. | |
1897 | (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr) | |
1898 | (trad_frame_set_unknown, trad_frame_set_value_bytes) | |
1899 | (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p) | |
1900 | (trad_frame_value_bytes_p): Remove. | |
1901 | (trad_frame_reset_saved_regs): Adjust documentation. | |
1902 | * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a | |
1903 | constructor and reset the state of the registers. | |
1904 | (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p) | |
1905 | (trad_frame_value_bytes_p, trad_frame_set_value) | |
1906 | (trad_frame_set_realreg, trad_frame_set_addr) | |
1907 | (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove. | |
1908 | (trad_frame_set_reg_realreg): Update to call member function. | |
1909 | (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise. | |
1910 | (trad_frame_get_prev_register): Likewise. | |
1911 | ||
1912 | * aarch64-tdep.c (aarch64_analyze_prologue) | |
1913 | (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1) | |
1914 | (aarch64_prologue_prev_register): Update to use member functions. | |
1915 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise. | |
1916 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise. | |
1917 | * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise. | |
1918 | * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache) | |
1919 | (arm_make_epilogue_frame_cache): Likewise. | |
1920 | * avr-tdep.c (avr_frame_unwind_cache) | |
1921 | (avr_frame_prev_register): Likewise. | |
1922 | * cris-tdep.c (cris_scan_prologue): Likewise. | |
1923 | * csky-tdep.c (csky_frame_unwind_cache): Likewise. | |
1924 | * frv-tdep.c (frv_analyze_prologue): Likewise. | |
1925 | * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise. | |
1926 | * lm32-tdep.c (lm32_frame_cache): Likewise. | |
1927 | * m32r-tdep.c (m32r_frame_unwind_cache): Likewise. | |
1928 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. | |
1929 | * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache) | |
1930 | (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise. | |
1931 | (reset_saved_regs): Adjust to set realreg. | |
1932 | * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to | |
1933 | call member functions. | |
1934 | * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache) | |
1935 | * s390-tdep.c (s390_prologue_frame_unwind_cache) | |
1936 | (s390_backchain_frame_unwind_cache): Likewise. | |
1937 | * score-tdep.c (score7_analyze_prologue) | |
1938 | (score3_analyze_prologue, score_make_prologue_cache): Likewise. | |
1939 | * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise. | |
1940 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise. | |
1941 | * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise. | |
1942 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise. | |
1943 | * tilegx-tdep.c (tilegx_analyze_prologue) | |
1944 | (tilegx_frame_cache): Likewise. | |
1945 | * v850-tdep.c (v850_frame_cache): Likewise. | |
1946 | * vax-tdep.c (vax_frame_cache): Likewise. | |
1947 | ||
bdec2917 LM |
1948 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
1949 | ||
1950 | * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead | |
1951 | of buffer + length. | |
1952 | (put_frame_register_bytes): Likewise. | |
1953 | Adjust documentation. | |
1954 | (get_frame_memory): Pass a gdb::array_view instead of buffer + length. | |
1955 | (safe_frame_unwind_memory): Likewise. | |
1956 | * frame.c (get_frame_register_bytes, put_frame_register_bytes) | |
1957 | (get_frame_memory, safe_frame_unwind_memory): Adjust to use | |
1958 | gdb::array_view. | |
1959 | * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise. | |
1960 | * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise. | |
1961 | * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise. | |
1962 | * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise. | |
1963 | * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise. | |
1964 | * dwarf2/loc.c (rw_pieced_value): Likewise. | |
1965 | * hppa-tdep.c (hppa_frame_cache): Likewise. | |
1966 | * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise. | |
1967 | * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise. | |
1968 | * i386-linux-tdep.c (i386_linux_sigtramp_start) | |
1969 | (i386_linux_rt_sigtramp_start): Likewise. | |
1970 | * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise. | |
1971 | * i386-tdep.c (i386_register_to_value): Likewise. | |
1972 | * i387-tdep.c (i387_register_to_value): Likewise. | |
1973 | * ia64-tdep.c (ia64_register_to_value): Likewise. | |
1974 | * m32r-linux-tdep.c (m32r_linux_sigtramp_start) | |
1975 | (m32r_linux_rt_sigtramp_start): Likewise. | |
1976 | * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise. | |
1977 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
1978 | * mips-tdep.c (mips_register_to_value) | |
1979 | (mips_value_to_register): Likewise. | |
1980 | * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer) | |
1981 | (ppcfbsd_sigtramp_frame_cache): Likewise. | |
1982 | * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer) | |
1983 | (ppcobsd_sigtramp_frame_cache): Likewise. | |
1984 | * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p) | |
1985 | (rs6000_register_to_value): Likewise. | |
1986 | * tilegx-tdep.c (tilegx_analyze_prologue): Likewise. | |
1987 | * tramp-frame.c (tramp_frame_start): Likewise. | |
1988 | * valops.c (value_assign): Likewise. | |
1989 | ||
ccbe4c82 LM |
1990 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
1991 | ||
1992 | * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an | |
1993 | array_view. | |
1994 | * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view | |
1995 | instead of buffer and size. | |
1996 | (trad_frame_set_reg_value_bytes): Likewise. | |
1997 | * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise. | |
1998 | (trad_frame_set_value_bytes): Likewise. | |
1999 | ||
0e7620dc MF |
2000 | 2021-01-18 Mike Frysinger <vapier@gentoo.org> |
2001 | ||
2002 | * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s. | |
2003 | ||
6a9ad81c AB |
2004 | 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com> |
2005 | ||
2006 | * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete. | |
2007 | (riscv_fbsd_gregset): Use riscv_supply_regset. | |
2008 | (riscv_fbsd_fpregset): Likewise. | |
2009 | * riscv-linux-tdep.c (riscv_linux_gregset): Likewise. | |
2010 | (riscv_linux_fregset): Likewise. | |
2011 | * riscv-tdep.c (riscv_supply_regset): Define new function. | |
2012 | * riscv-tdep.h (riscv_supply_regset): Declare new function. | |
2013 | ||
d3d7d1ba TV |
2014 | 2021-01-18 Tom de Vries <tdevries@suse.de> |
2015 | ||
2016 | PR tdep/27172 | |
2017 | * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR): | |
2018 | New macro. | |
2019 | (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper | |
2020 | for SEGV_BNDERR. | |
2021 | ||
aa2838cc SM |
2022 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
2023 | ||
2024 | * remote.c (class remote_target) <remote_hostio_send_command, | |
2025 | remote_hostio_parse_result>: Constify parameter. | |
2026 | (remote_hostio_parse_result): Likewise. | |
2027 | (remote_target::remote_hostio_send_command): Adjust. | |
2028 | (remote_target::remote_hostio_pread_vFile): Adjust. | |
2029 | (remote_target::fileio_readlink): Adjust. | |
2030 | (remote_target::fileio_fstat): Adjust. | |
2031 | ||
b5c8f22d SM |
2032 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
2033 | ||
2034 | * remote.c (remote_target::start_remote): Move wait_status to | |
2035 | narrower scope. | |
2036 | ||
e3b2741b SM |
2037 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
2038 | ||
2039 | * remote.c (class remote_target): | |
2040 | <add_current_inferior_and_thread>: Constify parameter. | |
2041 | (stop_reply_extract_thread): Likewise. | |
2042 | (remote_target::get_current_thread): Likewise. | |
2043 | (remote_target::add_current_inferior_and_thread): Likewise. | |
2044 | ||
cecb1912 SM |
2045 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
2046 | ||
2047 | * remote.c (class remote_target) | |
2048 | <remote_unpack_thread_info_response, | |
2049 | parse_threadlist_response>: Constify parameter and/or return | |
2050 | value and or local variable. | |
2051 | (stub_unpack_int): Likewise. | |
2052 | (unpack_nibble): Likewise. | |
2053 | (unpack_byte): Likewise. | |
2054 | (unpack_int): Likewise. | |
2055 | (unpack_string): Likewise. | |
2056 | (unpack_threadid): Likewise. | |
2057 | (remote_target::remote_unpack_thread_info_response): Likewise. | |
2058 | (remote_target::parse_threadlist_response): Likewise. | |
2059 | ||
5a11fff0 AB |
2060 | 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com> |
2061 | ||
2062 | * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0. | |
2063 | ||
17e89137 LS |
2064 | 2021-01-14 Lancelot Six <lsix@lancelotsix.com> |
2065 | ||
2066 | * MAINTAINERS (Write After Approval): Add myself. | |
2067 | ||
58eadc4b BE |
2068 | 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2069 | ||
2070 | * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error | |
2071 | because is_trivially_default_constructible was first implemented with | |
2072 | gcc-5. | |
2073 | ||
5fae2a2c TV |
2074 | 2021-01-14 Tom de Vries <tdevries@suse.de> |
2075 | ||
2076 | PR breakpoints/27151 | |
2077 | * objfiles.h (in_plt_section): Handle .plt.sec. | |
2078 | ||
8f66807b AB |
2079 | 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
2080 | ||
2081 | PR gdb/26819 | |
2082 | * remote.c | |
2083 | (remote_target::select_thread_for_ambiguous_stop_reply): New | |
2084 | member function. | |
2085 | (remote_target::process_stop_reply): Call | |
2086 | select_thread_for_ambiguous_stop_reply. | |
2087 | ||
bd497355 SM |
2088 | 2021-01-13 Simon Marchi <simon.marchi@efficios.com> |
2089 | ||
2090 | * record-btrace.c (class record_btrace_target): Remove. | |
2091 | (record_btrace_target::commit_resume): Remove. | |
2092 | * record-full.c (class record_full_target): Remove. | |
2093 | (record_full_target::commit_resume): Remove. | |
2094 | ||
c9d22089 SM |
2095 | 2021-01-13 Simon Marchi <simon.marchi@efficios.com> |
2096 | ||
2097 | * remote.c (enum class resume_state): New. | |
2098 | (struct resumed_pending_vcont_info): New. | |
2099 | (struct remote_thread_info) <resume_state, set_not_resumed, | |
2100 | set_resumed_pending_vcont, resumed_pending_vcont_info, | |
2101 | set_resumed, m_resume_state, m_resumed_pending_vcont_info>: | |
2102 | New. | |
2103 | <last_resume_step, last_resume_sig, vcont_resumed>: Remove. | |
2104 | (remote_target::remote_add_thread): Adjust. | |
2105 | (remote_target::process_initial_stop_replies): Adjust. | |
2106 | (remote_target::resume): Adjust. | |
2107 | (remote_target::commit_resume): Rely on state in | |
2108 | remote_thread_info and not on tp->executing. | |
2109 | (remote_target::process_stop_reply): Adjust. | |
2110 | ||
d8d1feb4 SM |
2111 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
2112 | ||
2113 | * arc-tdep.h (arc_debug_printf): New. | |
2114 | * arc-tdep.c: Use arc_debug_printf. | |
2115 | * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use. | |
2116 | * arc-linux-tdep.c (arc_linux_debug_printf): Add and use. | |
2117 | * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use. | |
2118 | ||
fb0f5031 SM |
2119 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
2120 | ||
2121 | * arc-tdep.h (arc_debug): Change type to bool. | |
2122 | * arc-tdep.c (arc_debug): Change type to bool. | |
2123 | (arc_analyze_prologue): Adjust. | |
2124 | (_initialize_arc_tdep): Use add_setshow_boolean_cmd. | |
2125 | * arc-linux-nat.c (ps_get_thread_area): Adjust. | |
2126 | ||
5bf7e91b SM |
2127 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
2128 | ||
2129 | * auto-load.c (auto_load_objfile_script_1): Use bool. | |
2130 | (execute_script_contents): Use bool. | |
2131 | ||
db972fce SM |
2132 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
2133 | ||
2134 | * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move | |
2135 | comment here. | |
2136 | * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move | |
2137 | comment to header. | |
2138 | * extension-priv.h (struct extension_language_script_ops) | |
2139 | <auto_load_enabled>: Return bool. | |
2140 | * extension.h (ext_lang_auto_load_enabled): Return bool, move | |
2141 | comment here. | |
2142 | * extension.c (ext_lang_auto_load_enabled): Return bool, move | |
2143 | comment to header. | |
2144 | * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool, | |
2145 | move comment here. | |
2146 | * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool, | |
2147 | move comment to header. | |
2148 | * python/python-header.h (gdbpy_auto_load_enabled): Return bool, | |
2149 | move comment here. | |
2150 | * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool, | |
2151 | move comment to header. | |
2152 | ||
5e12f48f SM |
2153 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
2154 | ||
2155 | * auto-load.h (file_is_auto_load_safe): Change return type to | |
2156 | bool, move comment here. | |
2157 | * auto-load.c (file_is_auto_load_safe): Change return type and | |
2158 | advice_printed to bool. Move comment to header. | |
2159 | ||
54ca9002 SM |
2160 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
2161 | ||
2162 | * jit.c (jit_debug_printf): New, use throughout file. | |
2163 | ||
24a7f1b5 SM |
2164 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
2165 | ||
2166 | * infrun.c (normal_stop): Fix indentation. | |
2167 | ||
fe7a351a SM |
2168 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
2169 | ||
2170 | * top.h (readnow_symbol_files, readnever_symbol_files): Move | |
2171 | declarations to ... | |
2172 | * symfile.h: ... here. | |
2173 | * symfile.c: Update doc. | |
2174 | ||
16e9019e SM |
2175 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
2176 | ||
2177 | * target.h (baud_rate, serial_parity): Move declarations... | |
2178 | * serial.h: ... here. | |
2179 | * main.c: Include serial.h. | |
2180 | * serial.c (baud_rate, serial_parity): Update doc. | |
2181 | ||
b2f2ae0d SM |
2182 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
2183 | ||
2184 | * top.c (pre_init_ui_hook): Remove. | |
2185 | ||
5291fe3c SP |
2186 | 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com> |
2187 | ||
2188 | * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers. | |
2189 | (aarch64_vnv_type): Add "bf" type in h field of v registers. | |
2190 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated. | |
2191 | * features/aarch64-fpu.xml: Add bfloat16 type. | |
2192 | ||
ce38f5ed AB |
2193 | 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com> |
2194 | ||
2195 | * expprint.c (dump_subexp_body_standard): Handle OP_BOOL. | |
2196 | ||
7c654b71 AB |
2197 | 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com> |
2198 | ||
2199 | * f-exp.y (dot_ops): Rename to... | |
2200 | (fortran_operators): ...this. Add a header comment. Add symbol | |
2201 | based operators. | |
2202 | (yylex): Update to use fortran_operators not dot_ops. Remove | |
2203 | special handling for '**', this is now included in | |
2204 | fortran_operators. | |
2205 | ||
c6185dce SM |
2206 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
2207 | ||
2208 | * arch/aarch64-insn.h (aarch64_debug_printf): New. | |
2209 | * arch/aarch64-insn.c: Use aarch64_debug_printf. | |
2210 | * aarch64-tdep.c: Use aarch64_debug_printf. | |
2211 | ||
eef401dc SM |
2212 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
2213 | ||
2214 | * solib-aix.c (solib_aix_debug_printf): New, use throughout | |
2215 | file. | |
2216 | ||
062eaacb SM |
2217 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
2218 | ||
2219 | * jit.c (jit_debug): Change type to bool. | |
2220 | (_initialize_jit): Adjust. | |
2221 | ||
54585eee TT |
2222 | 2021-01-09 Tom Tromey <tom@tromey.com> |
2223 | ||
2224 | PR compile/23672 | |
2225 | * compile/compile.c (compile_to_object): Avoid crash when | |
2226 | osabi_triplet_regexp returns NULL. | |
2227 | ||
bc167b6b TT |
2228 | 2021-01-09 Tom Tromey <tom@tromey.com> |
2229 | ||
2230 | * tracepoint.h (class collection_list) <append_exp>: Take a | |
2231 | std::string. | |
2232 | * tracepoint.c (collection_list::append_exp): Take a std::string. | |
2233 | (encode_actions_1): Update. | |
2234 | ||
8fc48b79 TT |
2235 | 2021-01-08 Tom Tromey <tromey@adacore.com> |
2236 | ||
2237 | * parse.c (parse_expression): Add void_context_p parameter. Use | |
2238 | parse_exp_in_context. | |
2239 | * printcmd.c (print_command_1): Change voidprint to bool. Pass to | |
2240 | parse_expression. | |
2241 | (print_command, call_command): Update. | |
2242 | * expression.h (parse_expression): Add void_context_p parameter. | |
2243 | ||
3c8c6de2 AB |
2244 | 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
2245 | ||
2246 | * value.c (set_value_component_location): Adjust the VALUE_LVAL | |
2247 | for internalvar components that have a dynamic location. | |
2248 | ||
1940319c TV |
2249 | 2021-01-08 Tom de Vries <tdevries@suse.de> |
2250 | ||
2251 | PR gdb/26881 | |
2252 | * breakpoint.c (create_exception_master_breakpoint_probe) | |
2253 | (create_exception_master_breakpoint_hook): Factor out | |
2254 | of ... | |
2255 | (create_exception_master_breakpoint): ... here. Only try to install | |
2256 | the master exception breakpoint in objfile.debug using the | |
2257 | _Unwind_DebugHook method, if the install using probes in objfile | |
2258 | failed. | |
2259 | ||
e3436813 AB |
2260 | 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
2261 | ||
2262 | * f-lang.c (fortran_value_subarray): Call value_from_component. | |
2263 | ||
e904f56d MF |
2264 | 2021-01-07 Mike Frysinger <vapier@gentoo.org> |
2265 | ||
2266 | * remote-sim.c: Include memory-map.h. | |
2267 | (gdbsim_target): Define memory_map override. | |
2268 | (gdbsim_target::memory_map): Define. | |
2269 | ||
959d6a67 TT |
2270 | 2021-01-07 Tom Tromey <tromey@adacore.com> |
2271 | ||
2272 | * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix. | |
2273 | ||
d4813f10 TT |
2274 | 2021-01-07 Tom Tromey <tromey@adacore.com> |
2275 | ||
2276 | * ada-lang.c (add_component_interval): Start loop using vector's | |
2277 | updated size. | |
2278 | ||
b49180ac TT |
2279 | 2021-01-06 Tom Tromey <tromey@adacore.com> |
2280 | ||
2281 | * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>: | |
2282 | Do not cast result. | |
2283 | * valarith.c (fixed_point_binop): Handle multiplication | |
2284 | and division specially. | |
2285 | * valops.c (value_to_gdb_mpq): New function. | |
2286 | (value_cast_to_fixed_point): Use it. | |
2287 | ||
55195361 HD |
2288 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
2289 | ||
2290 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): | |
2291 | Call wnoutrefresh instead of tui_win_info::refresh_window. | |
2292 | ||
1b6d4bb2 HD |
2293 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
2294 | ||
2295 | * tui/tui-source.c (tui_source_window::show_line_number): | |
2296 | Redraw second space after line number. | |
2297 | ||
b5ff370e HD |
2298 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
2299 | ||
2300 | PR tui/26927 | |
2301 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): | |
2302 | Fix source pad size in prefresh. | |
2303 | (tui_source_window_base::show_source_content): Grow source pad | |
2304 | if necessary. | |
2305 | ||
c68ea49f MF |
2306 | 2021-01-04 Mike Frysinger <vapier@gentoo.org> |
2307 | ||
2308 | * bfin-tdep.c (bfin_push_dummy_call): Use align_up. | |
2309 | (bfin_frame_align): Use align_down. | |
2310 | ||
e4ad960a TV |
2311 | 2021-01-04 Tom de Vries <tdevries@suse.de> |
2312 | ||
2313 | * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq | |
2314 | terminators that do not terminate anything. | |
2315 | ||
3ec3145c SM |
2316 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
2317 | ||
2318 | * debug.c (debug_print_depth): New. | |
2319 | * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New. | |
2320 | (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New. | |
2321 | * infrun.c (start_step_over): Use | |
2322 | INFRUN_SCOPED_DEBUG_ENTER_EXIT. | |
2323 | (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and | |
2324 | INFRUN_SCOPED_DEBUG_START_END. | |
2325 | (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT. | |
2326 | ||
e71daf80 SM |
2327 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
2328 | ||
2329 | * infrun.c (print_target_wait_results): Use infrun_debug_printf. | |
2330 | ||
335709bc SM |
2331 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
2332 | ||
2333 | * utils.c (vfprintf_unfiltered): Print timestamp only when | |
2334 | previous debug output ended with a newline. | |
2335 | ||
098caef4 LM |
2336 | 2021-01-04 Luis Machado <luis.machado@linaro.org> |
2337 | ||
2338 | Update all users of trad_frame_saved_reg to use the new member | |
2339 | functions. | |
2340 | ||
2341 | Remote all struct keywords from declarations of trad_frame_saved_reg | |
2342 | types, except on forward declarations. | |
2343 | ||
2344 | * aarch64-tdep.c: Update. | |
2345 | * alpha-mdebug-tdep.c: Update. | |
2346 | * alpha-tdep.c: Update. | |
2347 | * arc-tdep.c: Update. | |
2348 | * arm-tdep.c: Update. | |
2349 | * avr-tdep.c: Update. | |
2350 | * cris-tdep.c: Update. | |
2351 | * csky-tdep.c: Update. | |
2352 | * frv-tdep.c: Update. | |
2353 | * hppa-linux-tdep.c: Update. | |
2354 | * hppa-tdep.c: Update. | |
2355 | * hppa-tdep.h: Update. | |
2356 | * lm32-tdep.c: Update. | |
2357 | * m32r-linux-tdep.c: Update. | |
2358 | * m32r-tdep.c: Update. | |
2359 | * m68hc11-tdep.c: Update. | |
2360 | * mips-tdep.c: Update. | |
2361 | * moxie-tdep.c: Update. | |
2362 | * riscv-tdep.c: Update. | |
2363 | * rs6000-tdep.c: Update. | |
2364 | * s390-linux-tdep.c: Update. | |
2365 | * s390-tdep.c: Update. | |
2366 | * score-tdep.c: Update. | |
2367 | * sparc-netbsd-tdep.c: Update. | |
2368 | * sparc-sol2-tdep.c: Update. | |
2369 | * sparc64-fbsd-tdep.c: Update. | |
2370 | * sparc64-netbsd-tdep.c: Update. | |
2371 | * sparc64-obsd-tdep.c: Update. | |
2372 | * sparc64-sol2-tdep.c: Update. | |
2373 | * tilegx-tdep.c: Update. | |
2374 | * v850-tdep.c: Update. | |
2375 | * vax-tdep.c: Update. | |
2376 | ||
2377 | * frame-unwind.c (frame_unwind_got_bytes): Make parameter const. | |
2378 | * frame-unwind.h (frame_unwind_got_bytes): Likewise. | |
2379 | ||
2380 | * trad-frame.c: Update. | |
2381 | Remove TF_REG_* enum. | |
2382 | (trad_frame_alloc_saved_regs): Add a static assertion to check for | |
2383 | a trivially-constructible struct. | |
2384 | (trad_frame_reset_saved_regs): Adjust to use member function. | |
2385 | (trad_frame_value_p): Likewise. | |
2386 | (trad_frame_addr_p): Likewise. | |
2387 | (trad_frame_realreg_p): Likewise. | |
2388 | (trad_frame_value_bytes_p): Likewise. | |
2389 | (trad_frame_set_value): Likewise. | |
2390 | (trad_frame_set_realreg): Likewise. | |
2391 | (trad_frame_set_addr): Likewise. | |
2392 | (trad_frame_set_unknown): Likewise. | |
2393 | (trad_frame_set_value_bytes): Likewise. | |
2394 | (trad_frame_get_prev_register): Likewise. | |
2395 | * trad-frame.h: Update. | |
2396 | (trad_frame_saved_reg_kind): New enum. | |
2397 | (struct trad_frame_saved_reg) <addr, realreg, data>: Remove. | |
2398 | <m_kind, m_reg>: New member fields. | |
2399 | <set_value, set_realreg, set_addr, set_unknown, set_value_bytes> | |
2400 | <kind, value, realreg, addr, value_bytes, is_value, is_realreg> | |
2401 | <is_addr, is_unknown, is_value_bytes>: New member functions. | |
2402 | ||
9898e882 SM |
2403 | 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca> |
2404 | ||
2405 | * target-float.c: Fix typos. | |
2406 | ||
b66b4e65 HD |
2407 | 2021-01-02 Hannes Domani <ssbssa@yahoo.de> |
2408 | ||
2409 | * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer. | |
2410 | ||
b5b5650a JB |
2411 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
2412 | ||
2413 | * gdbarch.sh: Update copyright year range. | |
2414 | ||
3666a048 JB |
2415 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
2416 | ||
2417 | Update copyright year range in copyright header of all GDB files. | |
2418 | ||
ff7e39b6 JB |
2419 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
2420 | ||
2421 | * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport" | |
2422 | to the list of directories to update. | |
2423 | ||
2b47c078 JB |
2424 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
2425 | ||
2426 | * top.c (print_gdb_version): Update copyright year. | |
2427 | ||
476923f1 | 2428 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
c8f02daa | 2429 | |
476923f1 | 2430 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020. |
c8f02daa | 2431 | |
476923f1 | 2432 | For older changes see ChangeLog-2020. |
c906108c SS |
2433 | \f |
2434 | Local Variables: | |
2435 | mode: change-log | |
2436 | left-margin: 8 | |
2437 | fill-column: 74 | |
2438 | version-control: never | |
57da7796 | 2439 | coding: utf-8 |
c906108c | 2440 | End: |