Use htab_up in auto-load.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
88f07206
TT
12020-09-17 Tom Tromey <tom@tromey.com>
2
3 * auto-load.c (struct auto_load_pspace_info)
4 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
5 <loaded_script_files, loaded_script_texts>: Change type to
6 htab_up.
7 (~auto_load_pspace_info) Remove.
8 (init_loaded_scripts_info, maybe_add_script_file)
9 (maybe_add_script_text, auto_load_info_scripts): Update.
10
9519b2ee
TT
112020-09-17 Tom Tromey <tromey@adacore.com>
12
13 * c-exp.y (name_obstack): Now static.
14
d2cd4113
CC
152020-09-17 Chungyi Chi <demonic@csie.io>
16
17 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
18
b650a282
SM
192020-09-16 Simon Marchi <simon.marchi@efficios.com>
20
21 * breakpoint.h (init_catchpoint): Change int parameter to bool.
22 (add_solib_catchpoint): Likewise.
23 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
24 to bool.
25 (add_solib_catchpoint): Change int parameter/variable to bool.
26 (catch_load_or_unload): Likewise.
27 (init_catchpoint): Likewise.
28 (create_fork_vfork_event_catchpoint): Likewise.
29 (catch_fork_command_1): Likewise.
30 (catch_exec_command_1): Likewise.
31
4d0bcfcf
SM
322020-09-16 Simon Marchi <simon.marchi@efficios.com>
33
34 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
35 Change instance_flags to m_instance_flags.
36
fe830662
TT
372020-09-16 Tom Tromey <tromey@adacore.com>
38
39 PR gdb/26598:
40 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
41
fe5ddfc3
JB
422020-09-16 John Baldwin <jhb@FreeBSD.org>
43
44 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
45 PL_FLAG_EXEC.
46 (fbsd_nat_target::insert_exec_catchpoint)
47 (fbsd_nat_target::remove_exec_catchpoint): Always define.
48 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
49 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
50
e911c666
JB
512020-09-16 John Baldwin <jhb@FreeBSD.org>
52
53 * configure.ac: Remove check for kinfo_getvmmap().
54 * configure, config.in: Regenerate.
55 * fbsd-nat.c (fbsd_read_mapping): Remove
56 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
57 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
58 kinfo_get_vmmap() are always present.
59
1f17d372
JB
602020-09-16 John Baldwin <jhb@FreeBSD.org>
61
62 * fbsd-nat.c: Always include support for
63 TARGET_OBJECT_SIGNAL_INFO.
64
bcb1da7f
JB
652020-09-16 John Baldwin <jhb@FreeBSD.org>
66
67 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
68 sysctl and remove procfs fallback.
69
5515f729
JB
702020-09-16 John Baldwin <jhb@FreeBSD.org>
71
72 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
73 * fbsd-nat.h: Likewise.
74
da1df1db
TBA
752020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
76
77 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
78 argument.
79
0e25e767
AB
802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * ada-lang.c (ada_language_data): Delete.
83 (ada_language): Remove references to ada_language_data.
84 * c-lang.c (c_language_data): Delete.
85 (c_language): Remove references to c_language_data.
86 (cplus_language_data): Delete.
87 (cplus_language): Remove references to cplus_language_data.
88 (asm_language_data): Delete.
89 (asm_language): Remove references to asm_language_data.
90 (minimal_language_data): Delete.
91 (minimal_language): Remove references to minimal_language_data.
92 * d-lang.c (d_language_data): Delete.
93 (d_language): Remove references to d_language_data.
94 * f-lang.c (f_language_data): Delete.
95 (f_language): Remove references to f_language_data.
96 * go-lang.c (go_language_data): Delete.
97 (go_language): Remove references to go_language_data.
98 * language.c (unknown_language_data): Delete.
99 (unknown_language): Remove references to unknown_language_data.
100 (auto_language_data): Delete.
101 (auto_language): Remove references to auto_language_data.
102 * language.h (language_data): Delete struct.
103 (language_defn): No longer inherit from language_data.
104 * m2-lang.c (m2_language_data): Delete.
105 (m2_language): Remove references to m2_language_data.
106 * objc-lang.c (objc_language_data): Delete.
107 (objc_language): Remove references to objc_language_data.
108 * opencl-lang.c (opencl_language_data): Delete.
109 (opencl_language): Remove references to opencl_language_data.
110 * p-lang.c (pascal_language_data): Delete.
111 (pascal_language): Remove references to pascal_language_data.
112 * rust-lang.c (rust_language_data): Delete.
113 (rust_language): Remove references to rust_language_data.
114
b7c6e27d
AB
1152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * ada-lang.c (ada_language_data): Remove la_op_print_tab
118 initializer.
119 (ada_language::opcode_print_table): New member function.
120 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
121 (c_language::opcode_print_table): New member function.
122 (cplus_language_data): Remove la_op_print_tab initializer.
123 (cplus_language::opcode_print_table): New member function.
124 (asm_language_data): Remove la_op_print_tab initializer.
125 (asm_language::opcode_print_table): New member function.
126 (minimal_language_data): Remove la_op_print_tab initializer.
127 (minimal_language::opcode_print_table): New member function.
128 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
129 (d_language::opcode_print_table): New member function.
130 * expprint.c (print_subexp_standard): Update call to
131 opcode_print_table.
132 (op_string): Likewise.
133 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
134 (f_language::opcode_print_table): New member function.
135 * go-lang.c (go_language_data): Remove la_op_print_tab
136 initializer.
137 (go_language::opcode_print_table): New member function.
138 * language.c (unknown_language_data): Remove la_op_print_tab
139 initializer.
140 (unknown_language::opcode_print_table): New member function.
141 (auto_language_data): Remove la_op_print_tab initializer.
142 (auto_language::opcode_print_table): New member function.
143 * language.h (language_data): Remove la_op_print_tab field.
144 (language_defn::opcode_print_table): Declare new member function.
145 * m2-lang.c (m2_language_data): Remove la_op_print_tab
146 initializer.
147 (m2_language::opcode_print_table): New member function.
148 * objc-lang.c (objc_language_data): Remove la_op_print_tab
149 initializer.
150 (objc_language::opcode_print_table): New member function.
151 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
152 initializer.
153 (opencl_language::opcode_print_table): New member function.
154 * p-lang.c (pascal_language_data): Remove la_op_print_tab
155 initializer.
156 (pascal_language::opcode_print_table): New member function.
157 * rust-lang.c (rust_language_data): Remove la_op_print_tab
158 initializer.
159 (rust_language::opcode_print_table): New member function.
160
5aba6ebe
AB
1612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
164 (ada_language::expression_ops): New member function.
165 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
166 (c_language::expression_ops): New member function.
167 (cplus_language_data): Remove la_exp_desc initializer.
168 (cplus_language::expression_ops): New member function.
169 (asm_language_data): Remove la_exp_desc initializer.
170 (asm_language::expression_ops): New member function.
171 (minimal_language_data): Remove la_exp_desc initializer.
172 (minimal_language::expression_ops): New member function.
173 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
174 (d_language::expression_ops): New member function.
175 * eval.c (evaluate_subexp): Update call to expression_ops.
176 * expprint.c (print_subexp): Likewise.
177 (op_name): Likewise.
178 (dump_subexp_body): Likewise.
179 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
180 (f_language::expression_ops): New member function.
181 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
182 (go_language::expression_ops): New member function.
183 * language.c (language_defn::expression_ops): New function.
184 (unknown_language_data): Remove la_exp_desc initializer.
185 (auto_language_data): Likewise.
186 * language.h (language_data): Remove la_exp_desc field.
187 (language_defn::expression_ops): Declare new member function.
188 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
189 (m2_language::expression_ops): New member function.
190 * objc-lang.c (objc_language_data): Remove la_exp_desc
191 initializer.
192 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
193 initializer.
194 (opencl_language::expression_ops): New member function.
195 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
196 * parse.c (operator_length): Update call to expression_ops.
197 (exp_iterate): Likewise.
198 * rust-lang.c (rust_language_data): Remove la_exp_desc
199 initializer.
200 (ruse_language::expression_ops): New member function.
201
b63a3f3f
AB
2022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * ada-lang.c (ada_language_data): Remove la_varobj_ops
205 initializer.
206 (ada_language::varobj_ops): New member function.
207 * c-lang.c (c_language_data): Remove la_varobj_ops
208 initializer.
209 (cplus_language_data): Likewise.
210 (cplus_language::varobj_ops): New member function.
211 (asm_language_data): Remove la_varobj_ops initializer.
212 (minimal_language_data): Likewise.
213 * d-lang.c (d_language_data): Likewise.
214 * f-lang.c (f_language_data): Likewise.
215 * go-lang.c (go_language_data): Likewise.
216 * language.c (language_defn::varobj_ops): New function.
217 (unknown_language_data): Remove la_varobj_ops
218 initializer.
219 (auto_language_data): Likewise.
220 * language.h (language_data): Remove la_varobj_ops field.
221 (language_defn::varobj_ops): Declare new member function.
222 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
223 * objc-lang.c (objc_language_data): Likewise.
224 * opencl-lang.c (opencl_language_data): Likewise.
225 * p-lang.c (pascal_language_data): Likewise.
226 * rust-lang.c (rust_language_data): Likewise.
227 * varobj.c (varobj_create): Update call to varobj_ops.
228 * varobj.h (default_varobj_ops): Delete define.
229
1ac14a04
AB
2302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * ada-lang.c (ada_language_data): Remove la_macro_expansion
233 initializer.
234 * c-lang.c (c_language_data): Likewise.
235 (c_language::macro_expansion): New member function.
236 (cplus_language_data): Likewise.
237 (cplus_language::macro_expansion): New member function.
238 (asm_language_data): Likewise.
239 (asm_language::macro_expansion): New member function.
240 (minimal_language_data): Likewise.
241 (minimal_language::macro_expansion): New member function.
242 * d-lang.c (d_language_data): Remove la_macro_expansion
243 initializer.
244 * f-lang.c (f_language_data): Likewise.
245 * go-lang.c (go_language_data): Likewise.
246 * language.c (unknown_language_data): Likewise.
247 (auto_language_data): Likewise.
248 * language.h (language_data): Remove la_macro_expansion field.
249 (language_defn::macro_expansion): New member function.
250 * m2-lang.c (m2_language_data): Remove la_macro_expansion
251 initializer.
252 * objc-lang.c (objc_language_data): Likewise.
253 (objc_language::macro_expansion): New member function.
254 * opencl-lang.c (opencl_language_data): Likewise.
255 (opencl_language::macro_expansion): New member function.
256 * p-lang.c (pascal_language_data): Remove la_macro_expansion
257 initializer.
258 * rust-lang.c (rust_language_data): Likewise.
259 * symtab.c (default_collect_symbol_completion_matches_break_on):
260 Update call to macro_expansion.
261
3a3440fb
AB
2622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * ada-lang.c (ada_language_data): Remove la_array_ordering
265 initializer.
266 * c-lang.c (c_language_data): Likewise.
267 (cplus_language_data): Likewise.
268 (asm_language_data): Likewise.
269 (minimal_language_data): Likewise.
270 * d-lang.c (d_language_data): Likewise.
271 * dwarf2/read.c (read_array_order): Update for call to
272 array_ordering.
273 * f-lang.c (f_language_data): Remove la_array_ordering
274 initializer.
275 (f_language::array_ordering): New member function.
276 * go-lang.c (go_language_data): Remove la_array_ordering
277 initializer.
278 * language.c (unknown_language_data): Likewise.
279 (auto_language_data): Likewise.
280 * language.h (language_data): Delete la_array_ordering field.
281 (language_defn::array_ordering): New member function.
282 * m2-lang.c (m2_language_data): Remove la_array_ordering
283 initializer.
284 * objc-lang.c (objc_language_data): Likewise.
285 * opencl-lang.c (opencl_language_data): Likewise.
286 * p-lang.c (pascal_language_data): Likewise.
287 * rust-lang.c (rust_language_data): Likewise.
288
0d201fa4
AB
2892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
292 initializer.
293 * c-lang.c (c_language_data): Likewise.
294 (cplus_language_data): Likewise.
295 (asm_language_data): Likewise.
296 (minimal_language_data): Likewise.
297 * d-lang.c (d_language_data): Likewise.
298 * f-lang.c (f_language_data): Likewise.
299 (f_language::case_sensitivity): New member function.
300 * go-lang.c (go_language_data): Remove la_case_sensitivity
301 initializer.
302 * language.c (enum case_mode): Moved here from language.h.
303 (case_mode): Make static.
304 (show_case_command): Update for case_sensitivity being a method.
305 (set_case_command): Likewise.
306 (set_range_case): Likewise.
307 (unknown_language_data): Remove la_case_sensitivity initializer.
308 (auto_language_data): Likewise.
309 * language.h (case_mode): Delete, move enum declaration to
310 language.c.
311 (language_data): Delete la_case_sensitivity field.
312 (language_defn::case_sensitivity): New member function.
313 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
314 initializer.
315 * objc-lang.c (objc_language_data): Likewise.
316 * opencl-lang.c (opencl_language_data): Likewise.
317 * p-lang.c (pascal_language_data): Likewise.
318 * rust-lang.c (rust_language_data): Likewise.
319
efdf6a73
AB
3202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
321
322 * ada-lang.c (ada_language_data): Remove la_range_check
323 initializer.
324 * c-lang.c (c_language_data): Likewise.
325 (cplus_language_data): Likewise.
326 (asm_language_data): Likewise.
327 (minimal_language_data): Likewise.
328 * d-lang.c (d_language_data): Likewise.
329 * f-lang.c (f_language_data): Likewise.
330 (f_language::range_checking_on_by_default): New member function.
331 * go-lang.c (go_language_data): Remove la_range_check initializer.
332 * language.c (enum range_mode): Moved here from language.h.
333 (range_mode): Made static.
334 (show_range_command): Update to use
335 range_checking_on_by_default.
336 (set_range_command): Likewise.
337 (set_range_case): Likewise.
338 (unknown_language_data): Remove la_range_check initializer.
339 (auto_language_data): Likewise.
340 * language.h (range_mode): Delete. Enum definition moved to
341 language.c.
342 (language_data): Remove la_range_check field.
343 (language_defn::range_checking_on_by_default): New member
344 function.
345 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
346 (m2_language::range_checking_on_by_default): New member function.
347 * objc-lang.c (objc_language_data): Remove la_range_check
348 initializer.
349 * opencl-lang.c (opencl_language_data): Likewise.
350 * p-lang.c (pascal_language_data): Likewise.
351 (pascal_language::range_checking_on_by_default): New member
352 function.
353 * rust-lang.c (rust_language_data): Remove la_range_check
354 initializer.
355 (rust_language::range_checking_on_by_default): New member
356 function.
357
bf92aec5
AB
3582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * dwarf2/read.c (dwarf2_physname): Remove special case for
361 language_go.
362 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
363 member function.
364
d3355e4d
AB
3652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * ada-lang.c (ada_language_data): Remove
368 la_store_sym_names_in_linkage_form_p initializer.
369 (ada_language::store_sym_names_in_linkage_form_p): New member
370 function.
371 * c-lang.c (c_language_data): Remove
372 la_store_sym_names_in_linkage_form_p initializer.
373 (c_language::store_sym_names_in_linkage_form_p): New member
374 function.
375 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
376 initializer.
377 (asm_language_data): Likewise.
378 (asm_language::store_sym_names_in_linkage_form_p): New member
379 function.
380 (minimal_language_data): Remove
381 la_store_sym_names_in_linkage_form_p initializer.
382 (minimal_language::store_sym_names_in_linkage_form_p): New member
383 function.
384 * d-lang.c (d_language_data): Remove
385 la_store_sym_names_in_linkage_form_p initializer.
386 * dwarf2/read.c (dwarf2_physname): Update call to
387 store_sym_names_in_linkage_form_p.
388 * f-lang.c (f_language_data): Remove
389 la_store_sym_names_in_linkage_form_p initializer.
390 * go-lang.c (go_language_data): Remove
391 la_store_sym_names_in_linkage_form_p initializer.
392 * language.c (unknown_language_data): Remove
393 la_store_sym_names_in_linkage_form_p initializer.
394 (unknown_language::store_sym_names_in_linkage_form_p): New member
395 function.
396 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
397 initializer.
398 (auto_language::store_sym_names_in_linkage_form_p): New member
399 function.
400 * language.h (language_data): Remove
401 la_store_sym_names_in_linkage_form_p member variable.
402 (language_defn::store_sym_names_in_linkage_form_p): New member
403 function.
404 * m2-lang.c (m2_language_data): Remove
405 la_store_sym_names_in_linkage_form_p initializer.
406 * objc-lang.c (objc_language_data): Likewise.
407 * opencl-lang.c (opencl_language_data): Likewise.
408 * p-lang.c (pascal_language_data): Likewise.
409 * rust-lang.c (rust_language_data): Likewise.
410
22c12a6c
AB
4112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
412
413 * ada-lang.c (ada_language_data): Remove string_lower_bound
414 initializer.
415 * c-lang.c (c_language_data): Likewise.
416 (cplus_language_data): Likewise.
417 (asm_language_data): Likewise.
418 (minimal_language_data): Likewise.
419 * d-lang.c (d_language_data): Likewise.
420 * f-lang.c (f_language_data): Likewise.
421 * go-lang.c (go_language_data): Likewise.
422 * language.c (unknown_language_data): Likewise.
423 (auto_language_data): Likewise.
424 * language.h (language_data): Remove string_lower_bound field.
425 (language_defn::string_lower_bound): New member function.
426 * m2-lang.c (m2_language_data): Remove string_lower_bound
427 initializer.
428 (m2_language::string_lower_bound): New member function.
429 * objc-lang.c (objc_language_data): Remove string_lower_bound
430 initializer.
431 * opencl-lang.c (opencl_language_data): Likewise.
432 * p-lang.c (pascal_language_data): Likewise.
433 * rust-lang.c (rust_language_data): Likewise.
434 * valops.c (value_cstring): Update call to string_lower_bound.
435 (value_string): Likewise.
436 * value.c (allocate_repeated_value): Likewise.
437
1c236ddd
AB
4382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * valops.c (value_repeat): Fix incorrect argument name in comment.
441
67bd3fd5
AB
4422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
443
444 * ada-lang.c (ada_language_data): Remove c_style_arrays
445 initializer.
446 (ada_language::c_style_arrays_p): New member fuction.
447 * c-lang.c (c_language_data): Remove c_style_arrays
448 initializer.
449 (cplus_language_data): Likewise.
450 (asm_language_data): Likewise.
451 (minimal_language_data): Likewise.
452 * d-lang.c (d_language_data): Likewise.
453 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
454 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
455 (f_language::c_style_arrays_p): New member function.
456 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
457 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
458 * language.c (unknown_language_data): Remove c_style_arrays
459 initializer.
460 (auto_language_data): Likewise.
461 * language.h (language_data): Remove c_style_arrays field.
462 (language_defn::c_style_arrays_p): New member function.
463 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
464 (m2_language::c_style_arrays_p): New member function.
465 * objc-lang.c (objc_language_data): Remove c_style_arrays
466 initializer.
467 * opencl-lang.c (opencl_language_data): Likewise.
468 * p-lang.c (pascal_language_data): Likewise.
469 * rust-lang.c (rust_language_data): Likewise.
470 * valarith.c (value_subscript): Update call to c_style_arrays_p,
471 and update local variable to a bool.
472 * valops.c (value_cast): Update call to c_style_arrays_p.
473 (value_array): Likewise.
474 * value.c (coerce_array): Likewise.
475
85967615
AB
4762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
477
478 * ada-lang.c (ada_language_data): Remove la_language initializer.
479 * c-lang.c (c_language_data): Likewise.
480 (cplus_language_data): Likewise.
481 (asm_language_data): Likewise.
482 (minimal_language_data): Likewise.
483 * d-lang.c (d_language_data): Likewise.
484 * f-lang.c (f_language_data): Likewise.
485 * go-lang.c (go_language_data): Likewise.
486 * language.c (unknown_language_data): Likewise.
487 (auto_language_data): Likewise.
488 * language.h (language_data): Remove la_language field.
489 (language_defn::language_defn): Initialise la_language field.
490 (language_defn::la_language): New member variable.
491 * m2-lang.c (m2_language_data): Remove la_language field.
492 * objc-lang.c (objc_language_data): Likewise.
493 * opencl-lang.c (opencl_language_data): Likewise.
494 * p-lang.c (pascal_language_data): Likewise.
495 * rust-lang.c (rust_language_data): Likewise.
496
e171d6f1
AB
4972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
498
499 * ada-lang.c (ada_extensions): Delete, moved into
500 ada_language::filename_extensions.
501 (ada_language_data): Remove la_filename_extensions initializer.
502 (ada_language::filename_extensions): New member function.
503 * c-lang.c (c_extensions): Delete, moved into
504 c_language::filename_extensions.
505 (c_language_data): Remove la_filename_extensions initializer.
506 (c_language::filename_extensions): New member function.
507 (cplus_extensions): Delete, moved into
508 cplus_language::filename_extensions.
509 (cplus_language_data): Remove la_filename_extensions initializer.
510 (cplus_language::filename_extensions): New member function.
511 (asm_extensions): Delete, moved into
512 asm_language::filename_extensions.
513 (asm_language_data): Remove la_filename_extensions initializer.
514 (asm_language::filename_extensions): New member function.
515 (minimal_language_data): Remove la_filename_extensions
516 initializer.
517 * d-lang.c (d_extensions): Delete, moved into
518 d_language::filename_extensions.
519 (d_language_data): Remove la_filename_extensions initializer.
520 (d_language::filename_extensions): New member function.
521 * f-lang.c (f_extensions): Delete, moved into
522 f_language::filename_extensions.
523 (f_language_data): Remove la_filename_extensions initializer.
524 (f_language::filename_extensions): New member function.
525 * go-lang.c (go_language_data): Remove la_filename_extensions
526 initializer.
527 * language.c (add_set_language_command): Update now that
528 filename_extensions returns a vector.
529 (unknown_language_data): Remove la_filename_extensions
530 initializer.
531 (auto_language_data): Likewise.
532 * language.h (language_data): Remove la_filename_extensions field.
533 (language_defn::filename_extensions): New member function.
534 * m2-lang.c (m2_language_data): Remove la_filename_extensions
535 initializer.
536 * objc-lang.c (objc_extensions): Delete, moved into
537 objc_language::filename_extensions.
538 (objc_language_data): Remove la_filename_extensions initializer.
539 (objc_language::filename_extensions): New member function.
540 * opencl-lang.c (opencl_language_data): Remove
541 la_filename_extensions initializer.
542 * p-lang.c (pascal_extensions): Delete, moved into
543 pascal_language::filename_extensions.
544 (pascal_language_data): Remove la_filename_extensions initializer.
545 (pascal_language::filename_extensions): New member function.
546 * rust-lang.c (rust_extensions): Delete, moved into
547 rust_language::filename_extensions.
548 (rust_language_data): Remove la_filename_extensions initializer.
549 (rust_language::filename_extensions): New member function.
550 * symfile.c (add_filename_language): Add new assert.
551
6f7664a9
AB
5522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * ada-lang.c (ada_language_data): Remove la_name and
555 la_natural_name initializers.
556 (ada_language::name): New member function.
557 (ada_language::natural_name): New member function.
558 * c-lang.c (c_language_data): Remove la_name and
559 la_natural_name initializers.
560 (c_language::name): New member function.
561 (c_language::natural_name): New member function.
562 (cplus_language_data): Remove la_name and
563 la_natural_name initializers.
564 (cplus_language::name): New member function.
565 (cplus_language::natural_name): New member function.
566 (asm_language_data): Remove la_name and
567 la_natural_name initializers.
568 (asm_language::name): New member function.
569 (asm_language::natural_name): New member function.
570 (minimal_language_data): Remove la_name and
571 la_natural_name initializers.
572 (minimal_language::name): New member function.
573 (minimal_language::natural_name): New member function.
574 * compile/compile.c (compile_to_object): Update call to
575 lanugage_defn::name.
576 * d-lang.c (d_language_data): Remove la_name and
577 la_natural_name initializers.
578 (d_language::name): New member function.
579 (d_language::natural_name): New member function.
580 * expprint.c (print_subexp_standard): Update call to
581 language_defn::name.
582 (dump_raw_expression): Likewise
583 (dump_prefix_expression): Likewise.
584 * f-lang.c (f_language_data): Remove la_name and
585 la_natural_name initializers.
586 (f_language::name): New member function.
587 (f_language::natural_name): New member function.
588 * go-lang.c (go_language_data): Remove la_name and
589 la_natural_name initializers.
590 (go_language::name): New member function.
591 (go_language::natural_name): New member function.
592 * language.c (show_language_command): Update call to
593 language_defn::name.
594 (set_language_command): Likewise.
595 (language_enum): Likewise.
596 (language_str): Likewise.
597 (add_set_language_command): Likewise, use
598 language_defn::natural_name in the doc string.
599 (unknown_language_data): Remove la_name and
600 la_natural_name initializers.
601 (unknown_language::name): New member function.
602 (unknown_language::natural_name): New member function.
603 (auto_language_data): Remove la_name and
604 la_natural_name initializers.
605 (auto_language::name): New member function.
606 (auto_language::natural_name): New member function.
607 (language_lookup_primitive_type_as_symbol): Update call to
608 language_defn::name.
609 * language.h (language_data): Remove la_name and la_natural_name
610 member variables.
611 (language_defn::name): New member function.
612 (language_defn::natural_name): New member function.
613 * m2-lang.c (m2_language_data): Remove la_name and
614 la_natural_name initializers.
615 (m2_language::name): New member function.
616 (m2_language::natural_name): New member function.
617 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
618 language_defn::natural_name.
619 * objc-lang.c (objc_language_data): Remove la_name and
620 la_natural_name initializers.
621 (objc_language::name): New member function.
622 (objc_language::natural_name): New member function.
623 * opencl-lang.c (opencl_language_data): Remove la_name and
624 la_natural_name initializers.
625 (opencl_language::name): New member function.
626 (opencl_language::natural_name): New member function.
627 * p-lang.c (pascal_language_data): Remove la_name and
628 la_natural_name initializers.
629 (pascal_language::name): New member function.
630 (pascal_language::natural_name): New member function.
631 * rust-lang.c (rust_language_data): Remove la_name and
632 la_natural_name initializers.
633 (rust_language::name): New member function.
634 (rust_language::natural_name): New member function.
635 * symtab.c (lookup_language_this): Update call to
636 language_defn::name.
637
5bae7c4e
AB
6382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 * ada-lang.c (ada_language_data): Remove la_name_of_this
641 initializer.
642 * ax-gdb.c (gen_expr): Update call to name_of_this.
643 * c-exp.y (classify_name): Likewise.
644 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
645 (cplus_language_data): Likewise.
646 (cplus_language::name_of_this): New member function.
647 (asm_language_data): Remove la_name_of_this initializer.
648 (minimal_language_data): Likewise.
649 * d-lang.c (d_language_data): Likewise.
650 (d_language::name_of_this): New member function.
651 * expprint.c (print_subexp_standard): Update call to name_of_this.
652 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
653 * go-lang.c (go_language_data): Likewise.
654 * language.c (unknown_language_data): Likewise.
655 (unknown_language::name_of_this): New member function.
656 (auto_language_data): Remove la_name_of_this initializer.
657 (auto_language::name_of_this): New member function.
658 * language.h (language_data): Delete la_name_of_this member
659 variable.
660 (language_defn::name_of_this): New member function.
661 * m2-lang.c (m2_language_data): Remove la_name_of_this
662 initializer.
663 * objc-lang.c (objc_language_data): Likewise.
664 (objc_language::name_of_this): New member function.
665 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
666 initializer.
667 * p-lang.c (pascal_language_data): Likewise.
668 (pascal_language::name_of_this): New member function.
669 * rust-lang.c (rust_language_data): Remove la_name_of_this
670 initializer.
671 * symtab.c (lookup_language_this): Update call to name_of_this.
672 (lookup_symbol_aux): Likewise.
673 * valops.c (value_of_this): Likewise.
674
22e3f3ed
AB
6752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * ada-lang.c (ada_language_data): Remove
678 la_struct_too_deep_ellipsis initializer.
679 (ada_language::struct_too_deep_ellipsis): New member function.
680 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
681 initializer.
682 (cplus_language_data): Likewise.
683 (asm_language_data): Likewise.
684 (minimal_language_data): Likewise.
685 * cp-valprint.c (cp_print_value): Update call to
686 struct_too_deep_ellipsis.
687 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
688 initializer.
689 * f-lang.c (f_language_data): Likewise.
690 (f_language::struct_too_deep_ellipsis): New member function.
691 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
692 initializer.
693 * language.c (unknown_language_data): Likewise.
694 (auto_language_data): Likewise.
695 * language.h (language_data): Delete la_struct_too_deep_ellipsis
696 member variable.
697 (language_defn::struct_too_deep_ellipsis): New member function.
698 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
699 initializer.Q
700 * objc-lang.c (objc_language_data): Likewise.
701 * opencl-lang.c (opencl_language_data): Likewise.
702 * p-lang.c (pascal_language_data): Likewise.
703 * rust-lang.c (rust_language_data): Likewise.
704 * valprint.c (val_print_check_max_depth): Update call to
705 struct_too_deep_ellipsis.
706
ed29e1c7
FW
7072020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
708
709 * MAINTAINERS (Write After Approval): Add myself.
710
12d8f940
TT
7112020-09-15 Tom Tromey <tom@tromey.com>
712
713 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
714 Remove.
715
6b5a7bc7
TT
7162020-09-15 Tom Tromey <tom@tromey.com>
717
718 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
719 and TYPE_CODE_METHODPTR cases.
720 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
721 (c_value_print_inner): Update.
722 * valprint.c (generic_value_print_memberptr): New function, from
723 c_value_print_memberptr.
724 (generic_value_print): Use it. Call cplus_print_method_ptr.
725
47f0e2ff
TT
7262020-09-15 Tom Tromey <tromey@adacore.com>
727
728 * python/python-internal.h (PyInt_FromLong): Remove define.
729 * python/py-value.c (convert_value_from_python): Use
730 gdb_py_object_from_longest.
731 * python/py-type.c (typy_get_code): Use
732 gdb_py_object_from_longest.
733 * python/py-symtab.c (salpy_get_line): Use
734 gdb_py_object_from_longest.
735 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
736 gdb_py_object_from_longest.
737 * python/py-record.c (recpy_gap_reason_code): Use
738 gdb_py_object_from_longest.
739 * python/py-record-btrace.c (recpy_bt_insn_size)
740 (recpy_bt_func_level, btpy_list_count): Use
741 gdb_py_object_from_longest.
742 * python/py-infthread.c (gdbpy_create_ptid_object): Use
743 gdb_py_object_from_longest. Fix error handling.
744 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
745 gdb_py_object_from_longest.
746 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
747 gdb_py_object_from_longest.
748 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
749 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
750 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
751
512116ce
TT
7522020-09-15 Tom Tromey <tromey@adacore.com>
753
754 * python/python.c (gdbpy_parameter_value): Use
755 gdb_py_object_from_ulongest.
756
4ab1029c
TT
7572020-09-15 Tom Tromey <tromey@adacore.com>
758
759 * python/py-infevents.c (create_register_changed_event_object):
760 Use gdb_py_object_from_longest.
761 * python/py-exitedevent.c (create_exited_event_object): Use
762 gdb_py_object_from_longest.
763
062534d4
TT
7642020-09-15 Tom Tromey <tromey@adacore.com>
765
766 * python/python.c (gdbpy_parameter_value): Use
767 gdb_py_object_from_longest.
768 * python/py-type.c (convert_field, typy_range): Use
769 gdb_py_object_from_longest.
770 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
771 gdb_py_object_from_longest.
772 * python/py-lazy-string.c (stpy_get_length): Use
773 gdb_py_object_from_longest.
774 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
775 gdb_py_object_from_longest.
776 * python/py-infevents.c (create_memory_changed_event_object): Use
777 gdb_py_object_from_longest.
778 * python/py-inferior.c (infpy_get_num): Use
779 gdb_py_object_from_longest.
780 (infpy_get_pid): Likewise.
781
d1cab987
TT
7822020-09-15 Tom Tromey <tromey@adacore.com>
783
784 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
785 defines.
786 * python/py-value.c (valpy_long): Use
787 gdb_py_object_from_ulongest.
788 * python/py-symtab.c (salpy_get_pc): Use
789 gdb_py_object_from_ulongest.
790 (salpy_get_last): Likewise.
791 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
792 gdb_py_object_from_ulongest.
793 * python/py-lazy-string.c (stpy_get_address): Use
794 gdb_py_object_from_ulongest.
795 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
796 * python/py-arch.c (archpy_disassemble): Use
797 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
798 error handling.
799
4bde49dc
TT
8002020-09-15 Tom Tromey <tromey@adacore.com>
801
802 * python/python-internal.h (gdb_py_long_from_longest): Remove
803 defines.
804 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
805 * python/py-type.c (convert_field, typy_get_sizeof): Use
806 gdb_py_object_from_longest.
807 * python/py-record-btrace.c (btpy_list_index): Use
808 gdb_py_object_from_longest.
809
37431074
TT
8102020-09-15 Tom Tromey <tromey@adacore.com>
811
812 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
813 * python/py-record.c (recpy_element_number): Use
814 gdb_py_object_from_longest.
815 (recpy_gap_number): Likewise.
816
cbe25684
TT
8172020-09-15 Tom Tromey <tromey@adacore.com>
818
819 * top.c (ui::ui): Update.
820 (highest_ui_num): Remove.
821 * top.h (struct ui) <num>: Remove.
822
db92ac45
TT
8232020-09-15 Tom Tromey <tromey@adacore.com>
824
825 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
826 * ui-style.c (ansi_regex_text): Now array.
827 * rust-exp.y (number_regex_text): Now array.
828 * linespec.c (linespec_quote_characters): Now array.
829 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
830 Now arrays.
831
d2b31b67
SM
8322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * debuginfod-support.c (debuginfod_client_deleter): New.
835 (debuginfod_client_up): New.
836 (debuginfod_init): Return debuginfod_client_up.
837 (debuginfod_source_query): Adjust.
838 (debuginfod_debuginfo_query): Adjust.
839
3246bd8e
SM
8402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
841
842 * debuginfod-support.c (debuginfod_source_query): Use
843 make_unique_xstrdup.
844
10242f36
SM
8452020-09-14 Simon Marchi <simon.marchi@efficios.com>
846
847 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
848 with `type::instance_flags`.
849
e1044e6a
MM
8502020-09-14 Michael Mullin <masmullin@gmail.com>
851
852 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
853 Remove baton parameter.
854
04902b09
PA
8552020-09-14 Pedro Alves <pedro@palves.net>
856
857 * Makefile.in (SELFTESTS_SRCS): Add
858 unittests/enum-flags-selftests.c.
859 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
860 btrace_function_flags instead of enum btrace_function_flag.
861 * compile/compile-c-types.c (convert_qualified): Use
862 enum_flags::raw.
863 * compile/compile-cplus-symbols.c (convert_one_symbol)
864 (convert_symbol_bmsym):
865 * compile/compile-cplus-types.c (compile_cplus_convert_method)
866 (compile_cplus_convert_struct_or_union_methods)
867 (compile_cplus_instance::convert_qualified_base):
868 * go-exp.y (parse_string_or_char): Add cast to int.
869 * unittests/enum-flags-selftests.c: New file.
870 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
871 type to btrace_thread_flags from btrace_thread_flag.
872 (record_btrace_cancel_resume, record_btrace_step_thread): Change
873 local's type to btrace_thread_flags from btrace_thread_flag. Add
874 cast in DEBUG call.
875
69896a2c
PA
8762020-09-14 Pedro Alves <pedro@palves.net>
877
878 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
879 * gdbtypes.c (address_space_name_to_int): Rename to ...
880 (address_space_name_to_type_instance_flags): ... this.
881 (address_space_int_to_name): Rename to ...
882 (address_space_type_instance_flags_to_name): ... this.
883 * gdbtypes.h (address_space_name_to_int): Rename to ...
884 (address_space_name_to_type_instance_flags): ... this.
885 (address_space_int_to_name): Rename to ...
886 (address_space_type_instance_flags_to_name): ... this.
887 * type-stack.c (type_stack::insert): Adjust to rename.
888 * type-stack.h (type_stack::insert): Likewise.
889
314ad88d
PA
8902020-09-14 Pedro Alves <pedro@palves.net>
891 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * avr-tdep.c (avr_address_class_type_flags): Return
894 type_instance_flags.
895 (avr_address_class_type_flags_to_name): Take a
896 type_instance_flags.
897 (avr_address_class_name_to_type_flags): Return bool and take a
898 type_instance_flags.
899 * d-lang.c (build_d_types): Use type::set_instance_flags.
900 * ft32-tdep.c (ft32_address_class_type_flags): Return
901 type_instance_flags.
902 (ft32_address_class_type_flags_to_name): Take a
903 type_instance_flags.
904 (ft32_address_class_name_to_type_flags): Return bool and take a
905 type_instance_flags.
906 (ft32_gdbarch_init): Use type::set_instance_flags.
907 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
908 * gdbarch.h, gdbarch.c: Regenerate.
909 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
910 (address_class_name_to_type_flags): Use type_instance_flags and
911 bool.
912 * gdbtypes.c (address_space_name_to_int)
913 (address_space_int_to_name, make_qualified_type): Use
914 type_instance_flags.
915 (make_qualified_type): Use type_instance_flags and
916 type::set_instance_flags.
917 (make_type_with_address_space, make_cv_type, make_vector_type)
918 (check_typedef): Use type_instance_flags.
919 (recursive_dump_type): Cast type_instance_flags to unsigned for
920 printing.
921 (copy_type_recursive): Use type::set_instance_flags.
922 (gdbtypes_post_init): Use type::set_instance_flags.
923 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
924 <m_instance_flags>: ... this.
925 <instance_flags, set_instance_flags>: New methods.
926 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
927 (SET_TYPE_INSTANCE_FLAGS): New.
928 (address_space_name_to_int, address_space_int_to_name)
929 (make_type_with_address_space): Pass flags using
930 type_instance_flags instead of int.
931 * stabsread.c (cleanup_undefined_types_noname): Use
932 type::set_instance_flags.
933 * s390-tdep.c (s390_address_class_type_flags): Return
934 type_instance_flags.
935 (s390_address_class_type_flags_to_name): Take a
936 type_instance_flags.
937 (s390_address_class_name_to_type_flags): Return bool and take a
938 type_instance_flags.
939 * type-stack.c (type_stack::follow_types): Use
940 type_instance_flags.
941 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
942
27087b7f
TT
9432020-09-14 Tom Tromey <tromey@adacore.com>
944
945 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
946 * x86-tdep.c (x86_is_thunk_register_name)
947 (x86_in_indirect_branch_thunk): Update.
948 * sparc64-tdep.c (sparc64_fpu_register_names)
949 (sparc64_cp0_register_names, sparc64_register_names)
950 (sparc64_pseudo_register_names): Now const.
951 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
952 cp0_registers_num>: Now const.
953 * sparc-tdep.c (sparc_core_register_names)
954 (sparc32_fpu_register_names, sparc32_cp0_register_names)
955 (sparc32_pseudo_register_names): Now const.
956 (validate_tdesc_registers): Update.
957 * rust-lang.c (rust_extensions): Now const.
958 * p-lang.c (p_extensions): Now const.
959 * objc-lang.c (objc_extensions): Now const.
960 * nto-tdep.c (nto_thread_state_str): Now const.
961 * moxie-tdep.c (moxie_register_names): Now const.
962 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
963 Now const.
964 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
965 (mips_linux_reg_names): Now const.
966 (mips_gdbarch_init): Update.
967 * microblaze-tdep.c (microblaze_register_names): Now const.
968 * m68k-tdep.c (m68k_register_names): Now const.
969 * m32r-tdep.c (m32r_register_names): Now const.
970 * ia64-tdep.c (ia64_register_names): Now const.
971 * i386-tdep.h (struct gdbarch_tdep) <register_names,
972 ymmh_register_names, ymm16h_regnum, mpx_register_names,
973 k_register_names, zmmh_register_names, xmm_avx512_register_names,
974 ymm_avx512_register_names, pkeys_register_names>: Now const.
975 * i386-tdep.c (i386_register_names, i386_zmm_names)
976 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
977 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
978 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
979 * f-lang.c (f_extensions): Now const.
980 * d-lang.c (d_extensions): Now const.
981 * csky-tdep.c (csky_register_names): Now const.
982 * charset.c (default_charset_names, charset_enum): Now const.
983 (_initialize_charset): Update.
984 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
985 const.
986 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
987 (bsd_uthread_solib_loaded): Update.
988 (bsd_uthread_state): Now const.
989 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
990 (amd64_ymm_avx512_names, amd64_ymmh_names)
991 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
992 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
993 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
994 (amd64_dword_names): Now const.
995 * agent.c (can_use_agent_enum): Now const.
996 * ada-tasks.c (task_states, long_task_states): Now const.
997 * ada-lang.c (known_runtime_file_name_patterns)
998 (known_auxiliary_function_name_patterns, attribute_names)
999 (standard_exc, ada_extensions): Now const.
1000
89806626
SM
10012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * bcache.h (struct bcache) <bcache>: Remove constructor.
1004 <m_hash_function, m_compare_function>: Remove.
1005 <~bcache>: Make virtual.
1006 <compare>: Remove static method, introduce virtual method.
1007 <default_hash>: Remove.
1008 <hash>: New virtual method.
1009 * bcache.c (bcache::expand_hash_table): Update.
1010 (bcache::insert): Update.
1011 (bcache::hash): New.
1012 (bcache::compare): Update comment and parameter names.
1013 * gdbtypes.c (types_deeply_equal): Update.
1014 * psymtab.h (struct psymbol_bcache): New struct.
1015 (class psymtab_storage) <psymtab_storage>: Make default.
1016 <psymbol_cache>: Change type to psymbol_bcache.
1017 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1018 (psymbol_hash): Change to...
1019 (psymbol_bcache::hash): ... this.
1020 (psymbol_compare): Change to...
1021 (psymbol_bcache::compare): ... this.
1022
677c92fe
SM
10232020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1024
1025 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1026 checking for initial lwp.
1027
3eba3a01
TT
10282020-09-14 Tom Tromey <tromey@adacore.com>
1029
1030 * m68k-tdep.c (m68k_extract_return_value): Use
1031 pointer_result_regnum.
1032 (m68k_store_return_value): Likewise.
1033 (m68k_reg_struct_return_p): Handle vectors and arrays.
1034 (m68k_return_value): Handle arrays.
1035 (m68k_svr4_return_value): Fix single-element aggregate handling.
1036 Handle long double. Adjust for embedded ABI.
1037 (m68k_svr4_init_abi): Set pointer_result_regnum.
1038 (m68k_embedded_init_abi): New function.
1039 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1040 (m68k_osabi_sniffer): New function.
1041 (_initialize_m68k_tdep): Register osabi sniffer.
1042 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1043 member.
1044
33f4dd48
SM
10452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1048 with gdb::unique_xmalloc_ptr<char>.
1049
8400a90d
SM
10502020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * xml-support.h (xml_fetch_another): Change type to be a
1053 function_view.
1054 (xml_process_xincludes): Remove baton parameter.
1055 (xml_fetch_content_from_file): Change baton parameter to
1056 dirname.
1057 * xml-support.c (struct xinclude_parsing_data)
1058 <xinclude_parsing_data>: Remove baton parameter.
1059 <fetcher_baton>: Remove.
1060 (xinclude_start_include): Adjust.
1061 (xml_process_xincludes): Adjust.
1062 (xml_fetch_content_from_file): Replace baton parameter with
1063 dirname.
1064 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1065 (xml_init_syscalls_info): Use a lambda.
1066 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1067 (file_read_description_xml): Use a lambda.
1068 (fetch_available_features_from_target): Change baton parameter
1069 to target_ops.
1070 (target_read_description_xml): Use a lambda.
1071 (target_fetch_description_xml): Use a lambda.
1072 (string_read_description_xml): Update.
1073
04f5bab2
SM
10742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1077 uses with type::endianity_is_not_default.
1078
db558e34
SM
10792020-09-14 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * gdbtypes.h (struct type) <endianity_is_not_default,
1082 set_endianity_is_not_default>: New methods.
1083 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1084 type::endianity_is_not_default, change all write call sites to
1085 use type::set_endianity_is_not_default.
1086
22c4c60c
SM
10872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1090 uses with type::is_fixed_instance.
1091
9cdd0d12
SM
10922020-09-14 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * gdbtypes.h (struct type) <is_fixed_instance,
1095 set_is_fixed_instance>: New methods.
1096 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1097 write call sites to use type::set_is_fixed_instance.
1098
0becda7a
SM
10992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1102 uses with type::is_gnu_ifunc.
1103
03cc7249
SM
11042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1105
1106 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1107 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1108 use type::set_is_gnu_ifunc.
1109
3f46044c
SM
11102020-09-14 Simon Marchi <simon.marchi@efficios.com>
1111
1112 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1113 uses with type::stub_is_supported.
1114
9baccff6
SM
11152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1116
1117 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1118 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1119 use type::set_stub_is_supported.
1120
bd63c870
SM
11212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1124 uses with type::is_vector.
1125
2062087b
SM
11262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1129 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1130 use type::set_is_vector.
1131
a409645d
SM
11322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1133
1134 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1135 uses with type::has_varargs.
1136
1d6286ed
SM
11372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1138
1139 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1140 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1141 use type::set_has_varargs.
1142
7f9f399b
SM
11432020-09-14 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1146 uses with type::is_prototyped.
1147
27e69b7a
SM
11482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1149
1150 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1151 New methods.
1152 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1153 call sites to use type::set_is_prototyped.
1154
d2183968
SM
11552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1156
1157 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1158 uses with type::target_is_stub.
1159
8f53807e
SM
11602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1161
1162 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1163 New methods.
1164 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1165 sites to use type::set_target_is_stub.
1166
e46d3488
SM
11672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1168
1169 * gdbtypes.h (TYPE_STUB): Remove, replace all
1170 uses with type::is_stub.
1171
b4b73759
SM
11722020-09-14 Simon Marchi <simon.marchi@efficios.com>
1173
1174 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1175 (TYPE_STUB): Use type::is_stub, change all write call sites to
1176 use type::set_is_stub.
1177
20ce4123
SM
11782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1179
1180 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1181 type::has_no_signedness.
1182
15152a54
SM
11832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1184
1185 * gdbtypes.h (struct type) <has_no_signedness,
1186 set_has_no_signedness>: New methods.
1187 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1188 call sites to use type::set_has_no_signedness.
1189
c6d940a9
SM
11902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1193 type::is_unsigned.
1194
653223d3
SM
11952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1198 methods.
1199 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1200 sites to use type::set_is_unsigned.
1201
55ea94da
FH
12022020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1203 Adam Renquinha <arenquinha@cimeq.qc.ca>
1204
1205 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1206 pointer and stack frame offset when unwinding.
1207
6791b117
PA
12082020-09-13 Pedro Alves <pedro@palves.net>
1209
1210 * NEWS: Document "-break-insert --qualified".
1211 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1212
77f2120b
PA
12132020-09-13 Pedro Alves <pedro@palves.net>
1214
1215 * linespec.c (classify_mtype, compare_msyms): Delete.
1216 (search_minsyms_for_name): Remove classification logic. Instead
1217 filter out trampoline symbols if we also found an external
1218 function of the same name.
1219
ed6a896c
JB
12202020-09-13 Joel Brobecker <brobecker@adacore.com>
1221
1222 * NEWS: Create a new section for the next release branch.
1223 Rename the section of the current branch, now that it has
1224 been cut.
1225
32aea73e
JB
12262020-09-13 Joel Brobecker <brobecker@adacore.com>
1227
1228 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1229 * version.in: Bump version to 11.0.50.DATE-git.
1230
8087c3fa
JB
12312020-09-12 Joel Brobecker <brobecker@adacore.com>
1232
1233 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1234
2a67f09d
FW
12352020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1236 Felix Willgerodt <Felix.Willgerodt@intel.com>
1237
1238 * gdbarch.sh: Added bfloat16 type.
1239 * gdbarch.c: Regenerated.
1240 * gdbarch.h: Regenerated.
1241 * gdbtypes.c (floatformats_bfloat16): New struct.
1242 (gdbtypes_post_init): Add builtin_bfloat16.
1243 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1244 (floatformats_bfloat16): New struct.
1245 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1246 (i386_ymm_type): Add field "v16_bfloat16"
1247 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1248 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1249 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1250 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1251 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1252 * features/i386/64bit-avx512.c: Regenerated.
1253 * features/i386/64bit-sse.xml: Add bfloat16 type.
1254 * features/i386/64bit-sse.c: Regenerated.
1255
1347d111
FW
12562020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1257
1258 * i386-tdep.c (i386_zmm_type): Fix field names.
1259 (i386_ymm_type): Fix field names.
1260
7a4e8e7d
TBA
12612020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1262
1263 * breakpoint.c: Fix typo in the help message of the
1264 "set breakpoint condition-evaluation" command.
1265
cf4ac4be
KR
12662020-09-10 Kamil Rytarowski <n54@gmx.com>
1267
1268 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1269 * (nbsd_nat_target::pid_to_exec_file)
1270 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1271 (nbsd_nat_target::post_startup_inferior)
1272 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1273 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1274 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1275 * (nbsd_thread_lister): Remove.
1276
f404573e
KR
12772020-09-10 Kamil Rytarowski <n54@gmx.com>
1278
1279 * fork-inferior.c (startup_inferior): Avoid double free.
1280
1ccb2c17
KR
12812020-09-10 Kamil Rytarowski <n54@gmx.com>
1282
1283 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1284 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1285
feedfcc7
KR
12862020-09-10 Kamil Rytarowski <n54@gmx.com>
1287
1288 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1289 * netbsd-nat.c: Include <sys/ptrace.h>.
1290 * (netbsd_nat::enable_proc_events): Add.
1291
c489f8c6
KR
12922020-09-10 Kamil Rytarowski <n54@gmx.com>
1293
1294 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1295 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1296 (netbsd_nat::for_each_thread): Add.
1297 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1298 "gdbsupport/common-debug.h".
1299 * (netbsd_nat::netbsd_thread_lister)
1300 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1301 (netbsd_nat::for_each_thread): Add.
1302
330662f6
KR
13032020-09-10 Kamil Rytarowski <n54@gmx.com>
1304
1305 * netbsd-nat.h: Include <unistd.h>.
1306 * (netbsd_nat::pid_to_exec_file): Add.
1307 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1308 * (netbsd_nat::pid_to_exec_file) Add.
1309
70b67307
KR
13102020-09-10 Kamil Rytarowski <n54@gmx.com>
1311
1312 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1313
99cf6da6
KR
13142020-09-10 Kamil Rytarowski <n54@gmx.com>
1315
1316 * netbsd-nat.h: New file.
1317 * netbsd-nat.c: Likewise.
1318
1b788fb6
TT
13192020-09-09 Tom Tromey <tromey@adacore.com>
1320
1321 * ada-lang.c (remove_extra_symbols): Do not increment when
1322 removing an element
1323
03b0a45f
TT
13242020-09-08 Tom Tromey <tromey@adacore.com>
1325
1326 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1327
3cae4447
TT
13282020-09-08 Tom Tromey <tromey@adacore.com>
1329
1330 PR win32/25302:
1331 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1332 (gdb_bfd_init_data): New function.
1333 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1334
7f08fd51
TBA
13352020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1336
1337 * infrun.c (fetch_inferior_event): Use
1338 `switch_to_target_no_thread` to switch the target.
1339
3e6ff933
TT
13402020-09-06 Tom Tromey <tom@tromey.com>
1341
1342 * symfile.h (dwarf2_free_objfile): Don't declare.
1343
e56798df
AKS
13442020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1345
1346 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1347 to match 16 byte real/complex type generated by Flang compiler.
1348
8f5c6526
TV
13492020-09-03 Tom de Vries <tdevries@suse.de>
1350
1351 PR breakpoint/26546
1352 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1353 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1354
c5065df0
SM
13552020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * maint.c (index_digits): New function.
1358 (struct maint_print_section_data): Remove.
1359 (print_bfd_section_info): Remove print_data parameter, add arg
1360 and index_digits.
1361 (print_objfile_section_info): Likewise.
1362 (print_bfd_section_info_maybe_relocated): Likewise (plus
1363 objfile).
1364 (maintenance_info_sections): Adjust calls.
1365
02c6f3f1
TT
13662020-09-02 Tom Tromey <tromey@adacore.com>
1367
1368 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1369 for null pointers.
1370 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1371
ef5e5b0b
SM
13722020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * bcache.h (struct bcache) <insert>: Change type of `added` to
1375 pointer to bool.
1376 * bcache.c (bcache::insert): Likewise.
1377 * gdbtypes.c (check_types_worklist): Adjust.
1378 * psymtab.c (add_psymbol_to_bcache): Adjust.
1379
973695d6
KB
13802020-08-31 Kevin Buettner <kevinb@redhat.com>
1381
1382 * corelow.c (unordered_set): Include.
1383 (class core_target): Add field 'm_core_unavailable_mappings'.
1384 (core_target::build_file_mappings): Print only one warning
1385 per inaccessible file. Add unavailable/broken mappings
1386 to m_core_unavailable_mappings.
1387 (core_target::xfer_partial): Call...
1388 (core_target::xfer_memory_via_mappings): New method.
1389
264fc0e2
SM
13902020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1391
1392 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1393 type to bool.
1394
2de01bdb
SM
13952020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1396
1397 * dwarf2/read.c (struct field_info): Fix indentation.
1398
f3bd50f1
SM
13992020-08-31 Simon Marchi <simon.marchi@efficios.com>
1400
1401 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1402 ordering in comment.
1403 * frame.c (frame_id_eq): Fix indentation.
1404
22b9b4b0
SL
14052020-08-31 Scott Linder <scott@scottlinder.com>
1406 Simon Marchi <simon.marchi@efficios.com>
1407
1408 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1409 inline frame ids in outer frame.
1410
84154d16
SM
14112020-08-31 Simon Marchi <simon.marchi@efficios.com>
1412
1413 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1414 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1415 (outer_frame_id): Use FID_STACK_OUTER instead of
1416 FID_STACK_INVALID.
1417 (frame_id_p): Don't check for outer_frame_id.
1418
8efaf6b3
SM
14192020-08-31 Simon Marchi <simon.marchi@efficios.com>
1420
1421 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1422 regnum/frame in value. Call allocate_value_lazy.
1423 * frame.c (frame_unwind_register_value): Use
1424 val_print_not_saved.
1425
fe1fe7ea
SM
14262020-08-31 Simon Marchi <simon.marchi@efficios.com>
1427
1428 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1429
f7c7700d
PA
14302020-08-29 Pedro Alves <pedro@palves.net>
1431
1432 * progspace.c (print_program_space): Use all_inferiors. Switch to
1433 the inferior before calling target_pid_to_str.
1434
e0814aae
TT
14352020-08-28 Tom Tromey <tom@tromey.com>
1436
1437 * xcoffread.c (xcoff_end_psymtab): Update comment.
1438 * dbxread.c (dbx_end_psymtab): Update comment.
1439
626d2320
TV
14402020-08-28 Tom de Vries <tdevries@suse.de>
1441
1442 PR breakpoint/26544
1443 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1444 event_location.
1445 (create_breakpoint): Same.
1446 (base_breakpoint_decode_location): Same.
1447 (bkpt_create_sals_from_location): Same.
1448 (bkpt_decode_location): Same.
1449 (bkpt_probe_create_sals_from_location): Same.
1450 (bkpt_probe_decode_location): Same.
1451 (tracepoint_create_sals_from_location): Same.
1452 (tracepoint_decode_location): Same.
1453 (tracepoint_probe_decode_location): Same.
1454 (strace_marker_create_sals_from_location): Same.
1455 (strace_marker_decode_location): Same.
1456 (create_sals_from_location_default): Same.
1457 (decode_location_default): Same.
1458 * breakpoint.h (struct breakpoint_ops): Same.
1459 (create_breakpoint): Same.
1460 * linespec.h (decode_line_full): Same.
1461 * linespec.c (decode_line_full): Same. Throw error if
1462 result.size () == 0.
1463
df631783
PA
14642020-08-27 Pedro Alves <pedro@palves.net>
1465
1466 PR gdb/26524
1467 * breakpoint.c (until_break_fsm) <location_breakpoint,
1468 caller_breakpoint>: Delete fields.
1469 <breakpoints>: New field.
1470 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1471 two individual breakpoints.
1472 (until_break_fsm::should_stop): Loop over breakpoints in the
1473 breakpoint vector.
1474 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1475 vector.
1476 (until_break_command): Handle location expanding into multiple
1477 sals.
1478
b2b38aa4
PA
14792020-08-27 Pedro Alves <pedro@palves.net>
1480
1481 PR gdb/26523
1482 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1483 bp_until breakpoints user-specified locations. Update intro
1484 comment.
1485
b886559f
SM
14862020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1489 gdb_bfd_sections): New.
1490 * maint.c (print_bfd_section_info): Change param type to
1491 maint_print_section_data.
1492 (print_objfile_section_info): Likewise.
1493 (print_bfd_section_info_maybe_relocated): Likewise.
1494 (maintenance_info_sections): Use gdb_bfd_sections.
1495
4c6e63bf
SV
14962020-08-25 Shahab Vahedi <shahab@synopsys.com>
1497
1498 * MAINTAINERS: Add ARC target and maintainer.
1499
8d7f0635
AK
15002020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1501
1502 * configure.tgt: ARC support for GNU/Linux.
1503 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1504 * arc-linux-tdep.c: New file.
1505 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1506 * arc-tdep.c (arc_write_pc): Use it.
1507
fdd8731b
SV
15082020-08-25 Shahab Vahedi <shahab@synopsys.com>
1509
1510 * arc-tdep.c (arc_check_for_hardware_loop): New.
1511 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1512
22459524
SV
15132020-08-25 Shahab Vahedi <shahab@synopsys.com>
1514
1515 * arc-tdep.h: Include "gdbarch.h".
1516
995d3a19
SV
15172020-08-25 Shahab Vahedi <shahab@synopsys.com>
1518
1519 * arch/arc.h
1520 (arc_gdbarch_features): New class to stir the selection of target XML.
1521 (arc_create_target_description): Use FEATURES to choose XML target.
1522 (arc_lookup_target_description): Use arc_create_target_description
1523 to create _new_ target descriptions or return the already created
1524 ones if the FEATURES is the same.
1525 * arch/arc.c: Implementation of prototypes described above.
1526 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1527 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1528 * arc-tdep.c (*_feature_name): Make feature names consistent.
1529 (arc_register_feature): A new struct to hold information about
1530 registers of a particular target/feature.
1531 (arc_check_tdesc_feature): Check if XML provides registers in
1532 compliance with ARC_REGISTER_FEATURE structs.
1533 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1534 (determine_*_reg_feature_set): Which feature name to look for.
1535 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1536 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1537 to expected ISA enums to be used in arc_gdbarch_features structs.
1538 * features/Makefile (FEATURE_XMLFILES): Add new files.
1539 * gdb/features/arc/v1-aux.c: New file.
1540 * gdb/features/arc/v1-aux.xml: Likewise.
1541 * gdb/features/arc/v1-core.c: Likewise.
1542 * gdb/features/arc/v1-core.xml: Likewise.
1543 * gdb/features/arc/v2-aux.c: Likewise.
1544 * gdb/features/arc/v2-aux.xml: Likewise.
1545 * gdb/features/arc/v2-core.c: Likewise.
1546 * gdb/features/arc/v2-core.xml: Likewise.
1547 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1548
3945d2d7
GM
15492020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1550 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 PR m2/26372
fc5d6901 1553 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1554 an assert. Remove single element array indexing pattern as the
1555 MULTI_SUBSCRIPT support will handle this case too.
1556
2677f2d3
SM
15572020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * value.h (valprint_check_validity): Move declaration from
1560 here...
1561 * valprint.h (valprint_check_validity): ... to here.
1562
c426fddb
SM
15632020-08-24 Simon Marchi <simon.marchi@efficios.com>
1564
1565 * debug.h: New file.
1566 * debug.c (debug_prefixed_vprintf): New function.
1567 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1568 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1569
1eb8556f
SM
15702020-08-24 Simon Marchi <simon.marchi@efficios.com>
1571
1572 * infrun.h (infrun_debug_printf_1): New function declaration.
1573 (infrun_debug_printf): New macro.
1574 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1575 throughout.
1576 (infrun_debug_printf): New function.
1577 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1578 (handle_jit_event): Likewise.
1579
b8fff44e
MW
15802020-08-21 Mark Wielaard <mark@klomp.org>
1581
1582 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1583
d19c3068
SM
15842020-08-22 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * frame.c (enum class frame_id_status): New.
1587 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1588 (fprintf_frame): Update.
1589 (compute_frame_id): Set frame id status to "computing" on entry.
1590 Set it back to "not_computed" on failure and to "computed" on
1591 success.
1592 (get_frame_id): Assert the frame id is not being computed.
1593 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1594 (create_new_frame): Likewise.
1595 (frame_cleanup_after_sniffer): Update assert.
1596
b70e516e
SM
15972020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1598
1599 * regcache.c (pid_ptid_regcache_map): New type.
1600 (target_ptid_regcache_map): Remove.
1601 (target_pid_ptid_regcache_map): New type.
1602 (regcaches): Change type to target_pid_ptid_regcache_map.
1603 (get_thread_arch_aspace_regcache): Update.
1604 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1605 case.
1606 (regcaches_size): Update.
1607 (regcache_count): Update.
1608 (registers_changed_ptid_target_pid_test): New.
1609 (_initialize_regcache): Register new test.
1610
cdd9148a
SM
16112020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * regcache.c (regcache_count): New.
1614 (struct regcache_test_data): New.
1615 (regcache_test_data_up): New.
1616 (populate_regcaches_for_test): New.
1617 (regcaches_test): Remove.
1618 (get_thread_arch_aspace_regcache_test): New.
1619 (registers_changed_ptid_all_test): New.
1620 (registers_changed_ptid_target_test): New.
1621 (registers_changed_ptid_target_ptid_test): New.
1622 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1623 (_initialize_regcache): Register new tests.
1624
dd125343
SM
16252020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1626
1627 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1628 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1629 gdbarch and aspace parameter. Use current inferior's aspace.
1630 Validate regcache's arch value.
1631 (regcaches_test): Update.
1632
3ee93972
SM
16332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1634
1635 * regcache.c (regcaches_test): Call registers_changed.
1636
33bf4c5c
TBA
16372020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1638
1639 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1640
c2fd7fae
AKS
16412020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1642
1643 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1644 to find the end of prologue for flang compiled binaries.
1645 * arm-tdep.c (arm_skip_prologue): Likewise.
1646 * i386-tdep.c (i386_skip_prologue): Likewise.
1647 * producer.c (producer_is_llvm): New function.
1648 (producer_parsing_tests): Added new tests for clang/flang.
1649 * producer.h (producer_is_llvm): New declaration.
1650
9327494e
SM
16512020-08-18 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * linux-nat.c (linux_nat_debug_printf): New function.
1654 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1655
d138725a
AM
16562020-08-18 Aaron Merey <amerey@redhat.com>
1657
1658 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1659 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1660 (CLIBS): Add DEBUGINFOD_LIBS.
1661
f9b11e6b
ST
16622020-08-17 Sergei Trofimovich <siarheit@google.com>
1663
1664 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1665 'gdbarch_num_regs'.
1666
3ae7ab99
TT
16672020-08-17 Tom Tromey <tromey@adacore.com>
1668
1669 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1670 ada_get_decoded_value returns NULL.
1671
b017825f
TT
16722020-08-17 Tom Tromey <tromey@adacore.com>
1673
1674 * python/py-inferior.c (infpy_search_memory): Use
1675 gdb_py_object_from_ulongest.
1676 * python/py-infevents.c (create_inferior_call_event_object)
1677 (create_memory_changed_event_object): Use
1678 gdb_py_object_from_ulongest.
1679 * python/py-linetable.c (ltpy_entry_get_pc): Use
1680 gdb_py_object_from_ulongest.
1681
7635cf79
SM
16822020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1683
1684 * loc.c (class symbol_needs_eval_context): Fix indentation.
1685
f54be24b
SM
16862020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1689 bool.
1690
53d5a2a5
TV
16912020-08-17 Tom de Vries <tdevries@suse.de>
1692
1693 PR gdb/26393
1694 * gdbtypes.c (dump_dynamic_prop): New function.
1695 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1696
547ce8f0
TV
16972020-08-15 Tom de Vries <tdevries@suse.de>
1698
1699 PR backtrace/26390
1700 * stack.c (print_frame_args): Temporarily set the selected
1701 frame to FRAME while printing the frame's arguments.
1702
6ea815e7
PFC
17032020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1704
1705 PR breakpoints/26385
1706 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1707 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1708
6e562fa3
PFC
17092020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1710
1711 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1712 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1713 and >= to check return value instead of == -1 and != -1.
1714
d369b608
SM
17152020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1716
1717 * utils.h (class gdb_argv) <as_array_view>: New method.
1718 * utils.c (gdb_argv_as_array_view_test): New.
1719 (_initialize_utils): Register selftest.
1720 * maint.c (maintenance_selftest): Use the new method.
1721
b31488a3
KR
17222020-08-13 Kamil Rytarowski <n54@gmx.com>
1723
1724 * target.h (supports_dumpcore, dumpcore): New
1725 function declarations.
1726 * target.c (supports_dumpcore, dumpcore): New
1727 functions.
1728 * target-delegates.c: Rebuild.
1729 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1730 and target_dumpcore ().
1731
002a3166
AM
17322020-08-13 Aaron Merey <amerey@redhat.com>
1733
1734 * debuginfod-support.c: Replace global variables with user_data.
1735
ece5bc8a
SM
17362020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * maint.c (maintenance_selftest): Split args and pass array_view
1739 to run_tests.
1740
6d8a0a5e
LM
17412020-08-12 Luis Machado <luis.machado@linaro.org>
1742
1743 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1744 type's length.
1745 Use %s and pulongest to print the length.
1746
7cf663a9
PA
17472020-08-12 Pedro Alves <palves@redhat.com>
1748
1749 * NEWS: Move "Multi-target debugging support" item to the
1750 "Changes since GDB 9" section.
1751
27c7b875
PA
17522020-08-12 Pedro Alves <palves@redhat.com>
1753
1754 PR gdb/26336
1755 * progspace.c (program_space::remove_objfile): Invalidate the
1756 frame cache.
1757
1796a2a1
TV
17582020-08-11 Tom de Vries <tdevries@suse.de>
1759
1760 * MAINTAINERS: Mark ms1 as deleted.
1761
f8e3fe0d
LM
17622020-08-10 Luis Machado <luis.machado@linaro.org>
1763
1764 PR gdb/26310
1765
1766 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1767 act accordingly.
1768 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1769 movz/str/stur/stp skipping behavior.
1770
cc308722
LM
17712020-08-10 Luis Machado <luis.machado@linaro.org>
1772
1773 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1774 struct user_sve_header instead of struct sve_context.
1775
041d9819
SM
17762020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1777
1778 * read.h (dwarf2_fetch_die_loc_sect_off,
1779 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1780 `void *` parameter with function_view.
1781 * read.c (dwarf2_fetch_die_loc_sect_off,
1782 dwarf2_fetch_die_loc_cu_off): Likewise.
1783 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1784 (per_cu_dwarf_call): Adjust.
1785 (get_frame_address_in_block_wrapper): Remove.
1786 (indirect_synthetic_pointer): Adjust.
1787 (get_ax_pc): Remove.
1788 (dwarf2_compile_expr_to_ax): Adjust.
1789
38f8aa06
TV
17902020-08-08 Tom de Vries <tdevries@suse.de>
1791
1792 PR build/26344
1793 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1794 constructor.
1795 * regcache.c (get_thread_arch_aspace_regcache): Same.
1796
a52b3ae2
TT
17972020-08-07 Tom Tromey <tromey@adacore.com>
1798
1799 * ravenscar-thread.c
1800 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1801 New method.
1802 (ravenscar_thread_target::wait): Check
1803 runtime_initialized.
1804 (ravenscar_thread_target::prepare_to_store)
1805 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1806 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1807 (ravenscar_thread_target::stopped_by_watchpoint)
1808 (ravenscar_thread_target::stopped_data_address)
1809 (ravenscar_thread_target::core_of_thread): Use
1810 scoped_restore_current_thread and
1811 set_base_thread_from_ravenscar_task.
1812
0e29517d
TT
18132020-08-07 Tom Tromey <tromey@adacore.com>
1814
1815 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1816
592f9bd7
TT
18172020-08-07 Tom Tromey <tromey@adacore.com>
1818
1819 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1820 update_inferior_ptid before update_thread_list.
1821 (temporarily_change_regcache_ptid): New class.
1822 (ravenscar_thread_target::fetch_registers)
1823 (ravenscar_thread_target::store_registers)
1824 (ravenscar_thread_target::prepare_to_store): Use base thread when
1825 forwarding operation.
1826
39e2018a
TT
18272020-08-07 Tom Tromey <tromey@adacore.com>
1828
1829 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1830 "is_pid" case.
1831
2080266b
TT
18322020-08-07 Tom Tromey <tromey@adacore.com>
1833
1834 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1835 New methods.
1836 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1837 first.
1838 (ravenscar_thread_target::add_thread): Rename from
1839 ravenscar_add_thread.
1840 (ravenscar_thread_target::update_thread_list): Use a lambda.
1841 (ravenscar_thread_target::xfer_partial): New method.
1842
78c02f21
TT
18432020-08-07 Tom Tromey <tromey@adacore.com>
1844
1845 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1846 gdb::function_view.
1847 (iterate_over_live_ada_tasks): Change type of argument.
1848 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1849 of argument.
1850
d5d833af
TT
18512020-08-07 Tom Tromey <tromey@adacore.com>
1852
1853 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1854 Remove.
1855 (ravenscar_thread_target::extra_thread_info): Remove.
1856 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1857 defer to target beneath for non-Ravenscar threads.
1858
a8ac85bb
TT
18592020-08-07 Tom Tromey <tromey@adacore.com>
1860
1861 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1862 get_base_thread_from_ravenscar_task>: Now methods.
1863 <m_cpu_map>: New member.
1864 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1865 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1866 (ravenscar_thread_target::task_is_currently_active): Update.
1867 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1868 Now a method.
1869 (ravenscar_thread_target::add_active_thread): Put initial thread
1870 into the m_cpu_map.
1871
550ab58d
TT
18722020-08-07 Tom Tromey <tromey@adacore.com>
1873
1874 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1875 event_ptid.
1876
e9546579
TT
18772020-08-07 Tom Tromey <tromey@adacore.com>
1878
1879 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1880 runtime_initialized.
1881
3d4470e5
TT
18822020-08-07 Tom Tromey <tromey@adacore.com>
1883
1884 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1885 add_active_thread.
1886 (ravenscar_thread_target::add_active_thread): Now public.
1887 (ravenscar_inferior_created): Call add_active_thread after pushing
1888 the target.
1889
888bdb2b
SM
18902020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * regcache.c (ptid_regcache_map): New type.
1893 (target_ptid_regcache_map): New type.
1894 (regcaches): Change type to target_ptid_regcache_map.
1895 (get_thread_arch_aspace_regcache): Update to regcaches' new
1896 type.
1897 (regcache_thread_ptid_changed): Likewise.
1898 (registers_changed_ptid): Likewise.
1899 (regcaches_size): Likewise.
1900 (regcaches_test): Update.
1901 (regcache_thread_ptid_changed): Update.
1902 * regcache.h (regcache_up): New type.
1903 * gdbsupport/ptid.h (hash_ptid): New struct.
1904
b161a60d
SM
19052020-08-07 Simon Marchi <simon.marchi@efficios.com>
1906
1907 * observable.h (thread_ptid_changed): Add parameter
1908 `process_stratum_target *`.
1909 * infrun.c (infrun_thread_ptid_changed): Add parameter
1910 `process_stratum_target *` and use it.
1911 (selftests): New namespace.
1912 (infrun_thread_ptid_changed): New function.
1913 (_initialize_infrun): Register selftest.
1914 * regcache.c (regcache_thread_ptid_changed): Add parameter
1915 `process_stratum_target *` and use it.
1916 (regcache_thread_ptid_changed): New function.
1917 (_initialize_regcache): Register selftest.
1918 * thread.c (thread_change_ptid): Pass target to
1919 thread_ptid_changed observable.
1920
d2854d8d
CT
19212020-08-06 Caroline Tice <cmtice@google.com>
1922
fe4c3d43
SM
1923 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1924 (struct dwp_sections): Update field comments. Add loclists and
1925 rnglists fields.
1926 (struct virtual_v2_dwo_sections): Rename struct to
1927 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1928 size & offset fields for loclists and rnglists.
1929 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1930 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1931 skipping dummy type units.
1932 (create_dwp_hash_table): Update the large comment above the function to
1933 discuss Version 5 DWP files as well, with references. Update all the
1934 version checks in the function to check for version 5 as well. Add new
1935 section at the end to create dwp hash table for version 5.
1936 (create_dwp_v2_section): Rename function to
1937 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1938 Add V5 to error message text.
1939 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1940 into calls to create_dwp_v2_or_v5_section.
1941 (create_dwo_unit_in_dwp_v5): New function.
1942 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1943 check for version2; add else clause to handle version 5.
1944 (open_and_init_dwo_file): Add code to check dwarf version & only call
1945 create_debug_types_hash_table (with sections.types) if version is not 5;
1946 else call create_debug_type_hash_table, with sections.info.
1947 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1948 version 5.
1949 (dwarf2_locate_v5_dwp_sections): New function.
1950 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1951 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1952
159ed7d9
SM
19532020-08-06 Simon Marchi <simon.marchi@efficios.com>
1954
1955 * regcache.h (class regcache): Remove friend
1956 registers_changed_ptid.
1957 <regcache_thread_ptid_changed>: Remove.
1958 <regcaches>: Remove.
1959 * regcache.c (regcache::regcaches): Rename to...
1960 (regcaches): ... this. Make static.
1961 (get_thread_arch_aspace_regcache): Update.
1962 (regcache::regcache_thread_ptid_changed): Rename to...
1963 (regcache_thread_ptid_changed): ... this. Update.
1964 (class regcache_access): Remove.
1965 (regcaches_test): Update.
1966 (_initialize_regcache): Update.
1967 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1968 <forward_list>.
1969
174981ae
SM
19702020-08-06 Simon Marchi <simon.marchi@efficios.com>
1971
1972 * regcache.h (class regcache) <current_regcache>: Rename to...
1973 <regcaches>: ... this. Move doc here.
1974 * regcache.c (regcache::current_regcache) Rename to...
1975 (regcache::regcaches): ... this. Move doc to header.
1976 (get_thread_arch_aspace_regcache): Update.
1977 (regcache::regcache_thread_ptid_changed): Update.
1978 (registers_changed_ptid): Update.
1979 (class regcache_access) <current_regcache_size>: Rename to...
1980 <regcaches_size>: ... this.
1981 (current_regcache_test): Rename to...
1982 (regcaches_test): ... this.
1983 (_initialize_regcache): Update.
1984
ed908db6
VC
19852020-08-06 Victor Collod <vcollod@nvidia.com>
1986
1987 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1988
b5582ab7
KB
19892020-08-05 Kevin Buettner <kevinb@redhat.com>
1990
1991 * corelow.c (core_target::build_file_mappings): Don't output
1992 null pathname in warning.
1993
ea946b86
SM
19942020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1997 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1998 gdb.dwarf2/dw2-single-line-discriminators.exp,
1999 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2000
57d02173
TT
20012020-08-05 Tom Tromey <tromey@adacore.com>
2002
2003 PR rust/26197:
2004 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2005 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2006 Fix off-by-one and type size errors in ordinary case.
2007
5555c86d
TV
20082020-08-05 Tom de Vries <tdevries@suse.de>
2009
2010 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2011 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2012
97916bfe
SM
20132020-08-04 Simon Marchi <simon.marchi@efficios.com>
2014
2015 * frame.h (frame_id_p): Return bool.
2016 (frame_id_artificial_p): Return bool.
2017 (frame_id_eq): Return bool.
2018 (has_stack_frames): Return bool.
2019 (get_selected_frame): Fix typo in comment.
2020 (get_frame_pc_if_available): Return bool.
2021 (get_frame_address_in_block_if_available): Return bool.
2022 (get_frame_func_if_available): Return bool.
2023 (read_frame_register_unsigned): Return bool.
2024 (get_frame_register_bytes): Return bool.
2025 (safe_frame_unwind_memory): Return bool.
2026 (deprecated_frame_register_read): Return bool.
2027 (frame_unwinder_is): Return bool.
2028 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2029 bool.
2030 <this_id::p>: Likewise.
2031 <prev_p>: Likewise.
2032 (frame_stash_add): Return bool.
2033 (get_frame_id): Use bool.
2034 (frame_id_build_special) Use bool.
2035 (frame_id_build_unavailable_stack): Use bool.
2036 (frame_id_build): Use bool.
2037 (frame_id_p): Return bool, use true/false instead of 1/0.
2038 (frame_id_artificial_p): Likewise.
2039 (frame_id_eq): Likewise.
2040 (frame_id_inner): Likewise.
2041 (get_frame_func_if_available): Likewise.
2042 (read_frame_register_unsigned): Likewise.
2043 (deprecated_frame_register_read): Likewise.
2044 (get_frame_register_bytes): Likewise.
2045 (has_stack_frames): Likewise.
2046 (inside_main_func): Likewise.
2047 (inside_entry_func): Likewise.
2048 (get_frame_pc_if_available): Likewise.
2049 (get_frame_address_in_block_if_available): Likewise.
2050 (frame_unwinder_is): Likewise.
2051 (safe_frame_unwind_memory): Likewise.
2052 (frame_unwind_arch): Likewise.
2053
fedfee88
SM
20542020-08-04 Simon Marchi <simon.marchi@efficios.com>
2055
2056 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2057 type to cached_copy_status.
2058 (fprintf_frame): Adjust.
2059 (get_frame_func_if_available): Adjust.
2060 (frame_cleanup_after_sniffer): Adjust.
2061
6cfa9b59
MW
20622020-08-04 Mark Wielaard <mark@klomp.org>
2063
2064 * MAINTAINERS (Write After Approval): Update email address.
2065
66d6346b
SM
20662020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2069 dynamic_prop::const_val.
2070
8a6d5e35
SM
20712020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2074 dynamic_prop::kind.
2075
51d6067d
SM
20762020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2079
b26e2ae7
JM
20802020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2081
2082 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2083
39791af2
JM
20842020-08-04 Weimin Pan <weimin.pan@oracle.com>
2085 Jose E. Marchesi <jose.marchesi@oracle.com>
2086
2087 * configure.tgt: Add entry for bpf-*-*.
2088 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2089 (ALLDEPFILES): Add bpf-tdep.c.
2090 * bpf-tdep.c: New file.
2091 * MAINTAINERS: Add bpf target and maintainer.
2092 * NEWS: Mention the support for the new target.
2093
521894aa
TV
20942020-08-04 Tom de Vries <tdevries@suse.de>
2095
2096 PR symtab/23270
2097 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2098 Error.
2099
5d6356e9
JB
21002020-08-03 John Baldwin <jhb@FreeBSD.org>
2101
2102 * syscalls/freebsd.xml: Regenerate.
2103
0cf82b81
JB
21042020-08-03 John Baldwin <jhb@FreeBSD.org>
2105
2106 * syscalls/update-freebsd.sh: Fix usage and year range.
2107
8f34b746
TV
21082020-08-03 Tom de Vries <tdevries@suse.de>
2109
2110 PR symtab/26333
2111 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2112 DW_LNE_lo_user/DW_LNE_hi_user range.
2113
5e500d33
SM
21142020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 PR ada/26318
2117 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2118 kind.
2119
78319c15
TBA
21202020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2121
2122 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2123
4c55e970
TBA
21242020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2125
2126 * breakpoint.c (set_breakpoint_condition): Update the condition
2127 expressions after checking that the input condition string parses
2128 successfully and does not contain junk at the end.
2129
1e620590
TBA
21302020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2131
2132 * breakpoint.c (set_breakpoint_condition): Update the
2133 condition string after parsing the new condition successfully.
2134
c8693053
RO
21352020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2136
2137 * proc-api.c (_STRUCTURED_PROC): Don't define.
2138 * proc-events.c: Likewise.
2139 * proc-flags.c: Likewise.
2140 * proc-why.c: Likewise.
2141 * procfs.c: Likewise.
2142
2143 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2144 * configure, config.in: Regenerate.
2145
5a99adb8
TV
21462020-07-30 Tom de Vries <tdevries@suse.de>
2147
2148 PR build/26320
2149 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2150 m_red/m_green/m_blue in a union.
2151
8ba83e91
TV
21522020-07-29 Tom de Vries <tdevries@suse.de>
2153
2154 PR tdep/26280
2155 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2156
f75a0693
AB
21572020-07-28 Tom Tromey <tromey@adacore.com>
2158
2159 PR symtab/26270:
2160 * symtab.h (find_pc_partial_function_sym): Declare.
2161 * cli/cli-cmds.c (disassemble_command): Use
2162 find_pc_partial_function_sym. Check asm_demangle.
2163 * blockframe.c (cache_pc_function_sym): New global.
2164 (cache_pc_function_name): Remove.
2165 (clear_pc_function_cache): Update.
2166 (find_pc_partial_function_sym): New function, from
2167 find_pc_partial_function.
2168 (find_pc_partial_function): Rewrite using
2169 find_pc_partial_function_sym.
2170
16f3242c
TT
21712020-07-28 Tom Tromey <tromey@adacore.com>
2172
2173 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2174 help. Add usage.
2175
4888741a
TT
21762020-07-28 Tom Tromey <tromey@adacore.com>
2177
2178 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2179 <DW_OP_GNU_variable_value>: Cast to address type.
2180
4d46f402
KR
21812020-07-28 Kamil Rytarowski <n54@gmx.com>
2182
2183 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2184 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2185 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2186 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2187 (nbsd_get_siginfo_type): New.
2188 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2189 (_initialize_nbsd_tdep): New.
2190
d70f978b
L
21912020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2192
2193 PR binutils/26301
2194 * configure: Regenerated.
2195
377170fa
L
21962020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2197
2198 PR binutils/26301
2199 * configure: Regenerated.
2200
43d5901d
AB
22012020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * python/py-frame.c: Remove 'user-regs.h' include.
2204 (frapy_read_register): Rewrite to make use of
2205 gdbpy_parse_register_id.
2206 * python/py-registers.c (gdbpy_parse_register_id): New function,
2207 moved here from python/py-unwind.c. Updated the return type, and
2208 also accepts register descriptor objects.
2209 * python/py-unwind.c: Remove 'user-regs.h' include.
2210 (pyuw_parse_register_id): Moved to python/py-registers.c.
2211 (unwind_infopy_add_saved_register): Update to use
2212 gdbpy_parse_register_id.
2213 (pending_framepy_read_register): Likewise.
2214 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2215
14fa8fb3
AB
22162020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * python/py-registers.c: Add 'user-regs.h' include.
2219 (register_descriptor_iter_find): New function.
2220 (register_descriptor_iterator_object_methods): New static global
2221 methods array.
2222 (register_descriptor_iterator_object_type): Add pointer to methods
2223 array.
2224
ddce1758
JB
22252020-07-27 John Baldwin <jhb@FreeBSD.org>
2226
2227 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2228 for all architectures on FreeBSD 11.3 and later.
2229
a4089f52
TT
22302020-07-27 Tom Tromey <tromey@adacore.com>
2231
2232 * gcore.h (load_corefile): Don't declare.
2233
95420d30
TV
22342020-07-27 Tom de Vries <tdevries@suse.de>
2235
2236 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2237 * config.in: Regenerate.
2238 * configure: Regenerate.
2239
05a6b8c2
EZ
22402020-07-26 Eli Zaretskii <eliz@gnu.org>
2241
2242 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2243 ws2tcpip.h. When checking whether socklen_t type is defined, use
2244 ws2tcpip.h if it is available and sys/socket.h isn't.
2245 * configure: Regenerate.
2246 * config.in: Regenerate.
2247
e79eb02f
AB
22482020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 PR fortran/23051
2251 PR fortran/26139
2252 * valops.c (value_ind): Pass address to
2253 readjust_indirect_value_type.
2254 * value.c (readjust_indirect_value_type): Make parameter
2255 non-const, and add extra address parameter. Resolve original type
2256 before using it.
2257 * value.h (readjust_indirect_value_type): Update function
2258 signature and comment.
2259
876518dd
TV
22602020-07-25 Tom de Vries <tdevries@suse.de>
2261
2262 PR symtab/26243
2263 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2264 entries.
2265
f6720b1c
AM
22662020-07-24 Aaron Merey <amerey@redhat.com>
2267
2268 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2269 * configure: Rebuild.
2270
513487e1
KB
22712020-07-23 Kevin Buettner <kevinb@redhat.com>
2272
2273 PR corefiles/26294
2274 * corelow.c (_initialize_corelow): Add period to help text
2275 for "maintenance print core-file-backed-mappings".
2276
e7bc9db8
PA
22772020-07-23 Pedro Alves <pedro@palves.net>
2278
2279 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2280 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2281 meanwhile.
2282 * frame.c (frame_cache_generation, get_frame_cache_generation):
2283 New.
2284 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2285 (get_prev_frame_if_no_cycle): On exception, don't touch
2286 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2287 * frame.h (get_frame_cache_generation): Declare.
2288
90fcc466
TV
22892020-07-23 Tom de Vries <tdevries@suse.de>
2290
2291 PR tui/26282
2292 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2293 New default constructor.
2294
78344df7
AB
22952020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2298 exclude non-statement entries.
2299
b089853a
KB
23002020-07-22 Kevin Buettner <kevinb@redhat.com>
2301
2302 * NEWS (New commands): Mention new command
2303 "maintenance print core-file-backed-mappings".
2304
09c2f5d4
KB
23052020-07-22 Kevin Buettner <kevinb@redhat.com>
2306
2307 * corelow.c (gdbcmd.h): Include.
2308 (core_target::info_proc_mappings): New method.
2309 (get_current_core_target): New function.
2310 (maintenance_print_core_file_backed_mappings): New function.
2311 (_initialize_corelow): Add core-file-backed-mappings to
2312 "maint print" commands.
2313
9c5ec5c2 23142020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2315
9c5ec5c2
KB
2316 * linux-tdep.c (dump_note_entry_p): New function.
2317 (linux_dump_mapping_p_ftype): New typedef.
2318 (linux_find_memory_regions_full): Add new parameter,
2319 should_dump_mapping_p.
2320 (linux_find_memory_regions): Adjust call to
2321 linux_find_memory_regions_full.
2322 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2323 call to linux_find_memory_regions_full.
2324
db082f59
KB
23252020-07-22 Kevin Buettner <kevinb@redhat.com>
2326
2327 * corelow.c (solist.h, unordered_map): Include.
2328 (class core_target): Add field m_core_file_mappings and
2329 method build_file_mappings.
2330 (core_target::core_target): Call build_file_mappings.
2331 (core_target::~core_target): Free memory associated with
2332 m_core_file_mappings.
2333 (core_target::build_file_mappings): New method.
2334 (core_target::xfer_partial): Use m_core_file_mappings
2335 for memory transfers.
2336 * linux-tdep.c (linux_read_core_file_mappings): New
2337 function.
2338 (linux_core_info_proc_mappings): Rewrite to use
2339 linux_read_core_file_mappings.
2340 (linux_init_abi): Register linux_read_core_file_mappings.
2341
7e183d27
KB
23422020-07-22 Kevin Buettner <kevinb@redhat.com>
2343
2344 * arch-utils.c (default_read_core_file_mappings): New function.
2345 * arch-utils.c (default_read_core_file_mappings): Declare.
2346 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2347 * gdbarch.h, gdbarch.c: Regenerate.
2348
2735d421
KB
23492020-07-22 Kevin Buettner <kevinb@redhat.com>
2350
2351 PR corefiles/25631
2352 * corelow.c (core_target:xfer_partial): Revise
2353 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2354 case after first checking the stratum beneath the core
2355 target.
2356 (has_all_memory): Return true.
2357 * target.c (raw_memory_xfer_partial): Revise comment
2358 regarding use of has_all_memory.
2359
e56cb451
KB
23602020-07-22 Kevin Buettner <kevinb@redhat.com>
2361
2362 * exec.h (section_table_xfer_memory): Revise declaration,
2363 replacing section name parameter with an optional callback
2364 predicate.
2365 * exec.c (section_table_xfer_memory): Likewise.
2366 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2367 of section_table_xfer_memory.
2368
32fa152e
TT
23692020-07-22 Tom Tromey <tromey@adacore.com>
2370
2371 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2372 lookup_symbol_search_name.
2373
a67a1c41
AB
23742020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2377 redundant local variable.
2378 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2379 reference, not pointer, update code accordingly.
2380
a7b4ff4f
SM
23812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2382 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2383
2384 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2385 * jit.c (jit_breakpoint_re_set_internal): Use the
2386 `skip_jit_symbol_lookup` field.
2387
2340e834
SM
23882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2389 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2390
2391 * jit.c (jit_read_descriptor): Define the descriptor address once,
2392 use twice.
2393 (jit_breakpoint_deleted): Move the declaration of the loop variable
2394 `iter` into the loop header.
2395 (jit_breakpoint_re_set_internal): Move the declaration of the local
2396 variable `objf_data` to the first point of definition.
2397 (jit_event_handler): Move the declaration of local variables
2398 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2399 Rename `objf` to `jited`.
2400
c1072906
SM
24012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2402
2403 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2404 Remove.
2405 * jit.c (get_jiter_objfile_data): Update.
2406
c8474dc3
TBA
24072020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2408 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * jit.c (struct jit_program_space_data): Remove.
2411 (jit_program_space_key): Remove.
2412 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2413 stuff.
2414 (get_jit_program_space_data): Remove.
2415 (jit_breakpoint_deleted): Iterate on all of the program space's
2416 objfiles.
2417 (jit_inferior_init): Likewise.
2418 (jit_breakpoint_re_set_internal): Likewise. Also change return
2419 type to void.
2420 (jit_breakpoint_re_set): Pass current_program_space to
2421 jit_breakpoint_re_set_internal.
2422
77208eb7
SM
24232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2424
2425 * jit.h (struct jiter_objfile_data) <cached_code_address,
2426 jit_breakpoint>: Move to here from ...
2427 * jit.c (jit_program_space_data): ... here.
2428 (jiter_objfile_data::~jiter_objfile_data): Update.
2429 (jit_breakpoint_deleted): Update.
2430 (jit_breakpoint_re_set_internal): Update.
2431
8c1c720f
SM
24322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2433
2434 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2435 checks.
2436 (jit_read_descriptor): Remove NULL check.
2437 (jit_event_handler): Add an assertion.
2438
0e74a041
SM
24392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * jit.h (struct jit_objfile_data): Split into...
2442 (struct jiter_objfile_data): ... this ...
2443 (struct jited_objfile_data): ... and this.
2444 * objfiles.h (struct objfile) <jit_data>: Remove.
2445 <jiter_data, jited_data>: New fields.
2446 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2447 (jiter_objfile_data::~jiter_objfile_data): ... this.
2448 (get_jit_objfile_data): Rename to ...
2449 (get_jiter_objfile_data): ... this.
2450 (add_objfile_entry): Update.
2451 (jit_read_descriptor): Use get_jiter_objfile_data.
2452 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2453 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2454 (jit_inferior_exit_hook): Use objfile's jited_data field.
2455
238b5c9f
SM
24562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2457
2458 * jit.h: Forward-declare `struct minimal_symbol`.
2459 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2460 constructor, destructor, and an objfile* field.
2461 * jit.c (jit_objfile_data): Remove.
2462 (struct jit_objfile_data): Migrate from here to jit.h.
2463 (jit_objfile_data::~jit_objfile_data): New destructor
2464 implementation with code moved from free_objfile_data.
2465 (free_objfile_data): Delete.
2466 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2467 (jit_find_objf_with_entry_addr): Ditto.
2468 (jit_inferior_exit_hook): Ditto.
2469 (_initialize_jit): Remove the call to
2470 register_objfile_data_with_cleanup.
2471 * objfiles.h (struct objfile) <jit_data>: New field.
2472
fe053b9e
TBA
24732020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2474
2475 * jit.h: Forward-declare `struct objfile`.
2476 (jit_event_handler): Add a second parameter, the JITer objfile.
2477 * jit.c (jit_read_descriptor): Change the signature to take the
2478 JITer objfile as an argument instead of the jit_program_space_data.
2479 (jit_inferior_init): Update the call to jit_read_descriptor.
2480 (jit_event_handler): Use the new JITer objfile argument when calling
2481 jit_read_descriptor.
2482 * breakpoint.c (handle_jit_event): Update the call to
2483 jit_event_handler to pass the JITer objfile.
2484
4cec0c66
JB
24852020-07-21 John Baldwin <jhb@FreeBSD.org>
2486
2487 * gdbarch.c: Regenerate.
2488 * gdbarch.h: Regenerate.
2489 * gdbarch.sh (handle_segmentation_fault): Remove method.
2490 * infrun.c (handle_segmentation_fault): Remove.
2491 (print_signal_received_reason): Remove call to
2492 handle_segmentation_fault.
2493
0e42f66a
JB
24942020-07-21 John Baldwin <jhb@FreeBSD.org>
2495
2496 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2497 Rename to sparc64_linux_report_signal_info and add siggnal
2498 argument.
2499 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2500 instead of sparc64_linux_handle_segmentation_fault.
2501
77bdfeb2
JB
25022020-07-21 John Baldwin <jhb@FreeBSD.org>
2503
2504 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2505 i386_linux_report_signal_info instead of
2506 i386_linux_handle_segmentation_fault.
2507 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2508 to i386_linux_report_signal_info and add siggnal argument.
2509 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2510 of i386_linux_handle_segmentation_fault.
2511 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2512 to i386_linux_report_signal_info and add siggnal argument.
2513
ad97bfc5
JB
25142020-07-21 John Baldwin <jhb@FreeBSD.org>
2515
2516 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2517 hook if present.
2518
272bb05c
JB
25192020-07-21 John Baldwin <jhb@FreeBSD.org>
2520
2521 * gdbarch.c: Regenerate.
2522 * gdbarch.h: Regenerate.
2523 * gdbarch.sh (report_signal_info): New method.
2524 * infrun.c (print_signal_received_reason): Invoke gdbarch
2525 report_signal_info hook if present.
2526
baf8791e
AB
25272020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * python/py-registers.c : Add 'unordered_map' include.
2530 (gdbpy_new_reggroup): Renamed to...
2531 (gdbpy_get_reggroup): ...this. Update to only create register
2532 group descriptors when needed.
2533 (gdbpy_reggroup_iter_next): Update.
2534
f7306dac
AB
25352020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * python/py-registers.c (gdbpy_register_object_data): New static
2538 global.
2539 (gdbpy_register_object_data_init): New function.
2540 (gdbpy_new_register_descriptor): Renamed to...
2541 (gdbpy_get_register_descriptor): ...this, and update to reuse
2542 existing register descriptors where possible.
2543 (gdbpy_register_descriptor_iter_next): Update.
2544 (gdbpy_initialize_registers): Register new gdbarch data.
2545
05c309a8
SM
25462020-07-21 Simon Marchi <simon.marchi@efficios.com>
2547
2548 * linux-nat.c (stopped_pids): Make static.
2549
d1fd641e
SM
25502020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 PR ada/26235
2553 * gdbtypes.c (ada_discrete_type_low_bound,
2554 ada_discrete_type_high_bound): Handle undefined bounds.
2555
1de14d77
KR
25562020-07-21 Kamil Rytarowski <n54@gmx.com>
2557
2558 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2559 declaration.
2560 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2561 function.
2562
ed810cc7
JB
25632020-07-20 John Baldwin <jhb@FreeBSD.org>
2564
2565 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2566 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2567 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2568 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2569 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2570 method.
2571
ae5369e7
LC
25722020-07-20 Ludovic Courtès <ludo@gnu.org>
2573
2574 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2575 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2576 which are deprecated in Guile 3.0.
2577 * configure.ac (try_guile_versions): Add "guile-3.0".
2578 * configure (try_guile_versions): Regenerate.
2579 * NEWS: Update entry.
2580
68cf161c
LC
25812020-07-20 Ludovic Courtès <ludo@gnu.org>
2582 Doug Evans <dje@google.com>
2583
2584 PR gdb/21104
2585 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2586 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2587 USING_GUILE_BEFORE_2_2.
2588 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2589 Change type to 'scm_t_port_type *'.
2590 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2591 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2592 parameter and honor it. Update callers.
2593 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2594 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2595 functions.
2596 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2597 USING_GUILE_BEFORE_2_2.
2598 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2599 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2600 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2601 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2602 and 'SCM_PORT_TYPE'.
2603 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2604 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2605 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2606 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2607 [!USING_GUILE_BEFORE_2_2]: New functions.
2608 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2609 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2610 'gdbscm_memory_port_read'.
2611 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2612 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2613 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2614 function.
2615 (ioscm_init_memory_port): Remove.
2616 (ioscm_init_memory_port_stream): New function
2617 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2618 function.
2619 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2620 Return scm_from_uint (0).
2621 (gdbscm_set_memory_port_read_buffer_size_x)
2622 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2623 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2624 Return scm_from_uint (0).
2625 (gdbscm_set_memory_port_write_buffer_size_x)
2626 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2627 * configure.ac (try_guile_versions): Add "guile-2.2".
2628 * configure: Regenerate.
2629 * NEWS: Add entry.
2630
aee91db3
TT
26312020-07-18 Tom Tromey <tom@tromey.com>
2632
2633 * linux-nat.c (linux_multi_process): Remove.
2634 (linux_nat_target::supports_multi_process): Return true.
2635
0e267416
AB
26362020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2639 (riscv_lookup_target_description): Return pointer out of
2640 unique_ptr.
2641 * target-descriptions.c (allocate_target_description): Add
2642 comment.
2643 (target_desc_deleter::operator()): Likewise.
2644 * target-descriptions.h (struct target_desc_deleter): Moved to
2645 gdbsupport/tdesc.h.
2646 (target_desc_up): Likewise.
2647
f80c8ec4
TT
26482020-07-17 Tom Tromey <tromey@adacore.com>
2649
2650 * linux-nat.c (linux_nat_target::supports_non_stop)
2651 (linux_nat_target::always_non_stop_p): Use "true".
2652 (linux_nat_target::supports_disable_randomization): Use "true" and
2653 "false".
2654
d0ce17d8
CT
26552020-07-16 Caroline Tice <cmtice@google.com>
2656
2657 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2658 (RNGLIST_HEADER_SIZE64): New constant definition.
2659 (struct dwop_section_names): Add rnglists_dwo.
2660 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2661 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2662 (struct dwo_sections): Add rnglists field.
2663 (read_attribut_reprocess): Add tag parameter.
2664 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2665 (cu_debug_rnglists_section): New function (decl & definition).
2666 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2667 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2668 die whose range is being checked; get rnglist section from
2669 cu_debug_rnglists_section, to get from either objfile or dwo file as
2670 appropriate. Add cases for DW_RLE_base_addressx,
2671 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2672 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2673 test inside if-condition and updating complaint message.
2674 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2675 dwarf2_rnglists_process.
2676 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2677 dwarf2_ranges_process.
2678 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2679 need_ranges_base and update comment appropriately. Also pass die tag
2680 to dwarf2_ranges_read.
2681 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2682 need_ranges_base and update comment appropriately. Also pass die tag
2683 to dwarf2_ranges_process.
2684 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2685 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2686 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2687 need_ranges_base and update comment appropriately. Also pass die tag
2688 to read_attribute_reprocess and dwarf2_ranges_read.
2689 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2690 and update function comment appropriately.
2691 (read_loclist_index): Call read_loclists_rnglists_header instead of
2692 read_loclist_header.
2693 (read_rnglist_index): New function.
2694 (read_attribute_reprocess): Add tag parameter. Add code for
2695 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2696 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2697
3dcc261c
AB
26982020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2701 being resolved.
2702
ccb9eba6
AB
27032020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * arch-utils.c (show_architecture): Update formatting of messages.
2706
cf88be68
SM
27072020-07-12 Simon Marchi <simon.marchi@efficios.com>
2708
2709 * gdbtypes.h (struct type) <bounds>: Handle array and string
2710 types.
2711 * ada-lang.c (assign_aggregate): Use type::bounds on
2712 array/string type.
2713 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2714 * c-varobj.c (c_number_of_children): Likewise.
2715 (c_describe_child): Likewise.
2716 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2717 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2718 (f_type_print_base): Likewise.
2719 * f-valprint.c (f77_array_offset_tbl): Likewise.
2720 (f77_get_upperbound): Likewise.
2721 (f77_print_array_1): Likewise.
2722 * guile/scm-type.c (gdbscm_type_range): Likewise.
2723 * m2-typeprint.c (m2_array): Likewise.
2724 (m2_is_long_set_of_type): Likewise.
2725 * m2-valprint.c (get_long_set_bounds): Likewise.
2726 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2727 * python/py-type.c (typy_range): Likewise.
2728 * rust-lang.c (rust_internal_print_type): Likewise.
2729 * type-stack.c (type_stack::follow_types): Likewise.
2730 * valarith.c (value_subscripted_rvalue): Likewise.
2731 * valops.c (value_cast): Likewise.
2732
509971ae
SM
27332020-07-12 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2736 callers to use the equivalent accessor methods.
2737
107406b7
SM
27382020-07-12 Simon Marchi <simon.marchi@efficios.com>
2739
2740 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2741 (struct type) <bit_stride>: New method.
2742 (TYPE_BIT_STRIDE): Remove.
2743 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2744
bb789949
SM
27452020-07-12 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2748 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2749 callers to use the equivalent accessor methods instead.
2750
39498edb
SM
27512020-07-12 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2754 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2755 callers to use the equivalent accessor methods instead.
2756
3b606f38
SM
27572020-07-12 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2760 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2761 to use dynamic_prop::kind.
2762
064d9cb9
SM
27632020-07-12 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2766 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2767 to get the bound property's kind and check against
2768 PROP_UNDEFINED.
2769
5537ddd0
SM
27702020-07-12 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2773 all callers to use type::range_bounds followed by
2774 dynamic_prop::{low,high}.
2775
8c2e4e06
SM
27762020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2777
2778 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2779 const_val, set_const_val, baton, set_locexpr, set_loclist,
2780 set_addr_offset, variant_parts, set_variant_parts,
2781 original_type, set_original_type>: New methods.
2782 <kind>: Rename to...
2783 <m_kind>: ... this. Update all users to use the new methods
2784 instead.
2785 <data>: Rename to...
2786 <m_data>: ... this. Update all users to use the new methods
2787 instead.
2788
7c6f2712
SM
27892020-07-12 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * gdbtypes.c (get_discrete_bounds): Return failure if
2792 the range type's bounds are not both defined and constant
2793 values.
2794 (get_array_bounds): Update comment. Remove undefined bound check.
2795
599088e3
SM
27962020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2799 the type::bounds method directly.
2800
c4dfcb36
SM
28012020-07-12 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2804 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2805 are used to set the range type's bounds to use set_bounds.
2806
0a278aa7
PW
28072020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2808
2809 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2810
cce20f10
PA
28112020-07-10 Pedro Alves <pedro@palves.net>
2812
2813 * gdbthread.h (inferior_ref): Define.
2814 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2815 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2816 * thread.c
2817 (scoped_restore_current_thread::restore):
2818 Adjust to gdb::ref_ptr.
2819 (scoped_restore_current_thread::~scoped_restore_current_thread):
2820 Remove manual decref handling.
2821 (scoped_restore_current_thread::scoped_restore_current_thread):
2822 Adjust to use
2823 inferior_ref::new_reference/thread_info_ref::new_reference.
2824 Incref the thread before calling get_frame_id instead of after.
2825 Let TARGET_CLOSE_ERROR propagate.
2826
6d7aa592
PA
28272020-07-10 Pedro Alves <pedro@palves.net>
2828
2829 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2830 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2831 NOT_AVAILABLE_ERROR.
2832 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2833 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2834
b3e3a4c1
SM
28352020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2836 Pedro Alves <pedro@palves.net>
2837
2838 PR gdb/26199
2839 * infrun.c (threads_are_resumed_pending_p): Delete.
2840 (do_target_wait): Remove threads_are_executing and
2841 threads_are_resumed_pending_p checks from the inferior_matches
2842 lambda. Update comments.
2843
d6cc5d98
PA
28442020-07-10 Pedro Alves <pedro@palves.net>
2845
2846 PR gdb/26199
2847 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2848 executing threads.
2849
7d3badc6
PA
28502020-07-10 Pedro Alves <pedro@palves.net>
2851
2852 PR gdb/26199
2853 * infrun.c (handle_no_resumed): Handle multiple targets.
2854
42bd97a6
PA
28552020-07-10 Pedro Alves <pedro@palves.net>
2856
2857 PR gdb/26199
2858 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2859 target_is_async_p.
2860
43667cc6
PA
28612020-07-10 Pedro Alves <pedro@palves.net>
2862
2863 PR gdb/26199
2864 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2865 threads, not all threads.
2866
96118d11
PA
28672020-07-10 Pedro Alves <pedro@palves.net>
2868
2869 PR gdb/26199
2870 * remote.c (remote_target::open_1): Pass remote target pointer as
2871 data to create_async_event_handler.
2872 (remote_async_inferior_event_handler): Mark async event handler
2873 before returning if the remote target still has either pending
2874 events or unacknowledged notifications.
2875
54904d81
JB
28762020-07-10 John Baldwin <jhb@FreeBSD.org>
2877
2878 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2879 declaration.
2880 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2881 function.
2882
f37e5866
JB
28832020-07-09 John Baldwin <jhb@FreeBSD.org>
2884
2885 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2886 inferior_ptid.
2887
fc238d4a
JB
28882020-07-09 John Baldwin <jhb@FreeBSD.org>
2889
2890 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2891 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2892 AT_FREEBSD_PS_STRINGS.
2893
6e2469ff
HD
28942020-07-08 Hannes Domani <ssbssa@yahoo.de>
2895
2896 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2897 of debugfile path on Windows.
2898
d1076c41
JB
28992020-07-08 John Baldwin <jhb@FreeBSD.org>
2900
2901 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2902 argument to 'data'.
2903
15f3b077
TT
29042020-07-08 Tom Tromey <tromey@adacore.com>
2905
2906 * ada-lang.c (ada_exception_message_1): Use read_memory.
2907
9fc501fd
AB
29082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 PR python/22748
2911 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2912 special handling for inline frames.
2913 * findvar.c (value_of_register_lazy): Skip inline frames when
2914 creating lazy register values.
2915 * frame.c (frame_id_computed_p): Delete definition.
2916 * frame.h (frame_id_computed_p): Delete declaration.
2917
64cb3757
AB
29182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * NEWS: Mention additions to Python API.
2921 * python/py-arch.c (archpy_register_groups): New function.
2922 (arch_object_methods): Add 'register_groups' method.
2923 * python/py-registers.c (reggroup_iterator_object): New struct.
2924 (reggroup_object): New struct.
2925 (gdbpy_new_reggroup): New function.
2926 (gdbpy_reggroup_to_string): New function.
2927 (gdbpy_reggroup_name): New function.
2928 (gdbpy_reggroup_iter): New function.
2929 (gdbpy_reggroup_iter_next): New function.
2930 (gdbpy_new_reggroup_iterator): New function
2931 (gdbpy_initialize_registers): Register new types.
2932 (reggroup_iterator_object_type): Define new Python type.
2933 (gdbpy_reggroup_getset): New static global.
2934 (reggroup_object_type): Define new Python type.
2935 * python/python-internal.h
2936
0f767f94
AB
29372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2940 * python/py-arch.c (archpy_registers): New function.
2941 (arch_object_methods): Add 'registers' method.
2942 * python/py-registers.c: New file.
2943 * python/python-internal.h
2944 (gdbpy_new_register_descriptor_iterator): Declare.
2945 (gdbpy_initialize_registers): Declare.
2946 * python/python.c (do_start_initialization): Call
2947 gdbpy_initialize_registers.
2948 * NEWS: Mention additions to the Python API.
2949
87dbc774
AB
29502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * NEWS: Mention new Python API method.
2953 * python/py-unwind.c (pending_framepy_architecture): New function.
2954 (pending_frame_object_methods): Add architecture method.
2955
3bc98c0c
AB
29562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2957
2958 * gdbarch.c: Regenerate.
2959 * gdbarch.h: Regenerate.
2960 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2961 (gdbarch_data): Use internal_error for the case where
2962 deprecated_set_gdbarch_data was originally needed.
2963 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2964 and use passed in obstack.
2965 (libunwind_frame_set_descr): Should no longer get back NULL from
2966 gdbarch_data.
2967 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2968 type.
2969 * user-regs.c (user_regs_init): Update parameters, and use passed
2970 in obstack.
2971 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2972 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2973
d8cc8af6
TV
29742020-07-06 Tom de Vries <tdevries@suse.de>
2975
2976 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2977 End-Of-Sequence in lte_is_less_than.
2978 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2979 "gdb: Don't reorder line table entries too much when sorting".
2980
947f7597
TV
29812020-07-06 Tom de Vries <tdevries@suse.de>
2982
2983 PR tui/26205
2984 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2985
1e7c1b22
TV
29862020-07-05 Tom de Vries <tdevries@suse.de>
2987
2988 PR build/26187
2989 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2990 std::uncaught_exceptions instead of deprecated
2991 std::uncaught_exception.
2992
a36158ec
SM
29932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2994
2995 * macroexp.h (macro_stringify): Return
2996 gdb::unique_xmalloc_ptr<char>.
2997 * macroexp.c (macro_stringify): Likewise.
2998 * macrotab.c (fixup_definition): Update.
2999
14d960c8
SM
30002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3003 (lex_one_token): Update.
3004 * macroexp.c (struct macro_buffer) <release>: Return
3005 gdb::unique_xmalloc_ptr<char>.
3006 (macro_stringify): Update.
3007 (macro_expand): Update.
3008 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3009 * macroexp.h (macro_expand_next): Likewise.
3010
211d5b1c
SM
30112020-07-02 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * macroexp.h (macro_lookup_ftype): Remove.
3014 (macro_expand, macro_expand_once, macro_expand_next): Remove
3015 lookup function parameters, add scope parameter.
3016 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3017 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3018 * macroscope.h (standard_macro_lookup): Change parameter type
3019 to macro_scope.
3020 * macroscope.c (standard_macro_lookup): Likewise.
3021 * c-exp.y (lex_one_token): Update.
3022 * macrocmd.c (macro_expand_command): Likewise.
3023 (macro_expand_once_command): Likewise.
3024
b1a35af2
SM
30252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * inf-loop.c (inferior_event_handler): Remove client_data param.
3028 * inf-loop.h (inferior_event_handler): Likewise.
3029 * infcmd.c (step_1): Adjust.
3030 * infrun.c (proceed): Adjust.
3031 (fetch_inferior_event): Remove client_data param.
3032 (infrun_async_inferior_event_handler): Adjust.
3033 * infrun.h (fetch_inferior_event): Remove `void *` param.
3034 * linux-nat.c (handle_target_event): Adjust.
3035 * record-btrace.c (record_btrace_handle_async_inferior_event):
3036 Adjust.
3037 * record-full.c (record_full_async_inferior_event_handler):
3038 Adjust.
3039 * remote.c (remote_async_inferior_event_handler): Adjust.
3040
1cdf9e33
TT
30412020-07-01 Tom Tromey <tom@tromey.com>
3042
3043 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3044 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3045
32c1e210
TT
30462020-07-01 Tom Tromey <tom@tromey.com>
3047
3048 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3049 tui_gen_win_info.
3050 (tui_win_info::make_window): Merge with
3051 tui_gen_win_info::make_window.
3052 (tui_win_info::make_visible): Move from tui_gen_win_info.
3053 * tui/tui-win.c (tui_win_info::max_width): Move from
3054 tui_gen_win_info.
3055 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3056 type.
3057 <window_factory>: Likewise.
3058 * tui/tui-layout.c (tui_win_info::resize): Move from
3059 tui_gen_win_info.
3060 (make_standard_window): Change return type.
3061 (get_locator_window, tui_get_window_by_name): Likewise.
3062 (tui_layout_window::apply): Remove a cast.
3063 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3064 (struct tui_win_info): Merge with tui_gen_win_info.
3065 (struct tui_gen_win_info): Remove.
3066
a30cb6da
TT
30672020-07-01 Tom Tromey <tom@tromey.com>
3068
3069 * tui/tui-stack.h (struct tui_locator_window): Derive from
3070 tui_win_info.
3071 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3072 <can_box>: New method.
3073
1eb2161f
TT
30742020-07-01 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3077
7134f2eb
TT
30782020-07-01 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-regs.c (tui_data_window::display_registers_from)
3081 (tui_data_window::display_registers_from)
3082 (tui_data_window::first_data_item_displayed)
3083 (tui_data_window::delete_data_content_windows): Update.
3084 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3085 Remove.
3086 (tui_data_window::check_register_values): Update.
3087 (tui_data_item_window::rerender): Add parameters. Update.
3088 (tui_data_item_window::refresh_window): Remove.
3089 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3090 virtual.
3091 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3092 tui_gen_win_info.
3093 <refresh_window, max_height, min_height>: Remove.
3094 <rerender>: Add parameters.
3095 <x, y, visible>: New members.
3096 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3097 <m_item_width>: New member.
3098
22b7b041
TT
30992020-07-01 Tom Tromey <tom@tromey.com>
3100
3101 * tui/tui-regs.c (tui_data_window::show_register_group)
3102 (tui_data_window::check_register_values): Update.
3103 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3104 from item_no.
3105
c9753adb
TT
31062020-07-01 Tom Tromey <tom@tromey.com>
3107
3108 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3109 useless "if".
3110
9ab26b4a
TT
31112020-07-01 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3114 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3115
e555083f
TT
31162020-07-01 Tom Tromey <tom@tromey.com>
3117
3118 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3119 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3120 (struct tui_line_or_address): Move from tui-data.h.
3121 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3122 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3123 (tui_cmd_window, tui_source_window_base, tui_source_window)
3124 (tui_disasm_window): Don't declare.
3125 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3126 to tui-winsource.h.
3127 (SINGLE_KEY): Move to tui-stack.c.
3128
7a02bab7
TT
31292020-07-01 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3132 std::string.
3133 * tui/tui-regs.c (class tab_expansion_file): New.
3134 (tab_expansion_file::write): New method.
3135 (tui_register_format): Change return type. Use
3136 tab_expansion_file.
3137 (tui_get_register, tui_data_window::display_registers_from)
3138 (tui_data_item_window::rerender): Update.
3139 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3140 * tui/tui-io.c (tui_expand_tabs): Remove.
3141
ea68593b
TT
31422020-07-01 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3145
a8caed5d
FS
31462020-07-01 Fangrui Song <maskray@google.com>
3147
3148 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3149
9cdf9820
AKS
31502020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3151
3152 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3153 forms for DW_AT_associated and DW_AT_allocated attributes,
3154 which is already checked in function attr_to_dynamic_prop.
3155
a1520ad8
TT
31562020-06-30 Tom Tromey <tromey@adacore.com>
3157
3158 * dwarf2/read.c (quirk_rust_enum): Correctly call
3159 alloc_rust_variant for default-less enum.
3160
5ac58899
TT
31612020-06-30 Tom Tromey <tromey@adacore.com>
3162
3163 PR build/26183:
3164 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3165 gdb::to_string.
3166
19b187a9
SM
31672020-06-29 Simon Marchi <simon.marchi@efficios.com>
3168
3169 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3170 * gdbarch.h: Re-generate.
3171
cd4c4c07
TT
31722020-06-28 Tom Tromey <tom@tromey.com>
3173
3174 * command.h (cmd_types): Remove.
3175 (cmd_type): Don't declare.
3176 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3177 typedef.
3178 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3179 * cli/cli-decode.c (cmd_type): Remove.
3180
05779d57
PA
31812020-06-27 Pedro Alves <palves@redhat.com>
3182
3183 * fork-child.c (prefork_hook): Adjust.
3184 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3185 Delete.
3186 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3187 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3188 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3189 Remove declarations.
3190 (struct inferior) <set_tty, tty>: New methods.
3191 (struct inferior) <terminal>: Rename to ...
3192 (struct inferior) <m_terminal>: ... this and make private.
3193 * main.c (captured_main_1): Adjust.
3194 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3195 (mi_cmd_inferior_tty_show): Adjust.
3196 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3197 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3198
1776e3e5
NA
31992020-06-26 Nick Alcock <nick.alcock@oracle.com>
3200
3201 * configure.ac: Add --enable-libctf: handle --disable-static
3202 properly.
3203 * acinclude.m4: sinclude ../config/enable.m4.
3204 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3205 (LIBCTF): Substitute in.
3206 (CTF_DEPS): New, likewise.
3207 (CLIBS): libctf needs symbols from libbfd: move earlier.
3208 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3209 flags.
3210 * ctfread.c: Surround in ENABLE_LIBCTF.
3211 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3212 * configure: Regenerate.
3213 * config.in: Likewise.
3214
58373b80
SM
32152020-06-25 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3218
277474ee
SM
32192020-06-25 Simon Marchi <simon.marchi@efficios.com>
3220
3221 * inferior.h (struct inferior) <terminal>: Change type to
3222 gdb::unique_xmalloc_ptr<char>.
3223 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3224 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3225 field, adjust to unique pointer.
3226 (get_inferior_io_terminal): Adjust to unique pointer.
3227
6d74da72
AB
32282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3231 registers, not just the known core set of registers.
3232
2e52d038
AB
32332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3236 fflags, frm, and fcsr registers.
3237 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3238 restore groups.
3239 (riscv_tdesc_unknown_reg): New function.
3240 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3241 tdesc_use_registers.
3242 * riscv-tdep.h (struct gdbarch_tdep): Add
3243 unknown_csrs_first_regnum, unknown_csrs_count,
3244 duplicate_fflags_regnum, duplicate_frm_regnum, and
3245 duplicate_fcsr_regnum fields.
3246
be64fd07
AB
32472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3248
3249 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3250 callback, use the callback (when not null) to help number unknown
3251 registers.
3252 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3253 (tdesc_use_registers): Add extra parameter to declaration.
3254
3b9fce96
AB
32552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3258 in the file.
3259 (class riscv_pending_register_alias): Likewise.
3260 (riscv_register_feature::register_info): Change 'required_p' field
3261 to 'required', and change its type. Add 'check' member function.
3262 (riscv_register_feature::register_info::check): Define new member
3263 function.
3264 (riscv_xreg_feature): Change initialisation of 'required' field.
3265 (riscv_freg_feature): Likewise.
3266 (riscv_virtual_feature): Likewise.
3267 (riscv_csr_feature): Likewise.
3268 (riscv_check_tdesc_feature): Take extra parameter, the csr
3269 tdesc_feature, rewrite the function to use the new
3270 riscv_register_feature::register_info::check function.
3271 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3272
865bad26
AB
32732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * features/Makefile: Remove all references to the deleted files
3276 below.
3277 * features/riscv/32bit-csr.c: Deleted.
3278 * features/riscv/32bit-csr.xml: Deleted.
3279 * features/riscv/64bit-csr.c: Deleted.
3280 * features/riscv/64bit-csr.xml: Deleted.
3281 * features/riscv/rebuild-csr-xml.sh: Deleted.
3282
ed69cbc8
AB
32832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3286 whitespace error for declaration of names member variable.
3287 (struct riscv_register_feature): Add new prefer_first_name member
3288 variable, and fix whitespace error in declaration of registers.
3289 (riscv_xreg_feature): Initialize prefer_first_name field.
3290 (riscv_freg_feature): Likewise.
3291 (riscv_virtual_feature): Likewise.
3292 (riscv_csr_feature): Likewise.
3293 (riscv_register_name): Expand on comments. Remove register name
3294 modifications for CSR and virtual registers.
3295
4445e8f5
AB
32962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3299 errors.
3300
767a879e
AB
33012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3304 riscv-opc.h.
3305 (class riscv_pending_register_alias): New class.
3306 (riscv_check_tdesc_feature): Take vector of pending aliases and
3307 populate it as appropriate.
3308 (riscv_setup_register_aliases): Delete.
3309 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3310 to riscv_check_tdesc_feature in all cases. Use the vector to
3311 create the register aliases.
3312
bb6e55f3
RO
33132020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3314
3315 * sol2-tdep.c (sol2_static_transform_name): Remove.
3316 (sol2_init_abi): Don't register it.
3317 * gdbarch.sh (static_transform_name): Remove.
3318 * gdbarch.c, gdbarch.h: Regenerate.
3319
3320 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3321 gdbarch_static_transform_name.
3322 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3323 * stabsread.c (define_symbol) <'X'>: Remove.
3324 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3325 handling.
3326 <'V'>: Likewise.
3327 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3328 <'S'>: Remove call to gdbarch_static_transform_name.
3329
c6d36836
RO
33302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3331
3332 * procfs.c (procfs_pre_trace): New function.
3333 (procfs_target::create_inferior): Pass it to fork_inferior.
3334
a7e6196b
RO
33352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3336
3337 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3338 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3339 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3340 sol2-tdep.o, sparc-sol2-tdep.o.
3341 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3342 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3343 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3344 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3345
d412e696
RO
33462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3347
3348 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3349 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3350 Call sol2_init_abi.
3351 Remove calls to set_gdbarch_skip_solib_resolver,
3352 set_gdbarch_core_pid_to_str.
3353 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3354 (i386_sol2_static_transform_name): Remove.
3355 (i386_sol2_init_abi): Call sol2_init_abi.
3356 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3357 set_gdbarch_static_transform_name,
3358 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3359 Use sol2_sigtramp_p.
3360 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3361 (sol2_sigtramp_p): New function.
3362 (sol2_static_transform_name): New function.
3363 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3364 (sol2_init_abi): New function.
3365 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3366 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3367 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3368 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3369 (sparc_sol2_static_transform_name): Remove.
3370 (sparc32_sol2_init_abi): Call sol2_init_abi.
3371 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3372 set_gdbarch_static_transform_name,
3373 set_gdbarch_skip_solib_resolver,
3374 set_gdbarch_core_pid_to_str.
3375 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3376 (sparc_sol2_static_transform_name): Remove
3377 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3378 call sol2_sigtramp_p.
3379 (sparc64_sol2_init_abi): Call sol2_init_abi.
3380 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3381 set_gdbarch_static_transform_name,
3382 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3383
a8654e7d
PW
33842020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3385
3386 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3387 * exec.c (validate_exec_file): If from_tty, set both
3388 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3389 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3390 and from_tty, unconditionally ask a confirmation.
3391
caa7fd04
AB
33922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * target-descriptions.c (tdesc_architecture_name): Protect against
3395 NULL pointer dereference.
3396 (maint_print_xml_tdesc_cmd): New function.
3397 (_initialize_target_descriptions): Register new 'maint print
3398 xml-tdesc' command and give it the filename completer.
3399 * NEWS: Mention new 'maint print xml-tdesc' command.
3400
fbf42f4e
AB
34012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3402
3403 * target-descriptions.c (class tdesc_compatible_info): New class.
3404 (struct target_desc): Change type of compatible vector.
3405 (tdesc_compatible_p): Update for change in type of
3406 target_desc::compatible.
3407 (tdesc_compatible_info_list): New function.
3408 (tdesc_compatible_info_arch_name): New function.
3409 (tdesc_add_compatible): Update for change in type of
3410 target_desc::compatible.
3411 (print_c_tdesc::visit_pre): Likewise.
3412
20821f4e
AB
34132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3416 whitespace to underscore.
3417 (maint_print_c_tdesc_cmd): Use fake filename for target
3418 descriptions that came from the target.
3419 (_initialize_target_descriptions): Add filename command completion
3420 for 'maint print c-tdesc'.
3421
1fb5ee62
SM
34222020-06-23 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3425 lines.
3426
fc3ecb3e
SM
34272020-06-23 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3430 lines.
3431 (dwarf2_find_location_expression): Likewise.
3432 (call_site_parameter_matches): Likewise.
3433 (dwarf2_compile_expr_to_ax): Likewise.
3434 (disassemble_dwarf_expression): Likewise.
3435 (loclist_describe_location): Likewise.
3436
236ef034
PA
34372020-06-23 Pedro Alves <palves@redhat.com>
3438
3439 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3440 progspace-and-thread.h. Include scoped-mock-context.h instead.
3441 (register_to_value_test): Use scoped_mock_context.
3442 * regcache.c: Include "scoped-mock-context.h".
3443 (cooked_read_test): Don't error out if a target is already pushed.
3444 Use scoped_mock_context. Adjust.
3445 * scoped-mock-context.h: New file.
3446
39e7ecca
AB
34472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3450 initializer.
3451 (ada_language::is_string_type_p): New member function.
3452 * c-lang.c (c_language_data): Delete la_is_string_type_p
3453 initializer.
3454 (cplus_language_data): Likewise.
3455 (asm_language_data): Likewise.
3456 (minimal_language_data): Likewise.
3457 * d-lang.c (d_language_data): Likewise.
3458 * f-lang.c (f_is_string_type_p): Delete function, implementation
3459 moved to f_language::is_string_type_p.
3460 (f_language_data): Delete la_is_string_type_p initializer.
3461 (f_language::is_string_type_p): New member function,
3462 implementation from f_is_string_type_p.
3463 * go-lang.c (go_is_string_type_p): Delete function, implementation
3464 moved to go_language::is_string_type_p.
3465 (go_language_data): Delete la_is_string_type_p initializer.
3466 (go_language::is_string_type_p): New member function,
3467 implementation from go_is_string_type_p.
3468 * language.c (language_defn::is_string_type_p): Define new member
3469 function.
3470 (default_is_string_type_p): Make static, add comment copied from
3471 header file.
3472 (unknown_language_data): Delete la_is_string_type_p initializer.
3473 (unknown_language::is_string_type_p): New member function.
3474 (auto_language_data): Delete la_is_string_type_p initializer.
3475 (auto_language::is_string_type_p): New member function.
3476 * language.h (language_data): Delete la_is_string_type_p field.
3477 (language_defn::is_string_type_p): Declare new function.
3478 (default_is_string_type_p): Delete desclaration, move comment to
3479 definition.
3480 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3481 moved to m2_language::is_string_type_p.
3482 (m2_language_data): Delete la_is_string_type_p initializer.
3483 (m2_language::is_string_type_p): New member function,
3484 implementation from m2_is_string_type_p.
3485 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3486 initializer.
3487 * opencl-lang.c (opencl_language_data): Likewise.
3488 * p-lang.c (pascal_is_string_type_p): Delete function,
3489 implementation moved to pascal_language::is_string_type_p.
3490 (pascal_language_data): Delete la_is_string_type_p initializer.
3491 (pascal_language::is_string_type_p): New member function,
3492 implementation from pascal_is_string_type_p.
3493 * rust-lang.c (rust_is_string_type_p): Delete function,
3494 implementation moved to rust_language::is_string_type_p.
3495 (rust_language_data): Delete la_is_string_type_p initializer.
3496 (rust_language::is_string_type_p): New member function,
3497 implementation from rust_is_string_type_p.
3498 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3499 is_string_type_p.
3500
4ffc13fb
AB
35012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * ada-lang.c (ada_language_data): Delete la_print_typedef
3504 initializer.
3505 (ada_language::print_typedef): New member function.
3506 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3507 (cplus_language_data): Likewise.
3508 (asm_language_data): Likewise.
3509 (minimal_language_data): Likewise.
3510 * d-lang.c (d_language_data): Likewise.
3511 * f-lang.c (f_language_data): Likewise.
3512 (f_language::print_typedef): New member function.
3513 * go-lang.c (go_language_data): Delete la_print_typedef
3514 initializer.
3515 * language.c (language_defn::print_typedef): Define member
3516 function.
3517 (unknown_language_data): Delete la_print_typedef initializer.
3518 (unknown_language::print_typedef): New member function.
3519 (auto_language_data): Delete la_print_typedef initializer.
3520 (auto_language::print_typedef): New member function.
3521 * language.h (language_data): Delete la_print_typedef field.
3522 (language_defn::print_typedef): Declare new member function.
3523 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3524 (default_print_typedef): Delete declaration.
3525 * m2-lang.c (m2_language_data): Delete la_print_typedef
3526 initializer.
3527 (m2_language::print_typedef): New member function.
3528 * objc-lang.c (objc_language_data): Delete la_print_typedef
3529 initializer.
3530 * opencl-lang.c (opencl_language_data): Likewise.
3531 * p-lang.c (pascal_language_data): Likewise.
3532 (pascal_language::print_typedef): New member function.
3533 * rust-lang.c (rust_print_typedef): Delete function,
3534 implementation moved to rust_language::print_typedef.
3535 (rust_language): Delete la_print_typedef initializer.
3536 (rust_language::print_typedef): New member function,
3537 implementation from rust_print_typedef.
3538 * typeprint.c (default_print_typedef): Delete.
3539
d711ee67
AB
35402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3543 (ada_language::printstr): New member function.
3544 * c-lang.c (c_language_data): Delete la_printstr initializer.
3545 (cplus_language_data): Likewise.
3546 (asm_language_data): Likewise.
3547 (minimal_language_data): Likewise.
3548 * d-lang.c (d_language_data): Likewise.
3549 * f-lang.c (f_printstr): Rename to f_language::printstr.
3550 (f_language_data): Delete la_printstr initializer.
3551 (f_language::printstr): New member function, implementation from
3552 f_printstr.
3553 * go-lang.c (go_language_data): Delete la_printstr initializer.
3554 * language.c (language_defn::printstr): Define new member
3555 function.
3556 (unk_lang_printstr): Delete.
3557 (unknown_language_data): Delete la_printstr initializer.
3558 (unknown_language::printstr): New member function.
3559 (auto_language_data): Delete la_printstr initializer.
3560 (auto_language::printstr): New member function.
3561 * language.h (language_data): Delete la_printstr field.
3562 (language_defn::printstr): Declare new member function.
3563 (LA_PRINT_STRING): Update call to printstr.
3564 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3565 (m2_language_data): Delete la_printstr initializer.
3566 (m2_language::printstr): New member function, implementation from
3567 m2_printstr.
3568 * objc-lang.c (objc_language_data): Delete la_printstr
3569 initializer.
3570 * opencl-lang.c (opencl_language_data): Likewise.
3571 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3572 (pascal_language_data): Delete la_printstr initializer.
3573 (pascal_language::printstr): New member function, implementation
3574 from pascal_printstr.
3575 * p-lang.h (pascal_printstr): Delete declaration.
3576 * rust-lang.c (rust_printstr): Update header comment.
3577 (rust_language_data): Delete la_printstr initializer.
3578 (rust_language::printstr): New member function.
3579
52b50f2c
AB
35802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3581
3582 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3583 (ada_language::printchar): New member function.
3584 * c-lang.c (c_language_data): Delete la_printchar initializer.
3585 (cplus_language_data): Likewise.
3586 (asm_language_data): Likewise.
3587 (minimal_language_data): Likewise.
3588 * d-lang.c (d_language_data): Likewise.
3589 * f-lang.c (f_printchar): Rename to f_language::printchar.
3590 (f_language_data): Delete la_printchar initializer.
3591 (f_language::printchar): New member function, implementation from
3592 f_printchar.
3593 * go-lang.c (go_language_data): Delete la_printchar initializer.
3594 * language.c (unk_lang_printchar): Delete.
3595 (language_defn::printchar): Define new member function.
3596 (unknown_language_data): Delete la_printchar initializer.
3597 (unknown_language::printchar): New member function.
3598 (auto_language_data): Delete la_printchar initializer.
3599 (auto_language::printchar): New member function.
3600 * language.h (language_data): Delete la_printchar field.
3601 (language_defn::printchar): Declare new member function.
3602 (LA_PRINT_CHAR): Update call to printchar.
3603 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3604 (m2_language::printchar): New member function.
3605 * objc-lang.c (objc_language_data): Delete la_printchar
3606 initializer.
3607 * opencl-lang.c (opencl_language_data): Likewise.
3608 * p-lang.c (pascal_language_data): Delete la_printchar
3609 initializer.
3610 (pascal_language::printchar): New member function.
3611 * rust-lang.c (rust_printchar): Rename to
3612 rust_language::printchar.
3613 (rust_language_data): Delete la_printchar initializer.
3614 (rust_language::printchar): New member function, implementation
3615 from rust_printchar.
3616
ec8cec5b
AB
36172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3620 (ada_language_data): Delete la_emitchar initializer.
3621 (ada_language::emitchar): New member function, implementation from
3622 emit_char.
3623 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3624 (cplus_language_data): Likewise.
3625 (asm_language_data): Likewise.
3626 (minimal_language_data): Likewise.
3627 * d-lang.c (d_language_data): Likewise.
3628 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3629 (f_language_data): Delete la_emitchar initializer.
3630 (f_language::emitchar): New member function, implementation from
3631 f_emit_char.
3632 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3633 * language.c (unk_lang_emit_char): Delete.
3634 (language_defn::emitchar): New member function definition.
3635 (unknown_language_data): Delete la_emitchar initializer.
3636 (unknown_language::emitchar): New member function.
3637 (auto_language_data): Delete la_emitchar initializer.
3638 (auto_language::emitchar): New member function.
3639 * language.h (language_data): Delete la_emitchar field.
3640 (language_defn::emitchar): New member field declaration.
3641 (LA_EMIT_CHAR): Update call to emitchar.
3642 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3643 (m2_language_data): Delete la_emitchar initializer.
3644 (m2_language::emitchar): New member function, implementation from
3645 m2_emit_char.
3646 * objc-lang.c (objc_language_data): Delete la_emitchar
3647 initializer.
3648 * opencl-lang.c (opencl_language_data): Likewise.
3649 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3650 (pascal_language_data): Delete la_emitchar initializer.
3651 (pascal_language::emitchar): New member function, implementation
3652 from pascal_emit_char.
3653 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3654 (rust_language_data): Delete la_emitchar initializer.
3655 (rust_language::emitchar): New member function, implementation
3656 from rust_emitchar.
3657
1bf9c363
AB
36582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3661 (ada_language_data): Delete la_post_parser initializer.
3662 (ada_language::post_parser): New member function.
3663 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3664 (cplus_language_data): Likewise.
3665 (asm_language_data): Likewise.
3666 (minimal_language_data): Likewise.
3667 * d-lang.c (d_language_data): Likewise.
3668 * f-lang.c (f_language_data): Likewise.
3669 * go-lang.c (go_language_data): Likewise.
3670 * language.c (unknown_language_data): Likewise.
3671 (auto_language_data): Likewise.
3672 * language.h (language_data): Delete la_post_parser field.
3673 (language_defn::post_parser): New member function.
3674 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3675 * objc-lang.c (objc_language_data): Likewise.
3676 * opencl-lang.c (opencl_language_data): Likewise.
3677 * p-lang.c (pascal_language_data): Likewise.
3678 * parse.c (parse_exp_in_context): Update call to post_parser.
3679 (null_post_parser): Delete definition.
3680 * parser-defs.h (null_post_parser): Delete declaration.
3681 * rust-lang.c (rust_language_data): Delete la_post_parser
3682 initializer.
3683
87afa652
AB
36842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (parse): Rename to ada_language::parser.
3687 (ada_language_data): Delete la_parser initializer.
3688 (ada_language::parser): New member function, implementation from
3689 parse.
3690 * c-lang.c (c_language_data): Delete la_parser initializer.
3691 (cplus_language_data): Likewise.
3692 (asm_language_data): Likewise.
3693 (minimal_language_data): Likewise.
3694 * d-lang.c (d_language_data): Likewise.
3695 (d_language::parser): New member function.
3696 * f-lang.c (f_language_data): Delete la_parser initializer.
3697 (f_language::parser): New member function.
3698 * go-lang.c (go_language_data): Delete la_parser initializer.
3699 (go_language::parser): New member function.
3700 * language.c (unk_lang_parser): Delete.
3701 (language_defn::parser): Define new member function.
3702 (unknown_language_data): Delete la_parser initializer.
3703 (unknown_language::parser): New member function.
3704 (auto_language_data): Delete la_parser initializer.
3705 (auto_language::parser): New member function.
3706 * language.h (language_data): Delete la_parser field.
3707 (language_defn::parser): Declare new member function.
3708 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3709 (m2_language::parser): New member function.
3710 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3711 * opencl-lang.c (opencl_language_data): Likewise.
3712 * p-lang.c (pascal_language_data): Likewise.
3713 (pascal_language::parser): New member function.
3714 * parse.c (parse_exp_in_context): Update call to parser.
3715 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3716 (rust_language::parser): New member function.
3717
37825800
AB
37182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3719
3720 * top.c (print_gdb_configuration): Print --with-python-libdir
3721 configuration value.
3722
5b860c93
PW
37232020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3724
3725 * NEWS: Mention change to the alias command.
3726
cf00cd6f
PW
37272020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3728
3729 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3730 (alias_command_completer)
3731 (make_alias_options_def_group): New functions.
3732 (alias_opts, alias_option_defs): New struct and array.
3733 (alias_usage_error): Update usage.
3734 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3735 Use option framework.
3736 (_initialize_cli_cmds): Update alias command help.
3737 Update aliases command help.
3738 (show_user):
3739 Add NULL for new default_args lookup_cmd argument.
3740 (valid_command_p): Rename to validate_aliased_command.
3741 Add NULL for new default_args lookup_cmd argument. Verify that the
3742 aliased_command has no default args.
3743 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3744 (lookup_cmd_1, lookup_cmd): New argument default_args.
3745 (add_alias_cmd):
3746 Add NULL for new default_args lookup_cmd argument.
3747 (print_help_for_command): Show default args under the layout
3748 alias some_alias = some_aliased_cmd some_alias_default_arg.
3749 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3750 xfree default_args in destructor.
3751 * cli/cli-script.c (process_next_line, do_define_command):
3752 Add NULL for new default_args lookup_cmd argument.
3753 * command.h: Declare new default_args argument in lookup_cmd
3754 and lookup_cmd_1.
3755 * completer.c (complete_line_internal_1):
3756 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3757 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3758 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3759 Likewise.
3760 * infcmd.c (_initialize_infcmd): Likewise.
3761 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3762 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3763 * python/py-param.c (add_setshow_generic): Likewise.
3764 * remote.c (_initialize_remote): Likewise.
3765 * top.c (execute_command): Prepend default_args if command has some.
3766 (set_verbose):
3767 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3768 * tracepoint.c (validate_actionline, encode_actions_1):
3769 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3770
bd920864
TBA
37712020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3772
3773 * jit.c (jit_read_descriptor): Use bool as the return type.
3774 (jit_breakpoint_re_set_internal): Use bool as the return type.
3775 Invert the return value logic; return true if the jit breakpoint
3776 has been successfully initialized.
3777 (jit_inferior_init): Update the call to
3778 jit_breakpoint_re_set_internal.
3779
f8098322
PA
37802020-06-22 Pedro Alves <palves@redhat.com>
3781
3782 PR gdb/25939
3783 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3784 Use the current inferior instead. Don't return
3785 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3786 wait again.
3787 * sol-thread.c (sol_thread_target::wait): Don't reference
3788 inferior_ptid.
3789 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3790 (sol_update_thread_list_callback): Use the current inferior's pid
3791 instead of inferior_ptid.
3792
196535a6
RO
37932020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3794
3795 * procfs.c: Cleanup many comments.
3796
3797 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3798 (AFTER_WATCHFLAG): Replace by value.
3799
3800 (MAIN_PROC_NAME_FORMAT): Inline ...
3801 (create_procinfo): ... here.
3802
3803 (procfs_debug_inferior): Remove SYS_exec handling.
3804 (syscall_is_exec): Likewise.
3805 (procfs_set_exec_trap): Likewise.
3806
3807 (syscall_is_lwp_exit): Inline in callers.
3808 (syscall_is_exit): Likewise.
3809 (syscall_is_exec): Likewise.
3810 (syscall_is_lwp_create): Likewise.
3811
3812 (invalidate_cache): Remove #if 0 code.
3813
3814 (make_signal_thread_runnable): Remove.
3815 (procfs_target::resume): Remove #if 0 code.
3816
cf6f3e86
RO
38172020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3818
3819 PR gdb/25939
3820 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3821 call ...
3822 (procfs_target::create_inferior): ... here.
3823
48e9cc84
PW
38242020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3825
3826 * exec.c (validate_exec_file): Ensure the build-id is up to
3827 date by calling reopen_exec_file (that checks file timestamp
3828 to decide to re-read the file).
3829
3922b302
PA
38302020-06-18 Pedro Alves <palves@redhat.com>
3831
3832 PR gdb/25412
3833 * gdbthread.h (delete_thread, delete_thread_silent)
3834 (find_thread_ptid): Update comments.
3835 * thread.c (current_thread_): New global.
3836 (is_current_thread): Move higher, and reimplement.
3837 (inferior_thread): Reimplement.
3838 (set_thread_exited): Use bool. Add assertions.
3839 (add_thread_silent): Simplify thread-reuse handling by always
3840 calling delete_thread.
3841 (delete_thread): Remove intro comment.
3842 (find_thread_ptid): Skip exited threads.
3843 (switch_to_thread_no_regs): Write to current_thread_.
3844 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3845 INFERIOR_PTID. Clear current_thread_.
3846
6dbdab44
PA
38472020-06-18 Pedro Alves <palves@redhat.com>
3848
3849 * aix-thread.c (pd_update): Use switch_to_thread.
3850
2da4b788
PA
38512020-06-18 Pedro Alves <palves@redhat.com>
3852
3853 * ravenscar-thread.c (ravenscar_thread_target): Update.
3854 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3855 (ravenscar_thread_target::add_active_thread): ... this. Don't
3856 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3857 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3858
50838d1b
PA
38592020-06-18 Pedro Alves <palves@redhat.com>
3860
3861 * nat/windows-nat.c (current_windows_thread): Remove.
3862 * nat/windows-nat.h (current_windows_thread): Remove.
3863 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3864 Adjust.
3865 (display_selectors): Adjust to fetch the current
3866 windows_thread_info based on inferior_ptid.
3867 (fake_create_process): No longer write to current_windows_thread.
3868 (windows_nat_target::get_windows_debug_event):
3869 Don't set inferior_ptid or current_windows_thread.
3870 (windows_nat_target::wait): Adjust to not rely on
3871 current_windows_thread.
3872 (do_initial_windows_stuff): Now a method of windows_nat_target.
3873 Switch to the last_ptid thread.
3874 (windows_nat_target::attach): Adjust.
3875 (windows_nat_target::detach): Use switch_to_no_thread instead of
3876 writing to inferior_ptid directly.
3877 (windows_nat_target::create_inferior): Adjust.
3878
31ce04e9
PA
38792020-06-18 Pedro Alves <palves@redhat.com>
3880
3881 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3882
1ee1a363
PA
38832020-06-18 Pedro Alves <palves@redhat.com>
3884
3885 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3886 after creating it, instead of writing to inferior_ptid. Don't
3887 write to inferior_ptid.
3888
6d350754
PA
38892020-06-18 Pedro Alves <palves@redhat.com>
3890
3891 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3892
5d971d48
PA
38932020-06-18 Pedro Alves <palves@redhat.com>
3894
3895 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3896 it, instead of writing to inferior_ptid.
3897
86e57d1b
PA
38982020-06-18 Pedro Alves <palves@redhat.com>
3899
3900 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3901 to inferior_ptid.
3902
f2e1c129
PA
39032020-06-18 Pedro Alves <palves@redhat.com>
3904
3905 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3906 instead of writing to inferior_ptid directly.
3907
60db1b85
PA
39082020-06-18 Pedro Alves <palves@redhat.com>
3909
3910 * corelow.c (core_target::close): Use switch_to_no_thread instead
3911 of writing to inferior_ptid directly.
3912 (add_to_thread_list, core_target_open): Use switch_to_thread
3913 instead of writing to inferior_ptid directly.
3914
fe7d6a8d
PA
39152020-06-18 Pedro Alves <palves@redhat.com>
3916
3917 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3918 inferior_ptid.
3919 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3920 inferior_ptid.
3921 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3922 inferior_ptid directly.
3923 (darwin_nat_target::init_thread_list): Switch to thread, instead
3924 of writing to inferior_ptid.
3925 (darwin_nat_target::attach): Don't write to inferior_ptid.
3926 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3927
975f8708
PA
39282020-06-18 Pedro Alves <palves@redhat.com>
3929
3930 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3931 thread.
3932 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3933 Instead use switch_to_thread.
3934 (gnu_nat_target::detach): Use switch_to_no_thread
3935 instead of writing to inferior_ptid directly. Used passed-in
3936 inferior instead of looking up the inferior by pid.
3937
1a204730
PA
39382020-06-18 Pedro Alves <palves@redhat.com>
3939
3940 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3941 inferior_ptid.
3942
ebe84f23
PA
39432020-06-18 Pedro Alves <palves@redhat.com>
3944
3945 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3946 inferior_ptid.
3947 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3948 thread.
3949 (nto_procfs_target::detach): Avoid referencing
3950 inferior_ptid. Use switch_to_no_thread instead of writing to
3951 inferior_ptid directly.
3952 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3953 instead of writing to inferior_ptid directly.
3954 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3955 to thread.
3956
191f02e5
PA
39572020-06-18 Pedro Alves <palves@redhat.com>
3958
3959 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3960 after creating it, instead of writing to inferior_ptid.
3961 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3962 to inferior_ptid directly.
3963 (gdbsim_target::wait): Don't write to inferior_ptid.
3964
0ac55310
PA
39652020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 * remote.c (remote_target::remote_notice_new_inferior): Use
3968 switch_to_thread instead of writing to inferior_ptid directly.
3969 (remote_target::add_current_inferior_and_thread): Use
3970 switch_to_no_thread instead of writing to inferior_ptid directly.
3971 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3972 and switch_to_thread instead of using set_current_inferior or
3973 writing to inferior_ptid directly.
3974
5233f39b
PA
39752020-06-18 Pedro Alves <palves@redhat.com>
3976
3977 * tracectf.c (ctf_target_open): Switch to added thread instead of
3978 writing to inferior_ptid directly.
3979 (ctf_target::close): Use switch_to_no_thread instead of writing to
3980 inferior_ptid directly.
3981
087e161b
PA
39822020-06-18 Pedro Alves <palves@redhat.com>
3983
3984 * tracefile-tfile.c (tfile_target_open): Don't write to
3985 inferior_ptid directly, instead switch to added thread.
3986 (tfile_target::close): Use switch_to_no_thread instead of writing
3987 to inferior_ptid directly.
3988
7fb43e53
PA
39892020-06-18 Pedro Alves <palves@redhat.com>
3990
3991 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3992 (procfs_target::detach): Use switch_to_no_thread
3993 instead of writing to inferior_ptid directly.
3994 (do_attach): Change return type to void. Switch to the added
3995 thread.
3996 (procfs_target::create_inferior): Switch to the added thread.
3997 (procfs_do_thread_registers): Don't write to inferior_ptid.
3998
18493a00
PA
39992020-06-18 Pedro Alves <palves@redhat.com>
4000
4001 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4002 of writing to inferior_ptid.
4003 (scoped_restore_exited_inferior): Delete.
4004 (handle_vfork_child_exec_or_exit): Simplify using
4005 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4006 instead of writing to inferior_ptid.
4007 (THREAD_STOPPED_BY): Delete.
4008 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4009 (thread_stopped_by_hw_breakpoint): Delete.
4010 (save_waitstatus): Use
4011 scoped_restore_current_thread+switch_to_thread, and call
4012 target_stopped_by_watchpoint instead of
4013 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4014 instead of thread_stopped_by_sw_breakpoint, and
4015 target_stopped_by_hw_breakpoint instead of
4016 thread_stopped_by_hw_breakpoint.
4017 (handle_inferior_event)
4018 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4019 inferior_ptid directly, nor
4020 set_current_inferior/set_current_program_space. Use
4021 switch_to_thread / switch_to_inferior_no_thread instead.
4022
a0776b13
PA
40232020-06-18 Pedro Alves <palves@redhat.com>
4024
4025 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4026 instead of writing to inferior_ptid.
4027
6155c136
PA
40282020-06-18 Pedro Alves <palves@redhat.com>
4029
4030 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4031 added thread.
4032 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4033 to the added thread.
4034 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4035 instead of writing to inferior_ptid.
4036
c5316fc6
PA
40372020-06-18 Pedro Alves <palves@redhat.com>
4038
4039 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4040 (register_to_value_test): Mock a program_space too. Heap-allocate
4041 the address space. Don't write to inferior_ptid. Use
4042 switch_to_thread instead.
4043
8df01799
PA
40442020-06-18 Pedro Alves <palves@redhat.com>
4045
4046 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4047 Delete.
4048 (find_signalled_thread()): New, factored out from
4049 linux_make_corefile_notes and adjusted to handle exited threads.
4050 (linux_make_corefile_notes): Adjust to use the new
4051 find_signalled_thread.
4052
41792d68
PA
40532020-06-18 Pedro Alves <palves@redhat.com>
4054
4055 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4056 of saving/restoring inferior_ptid.
4057
612f258a
TT
40582020-06-17 Tom Tromey <tom@tromey.com>
4059
4060 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4061 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4062 declare.
4063 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4064
efb763a5
SM
40652020-06-15 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4068 of partial symtabs.
4069
2951f6c0
SM
40702020-06-17 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * regformats/reg-arm.dat: Remove.
4073 * regformats/reg-bfin.dat: Remove.
4074 * regformats/reg-cris.dat: Remove.
4075 * regformats/reg-crisv32.dat: Remove.
4076 * regformats/reg-m32r.dat: Remove.
4077 * regformats/reg-tilegx.dat: Remove.
4078 * regformats/reg-tilegx32.dat: Remove.
4079
7d458ea5
SM
40802020-06-17 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * features/Makefile (WHICH): Remove arm files.
4083 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4084 * regformats/arm/arm-with-neon.dat: Remove.
4085 * regformats/arm/arm-with-vfpv2.dat: Remove.
4086 * regformats/arm/arm-with-vfpv3.dat: Remove.
4087
3af96c0d
SM
40882020-06-17 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * features/Makefile (XMLTOC): Remove rx.xml.
4091
b25e22fd
PA
40922020-06-17 Pedro Alves <palves@redhat.com>
4093
4094 * gdbthread.h (thread_control_state) <trap_expected> Update
4095 comments.
4096
a78a19b1
AB
40972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4098
4099 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4100 ada_language::lookup_symbol_nonlocal.
4101 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4102 (ada_language::lookup_symbol_nonlocal): New member function,
4103 implementation from ada_lookup_symbol_nonlocal.
4104 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4105 initializer.
4106 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4107 initializer.
4108 (cplus_language::lookup_symbol_nonlocal): New member function.
4109 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4110 (minimal_language_data) Likewise.
4111 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4112 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4113 initializer.
4114 (d_language::lookup_symbol_nonlocal): New member function.
4115 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4116 initializer.
4117 (f_language::lookup_symbol_nonlocal): New member function.
4118 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4119 initializer.
4120 * language.c (unknown_language_data): Likewise.
4121 (auto_language_data): Likewise.
4122 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4123 field.
4124 (language_defn::lookup_symbol_nonlocal): New member function.
4125 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4126 initializer.
4127 * objc-lang.c (objc_language_data): Likewise.
4128 * opencl-lang.c (opencl_language_data): Likewise.
4129 * p-lang.c (pascal_language_data): Likewise.
4130 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4131 rust_language::lookup_symbol_nonlocal.
4132 (rust_language_data): Delete la_lookup_symbol_nonlocal
4133 initializer.
4134 (rust_language::lookup_symbol_nonlocal): New member function,
4135 implementation from rust_lookup_symbol_nonlocal.
4136 * symtab.c (lookup_symbol_aux): Update call to
4137 lookup_symbol_nonlocal.
4138 (basic_lookup_symbol_nonlocal): Rename to...
4139 (language_defn::lookup_symbol_nonlocal): ...this, and update
4140 header comment. Remove language_defn parameter, and replace with
4141 uses of `this'.
4142 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4143
ebe2334e
AB
41442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4145
4146 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4147 initializer.
4148 (ada_language::value_print_inner): New member function.
4149 * c-lang.c (c_language_data): Delete la_value_print_inner
4150 initializer.
4151 (cplus_language_data): Likewise.
4152 (asm_language_data): Likewise.
4153 (minimal_language_data): Likewise.
4154 * d-lang.c (d_language_data): Likewise.
4155 (d_language::value_print_inner): New member function.
4156 * f-lang.c (f_language_data): Delete la_value_print_inner
4157 initializer.
4158 (f_language::value_print_inner): New member function.
4159 * f-lang.h (f_value_print_innner): Rename to...
4160 (f_value_print_inner): ...this (note spelling of 'inner').
4161 * f-valprint.c (f_value_print_innner): Rename to...
4162 (f_value_print_inner): ...this (note spelling of 'inner').
4163 * go-lang.c (go_language_data): Delete la_value_print_inner
4164 initializer.
4165 (go_language::value_print_inner): New member function.
4166 * language.c (language_defn::value_print_inner): Define new member
4167 function.
4168 (unk_lang_value_print_inner): Delete.
4169 (unknown_language_data): Delete la_value_print_inner initializer.
4170 (unknown_language::value_print_inner): New member function.
4171 (auto_language_data): Delete la_value_print_inner initializer.
4172 (auto_language::value_print_inner): New member function.
4173 * language.h (language_data): Delete la_value_print_inner field.
4174 (language_defn::value_print_inner): Delcare new member function.
4175 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4176 initializer.
4177 (m2_language::value_print_inner): New member function.
4178 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4179 initializer.
4180 * opencl-lang.c (opencl_language_data): Likewise.
4181 * p-lang.c (pascal_language_data): Likewise.
4182 (pascal_language::value_print_inner): New member function.
4183 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4184 initializer.
4185 (rust_language::value_print_inner): New member function.
4186 * valprint.c (do_val_print): Update call to value_print_inner.
4187
a1d1fa3e
AB
41882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * ada-lang.c (ada_language_data): Delete la_value_print
4191 initializer.
4192 (ada_language::value_print): New member function.
4193 * c-lang.c (c_language_data): Delete la_value_print initializer.
4194 (cplus_language_data): Likewise.
4195 (asm_language_data): Likewise.
4196 (minimal_language_data): Likewise.
4197 * d-lang.c (d_language_data): Likewise.
4198 * f-lang.c (f_language_data): Likewise.
4199 * go-lang.c (go_language_data): Likewise.
4200 * language.c (unk_lang_value_print): Delete.
4201 (language_defn::value_print): Define new member function.
4202 (unknown_language_data): Delete la_value_print initializer.
4203 (unknown_language::value_print): New member function.
4204 (auto_language_data): Delete la_value_print initializer.
4205 (auto_language::value_print): New member function.
4206 * language.h (language_data): Delete la_value_print field.
4207 (language_defn::value_print): Declare new member function.
4208 (LA_VALUE_PRINT): Update call to value_print.
4209 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4210 * objc-lang.c (objc_language_data): Likewise.
4211 * opencl-lang.c (opencl_language_data): Likewise.
4212 * p-lang.c (pascal_language_data): Likewise.
4213 (pascal_language::value_print): New member function.
4214 * rust-lang.c (rust_language_data): Delete la_value_print
4215 initializer.
4216
f16a9f57
AB
42172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 * ada-lang.c (ada_watch_location_expression): Rename to
4220 ada_language::watch_location_expression.
4221 (ada_language_data): Delete la_watch_location_expression
4222 initializer.
4223 (ada_language::watch_location_expression): New member function,
4224 implementation from ada_watch_location_expression.
4225 * breakpoint.c (watch_command_1): Update call to
4226 watch_location_expression.
4227 * c-lang.c (c_watch_location_expression): Rename to
4228 language_defn::watch_location_expression.
4229 (c_language_data): Delete la_watch_location_expression
4230 initializer.
4231 (cplus_language_data): Likewise.
4232 (asm_language_data): Likewise.
4233 (minimal_language_data): Likewise.
4234 * c-lang.h (c_watch_location_expression): Delete declaration.
4235 * d-lang.c (d_language_data): Delete la_watch_location_expression
4236 initializer.
4237 * f-lang.c (f_language_data): Likewise.
4238 * go-lang.c (go_language_data): Likewise.
4239 * language.c (language_defn::watch_location_expression): Member
4240 function implementation from c_watch_location_expression.
4241 (unknown_language_data): Delete la_watch_location_expression
4242 initializer.
4243 (auto_language_data): Likewise.
4244 * language.h (language_data): Delete la_watch_location_expression
4245 field.
4246 (language_defn::watch_location_expression): Declare new member
4247 function.
4248 * m2-lang.c (m2_language_data): Delete
4249 la_watch_location_expression initializer.
4250 * objc-lang.c (objc_language_data): Likewise.
4251 * opencl-lang.c (opencl_language_data): Likewise.
4252 * p-lang.c (pascal_language_data): Likewise.
4253 * rust-lang.c (rust_watch_location_expression): Rename to
4254 rust_language::watch_location_expression.
4255 (rust_language_data): Delete la_watch_location_expression
4256 initializer.
4257 (rust_language::watch_location_expression): New member function,
4258 implementation from rust_watch_location_expression.
4259
7e56227d
AB
42602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4263 ada_language::collect_symbol_completion_matches.
4264 (ada_language_data): Delete la_collect_symbol_completion_matches
4265 initializer.
4266 (ada_language::collect_symbol_completion_matches): New member
4267 function, implementation from
4268 ada_collect_symbol_completion_matches.
4269 * c-lang.c (c_language_data): Delete
4270 la_collect_symbol_completion_matches initializer.
4271 (cplus_language_data): Likewise.
4272 (asm_language_data): Likewise.
4273 (minimal_language_data): Likewise.
4274 * d-lang.c (d_language_data): Likewise.
4275 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4276 f_language::collect_symbol_completion_matches.
4277 (f_language_data): Delete la_collect_symbol_completion_matches
4278 initializer.
4279 (f_language::collect_symbol_completion_matches) New member
4280 function, implementation from f_collect_symbol_completion_matches.
4281 * go-lang.c (go_language_data): Delete
4282 la_collect_symbol_completion_matches initializer.
4283 * language.c (unknown_language_data): Likewise.
4284 (auto_language_data): Likewise.
4285 * language.h (language_data): Delete
4286 la_collect_symbol_completion_matches field.
4287 (language_defn::collect_symbol_completion_matches): New member
4288 function.
4289 * m2-lang.c (m2_language_data): Delete
4290 la_collect_symbol_completion_matches initializer.
4291 * objc-lang.c (objc_language_data): Likewise.
4292 * opencl-lang.c (opencl_language_data): Likewise.
4293 * p-lang.c (pascal_language_data): Likewise.
4294 * rust-lang.c (rust_language_data): Likewise.
4295 * symtab.c (default_collect_symbol_completion_matches): Delete.
4296 (collect_symbol_completion_matches): Update call to
4297 collect_symbol_completion_matches.
4298 (collect_symbol_completion_matches_type): Likewise.
4299 * symtab.h (default_collect_symbol_completion_matches): Delete
4300 declaration.
4301
53fc67f8
AB
43022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4303
4304 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4305 (ada_language_data): Delete la_word_break_characters initializer.
4306 (ada_language::word_break_characters): New member function.
4307 * c-lang.c (c_language_data): Delete la_word_break_characters
4308 initializer.
4309 (cplus_language_data): Likewise.
4310 (asm_language_data): Likewise.
4311 (minimal_language_data): Likewise.
4312 * completer.c: Update global comment.
4313 (advance_to_expression_complete_word_point): Update call to
4314 word_break_characters.
4315 (complete_files_symbols): Likewise.
4316 (complete_line_internal_1): Likewise.
4317 (default_completer_handle_brkchars): Likewise.
4318 (skip_quoted_chars): Likewise.
4319 * d-lang.c (d_language_data): Delete la_word_break_characters
4320 initializer.
4321 * f-lang.c (f_word_break_characters): Delete.
4322 (f_language_data): Delete la_word_break_characters initializer.
4323 (f_language::word_break_characters): New member function.
4324 * go-lang.c (go_language_data): Delete la_word_break_characters
4325 initializer.
4326 * language.c (unknown_language_data): Likewise.
4327 (auto_language_data): Likewise.
4328 * language.h (default_word_break_characters): Move declaration to
4329 earlier in the file.
4330 (language_data): Delete la_word_break_characters field.
4331 (language_defn::word_break_characters): New member function.
4332 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4333 initializer.
4334 * objc-lang.c (objc_language_data): Likewise.
4335 * opencl-lang.c (opencl_language_data): Likewise.
4336 * p-lang.c (pascal_language_data): Likewise.
4337 * rust-lang.c (rust_language_data): Likewise.
4338
c9debfb9
AB
43392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4340
4341 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4342 (ada_language_data): Delete la_get_symbol_name_matcher
4343 initializer.
4344 (language_defn::get_symbol_name_matcher_inner): New member
4345 function.
4346 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4347 initializer.
4348 (cplus_language_data): Likewise.
4349 (cplus_language::get_symbol_name_matcher_inner): New member
4350 function.
4351 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4352 (minimal_language_data): Likewise.
4353 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4354 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4355 initializer.
4356 * dictionary.c (iter_match_first_hashed): Update call to
4357 get_symbol_name_matcher.
4358 (iter_match_next_hashed): Likewise.
4359 (iter_match_next_linear): Likewise.
4360 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4361 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4362 initializer.
4363 (f_language::get_symbol_name_matcher_inner): New member function.
4364 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4365 initializer.
4366 * language.c (default_symbol_name_matcher): Update header comment,
4367 make static.
4368 (language_defn::get_symbol_name_matcher): New definition.
4369 (language_defn::get_symbol_name_matcher_inner): Likewise.
4370 (get_symbol_name_matcher): Delete.
4371 (unknown_language_data): Delete la_get_symbol_name_matcher
4372 initializer.
4373 (auto_language_data): Likewise.
4374 * language.h (language_data): Delete la_get_symbol_name_matcher
4375 field.
4376 (language_defn::get_symbol_name_matcher): New member function.
4377 (language_defn::get_symbol_name_matcher_inner): Likewise.
4378 (default_symbol_name_matcher): Delete declaration.
4379 * linespec.c (find_methods): Update call to
4380 get_symbol_name_matcher.
4381 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4382 initializer.
4383 * minsyms.c (lookup_minimal_symbol): Update call to
4384 get_symbol_name_matcher.
4385 (iterate_over_minimal_symbols): Likewise.
4386 * objc-lang.c (objc_language_data): Delete
4387 la_get_symbol_name_matcher initializer.
4388 * opencl-lang.c (opencl_language_data): Likewise.
4389 * p-lang.c (pascal_language_data): Likewise.
4390 * psymtab.c (psymbol_name_matches): Update call to
4391 get_symbol_name_matcher.
4392 * rust-lang.c (rust_language_data): Delete
4393 la_get_symbol_name_matcher initializer.
4394 * symtab.c (symbol_matches_search_name): Update call to
4395 get_symbol_name_matcher.
4396 (compare_symbol_name): Likewise.
4397
9a49ad8c
AB
43982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * ada-lang.c (ada_language_data): Delete la_compute_program
4401 initializer.
4402 * c-lang.c (c_language_data): Likewise.
4403 (c_language::compute_program): New member function.
4404 (cplus_language_data): Delete la_compute_program initializer.
4405 (cplus_language::compute_program): New member function.
4406 (asm_language_data): Delete la_compute_program initializer.
4407 (minimal_language_data): Likewise.
4408 * c-lang.h (c_compute_program): Update comment.
4409 (cplus_compute_program): Likewise.
4410 * compile/compile-c-support.c (c_compute_program): Likewise.
4411 (cplus_compute_program): Likewise.
4412 * compile/compile.c (compile_to_object): Update call to
4413 la_compute_program.
4414 * d-lang.c (d_language_data): Delete la_compute_program
4415 initializer.
4416 * f-lang.c (f_language_data): Likewise.
4417 * go-lang.c (go_language_data): Likewise.
4418 * language.c (unknown_language_data): Likewise.
4419 (auto_language_data): Likewise.
4420 * language.h (language_data): Delete la_compute_program field.
4421 (language_defn::compute_program): New member function.
4422 * m2-lang.c (m2_language_data): Delete la_compute_program
4423 initializer.
4424 * objc-lang.c (objc_language_data): Likewise.
4425 * opencl-lang.c (opencl_language_data): Likewise.
4426 * p-lang.c (pascal_language_data): Likewise.
4427 * rust-lang.c (rust_language_data): Likewise.
4428
eff93b4d
AB
44292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4430
4431 * ada-lang.c (ada_language_data) Delete
4432 la_class_name_from_physname initializer.
4433 * c-lang.c (c_language_data): Likewise.
4434 (cplus_language_data): Likewise.
4435 (cplus_language::class_name_from_physname): New member function.
4436 (asm_language_data): Delete la_class_name_from_physname
4437 initializer.
4438 (minimal_language_data): Likewise.
4439 * d-lang.c (d_language_data): Likewise.
4440 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4441 method on language_defn class.
4442 (guess_full_die_structure_name): Likewise.
4443 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4444 initializer.
4445 * go-lang.c (go_language_data): Likewise.
4446 * language.c (language_class_name_from_physname): Delete.
4447 (unk_lang_class_name): Delete.
4448 (unknown_language_data): Delete la_class_name_from_physname
4449 initializer.
4450 (auto_language_data): Likewise.
4451 * language.h (language_data): Delete la_class_name_from_physname
4452 field.
4453 (language_defn::class_name_from_physname): New function.
4454 (language_class_name_from_physname): Delete declaration.
4455 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4456 initializer.
4457 * objc-lang.c (objc_language_data): Likewise.
4458 * opencl-lang.c (opencl_language_data): Likewise.
4459 * p-lang.c (pascal_language_data): Likewise.
4460 * rust-lang.c (rust_language_data): Likewise.
4461
de543742
TT
44622020-06-16 Tom Tromey <tom@tromey.com>
4463
4464 * tui/tui-data.h (STATUS_NAME): New macro.
4465 * tui/tui-layout.c (tui_remove_some_windows)
4466 (initialize_known_windows, tui_register_window)
4467 (tui_layout_split::remove_windows, initialize_layouts)
4468 (tui_new_layout_command): Don't use hard-coded window names.
4469
a350efd4
TT
44702020-06-16 Tom Tromey <tom@tromey.com>
4471
4472 PR tui/25348:
4473 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4474 tui_initialize_readline. Only run once. Call rl_initialize.
4475 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4476 tui_initialize_readline.
4477 * tui/tui-io.c (tui_setup_io): Call
4478 tui_ensure_readline_initialized.
4479 * tui/tui-interp.c (tui_interp::init): Update.
4480
39ec0490
TT
44812020-06-16 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4484 Also preserve the status window.
4485
d2d1ea20
TT
44862020-06-16 Tom Tromey <tom@tromey.com>
4487
4488 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4489 where m_window==nullptr.
4490
66920317
TT
44912020-06-15 Tom Tromey <tromey@adacore.com>
4492
4493 * windows-nat.c (windows_nat::handle_output_debug_string):
4494 Update.
4495 (windows_nat::handle_ms_vc_exception): Update.
4496 * target.h (target_read_string): Change API.
4497 * target.c (target_read_string): Change API.
4498 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4499 Update.
4500 * solib-frv.c (frv_current_sos): Update.
4501 * solib-dsbt.c (dsbt_current_sos): Update.
4502 * solib-darwin.c (darwin_current_sos): Update.
4503 * linux-thread-db.c (inferior_has_bug): Update.
4504 * expprint.c (print_subexp_standard): Update.
4505 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4506 (ada_exception_message_1): Update.
4507
a5d871dd
TT
45082020-06-15 Tom Tromey <tromey@adacore.com>
4509
4510 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4511
670e35fa
TT
45122020-06-15 Tom Tromey <tromey@adacore.com>
4513
4514 * valprint.c (read_string): Update comment.
4515 * target.c (MIN): Remove.
4516 (target_read_string): Rewrite.
4517
f5272a3b
TT
45182020-06-15 Tom Tromey <tromey@adacore.com>
4519
4520 * corefile.c (read_memory_string): Remove.
4521 * ada-valprint.c (ada_value_print_ptr): Update.
4522 * ada-lang.h (ada_tag_name): Change return type.
4523 * ada-lang.c (type_from_tag): Update.
4524 (ada_tag_name_from_tsd): Change return type. Use
4525 target_read_string.
4526 (ada_tag_name): Likewise.
4527 * gdbcore.h (read_memory_string): Don't declare.
4528
2c074f49
HD
45292020-06-14 Hannes Domani <ssbssa@yahoo.de>
4530
4531 * symtab.c (rbreak_command): Ignore Windows drive colon.
4532
6a17d503
SM
45332020-06-12 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * NEWS: Mention removed GDBserver host support.
4536
453c733f
NC
45372020-06-12 Nelson Chu <nelson.chu@sifive.com>
4538
4539 * features/riscv/rebuild-csr-xml.sh: Updated.
4540
2b4e6a3f
TT
45412020-06-11 Tom Tromey <tom@tromey.com>
4542
4543 PR gdb/18318:
4544 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4545
4412332f
JG
45462020-06-09 Jonny Grant <jg@jguk.org>
45472020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4548
4549 * main.c (captured_main_1): Don't print new line after help.
4550 (print_gdb_help): add mailing list and IRC channel information
4551 to --help. Add new lines between items in the footer. Remove
4552 quotes around bug url.
4553
2f33032a
KS
45542020-06-11 Keith Seitz <keiths@redhat.com>
4555
4556 PR gdb/21356
4557 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4558 Resolve typedefs for type length calculations.
4559
7ab96794
TV
45602020-06-10 Tom de Vries <tdevries@suse.de>
4561
4562 PR ada/24713
4563 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4564 (write_psymbols): Enable .gdb_index for ada.
4565 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4566 ada.
4567
e5f3ece2
TV
45682020-06-10 Tom de Vries <tdevries@suse.de>
4569
4570 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4571 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4572 namei" instead of "const char *name" argument.
4573 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4574 dw2_symtab_iter_init.
4575
940da03e
SM
45762020-06-08 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4579 to use type::field and field::type instead.
4580
b6cdac4b
SM
45812020-06-08 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4584 to use field::type instead.
4585
5d14b6e5
SM
45862020-06-08 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * gdbtypes.h (struct field) <type, set_type>: New methods.
4589 Rename `type` field to...
4590 <m_type>: ... this. Change references throughout to use type or
4591 set_type methods.
4592 (FIELD_TYPE): Use field::type. Change call sites that modify
4593 the field's type to use field::set_type instead.
4594
3d967001
SM
45952020-06-08 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4598 to use type::index_type instead.
4599
262abc0d
SM
46002020-06-08 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4603 methods.
4604 (TYPE_INDEX_TYPE): Use type::index_type.
4605 * gdbtypes.c (create_array_type_with_stride): Likewise.
4606
82836c92
TT
46072020-06-07 Tom Tromey <tom@tromey.com>
4608
4609 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4610 parameter.
4611 (generic_value_print): Update.
4612
940dace9
AB
46132020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 Revert commit 982a38f60b0.
4616 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4617
982a38f6
AB
46182020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4619
4620 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4621 avoid use after free.
4622
82f06518
TV
46232020-06-05 Tom de Vries <tdevries@suse.de>
4624
4625 * NEWS: Fix typos.
4626
f8c41851
SM
46272020-06-04 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4630 the per_bfd object.
4631 (dwarf2_read_debug_names): Likewise.
4632 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4633 object when re-using a per_bfd object with an index.
4634
f9b5d5ea
TV
46352020-06-03 Tom de Vries <tdevries@suse.de>
4636
4637 PR symtab/26046
4638 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4639 children for C++.
4640 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4641 DW_TAG_subprogram.
4642
f6eee2d0
AB
46432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4644
4645 * ada-lang.c (ada_language_data): Delete skip_trampoline
4646 initializer.
4647 * c-lang.c (c_language_data): Likewise.
4648 (cplus_language_data): Likewise.
4649 (cplus_language::skip_trampoline): New member function.
4650 (asm_language_data): Delete skip_trampoline initializer.
4651 (minimal_language_data): Likewise.
4652 * d-lang.c (d_language_data): Likewise.
4653 * f-lang.c (f_language_data): Likewise.
4654 * go-lang.c (go_language_data): Likewise.
4655 * language.c (unk_lang_trampoline): Delete function.
4656 (skip_language_trampoline): Update.
4657 (unknown_language_data): Delete skip_trampoline initializer.
4658 (auto_language_data): Likewise.
4659 * language.h (language_data): Delete skip_trampoline field.
4660 (language_defn::skip_trampoline): New function.
4661 * m2-lang.c (m2_language_data): Delete skip_trampoline
4662 initializer.
4663 * objc-lang.c (objc_skip_trampoline): Delete function, move
4664 implementation to objc_language::skip_trampoline.
4665 (objc_language_data): Delete skip_trampoline initializer.
4666 (objc_language::skip_trampoline): New member function with
4667 implementation from objc_skip_trampoline.
4668 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4669 initializer.
4670 * p-lang.c (pascal_language_data): Likewise.
4671 * rust-lang.c (rust_language_data): Likewise.
4672
0a50df5d
AB
46732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4674
4675 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4676 (ada_language::demangle): New member function.
4677 * c-lang.c (c_language_data): Delete la_demangle initializer.
4678 (cplus_language_data): Delete la_demangle initializer.
4679 (cplus_language::demangle): New member function.
4680 (asm_language_data): Delete la_demangle initializer.
4681 (minimal_language_data): Delete la_demangle initializer.
4682 * d-lang.c (d_language_data): Delete la_demangle initializer.
4683 (d_language::demangle): New member function.
4684 * f-lang.c (f_language_data): Delete la_demangle initializer.
4685 (f_language::demangle): New member function.
4686 * go-lang.c (go_language_data): Delete la_demangle initializer.
4687 (go_language::demangle): New member function.
4688 * language.c (language_demangle): Update.
4689 (unk_lang_demangle): Delete.
4690 (unknown_language_data): Delete la_demangle initializer.
4691 (unknown_language::demangle): New member function.
4692 (auto_language_data): Delete la_demangle initializer.
4693 (auto_language::demangle): New member function.
4694 * language.h (language_data): Delete la_demangle field.
4695 (language_defn::demangle): New function.
4696 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4697 * objc-lang.c (objc_language_data): Delete la_demangle
4698 initializer.
4699 (objc_language::demangle): New member function.
4700 * opencl-lang.c (opencl_language_data): Delete la_demangle
4701 initializer.
4702 * p-lang.c (pascal_language_data): Likewise.
4703 * rust-lang.c (rust_language_data): Likewise.
4704 (rust_language::demangle): New member function.
4705
fbfb0a46
AB
47062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4707
4708 * ada-lang.c (ada_language_data): Delete la_print_type
4709 initializer.
4710 (ada_language::print_type): New member function.
4711 * c-lang.c (c_language_data): Delete la_print_type initializer.
4712 (c_language::print_type): New member function.
4713 (cplus_language_data): Delete la_print_type initializer.
4714 (cplus_language::print_type): New member function.
4715 (asm_language_data): Delete la_print_type initializer.
4716 (asm_language::print_type): New member function.
4717 (minimal_language_data): Delete la_print_type initializer.
4718 (minimal_language::print_type): New member function.
4719 * d-lang.c (d_language_data): Delete la_print_type initializer.
4720 (d_language::print_type): New member function.
4721 * f-lang.c (f_language_data): Delete la_print_type initializer.
4722 (f_language::print_type): New member function.
4723 * go-lang.c (go_language_data): Delete la_print_type initializer.
4724 (go_language::print_type): New member function.
4725 * language.c (unk_lang_print_type): Delete.
4726 (unknown_language_data): Delete la_print_type initializer.
4727 (unknown_language::print_type): New member function.
4728 (auto_language_data): Delete la_print_type initializer.
4729 (auto_language::print_type): New member function.
4730 * language.h (language_data): Delete la_print_type field.
4731 (language_defn::print_type): New function.
4732 (LA_PRINT_TYPE): Update.
4733 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4734 (m2_language::print_type): New member function.
4735 * objc-lang.c (objc_language_data): Delete la_print_type
4736 initializer.
4737 (objc_language::print_type): New member function.
4738 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4739 to opencl_language::print_type.
4740 (opencl_language_data): Delete la_print_type initializer.
4741 (opencl_language::print_type): New member function, implementation
4742 from opencl_print_type.
4743 * p-lang.c (pascal_language_data): Delete la_print_type
4744 initializer.
4745 (pascal_language::print_type): New member function.
4746 * rust-lang.c (rust_print_type): Delete, implementation moved to
4747 rust_language::print_type.
4748 (rust_language_data): Delete la_print_type initializer.
4749 (rust_language::print_type): New member function, implementation
4750 from rust_print_type.
4751
6f827019
AB
47522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4753
4754 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4755 implementation moves to...
4756 (ada_language::sniff_from_mangled_name): ...here. Update return
4757 type.
4758 (ada_language_data): Delete la_sniff_from_mangled_name
4759 initializer.
4760 * c-lang.c (c_language_data): Likewise.
4761 (cplus_language_data): Likewise.
4762 (cplus_language::sniff_from_mangled_name): New member function,
4763 implementation taken from gdb_sniff_from_mangled_name.
4764 (asm_language_data): Delete la_sniff_from_mangled_name
4765 initializer.
4766 (minimal_language_data): Likewise.
4767 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4768 implementation moves to cplus_language::sniff_from_mangled_name.
4769 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4770 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4771 moves to...
4772 (d_language::sniff_from_mangled_name): ...here.
4773 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4774 * f-lang.c (f_language_data): Likewise.
4775 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4776 moves to...
4777 (go_language::sniff_from_mangled_name): ...here.
4778 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4779 * language.c (language_sniff_from_mangled_name): Delete.
4780 (unknown_language_data): Delete la_sniff_from_mangled_name
4781 initializer.
4782 (auto_language_data): Likewise.
4783 * language.h (language_data): Delete la_sniff_from_mangled_name
4784 field.
4785 (language_defn::sniff_from_mangled_name): New function.
4786 (language_sniff_from_mangled_name): Delete declaration.
4787 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4788 field.
4789 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4790 implementation moves to...
4791 (objc_language::sniff_from_mangled_name): ...here.
4792 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4793 * opencl-lang.c (opencl_language_data): Likewise.
4794 * p-lang.c (pascal_language_data): Likewise.
4795 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4796 implementation moves to...
4797 (rust_language::sniff_from_mangled_name): ...here.
4798 (rust_language_data): Delete la_sniff_from_mangled_name
4799 initializer.
4800 * symtab.c (symbol_find_demangled_name): Call
4801 sniff_from_mangled_name member function.
4802
fb8006fd
AB
48032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4806 initializer.
4807 * c-lang.c (c_language_data): Likewise.
4808 (cplus_language_data): Likewise.
4809 (cplus_language::search_name_hash): New member function.
4810 (asm_language_data): Delete la_search_name_hash initializer.
4811 (minimal_language_data): Likewise.
4812 * d-lang.c (d_language_data): Likewise.
4813 * dictionary.c (default_search_name_hash): Rename to...
4814 (language_defn::search_name_hash): ...this.
4815 * f-lang.c (f_language_data): Likewise.
4816 (f_language::search_name_hash): New member function.
4817 * go-lang.c (go_language_data): Delete la_search_name_hash
4818 initializer.
4819 * language.c (unknown_language_data): Likewise.
4820 (auto_language_data): Likewise.
4821 * language.h (struct language_data): Delete la_search_name_hash
4822 field.
4823 (language_defn::search_name_hash): Declare new member function.
4824 (default_search_name_hash): Delete declaration.
4825 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4826 initializer.
4827 * objc-lang.c (objc_language_data): Likewise.
4828 * opencl-lang.c (opencl_language_data): Likewise.
4829 * p-lang.c (pascal_language_data): Likewise.
4830 * rust-lang.c (rust_language_data): Likewise.
4831 * symtab.c (search_name_hash): Update call.
4832
8e25bafe
AB
48332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4834
4835 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4836 initializer.
4837 * c-lang.c (class compile_instance): Declare.
4838 (c_language_data): Delete la_get_compile_instance initializer.
4839 (c_language::get_compile_instance): New member function.
4840 (cplus_language_data): Delete la_get_compile_instance initializer.
4841 (cplus_language::get_compile_instance): New member function.
4842 (asm_language_data): Delete la_get_compile_instance initializer.
4843 (minimal_language_data): Likewise.
4844 * c-lang.h (c_get_compile_context): Update comment.
4845 (cplus_get_compile_context): Update comment.
4846 * compile/compile.c (compile_to_object): Update calls, don't rely
4847 on function pointer being NULL.
4848 * d-lang.c (d_language_data): Delete la_get_compile_instance
4849 initializer.
4850 * f-lang.c (f_language_data): Likewise.
4851 * go-lang.c (go_language_data): Likewise.
4852 * language.c (unknown_language_data): Likewise.
4853 (auto_language_data): Likewise.
4854 * language.h (language_data): Delete la_get_compile_instance field.
4855 (language_defn::get_compile_instance): New member function.
4856 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4857 initializer.
4858 * objc-lang.c (objc_language_data): Likewise.
4859 * opencl-lang.c (opencl_language_data): Likewise.
4860 * p-lang.c (pascal_language_data): Likewise.
4861 * rust-lang.c (rust_language_data): Likewise.
4862
4009ee92
AB
48632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4864
4865 * ada-lang.c (ada_add_all_symbols): Update comment.
4866 (ada_iterate_over_symbols): Delete, move implementation to...
4867 (ada_language::iterate_over_symbols): ...here, a new member
4868 function, rewrite to use range based for loop.
4869 (ada_language_data): Delete la_iterate_over_symbols initializer.
4870 * c-lang.c (c_language_data): Likewise.
4871 (cplus_language_data): Likewise.
4872 (asm_language_data): Likewise.
4873 (minimal_language_data): Likewise.
4874 * d-lang.c (d_language_data): Likewise.
4875 * f-lang.c (f_language_data): Likewise.
4876 * go-lang.c (go_language_data): Likewise.
4877 * language.c (unknown_language_data): Likewise.
4878 (auto_language_data): Likewise.
4879 * language.h (language_data): Delete la_iterate_over_symbols field.
4880 (language_defn::iterate_over_symbols): New member function.
4881 (LA_ITERATE_OVER_SYMBOLS): Update.
4882 * linespec.c (iterate_over_all_matching_symtabs): Update.
4883 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4884 initializer.
4885 * objc-lang.c (objc_language_data): Likewise.
4886 * opencl-lang.c (opencl_language_data): Likewise.
4887 * p-lang.c (pascal_language_data): Likewise.
4888 * rust-lang.c (rust_language_data): Likewise.
4889
54f4ca46
AB
48902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4891
4892 * ada-lang.c (ada_language_data): Delete
4893 la_lookup_transparent_type initializer.
4894 * c-lang.c (c_language_data): Likewise.
4895 (cplus_language_data): Likewise.
4896 (cplus_language::lookup_transparent_type): New member function.
4897 (asm_language_data): Delete la_lookup_transparent_type
4898 initializer.
4899 (minimal_language_data): Likewise.
4900 * d-lang.c (d_language_data): Likewise.
4901 * f-lang.c (f_language_data): Likewise.
4902 * go-lang.c (go_language_data): Likewise.
4903 * language.c (unknown_language_data): Likewise.
4904 (auto_language_data): Likewise.
4905 * language.h (struct language_data): Delete
4906 la_lookup_transparent_type field.
4907 (language_defn::lookup_transparent_type): New member function.
4908 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4909 initializer.
4910 * objc-lang.c (objc_language_data): Likewise.
4911 * opencl-lang.c (opencl_language_data): Likewise.
4912 * p-lang.c (pascal_language_data): Likewise.
4913 * rust-lang.c (rust_language_data): Likewise.
4914 * symtab.c (symbol_matches_domain): Update call.
4915
1fb314aa
AB
49162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 * ada-lang.c (ada_language_arch_info): Delete function, move
4919 implementation to...
4920 (ada_language::language_arch_info): ...here, a new member
4921 function.
4922 (ada_language_data): Delete la_language_arch_info.
4923 * c-lang.c (c_language_data): Likewise.
4924 (c_language::language_arch_info): New member function.
4925 (cplus_language_arch_info): Delete function, move
4926 implementation to...
4927 (cplus_language::language_arch_info): ...here, a new member
4928 function.
4929 (cplus_language_data): Delete la_language_arch_info.
4930 (asm_language_data): Likewise.
4931 (asm_language::language_arch_info): New member function.
4932 (minimal_language_data): Delete la_language_arch_info.
4933 (minimal_language::language_arch_info): New member function.
4934 * d-lang.c (d_language_arch_info): Delete function, move
4935 implementation to...
4936 (d_language::language_arch_info): ...here, a new member
4937 function.
4938 (d_language_data): Delete la_language_arch_info.
4939 * f-lang.c (f_language_arch_info): Delete function, move
4940 implementation to...
4941 (f_language::language_arch_info): ...here, a new member
4942 function.
4943 (f_language_data): Delete la_language_arch_info.
4944 * go-lang.c (go_language_arch_info): Delete function, move
4945 implementation to...
4946 (go_language::language_arch_info): ...here, a new member
4947 function.
4948 (go_language_data): Delete la_language_arch_info.
4949 * language.c (unknown_language_data): Likewise.
4950 (unknown_language::language_arch_info): New member function.
4951 (auto_language_data): Delete la_language_arch_info.
4952 (auto_language::language_arch_info): New member function.
4953 (language_gdbarch_post_init): Update call to
4954 la_language_arch_info.
4955 * language.h (language_data): Delete la_language_arch_info
4956 function pointer.
4957 (language_defn::language_arch_info): New function.
4958 * m2-lang.c (m2_language_arch_info): Delete function, move
4959 implementation to...
4960 (m2_language::language_arch_info): ...here, a new member
4961 function.
4962 (m2_language_data): Delete la_language_arch_info.
4963 * objc-lang.c (objc_language_arch_info): Delete function, move
4964 implementation to...
4965 (objc_language::language_arch_info): ...here, a new member
4966 function.
4967 (objc_language_data): Delete la_language_arch_info.
4968 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4969 implementation to...
4970 (opencl_language::language_arch_info): ...here, a new member
4971 function.
4972 (opencl_language_data): Delete la_language_arch_info.
4973 * p-lang.c (pascal_language_arch_info): Delete function, move
4974 implementation to...
4975 (pascal_language::language_arch_info): ...here, a new member
4976 function.
4977 (pascal_language_data): Delete la_language_arch_info.
4978 * rust-lang.c (rust_language_arch_info): Delete function, move
4979 implementation to...
4980 (rust_language::language_arch_info): ...here, a new member
4981 function.
4982 (rust_language_data): Delete la_language_arch_info.
4983
48448202
AB
49842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4985
4986 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4987 initializer.
4988 * c-lang.c (c_language_data): Likewise.
4989 (cplus_language_data): Likewise.
4990 (cplus_language::pass_by_reference_info): New method.
4991 (asm_language_data): Delete la_pass_by_reference initializer.
4992 (minimal_language_data): Likewise.
4993 * cp-abi.c (cp_pass_by_reference): Remove use of
4994 default_pass_by_reference.
4995 * d-lang.c (d_language_data): Likewise.
4996 * f-lang.c (f_language_data): Likewise.
4997 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4998 default_pass_by_reference.
4999 * go-lang.c (go_language_data): Likewise.
5000 * language.c (language_pass_by_reference): Update.
5001 (default_pass_by_reference): Delete.
5002 (unknown_language_data): Delete la_pass_by_reference
5003 initializer.
5004 (auto_language_data): Likewise.
5005 * language.h (struct language_data): Delete la_pass_by_reference
5006 field.
5007 (language_defn::pass_by_reference_info): New member function.
5008 (default_pass_by_reference): Delete declaration.
5009 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5010 initializer.
5011 * objc-lang.c (objc_language_data): Likewise.
5012 * opencl-lang.c (opencl_language_data): Likewise.
5013 * p-lang.c (pascal_language_data): Likewise.
5014 * rust-lang.c (rust_language_data): Likewise.
5015
15e5fd35
AB
50162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * ada-lang.c (ada_read_var_value): Delete function, move
5019 implementation to...
5020 (ada_language::read_var_value): ...here.
5021 (ada_language_data): Delete la_read_var_value initializer.
5022 * c-lang.c (c_language_data): Likewise.
5023 (cplus_language_data): Likewise.
5024 (minimal_language_data): Likewise.
5025 * d-lang.c (d_language_data): Likewise.
5026 * f-lang.c (f_language_data): Likewise.
5027 * findvar.c (default_read_var_value): Rename to...
5028 (language_defn::read_var_value): ...this.
5029 * findvar.c (read_var_value): Update header comment, and change to
5030 call member function instead of function pointer.
5031 * go-lang.c (go_language_data): Likewise.
5032 * language.c (unknown_language_data): Delete la_read_var_value
5033 initializer.
5034 (auto_language_data): Likewise.
5035 * language.h (struct language_data): Delete la_read_var_value
5036 field.
5037 (language_defn::read_var_value): New member function.
5038 (default_read_var_value): Delete declaration.
5039 * m2-lang.c (m2_language_data): Delete la_read_var_value
5040 initializer.
5041 * objc-lang.c (objc_language_data): Likewise.
5042 * opencl-lang.c (opencl_language_data): Likewise.
5043 * p-lang.c (pascal_language_data): Likewise.
5044 * rust-lang.c (rust_language_data): Likewise.
5045 * value.h (default_read_var_value): Delete declaration.
5046
5bd40f2a
AB
50472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * ada-lang.c (ada_print_array_index): Delete function, move
5050 implementation to...
5051 (ada_language::print_array_index): ...here.
5052 (ada_language_data): Delete la_print_array_index initializer.
5053 * c-lang.c (c_language_data): Likewise.
5054 (cplus_language_data): Likewise.
5055 (minimal_language_data): Likewise.
5056 * d-lang.c (d_language_data): Likewise.
5057 * f-lang.c (f_language_data): Likewise.
5058 * go-lang.c (go_language_data): Likewise.
5059 * language.c (default_print_array_index): Delete function, move
5060 implementation to...
5061 (language_defn::print_array_index): ...here.
5062 (unknown_language_data): Delete la_print_array_index initializer.
5063 (auto_language_data): Likewise.
5064 * language.h (struct language_data): Delete la_print_array_index
5065 field.
5066 (language_defn::print_array_index): New member function.
5067 (LA_PRINT_ARRAY_INDEX): Update.
5068 (default_print_array_index): Delete declaration.
5069 * m2-lang.c (m2_language_data): Delete la_print_array_index
5070 initializer.
5071 * objc-lang.c (objc_language_data): Likewise.
5072 * opencl-lang.c (opencl_language_data): Likewise.
5073 * p-lang.c (pascal_language_data): Likewise.
5074 * rust-lang.c (rust_language_data): Likewise.
5075
0874fd07
AB
50762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5077
5078 * gdb/ada-lang.c (ada_language_defn): Convert to...
5079 (ada_language_data): ...this.
5080 (class ada_language): New class.
5081 (ada_language_defn): New static global.
5082 * gdb/c-lang.c (c_language_defn): Convert to...
5083 (c_language_data): ...this.
5084 (class c_language): New class.
5085 (c_language_defn): New static global.
5086 (cplus_language_defn): Convert to...
5087 (cplus_language_data): ...this.
5088 (class cplus_language): New class.
5089 (cplus_language_defn): New static global.
5090 (asm_language_defn): Convert to...
5091 (asm_language_data): ...this.
5092 (class asm_language): New class.
5093 (asm_language_defn): New static global.
5094 (minimal_language_defn): Convert to...
5095 (minimal_language_data): ...this.
5096 (class minimal_language): New class.
5097 (minimal_language_defn): New static global.
5098 * gdb/d-lang.c (d_language_defn): Convert to...
5099 (d_language_data): ...this.
5100 (class d_language): New class.
5101 (d_language_defn): New static global.
5102 * gdb/f-lang.c (f_language_defn): Convert to...
5103 (f_language_data): ...this.
5104 (class f_language): New class.
5105 (f_language_defn): New static global.
5106 * gdb/go-lang.c (go_language_defn): Convert to...
5107 (go_language_data): ...this.
5108 (class go_language): New class.
5109 (go_language_defn): New static global.
5110 * gdb/language.c (unknown_language_defn): Remove declaration.
5111 (current_language): Initialize to nullptr, real initialization is
5112 moved to _initialize_language.
5113 (languages): Delete global.
5114 (language_defn::languages): Define.
5115 (set_language_command): Use language_defn::languages.
5116 (set_language): Likewise.
5117 (range_error): Likewise.
5118 (language_enum): Likewise.
5119 (language_def): Likewise.
5120 (add_set_language_command): Use language_def::languages for the
5121 language list, and language_def to lookup language pointers.
5122 (skip_language_trampoline): Use language_defn::languages.
5123 (unknown_language_defn): Convert to...
5124 (unknown_language_data): ...this.
5125 (class unknown_language): New class.
5126 (unknown_language_defn): New static global.
5127 (auto_language_defn): Convert to...
5128 (auto_language_data): ...this.
5129 (class auto_language): New class.
5130 (auto_language_defn): New static global.
5131 (language_gdbarch_post_init): Use language_defn::languages.
5132 (_initialize_language): Initialize current_language.
5133 * gdb/language.h (struct language_defn): Rename to...
5134 (struct language_data): ...this.
5135 (struct language_defn): New.
5136 (auto_language_defn): Delete.
5137 (unknown_language_defn): Delete.
5138 (minimal_language_defn): Delete.
5139 (ada_language_defn): Delete.
5140 (asm_language_defn): Delete.
5141 (c_language_defn): Delete.
5142 (cplus_language_defn): Delete.
5143 (d_language_defn): Delete.
5144 (f_language_defn): Delete.
5145 (go_language_defn): Delete.
5146 (m2_language_defn): Delete.
5147 (objc_language_defn): Delete.
5148 (opencl_language_defn): Delete.
5149 (pascal_language_defn): Delete.
5150 (rust_language_defn): Delete.
5151 * gdb/m2-lang.c (m2_language_defn): Convert to...
5152 (m2_language_data): ...this.
5153 (class m2_language): New class.
5154 (m2_language_defn): New static global.
5155 * gdb/objc-lang.c (objc_language_defn): Convert to...
5156 (objc_language_data): ...this.
5157 (class objc_language): New class.
5158 (objc_language_defn): New static global.
5159 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5160 (opencl_language_data): ...this.
5161 (class opencl_language): New class.
5162 (opencl_language_defn): New static global.
5163 * gdb/p-lang.c (pascal_language_defn): Convert to...
5164 (pascal_language_data): ...this.
5165 (class pascal_language): New class.
5166 (pascal_language_defn): New static global.
5167 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5168 language pointer, update comment format.
5169 * gdb/rust-lang.c (rust_language_defn): Convert to...
5170 (rust_language_data): ...this.
5171 (class rust_language): New class.
5172 (rust_language_defn): New static global.
5173
1313c56e
AB
51742020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5177 member variable.
5178 <m_stmt_at_address>: New member variable.
5179 (lnp_state_machine::record_line): Don't record some lines, update
5180 tracking of is_stmt at the same address.
5181 (lnp_state_machine::lnp_state_machine): Initialise new member
5182 variables.
5183
b7ed9f3d
ST
51842020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5185
5186 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5187 "-include gnu-nat-mig.h".
5188 * gnu-nat-mig.h: New file.
5189 * gnu-nat.c: Include "gnu-nat-mig.h".
5190 (exc_server, msg_reply_server, notify_server,
5191 process_reply_server): Remove declarations.
5192
14a8ad62
ST
51932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5194
5195 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5196 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5197 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5198 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5199 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5200 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5201 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5202 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5203 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5204 to gnu_nat_target class.
5205 * gnu-nat.c: Likewise.
5206 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5207 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5208 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5209 object.
5210 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5211 instead of `gnu_target'.
5212
0af5e106
ST
52132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5214
5215 * i386-gnu-tdep.c: Include "gdbcore.h"
5216 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5217 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5218 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5219 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5220 i386_gnu_sigcontext_addr): New functions
5221 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5222 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5223 tdep.
5224
078f2fc9
ST
52252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5226
5227 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5228 before fork_inferior call. Avoid calling it if target_is_pushed returns
5229 true.
5230
53dff92c
ST
52312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5232
5233 * gnu-nat.h (gnu_target): New variable declaration.
5234 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5235 gnu_target.
5236 * gnu-nat.c (gnu_target): New variable.
5237 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5238 add_thread_silent, and add_thread calls.
5239 (gnu_nat_target::create_inferior): Pass gnu_target to
5240 add_thread_silent, thread_change_ptid call.
5241 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5242 call.
5243
5a8b8627
ST
52442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5245
5246 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5247 (gnu_nat_target::find_memory_regions): Remove unused
5248 `old_address' variable.
5249
366f550a
ST
52502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5251
5252 * gnu-nat.c: Include "gdbarch.h".
5253
f14871bf
ST
52542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5255
5256 * reply_mig_hack.awk (Error return): Cast function through
5257 void *, to bypass compiler function call check.
5258
c6887cfb
ST
52592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5260
5261 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5262 $(srcdir)/reply_mig_hack.awk.
5263
6930bffe
ST
52642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5265
5266 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5267
112c22ed
JG
52682020-05-30 Jonny Grant <jg@jguk.org>
5269
5270 * configure.ac (ACX_BUGURL): change bug URL to https.
5271
f68f85b5
PA
52722020-05-30 Pedro Alves <palves@redhat.com>
5273
5274 * cp-support.c (replace_typedefs_template): New.
5275 (replace_typedefs_qualified_name): Handle
5276 DEMANGLE_COMPONENT_TEMPLATE.
5277
976ca316
SM
52782020-05-29 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5281 dwarf2/index-cache.h, dwarf2/index-write.c,
5282 dwarf2/index-write.h, dwarf2/line-header.c,
5283 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5284 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5285 variables and fields from `dwarf2_per_objfile` to just
5286 `per_objfile` throughout.
5287
989ade05
SM
52882020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5289
5290 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5291 <push_dwarf_reg_entry_value>: Add comment.
5292
c47bae85
KB
52932020-05-28 Kevin Buettner <kevinb@redhat.com>
5294 Keith Seitz <keiths@redhat.com>
5295
5296 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5297 instead of PyEval_ReleaseLock.
5298 (class gdbpy_gil): Move to earlier in file.
5299 (finalize_python): Set gdb_python_initialized.
5300 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5301 when not initialized.
5302
44486dcf
SM
53032020-05-28 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5306 <push_dwarf_reg_entry_value>: Remove assert. Override
5307 per_objfile with caller_per_objfile.
5308
f030440d
TV
53092020-05-28 Tom de Vries <tdevries@suse.de>
5310
5311 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5312 PR gold/15646 workaround to symbol kind "type".
5313
f0fbb768
TT
53142020-05-27 Tom Tromey <tromey@adacore.com>
5315
5316 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5317
af0b2a3e
TT
53182020-05-27 Tom Tromey <tromey@adacore.com>
5319
5320 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5321 Use htab_find_with_hash.
5322 <add_abbrev>: Remove "abbrev_number" parameter.
5323 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5324 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5325 (hash_abbrev): Add comment.
5326 (abbrev_table::lookup_abbrev): Move to header file.
5327 (abbrev_table::read): Update.
5328
7d00ffec
TT
53292020-05-27 Tom Tromey <tromey@adacore.com>
5330
5331 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5332 method.
5333 <canonical_name>: New member.
5334 <raw_name>: Rename from "name".
5335 (partial_die_info): Initialize canonical_name.
5336 (scan_partial_symbols): Check raw_name.
5337 (partial_die_parent_scope, partial_die_full_name)
5338 (add_partial_symbol, add_partial_subprogram)
5339 (add_partial_enumeration, load_partial_dies): Use "name" method.
5340 (partial_die_info::name): New method.
5341 (partial_die_info::read, guess_partial_die_structure_name)
5342 (partial_die_info::fixup): Update.
5343
697bba18
TT
53442020-05-27 Tom Tromey <tromey@adacore.com>
5345
5346 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5347 <get_ref_die_offset>: Inline.
5348 <get_ref_die_offset_complaint>: New method.
5349 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5350 (attribute::get_ref_die_offset_complaint): Rename from
5351 get_ref_die_offset. Just issue complaint.
5352
c17ace43
HD
53532020-05-27 Hannes Domani <ssbssa@yahoo.de>
5354
5355 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5356
96445f0b
HD
53572020-05-27 Hannes Domani <ssbssa@yahoo.de>
5358
5359 * exec.c (exec_file_attach): Use errno value of first openp failure.
5360
ac637ec3
HD
53612020-05-27 Hannes Domani <ssbssa@yahoo.de>
5362
5363 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5364 Don't close thread handle.
5365
17ee85fc
TT
53662020-05-27 Tom Tromey <tom@tromey.com>
5367 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5370 shared_ptr.
5371 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5372 member.
5373 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5374 dwarf2_per_bfd_objfile_data_key>: New globals.
5375 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5376 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5377 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5378 shared.
5379 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5380 short-circuit when sharing.
5381 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5382 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5383
39b16f87
SM
53842020-05-27 Simon Marchi <simon.marchi@efficios.com>
5385
5386 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5387 to...
5388 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5389 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5390
fcf23d5b
SM
53912020-05-27 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5394 build_name_components, find_name_components_bounds>:
5395 Add per_objfile parameter.
5396 (struct mapped_index) <symbol_name_at>: Likewise.
5397 (struct mapped_debug_names): Remove constructor.
5398 <dwarf2_per_objfile>: Remove field.
5399 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5400 (mapped_index_base::find_name_components_bounds,
5401 mapped_index_base::build_name_components,
5402 dw2_expand_symtabs_matching_symbol): Likewise.
5403 (class mock_mapped_index) <symbol_name_at>: Likewise.
5404 (check_match): Likewise.
5405 (check_find_bounds_finds): Likewise.
5406 (test_mapped_index_find_name_component_bounds): Update.
5407 (CHECK_MATCH): Update.
5408 (dw2_expand_symtabs_matching): Update.
5409 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5410 per_objfile parameter.
5411 <find_vec_in_debug_names>: Likewise.
5412 <m_per_objfile>: New field.
5413 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5414 parameter.
5415 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5416 (dw2_debug_names_iterator::next): Update.
5417 (dw2_debug_names_lookup_symbol): Update.
5418 (dw2_debug_names_expand_symtabs_for_function): Update.
5419 (dw2_debug_names_map_matching_symbols): Update.
5420 (dw2_debug_names_expand_symtabs_matching): Update.
5421 (dwarf2_read_debug_names): Update.
5422
7188ed02
SM
54232020-05-27 Simon Marchi <simon.marchi@efficios.com>
5424
5425 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5426 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5427 move to dwarf2_per_objfile.
5428 <read_in_chain>: Remove.
5429 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5430 remove_all_cus, age_comp_units>: New methods.
5431 <m_dwarf2_cus>: New member.
5432 (struct dwarf2_per_cu_data) <cu>: Remove.
5433 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5434 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5435 moved to methods of dwarf2_per_objfile.
5436 (dwarf2_clear_marks): Remove.
5437 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5438 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5439 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5440 (dwarf2_per_objfile::remove_all_cus): New.
5441 (class free_cached_comp_units) <~free_cached_comp_units>:
5442 Update.
5443 (load_cu): Update.
5444 (dw2_do_instantiate_symtab): Adjust.
5445 (fill_in_sig_entry_from_dwo_entry): Adjust.
5446 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5447 (cutu_reader::cutu_reader): Likewise.
5448 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5449 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5450 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5451 and dwarf2_per_objfile::age_comp_units.
5452 (load_partial_comp_unit): Update.
5453 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5454 (process_queue): Likewise.
5455 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5456 backlink.
5457 (dwarf2_read_addr_index): Likewise.
5458 (follow_die_offset): Likewise.
5459 (dwarf2_fetch_die_loc_sect_off): Likewise.
5460 (dwarf2_fetch_constant_bytes): Likewise.
5461 (dwarf2_fetch_die_type_sect_off): Likewise.
5462 (follow_die_sig_1): Likewise.
5463 (load_full_type_unit): Likewise.
5464 (read_signatured_type): Likewise.
5465 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5466 (dwarf2_cu::~dwarf2_cu): Remove.
5467 (dwarf2_per_objfile::get_cu): New.
5468 (dwarf2_per_objfile::set_cu): New.
5469 (age_cached_comp_units): Rename to...
5470 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5471 to std::unordered_map.
5472 (free_one_cached_comp_unit): Rename to...
5473 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5474 to std::unordered_map.
5475 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5476 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5477 a dwarf2_per_objfile in data.
5478 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5479 (dwarf2_clear_marks): Remove.
5480
2e671100
SM
54812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5482
5483 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5484 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5485 (init_tu_and_read_dwo_dies): Likewise.
5486 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5487 (cutu_reader::cutu_reader): Likewise.
5488 (load_partial_comp_unit): Likewise.
5489 (process_psymtab_comp_unit): Update.
5490 (build_type_psymtabs_1): Update.
5491 (process_skeletonless_type_unit): Update.
5492 (load_full_comp_unit): Update.
5493 (find_partial_die): Update.
5494 (dwarf2_read_addr_index): Update.
5495 (read_signatured_type): Update.
5496
2e6a9f79
SM
54972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5500 m_header_read_in>: New fields.
5501 <get_header>: New method.
5502 * dwarf2/read.c (per_cu_header_read_in): Remove.
5503 (dwarf2_per_cu_data::get_header): New.
5504 (dwarf2_per_cu_data::addr_size): Update.
5505 (dwarf2_per_cu_data::offset_size): Update.
5506 (dwarf2_per_cu_data::ref_addr_size): Update.
5507
1b555f17
SM
55082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5511 (dw2_do_instantiate_symtab): Update.
5512 (queue_and_load_all_dwo_tus): Change parameter from
5513 dwarf2_per_cu_data to dwarf2_cu.
5514 (dwarf2_fetch_die_loc_sect_off): Update.
5515 (dwarf2_fetch_constant_bytes): Update.
5516 (dwarf2_fetch_die_type_sect_off): Update.
5517
8fc0b21d
SM
55182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * dwarf2/read.c (process_full_comp_unit,
5521 process_full_type_unit): Remove per_cu, per_objfile paramters.
5522 Add dwarf2_cu parameter.
5523 (process_queue): Update.
5524
168c9250
SM
55252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * dwarf2/read.c (create_cu_from_index_list): Replace
5528 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5529 (create_cus_from_index_list): Likewise.
5530 (create_cus_from_index): Likewise.
5531 (create_signatured_type_table_from_index): Likewise.
5532 (create_cus_from_debug_names_list): Likewise.
5533 (create_cus_from_debug_names): Likewise.
5534 (dwarf2_read_gdb_index): Update.
5535 (dwarf2_read_debug_names): Update.
5536
e286671b
TT
55372020-05-27 Tom Tromey <tom@tromey.com>
5538 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * dwarf2/read.h (struct dwarf2_per_objfile)
5541 <get_type_for_signatured_type, set_type_for_signatured_type>:
5542 New methods.
5543 <m_type_map>: New member.
5544 (struct signatured_type) <type>: Remove.
5545 * dwarf2/read.c
5546 (dwarf2_per_objfile::get_type_for_signatured_type,
5547 dwarf2_per_objfile::set_type_for_signatured_type): New.
5548 (get_signatured_type): Use new methods.
5549
8adb8487
TT
55502020-05-27 Tom Tromey <tom@tromey.com>
5551 Simon Marchi <simon.marchi@efficios.com>
5552
5553 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5554 (struct dwarf2_per_objfile) <type_units>: New member.
5555 <get_type_unit_group_unshareable>: New method.
5556 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5557 num_symtabs, symtabs>: Remove; move to
5558 type_unit_group_unshareable.
5559 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5560 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5561 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5562
127bbf4b
SM
55632020-05-27 Simon Marchi <simon.marchi@efficios.com>
5564
5565 * dwarf2/read.h (struct dwarf2_per_cu_data):
5566 <dwarf2_per_objfile>: Remove.
5567 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5568 dwarf2_per_objfile.
5569 (create_signatured_type_table_from_index): Likewise.
5570 (create_signatured_type_table_from_debug_names): Likewise.
5571 (create_debug_type_hash_table): Likewise.
5572 (fill_in_sig_entry_from_dwo_entry): Likewise.
5573 (create_type_unit_group): Likewise.
5574 (read_comp_units_from_section): Likewise.
5575 (create_cus_hash_table): Likewise.
5576
f6e649dd
SM
55772020-05-27 Simon Marchi <simon.marchi@efficios.com>
5578
5579 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5580 dwarf2_per_cu_data::dwarf2_per_objfile.
5581 (compute_compunit_symtab_includes): Likewise.
5582 (dwarf2_cu::start_symtab): Likewise.
5583
aa66c379
SM
55842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5585
5586 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5587 parameter.
5588 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5589 (read_namespace_alias): Update.
5590 (lookup_die_type): Update.
5591 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5592 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5593 Update.
5594 (disassemble_dwarf_expression): Update.
5595
120ce1b5
SM
55962020-05-27 Simon Marchi <simon.marchi@efficios.com>
5597
5598 * dwarf2/read.h (struct dwarf2_queue_item): Add
5599 dwarf2_per_objfile parameter, assign new parameter.
5600 <per_objfile>: New field.
5601 * dwarf2/read.c (free_one_cached_comp_unit): Add
5602 dwarf2_per_objfile parameter.
5603 (queue_comp_unit): Likewise.
5604 (dw2_do_instantiate_symtab): Update.
5605 (process_psymtab_comp_unit): Update.
5606 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5607 (process_imported_unit_die): Update.
5608 (queue_and_load_dwo_tu): Update.
5609 (follow_die_offset): Update.
5610 (follow_die_sig_1): Update.
5611
9f47c707
SM
56122020-05-27 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5615 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5616 (read_call_site_scope): Assign per_objfile.
5617 (dwarf2_per_cu_data::objfile): Remove.
5618 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5619 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5620 dwarf2_per_objfile parameter.
5621 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5622 dwarf2_per_objfile parameter.
5623 (dwarf_expr_reg_to_entry_parameter): Add output
5624 dwarf2_per_objfile parameter.
5625 (locexpr_get_frame_base): Update.
5626 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5627 <push_dwarf_reg_entry_value>: Update.
5628 <call_site_to_target_addr>: Update.
5629 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5630 parameter.
5631 (value_of_dwarf_reg_entry): Update.
5632 (rw_pieced_value): Update.
5633 (indirect_synthetic_pointer): Update.
5634 (dwarf2_evaluate_property): Update.
5635 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5636 parameter.
5637 (locexpr_read_variable): Update.
5638 (locexpr_get_symbol_read_needs): Update.
5639 (loclist_read_variable): Update.
5640
14095eb3
SM
56412020-05-27 Simon Marchi <simon.marchi@efficios.com>
5642
5643 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5644 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5645 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5646 parameter.
5647 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5648 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5649 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5650 parameter.
5651 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5652 sect_variable_value): Add dwarf2_per_objfile parameter.
5653 (class dwarf_evaluate_loc_desc) <dwarf_call,
5654 dwarf_variable_value>: Update.
5655 (fetch_const_value_from_synthetic_pointer): Add
5656 dwarf2_per_objfile parameter.
5657 (fetch_const_value_from_synthetic_pointer): Update.
5658 (coerced_pieced_ref): Update.
5659 (class symbol_needs_eval_context) <dwarf_call,
5660 dwarf_variable_value>: Update.
5661 (dwarf2_compile_expr_to_ax): Update.
5662
3c3cd3d4
SM
56632020-05-27 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5666 parameter.
5667 (dwarf2_evaluate_loc_desc_full): Update.
5668
82ca3f51
SM
56692020-05-27 Simon Marchi <simon.marchi@efficios.com>
5670
5671 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5672 parameter.
5673 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5674 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5675 dwarf2_per_objfile parameter.
5676 (decode_debug_loc_dwo_addresses): Likewise.
5677 (dwarf2_find_location_expression): Update.
5678 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5679 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5680 parameter.
5681 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5682 parameter.
5683 (locexpr_describe_location_1): Likewise.
5684 (locexpr_describe_location): Update.
5685
4b167ea1
SM
56862020-05-27 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5689 Remove.
5690 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5691 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5692 (dwarf2_compile_property_to_c): Update.
5693 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5694 use text offset from objfile.
5695 (locexpr_tracepoint_var_ref): Update.
5696 (locexpr_generate_c_location): Update.
5697 (loclist_describe_location): Update.
5698 (loclist_tracepoint_var_ref): Update.
5699 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5700 dwarf2_per_objfile parameter.
5701 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5702 use text offset from objfile.
5703 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5704
89b07335
SM
57052020-05-27 Simon Marchi <simon.marchi@efficios.com>
5706
5707 * dwarf2/expr.h (struct dwarf_expr_context)
5708 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5709 <offset>: Remove.
5710 <per_objfile>: New member.
5711 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5712 dwarf2_per_objfile parameter. Don't set offset, set
5713 per_objfile.
5714 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5715 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5716 a dwarf2_per_objfile object instead of an offset.
5717 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5718 constructor.
5719 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5720 to dwarf2_expr_executor constructor. Don't set offset.
5721 (dwarf2_fetch_cfa_info): Update.
5722 (struct dwarf2_frame_cache) <text_offset>: Remove.
5723 <per_objfile>: New field.
5724 (dwarf2_frame_cache): Update.
5725 (dwarf2_frame_prev_register): Update.
5726 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5727 <dwarf_evaluate_loc_desc>: Add constructor.
5728 (dwarf2_evaluate_loc_desc_full): Update.
5729 (dwarf2_locexpr_baton_eval): Update.
5730 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5731 Add constructor.
5732 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5733
293e7e51
SM
57342020-05-27 Simon Marchi <simon.marchi@efficios.com>
5735
5736 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5737 addr_sized_int_type>: Move to dwarf2_cu.
5738 <int_type>: Move to dwarf2_per_objfile.
5739 (struct dwarf2_per_objfile) <int_type>: Move here.
5740 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5741 addr_sized_int_type>: Move here.
5742 (read_func_scope): Update.
5743 (read_array_type): Update.
5744 (read_tag_string_type): Update.
5745 (attr_to_dynamic_prop): Update.
5746 (dwarf2_per_cu_data::int_type): Rename to...
5747 (dwarf2_per_objfile::int_type): ... this.
5748 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5749 (dwarf2_cu::addr_sized_int_type): ... this.
5750 (read_subrange_type): Update.
5751 (dwarf2_per_cu_data::addr_type): Rename to...
5752 (dwarf2_cu::addr_type): ... this.
5753 (set_die_type): Update.
5754
64874a40
SM
57552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5758 data through per_cu->cu.
5759
4ab09049
SM
57602020-05-27 Simon Marchi <simon.marchi@efficios.com>
5761
5762 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5763 dwarf2_per_cu_data parameter fo dwarf2_cu.
5764 (lookup_dwo_type_unit): Likewise.
5765 (read_cutu_die_from_dwo): Likewise.
5766 (lookup_dwo_unit): Likewise.
5767 (open_and_init_dwo_file): Likewise.
5768 (lookup_dwo_cutu): Likewise.
5769 (lookup_dwo_comp_unit): Likewise.
5770 (lookup_dwo_type_unit): Likewise.
5771 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5772 (cutu_reader::cutu_reader): Update.
5773
47b14e86
SM
57742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5775
5776 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5777 parameter.
5778 (process_full_type_unit): Likewise.
5779 (process_queue): Update.
5780
43182c09
SM
57812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5782
5783 * dwarf2/read.c (recursively_compute_inclusions): Add
5784 dwarf2_per_objfile parameter.
5785 (compute_compunit_symtab_includes): Likewise.
5786 (process_cu_includes): Update.
5787
7aa104c4
SM
57882020-05-27 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5791 parameter.
5792 (create_type_unit_group): Update.
5793 (process_psymtab_comp_unit_reader): Update.
5794 (build_type_psymtabs_reader): Update.
5795
e3beb21d
SM
57962020-05-27 Simon Marchi <simon.marchi@efficios.com>
5797
5798 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5799 object through m_this_cu->cu.
5800
d460f660
SM
58012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5802
5803 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5804 the info parameter.
5805 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5806
ab432490
SM
58072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5808
5809 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5810 per_objfile parameter.
5811 (load_full_type_unit): Add per_objfile parameter.
5812 (read_signatured_type): Likewise.
5813 (load_full_comp_unit): Likewise.
5814 (load_cu): Likewise.
5815 (dw2_do_instantiate_symtab): Likewise.
5816 (dw2_get_file_names): Likewise.
5817 (dw2_map_symtabs_matching_filename): Update.
5818 (dw_expand_symtabs_matching_file_matcher): Update.
5819 (dw2_map_symbol_filenames): Update.
5820 (process_psymtab_comp_unit): Add per_objfile parameter.
5821 (build_type_psymtabs_1): Update.
5822 (process_skeletonless_type_unit): Update.
5823 (dwarf2_build_psymtabs_hard): Update.
5824 (load_partial_comp_unit): Add per_objfile parameter.
5825 (scan_partial_symbols): Update.
5826 (load_full_comp_unit): Add per_objfile parameter.
5827 (process_imported_unit_die): Update.
5828 (create_cus_hash_table): Update.
5829 (find_partial_die): Update.
5830 (dwarf2_read_addr_index): Update.
5831 (follow_die_offset): Update.
5832 (dwarf2_fetch_die_loc_sect_off): Update.
5833 (dwarf2_fetch_constant_bytes): Update.
5834 (dwarf2_fetch_die_type_sect_off): Update.
5835 (follow_die_sig_1): Update.
5836 (load_full_type_unit): Add per_objfile parameter.
5837 (read_signatured_type): Likewise.
5838
313bad1b
SM
58392020-05-27 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5842 of objfile_name.
5843
c3699833
SM
58442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5847 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5848 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5849 field.
5850 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5851 (create_cus_from_index): Update.
5852 (dwarf2_read_gdb_index): Update.
5853 (create_cus_from_debug_names): Update.
5854 (dwarf2_read_debug_names): Update.
5855 (get_abbrev_section_for_cu): Update.
5856 (create_all_comp_units): Update.
5857 (read_attribute_value): Update.
5858 (get_debug_line_section): Update.
5859 * dwarf2/index-cache.c (index_cache::store): Update.
5860 * dwarf2/index-write.c (save_gdb_index_command): Update.
5861 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5862
1859c670
SM
58632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5866 member.
5867 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5868 dwarf2_per_cu_data::per_bfd.
5869 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5870 (create_type_unit_group): Likewise.
5871 (queue_comp_unit): Remove reference to
5872 per_cu->dwarf2_per_objfile.
5873 (maybe_queue_comp_unit): Likewise.
5874 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5875 (create_cus_hash_table): Assign new field.
5876
5e22e966
SM
58772020-05-27 Simon Marchi <simon.marchi@efficios.com>
5878
5879 * dwarf2/read.c: Replace
5880 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5881 dwarf2_cu->per_objfile throughout.
5882
97a1449a
SM
58832020-05-27 Simon Marchi <simon.marchi@efficios.com>
5884
5885 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5886 parameter, don't use per_cu->dwarf2_per_objfile.
5887 (dw2_instantiate_symtab): Likewise.
5888 (dw2_find_last_source_symtab): Update.
5889 (dw2_map_expand_apply): Update.
5890 (dw2_lookup_symbol): Update.
5891 (dw2_expand_symtabs_for_function): Update.
5892 (dw2_expand_all_symtabs): Update.
5893 (dw2_expand_symtabs_with_fullname): Update.
5894 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5895 don't use per_cu->dwarf2_per_objfile.
5896 (dw2_expand_marked_cus): Update.
5897 (dw2_find_pc_sect_compunit_symtab): Update.
5898 (dw2_debug_names_lookup_symbol): Update.
5899 (dw2_debug_names_expand_symtabs_for_function): Update.
5900 (dw2_debug_names_map_matching_symbols): Update.
5901 (dwarf2_psymtab::expand_psymtab): Update.
5902
9e021579
SM
59032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5904
5905 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5906 <per_objfile>: New member.
5907 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5908 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5909 call to dwarf2_cu.
5910 (cutu_reader::cutu_reader): Update.
5911 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5912
ae090bdb
SM
59132020-05-27 Simon Marchi <simon.marchi@efficios.com>
5914
5915 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5916 struct dwarf2_per_objfile.
5917 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5918 dwarf2_per_bfd.
5919 * dwarf2/read.c (set_die_type): Update.
5920 (get_die_type_at_offset): Update.
5921
af758d11
SM
59222020-05-27 Tom Tromey <tom@tromey.com>
5923 Simon Marchi <simon.marchi@efficios.com>
5924
5925 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5926 method.
5927 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5928 get_symtab, set_symtab>: New methods.
5929 <m_symtabs>: New field.
5930 (struct dwarf2_psymtab): Derive from partial_symtab.
5931 <readin_p, get_compunit_symtab>: Declare methods.
5932 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5933 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5934 New methods.
5935 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5936 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5937 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5938 (dw2_symtab_iter_next, dw2_print_stats)
5939 (dw2_expand_symtabs_with_fullname)
5940 (dw2_expand_symtabs_matching_one)
5941 (dw_expand_symtabs_matching_file_matcher)
5942 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5943 (dw2_debug_names_iterator::next)
5944 (dw2_debug_names_map_matching_symbols)
5945 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5946 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5947 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5948 New methods.
5949 (get_compunit_symtab, process_full_comp_unit)
5950 (process_full_type_unit): Update.
5951 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5952
5989a64e
SM
59532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5956 then introduce a new dwarf2_per_objfile type.
5957 <read_line_string>: Move to the new dwarf2_per_objfile type.
5958 <objfile>: Likewise.
5959 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5960 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5961 dwarf2_per_objfile->per_bfd.
5962 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5963 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5964 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5965 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5966 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5967 (dwarf2_per_objfile::locate_sections): Rename to...
5968 (dwarf2_per_bfd::locate_sections): ... this.
5969 (dwarf2_per_objfile::get_cutu): Rename to...
5970 (dwarf2_per_bfd::get_cutu): ... this.
5971 (dwarf2_per_objfile::get_cu): Rename to...
5972 (dwarf2_per_bfd::get_cu): ... this.
5973 (dwarf2_per_objfile::get_tu): Rename to...
5974 (dwarf2_per_bfd::get_tu): ... this.
5975 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5976 (dwarf2_per_bfd::allocate_per_cu): ... this.
5977 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5978 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5979 (get_gdb_index_contents_ftype): Change parameter from
5980 dwarf2_per_objfile to dwarf2_per_bfd.
5981 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5982 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5983
a50264ba
TT
59842020-05-27 Tom Tromey <tom@tromey.com>
5985 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5988 (allocate_piece_closure): Set "per_objfile" member.
5989 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5990 (locexpr_describe_location, loclist_describe_location): Use new
5991 member.
5992 * dwarf2/read.c (read_call_site_scope)
5993 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5994 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5995 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5996 handle_data_member_location): Set per_objfile member.
5997 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5998 member.
5999 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6000
d3473f0c
TT
60012020-05-27 Tom Tromey <tom@tromey.com>
6002
6003 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6004 allocate_signatured_type>: Declare new methods.
6005 <m_num_psymtabs>: New member.
6006 (struct dwarf2_per_cu_data) <index>: New member.
6007 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6008 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6009 (create_cu_from_index_list): Use allocate_per_cu.
6010 (create_signatured_type_table_from_index)
6011 (create_signatured_type_table_from_debug_names)
6012 (create_debug_type_hash_table, add_type_unit)
6013 (read_comp_units_from_section): Use allocate_signatured_type.
6014
5717c425
TT
60152020-05-27 Tom Tromey <tom@tromey.com>
6016
6017 * psymtab.c (partial_map_expand_apply)
6018 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6019 (psym_lookup_global_symbol_language)
6020 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6021 (psym_print_stats, psym_expand_symtabs_for_function)
6022 (psym_map_symbol_filenames, psym_map_matching_symbols)
6023 (psym_expand_symtabs_matching)
6024 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6025 (maintenance_check_psymtabs): Update.
6026 * psympriv.h (struct partial_symtab) <readin_p,
6027 get_compunit_symtab>: Add objfile parameter.
6028 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6029 Likewise.
6030 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6031 get_compunit_symtab>: Likewise.
6032 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6033
45940949
TT
60342020-05-27 Tom Tromey <tom@tromey.com>
6035
6036 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6037 member.
6038 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6039 (create_cu_from_index_list)
6040 (create_signatured_type_table_from_index)
6041 (create_signatured_type_table_from_debug_names)
6042 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6043 (dwarf2_create_include_psymtab)
6044 (create_debug_type_hash_table, add_type_unit)
6045 (create_type_unit_group, read_comp_units_from_section)
6046 (dwarf2_compute_name, create_cus_hash_table)
6047 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6048 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6049 obstack.
6050 (dw2_get_real_path): Likewise. Change argument to
6051 dwarf2_per_objfile.
6052
f8c6d152
LM
60532020-05-27 Luis Machado <luis.machado@linaro.org>
6054
6055 PR tdep/26000
6056 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6057 for ldrd (immediate).
6058
e98d2e6d
PW
60592020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6060
6061 * command.h: Add comment giving the name of class_tui.
6062 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6063 create the fake command for the help for class_tui.
6064
53a47a3e
TT
60652020-05-26 Tom Tromey <tromey@adacore.com>
6066
6067 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6068 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6069 (val_atr): New function.
6070 (value_val_atr): Use it.
6071 * ada-valprint.c (print_optional_low_bound): Change low bound
6072 handling for enums.
6073 (val_print_packed_array_elements): Don't call discrete_position.
6074 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6075 discrete_position for enum types.
6076 * language.c (default_print_array_index): Change type.
6077 * language.h (struct language_defn) <la_print_array_index>: Add
6078 index_type parameter, change type of index_value.
6079 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6080 (default_print_array_index): Update.
6081 * valprint.c (maybe_print_array_index): Don't call
6082 value_from_longest. Update.
6083 (value_print_array_elements): Don't call discrete_position.
6084
0bc2354b
TT
60852020-05-26 Tom Tromey <tromey@adacore.com>
6086
6087 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6088 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6089
1218a4bf
CDA
60902020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6091
6092 PR gdb/13519
6093 * avr-tdep.c (avr_integer_to_address): Return data or code
6094 address accordingly to the second 'type' argument of the
6095 function.
6096
92651b1d
MW
60972020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6098
6099 * infcmd.c, inferior.h: (construct_inferior_arguments):
6100 Moved function from here to gdbsupport/common-inferior.{h,cc}
6101
0a4f5f8c
TT
61022020-05-23 Tom Tromey <tom@tromey.com>
6103
6104 Revert commit eca1f90c:
6105 * NEWS: Remove entry for completion styling.
6106 * completer.c (_rl_completion_prefix_display_length): Move
6107 declaration later.
6108 (gdb_fnprint): Revert.
6109 (gdb_display_match_list_1): Likewise.
6110 * cli/cli-style.c (completion_prefix_style)
6111 (completion_difference_style, completion_suffix_style): Remove.
6112 (_initialize_cli_style): Revert.
6113 * cli/cli-style.h (completion_prefix_style)
6114 (completion_difference_style, completion_suffix_style): Don't
6115 declare.
6116
e08bd6c5
PA
61172020-05-24 Pedro Alves <palves@redhat.com>
6118
6119 * symtab.c (completion_list_add_name): Return boolean indication
6120 of whether the symbol matched.
6121 (completion_list_add_symbol): Don't try to remove C++ aliases if
6122 the symbol didn't match in the first place.
6123 * symtab.h (completion_list_add_name): Return bool.
6124
ceacbf6e
SM
61252020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6126
6127 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6128 type::field.
6129
26f16254
JB
61302020-05-23 Joel Brobecker <brobecker@adacore.com>
6131
6132 GDB 9.2 released.
6133
eca1f90c
TT
61342020-05-23 Tom Tromey <tom@tromey.com>
6135
6136 * NEWS: Add entry for completion styling.
6137 * completer.c (_rl_completion_prefix_display_length): Move
6138 declaration earlier.
6139 (gdb_fnprint): Use completion_style.
6140 (gdb_display_match_list_1): Likewise.
6141 * cli/cli-style.c (completion_prefix_style)
6142 (completion_difference_style, completion_suffix_style): New
6143 globals.
6144 (_initialize_cli_style): Register new globals.
6145 * cli/cli-style.h (completion_prefix_style)
6146 (completion_difference_style, completion_suffix_style): Declare.
6147
51e2cfa2
PA
61482020-05-23 Pedro Alves <palves@redhat.com>
6149
6150 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6151 (parse_escape): Use ISDIGIT instead of isdigit.
6152 (puts_debug): Use gdb_isprint instead of isprint.
6153 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6154 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6155 ISSPACE instead of isspace.
6156 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6157 instead of isspace.
6158 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6159 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6160 instead of isxdigit and ISDIGIT instead of isdigit.
6161
80fc5e77
SM
61622020-05-22 Simon Marchi <simon.marchi@efficios.com>
6163
6164 * gdbtypes.h (struct type) <field>: New method.
6165 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6166 or type::field.
6167
3cabb6b0
SM
61682020-05-22 Simon Marchi <simon.marchi@efficios.com>
6169
6170 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6171 (TYPE_FIELDS): Use type::fields. Change all call sites that
6172 modify the propery to use type::set_fields instead.
6173
1f704f76
SM
61742020-05-22 Simon Marchi <simon.marchi@efficios.com>
6175
6176 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6177 type::num_fields instead.
6178
5e33d5f4
SM
61792020-05-22 Simon Marchi <simon.marchi@efficios.com>
6180
6181 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6182 methods.
6183 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6184 that modify the number of fields to use type::set_num_fields
6185 instead.
6186
9392ebb3
TT
61872020-05-22 Tom Tromey <tromey@adacore.com>
6188
6189 * compile/compile-object-load.h (munmap_list_free): Don't
6190 declare.
6191
7c13f4e8
AB
61922020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * annotate.c (annotate_source_line): Update return type, add call
6195 to update current symtab and line.
6196 * annotate.h (annotate_source_line): Update return type, and
6197 extend header comment.
6198 * source.c (info_line_command): Check annotation_level before
6199 calling annotate_source_line.
6200 * stack.c (print_frame_info): If calling annotate_source_line
6201 returns true, then don't print any other source line information.
6202
aa370940
SM
62032020-05-21 Simon Marchi <simon.marchi@efficios.com>
6204
6205 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6206
84d53fa9
SM
62072020-05-21 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * coffread.c (patch_type): Remove NULL check before xfree.
6210 * corefile.c (set_gnutarget): Likewise.
6211 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6212 * exec.c (build_section_table): Likewise.
6213 * remote.c (remote_target::pass_signals): Likewise.
6214 * utils.c (n_spaces): Likewise.
6215 * cli/cli-script.c (document_command): Likewise.
6216 * i386-windows-tdep.c (core_process_module_section): Likewise.
6217 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6218
9d428aae
SM
62192020-05-20 Simon Marchi <simon.marchi@efficios.com>
6220
6221 * symfile.c (reread_symbols): Clear objfile's section_offsets
6222 vector and section indices, re-compute them by calling
6223 sym_offsets.
6224
250106a7
TT
62252020-05-20 Tom Tromey <tromey@adacore.com>
6226
6227 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6228 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6229
9a0bacfb
TV
62302020-05-20 Tom de Vries <tdevries@suse.de>
6231
6232 PR symtab/25833
6233 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6234
7b958a48
AM
62352020-05-20 Alan Modra <amodra@gmail.com>
6236
6237 PR 25993
6238 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6239 bfd_set_filename.
6240 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6241 passed to bfd_set_filename.
6242 * symfile-mem.c (add_vsyscall_page): Likewise for string
6243 passed to symbol_file_add_from_memory.
6244 (symbol_file_add_from_memory): Make name param a const char* and
6245 don't strdup.
6246
c7e97679
AM
62472020-05-20 Alan Modra <amodra@gmail.com>
6248
6249 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6250 rather than accessing bfd->filename directly.
6251 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6252 and use bfd_section_name.
6253 * dwarf2/frame.c (decode_frame_entry): Likewise.
6254 * exec.c (exec_set_section_address): Likewise.
6255 * solib-aix.c (solib_aix_bfd_open): Likewise.
6256 * stap-probe.c (get_stap_base_address): Likewise.
6257 * symfile.c (reread_symbols): Likewise.
6258
563c591b
TT
62592020-05-19 Tom Tromey <tromey@adacore.com>
6260
6261 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6262
f408d82c
SM
62632020-05-19 Simon Marchi <simon.marchi@efficios.com>
6264
6265 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6266
98c59b52
PA
62672020-05-19 Pedro Alves <palves@redhat.com>
6268
6269 * NEWS (set exec-file-mismatch): Adjust entry.
6270 * exec.c: Include "build-id.h".
6271 (validate_exec_file): Try to match build IDs instead of filenames.
6272 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6273 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6274 and pass down 'warn_if_slow'.
6275 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6276 gdb_bfd_open_closure to pass it down.
6277 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6278
4111f652
PA
62792020-05-19 Pedro Alves <palves@redhat.com>
6280
6281 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6282 * target.c (target_fileio_open_1): Rename to target_fileio_open
6283 and make extern. Use bool.
6284 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6285 (target_fileio_read_alloc_1): Adjust.
6286 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6287 (target_fileio_open_warn_if_slow): Delete declaration.
6288
ad80db5b
PA
62892020-05-19 Pedro Alves <palves@redhat.com>
6290
6291 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6292 Adjust all callers.
6293
1d6ce4d3
YS
62942020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6295
6296 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6297 whether disp is negative.
6298
9005fbbb
SM
62992020-05-19 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * symfile.h (struct symfile_segment_data)
6302 <~symfile_segment_data>: Remove.
6303 <segment_info>: Change to std::vector.
6304 * symfile.c (default_symfile_segments): Update.
6305 * elfread.c (elf_symfile_segments): Update.
6306
68b888ff
SM
63072020-05-19 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6310 <segments>: New.
6311 <segment_bases, segment_sizes>: Remove.
6312 * symfile.c (default_symfile_segments): Update.
6313 * elfread.c (elf_symfile_segments): Update.
6314 * remote.c (remote_target::get_offsets): Update.
6315 * solib-target.c (solib_target_relocate_section_addresses):
6316 Update.
6317
62982abd
SM
63182020-05-19 Simon Marchi <simon.marchi@efficios.com>
6319
6320 * symfile.h (struct symfile_segment_data): Initialize fields.
6321 <~symfile_segment_data>: Add.
6322 (symfile_segment_data_up): New.
6323 (struct sym_fns) <sym_segments>: Return a
6324 symfile_segment_data_up.
6325 (default_symfile_segments): Return a symfile_segment_data_up.
6326 (free_symfile_segment_data): Remove.
6327 (get_symfile_segment_data): Return a symfile_segment_data_up.
6328 * symfile.c (default_symfile_segments): Likewise.
6329 (get_symfile_segment_data): Likewise.
6330 (free_symfile_segment_data): Remove.
6331 (symfile_find_segment_sections): Update.
6332 * elfread.c (elf_symfile_segments): Return a
6333 symfile_segment_data_up.
6334 * remote.c (remote_target::get_offsets): Update.
6335 * solib-target.c (solib_target_relocate_section_addresses):
6336 Update.
6337 * symfile-debug.c (debug_sym_segments): Return a
6338 symfile_segment_data_up.
6339
7f204339
RO
63402020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6341
e52a0f1b
RO
6342 PR build/25981
6343 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6344 Hardcode register numbers.
6345
7f204339
RO
6346 PR build/25981
6347 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6348 procfs_find_LDT_entry): Remove.
6349 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6350 procfs_find_LDT_entry): Remove.
6351 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6352 Remove.
6353
7f32a4d5
PA
63542020-05-17 Pedro Alves <palves@redhat.com>
6355 Andrew Burgess <andrew.burgess@embecosm.com>
6356 Keno Fischer <keno@juliacomputing.com>
6357
6358 PR gdb/25741
6359 * breakpoint.c (build_target_condition_list): Update comments.
6360 (build_target_command_list): Update comments and skip matching
6361 locations.
6362 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6363 a separate function. Simplify "set breakpoint auto-hw off"
6364 handling.
6365 (insert_breakpoints): Update comment.
6366 (tracepoint_locations_match): New parameter. For breakpoints,
6367 compare location types too, if the caller wants to.
6368 (handle_automatic_hardware_breakpoints): New functions.
6369 (bp_location_is_less_than): Also sort by location type and
6370 hardware breakpoint length.
6371 (update_global_location_list): Handle "set breakpoint auto-hw on"
6372 here.
6373 (update_breakpoint_locations): Ask breakpoint_locations_match to
6374 ignore location types.
6375
7d93a1e0
SM
63762020-05-16 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6379 type::name instead.
6380
d0e39ea2
SM
63812020-05-16 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * gdbtypes.h (struct type) <name, set_name>: New methods.
6384 (TYPE_CODE): Use type::name. Change all call sites used to set
6385 the name to use type::set_name instead.
6386
2dab0c7b
TT
63872020-05-16 Tom Tromey <tom@tromey.com>
6388
6389 * top.c (quit_force): Update.
6390 * infrun.c (handle_no_resumed): Update.
6391 * top.h (all_uis): New function.
6392 (ALL_UIS): Remove.
6393
59f7bd8d
SM
63942020-05-16 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6397
9bf058f0
PA
63982020-05-16 Pedro Alves <palves@redhat.com>
6399
6400 * ia64-linux-nat.c
6401 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6402 Declare method.
6403 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6404
8f86ae1a
SM
64052020-05-15 Simon Marchi <simon.marchi@efficios.com>
6406
6407 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6408 (sparc64_adi_info): Likewise.
6409
d6bc0792
TT
64102020-05-15 Tom Tromey <tom@tromey.com>
6411
6412 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6413 block_objfile.
6414 (lookup_objfile_from_block): Remove.
6415 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6416 (lookup_global_symbol): Use block_objfile.
6417 * symtab.h (lookup_objfile_from_block): Don't declare.
6418 * printcmd.c (clear_dangling_display_expressions): Use
6419 block_objfile.
6420 * parse.c (operator_check_standard): Use block_objfile.
6421
8c14c3a3
TT
64222020-05-15 Tom Tromey <tom@tromey.com>
6423
6424 * language.c (language_alloc_type_symbol): Set
6425 SYMBOL_SECTION.
6426 * symtab.c (initialize_objfile_symbol): Remove.
6427 (allocate_symbol): Remove.
6428 (allocate_template_symbol): Remove.
6429 * dwarf2/read.c (fixup_go_packaging): Use "new".
6430 (new_symbol): Use "new".
6431 (read_variable): Don't call initialize_objfile_symbol. Use
6432 "new".
6433 (read_func_scope): Use "new".
6434 * xcoffread.c (process_xcoff_symbol): Don't call
6435 initialize_objfile_symbol.
6436 (SYMBOL_DUP): Remove.
6437 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6438 "new".
6439 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6440 (allocate_template_symbol): Don't declare.
6441 (struct symbol): Add copy constructor. Change defaults.
6442 * jit.c (finalize_symtab): Use "new".
6443 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6444 Use "new".
6445 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6446 (common_block_end): Use "new".
6447 * mdebugread.c (parse_symbol): Use "new".
6448 (new_symbol): Likewise.
6449
5b4a1a8d
PW
64502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6451
6452 * NEWS: Mention changes to help and apropos.
6453
57b4f16e
PW
64542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6455
6456 * command.h (enum command_class): Improve comments, document
6457 that class_alias is for user-defined aliases, give the class
6458 name for each class, remove unused class_xdb.
6459 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6460 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6461 by a precise class.
6462 * infcmd.c (_initialize_infcmd): Likewise.
6463 * reverse.c (_initialize_reverse): Likewise.
6464 * stack.c (_initialize_stack): Likewise.
6465 * symfile.c (_initialize_symfile): Likewise.
6466 * tracepoint.c (_initialize_tracepoint): Likewise.
6467
7c05caf7
PW
64682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6469
6470 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6471 when their aliased command is traversed.
6472 (help_cmd): Add fput_command_names_styled call to
6473 output command name and aliases when command has an alias.
6474
3b3aaacb
PW
64752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6476
6477 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6478 * cli/cli-decode.c (help_cmd_list): Declare as static,
6479 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6480 a command together with the command.
6481 (fput_command_name_styled, fput_command_names_styled): New functions.
6482 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6483 fput_command_name_styled.
6484 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6485 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6486
7aa1b46f
PW
64872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6488
6489 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6490 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6491 * command.h (cmd_show_list): Likewise.
6492 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6493 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6494
89bcba74
PW
64952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6496
6497 * unittests/command-def-selftests.c (traverse_command_structure):
6498 Verify all commands of a list have the same prefix command and
6499 that only the top cmdlist commands have a null prefix.
6500
3f4d92eb
PW
65012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6502
6503 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6504 as prefix, not one of its aliases.
6505 (set_cmd_prefix): Remove.
6506 (do_add_cmd): Centralize the setting of the prefix of a command, when
6507 command is defined after its full chain of prefix commands.
6508 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6509 (add_setshow_cmd_full): Likewise.
6510 (update_prefix_field_of_prefixed_commands): New function.
6511 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6512 update_prefix_field_of_prefixed_commands.
6513 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6514 addresses of remote_set_cmdlist and remote_show_cmdlist given
6515 as argument, not the address of an argument.
6516 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6517 * gdb/remote.c (_initialize_remote): Likewise.
6518
0605465f
PW
65192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6520
6521 * cli/cli-cmds.c (alias_command): Check for an existing alias
6522 using lookup_cmd_composition, as valid_command_p is too strict
6523 and forbids aliases that are the prefix of an existing alias
6524 or command.
6525 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6526 command is properly recognised as a valid command.
6527
58e6ac70
PW
65282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6529
6530 * unittests/help-doc-selftests.c: Rename to
6531 unittests/command-def-selftests.c
6532 * unittests/command-def-selftests.c (help_doc_tests): Update some
6533 comments.
6534 (command_structure_tests, traverse_command_structure): New namespace
6535 and function.
6536 (command_structure_invariants_tests): New function.
6537 (_initialize_command_def_selftests) Renamed from
6538 _initialize_help_doc_selftests, register command_structure_invariants
6539 selftest.
6540
a7b9ceb8
PW
65412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6542
6543 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6544 an alias of 'show'.
6545
b2188a06
JB
65462020-05-15 Joel Brobecker <brobecker@adacore.com>
6547
6548 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6549 ada_is_fixed_point_type. Update all callers.
6550 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6551 all callers.
6552 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6553 Update all callers.
6554 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6555 print_fixed_point_type. Update all callers.
6556 * ada-valprint.c (ada_value_print_num): Replace call to
6557 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6558
a51951c2
KB
65592020-05-14 Kevin Buettner <kevinb@redhat.com>
6560
6561 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6562 processors.
6563 (cpu_supports_bts): Add CV_AMD case.
6564
29d6859f
LM
65652020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6566 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * infrun.c (stop_all_threads): Collect multiple wait events at
6569 each pass.
6570
78134374
SM
65712020-05-14 Simon Marchi <simon.marchi@efficios.com>
6572
6573 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6574 type::code instead.
6575
67607e24
SM
65762020-05-14 Simon Marchi <simon.marchi@efficios.com>
6577
6578 * gdbtypes.h (struct type) <code, set_code>: New methods.
6579 (TYPE_CODE): Use type::code. Change all call sites used to set
6580 the code to use type::set_code instead.
6581
a05575d3
TBA
65822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6583 Tom de Vries <tdevries@suse.de>
6584 Pedro Alves <palves@redhat.com>
6585
6586 PR threads/25478
6587 * infrun.c (stop_all_threads): Do NOT ignore
6588 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6589 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6590 received.
6591 (handle_no_resumed): Remove code handling a live inferior with no
6592 threads.
6593 * remote.c (has_single_non_exited_thread): New.
6594 (remote_target::update_thread_list): Do not delete a thread if is
6595 the last thread of the process.
6596 * thread.c (thread_select): Call delete_exited_threads instead of
6597 prune_threads.
6598
6ad82919
TBA
65992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6600
6601 * infrun.c (stop_all_threads): Enable/disable thread events of all
6602 targets. Move a debug message denoting the end of the function
6603 into the SCOPED_EXIT block.
6604
d890404b
TBA
66052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6606
6607 * process-stratum-target.h: Include <set>.
6608 (all_non_exited_process_targets, switch_to_target_no_thread): New
6609 function declarations.
6610 * process-stratum-target.c (all_non_exited_process_targets)
6611 (switch_to_target_no_thread): New function implementations.
6612
293b3ebc
TBA
66132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6614
6615 * infrun.c (handle_inferior_event): Extract out a piece of code
6616 into...
6617 (mark_non_executing_threads): ...this new function.
6618
7ca9b62a
TBA
66192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6620
6621 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6622 use.
6623
fc75c28b
TBA
66242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6625
6626 * regcache.c (regcache_read_pc_protected): New function
6627 implementation that returns 0 if the PC cannot read via
6628 'regcache_read_pc'.
6629 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6630 instead of 'regcache_read_pc'.
6631 (keep_going_pass_signal): Ditto.
6632
a89febbd
TT
66332020-05-13 Tom Tromey <tromey@adacore.com>
6634
6635 * ada-lang.c (align_value): Remove.
6636 (ada_template_to_fixed_record_type_1): Use align_up.
6637
f7e23710
TBA
66382020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6639
6640 * async-event.c: Update the copyright year.
6641 * async-event.h: Update the copyright year.
6642
02ff80c2
SM
66432020-05-12 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * objfiles.h (is_addr_in_objfile,
6646 shared_objfile_contains_address_p): Return bool.
6647 * objfile.c (is_addr_in_objfile,
6648 shared_objfile_contains_address_p): Return bool.
6649
4fd6c7e8
TT
66502020-05-11 Tom Tromey <tromey@adacore.com>
6651
6652 * cli/cli-cmds.c (info_command): Restore.
6653 (_initialize_cli_cmds): Use add_prefix_command for "info".
6654 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6655
5eb68a39
TT
66562020-05-11 Tom Tromey <tromey@adacore.com>
6657
6658 * ada-lang.c (ada_value_primitive_field): Now public.
6659 * ada-lang.h (ada_value_primitive_field): Declare.
6660 * ada-valprint.c (print_field_values): Use
6661 ada_value_primitive_field for wrapper fields.
6662
7666722f
TV
66632020-05-11 Tom de Vries <tdevries@suse.de>
6664
6665 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6666 MODULE_DOMAIN.
6667
3ee6bb11
TV
66682020-05-11 Tom de Vries <tdevries@suse.de>
6669
6670 PR symtab/25941
6671 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6672 with length 0, if not gdb-produced.
6673 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6674
43434996
TV
66752020-05-09 Tom de Vries <tdevries@suse.de>
6676
6677 PR gdb/25955
6678 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6679 calculation.
6680
2f78cffc
TT
66812020-05-09 Tom Tromey <tom@tromey.com>
6682
6683 * top.c (server_command): Now bool.
6684 * top.h (server_command): Now bool.
6685
4f7bc5ed
TT
66862020-05-08 Tom Tromey <tromey@adacore.com>
6687
6688 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6689 already being processed.
6690
8be4b118
TT
66912020-05-08 Tom Tromey <tom@tromey.com>
6692
6693 * printcmd.c (struct display) <next>: Remove.
6694 <display>: New constructor.
6695 <exp_string>: Now a std::string.
6696 <enabled_p>: Now a bool.
6697 (display_number): Move definition earlier.
6698 (displays): Rename from display_chain. Now a std::vector.
6699 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6700 (display_command): Update.
6701 (do_one_display, disable_display)
6702 (enable_disable_display_command, do_enable_disable_display):
6703 Update.
6704 (free_display): Remove.
6705 (clear_displays): Rewrite.
6706 (delete_display): Update.
6707 (map_display_numbers): Use function_view. Remove "data"
6708 parameter. Update.
6709 (do_delete_display): Remove.
6710 (undisplay_command): Update.
6711 (do_one_display, do_displays, disable_display)
6712 (info_display_command): Update.
6713 (do_enable_disable_display): Remove.
6714 (enable_disable_display_command)
6715 (clear_dangling_display_expressions): Update.
6716
94c93c35
TT
67172020-05-08 Tom Tromey <tom@tromey.com>
6718
6719 * symtab.c (set_symbol_cache_size)
6720 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6721 (maintenance_print_symbol_cache_statistics): Update.
6722 * symmisc.c (print_symbol_bcache_statistics)
6723 (print_objfile_statistics, maintenance_print_objfiles)
6724 (maintenance_info_symtabs, maintenance_check_symtabs)
6725 (maintenance_expand_symtabs, maintenance_info_line_tables):
6726 Update.
6727 * symfile-debug.c (set_debug_symfile): Update.
6728 * source.c (forget_cached_source_info): Update.
6729 * python/python.c (gdbpy_progspaces): Update.
6730 * psymtab.c (maintenance_info_psymtabs): Update.
6731 * probe.c (parse_probes): Update.
6732 * linespec.c (iterate_over_all_matching_symtabs)
6733 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6734 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6735 * exec.c (exec_target::close): Update.
6736 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6737 * breakpoint.c (print_one_breakpoint_location)
6738 (create_longjmp_master_breakpoint)
6739 (create_std_terminate_master_breakpoint): Update.
6740 * progspace.c (program_spaces): Now a std::vector.
6741 (maybe_new_address_space): Update.
6742 (add_program_space): Remove.
6743 (program_space::program_space): Update.
6744 (remove_program_space): Update.
6745 (number_of_program_spaces): Remove.
6746 (print_program_space, update_address_spaces): Update.
6747 * progspace.h (program_spaces): Change type.
6748 (ALL_PSPACES): Remove.
6749 (number_of_program_spaces): Don't declare.
6750 (struct program_space) <next>: Remove.
6751
a1fd1ac9
TT
67522020-05-08 Tom Tromey <tom@tromey.com>
6753
6754 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6755 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6756 (enable_break): Update.
6757 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6758 (frv_fdpic_find_canonical_descriptor): Update.
6759 (frv_fetch_objfile_link_map): Update.
6760 * progspace.c (program_space::free_all_objfiles): Update.
6761 (program_space::solibs): New method.
6762 * progspace.h (struct program_space) <solibs>: New method.
6763 * solist.h (master_so_list): Don't declare.
6764 (ALL_SO_LIBS): Remove.
6765 * solib.h (so_list_head): Remove.
6766 (update_solib_list): Update comment.
6767 * solib.c (master_so_list): Remove.
6768 (solib_used, update_solib_list, solib_add)
6769 (info_sharedlibrary_command, clear_solib)
6770 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6771
38eae084
TT
67722020-05-08 Tom Tromey <tom@tromey.com>
6773
6774 * extension.c (extension_languages): Now a std::array.
6775 (ALL_EXTENSION_LANGUAGES): Remove.
6776 (get_ext_lang_defn, get_ext_lang_of_file)
6777 (eval_ext_lang_from_control_command): Update.
6778 (finish_ext_lang_initialization)
6779 (auto_load_ext_lang_scripts_for_objfile)
6780 (ext_lang_type_printers::ext_lang_type_printers)
6781 (apply_ext_lang_type_printers)
6782 (ext_lang_type_printers::~ext_lang_type_printers)
6783 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6784 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6785 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6786 (get_matching_xmethod_workers, ext_lang_colorize)
6787 (ext_lang_before_prompt): Update.
6788 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6789
596dc4ad
TT
67902020-05-08 Tom Tromey <tom@tromey.com>
6791
6792 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6793 overload.
6794 <swap_string, m_string>: Remove.
6795 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6796 Update.
6797 * stabsread.c (define_symbol, read_type): Update.
6798 * linespec.c (find_linespec_symbols): Update.
6799 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6800 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6801 * dbxread.c (read_dbx_symtab): Update.
6802 * cp-support.h (cp_canonicalize_string_full)
6803 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6804 Return unique_xmalloc_ptr.
6805 * cp-support.c (inspect_type): Update.
6806 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6807 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6808 Likewise.
6809 * c-typeprint.c (print_name_maybe_canonical): Update.
6810 * break-catch-throw.c (check_status_exception_catchpoint):
6811 Update.
6812
bf4cb9be
TV
68132020-05-08 Tom de Vries <tdevries@suse.de>
6814
6815 * infrun.c (follow_fork): Copy current_line and current_symtab to
6816 child thread.
6817
a1b68f28
SM
68182020-05-07 Simon Marchi <simon.marchi@efficios.com>
6819
6820 * async-event.c (struct async_signal_handler, struct
6821 async_event_handler): Reformat, remove typedef.
6822
98d48915
SM
68232020-05-07 Simon Marchi <simon.marchi@efficios.com>
6824
6825 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6826 access thistype->main_type->dyn_prop_list directly.
6827
7aa91313
SM
68282020-05-07 Simon Marchi <simon.marchi@efficios.com>
6829
6830 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6831 (remove_dyn_prop): Remove. Update all users to use
6832 type::remove_dyn_prop.
6833 * gdbtypes.c (remove_dyn_prop): Rename to...
6834 (type::remove_dyn_prop): ... this.
6835
5c54719c
SM
68362020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6837
6838 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6839 (add_dyn_prop): Remove. Update all users to use
6840 type::add_dyn_prop.
6841 * gdbtypes.c (add_dyn_prop): Rename to...
6842 (type::add_dyn_prop): ... this.
6843
24e99c6c
SM
68442020-05-07 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6847 (get_dyn_prop): Remove. Update all users to use
6848 type::dyn_prop.
6849 * gdbtypes.c (get_dyn_prop): Rename to...
6850 (type::dyn_prop): ... this.
6851
0d4bf016
SM
68522020-05-06 Simon Marchi <simon.marchi@efficios.com>
6853
6854 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6855
ac4a4f1c
SM
68562020-05-06 Simon Marchi <simon.marchi@efficios.com>
6857
6858 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6859 instruction, skip it if it's there.
6860
a3bbacc1
SM
68612020-05-05 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6864
c3236f84
SM
68652020-05-04 Simon Marchi <simon.marchi@efficios.com>
6866
6867 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6868 * gdbtypes.c (recursive_dump_type): Remove use of
6869 TYPE_INCOMPLETE.
6870
3b6acaee
TT
68712020-05-03 Tom Tromey <tom@tromey.com>
6872
6873 * breakpoint.c (catch_command, tcatch_command): Remove.
6874 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6875 add_show_prefix_cmd.
6876 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6877 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6878 Remove.
6879 (add_internal_problem_command): Use add_basic_prefix_cmd,
6880 add_show_prefix_cmd.
6881 * mips-tdep.c (set_mipsfpu_command): Remove.
6882 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6883 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6884 (_initialize_index_cache): Use add_basic_prefix_cmd.
6885 * memattr.c (dummy_cmd): Remove.
6886 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6887 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6888 (_initialize_tui_win): Use add_basic_prefix_cmd,
6889 add_show_prefix_cmd.
6890 * cli/cli-logging.c (set_logging_command): Remove.
6891 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6892 add_show_prefix_cmd.
6893 (show_logging_command): Remove.
6894 * target.c (target_command): Remove.
6895 (add_target): Use add_basic_prefix_cmd.
6896
a51119cd
HD
68972020-05-02 Hannes Domani <ssbssa@yahoo.de>
6898
6899 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6900
652fc23a 69012020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6902
652fc23a
PW
6903 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6904 info_command.
6905
117539e6
KR
69062020-04-30 Kamil Rytarowski <n54@gmx.com>
6907
6908 * nbsd-nat.c (nbsd_enable_proc_events)
6909 (nbsd_nat_target::post_startup_inferior): Add.
6910 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6911 (nbsd_nat_target::update_thread_list): Rewrite.
6912 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6913 "PTRACE_LWP_CREATE".
6914 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6915
102e38eb 69162020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6917
102e38eb
PW
6918 * stack.c (_initialize_stack): Remove duplicated creation
6919 of "frame" command and "f" alias.
6920
ee9d1e5f
HD
69212020-04-30 Hannes Domani <ssbssa@yahoo.de>
6922
6923 PR gdb/18706
6924 * gdbtypes.c (check_typedef): Calculate size of array of
6925 stubbed type.
6926
627c7fb8
HD
69272020-04-30 Hannes Domani <ssbssa@yahoo.de>
6928
6929 PR gdb/15559
6930 * i386-tdep.c (i386_push_dummy_call): Call
6931 i386_thiscall_push_dummy_call.
6932 (i386_thiscall_push_dummy_call): New function.
6933 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6934 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6935 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6936
ffc2844e
SM
69372020-04-29 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * gdbarch.sh (do_read): Add shellcheck disable directive for
6940 warning SC2162.
6941
1207375d
SM
69422020-04-29 Simon Marchi <simon.marchi@efficios.com>
6943
6944 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6945 "referenced but not assigned" warning.
6946
9fdb2916
SM
69472020-04-29 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * gdbarch.sh: Remove code that sets fallbackdefault.
6950
759cea5e
SM
69512020-04-29 Simon Marchi <simon.marchi@efficios.com>
6952
6953 * gdbarch.sh: Use shell operators && and || instead of
6954 -a and -o.
6955
cb02ab24
SM
69562020-04-29 Simon Marchi <simon.marchi@efficios.com>
6957
6958 * gdbarch.sh: Use $(...) instead of `...`.
6959
a6fc5ffc
SM
69602020-04-29 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * gdbarch.sh: Use double quotes around variables.
6963
8d113d13
SM
69642020-04-29 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * gdbarch.sh: Use %s with printf, instead of variables in the
6967 format string.
6968
ed6acedd
TT
69692020-04-29 Tom Tromey <tromey@adacore.com>
6970
6971 PR ada/25875:
6972 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6973 type fields here.
6974 (read_enumeration_type): Call
6975 update_enumeration_type_from_children later. Update comments.
6976 (process_enumeration_scope): Don't create type fields.
6977
b68b1b58
KR
69782020-04-29 Kamil Rytarowski <n54@gmx.com>
6979
6980 * nbsd-tdep.c: Include "xml-syscall.h".
6981 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6982
f94b2e03
KR
69832020-04-29 Kamil Rytarowski <n54@gmx.com>
6984
6985 * nbsd-nat.c: Include "sys/wait.h".
6986 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6987 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6988 (nbsd_nat_target::remove_exec_catchpoint)
6989 (nbsd_nat_target::set_syscall_catchpoint): Add.
6990 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6991 (nbsd_nat_target::insert_exec_catchpoint)
6992 (nbsd_nat_target::remove_exec_catchpoint)
6993 (nbsd_nat_target::set_syscall_catchpoint): Add.
6994 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6995 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6996 `nbsd_get_syscall_number'.
6997
fc49bc72
TT
69982020-04-29 Tom Tromey <tom@tromey.com>
6999
7000 * stack.c (print_block_frame_labels): Remove.
7001
d642b692
HD
70022020-04-29 Hannes Domani <ssbssa@yahoo.de>
7003
7004 PR gdb/17320
7005 * ada-valprint.c (val_print_packed_array_elements): Move array
7006 end bracket to new line.
7007 (ada_val_print_string): Remove extra spaces before first array
7008 element.
7009 * c-valprint.c (c_value_print_array): Likewise.
7010 * m2-valprint.c (m2_print_array_contents): Likewise.
7011 (m2_value_print_inner): Likewise.
7012 * p-valprint.c (pascal_value_print_inner): Likewise.
7013 * valprint.c (generic_val_print_array): Likewise.
7014 (value_print_array_elements): Move first array element and array
7015 end bracket to new line.
7016
ea90f227
TV
70172020-04-29 Tom de Vries <tdevries@suse.de>
7018
7019 PR symtab/25889
7020 * linespec.c (find_method): Fix ix calculation.
7021
4498ef4f
KR
70222020-04-28 Kamil Rytarowski <n54@gmx.com>
7023
7024 * syscalls/update-netbsd.sh: New file.
7025 * syscalls/netbsd.xml: Regenerate.
7026 * data-directory/Makefile.in: Register `netbsd.xml' in
7027 `SYSCALLS_FILES'.
7028
a55e30b5
SM
70292020-04-28 Simon Marchi <simon.marchi@efficios.com>
7030
7031 * syscalls/update-freebsd.sh: Add double quotes.
7032
2b2fbab8
TT
70332020-04-28 Tom Tromey <tom@tromey.com>
7034
7035 * NEWS: Update.
7036 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7037 (cmdpy_init): Allow class_tui.
7038
a65189c9
TV
70392020-04-28 Mark Williams <mark@myosotissp.com>
7040
7041 PR gdb/24480
7042 * dwarf2read.c: Add missing assingments to list_in_scope when
7043 start_symtab was already called.
7044
1b95cdb7
SM
70452020-04-28 Simon Marchi <simon.marchi@efficios.com>
7046
7047 PR gdb/25881
7048 * dwarf2/read.c (offset_map_type): Use
7049 gdb:hash_enum<sect_offset> as hash function.
7050
15cd93d0
TV
70512020-04-28 Tom de Vries <tdevries@suse.de>
7052
7053 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7054 with DW_AT_signature.
7055
1eb39914
SM
70562020-04-27 Simon Marchi <simon.marchi@efficios.com>
7057
7058 * configure.ac: Remove check for fs_base/gs_base in
7059 user_regs_struct.
7060 * configure: Re-generate.
7061 * config.in: Re-generate.
7062 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7063 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7064 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7065
991a3e2e
LM
70662020-04-27 Luis Machado <luis.machado@linaro.org>
7067
7068 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7069 problematic inline frame unwinding situation.
7070 * frame.c (frame_id_computed_p): New function.
7071 * frame.h (frame_id_computed_p): New prototype.
7072
361ba0e8
TT
70732020-04-26 Tom Tromey <tom@tromey.com>
7074
7075 * command.h (enum command_class) <class_pseudo>: Remove.
7076
bc3609fd
PW
70772020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7078
7079 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7080 and whitespace.
7081
b9771db7
KR
70822020-04-25 Kamil Rytarowski <n54@gmx.com>
7083
ec16513e
SM
7084 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7085 `PT_GET_PROCESS_STATE' block.
b9771db7 7086
7151c1af
TT
70872020-04-24 Tom Tromey <tom@tromey.com>
7088
7089 * symtab.h (symbol_get_demangled_name): Don't declare.
7090 * symtab.c (symbol_get_demangled_name): Remove.
7091 (general_symbol_info::natural_name)
7092 (general_symbol_info::demangled_name): Update.
7093
906bb4c5
TT
70942020-04-24 Tom Tromey <tom@tromey.com>
7095
7096 PR rust/25025:
7097 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7098
bcfe6157
TT
70992020-04-24 Tom Tromey <tom@tromey.com>
7100
7101 PR symtab/12707:
7102 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7103 exists.
7104 (new_symbol): Likewise.
7105 * compile/compile-object-load.c (get_out_value_type): Use
7106 symbol_matches_search_name.
7107
f049a313
TT
71082020-04-24 Tom Tromey <tom@tromey.com>
7109
7110 * dwarf2/read.c (add_partial_symbol): Do not call
7111 compute_and_set_names.
7112
76e288d1
TT
71132020-04-24 Tom Tromey <tom@tromey.com>
7114
7115 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7116 overload.
7117
2467f4f6
TT
71182020-04-24 Tom Tromey <tom@tromey.com>
7119
7120 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7121 (add_psymbol_to_list): New overload. Make old overload call new
7122 one.
7123 * psympriv.h (add_psymbol_to_list): New overload.
7124
e61108c9
TT
71252020-04-24 Tom Tromey <tom@tromey.com>
7126
7127 * dwarf2/read.c (partial_die_info::read) <case
7128 DW_AT_linkage_name>: Use value_as_string.
7129 (dwarf2_string_attr): Use value_as_string.
7130 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7131 method.
7132 * dwarf2/attribute.c (attribute::value_as_string): New method.
7133
8c87a452
TT
71342020-04-24 Tom Tromey <tom@tromey.com>
7135
7136 * symtab.c (general_symbol_info::natural_name)
7137 (general_symbol_info::demangled_name): Check for language_rust.
7138
787de330
TT
71392020-04-24 Tom Tromey <tom@tromey.com>
7140
7141 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7142 (dwarf2_physname): ... from here.
7143 (partial_die_info::read): Add Rust "{" hack.
7144
ff985671
TT
71452020-04-24 Tom Tromey <tom@tromey.com>
7146
7147 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7148 method.
7149 (symbol_set_demangled_name): Don't declare.
7150 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7151 symbol_set_demangled_name.
7152 (general_symbol_info::set_language)
7153 (general_symbol_info::compute_and_set_names): Update.
7154 * minsyms.c (minimal_symbol_reader::install): Update.
7155 * dwarf2/read.c (new_symbol): Update.
7156
1acda803
TT
71572020-04-24 Tom Tromey <tromey@adacore.com>
7158
7159 PR python/23662:
7160 * python/py-type.c (convert_field): Handle
7161 FIELD_LOC_KIND_DWARF_BLOCK.
7162 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7163 (typy_get_dynamic): Nw function.
7164 (type_object_getset): Add "dynamic".
7165 * NEWS: Add entry.
7166
d656f129
TT
71672020-04-24 Tom Tromey <tromey@adacore.com>
7168
7169 * ada-typeprint.c (print_choices, print_variant_part)
7170 (print_record_field_types_dynamic): New functions.
7171 (print_record_field_types): Use print_record_field_types_dynamic.
7172
7d79de9a
TT
71732020-04-24 Tom Tromey <tromey@adacore.com>
7174
7175 * dwarf2/read.c (handle_data_member_location): New overload.
7176 (dwarf2_add_field): Use it.
7177 (decode_locdesc): Add "computed" parameter. Update comment.
7178 * gdbtypes.c (is_dynamic_type_internal): Also look for
7179 FIELD_LOC_KIND_DWARF_BLOCK.
7180 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7181 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7182 virtual base classes.
7183 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7184 FIELD_LOC_KIND_DWARF_BLOCK.
7185
f8e89861
TT
71862020-04-24 Tom Tromey <tromey@adacore.com>
7187
7188 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7189 * gdbtypes.c (is_dynamic_type_internal): Check
7190 TYPE_HAS_DYNAMIC_LENGTH.
7191 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7192 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7193 New macros.
7194 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7195 constant.
7196
9c6a1327
TT
71972020-04-24 Tom Tromey <tromey@adacore.com>
7198
7199 * dwarf2/read.c (struct variant_field): Rewrite.
7200 (struct variant_part_builder): New.
7201 (struct nextfield): Remove "variant" field. Add "offset".
7202 (struct field_info): Add "current_variant_part" and
7203 "variant_parts".
7204 (alloc_discriminant_info): Remove.
7205 (alloc_rust_variant): New function.
7206 (quirk_rust_enum): Update.
7207 (dwarf2_add_field): Set "offset" member. Don't handle
7208 DW_TAG_variant_part.
7209 (offset_map_type): New typedef.
7210 (convert_variant_range, create_one_variant)
7211 (create_one_variant_part, create_variant_parts)
7212 (add_variant_property): New functions.
7213 (dwarf2_attach_fields_to_type): Call add_variant_property.
7214 (read_structure_type): Don't handle DW_TAG_variant_part.
7215 (handle_variant_part, handle_variant): New functions.
7216 (handle_struct_member_die): Use them.
7217 (process_structure_scope): Don't handle variant parts.
7218 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7219 (struct discriminant_info): Remove.
7220 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7221 (struct main_type) <flag_discriminated_union>: Remove.
7222 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7223 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7224 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7225 Update.
7226 * valops.c (value_union_variant): Remove.
7227 * value.h (value_union_variant): Don't declare.
7228
b249d2c2
TT
72292020-04-24 Tom Tromey <tromey@adacore.com>
7230
7231 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7232 (ada_value_primitive_packed_val): Update.
7233 * ada-valprint.c (ada_value_print_1): Update.
7234 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7235 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7236 just an address. Use evaluate_for_locexpr_baton.
7237 (dwarf2_evaluate_property): Update.
7238 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7239 array_view.
7240 * findvar.c (default_read_var_value): Update.
7241 * gdbtypes.c (compute_variant_fields_inner)
7242 (resolve_dynamic_type_internal): Update.
7243 (resolve_dynamic_type): Change type of valaddr parameter.
7244 * gdbtypes.h (resolve_dynamic_type): Update.
7245 * valarith.c (value_subscripted_rvalue): Update.
7246 * value.c (value_from_contents_and_address): Update.
7247
61122aa9
TT
72482020-04-24 Tom Tromey <tromey@adacore.com>
7249
7250 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7251 "push_initial_value" parameter.
7252 (dwarf2_evaluate_property): Likewise.
7253 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7254
ef83a141
TT
72552020-04-24 Tom Tromey <tromey@adacore.com>
7256
7257 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7258 (variant::matches, compute_variant_fields_recurse)
7259 (compute_variant_fields_inner, compute_variant_fields): New
7260 functions.
7261 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7262 Use resolved_type after type is made.
7263 (operator==): Add new cases.
7264 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7265 (struct discriminant_range, struct variant, struct variant_part):
7266 New.
7267 (union dynamic_prop_data) <variant_parts, original_type>: New
7268 members.
7269 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7270 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7271 constants.
7272 * value.c (unpack_bits_as_long): Now public.
7273 * value.h (unpack_bits_as_long): Declare.
7274
675127ec
TT
72752020-04-24 Tom Tromey <tromey@adacore.com>
7276
7277 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7278 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7279
9852ceef
HD
72802020-04-24 Hannes Domani <ssbssa@yahoo.de>
7281
7282 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7283
7632c6ce
KR
72842020-04-24 Kamil Rytarowski <n54@gmx.com>
7285
7286 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7287 (remove_fork_catchpoint, post_startup_inferior)
7288 (post_attach): Move...
7289 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7290 (remove_fork_catchpoint, post_startup_inferior)
7291 (post_attach): ...here.
7292 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7293 (remove_fork_catchpoint, post_startup_inferior)
7294 (post_attach): Move...
7295 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7296 (remove_fork_catchpoint, post_startup_inferior)
7297 (post_attach): ...here.
7298
7be2bb4f
TT
72992020-04-24 Tom Tromey <tromey@adacore.com>
7300
7301 * nat/windows-nat.h (struct windows_thread_info)
7302 <pc_adjusted>: New member.
7303 * windows-nat.c (windows_fetch_one_register): Check
7304 pc_adjusted.
7305 (windows_nat_target::get_windows_debug_event)
7306 (windows_nat_target::wait): Set pc_adjusted.
7307
f80cb3b4
TV
73082020-04-24 Tom de Vries <tdevries@suse.de>
7309
7310 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7311 Run gdb-add-index inside temp dir.
7312
29514b87
TT
73132020-04-23 Tom Tromey <tromey@adacore.com>
7314
7315 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7316 in loop.
7317
5939967b
LM
73182020-04-23 Luis Machado <luis.machado@linaro.org>
7319
7320 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7321 get_frame_register instead of gdbarch_unwind_pc.
7322
70bc38f5
TV
73232020-04-23 Tom de Vries <tdevries@suse.de>
7324
7325 * symtab.c (lookup_global_symbol): Prefer def over decl.
7326
de82891c
TV
73272020-04-23 Tom de Vries <tdevries@suse.de>
7328
7329 PR symtab/25807
7330 * block.c (best_symbol, better_symbol): Promote to external.
7331 * block.h (best_symbol, better_symbol): Declare.
7332 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7333 decl.
7334
ecc6c606
TT
73352020-04-23 Tom Tromey <tromey@adacore.com>
7336
7337 PR ada/25837:
7338 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7339 "const char *", not a "const std::string &".
7340 <name_and_matcher::operator==>: Update.
7341 * unittests/lookup_name_info-selftests.c: Change type of
7342 "result".
7343
740480b8
TT
73442020-04-23 Tom Tromey <tom@tromey.com>
7345
7346 * inferior.h (iterate_over_inferiors): Don't declare.
7347 * inferior.c (iterate_over_inferiors): Remove.
7348 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7349 Remove.
7350 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7351 use iterate_over_inferiors.
7352 (darwin_resume_inferior_it)
7353 (struct resume_inferior_threads_param)
7354 (darwin_resume_inferior_threads_it): Remove.
7355 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7356
ae3ab1f0
TV
73572020-04-23 Tom de Vries <tdevries@suse.de>
7358
7359 * blockframe.c (find_pc_partial_function): Use
7360 find_pc_sect_compunit_symtab rather than
7361 objfile->sf->qf->find_pc_sect_compunit_symtab.
7362
317d2668
TV
73632020-04-22 Tom de Vries <tdevries@suse.de>
7364
7365 PR symtab/25764
7366 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7367 in psymtabs.
7368
eea9e357
TV
73692020-04-22 Tom de Vries <tdevries@suse.de>
7370
7371 PR symtab/25801
7372 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7373 symtabs.
7374
3d5afab3
TV
73752020-04-22 Tom de Vries <tdevries@suse.de>
7376
7377 PR symtab/25700
7378 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7379 CU if already created.
7380
d43b7a2d
TBA
73812020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7382
7383 * infrun.c (displaced_step_fixup): Switch to the event_thread
7384 before calling displaced_step_restore, not after.
7385
d89edf9b
MM
73862020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7387
7388 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7389 its inferior is not recorded by us.
7390 (record_btrace_target_open): Replace call to
7391 all_non_exited_threads () with call to current_inferior
7392 ()->non_exited_threads ().
7393 (record_btrace_target::stop_recording): Likewise.
7394 (record_btrace_target::close): Likewise.
7395 (record_btrace_target::wait): Likewise.
7396 (record_btrace_target::record_stop_replaying): Likewise.
7397
5897fd49
MM
73982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7399
7400 * btrace.c (btrace_enable): Throw an error on double enables and
7401 when enabling recording fails.
7402 (btrace_disable): Throw an error if the thread is not recorded.
7403
1a476b6d
MM
74042020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7405
7406 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7407 request if we do not have a thread_info.
7408
4778a5f8
TV
74092020-04-21 Tom de Vries <tdevries@suse.de>
7410
7411 PR gdb/25471
7412 * thread.c
7413 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7414 exception in get_frame_id.
7415
0fa7617d
TT
74162020-04-20 Tom Tromey <tromey@adacore.com>
7417
7418 * python/python.c (struct gdbpy_event): Mark move constructor as
7419 noexcept.
7420 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7421 constructor as noexcept.
7422 * completer.h (struct completion_result): Mark move constructor as
7423 noexcept.
7424 * completer.c (completion_result::completion_result): Use
7425 initialization style. Don't call reset_match_list.
7426
ad23bda0
MS
74272020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7428
7429 * MAINTAINERS (Write After Approval): Add myself.
7430
45e1f031
TT
74312020-04-18 Tom Tromey <tom@tromey.com>
7432
7433 * windows-tdep.c (init_w32_command_list)
7434 (w32_prefix_command_valid): Restore.
7435 (_initialize_windows_tdep): Call init_w32_command_list.
7436
08feed99
TT
74372020-04-18 Tom Tromey <tom@tromey.com>
7438
7439 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7440 * value.c (value_fn_field): Update.
7441 * valops.c (find_function_in_inferior)
7442 (value_allocate_space_in_inferior): Update.
7443 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7444 Update.
7445 * tui/tui-source.c (tui_source_window::set_contents): Update.
7446 * symtab.c (lookup_global_or_static_symbol)
7447 (find_function_start_sal_1, skip_prologue_sal)
7448 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7449 * symmisc.c (dump_msymbols, dump_symtab_1)
7450 (maintenance_print_one_line_table): Update.
7451 * symfile.c (init_entry_point_info, section_is_mapped)
7452 (list_overlays_command, simple_read_overlay_table)
7453 (simple_overlay_update_1): Update.
7454 * stap-probe.c (handle_stap_probe): Update.
7455 * stabsread.c (dbx_init_float_type, define_symbol)
7456 (read_one_struct_field, read_enum_type, read_range_type): Update.
7457 * source.c (info_line_command): Update.
7458 * python/python.c (gdbpy_source_objfile_script)
7459 (gdbpy_execute_objfile_script): Update.
7460 * python/py-type.c (save_objfile_types): Update.
7461 * python/py-objfile.c (py_free_objfile): Update.
7462 * python/py-inferior.c (python_new_objfile): Update.
7463 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7464 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7465 (maintenance_check_psymtabs): Update.
7466 * printcmd.c (info_address_command): Update.
7467 * objfiles.h (struct objfile) <arch>: New method, from
7468 get_objfile_arch.
7469 (get_objfile_arch): Don't declare.
7470 * objfiles.c (get_objfile_arch): Remove.
7471 (filter_overlapping_sections): Update.
7472 * minsyms.c (msymbol_is_function): Update.
7473 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7474 (output_nondebug_symbol): Update.
7475 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7476 (mdebug_expand_psymtab): Update.
7477 * machoread.c (macho_add_oso_symfile): Update.
7478 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7479 Update.
7480 * linux-fork.c (checkpoint_command): Update.
7481 * linespec.c (convert_linespec_to_sals): Update.
7482 * jit.c (finalize_symtab): Update.
7483 * infrun.c (insert_exception_resume_from_probe): Update.
7484 * ia64-tdep.c (ia64_find_unwind_table): Update.
7485 * hppa-tdep.c (internalize_unwinds): Update.
7486 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7487 Update.
7488 * gcore.c (call_target_sbrk): Update.
7489 * elfread.c (record_minimal_symbol, elf_symtab_read)
7490 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7491 (elf_gnu_ifunc_resolve_by_got): Update.
7492 * dwarf2/read.c (create_addrmap_from_index)
7493 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7494 (read_debug_names_from_section)
7495 (process_psymtab_comp_unit_reader, add_partial_symbol)
7496 (add_partial_subprogram, process_full_comp_unit)
7497 (read_file_scope, read_func_scope, read_lexical_block_scope)
7498 (read_call_site_scope, dwarf2_ranges_read)
7499 (dwarf2_record_block_ranges, dwarf2_add_field)
7500 (mark_common_block_symbol_computed, read_tag_pointer_type)
7501 (read_tag_string_type, dwarf2_init_float_type)
7502 (dwarf2_init_complex_target_type, read_base_type)
7503 (partial_die_info::read, partial_die_info::read)
7504 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7505 (dwarf2_fetch_die_loc_sect_off): Update.
7506 * dwarf2/loc.c (dwarf2_find_location_expression)
7507 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7508 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7509 (dwarf2_loc_desc_get_symbol_read_needs)
7510 (locexpr_describe_location_piece, locexpr_describe_location_1)
7511 (loclist_describe_location): Update.
7512 * dwarf2/index-write.c (write_debug_names): Update.
7513 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7514 * dtrace-probe.c (dtrace_process_dof): Update.
7515 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7516 (process_one_symbol): Update.
7517 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7518 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7519 (coff_read_enum_type): Update.
7520 * cli/cli-cmds.c (edit_command, list_command): Update.
7521 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7522 * breakpoint.c (create_overlay_event_breakpoint)
7523 (create_longjmp_master_breakpoint)
7524 (create_std_terminate_master_breakpoint)
7525 (create_exception_master_breakpoint, get_sal_arch): Update.
7526 * block.c (block_gdbarch): Update.
7527 * annotate.c (annotate_source_line): Update.
7528
0743fc83
TT
75292020-04-17 Tom Tromey <tromey@adacore.com>
7530
7531 * auto-load.c (show_auto_load_cmd): Remove.
7532 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7533 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7534 (maintenance_print_arc_command): Remove.
7535 * tui/tui-win.c (tui_command): Remove.
7536 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7537 * tui/tui-layout.c (tui_layout_command): Remove.
7538 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7539 * python/python.c (user_set_python, user_show_python): Remove.
7540 (_initialize_python): Use add_basic_prefix_cmd,
7541 add_show_prefix_cmd.
7542 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7543 (install_gdb_commands): Use add_basic_prefix_cmd,
7544 add_show_prefix_cmd.
7545 (info_guile_command): Remove.
7546 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7547 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7548 add_show_prefix_cmd.
7549 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7550 Remove do_set and do_show parameters.
7551 * cli/cli-style.c (set_style, show_style): Remove.
7552 (_initialize_cli_style): Use add_basic_prefix_cmd,
7553 add_show_prefix_cmd.
7554 (cli_style_option::add_setshow_commands): Remove do_set and
7555 do_show parameters.
7556 (cli_style_option::add_setshow_commands): Use
7557 add_basic_prefix_cmd, add_show_prefix_cmd.
7558 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7559 (set_style_name): Remove.
7560 * cli/cli-dump.c (dump_command, append_command): Remove.
7561 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7562 (tekhex_dump_command, binary_dump_command)
7563 (binary_append_command): Remove.
7564 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7565 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7566 (init_w32_command_list): Remove; move into ...
7567 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7568 * valprint.c (set_print, show_print, set_print_raw)
7569 (show_print_raw): Remove.
7570 (_initialize_valprint): Use add_basic_prefix_cmd,
7571 add_show_prefix_cmd.
7572 * typeprint.c (set_print_type, show_print_type): Remove.
7573 (_initialize_typeprint): Use add_basic_prefix_cmd,
7574 add_show_prefix_cmd.
7575 * record.c (set_record_command, show_record_command): Remove.
7576 (_initialize_record): Use add_basic_prefix_cmd,
7577 add_show_prefix_cmd.
7578 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7579 add_show_prefix_cmd.
7580 (info_command, show_command, set_debug, show_debug): Remove.
7581 * top.h (set_history, show_history): Don't declare.
7582 * top.c (set_history, show_history): Remove.
7583 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7584 (unset_tdesc_cmd): Remove.
7585 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7586 add_show_prefix_cmd.
7587 * symtab.c (info_module_command): Remove.
7588 (_initialize_symtab): Use add_basic_prefix_cmd.
7589 * symfile.c (overlay_command): Remove.
7590 (_initialize_symfile): Use add_basic_prefix_cmd.
7591 * sparc64-tdep.c (info_adi_command): Remove.
7592 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7593 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7594 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7595 add_show_prefix_cmd.
7596 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7597 (_initialize_serial): Use add_basic_prefix_cmd,
7598 add_show_prefix_cmd.
7599 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7600 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7601 add_show_prefix_cmd.
7602 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7603 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7604 add_show_prefix_cmd.
7605 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7606 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7607 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7608 add_show_prefix_cmd.
7609 * remote.c (remote_command, set_remote_cmd): Remove.
7610 (_initialize_remote): Use add_basic_prefix_cmd.
7611 * record-full.c (set_record_full_command)
7612 (show_record_full_command): Remove.
7613 (_initialize_record_full): Use add_basic_prefix_cmd,
7614 add_show_prefix_cmd.
7615 * record-btrace.c (cmd_set_record_btrace)
7616 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7617 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7618 (cmd_show_record_btrace_pt): Remove.
7619 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7620 add_show_prefix_cmd.
7621 * ravenscar-thread.c (set_ravenscar_command)
7622 (show_ravenscar_command): Remove.
7623 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7624 add_show_prefix_cmd.
7625 * mips-tdep.c (show_mips_command, set_mips_command)
7626 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7627 add_show_prefix_cmd.
7628 * maint.c (maintenance_command, maintenance_info_command)
7629 (maintenance_check_command, maintenance_print_command)
7630 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7631 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7632 add_show_prefix_cmd.
7633 (show_per_command_cmd): Remove.
7634 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7635 Remove.
7636 (maintenance_show_test_settings_cmd): Remove.
7637 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7638 add_show_prefix_cmd.
7639 * maint-test-options.c (maintenance_test_options_command):
7640 Remove.
7641 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7642 * macrocmd.c (macro_command): Remove
7643 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7644 * language.c (set_check, show_check): Remove.
7645 (_initialize_language): Use add_basic_prefix_cmd,
7646 add_show_prefix_cmd.
7647 * infcmd.c (unset_command): Remove.
7648 (_initialize_infcmd): Use add_basic_prefix_cmd.
7649 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7650 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7651 add_show_prefix_cmd.
7652 * go32-nat.c (go32_info_dos_command): Remove.
7653 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7654 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7655 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7656 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7657 (_initialize_frame): Use add_basic_prefix_cmd,
7658 add_show_prefix_cmd.
7659 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7660 (_initialize_dcache): Use add_basic_prefix_cmd,
7661 add_show_prefix_cmd.
7662 * cp-support.c (maint_cplus_command): Remove.
7663 (_initialize_cp_support): Use add_basic_prefix_cmd.
7664 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7665 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7666 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7667 add_basic_prefix_cmd, add_show_prefix_cmd.
7668 * breakpoint.c (save_command): Remove.
7669 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7670 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7671 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7672 add_show_prefix_cmd.
7673 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7674 (set_ada_command, show_ada_command): Remove.
7675 (_initialize_ada_language): Use add_basic_prefix_cmd,
7676 add_show_prefix_cmd.
7677 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7678
3557f442
KR
76792020-04-16 Kamil Rytarowski <n54@gmx.com>
7680
7681 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7682 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7683
16197208
SM
76842020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7685
7686 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7687 warning messages.
7688
00ac85d3
SM
76892020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7690
7691 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7692 import table is not at beginning of .idata section.
7693
381ce63f
PA
76942020-04-16 Pedro Alves <palves@redhat.com>
7695
7696 * inferior.c (delete_inferior): Use delete operator directly
7697 instead of delete_program_space.
7698 * progspace.c (add_program_space): New, factored out from
7699 program_space::program_space.
7700 (remove_program_space): New, factored out from
7701 delete_program_space.
7702 (program_space::program_space): Remove intro comment. Rewrite.
7703 (program_space::~program_space): Remove intro comment. Call
7704 remove_program_space.
7705 (delete_program_space): Delete.
7706 * progspace.h (program_space::program_space): Make explicit. Move
7707 intro comment here, adjusted.
7708 (program_space::~program_space): Move intro comment here,
7709 adjusted.
7710 (delete_program_space): Remove.
7711
a010605f
TT
77122020-04-16 Tom Tromey <tromey@adacore.com>
7713
7714 * windows-nat.c (windows_nat::handle_access_violation): New
7715 function.
7716 * nat/windows-nat.h (handle_access_violation): Declare.
7717 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7718 windows-nat.c. Call handle_access_violation.
7719
efba5c23
TV
77202020-04-16 Tom de Vries <tdevries@suse.de>
7721
7722 PR symtab/25791
7723 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7724 CUs without psymtab.
7725
97ed802d
KB
77262020-04-16 Kevin Buettner <kevinb@redhat.com>
7727
7728 * python/python.c (do_start_initialization): Don't call
7729 PyEval_InitThreads for Python 3.9 and beyond.
7730
c7d64809
KR
77312020-04-15 Kamil Rytarowski <n54@gmx.com>
7732
7733 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7734 thread functions.
7735 (obsd_nat_target::wait): Likewise.
7736
ce127a96
TT
77372020-04-15 Tom Tromey <tromey@adacore.com>
7738
7739 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7740 (DEBUG_EXCEPT): Use debug_printf.
7741
99f1bc6a
AB
77422020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * completer.c (class completion_tracker::completion_hash_entry)
7745 <hash_name>: New member function.
7746 (completion_tracker::discard_completions): New callback to hash a
7747 completion_hash_entry, pass this to htab_create_alloc.
7748
a0e9b532
JT
77492016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7750
7751 * windows-nat.c (windows_make_so): Warn rather than stopping with
7752 an error if realpath() fails.
7753
06ca5dd4
KR
77542020-04-14 Kamil Rytarowski <n54@gmx.com>
7755
7756 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7757 (nbsd_nat_target::info_proc): Add do_status.
7758
194d088f
TV
77592020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7760 Tom de Vries <tdevries@suse.de>
7761
7762 PR symtab/25718
7763 * psympriv.h (struct partial_symtab::read_symtab)
7764 (struct partial_symtab::expand_psymtab)
7765 (struct partial_symtab::read_dependencies): Update comments.
7766 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7767 read_symtab for includer.
7768 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7769 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7770 (struct dwarf2_include_psymtab::m_readin): Remove.
7771 (struct dwarf2_include_psymtab::includer): New member function.
7772 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7773
c1a66c06
TV
77742020-04-14 Tom de Vries <tdevries@suse.de>
7775
7776 PR symtab/25720
7777 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7778 with NULL symbol_matcher and lookup_name.
7779 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7780 and lookup_name.
7781 * dwarf2/read.c (dw2_expand_symtabs_matching)
7782 (dw2_debug_names_expand_symtabs_matching): Same.
7783 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7784 Make lookup_name a pointer. Update comment.
7785 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7786 lookup_name being a pointer.
7787 * symfile.c (expand_symtabs_matching): Same.
7788 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7789 * linespec.c (iterate_over_all_matching_symtabs): Same.
7790
400b5eca
TT
77912020-04-13 Tom Tromey <tom@tromey.com>
7792
7793 * run-on-main-thread.c: Update include.
7794 * unittests/main-thread-selftests.c: Update include.
7795 * tui/tui-win.c: Update include.
7796 * tui/tui-io.c: Update include.
7797 * tui/tui-interp.c: Update include.
7798 * tui/tui-hooks.c: Update include.
7799 * top.h: Update include.
7800 * top.c: Update include.
7801 * ser-base.c: Update include.
7802 * remote.c: Update include.
7803 * remote-notif.c: Update include.
7804 * remote-fileio.c: Update include.
7805 * record-full.c: Update include.
7806 * record-btrace.c: Update include.
7807 * python/python.c: Update include.
7808 * posix-hdep.c: Update include.
7809 * mingw-hdep.c: Update include.
7810 * mi/mi-main.c: Update include.
7811 * mi/mi-interp.c: Update include.
7812 * main.c: Update include.
7813 * linux-nat.c: Update include.
7814 * interps.c: Update include.
7815 * infrun.c: Update include.
7816 * inf-loop.c: Update include.
7817 * event-top.c: Update include.
7818 * event-loop.c: Move to ../gdbsupport/.
7819 * event-loop.h: Move to ../gdbsupport/.
7820 * async-event.h: Update include.
7821 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7822
93b54c8e
TT
78232020-04-13 Tom Tromey <tom@tromey.com>
7824
7825 * tui/tui-win.c: Include async-event.h.
7826 * remote.c: Include async-event.h.
7827 * remote-notif.c: Include async-event.h.
7828 * record-full.c: Include async-event.h.
7829 * record-btrace.c: Include async-event.h.
7830 * infrun.c: Include async-event.h.
7831 * event-top.c: Include async-event.h.
7832 * event-loop.h: Move some declarations to async-event.h.
7833 * event-loop.c: Don't include ser-event.h or top.h. Move some
7834 code to async-event.c.
7835 * async-event.h: New file.
7836 * async-event.c: New file.
7837 * Makefile.in (COMMON_SFILES): Add async-event.c.
7838 (HFILES_NO_SRCDIR): Add async-event.h.
7839
c1cd3163
TT
78402020-04-13 Tom Tromey <tom@tromey.com>
7841
7842 * utils.c (flush_streams): New function.
7843 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7844
29f2bf4f
TT
78452020-04-13 Tom Tromey <tom@tromey.com>
7846
7847 * event-loop.c (handle_file_event): Use warning, not
7848 printf_unfiltered.
7849
98029d02
TT
78502020-04-13 Tom Tromey <tom@tromey.com>
7851
7852 * event-loop.c: Include <chrono>.
7853
06cc9596
TT
78542020-04-13 Tom Tromey <tom@tromey.com>
7855
7856 * gdb_select.h: Move to ../gdbsupport/.
7857 * event-loop.c: Update include path.
7858 * top.c: Update include path.
7859 * ser-base.c: Update include path.
7860 * ui-file.c: Update include path.
7861 * ser-tcp.c: Update include path.
7862 * guile/scm-ports.c: Update include path.
7863 * posix-hdep.c: Update include path.
7864 * ser-unix.c: Update include path.
7865 * gdb_usleep.c: Update include path.
7866 * mingw-hdep.c: Update include path.
7867 * inflow.c: Update include path.
7868 * infrun.c: Update include path.
7869 * event-top.c: Update include path.
7870
8ae8e197
TT
78712020-04-13 Tom Tromey <tom@tromey.com>
7872
7873 * configure: Rebuild.
7874 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7875
58cf28e8
TT
78762020-04-13 Tom Tromey <tom@tromey.com>
7877
7878 * event-loop.h (start_event_loop): Don't declare.
7879 * event-loop.c (start_event_loop): Move...
7880 * main.c (start_event_loop): ...here. Now static.
7881
b7f999ae
SDJ
78822020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7883
7884 * MAINTAINERS: Update my email address.
7885
1085dfd4
KR
78862020-04-12 Kamil Rytarowski <n54@gmx.com>
7887
7888 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7889 IP_ALL.
7890
49d1d1f5
KR
78912020-04-12 Kamil Rytarowski <n54@gmx.com>
7892
7893 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7894 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7895
b4848d2a
KR
78962020-04-12 Kamil Rytarowski <n54@gmx.com>
7897
7898 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7899 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7900
51c133d5
KR
79012020-04-12 Kamil Rytarowski <n54@gmx.com>
7902
7903 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7904
54b8cbd0
KR
79052020-04-11 Kamil Rytarowski <n54@gmx.com>
7906
7907 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7908 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7909 (nbsd_nat_target::info_proc): New functions.
7910 * nbsd-nat.c (kinfo_get_vmmap): New function.
7911 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7912 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7913 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7914 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7915 functions.
7916 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7917 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7918 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7919 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7920 (KINFO_VME_FLAG_GROWS_DOWN): New.
7921
cf83625d
AS
79222020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7923
7924 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7925 bit shift.
7926
0c4311ab
TT
79272020-04-10 Tom Tromey <tromey@adacore.com>
7928
7929 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7930
3e65b3e9
TT
79312020-04-10 Tom Tromey <tromey@adacore.com>
7932
7933 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7934 separate debug files.
7935
13302e95
HD
79362020-04-10 Hannes Domani <ssbssa@yahoo.de>
7937
7938 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7939 Move to...
7940 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7941 ... here.
7942 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7943 Check for STATUS_WX86_BREAKPOINT.
7944 (windows_nat_target::wait): Same.
7945
bdfc1e8a
TV
79462020-04-10 Tom de Vries <tdevries@suse.de>
7947
7948 PR cli/25808
7949 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7950
f4460aec
SM
79512020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7952
7953 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7954 (Write After Approval): Remove Tom de Vries.
7955
a25198bb
BE
79562020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7957
7958 revert partially:
7959 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7960
aac66a4c
SM
7961 * buildsym.c (record_line): Fix undefined behavior and preserve
7962 lines at eof.
a25198bb 7963
206c98a6
KR
79642020-04-09 Kamil Rytarowski <n54@gmx.com>
7965
7966 * auxv.h (svr4_auxv_parse): New.
7967 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7968 and generic_auxv_parse.
7969 (svr4_auxv_parse): Add.
7970 * obsd-tdep.c: Include "auxv.h".
7971 (obsd_auxv_parse): Remove.
7972 (obsd_init_abi): Remove comment.
7973 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7974 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7975 * nbsd-tdep.c: Include "auxv.h".
7976 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7977
71fbdbaf
TT
79782020-04-08 Tom Tromey <tromey@adacore.com>
7979
7980 * nat/windows-nat.h (last_wait_event): Don't declare.
7981 (wait_for_debug_event): Update comment.
7982 * nat/windows-nat.c (last_wait_event): Now static.
7983
2c1d95e8
TT
79842020-04-08 Tom Tromey <tromey@adacore.com>
7985
7986 * windows-nat.c (wait_for_debug_event): Move to
7987 nat/windows-nat.c.
7988 * nat/windows-nat.h (wait_for_debug_event): Declare.
7989 * nat/windows-nat.c (wait_for_debug_event): Move from
7990 windows-nat.c. No longer static.
7991
d2977bc4
TT
79922020-04-08 Tom Tromey <tromey@adacore.com>
7993
7994 * windows-nat.c (get_windows_debug_event): Use
7995 fetch_pending_stop.
7996 * nat/windows-nat.h (fetch_pending_stop): Declare.
7997 * nat/windows-nat.c (fetch_pending_stop): New function.
7998
e758e19c
TT
79992020-04-08 Tom Tromey <tromey@adacore.com>
8000
8001 * windows-nat.c (windows_continue): Use matching_pending_stop and
8002 continue_last_debug_event.
8003 * nat/windows-nat.h (matching_pending_stop)
8004 (continue_last_debug_event): Declare.
8005 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8006 (matching_pending_stop, continue_last_debug_event): New
8007 functions.
8008
8d30e395
TT
80092020-04-08 Tom Tromey <tromey@adacore.com>
8010
8011 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8012 (handle_exception_result): Move to nat/windows-nat.h.
8013 (DEBUG_EXCEPTION_SIMPLE): Remove.
8014 (windows_nat::handle_ms_vc_exception): New function.
8015 (handle_exception): Move to nat/windows-nat.c.
8016 (get_windows_debug_event): Update.
8017 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8018 nat/windows-nat.c.
8019 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8020 (handle_exception_result): Move from windows-nat.c.
8021 (handle_exception): Declare.
8022 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8023 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8024 windows-nat.c.
8025
29de418d
TT
80262020-04-08 Tom Tromey <tromey@adacore.com>
8027
8028 * windows-nat.c (exception_count, event_count): Remove.
8029 (handle_exception, get_windows_debug_event)
8030 (do_initial_windows_stuff): Update.
8031
a816ba18
TT
80322020-04-08 Tom Tromey <tromey@adacore.com>
8033
8034 * windows-nat.c (windows_nat::handle_load_dll)
8035 (windows_nat::handle_unload_dll): Rename. No longer static.
8036 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8037 Declare.
8038
a00caa12
TT
80392020-04-08 Tom Tromey <tromey@adacore.com>
8040
8041 * complaints.h (stop_whining): Declare at top-level.
8042 (complaint): Don't declare stop_whining.
8043
d41b524f
TT
80442020-04-08 Tom Tromey <tromey@adacore.com>
8045
8046 * windows-nat.c (windows_nat::handle_output_debug_string):
8047 Rename. No longer static.
8048 * nat/windows-nat.h (handle_output_debug_string): Declare.
8049
3c76026d
TT
80502020-04-08 Tom Tromey <tromey@adacore.com>
8051
8052 * windows-nat.c (current_process_handle, current_process_id)
8053 (main_thread_id, last_sig, current_event, last_wait_event)
8054 (current_windows_thread, desired_stop_thread_id, pending_stops)
8055 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8056 (display_selectors, fake_create_process)
8057 (get_windows_debug_event): Update.
8058 * nat/windows-nat.h (current_process_handle, current_process_id)
8059 (main_thread_id, last_sig, current_event, last_wait_event)
8060 (current_windows_thread, desired_stop_thread_id, pending_stops)
8061 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8062 * nat/windows-nat.c (current_process_handle, current_process_id)
8063 (main_thread_id, last_sig, current_event, last_wait_event)
8064 (current_windows_thread, desired_stop_thread_id, pending_stops)
8065 (siginfo_er): New globals. Move from windows-nat.c.
8066
9d8679cc
TT
80672020-04-08 Tom Tromey <tromey@adacore.com>
8068
8069 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8070 (handle_load_dll): Update.
8071 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8072
28688adf
TT
80732020-04-08 Tom Tromey <tromey@adacore.com>
8074
8075 * windows-nat.c (enum thread_disposition_type): Move to
8076 nat/windows-nat.h.
8077 (windows_nat::thread_rec): Rename from thread_rec. No longer
8078 static.
8079 (windows_add_thread, windows_nat_target::fetch_registers)
8080 (windows_nat_target::store_registers, handle_exception)
8081 (windows_nat_target::resume, get_windows_debug_event)
8082 (windows_nat_target::get_tib_address)
8083 (windows_nat_target::thread_name)
8084 (windows_nat_target::thread_alive): Update.
8085 * nat/windows-nat.h (enum thread_disposition_type): Move from
8086 windows-nat.c.
8087 (thread_rec): Declare.
8088
4834dad0
TT
80892020-04-08 Tom Tromey <tromey@adacore.com>
8090
8091 * windows-nat.c: Add "using namespace".
8092 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8093 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8094
65bafd5b
TT
80952020-04-08 Tom Tromey <tromey@adacore.com>
8096
8097 * nat/windows-nat.h (struct windows_thread_info): Declare
8098 destructor.
8099 * nat/windows-nat.c (~windows_thread_info): New.
8100
0a4afda3
TT
81012020-04-08 Tom Tromey <tromey@adacore.com>
8102
8103 PR gdb/22992
8104 * windows-nat.c (current_event): Update comment.
8105 (last_wait_event, desired_stop_thread_id): New globals.
8106 (struct pending_stop): New.
8107 (pending_stops): New global.
8108 (windows_nat_target) <stopped_by_sw_breakpoint>
8109 <supports_stopped_by_sw_breakpoint>: New methods.
8110 (windows_fetch_one_register): Add assertions. Adjust PC.
8111 (windows_continue): Handle pending stops. Suspend other threads
8112 when stepping. Use last_wait_event
8113 (wait_for_debug_event): New function.
8114 (get_windows_debug_event): Use wait_for_debug_event. Handle
8115 pending stops. Queue spurious stops.
8116 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8117 (windows_nat_target::kill): Use wait_for_debug_event.
8118 * nat/windows-nat.h (struct windows_thread_info)
8119 <stopped_at_software_breakpoint>: New field.
8120 * nat/windows-nat.c (windows_thread_info::resume): Clear
8121 stopped_at_software_breakpoint.
8122
8e61ebec
TT
81232020-04-08 Tom Tromey <tromey@adacore.com>
8124
8125 * windows-nat.c (enum thread_disposition_type): New.
8126 (thread_rec): Replace "get_context" parameter with "disposition";
8127 change type.
8128 (windows_add_thread, windows_nat_target::fetch_registers)
8129 (windows_nat_target::store_registers, handle_exception)
8130 (windows_nat_target::resume, get_windows_debug_event)
8131 (windows_nat_target::get_tib_address)
8132 (windows_nat_target::thread_name)
8133 (windows_nat_target::thread_alive): Update.
8134
98a03287
TT
81352020-04-08 Tom Tromey <tromey@adacore.com>
8136
8137 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8138 (windows_continue): Use windows_continue::resume.
8139 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8140 resume>: Declare new methods.
8141 * nat/windows-nat.c: New file.
8142 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8143
7c7411bc
TT
81442020-04-08 Tom Tromey <tromey@adacore.com>
8145
8146 * windows-nat.c (windows_add_thread, windows_delete_thread)
8147 (windows_nat_target::fetch_registers)
8148 (windows_nat_target::store_registers, fake_create_process)
8149 (windows_nat_target::resume, windows_nat_target::resume)
8150 (get_windows_debug_event, windows_nat_target::wait)
8151 (windows_nat_target::pid_to_str)
8152 (windows_nat_target::get_tib_address)
8153 (windows_nat_target::get_ada_task_ptid)
8154 (windows_nat_target::thread_name)
8155 (windows_nat_target::thread_alive): Use lwp, not tid.
8156
2950fdf7
TT
81572020-04-08 Tom Tromey <tromey@adacore.com>
8158
8159 * windows-nat.c (handle_exception)
8160 (windows_nat_target::thread_name): Update.
8161 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8162 <name>: Now unique_xmalloc_ptr.
8163
62fe396b
TT
81642020-04-08 Tom Tromey <tromey@adacore.com>
8165
8166 * windows-nat.c (thread_rec)
8167 (windows_nat_target::fetch_registers): Update.
8168 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8169 Update comment.
8170 <debug_registers_changed, reload_context>: Now bool.
8171
e9534bd2
TT
81722020-04-08 Tom Tromey <tromey@adacore.com>
8173
8174 * windows-nat.c (windows_add_thread): Use new.
8175 (windows_init_thread_list, windows_delete_thread): Use delete.
8176 (get_windows_debug_event): Update.
8177 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8178 destructor, and initializers.
8179
ae1f8880
TT
81802020-04-08 Tom Tromey <tromey@adacore.com>
8181
8182 * windows-nat.c (struct windows_thread_info): Remove.
8183 * nat/windows-nat.h: New file.
8184
55a1e039
TT
81852020-04-08 Tom Tromey <tromey@adacore.com>
8186
8187 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8188 (thread_rec, windows_add_thread, windows_delete_thread)
8189 (windows_continue): Update.
8190
93366324
TT
81912020-04-08 Tom Tromey <tromey@adacore.com>
8192
8193 * windows-nat.c (struct windows_thread_info): Remove typedef.
8194 (thread_head): Remove.
8195 (thread_list): New global.
8196 (thread_rec, windows_add_thread, windows_init_thread_list)
8197 (windows_delete_thread, windows_continue): Update.
8198
0f2265e2
SM
81992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8200
8201 * windows-tdep.h (windows_init_abi): Add comment.
8202 (cygwin_init_abi): New declaration.
8203 * windows-tdep.c: Split signal enumeration in two, one for
8204 Windows and one for Cygwin.
8205 (windows_gdb_signal_to_target): Only deal with signal of the
8206 Windows OS ABI.
8207 (cygwin_gdb_signal_to_target): New function.
8208 (windows_init_abi): Rename to windows_init_abi_common, don't set
8209 gdb_signal_to_target gdbarch method. Add new new function with
8210 this name.
8211 (cygwin_init_abi): New function.
8212 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8213 comment. Don't call windows_init_abi.
8214 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8215 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8216 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8217 i386_windows_init_abi_common, don't call windows_init_abi. Add
8218 a new function of this name.
8219 (i386_cygwin_init_abi): New function.
8220 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8221 OS ABI Cygwin.
8222
3810f182
SM
82232020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8224
8225 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8226 parameter.c.
8227 (dwarf2_read_gdb_index): Update.
8228
063f8e80
KR
82292020-04-07 Kamil Rytarowski <n54@gmx.com>
8230
8231 * nbsd-tdep.c: Include "objfiles.h".
8232 (nbsd_skip_solib_resolver): New.
8233 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8234
85a9510c 82352020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8236
8237 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8238 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8239 with DW_LLE_base_addressx are being emitted in DWARFv5.
8240 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8241 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8242 unsigned integer.
8243
9fc3eaae 82442020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8245
8246 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8247 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8248 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8249 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8250 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8251 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8252 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8253
8254
41144253 82552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8256
8257 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8258 (read_loclist_index): New function definition.
8259 (lookup_loclist_base): New function definition.
8260 (read_loclist_header): New function definition.
8261 (dwarf2_cu): Add loclist_base and loclist_header field.
8262 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8263 (read_full_die_1): Read the value of DW_AT_loclists_base.
8264 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8265 (read_attribute_value): Handle DW_FORM_loclistx.
8266 (skip_one_die): Handle DW_FORM_loclistx.
8267 (loclist_header): New structure declaration.
8268 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8269
9f4e76a4
SM
82702020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8271
8272 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8273 constructor. Remove `addr` parameter from other constructor and
8274 add `per_cu` parameter.
8275 * dwarf2/read.c (create_partial_symtab): Update.
8276
25c11aca
TV
82772020-04-07 Tom de Vries <tdevries@suse.de>
8278
8279 PR symtab/25796
8280 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8281 (partial_die_info::fixup): Inherit has_const_value.
8282
5707e24b
TV
82832020-04-07 Tom de Vries <tdevries@suse.de>
8284
8285 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8286 symbols without address.
8287
05f00e22
KR
82882020-04-06 Kamil Rytarowski <n54@gmx.com>
8289
8290 * nbsd-nat.h (struct thread_info): Add forward declaration.
8291 (nbsd_nat_target::thread_alive): Add.
8292 (nbsd_nat_target::thread_name): Likewise.
8293 (nbsd_nat_target::update_thread_list): Likewise.
8294 (update_thread_list::post_attach): Likewise.
8295 (post_attach::pid_to_str): Likewise.
8296 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8297 (nbsd_thread_lister): Add.
8298 (nbsd_nat_target::thread_alive): Likewise.
8299 (nbsd_nat_target::thread_name): Likewise.
8300 (nbsd_add_threads): Likewise.
8301 (update_thread_list::post_attach): Likewise.
8302 (nbsd_nat_target::update_thread_list): Likewise.
8303 (post_attach::pid_to_str): Likewise.
8304
6ee448cc
TT
83052020-04-06 Tom Tromey <tromey@adacore.com>
8306
8307 * ada-valprint.c (print_variant_part): Extract the variant field.
8308 (print_field_values): Use the field as the outer value when
8309 recursing.
8310
dea34e8c
TT
83112020-04-06 Tom Tromey <tromey@adacore.com>
8312
8313 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8314 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8315 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8316 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8317 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8318
93689ce9
TT
83192020-04-06 Tom Tromey <tromey@adacore.com>
8320
8321 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8322 TYPE_CODE_ERROR.
8323
79743962
KR
83242020-04-06 Kamil Rytarowski <n54@gmx.com>
8325
8326 * nbsd-tdep.c: Include "gdbarch.h".
8327 Define enum with NetBSD signal numbers.
8328 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8329 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8330 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8331 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8332 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8333 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8334 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8335 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8336 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8337 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8338 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8339 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8340
9e7c9a03
HD
83412020-04-03 Hannes Domani <ssbssa@yahoo.de>
8342
8343 PR gdb/25325
8344 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8345
d9e49b61
TT
83462020-04-03 Tom Tromey <tromey@adacore.com>
8347
8348 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8349 Read constant block.
8350
e0fc5c3f
SM
83512020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8352
8353 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8354 (gdb_bfd_get_full_section_contents): New declaration.
8355 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8356 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8357 gdb_bfd_get_full_section_contents.
8358
e2ff18a0
SM
83592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8360
8361 * exec.c (build_section_table): Replace internal_error with
8362 gdb_assert.
8363 (section_table_xfer_memory_partial): Likewise.
8364 * mdebugread.c (parse_partial_symbols): Likewise.
8365 * psymtab.c (lookup_partial_symbol): Likewise.
8366 * utils.c (wrap_here): Likewise.
8367
0830d301
TT
83682020-04-02 Tom Tromey <tromey@adacore.com>
8369
8370 * f-lang.c (build_fortran_types): Use arch_type to initialize
8371 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8372
e7da7f8f
TT
83732020-04-02 Tom Tromey <tromey@adacore.com>
8374
8375 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8376 of attributes.
8377
c90d28ac
AB
83782020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8379 Bernd Edlinger <bernd.edlinger@hotmail.de>
8380 Tom Tromey <tromey@adacore.com>
8381
8382 * buildsym.c (buildsym_compunit::record_line): Remove
8383 deduplication code.
8384
1aa98955
TV
83852020-04-02 Tom de Vries <tdevries@suse.de>
8386
8387 PR ada/24671
8388 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8389
d3214198
TV
83902020-04-02 Tom de Vries <tdevries@suse.de>
8391
8392 * dwarf2/read.c (dwarf2_gdb_index_functions,
8393 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8394 NULL.
8395 * psymtab.c (psym_lookup_global_symbol_language): New function.
8396 (psym_functions): Init psym_lookup_global_symbol_language with
8397 psym_lookup_global_symbol_language.
8398 * symfile-debug.c (debug_sym_quick_functions): Init
8399 lookup_global_symbol_language with NULL.
8400 * symfile.c (set_initial_language): Remove fixme comment.
8401 * symfile.h (struct quick_symbol_functions): Add
8402 lookup_global_symbol_language.
8403 * symtab.c (find_quick_global_symbol_language): New function.
8404 (find_main_name): Use find_quick_global_symbol_language.
8405
2836752f
SM
84062020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8407
8408 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8409
64dc2d4b
BE
84102020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8411
8412 * buildsym.c (record_line): Fix undefined behavior and preserve
8413 lines at eof.
8414
bbe3dc41
BE
84152020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8416
8417 * buildsym.c (record_line): Fix the resizing condition.
8418
6b4a335b
TT
84192020-04-01 Tom Tromey <tom@tromey.com>
8420
8421 * value.h (value_literal_complex): Add comment.
8422 * valops.c (value_literal_complex): Refer to value.h.
8423
3638a098
TT
84242020-04-01 Tom Tromey <tom@tromey.com>
8425
8426 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8427 (scalar_type): New rule, from typebase.
8428 (typebase): Use scalar_type. Recognize complex types.
8429 (field_name): Handle FLOAT_KEYWORD.
8430 (ident_tokens): Add _Complex and __complex__.
8431
c34e8714
TT
84322020-04-01 Tom Tromey <tom@tromey.com>
8433
8434 PR exp/25299:
8435 * valarith.c (promotion_type, complex_binop): New functions.
8436 (scalar_binop): Handle complex numbers. Use promotion_type.
8437 (value_pos, value_neg, value_complement): Handle complex numbers.
8438
fa649bb7
TT
84392020-04-01 Tom Tromey <tom@tromey.com>
8440
8441 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8442 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8443 (parse_number): Handle complex numbers.
8444
981c08ce
TT
84452020-04-01 Tom Tromey <tom@tromey.com>
8446
8447 * c-valprint.c (c_decorations): Change complex suffix to "i".
8448
4c99290d
TT
84492020-04-01 Tom Tromey <tom@tromey.com>
8450
8451 * valprint.c (generic_value_print_complex): Use accessors.
8452 * value.h (value_real_part, value_imaginary_part): Declare.
8453 * valops.c (value_real_part, value_imaginary_part): New
8454 functions.
8455 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8456
5b930b45
TT
84572020-04-01 Tom Tromey <tom@tromey.com>
8458
8459 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8460 (read_range_type): Update.
8461 * mdebugread.c (basic_type): Update.
8462 * go-lang.c (build_go_types): Use init_complex_type.
8463 * gdbtypes.h (struct main_type) <complex_type>: New member.
8464 (init_complex_type): Update.
8465 (arch_complex_type): Don't declare.
8466 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8467 Make name if none given. Use alloc_type_copy. Look for cached
8468 complex type.
8469 (arch_complex_type): Remove.
8470 (gdbtypes_post_init): Use init_complex_type.
8471 * f-lang.c (build_fortran_types): Use init_complex_type.
8472 * dwarf2/read.c (read_base_type): Update.
8473 * d-lang.c (build_d_types): Use init_complex_type.
8474 * ctfread.c (read_base_type): Update.
8475
53cccef1
TBA
84762020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8477
8478 * infrun.c (stop_all_threads): Update assertion, plus when
8479 stopping threads, take into account that we might be trying
8480 to stop an all-stop target.
8481 (stop_waiting): Call 'stop_all_threads' if there exists a
8482 non-stop target.
8483
a0714d30
TBA
84842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8485
8486 * target.h (exists_non_stop_target): New function declaration.
8487 * target.c (exists_non_stop_target): New function.
8488
60e22c1e
HD
84892020-04-01 Hannes Domani <ssbssa@yahoo.de>
8490
8491 PR gdb/24789
8492 * eval.c (is_integral_or_integral_reference): New function.
8493 (evaluate_subexp_standard): Allow integer references in
8494 pointer arithmetic.
8495
e139a727
TBA
84962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8497
8498 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8499 check for no ptid in the stop reply when the target is non-stop.
8500
e0802d59
TT
85012020-04-01 Tom Tromey <tromey@adacore.com>
8502
8503 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8504 "name" parameter to rvalue reference. Initialize m_name_holder.
8505 <lookup_name_info>: New overloads.
8506 <name>: Return gdb::string_view.
8507 <c_str>: New method.
8508 <make_ignore_params>: Update.
8509 <search_name_hash>: Update.
8510 <language_lookup_name>: Return const char *.
8511 <m_name>: Change type.
8512 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8513 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8514 (lookup_name_info::match_any): Update.
8515 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8516 Update.
8517 * minsyms.c (linkage_name_str): Update.
8518 * language.c (default_symbol_name_matcher): Update.
8519 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8520 Update.
8521 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8522 (ada_lookup_name_info::ada_lookup_name_info): Update.
8523 (literal_symbol_name_matcher): Update.
8524
8c072cb6
TT
85252020-04-01 Tom Tromey <tromey@adacore.com>
8526
8527 * psymtab.c (psymtab_search_name): Remove function.
8528 (psym_lookup_symbol): Create search name and lookup name here.
8529 (lookup_partial_symbol): Remove "name" parameter; add
8530 lookup_name.
8531 (psym_expand_symtabs_for_function): Update.
8532
6f29a534
TT
85332020-03-31 Joel Jones <joelkevinjones@gmail.com>
8534
8535 PR tui/25597:
8536 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8537
af62665e
TT
85382020-03-31 Tom Tromey <tromey@adacore.com>
8539
8540 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8541 memcpy.
8542
d1a89da5
NC
85432020-03-30 Nelson Chu <nelson.chu@sifive.com>
8544
8545 * features/riscv/32bit-csr.xml: Regenerated.
8546 * features/riscv/64bit-csr.xml: Regenerated.
8547
d8af9068
TT
85482020-03-30 Tom Tromey <tromey@adacore.com>
8549
8550 * ada-valprint.c (print_variant_part): Update.
8551 * ada-lang.h (ada_which_variant_applies): Update.
8552 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8553 outer_valaddr parameters; replace with "outer" value parameter.
8554 (to_fixed_variant_branch_type): Update.
8555
227c0bf4
PFC
85562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8557
8558 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8559 <list>. Remove inclusion of observable.h.
8560 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8561 (struct arch_lwp_info): New struct.
8562 (class ppc_linux_dreg_interface): New class.
8563 (struct ppc_linux_process_info): New struct.
8564 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8565 <low_new_clone, low_forget_process, low_prepare_to_resume>
8566 <copy_thread_dreg_state, mark_thread_stale>
8567 <mark_debug_registers_changed, register_hw_breakpoint>
8568 <clear_hw_breakpoint, register_wp, clear_wp>
8569 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8570 <num_memory_accesses, get_trigger_type>
8571 <create_watchpoint_request, hwdebug_point_cmp>
8572 <init_arch_lwp_info, get_arch_lwp_info>
8573 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8574 methods.
8575 <struct ptid_hash>: New inner struct.
8576 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8577 members.
8578 (saved_dabr_value, hwdebug_info, max_slots_number)
8579 (struct hw_break_tuple, struct thread_points, ppc_threads)
8580 (have_ptrace_hwdebug_interface)
8581 (hwdebug_find_thread_points_by_tid)
8582 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8583 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8584 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8585 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8586 use m_dreg_interface.
8587 (hwdebug_point_cmp): Change to...
8588 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8589 reference arguments instead of pointers.
8590 (ppc_linux_nat_target::ranged_break_num_registers): Use
8591 m_dreg_interface.
8592 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8593 m_dreg_interface. Call register_hw_breakpoint.
8594 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8595 m_dreg_interface. Call clear_hw_breakpoint.
8596 (get_trigger_type): Change to...
8597 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8598 comment.
8599 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8600 use m_dreg_interface. Call register_hw_breakpoint.
8601 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8602 use m_dreg_interface. Call clear_hw_breakpoint.
8603 (can_use_watchpoint_cond_accel): Change to...
8604 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8605 method. Update comment, use m_dreg_interface and
8606 m_process_info.
8607 (calculate_dvc): Change to...
8608 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8609 m_dreg_interface.
8610 (num_memory_accesses): Change to...
8611 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8612 (check_condition): Change to...
8613 (ppc_linux_nat_target::check_condition): ...this method.
8614 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8615 comment, use m_dreg_interface.
8616 (create_watchpoint_request): Change to...
8617 (ppc_linux_nat_target::create_watchpoint_request): ...this
8618 method. Use m_dreg_interface.
8619 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8620 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8621 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8622 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8623 (ppc_linux_nat_target::low_forget_process)
8624 (ppc_linux_nat_target::low_new_fork)
8625 (ppc_linux_nat_target::low_new_clone)
8626 (ppc_linux_nat_target::low_delete_thread)
8627 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8628 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8629 only call mark_thread_stale.
8630 (ppc_linux_thread_exit): Remove.
8631 (ppc_linux_nat_target::stopped_data_address): Change to...
8632 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8633 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8634 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8635 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8636 comment. Call low_stopped_data_address.
8637 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8638 m_dreg_interface.
8639 (ppc_linux_nat_target::masked_watch_num_registers): Use
8640 m_dreg_interface.
8641 (ppc_linux_nat_target::copy_thread_dreg_state)
8642 (ppc_linux_nat_target::mark_thread_stale)
8643 (ppc_linux_nat_target::mark_debug_registers_changed)
8644 (ppc_linux_nat_target::register_hw_breakpoint)
8645 (ppc_linux_nat_target::clear_hw_breakpoint)
8646 (ppc_linux_nat_target::register_wp)
8647 (ppc_linux_nat_target::clear_wp)
8648 (ppc_linux_nat_target::init_arch_lwp_info)
8649 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8650 (_initialize_ppc_linux_nat): Remove observer callback.
8651
4db10d8f
PFC
86522020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8653
8654 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8655 (ppc_linux_nat_target::auxv_parse)
8656 (ppc_linux_nat_target::read_description)
8657 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8658 Move up.
8659
1310c1b0
PFC
86602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8661
8662 * linux-nat.h (low_new_clone): New method.
8663 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8664
69b037c3
SM
86652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8666
8667 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8668 (dbx_expand_psymtab): ... this.
8669 (start_psymtab): Update.
8670 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8671 (mdebug_expand_psymtab): ... this.
8672 (parse_partial_symbols): Update.
8673 (new_psymtab): Update.
8674 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8675 (xcoff_expand_psymtab): ... this.
8676 (xcoff_start_psymtab): Update.
8677
48993951
SM
86782020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8679
8680 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8681 <expand_dependencies>: ... this.
8682 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8683 (partial_symtab::expand_dependencies): ... this.
8684 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8685 Update.
8686 (dwarf2_psymtab::expand_psymtab): Update.
8687 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8688 * mdebugread.c (psymtab_to_symtab_1): Update.
8689 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8690
3ad83046
SM
86912020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8692
8693 * psympriv.h (discard_psymtab): Remove.
8694 * dbxread.c (dbx_end_psymtab): Update.
8695 * xcoffread.c (xcoff_end_psymtab): Update.
8696
4d1b9ab6
TT
86972020-03-28 Tom Tromey <tom@tromey.com>
8698
8699 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8700 comment.
8701
f1749218
TT
87022020-03-28 Tom Tromey <tom@tromey.com>
8703
8704 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8705
ebea7626
HD
87062020-03-27 Hannes Domani <ssbssa@yahoo.de>
8707
8708 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8709
a879b4d5
JB
87102020-03-26 John Baldwin <jhb@FreeBSD.org>
8711
8712 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8713
0826b30a
TT
87142020-03-26 Tom Tromey <tom@tromey.com>
8715
8716 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8717 (mark_common_block_symbol_computed, read_tag_string_type)
8718 (attr_to_dynamic_prop, read_subrange_type): Update.
8719 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8720 to be methods on struct attribute.
8721 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8722 (read_call_site_scope, partial_die_info::read)
8723 (partial_die_info::read, lookup_die_type, follow_die_ref):
8724 Update.
8725 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8726 from dwarf2_get_ref_die_offset.
8727 (attribute::constant_value): New method, from
8728 dwarf2_get_attr_constant_value.
8729 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8730 Declare method.
8731 <constant_value>: New method.
8732
2b2558bf
TT
87332020-03-26 Tom Tromey <tom@tromey.com>
8734
8735 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8736 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8737 (dwarf_type_encoding_name): Move to stringify.c.
8738 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8739 * dwarf2/stringify.c: New file.
8740 * dwarf2/stringify.h: New file.
8741
eeb64781
TT
87422020-03-26 Tom Tromey <tom@tromey.com>
8743
8744 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8745 Rewrite.
8746
a39fdb41
TT
87472020-03-26 Tom Tromey <tom@tromey.com>
8748
8749 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8750 methods.
8751 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8752 (lookup_ranges_base): Likewise.
8753 (read_cutu_die_from_dwo, read_full_die_1): Update.
8754
436c571c
TT
87552020-03-26 Tom Tromey <tom@tromey.com>
8756
8757 * dwarf2/read.c (read_import_statement, read_file_scope)
8758 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8759 (read_lexical_block_scope, read_call_site_scope)
8760 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8761 (handle_struct_member_die, process_structure_scope)
8762 (update_enumeration_type_from_children)
8763 (process_enumeration_scope, read_array_type, read_common_block)
8764 (read_namespace, read_module, read_subroutine_type): Update.
8765 (sibling_die): Remove.
8766
052c8bb8
TT
87672020-03-26 Tom Tromey <tom@tromey.com>
8768
8769 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8770 (build_type_psymtabs_reader, read_structure_type)
8771 (read_enumeration_type, read_full_die_1): Update.
8772 (dwarf2_attr_no_follow): Move to die.h.
8773 * dwarf2/die.h (struct die_info) <attr>: New method.
8774
2b24b6e4
TT
87752020-03-26 Tom Tromey <tom@tromey.com>
8776
8777 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8778 <base_address>: Now an optional.
8779 (dwarf2_find_base_address, dwarf2_rnglists_process)
8780 (dwarf2_ranges_process, fill_in_loclist_baton)
8781 (dwarf2_symbol_mark_computed): Update.
8782
c2d50fd0
TT
87832020-03-26 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/read.c (struct die_info): Move to die.h.
8786 * dwarf2/die.h: New file.
8787
0df7ad3a
TT
87882020-03-26 Tom Tromey <tom@tromey.com>
8789
8790 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8791 * dwarf2/read.c
8792 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8793 Move to line-header.c.
8794 (read_checked_initial_length_and_offset, read_formatted_entries):
8795 Likewise.
8796 (dwarf_decode_line_header): Split into two.
8797 * dwarf2/line-header.c
8798 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8799 Move from read.c.
8800 (read_checked_initial_length_and_offset, read_formatted_entries):
8801 Likewise.
8802 (dwarf_decode_line_header): New function, split from read.c.
8803
86c0bb4c
TT
88042020-03-26 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8807 Declare method.
8808 * dwarf2/read.c (read_attribute_value): Update.
8809 (dwarf2_per_objfile::read_line_string): Rename from
8810 read_indirect_line_string.
8811 (read_formatted_entries): Update.
8812
2ef46c2f
TT
88132020-03-26 Tom Tromey <tom@tromey.com>
8814
8815 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8816 variable.
8817
4f9c1eda
TT
88182020-03-26 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8821 const.
8822 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8823 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8824 parameter const.
8825
5a0e026f
TT
88262020-03-26 Tom Tromey <tom@tromey.com>
8827
8828 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8829 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8830 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8831 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8832
8844c11b
TT
88332020-03-26 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8836 file_names_size, file_full_name, file_file_name>: Use const.
8837 <file_name_at, file_names>: Add const overload.
8838 * dwarf2/line-header.c (line_header::file_file_name)
8839 (line_header::file_full_name): Update.
8840
c90ec28a
TT
88412020-03-26 Tom Tromey <tom@tromey.com>
8842
8843 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8844 (macro_start_file, consume_improper_spaces)
8845 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8846 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8847 (dwarf_decode_macros): Move to macro.c.
8848 * dwarf2/macro.c: New file.
8849 * dwarf2/macro.h: New file.
8850 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8851
4f44ae6c
TT
88522020-03-26 Tom Tromey <tom@tromey.com>
8853
8854 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8855 method.
8856 * dwarf2/section.c: New method. From
8857 read_indirect_string_at_offset_from.
8858 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8859 (read_indirect_string_at_offset_from): Move to section.c.
8860 (read_indirect_string_at_offset): Rewrite.
8861 (read_indirect_line_string_at_offset): Remove.
8862 (read_indirect_string, read_indirect_line_string)
8863 (dwarf_decode_macro_bytes): Update.
8864
a0194fa8
TT
88652020-03-26 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/section.h (struct dwarf2_section_info)
8868 <overload_complaint>: Declare.
8869 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8870 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8871 Rename from dwarf2_section_buffer_overflow_complaint.
8872 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8873 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8874
3d27bbdb
TT
88752020-03-26 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8878 Declare.
8879 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8880 Move from read.c.
8881 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8882 to section.c.
8883
9eac9650
TT
88842020-03-26 Tom Tromey <tom@tromey.com>
8885
8886 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8887
bf80d710
TT
88882020-03-26 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8891 "builder".
8892 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8893 parameter.
8894 (dwarf_decode_macros): Update.
8895
0314b390
TT
88962020-03-26 Tom Tromey <tom@tromey.com>
8897
8898 * dwarf2/read.c (read_attribute_value): Update.
8899 (read_indirect_string_from_dwz): Move to dwz.c; change into
8900 method.
8901 (dwarf_decode_macro_bytes): Update.
8902 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8903 * dwarf2/dwz.c: New file.
8904 * Makefile.in (COMMON_SFILES): Add dwz.c.
8905
9fda78b6
TT
89062020-03-26 Tom Tromey <tom@tromey.com>
8907
8908 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8909 * dwarf2/read.c: Add include.
8910 * dwarf2/index-write.c: Add include.
8911 * dwarf2/index-cache.c: Add include.
8912 * dwarf2/dwz.h: New file.
8913
33aa3c10
TT
89142020-03-25 Tom Tromey <tom@tromey.com>
8915
8916 * compile/compile-object-load.c (get_out_value_type): Mention
8917 correct symbol name in error message.
8918
d503b685
HD
89192020-03-25 Hannes Domani <ssbssa@yahoo.de>
8920
8921 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8922
7b1eff95
TV
89232020-03-25 Tom de Vries <tdevries@suse.de>
8924
8925 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8926 * symmisc.c (dump_symtab_1): Print user and includes fields.
8927 (maintenance_info_symtabs): Same.
8928
dd895392
AB
89292020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8930
8931 PR gdb/25534
8932 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8933 (riscv_regcache_cooked_write): New function.
8934 (riscv_push_dummy_call): Use new function.
8935 (riscv_return_value): Likewise.
8936
5ab2fbf1
SM
89372020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8938
8939 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8940 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8941 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8942 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8943 * infrun.c (follow_fork): Likewise.
8944 (follow_fork_inferior): Likewise.
8945 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8946 * linux-nat.h (class linux_nat_target): Likewise.
8947 * remote.c (class remote_target) <follow_fork>: Likewise.
8948 (remote_target::follow_fork): Likewise.
8949 * target-delegates.c: Re-generate.
8950 * target.c (default_follow_fork): Likewise.
8951 (target_follow_fork): Likewise.
8952 * target.h (struct target_ops) <follow_fork>: Likewise.
8953 (target_follow_fork): Likewise.
8954
a64fafb5
TV
89552020-03-24 Tom de Vries <tdevries@suse.de>
8956
8957 * psymtab.c (maintenance_info_psymtabs): Print user field.
8958
fe26d3a3
TT
89592020-03-20 Tom Tromey <tromey@adacore.com>
8960
8961 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8962 const.
8963 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8964 const.
8965
c884cc46
SM
89662020-03-20 Simon Marchi <simon.marchi@efficios.com>
8967
8968 * ptrace.m4: Don't check for ptrace declaration.
8969 * config.in: Re-generate.
8970 * configure: Re-generate.
8971 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8972 not defined.
8973
1ff700c2
KR
89742020-03-20 Kamil Rytarowski <n54@gmx.com>
8975
8976 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8977 `PTRACE_TYPE_RET'.
8978 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8979 * sparc-nat.c (gdb_ptrace): Likewise.
8980 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8981
f7d4f0b1
TT
89822020-03-20 Tom Tromey <tromey@adacore.com>
8983
8984 * c-exp.y (lex_one_token): Fix assert.
8985
f67210ff
TT
89862020-03-20 Tom Tromey <tromey@adacore.com>
8987
8988 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8989 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8990 strncpy call.
8991
1773be9e
TT
89922020-03-20 Tom Tromey <tromey@adacore.com>
8993
8994 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8995
70304be9
TT
89962020-03-20 Tom Tromey <tromey@adacore.com>
8997
8998 * ada-valprint.c (print_variant_part): Remove parameters; switch
8999 to value-based API.
9000 (print_field_values): Likewise.
9001 (ada_val_print_struct_union): Likewise.
9002 (ada_value_print_1): Update.
9003
9faa006d
KR
90042020-03-20 Kamil Rytarowski <n54@gmx.com>
9005
9006 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9007 nbsd_nat_target instead of inf_ptrace_target.
9008 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9009 nbsd_nat_target.
9010
4a90f062
KR
90112020-03-20 Kamil Rytarowski <n54@gmx.com>
9012
9013 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9014 it to the ptrace call.
9015 * (store_registers): Likewise.
9016
90172020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9018
9019 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9020 it to the ptrace call.
9021 * (store_registers): Likewise.
9022
2d07da27
LM
90232020-03-19 Luis Machado <luis.machado@linaro.org>
9024
9025 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9026 valid, fetch vg value from ptrace.
9027
f09db380
KR
90282020-03-19 Kamil Rytarowski <n54@gmx.com>
9029 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9030 * inf-ptrace.c: Likewise.
9031 * (gdb_ptrace): Add.
9032 * (inf_ptrace_target::resume): Update.
9033 * (inf_ptrace_target::xfer_partial): Likewise.
9034 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9035 * (inf_ptrace_peek_poke): Update.
9036
fcc7376e
KR
90372020-03-19 Kamil Rytarowski <n54@gmx.com>
9038
9039 * x86-bsd-nat.c (gdb_ptrace): New.
9040 * (x86bsd_dr_set): Add new argument `ptid'.
9041 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9042 x86bsd_dr_set_addr): Update.
9043
cada5fc9
AB
90442020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9045
9046 * remote.c (remote_target::process_stop_reply): Handle events for
9047 all threads differently.
9048
19a2740f
AB
90492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9050
9051 * completer.c (completion_tracker::remove_completion): Define new
9052 function.
9053 * completer.h (completion_tracker::remove_completion): Declare new
9054 function.
9055 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9056 when adding a C++ function symbol.
9057
724fd9ba
AB
90582020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9059
9060 * completer.c (completion_tracker::completion_hash_entry): Define
9061 new class.
9062 (advance_to_filename_complete_word_point): Call
9063 recompute_lowest_common_denominator.
9064 (completion_tracker::completion_tracker): Call discard_completions
9065 to setup the hash table.
9066 (completion_tracker::discard_completions): Allow for being called
9067 from the constructor, pass new equal function, and element deleter
9068 when constructing the hash table. Initialise new class member
9069 variables.
9070 (completion_tracker::maybe_add_completion): Remove use of
9071 m_entries_vec, and store more information into m_entries_hash.
9072 (completion_tracker::recompute_lcd_visitor): New function, most
9073 content taken from...
9074 (completion_tracker::recompute_lowest_common_denominator):
9075 ...here, this now just visits each item in the hash calling the
9076 above visitor.
9077 (completion_tracker::build_completion_result): Remove use of
9078 m_entries_vec, call recompute_lowest_common_denominator.
9079 * completer.h (completion_tracker::have_completions): Remove use
9080 of m_entries_vec.
9081 (completion_tracker::completion_hash_entry): Declare new class.
9082 (completion_tracker::recompute_lowest_common_denominator): Change
9083 function signature.
9084 (completion_tracker::recompute_lcd_visitor): Declare new function.
9085 (completion_tracker::m_entries_vec): Delete.
9086 (completion_tracker::m_entries_hash): Initialize to NULL.
9087 (completion_tracker::m_lowest_common_denominator_valid): New
9088 member variable.
9089 (completion_tracker::m_lowest_common_denominator_max_length): New
9090 member variable.
9091
5a82b8a1
KR
90922020-03-17 Kamil Rytarowski <n54@gmx.com>
9093
9094 * regformats/regdef.h: Put reg in gdb namespace.
9095
fb516a69
KR
90962020-03-17 Kamil Rytarowski <n54@gmx.com>
9097
9098 * i386-bsd-nat.c (gdb_ptrace): New.
9099 * (i386bsd_fetch_inferior_registers,
9100 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9101 * (i386bsd_fetch_inferior_registers,
9102 i386bsd_store_inferior_registers) Use gdb_ptrace.
9103
1c0aa1fb
KR
91042020-03-17 Kamil Rytarowski <n54@gmx.com>
9105
9106 * amd64-bsd-nat.c (gdb_ptrace): New.
9107 * (amd64bsd_fetch_inferior_registers,
9108 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9109 * (amd64bsd_fetch_inferior_registers,
9110 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9111
5ccd2fb7
KR
91122020-03-17 Kamil Rytarowski <n54@gmx.com>
9113
9114 * user-regs.c (user_reg::read): Rename to...
9115 (user_reg::xread): ...this.
9116 * (append_user_reg): Rename argument `read' to `xread'.
9117 * (user_reg_add_builtin): Likewise.
9118 * (user_reg_add): Likewise.
9119 * (value_of_user_reg): Likewise.
9120
2108a63a
KR
91212020-03-17 Kamil Rytarowski <n54@gmx.com>
9122
9123 * sparc-nat.c (gdb_ptrace): New.
9124 * sparc-nat.c (sparc_fetch_inferior_registers)
9125 (sparc_store_inferior_registers) Remove obsolete comment.
9126 * sparc-nat.c (sparc_fetch_inferior_registers)
9127 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9128 * sparc-nat.c (sparc_fetch_inferior_registers)
9129 (sparc_store_inferior_registers) Use gdb_ptrace.
9130
a225c9a8
KR
91312020-03-17 Kamil Rytarowski <n54@gmx.com>
9132
9133 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9134 it to the ptrace call.
9135 * sh-nbsd-nat.c (store_registers): Likewise.
9136
98097623
KR
91372020-03-17 Kamil Rytarowski <n54@gmx.com>
9138
9139 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9140 nbsd_nat_target instead of inf_ptrace_target.
9141 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9142 nbsd_nat_target.
9143
9e38d619
KR
91442020-03-17 Kamil Rytarowski <n54@gmx.com>
9145
9146 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9147
a2ecbe9f
KR
91482020-03-17 Kamil Rytarowski <n54@gmx.com>
9149
9150 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9151 <sys/sysctl.h>.
9152 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9153
58990295
TV
91542020-03-17 Tom de Vries <tdevries@suse.de>
9155
9156 PR gdb/23710
9157 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9158 fields.
9159 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9160 fields.
9161 (process_imported_unit_die): Skip import of c++ CUs.
9162
771dd3a8
TT
91632020-03-16 Tom Tromey <tom@tromey.com>
9164
9165 * p-valprint.c (pascal_object_print_value): Initialize
9166 base_value.
9167
817a7585
AK
91682020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9169 Shahab Vahedi <shahab@synopsys.com>
9170
9171 * Makefile.in: Add arch/arc.o
9172 * configure.tgt: Likewise.
9173 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9174 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9175 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9176 * arc-tdep.h (arc_read_description): Add proto type.
9177 * arch/arc.c: New file.
9178 * arch/arc.h: Likewise.
9179 * features/Makefile: Replace old target descriptions with new.
9180 * features/arc-arcompact.c: Remove.
9181 * features/arc-arcompact.xml: Likewise.
9182 * features/arc-v2.c: Likewise
9183 * features/arc-v2.xml: Likewise
9184 * features/arc/aux-arcompact.xml: New file.
9185 * features/arc/aux-v2.xml: Likewise.
9186 * features/arc/core-arcompact.xml: Likewise.
9187 * features/arc/core-v2.xml: Likewise.
9188 * features/arc/aux-arcompact.c: Generate.
9189 * features/arc/aux-v2.c: Likewise.
9190 * features/arc/core-arcompact.c: Likewise.
9191 * features/arc/core-v2.c: Likewise.
9192 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9193
67430cd0
TT
91942020-03-16 Tom Tromey <tromey@adacore.com>
9195
9196 PR gdb/25663:
9197 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9198 putting value into bcache.
9199
30efb6c7
SM
92002020-03-16 Simon Marchi <simon.marchi@efficios.com>
9201
9202 PR gdb/21500
9203 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9204 to...
9205 (amd64_windows_init_abi_common): ... this. Don't set size of
9206 long type.
9207 (amd64_windows_init_abi): New function.
9208 (amd64_cygwin_init_abi): New function.
9209 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9210 the Cygwin OS ABI.
9211 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9212 comment.
9213
8db52437
SM
92142020-03-16 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9217 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9218 (pe_import_directory_entry): New struct type.
9219 (is_linked_with_cygwin_dll): New function.
9220 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9221 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9222 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9223
5982a56a
SM
92242020-03-16 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9227 i386_cygwin_core_osabi_sniffer.
9228
7a1998df
SM
92292020-03-16 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * i386-cygwin-tdep.c: Rename to...
9232 * i386-windows-tdep.c: ... this.
9233 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9234 i386-windows-tdep.c.
9235 * configure.tgt: Likewise.
9236
053205cc
SM
92372020-03-16 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9240 * osabi.c (gdb_osabi_names): Add "Windows".
9241 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9242 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9243 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9244 i386_cygwin_osabi_sniffer.
9245 (_initialize_i386_cygwin_tdep): Register OS ABI
9246 GDB_OSABI_WINDOWS for i386.
9247 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9248 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9249 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9250 for x86-64.
9251 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9252 when the target matches '*-*-mingw*'.
9253
fe4b2ee6
SM
92542020-03-16 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * defs.h (enum gdb_osabi): Move to...
9257 * osabi.h (enum gdb_osabi): ... here.
9258 * gdbarch.sh: Include osabi.h in gdbarch.h.
9259 * gdbarch.h: Re-generate.
9260
cb9b645d
SM
92612020-03-16 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9264 function.
9265 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9266
3293bbaf
TT
92672020-03-14 Tom Tromey <tom@tromey.com>
9268
9269 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9270 for C++.
9271 (c_type_print_modifier): Likewise. Add "language" parameter.
9272 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9273 (c_type_print_base_1): Update.
9274 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9275 constants.
9276 * type-stack.c (type_stack::insert): Handle tp_atomic and
9277 tp_restrict.
9278 (type_stack::follow_type_instance_flags): Likewise.
9279 (type_stack::follow_types): Likewise. Merge type-following code.
9280 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9281 (space_identifier, cv_with_space_id)
9282 (const_or_volatile_or_space_identifier_noopt)
9283 (const_or_volatile_or_space_identifier): Remove.
9284 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9285 rules.
9286 (ptr_operator, typebase): Update.
9287 (enum token_flag) <FLAG_C>: New constant.
9288 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9289 "_Atomic".
9290 (lex_one_token): Handle FLAG_C.
9291
154151a6
KR
92922020-03-14 Kamil Rytarowski <n54@gmx.com>
9293
9294 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9295 it to the ptrace call.
9296 * m68k-bsd-nat.c (store_registers): Likewise.
9297
bc107784
KR
92982020-03-14 Kamil Rytarowski <n54@gmx.com>
9299
9300 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9301 gdb_byte *.
9302 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9303 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9304 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9305
01a80117
KR
93062020-03-14 Kamil Rytarowski <n54@gmx.com>
9307
9308 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9309 nbsd_nat_target instead of inf_ptrace_target.
9310 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9311 nbsd_nat_target.
9312
f90280ca
KR
93132020-03-14 Kamil Rytarowski <n54@gmx.com>
9314
9315 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9316 register_t.
9317
6def66f1
KR
93182020-03-14 Kamil Rytarowski <n54@gmx.com>
9319
9320 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9321 it to the ptrace call.
9322 * alpha-bsd-nat.c (store_registers): Likewise.
9323
66eaca97
KR
93242020-03-14 Kamil Rytarowski <n54@gmx.com>
9325
9326 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9327 includes.
9328 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9329 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9330 fill_fpregset): Likewise.
9331
4fed520b
KR
93322020-03-14 Kamil Rytarowski <n54@gmx.com>
9333
9334 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9335 nbsd_nat_target instead of inf_ptrace_target.
9336 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9337 nbsd_nat_target.
9338
2190cf06
KR
93392020-03-14 Kamil Rytarowski <n54@gmx.com>
9340
9341 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9342 register_t.
9343
75c56d3d
KR
93442020-03-14 Kamil Rytarowski <n54@gmx.com>
9345
9346 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9347 it to the ptrace call.
9348 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9349 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9350 * arm-nbsd-nat.c (store_register): Likewise.
9351 * arm-nbsd-nat.c (store_regs): Likewise.
9352 * arm-nbsd-nat.c (store_fp_register): Likewise.
9353 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9354
6018d381
KR
93552020-03-14 Kamil Rytarowski <n54@gmx.com>
9356
9357 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9358 nbsd_nat_target instead of inf_ptrace_target.
9359 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9360 nbsd_nat_target.
9361
013f99f0
KR
93622020-03-14 Kamil Rytarowski <n54@gmx.com>
9363
9364 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9365 it to the ptrace call.
9366 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9367
12753073
KR
93682020-03-14 Kamil Rytarowski <n54@gmx.com>
9369
6227b330
KR
9370 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9371 it to the ptrace call.
9372 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9373
93742020-03-14 Kamil Rytarowski <n54@gmx.com>
9375
9376 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9377 gdb_byte *.
12753073
KR
9378 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9379
d5be5fa4
KR
93802020-03-14 Kamil Rytarowski <n54@gmx.com>
9381
9382 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9383 instead of inf_ptrace_target.
9384 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9385 nbsd_nat_target.
9386
8110f842
KR
93872020-03-14 Kamil Rytarowski <n54@gmx.com>
9388
9389 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9390 register_t.
9391
52feded7
KR
93922020-03-14 Kamil Rytarowski <n54@gmx.com>
9393
9394 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9395 register_t.
9396
25567eee
KR
93972020-03-14 Kamil Rytarowski <n54@gmx.com>
9398
9399 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9400 register_t.
9401
426a9c18
TT
94022020-03-13 Tom Tromey <tom@tromey.com>
9403
9404 * value.h (val_print): Don't declare.
9405 * valprint.h (val_print_array_elements)
9406 (val_print_scalar_formatted, generic_val_print): Don't declare.
9407 * valprint.c (generic_val_print_array): Take a struct value.
9408 (generic_val_print_ptr, generic_val_print_memberptr)
9409 (generic_val_print_bool, generic_val_print_int)
9410 (generic_val_print_char, generic_val_print_complex)
9411 (generic_val_print): Remove.
9412 (generic_value_print): Update.
9413 (do_val_print): Remove unused parameters. Don't call
9414 la_val_print.
9415 (val_print): Remove.
9416 (common_val_print): Update. Don't call value_check_printable.
9417 (val_print_scalar_formatted, val_print_array_elements): Remove.
9418 * rust-lang.c (rust_val_print): Remove.
9419 (rust_language_defn): Update.
9420 * p-valprint.c (pascal_val_print): Remove.
9421 (pascal_value_print_inner): Update.
9422 (pascal_object_print_val_fields, pascal_object_print_val):
9423 Remove.
9424 (pascal_object_print_static_field): Update.
9425 * p-lang.h (pascal_val_print): Don't declare.
9426 * p-lang.c (pascal_language_defn): Update.
9427 * opencl-lang.c (opencl_language_defn): Update.
9428 * objc-lang.c (objc_language_defn): Update.
9429 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9430 * m2-lang.h (m2_val_print): Don't declare.
9431 * m2-lang.c (m2_language_defn): Update.
9432 * language.h (struct language_defn) <la_val_print>: Remove.
9433 * language.c (unk_lang_value_print_inner): Rename. Change
9434 argument types.
9435 (unknown_language_defn, auto_language_defn): Update.
9436 * go-valprint.c (go_val_print): Remove.
9437 * go-lang.h (go_val_print): Don't declare.
9438 * go-lang.c (go_language_defn): Update.
9439 * f-valprint.c (f_val_print): Remove.
9440 * f-lang.h (f_value_print): Don't declare.
9441 * f-lang.c (f_language_defn): Update.
9442 * d-valprint.c (d_val_print): Remove.
9443 * d-lang.h (d_value_print): Don't declare.
9444 * d-lang.c (d_language_defn): Update.
9445 * cp-valprint.c (cp_print_value_fields)
9446 (cp_print_value_fields_rtti, cp_print_value): Remove.
9447 (cp_print_static_field): Update.
9448 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9449 (c_val_print_struct, c_val_print_union, c_val_print_int)
9450 (c_val_print_memberptr, c_val_print): Remove.
9451 * c-lang.h (c_val_print_array, cp_print_value_fields)
9452 (cp_print_value_fields_rtti): Don't declare.
9453 * c-lang.c (c_language_defn, cplus_language_defn)
9454 (asm_language_defn, minimal_language_defn): Update.
9455 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9456 (ada_val_print_enum): Take a struct value.
9457 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9458 (ada_val_print): Remove.
9459 (ada_value_print_1): Update.
9460 (printable_val_type): Remove.
9461 * ada-lang.h (ada_val_print): Don't declare.
9462 * ada-lang.c (ada_language_defn): Update.
9463
42331a1e
TT
94642020-03-13 Tom Tromey <tom@tromey.com>
9465
9466 * valprint.c (do_val_print): Update.
9467 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9468 a struct value.
9469 (value_to_value_object_no_release): Declare.
9470 * python/py-value.c (value_to_value_object_no_release): New
9471 function.
9472 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9473 struct value.
9474 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9475 function.
9476 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9477 a struct value.
9478 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9479 Declare.
9480 (gdbscm_apply_val_pretty_printer): Take a struct value.
9481 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9482 value.
9483 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9484 value.
9485 * extension-priv.h (struct extension_language_ops)
9486 <apply_val_pretty_printer>: Take a struct value.
9487 * cp-valprint.c (cp_print_value): Create a struct value.
9488 (cp_print_value): Update.
9489
3a916a97
TT
94902020-03-13 Tom Tromey <tom@tromey.com>
9491
9492 * ada-valprint.c (print_field_values): Call common_val_print.
9493
b59eac37
TT
94942020-03-13 Tom Tromey <tom@tromey.com>
9495
9496 * ada-valprint.c (val_print_packed_array_elements): Remove
9497 bitoffset and val parameters. Call common_val_print.
9498 (ada_val_print_string): Remove offset, address, and original_value
9499 parameters.
9500 (ada_val_print_array): Update.
9501 (ada_value_print_array): New function.
9502 (ada_value_print_1): Call it.
9503
03371129
TT
95042020-03-13 Tom Tromey <tom@tromey.com>
9505
9506 * ada-valprint.c (ada_value_print): Use common_val_print.
9507
2e088f8b
TT
95082020-03-13 Tom Tromey <tom@tromey.com>
9509
9510 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9511
39ef85a8
TT
95122020-03-13 Tom Tromey <tom@tromey.com>
9513
9514 * ada-valprint.c (ada_value_print_num): New function.
9515 (ada_value_print_1): Use it.
9516
b9fa6e07
TT
95172020-03-13 Tom Tromey <tom@tromey.com>
9518
9519 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9520
416595d6
TT
95212020-03-13 Tom Tromey <tom@tromey.com>
9522
9523 * ada-valprint.c (ada_value_print_ptr): New function.
9524 (ada_value_print_1): Use it.
9525
5b5e15ec
TT
95262020-03-13 Tom Tromey <tom@tromey.com>
9527
9528 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9529 call common_val_print.
9530 (ada_val_print_1): Update.
9531 (ada_value_print_1): New function.
9532 (ada_value_print_inner): Rewrite.
9533
fbf54e75
TT
95342020-03-13 Tom Tromey <tom@tromey.com>
9535
9536 * cp-valprint.c (cp_print_value_fields): Update.
9537 (cp_print_value): New function.
9538
64b653ca
TT
95392020-03-13 Tom Tromey <tom@tromey.com>
9540
9541 * m2-valprint.c (m2_value_print_inner): Use
9542 cp_print_value_fields.
9543 * cp-valprint.c (cp_print_value_fields): New function.
9544 * c-valprint.c (c_value_print_struct): New function.
9545 (c_value_print_inner): Use c_value_print_struct.
9546 * c-lang.h (cp_print_value_fields): Declare.
9547
6999f067
TT
95482020-03-13 Tom Tromey <tom@tromey.com>
9549
9550 * c-valprint.c (c_value_print_array): New function.
9551 (c_value_print_inner): Use it.
9552
ce80b8bd
TT
95532020-03-13 Tom Tromey <tom@tromey.com>
9554
9555 * c-valprint.c (c_value_print_memberptr): New function.
9556 (c_value_print_inner): Use it.
9557
2faac269
TT
95582020-03-13 Tom Tromey <tom@tromey.com>
9559
9560 * c-valprint.c (c_value_print_int): New function.
9561 (c_value_print_inner): Use it.
9562
da3e2c29
TT
95632020-03-13 Tom Tromey <tom@tromey.com>
9564
9565 * c-valprint.c (c_value_print_ptr): New function.
9566 (c_value_print_inner): Use it.
9567
50836231
TT
95682020-03-13 Tom Tromey <tom@tromey.com>
9569
9570 * c-valprint.c (c_value_print_inner): Rewrite.
9571
4f412b6e
TT
95722020-03-13 Tom Tromey <tom@tromey.com>
9573
9574 * valprint.c (generic_value_print_complex): New function.
9575 (generic_value_print): Use it.
9576
f5354008
TT
95772020-03-13 Tom Tromey <tom@tromey.com>
9578
9579 * valprint.c (generic_val_print_float): Don't call
9580 val_print_scalar_formatted.
9581 (generic_val_print, generic_value_print): Update.
9582
3eec3b05
TT
95832020-03-13 Tom Tromey <tom@tromey.com>
9584
9585 * valprint.c (generic_value_print_char): New function
9586 (generic_value_print): Use it.
9587
fdddfccb
TT
95882020-03-13 Tom Tromey <tom@tromey.com>
9589
9590 * valprint.c (generic_value_print_int): New function.
9591 (generic_value_print): Use it.
9592
6dde7521
TT
95932020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * valprint.c (generic_value_print_bool): New function.
9596 (generic_value_print): Use it.
9597
4112d2e6
TT
95982020-03-13 Tom Tromey <tom@tromey.com>
9599
9600 * valprint.c (generic_val_print_func): Simplify.
9601 (generic_val_print, generic_value_print): Update.
9602
65786af6
TT
96032020-03-13 Tom Tromey <tom@tromey.com>
9604
9605 * valprint.c (generic_val_print_flags): Remove.
9606 (generic_val_print, generic_value_print): Update.
9607 (val_print_type_code_flags): Add original_value parameter.
9608
40f3ce18
TT
96092020-03-13 Tom Tromey <tom@tromey.com>
9610
9611 * valprint.c (generic_val_print): Update.
9612 (generic_value_print): Update.
9613 * valprint.c (generic_val_print_enum): Don't call
9614 val_print_scalar_formatted.
9615
2a5b130b
TT
96162020-03-13 Tom Tromey <tom@tromey.com>
9617
9618 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9619 * valprint.c (generic_value_print_ptr): New function.
9620
abc66ce9
TT
96212020-03-13 Tom Tromey <tom@tromey.com>
9622
9623 * valprint.c (generic_value_print): Rewrite.
9624
07a32858
TT
96252020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * p-valprint.c (pascal_object_print_value_fields)
9628 (pascal_object_print_value): New functions.
9629
64d64d3a
TT
96302020-03-13 Tom Tromey <tom@tromey.com>
9631
9632 * p-valprint.c (pascal_value_print_inner): Rewrite.
9633
6a95a1f5
TT
96342020-03-13 Tom Tromey <tom@tromey.com>
9635
9636 * f-valprint.c (f_value_print_innner): Rewrite.
9637
59fcdac6
TT
96382020-03-13 Tom Tromey <tom@tromey.com>
9639
9640 * m2-valprint.c (m2_print_unbounded_array): New overload.
9641 (m2_print_unbounded_array): Update.
9642 (m2_print_array_contents): Take a struct value.
9643 (m2_value_print_inner): Rewrite.
9644
d133c3e1
TT
96452020-03-13 Tom Tromey <tom@tromey.com>
9646
9647 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9648 (d_value_print_inner): New function.
9649 * d-lang.h (d_value_print_inner): Declare.
9650 * d-lang.c (d_language_defn): Use d_value_print_inner.
9651
23b0f06b
TT
96522020-03-13 Tom Tromey <tom@tromey.com>
9653
9654 * go-valprint.c (go_value_print_inner): New function.
9655 * go-lang.h (go_value_print_inner): Declare.
9656 * go-lang.c (go_language_defn): Use go_value_print_inner.
9657
5f56f7cb
TT
96582020-03-13 Tom Tromey <tom@tromey.com>
9659
9660 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9661 API.
9662 (rust_val_print): Rewrite.
9663 (rust_value_print_inner): New function, from rust_val_print.
9664 (rust_language_defn): Use rust_value_print_inner.
9665
26792ee0
TT
96662020-03-13 Tom Tromey <tom@tromey.com>
9667
9668 * ada-valprint.c (ada_value_print_inner): New function.
9669 * ada-lang.h (ada_value_print_inner): Declare.
9670 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9671
24051bbe
TT
96722020-03-13 Tom Tromey <tom@tromey.com>
9673
9674 * f-valprint.c (f_value_print_innner): New function.
9675 * f-lang.h (f_value_print_innner): Declare.
9676 * f-lang.c (f_language_defn): Use f_value_print_innner.
9677
c0941be6
TT
96782020-03-13 Tom Tromey <tom@tromey.com>
9679
9680 * p-valprint.c (pascal_value_print_inner): New function.
9681 * p-lang.h (pascal_value_print_inner): Declare.
9682 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9683
62c4663d
TT
96842020-03-13 Tom Tromey <tom@tromey.com>
9685
9686 * m2-valprint.c (m2_value_print_inner): New function.
9687 * m2-lang.h (m2_value_print_inner): Declare.
9688 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9689
62182190
TT
96902020-03-13 Tom Tromey <tom@tromey.com>
9691
9692 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9693 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9694 * c-valprint.c (c_value_print_inner): New function.
9695 * c-lang.h (c_value_print_inner): Declare.
9696 * c-lang.c (c_language_defn, cplus_language_defn)
9697 (asm_language_defn, minimal_language_defn): Use
9698 c_value_print_inner.
9699
1e592a8a
TT
97002020-03-13 Tom Tromey <tom@tromey.com>
9701
9702 * p-valprint.c (pascal_object_print_value_fields): Now static.
9703 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9704
7fe471e9
TT
97052020-03-13 Tom Tromey <tom@tromey.com>
9706
9707 * c-valprint.c (c_val_print_array): Simplify.
9708
d121c6ce
TT
97092020-03-13 Tom Tromey <tom@tromey.com>
9710
9711 * valprint.c (value_print_array_elements): New function.
9712 * valprint.h (value_print_array_elements): Declare.
9713
4dba70ee
TT
97142020-03-13 Tom Tromey <tom@tromey.com>
9715
9716 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9717 * mips-tdep.c (mips_print_register): Use
9718 value_print_scalar_formatted.
9719
4f9ae810
TT
97202020-03-13 Tom Tromey <tom@tromey.com>
9721
9722 * valprint.h (value_print_scalar_formatted): Declare.
9723 * valprint.c (value_print_scalar_formatted): New function.
9724
156bfec9
TT
97252020-03-13 Tom Tromey <tom@tromey.com>
9726
9727 * valprint.h (generic_value_print): Declare.
9728 * valprint.c (generic_value_print): New function.
9729
2b4e573d
TT
97302020-03-13 Tom Tromey <tom@tromey.com>
9731
9732 * valprint.c (do_val_print): Call la_value_print_inner, if
9733 available.
9734 * rust-lang.c (rust_language_defn): Update.
9735 * p-lang.c (pascal_language_defn): Update.
9736 * opencl-lang.c (opencl_language_defn): Update.
9737 * objc-lang.c (objc_language_defn): Update.
9738 * m2-lang.c (m2_language_defn): Update.
9739 * language.h (struct language_defn) <la_value_print_inner>: New
9740 member.
9741 * language.c (unknown_language_defn, auto_language_defn): Update.
9742 * go-lang.c (go_language_defn): Update.
9743 * f-lang.c (f_language_defn): Update.
9744 * d-lang.c (d_language_defn): Update.
9745 * c-lang.c (c_language_defn, cplus_language_defn)
9746 (asm_language_defn, minimal_language_defn): Update.
9747 * ada-lang.c (ada_language_defn): Update.
9748
a1f6a07c
TT
97492020-03-13 Tom Tromey <tom@tromey.com>
9750
9751 * c-valprint.c (c_value_print): Use common_val_print.
9752
410cf315
TT
97532020-03-13 Tom Tromey <tom@tromey.com>
9754
9755 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9756
72a45c93
TT
97572020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * f-valprint.c (f77_print_array_1, f_val_print): Use
9760 common_val_print.
9761
040f66bd
TT
97622020-03-13 Tom Tromey <tom@tromey.com>
9763
9764 * riscv-tdep.c (riscv_print_one_register_info): Use
9765 common_val_print.
9766
a6e05a6c
TT
97672020-03-13 Tom Tromey <tom@tromey.com>
9768
9769 * mi/mi-main.c (output_register): Use common_val_print.
9770
3444c526
TT
97712020-03-13 Tom Tromey <tom@tromey.com>
9772
9773 * infcmd.c (default_print_one_register_info): Use
9774 common_val_print.
9775
c2a44efe
TT
97762020-03-13 Tom Tromey <tom@tromey.com>
9777
9778 * valprint.h (common_val_print_checked): Declare.
9779 * valprint.c (common_val_print_checked): New function.
9780 * stack.c (print_frame_arg): Use common_val_print_checked.
9781
b0c26e99
TT
97822020-03-13 Tom Tromey <tom@tromey.com>
9783
9784 * valprint.c (do_val_print): New function, from val_print.
9785 (val_print): Use do_val_print.
9786 (common_val_print): Use do_val_print.
9787
ce3acbe9
TT
97882020-03-13 Tom Tromey <tom@tromey.com>
9789
9790 * valprint.c (value_print): Use scoped_value_mark.
9791
96c7f873
TV
97922020-03-13 Tom de Vries <tdevries@suse.de>
9793
9794 PR symtab/25646
9795 * psymtab.c (partial_symtab::partial_symtab): Don't set
9796 globals_offset and statics_offset. Push element onto
9797 current_global_psymbols and current_static_psymbols stacks.
9798 (concat): New function.
9799 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9800 element from current_global_psymbols and current_static_psymbols
9801 stacks. Concat popped elements to global_psymbols and
9802 static_symbols.
9803 (add_psymbol_to_list): Use current_global_psymbols and
9804 current_static_psymbols stacks.
9805 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9806 current_static_psymbols fields.
9807
6ba0a321
CB
98082020-03-12 Christian Biesinger <cbiesinger@google.com>
9809
9810 * corelow.c (sniff_core_bfd): Remove.
9811 (class core_target) <m_core_vec>: Remove.
9812 (core_target::core_target): Update.
9813 (core_file_fns): Remove.
9814 (deprecated_add_core_fns): Remove.
9815 (default_core_sniffer): Remove.
9816 (sniff_core_bfd): Remove.
9817 (default_check_format): Remove.
9818 (gdb_check_format): Remove.
9819 (core_target_open): Update.
9820 (core_target::get_core_register_section): Update.
9821 (get_core_registers_cb): Update.
9822 (core_target::fetch_registers): Update.
9823 * gdbcore.h (struct core_fns): Remove.
9824 (deprecated_add_core_fns): Remove.
9825 (default_core_sniffer): Remove.
9826 (default_check_format): Remove.
9827
227031b2
TT
98282020-03-12 Tom Tromey <tom@tromey.com>
9829
9830 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9831 CORE_ADDR.
9832 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9833
53807e9f
TT
98342020-03-12 Tom Tromey <tom@tromey.com>
9835
9836 * remote.c (remote_target::download_tracepoint)
9837 (remote_target::enable_tracepoint)
9838 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9839 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9840 sprintf_vma.
9841
64f25102
TT
98422020-03-12 Tom Tromey <tom@tromey.com>
9843
9844 * symfile-mem.c: Update CORE_ADDR size assert.
9845
272cd5a3
SM
98462020-03-12 Simon Marchi <simon.marchi@efficios.com>
9847
9848 * selftest.m4: Move to gdbsupport/.
9849 * acinclude.m4: Update path to selftest.m4.
9850
74cd3f9d
SM
98512020-03-12 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9854 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9855 gdbarch-selfselftests.c and selftest-arch.c.
9856 (SUBDIR_UNITTESTS_OBS): Rename to...
9857 (SELFTESTS_OBS): ... this.
9858 (COMMON_SFILES): Remove disasm-selftests.c and
9859 gdbarch-selftests.c.
9860 * configure.ac: Don't add selftest-arch.{c,o} to
9861 CONFIG_{SRCS,OBS}.
9862 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9863 preprocessor conditions.
9864
db6878ac
SM
98652020-03-12 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * configure.ac: Don't source bfd/development.sh.
9868 * selftest.m4: Modify comment.
9869 * configure: Re-generate.
9870
4d696a5c
SM
98712020-03-12 Simon Marchi <simon.marchi@efficios.com>
9872
9873 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9874 not "true" or "false".
9875 * configure: Re-generate.
9876
8dd8e1c7
CB
98772020-03-12 Christian Biesinger <cbiesinger@google.com>
9878
9879 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9880 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9881 renamed to arm_nbsd_supply_gregset.
9882 (fetch_register): Update to call arm_nbsd_supply_gregset.
9883 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9884 (arm_netbsd_nat_target::fetch_registers): Update.
9885 (fetch_elfcore_registers): Removed.
9886 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9887 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9888 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9889 not require NetBSD system headers.
9890 (arm_nbsd_regset): New struct.
9891 (arm_nbsd_iterate_over_regset_sections): New function.
9892 (arm_netbsd_init_abi_common): Updated to call
9893 set_gdbarch_iterate_over_regset_sections.
9894 * arm-nbsd-tdep.h: New file.
9895
dd69bf7a
KB
98962020-03-11 Kevin Buettner <kevinb@redhat.com>
9897
9898 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9899 recursion.
9900
a0761e34
SM
99012020-03-11 Simon Marchi <simon.marchi@efficios.com>
9902
9903 * configure: Re-generate.
9904
e7a82140
TT
99052020-03-11 Tom Tromey <tromey@adacore.com>
9906
9907 * ada-typeprint.c (print_choices): Fix comment.
9908
dcc050c8
AB
99092020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9910
9911 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9912 previous item in the list, when the list has no items.
9913
1c33af77
TV
99142020-03-11 Tom de Vries <tdevries@suse.de>
9915
9916 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9917 PROP_LOCLIST handling code.
9918
8c95582d
AB
99192020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9920
9921 * buildsym-legacy.c (record_line): Pass extra parameter to
9922 record_line.
9923 * buildsym.c (buildsym_compunit::record_line): Take an extra
9924 parameter, reduce duplication in the line table, and record the
9925 is_stmt flag in the line table.
9926 * buildsym.h (buildsym_compunit::record_line): Add extra
9927 parameter.
9928 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9929 non-statement lines.
9930 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9931 this to the symtab builder.
9932 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9933 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9934 through to dwarf_record_line_1.
9935 * infrun.c (process_event_stop_test): When stepping, don't stop at
9936 a non-statement instruction, and only refresh the step info when
9937 we land in the middle of a line's range. Also add an extra
9938 comment.
9939 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9940 field.
9941 * record-btrace.c (btrace_find_line_range): Only record lines
9942 marked as is-statement.
9943 * stack.c (frame_show_address): Show the frame address if we are
9944 in a non-statement sal.
9945 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9946 (maintenance_print_one_line_table): Print a header for the is_stmt
9947 column, and include is_stmt information in the output.
9948 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9949 preference to non-statements.
9950 (find_pcs_for_symtab_line): Prefer is-statement entries.
9951 (find_line_common): Likewise.
9952 * symtab.h (struct linetable_entry): Add is_stmt field.
9953 (struct symtab_and_line): Likewise.
9954 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9955 arranging the line table.
9956
e4003a34
TV
99572020-03-07 Tom de Vries <tdevries@suse.de>
9958
9959 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9960 DIE.
9961
e8932576
TT
99622020-03-07 Tom Tromey <tom@tromey.com>
9963
9964 * valops.c (value_literal_complex): Remove obsolete comment.
9965 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9966 comment.
9967
29734269
SM
99682020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9969
9970 * infrun.h: Forward-declare thread_info.
9971 (set_step_info): Add thread_info parameter, add doc.
9972 * infrun.c (set_step_info): Add thread_info parameter, move doc
9973 to header.
9974 * infrun.c (process_event_stop_test): Pass thread to
9975 set_step_info call.
9976 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9977 set_step_info.
9978 (prepare_one_step): Add thread_info parameter, pass it to
9979 set_step_frame and prepare_one_step (recursive) call.
9980 (step_1): Pass thread to prepare_one_step call.
9981 (step_command_fsm::should_stop): Pass thread to
9982 prepare_one_step.
9983 (until_next_fsm): Pass thread to set_step_frame call.
9984 (finish_command): Pass thread to set_step_info call.
9985
b7d64b29
HD
99862020-03-06 Hannes Domani <ssbssa@yahoo.de>
9987
9988 * windows-tdep.c (windows_solib_create_inferior_hook):
9989 Check if inferior is running.
9990
09f2921c
TV
99912020-03-06 Tom de Vries <tdevries@suse.de>
9992
9993 * NEWS: Fix "the the".
9994 * ctfread.c: Same.
9995
fd760e79
TV
99962020-03-06 Tom de Vries <tdevries@suse.de>
9997
9998 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9999
20ea4a60
AB
100002020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10001
10002 * .dir-locals.el: Add a comment referencing the other copies of
10003 this file.
10004
0afbabf0
JB
100052020-03-05 John Baldwin <jhb@FreeBSD.org>
10006
10007 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10008 psargs.
10009
842806cb
TBA
100102020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10011
10012 * .gitattributes: New file.
10013
be1e3d3e
TT
100142020-03-04 Tom Tromey <tom@tromey.com>
10015
10016 * symmisc.c (print_symbol_bcache_statistics)
10017 (print_objfile_statistics): Update.
10018 * symfile.c (allocate_symtab): Use intern.
10019 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10020 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10021 macro_cache>: Remove.
10022 <string_cache>: New member.
10023 (struct objfile) <intern>: New methods.
10024 * elfread.c (elf_symtab_read): Use intern.
10025 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10026 (dwarf2_compute_name, dwarf2_physname)
10027 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10028 names.
10029 (guess_partial_die_structure_name): Update.
10030 (partial_die_info::fixup): Intern name.
10031 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10032 name.
10033 (dwarf2_name): Intern name. Update.
10034 * buildsym.c (buildsym_compunit::get_macro_table): Use
10035 string_cache.
10036
4e7625fd
TT
100372020-03-04 Tom Tromey <tom@tromey.com>
10038
10039 * jit.c (bfd_open_from_target_memory): Make "target" const.
10040 * corefile.c (gnutarget): Now const.
10041 * gdbcore.h (gnutarget): Now const.
10042
46f9f931
HD
100432020-03-04 Hannes Domani <ssbssa@yahoo.de>
10044
10045 * NEWS: Mention support for WOW64 processes.
10046 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10047 (amd64_windows_segment_register_p): Remove static.
10048 (_initialize_amd64_windows_nat): Update.
10049 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10050 * i386-windows-nat.c (context_offset): Update.
10051 (i386_mappings): Rename and remove static.
10052 (i386_windows_segment_register_p): Remove static.
10053 (_initialize_i386_windows_nat): Update.
10054 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10055 (STATUS_WX86_SINGLE_STEP): New macro.
10056 (EnumProcessModulesEx): New macro.
10057 (Wow64SuspendThread): New macro.
10058 (Wow64GetThreadContext): New macro.
10059 (Wow64SetThreadContext): New macro.
10060 (Wow64GetThreadSelectorEntry): New macro.
10061 (windows_set_context_register_offsets): Add static.
10062 (windows_set_segment_register_p): Likewise.
10063 (windows_add_thread): Adapt for WOW64 processes.
10064 (windows_fetch_one_register): Likewise.
10065 (windows_nat_target::fetch_registers): Likewise.
10066 (windows_store_one_register): Likewise.
10067 (display_selector): Likewise.
10068 (display_selectors): Likewise.
10069 (handle_exception): Likewise.
10070 (windows_continue): Likewise.
10071 (windows_nat_target::resume): Likewise.
10072 (windows_add_all_dlls): Likewise.
10073 (do_initial_windows_stuff): Likewise.
10074 (windows_nat_target::attach): Likewise.
10075 (windows_get_exec_module_filename): Likewise.
10076 (windows_nat_target::create_inferior): Likewise.
10077 (windows_xfer_siginfo): Likewise.
10078 (_initialize_loadable): Initialize Wow64SuspendThread,
10079 Wow64GetThreadContext, Wow64SetThreadContext,
10080 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10081 * windows-nat.h (windows_set_context_register_offsets):
10082 Remove declaration.
10083 (windows_set_segment_register_p): Likewise.
10084 (i386_windows_segment_register_p): Add declaration.
10085 (amd64_windows_segment_register_p): Likewise.
10086
440cf44e
LM
100872020-03-04 Luis Machado <luis.machado@linaro.org>
10088
10089 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10090 in "info registers" for AArch64/ARM.
10091
10092 The change caused "info registers" to not print GPR's.
10093
10094 gdb/ChangeLog:
10095
10096 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10097
10098 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10099 when reg->group is empty and reggroup is not.
10100
1009d92f
TT
101012020-03-03 Tom Tromey <tromey@adacore.com>
10102
10103 * dwarf2/frame.c (struct dwarf2_frame_cache)
10104 <checked_tailcall_bottom, entry_cfa_sp_offset,
10105 entry_cfa_sp_offset_p>: Remove members.
10106 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10107 (dwarf2_frame_prev_register): Don't call
10108 dwarf2_tailcall_sniffer_first.
10109 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10110 * frame-unwind.c (add_unwinder): New fuction.
10111 (frame_unwind_init): Use it. Add tailcall unwinder.
10112
5e5d66b6
AB
101132020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10114 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10115
10116 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10117 value should be printed as true.
10118
584cf46d
HD
101192020-03-03 Hannes Domani <ssbssa@yahoo.de>
10120
10121 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10122 (windows_init_abi): Set and use windows_so_ops.
10123
7b973adc
SDJ
101242020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10125
10126 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10127 when verifying if dealing with a convenience variable.
10128
bb7b70ab
LM
101292020-03-03 Luis Machado <luis.machado@linaro.org>
10130
10131 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10132
9822cb57
SM
101332020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10134
10135 * infrun.c (gdbarch_supports_displaced_stepping): New.
10136 (use_displaced_stepping): Break up conditions in smaller pieces.
10137 Use gdbarch_supports_displaced_stepping.
10138 (displaced_step_prepare_throw): Use
10139 gdbarch_supports_displaced_stepping.
10140
63e163f2
AB
101412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10142
10143 * NEWS: Mention new behaviour of the history filename.
10144 * top.c (write_history_p): Add comment.
10145 (show_write_history_p): Add header comment, give a different
10146 message when history writing is on, but the history filename is
10147 empty.
10148 (history_filename): Add comment.
10149 (history_filename_empty): New function.
10150 (show_history_filename): Add header comment, give a different
10151 message when the filename is empty.
10152 (init_history): Compare history_filename against nullptr, and only
10153 read history if the filename is not empty.
10154 (set_history_filename): Add header comment, and only make
10155 non-empty filenames absolute.
10156 (init_main): Make the filename argument to 'set history filename'
10157 optional.
10158
81b86b97
CB
101592020-03-02 Christian Biesinger <cbiesinger@google.com>
10160
10161 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10162 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10163 (fetch_fp_register): Update.
10164 (fetch_fp_regs): Update.
10165 (store_fp_register): Update.
10166 (store_fp_regs): Update.
10167 (arm_netbsd_nat_target::read_description): New function.
10168 (fetch_elfcore_registers): Update.
10169
24ed6739
AB
101702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10173 general_thread if the stop reply is missing a thread-id.
10174 (remote_target::process_stop_reply): Use the first non-exited
10175 thread if the target didn't pass a thread-id.
10176 * infrun.c (do_target_wait): Move call to
10177 switch_to_inferior_no_thread to ....
10178 (do_target_wait_1): ... here.
10179
a84bb2a0
JT
101802020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10181
10182 * debuginfod-support.c: Include defs.h first.
10183
658dadf0
TV
101842020-02-28 Tom de Vries <tdevries@suse.de>
10185
10186 * symfile.c (set_initial_language): Use default language for lookup.
10187
4ebe4877
SM
101882020-02-28 Simon Marchi <simon.marchi@efficios.com>
10189
10190 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10191 reader variable, pass `this` to read_cutu_die_from_dwo.
10192
e5da1139
AM
101932020-02-27 Aaron Merey <amerey@redhat.com>
10194
10195 * source.c (open_source_file): Check for nullptr when computing
10196 srcpath.
10197
317f7127
TT
101982020-02-27 Tom Tromey <tromey@adacore.com>
10199
10200 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10201 member.
10202 (dwarf2_add_field): Don't update nfields.
10203 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10204
3104d9ee
AB
102052020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10206
10207 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10208 abs.
10209
b83470bf
TT
102102020-02-26 Tom Tromey <tom@tromey.com>
10211
10212 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10213 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10214 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10215 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10216 per_cu_data.
10217
edfe0a0c
TT
102182020-02-26 Tom Tromey <tom@tromey.com>
10219
10220 * dwarf2/index-write.c (psym_index_map): Change type.
10221 (add_address_entry_worker, write_one_signatured_type)
10222 (recursively_count_psymbols, recursively_write_psymbols)
10223 (class debug_names, psyms_seen_size, write_gdbindex)
10224 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10225
0d79cdc4
AM
102262020-02-26 Aaron Merey <amerey@redhat.com>
10227
10228 * Makefile.in: Handle optional debuginfod support.
10229 * NEWS: Update.
10230 * README: Add --with-debuginfod summary.
10231 * config.in: Regenerate.
10232 * configure: Regenerate.
10233 * configure.ac: Handle optional debuginfod support.
10234 * debuginfod-support.c: debuginfod helper functions.
10235 * debuginfod-support.h: Ditto.
10236 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10237 summary.
10238 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10239 when a dwz file cannot be found.
10240 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10241 debuginfo file cannot be found.
10242 * source.c (open_source_file): Query debuginfod servers when a
10243 source file cannot be found.
10244 * top.c (print_gdb_configuration): Include
10245 --{with,without}-debuginfod in the output.
10246
b65ce565
JG
102472020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10248
10249 * thread.c (thr_try_catch_cmd): Print thread name.
10250
d4c9a4f8
SM
102512020-02-26 Simon Marchi <simon.marchi@efficios.com>
10252
10253 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10254 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10255 dwarf2_fetch_die_type_sect_off): Move to...
10256 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10257 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10258 dwarf2_fetch_die_type_sect_off): ... here.
10259 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10260 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10261 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10262
0dce4280
TV
102632020-02-26 Tom de Vries <tdevries@suse.de>
10264
10265 PR gdb/25603
10266 * symfile.c (set_initial_language): Exit-early if
10267 language_mode == language_mode_manual.
10268
450a1bfc
SM
102692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10270
10271 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10272 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10273 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10274
9e80cfa1
AB
102752020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10276
10277 * gdbtypes.c (create_array_type_with_stride): Handle negative
10278 array strides.
10279 * valarith.c (value_subscripted_rvalue): Likewise.
10280
09624f1f
LM
102812020-02-25 Luis Machado <luis.machado@linaro.org>
10282
10283 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10284
8cb5117c
SM
102852020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10286
10287 * loc.h (dwarf2_get_die_type): Move to...
10288 * read.h (dwarf2_get_die_type): ... here.
10289 * read.c (dwarf2_get_die_type): Move doc to header.
10290
c325c44e
JB
102912020-02-25 Joel Brobecker <brobecker@adacore.com>
10292
10293 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10294 'gnulib/Makefile.in' to the list.
10295
4ac93832
TT
102962020-02-24 Tom Tromey <tom@tromey.com>
10297
10298 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10299 Remove.
10300 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10301 XOBNEWVEC.
10302
197400e8
TT
103032020-02-24 Tom Tromey <tom@tromey.com>
10304
10305 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10306 New method.
10307 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10308 (dw2_do_instantiate_symtab, dw2_get_file_names)
10309 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10310
76935768
TT
103112020-02-24 Tom Tromey <tom@tromey.com>
10312
10313 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10314 make_scoped_restore.
10315 (dwarf2_psymtab::read_symtab): Don't clear
10316 reading_partial_symbols.
10317
a88ef40d
TV
103182020-02-24 Tom de Vries <tdevries@suse.de>
10319
10320 PR gdb/25592
10321 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10322
c9af6521
TV
103232020-02-24 Tom de Vries <tdevries@suse.de>
10324
10325 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10326 commands layout next/prev/regs.
10327
5707a07a
TT
103282020-02-22 Tom Tromey <tom@tromey.com>
10329
10330 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10331 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10332
3b0fb49e
TT
103332020-02-22 Tom Tromey <tom@tromey.com>
10334
10335 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10336
283be8bf
TT
103372020-02-22 Tom Tromey <tom@tromey.com>
10338
10339 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10340 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10341 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10342 * tui/tui.c (_initialize_tui): Add usage text.
10343
ca793b96
TT
103442020-02-22 Tom Tromey <tom@tromey.com>
10345
10346 * tui/tui-win.c (tui_set_focus_command)
10347 (tui_set_win_height_command): Use error_no_arg.
10348 (_initialize_tui_win): Update help text.
10349 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10350
432b5c40
TT
103512020-02-22 Tom Tromey <tom@tromey.com>
10352
10353 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10354 * tui/tui-disasm.h (struct tui_disasm_window)
10355 <display_start_addr>: Declare.
10356 * tui/tui-source.h (struct tui_source_window)
10357 <display_start_addr>: Declare.
10358 * tui/tui-winsource.h (struct tui_source_window_base)
10359 <show_source_line, display_start_addr>: New methods.
10360 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10361 Rename and move to protected section.
10362 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10363 (tui_source_window_base::do_erase_source_content): Update.
10364 (tui_source_window_base::show_source_line): Now a method.
10365 (tui_source_window_base::show_source_content)
10366 (tui_source_window_base::tui_source_window_base)
10367 (tui_source_window_base::rerender)
10368 (tui_source_window_base::refill)
10369 (tui_source_window_base::do_scroll_horizontal)
10370 (tui_source_window_base::set_is_exec_point_at)
10371 (tui_source_window_base::update_breakpoint_info)
10372 (tui_source_window_base::update_exec_info): Update.
10373 * tui/tui-source.c (tui_source_window::set_contents)
10374 (tui_source_window::showing_source_p)
10375 (tui_source_window::do_scroll_vertical)
10376 (tui_source_window::location_matches_p)
10377 (tui_source_window::line_is_displayed): Update.
10378 (tui_source_window::display_start_addr): New method.
10379 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10380 (tui_disasm_window::do_scroll_vertical)
10381 (tui_disasm_window::location_matches_p): Update.
10382 (tui_disasm_window::display_start_addr): New method.
10383
01b1af32
TT
103842020-02-22 Tom Tromey <tom@tromey.com>
10385
10386 * NEWS: Add entry for gdb.register_window_type.
10387 * tui/tui-layout.h (window_factory): New typedef.
10388 (tui_register_window): Declare.
10389 * tui/tui-layout.c (saved_tui_windows): New global.
10390 (tui_apply_current_layout): Use it.
10391 (tui_register_window): New function.
10392 * python/python.c (do_start_initialization): Call
10393 gdbpy_initialize_tui.
10394 (python_GdbMethods): Add "register_window_type" function.
10395 * python/python-internal.h (gdbpy_register_tui_window)
10396 (gdbpy_initialize_tui): Declare.
10397 * python/py-tui.c: New file.
10398 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10399
fc96d20b
TT
104002020-02-22 Tom Tromey <tom@tromey.com>
10401
10402 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10403
935c78c0
TT
104042020-02-22 Tom Tromey <tom@tromey.com>
10405
10406 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10407 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10408 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10409 (tui_set_win_focus_to): Move from tui-win.c.
10410
0240c8f1
TT
104112020-02-22 Tom Tromey <tom@tromey.com>
10412
10413 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10414 functions.
10415 (known_window_types): New global.
10416 (tui_get_window_by_name): Reimplement.
10417 (initialize_known_windows): New function.
10418 (validate_window_name): Rewrite.
10419 (_initialize_tui_layout): Call initialize_known_windows.
10420
fdb01f0c
TT
104212020-02-22 Tom Tromey <tom@tromey.com>
10422
10423 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10424 Remove constants.
10425 * tui/tui-winsource.h (struct tui_source_window_base)
10426 <tui_source_window_base>: Remove parameter.
10427 * tui/tui-winsource.c
10428 (tui_source_window_base::tui_source_window_base): Remove
10429 parameter.
10430 (tui_source_window_base::refill): Update.
10431 * tui/tui-stack.h (struct tui_locator_window)
10432 <tui_locator_window>: Update.
10433 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10434 Default the constructor.
10435 * tui/tui-regs.h (struct tui_data_item_window)
10436 <tui_data_item_window>: Default the constructor.
10437 (struct tui_data_window) <tui_data_window>: Likewise.
10438 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10439 Default the constructor.
10440 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10441 Default the constructor.
10442 <type>: Remove.
10443 (struct tui_win_info) <tui_win_info>: Default the constructor.
10444 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10445 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10446 Default the constructor.
10447
865a5aec
TT
104482020-02-22 Tom Tromey <tom@tromey.com>
10449
10450 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10451 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10452 * tui/tui-win.c (tui_resize_all): Don't call
10453 tui_delete_invisible_windows.
10454 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10455 done.
10456 (tui_set_layout): Update.
10457 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10458 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10459 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10460
e098d18c
TT
104612020-02-22 Tom Tromey <tom@tromey.com>
10462
10463 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10464 correctly.
10465
eb9c8874
TT
104662020-02-22 Tom Tromey <tom@tromey.com>
10467
10468 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10469
7eed1a8e
TT
104702020-02-22 Tom Tromey <tom@tromey.com>
10471
10472 * tui/tui-winsource.h (struct tui_source_window_iterator)
10473 <inner_iterator>: New etytypedef.
10474 <tui_source_window_iterator>: Take "end" parameter.
10475 <tui_source_window_iterator>: Take iterator.
10476 <operator*, advance>: Update.
10477 <m_iter>: Change type.
10478 <m_end>: New field.
10479 (struct tui_source_windows) <begin, end>: Update.
10480 * tui/tui-layout.c (tui_windows): New global.
10481 (tui_apply_current_layout): Clear tui_windows.
10482 (tui_layout_window::apply): Update tui_windows.
10483 * tui/tui-data.h (tui_windows): Declare.
10484 (all_tui_windows): Now inline function.
10485 (class tui_window_iterator, struct all_tui_windows): Remove.
10486
7c043ba6
TT
104872020-02-22 Tom Tromey <tom@tromey.com>
10488
10489 PR tui/17850:
10490 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10491 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10492 "height" argument.
10493 (class tui_layout_window) <get_sizes>: Likewise.
10494 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10495 argument.
10496 <get_sizes>: Add "height" argument.
10497 <m_vertical>: New field.
10498 * tui/tui-layout.c (tui_layout_split::clone): Update.
10499 (tui_layout_split::get_sizes): Add "height" argument.
10500 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10501 (tui_new_layout_command): Parse "-horizontal".
10502 (_initialize_tui_layout): Update help string.
10503 (tui_layout_split::specification): Add "-horizontal" when needed.
10504 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10505 argument.
10506 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10507 New methods.
10508
6bc56648
TT
105092020-02-22 Tom Tromey <tom@tromey.com>
10510
10511 * tui/tui-layout.h (enum tui_adjust_result): New.
10512 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10513 (class tui_layout_window) <adjust_size>: Return
10514 tui_adjust_result. Rewrite.
10515 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10516 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10517
c22fef7e
TT
105182020-02-22 Tom Tromey <tom@tromey.com>
10519
10520 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10521 parameter and return types.
10522 (class tui_layout_base) <specification>: Add "depth".
10523 (class tui_layout_window) <specification>: Add "depth".
10524 (class tui_layout_split) <specification>: Add "depth".
10525 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10526 and return types.
10527 (tui_new_layout_command): Parse sub-layouts.
10528 (_initialize_tui_layout): Update help string.
10529 (tui_layout_window::specification): Add "depth".
10530 (add_layout_command): Update.
10531
ee325b61
TT
105322020-02-22 Tom Tromey <tom@tromey.com>
10533
10534 * NEWS: Add "tui new-layout" item.
10535 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10536 Add new-layout command to help text.
10537 (validate_window_name): New function.
10538 (tui_new_layout_command): New function.
10539 (_initialize_tui_layout): Register "new-layout".
10540 (tui_layout_window::specification): New method.
10541 (tui_layout_window::specification): New method.
10542 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10543 method.
10544 (class tui_layout_window) <specification>: New method.
10545 (class tui_layout_split) <specification>: New method.
10546
416eb92d
TT
105472020-02-22 Tom Tromey <tom@tromey.com>
10548
10549 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10550 * tui/tui-win.c (window_name_completer): Update comment.
10551 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10552 Declare method.
10553 (class tui_layout_window) <replace_window>: Likewise.
10554 (class tui_layout_split) <replace_window>: Likewise.
10555 (tui_set_layout): Don't declare.
10556 (tui_set_initial_layout): Declare function.
10557 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10558 (asm_regs_layout): New globals.
10559 (tui_current_layout, show_layout): Remove.
10560 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10561 (find_layout, tui_apply_layout): New function.
10562 (layout_completer): Remove.
10563 (tui_next_layout): Reimplement.
10564 (tui_next_layout_command): New function.
10565 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10566 (tui_regs_layout): Reimplement.
10567 (tui_regs_layout_command): New function.
10568 (extract_display_start_addr): Rewrite.
10569 (next_layout, prev_layout): Remove.
10570 (tui_layout_window::replace_window): New method.
10571 (tui_layout_split::replace_window): New method.
10572 (destroy_layout): New function.
10573 (layout_list): New global.
10574 (add_layout_command): New function.
10575 (initialize_layouts): Update.
10576 (tui_layout_command): New function.
10577 (_initialize_tui_layout): Install "layout" commands.
10578 * tui/tui-data.h (enum tui_layout_type): Remove.
10579 (tui_current_layout): Don't declare.
10580
0dbc2fc7
TT
105812020-02-22 Tom Tromey <tom@tromey.com>
10582
10583 * tui/tui-regs.c (tui_reg_layout): Remove.
10584 (tui_reg_command): Use tui_regs_layout.
10585 * tui/tui-layout.h (tui_reg_command): Declare.
10586 * tui/tui-layout.c (tui_reg_command): New function.
10587
5afe342e
TT
105882020-02-22 Tom Tromey <tom@tromey.com>
10589
10590 * tui/tui.c (tui_rl_delete_other_windows): Call
10591 tui_remove_some_windows.
10592 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10593 Declare method.
10594 (class tui_layout_window) <remove_windows>: New method.
10595 (class tui_layout_split) <remove_windows>: Declare.
10596 (tui_remove_some_windows): Declare.
10597 * tui/tui-layout.c (tui_remove_some_windows): New function.
10598 (tui_layout_split::remove_windows): New method.
10599
427326a8
TT
106002020-02-22 Tom Tromey <tom@tromey.com>
10601
10602 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10603 * tui/tui-layout.h (tui_next_layout): Declare.
10604 * tui/tui-layout.c (tui_next_layout): New function.
10605
3fe12b6d
TT
106062020-02-22 Tom Tromey <tom@tromey.com>
10607
10608 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10609 correct coordinates.
10610
59b8b5d2
TT
106112020-02-22 Tom Tromey <tom@tromey.com>
10612
10613 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10614 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10615 DATA_WIN case.
10616
2a3d458b
TT
106172020-02-22 Tom Tromey <tom@tromey.com>
10618
10619 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10620 TUI_DISASM_WIN, not tui_win_list.
10621
3f0cbb04
TT
106222020-02-22 Tom Tromey <tom@tromey.com>
10623
10624 * valprint.c (generic_val_print_enum_1)
10625 (val_print_type_code_flags): Style member names.
10626 * rust-lang.c (val_print_struct, rust_print_enum)
10627 (rust_print_struct_def, rust_internal_print_type): Style member
10628 names.
10629 * p-valprint.c (pascal_object_print_value_fields): Style member
10630 names. Only call fprintf_symbol_filtered for static members.
10631 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10632 * f-valprint.c (f_val_print): Style member names.
10633 * f-typeprint.c (f_type_print_base): Style member names.
10634 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10635 call fprintf_symbol_filtered for static members.
10636 (cp_print_class_member): Style member names.
10637 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10638 member names.
10639 * ada-valprint.c (ada_print_scalar): Style enum names.
10640 (ada_val_print_enum): Likewise.
10641 * ada-typeprint.c (print_enum_type): Style enum names.
10642
d4d947ae
TT
106432020-02-21 Tom Tromey <tom@tromey.com>
10644
10645 * psympriv.h (struct partial_symtab): Update comment.
10646
e94e944b
TT
106472020-02-21 Tom Tromey <tromey@adacore.com>
10648
10649 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10650 type is CORE_ADDR.
10651
1eb73179
TV
106522020-02-21 Tom de Vries <tdevries@suse.de>
10653
10654 PR gdb/25534
10655 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10656 if dependencies[i]->user != NULL.
10657
4f180d53
AT
106582020-02-21 Ali Tamur <tamur@google.com>
10659
10660 * dwarf2/read.c (dwarf2_name): Add null check.
10661
22b6cd70
TT
106622020-02-20 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10665 ">=", in binary search.
10666 (dwarf2_find_containing_comp_unit): New overload.
10667 (run_test): New self-test.
10668 (_initialize_dwarf2_read): Register new test.
10669
bd0cf5a6
NC
106702020-02-20 Nelson Chu <nelson.chu@sifive.com>
10671
10672 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10673 * riscv-tdep.h: Likewise.
10674 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10675 rv32-only CSR.
10676 * features/riscv/64bit-csr.xml: Regenerated.
10677
3f702acd
SDJ
106782020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10679 Tom Tromey <tom@tromey.com>
10680
10681 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10682 of 'fputc_unfiltered'.
10683 (putchar_unfiltered): Call 'fputc_unfiltered'.
10684 (fputc_unfiltered): Call 'fputs_unfiltered'.
10685
d13c7322
AB
106862020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * config.in: Regenerate.
10689 * configure: Regenerate.
10690 * configure.ac: Add --with-python-libdir option.
10691 * main.c: Use WITH_PYTHON_LIBDIR.
10692
869d8950
TT
106932020-02-19 Tom Tromey <tom@tromey.com>
10694
10695 * symtab.c (general_symbol_info::compute_and_set_names): Use
10696 obstack_strndup. Simplify call to symbol_set_demangled_name.
10697
298e9637
SM
106982020-02-19 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * dwarf2/read.c (allocate_signatured_type_table,
10701 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10702 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10703 Remove objfile parameter, update all callers.
10704
08410482
DE
107052020-02-19 Doug Evans <dje@google.com>
10706
10707 PR rust/25535
10708 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10709 rust_enum_variant calculation.
10710
dfdeeca1
TT
107112020-02-19 Tom Tromey <tromey@adacore.com>
10712
10713 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10714
2ef5453b
TT
107152020-02-19 Tom Tromey <tromey@adacore.com>
10716
10717 * ada-lang.c (cache_symbol): Use obstack_strdup.
10718
9f1528a1
AB
107192020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10720
10721 * configure: Regenerate.
10722
d3c22fa8
TT
107232020-02-19 Tom Tromey <tromey@adacore.com>
10724
10725 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10726 NULL check.
10727
bf84f706
MR
107282020-02-19 Maciej W. Rozycki <macro@wdc.com>
10729
10730 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10731
d1c9b20f
AB
107322020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10733
10734 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10735 if GDBSERVER is not defined.
10736 (riscv_tdesc_cache): Likewise, also store const target_desc.
10737 (STATIC_IN_GDB): Define.
10738 (riscv_create_target_description): Update declaration with
10739 STATIC_IN_GDB.
10740 (riscv_lookup_target_description): New function, only define if
10741 GDBSERVER is not defined.
10742 * arch/riscv.h (riscv_create_target_description): Declare only
10743 when GDBSERVER is defined.
10744 (riscv_lookup_target_description): New declaration when GDBSERVER
10745 is not defined.
10746 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10747 (riscv_linux_read_features): ...this, and return
10748 riscv_gdbarch_features instead of target_desc.
10749 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10750 (riscv_linux_read_description): Rename to...
10751 (riscv_linux_read_features): ...this.
10752 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10753 Update to use riscv_gdbarch_features and
10754 riscv_lookup_target_description.
10755 * riscv-tdep.c (riscv_find_default_target_description): Use
10756 riscv_lookup_target_description instead of
10757 riscv_create_target_description.
10758
373d7ac0
SM
107592020-02-18 Simon Marchi <simon.marchi@efficios.com>
10760
10761 * valprint.c (generic_val_print_enum_1): When printing a flag
10762 enum with value 0 and there is no enumerator with value 0, print
10763 just "0" instead of "(unknown: 0x0)".
10764
b29a2df0
SM
107652020-02-18 Simon Marchi <simon.marchi@efficios.com>
10766
10767 * valprint.c (generic_val_print_enum_1): Print unknown part of
10768 flag enum in hex.
10769
6740f0cc
SM
107702020-02-18 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10773 flag enums to contain duplicate enumerators.
10774 * valprint.c (generic_val_print_enum_1): Update comment.
10775
edd45eb0
SM
107762020-02-18 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * dwarf2/read.c: Include "count-one-bits.h".
10779 (update_enumeration_type_from_children): If an enumerator has
10780 multiple bits set, don't treat the enumeration as a "flag enum".
10781 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10782 of flag enums have 0 or 1 bit set.
10783
6d0cf446
BE
107842020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10785
10786 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10787 conversion.
10788 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10789 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10790 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10791 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10792 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10793
7001c1b7
SM
107942020-02-18 Simon Marchi <simon.marchi@efficios.com>
10795
10796 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10797
fdb61c6c
SM
107982020-02-14 Simon Marchi <simon.marchi@efficios.com>
10799
10800 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10801 displaced_step_closure_up.
10802 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10803 (struct displaced_step_closure_up):
10804 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10805 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10806 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10807 Likewise.
10808 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10809 * gdbarch.c, gdbarch.h: Re-generate.
10810 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10811 displaced_step_closure_up.
10812 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10813 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10814 * infrun.h (displaced_step_closure_up): New type alias.
10815 (struct displaced_step_inferior_state) <step_closure>: Change
10816 type to displaced_step_closure_up.
10817 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10818 displaced_step_closure_up.
10819 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10820
a4a38eb4
TT
108212020-02-14 Tom Tromey <tom@tromey.com>
10822
10823 * minidebug.c (gnu_debug_key): New global.
10824 (find_separate_debug_file_in_section): Use it.
10825
e8217e61
SM
108262020-02-14 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10829 std::unique_ptr.
10830 * gdbarch.c: Re-generate.
10831 * gdbarch.h: Re-generate.
10832 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10833 change.
10834 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10835 type to std::unique_ptr.
10836 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10837 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10838 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10839 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10840 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10841 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10842 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10843 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10844 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10845
d8d83535
SM
108462020-02-14 Simon Marchi <simon.marchi@efficios.com>
10847
10848 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10849 std::unique_ptr.
10850 (displaced_step_clear): Rename to...
10851 (displaced_step_reset): ... this. Just call displaced->reset ().
10852 (displaced_step_clear_cleanup): Rename to...
10853 (displaced_step_reset_cleanup): ... this.
10854 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10855 (displaced_step_fixup): Likewise.
10856 (resume_1): Likewise.
10857 (handle_inferior_event): Restore child's memory before calling
10858 displaced_step_fixup on the parent.
10859 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10860 to std::unique_ptr.
10861 <step_closure>: Change type to std::unique_ptr.
10862
5f661e03
SM
108632020-02-14 Simon Marchi <simon.marchi@efficios.com>
10864
10865 * arm-tdep.c: Include count-one-bits.h.
10866 (cleanup_block_store_pc): Use count_one_bits.
10867 (cleanup_block_load_pc): Use count_one_bits.
10868 (arm_copy_block_xfer): Use count_one_bits.
10869 (thumb2_copy_block_xfer): Use count_one_bits.
10870 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10871 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10872 (thumb_get_next_pcs_raw): Use count_one_bits.
10873 (arm_get_next_pcs_raw): Use count_one_bits_l.
10874 * arch/arm.c (bitcount): Remove.
10875 * arch/arm.h (bitcount): Remove.
10876
8084e579
TT
108772020-02-14 Tom Tromey <tromey@adacore.com>
10878
10879 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10880 Update.
10881 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10882 * dwarf2/loc.c (call_site_find_chain_1): Return
10883 unique_xmalloc_ptr.
10884 (call_site_find_chain): Likewise.
10885
258bf0ee
RB
108862020-02-14 Richard Biener <rguenther@suse.de>
10887
10888 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10889 on expression with division operators.
10890
f98a8458
AKS
108912020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10892
10893 * MAINTAINERS (Write After Approval): Adding myself.
10894
d1437c0e
TT
108952020-02-12 Tom Tromey <tom@tromey.com>
10896
10897 * event-loop.c (event_data, gdb_event, event_handler_func):
10898 Remove.
10899
3d4560f7
TT
109002020-02-12 Tom Tromey <tom@tromey.com>
10901
10902 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10903 (dwarf2_frame_objfile_data): Add comment.
10904 (find_comp_unit, set_comp_unit): New functions.
10905 (dwarf2_frame_find_fde): Use find_comp_unit.
10906 (dwarf2_build_frame_info): Use set_comp_unit.
10907
21982304
TT
109082020-02-12 Tom Tromey <tom@tromey.com>
10909
10910 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10911 (comp_unit): Don't initialize objfile.
10912 (execute_cfa_program): Add text_offset parameter.
10913 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10914 (dwarf2_frame_cache): Update.
10915 (dwarf2_build_frame_info): Don't set "objfile" member.
10916
4debb237
TT
109172020-02-12 Tom Tromey <tom@tromey.com>
10918
10919 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10920 (decode_frame_entry): Likewise.
10921 (dwarf2_build_frame_info): Update.
10922
0d404d44
TT
109232020-02-12 Tom Tromey <tom@tromey.com>
10924
10925 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10926 (decode_frame_entry_1): Use the comp_unit obstack.
10927
a7a3ae5c
TT
109282020-02-12 Tom Tromey <tom@tromey.com>
10929
10930 * dwarf2/frame.c (struct comp_unit): Add initializers and
10931 constructor.
10932 (dwarf2_frame_objfile_data): Store a comp_unit.
10933 (dwarf2_frame_find_fde): Update.
10934 (dwarf2_build_frame_info): Use "new".
10935
a9d65418
TT
109362020-02-12 Tom Tromey <tom@tromey.com>
10937
10938 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10939 (dwarf2_fde_table): Typedef for std::vector.
10940 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10941 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10942 (decode_frame_entry): Update.
10943 (dwarf2_build_frame_info): Use "new".
10944
7559c217
CB
109452020-02-12 Christian Biesinger <cbiesinger@google.com>
10946
10947 * arm-tdep.c (arm_gdbarch_init): Update.
10948 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10949 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10950 have_neon, is_m>: Change to bool.
10951
aeefc73c
CB
109522020-02-12 Christian Biesinger <cbiesinger@google.com>
10953
10954 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10955
d27b8e5f
TT
109562020-02-12 Tom Tromey <tom@tromey.com>
10957
10958 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10959
cd5900f3
HD
109602020-02-12 Hannes Domani <ssbssa@yahoo.de>
10961
10962 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10963 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10964
f056b22b
TT
109652020-02-11 Tom Tromey <tom@tromey.com>
10966
10967 * psymtab.h: Update comment.
10968
f92ff6b5
TT
109692020-02-11 Tom Tromey <tom@tromey.com>
10970
10971 * gdb_obstack.h (struct auto_obstack): Use
10972 DISABLE_COPY_AND_ASSIGN.
10973
3fd6912b
TT
109742020-02-11 Tom Tromey <tom@tromey.com>
10975
10976 * dwarf2/frame.h (struct objfile): Don't forward declare.
10977
69ed9b74
CB
109782020-02-11 Christian Biesinger <cbiesinger@google.com>
10979
10980 * cris-tdep.c (cris_supply_gregset): Change signature to match
10981 what struct regset expects.
10982 (cris_regset): New struct.
10983 (fetch_core_registers): Remove.
10984 (cris_iterate_over_regset_sections): New function.
10985 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10986 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10987
bda874f6
CB
109882020-02-11 Christian Biesinger <cbiesinger@google.com>
10989
10990 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10991 registers.
10992
754e1564
CB
109932020-02-11 Christian Biesinger <cbiesinger@google.com>
10994
10995 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10996
8ddd8e0e
SM
109972020-02-11 Simon Marchi <simon.marchi@efficios.com>
10998
10999 * configure: Re-generate.
11000
898e7f60
SM
110012020-02-11 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * configure: Re-generate.
11004
58df732b
SM
110052020-02-11 Simon Marchi <simon.marchi@efficios.com>
11006
11007 * acinclude: Update warning.m4 path.
11008 * warning.m4: Move to gdbsupport.
11009
da5bd37e
TT
110102020-02-11 Tom Tromey <tromey@adacore.com>
11011
11012 * remote.c (remote_console_output): Update.
11013 * printcmd.c (printf_command): Update.
11014 * event-loop.c (gdb_wait_for_event): Update.
11015 * linux-nat.c (sigchld_handler): Update.
11016 * remote-sim.c (gdb_os_write_stdout): Update.
11017 (gdb_os_flush_stdout): Update.
11018 (gdb_os_flush_stderr): Update.
11019 (gdb_os_write_stderr): Update.
11020 * exceptions.c (print_exception): Update.
11021 * remote-fileio.c (remote_fileio_func_read): Update.
11022 (remote_fileio_func_write): Update.
11023 * tui/tui.c (tui_enable): Update.
11024 * tui/tui-interp.c (tui_interp::init): Update.
11025 * utils.c (init_page_info): Update.
11026 (putchar_unfiltered, fputc_unfiltered): Update.
11027 (gdb_flush): Update.
11028 (emit_style_escape): Update.
11029 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11030 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11031 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11032 (stderr_file::write): Update.
11033 (stderr_file::puts): Update.
11034 * ui-file.h (ui_file_isatty, ui_file_write)
11035 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11036 (ui_file_puts): Don't declare.
11037
85f0dd3c
TV
110382020-02-10 Tom de Vries <tdevries@suse.de>
11039
11040 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11041 sentinel to char *.
11042
2e927613
TV
110432020-02-09 Tom de Vries <tdevries@suse.de>
11044
11045 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11046 filename if it matches "<artificial>".
11047
6bafc845
HD
110482020-02-09 Hannes Domani <ssbssa@yahoo.de>
11049
11050 * windows-tdep.c (struct enum_value_name): New struct.
11051 (create_enum): New function.
11052 (windows_get_siginfo_type): Create and use enum types.
11053
7928d571
HD
110542020-02-09 Hannes Domani <ssbssa@yahoo.de>
11055
11056 * NEWS: Mention $_siginfo support for Windows.
11057 * windows-nat.c (handle_exception): Set siginfo_er.
11058 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11059 (windows_xfer_siginfo): New function.
11060 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11061 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11062 (init_windows_gdbarch_data): New function.
11063 (get_windows_gdbarch_data): New function.
11064 (windows_get_siginfo_type): New function.
11065 (windows_init_abi): Register windows_get_siginfo_type.
11066 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11067
6751ebae
TT
110682020-02-08 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11071 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11072 <keep>: Declare method.
11073 <m_keep>: Remove member.
11074 <~cutu_reader>: Remove.
11075 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11076 (cutu_reader::cutu_reader): Update.
11077 (cutu_reader::keep): Rename from ~cutu_reader.
11078 (process_psymtab_comp_unit, build_type_psymtabs_1)
11079 (process_skeletonless_type_unit, load_partial_comp_unit)
11080 (load_full_comp_unit, dwarf2_read_addr_index)
11081 (read_signatured_type): Update.
11082
135f5437
TT
110832020-02-08 Tom Tromey <tom@tromey.com>
11084
11085 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11086 "want_partial_unit" parameter.
11087 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11088 Inline check for DW_TAG_partial_unit.
11089 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11090
9f66ff1c
TT
110912020-02-08 Tom Tromey <tom@tromey.com>
11092
11093 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11094 read.c.
11095 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11096 read.c.
11097
c8a7a66f
TT
110982020-02-08 Tom Tromey <tom@tromey.com>
11099
11100 * dwarf2/read.c (read_address): Move to comp-unit.c.
11101 (dwarf2_rnglists_process, dwarf2_ranges_process)
11102 (read_attribute_value, dwarf_decode_lines_1)
11103 (var_decode_location, decode_locdesc): Update.
11104 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11105 read.c. Remove "cu" parameter.
11106 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11107 method.
11108
8266302d
TT
111092020-02-08 Tom Tromey <tom@tromey.com>
11110
11111 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11112 (read_indirect_line_string): Update.
11113 * dwarf2/comp-unit.c (read_offset): Remove.
11114 (read_comp_unit_head): Update.
11115 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11116 method.
11117 (read_offset): Don't declare.
11118
4057dfde
TT
111192020-02-08 Tom Tromey <tom@tromey.com>
11120
11121 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11122 * dwarf2/read.c (struct comp_unit_head): Move to
11123 dwarf2/comp-unit.h.
11124 (enum class rcuh_kind): Move to comp-unit.h.
11125 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11126 (read_comp_unit_head, error_check_comp_unit_head)
11127 (read_and_check_comp_unit_head): Move to comp-unit.c.
11128 (read_offset, dwarf_unit_type_name): Likewise.
11129 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11130 (cutu_reader::cutu_reader, read_call_site_scope)
11131 (find_partial_die, follow_die_offset): Update.
11132 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11133
24aa364d
TT
111342020-02-08 Tom Tromey <tom@tromey.com>
11135
11136 * dwarf2/read.c (read_offset_1): Move to leb.c.
11137 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11138 (dwarf_decode_macro_bytes): Update.
11139 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11140 * dwarf2/leb.h (read_offset): Declare.
11141
2c7d5afc
TT
111422020-02-08 Tom Tromey <tom@tromey.com>
11143
11144 * dwarf2/read.c (dwarf2_section_size): Remove.
11145 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11146 Update.
11147 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11148
4075cb26
TT
111492020-02-08 Tom Tromey <tom@tromey.com>
11150
11151 * dwarf2/read.c (read_initial_length): Move to leb.c.
11152 * dwarf2/leb.h (read_initial_length): Declare.
11153 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11154 handle_nonstd parameter.
11155 * dwarf2/frame.c (read_initial_length): Remove.
11156 (decode_frame_entry_1): Update.
11157
09ba997f
TT
111582020-02-08 Tom Tromey <tom@tromey.com>
11159
11160 * dwarf2/loc.c (dwarf2_find_location_expression)
11161 (dwarf_evaluate_loc_desc::get_tls_address)
11162 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11163 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11164 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11165 (dwarf2_compile_property_to_c)
11166 (dwarf2_loc_desc_get_symbol_read_needs)
11167 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11168 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11169 (loclist_describe_location, loclist_tracepoint_var_ref)
11170 (loclist_generate_c_location): Update.
11171 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11172 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11173 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11174 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11175 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11176 (dwarf2_per_cu_data::addr_size)
11177 (dwarf2_per_cu_data::ref_addr_size)
11178 (dwarf2_per_cu_data::text_offset)
11179 (dwarf2_per_cu_data::addr_type): Now methods.
11180 (per_cu_header_read_in): Make per_cu "const".
11181 (dwarf2_version): Remove.
11182 (dwarf2_per_cu_data::int_type): Now a method.
11183 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11184 (set_die_type, read_array_type, read_subrange_index_type)
11185 (read_tag_string_type, read_subrange_type): Update.
11186 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11187 offset_size, ref_addr_size, text_offset, addr_type, version,
11188 objfile, int_type, addr_sized_int_type>: Declare methods.
11189
96c738c0
TT
111902020-02-08 Tom Tromey <tom@tromey.com>
11191
11192 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11193 Move earlier.
11194
8fdd972c
TT
111952020-02-08 Tom Tromey <tom@tromey.com>
11196
11197 * dwarf2/read.h (dwarf_line_debug): Declare.
11198 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11199 * dwarf2/read.c: Move line_header code to new files.
11200 (dwarf_line_debug): No longer static.
11201 * dwarf2/line-header.c: New file.
11202 * dwarf2/line-header.h: New file.
11203
03075812
TT
112042020-02-08 Tom Tromey <tom@tromey.com>
11205
11206 * dwarf2/read.c (struct line_header) <file_full_name,
11207 file_file_name>: Return unique_xmalloc_ptr.
11208 (line_header::file_file_name): Update.
11209 (line_header::file_full_name): Update.
11210 (dw2_get_file_names_reader): Update.
11211 (macro_start_file): Update.
11212
bb822404
TT
112132020-02-08 Tom Tromey <tom@tromey.com>
11214
11215 * dwarf2/read.c (struct line_header) <file_full_name,
11216 file_file_name>: Declare methods.
11217 (dw2_get_file_names_reader): Update.
11218 (file_file_name): Now a method.
11219 (file_full_name): Likewise.
11220 (macro_start_file): Update.
11221
009b64fc
TT
112222020-02-08 Tom Tromey <tom@tromey.com>
11223
11224 * dwarf2/read.c (dwarf_always_disassemble)
11225 (show_dwarf_always_disassemble): Move to loc.c.
11226 (_initialize_dwarf2_read): Move "always-disassemble" registration
11227 to loc.c.
11228 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11229 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11230 static.
11231 (show_dwarf_always_disassemble): Move from read.c.
11232 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11233
5895093f
TT
112342020-02-08 Tom Tromey <tom@tromey.com>
11235
11236 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11237 (create_quick_file_names_table): Return htab_up.
11238 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11239 Update.
11240 * dwarf2/read.h (struct dwarf2_per_objfile)
11241 <quick_file_names_table>: Now htab_up.
11242
b3b32279
TT
112432020-02-08 Tom Tromey <tom@tromey.com>
11244
11245 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11246
1d33d811
TT
112472020-02-08 Tom Tromey <tom@tromey.com>
11248
11249 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11250 Rewrite.
11251 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11252 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11253 (abbrev_table::abbrev_table): No longer inline.
11254 (ABBREV_HASH_SIZE): Remove.
11255 (abbrev_table::m_abbrevs): Now an htab_up.
11256
86de1d91
TT
112572020-02-08 Tom Tromey <tom@tromey.com>
11258
11259 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11260 (cutu_reader): Update.
11261 (build_type_psymtabs_1): Update.
11262 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11263 (abbrev_table::alloc_abbrev): Update.
11264 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11265 (abbrev_table::read): New static method, renamed from
11266 abbrev_table_read_table.
11267 (abbrev_table::alloc_abbrev)
11268 (abbrev_table::add_abbrev): Now private.
11269 (abbrev_table::abbrev_table): Now private.
11270 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11271
0335378b
TT
112722020-02-08 Tom Tromey <tom@tromey.com>
11273
11274 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11275 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11276 htab_up.
11277
48b490f2
TT
112782020-02-08 Tom Tromey <tom@tromey.com>
11279
11280 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11281 htab_up.
11282 (lookup_dwo_unit_in_dwp): Update.
11283 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11284 on obstack.
11285
bc68fb19
TT
112862020-02-08 Tom Tromey <tom@tromey.com>
11287
11288 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11289 obstack.
11290
d15acc42
TT
112912020-02-08 Tom Tromey <tom@tromey.com>
11292
11293 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11294 line_header_hash.
11295 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11296 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11297 Change type to htab_up.
11298
eaa5fa8b
TT
112992020-02-08 Tom Tromey <tom@tromey.com>
11300
11301 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11302 htab_up. Don't allocate on obstack.
11303 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11304 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11305 Change type to htab_up.
11306
b0b6a987
TT
113072020-02-08 Tom Tromey <tom@tromey.com>
11308
11309 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11310 Change type to htab_up.
11311 * dwarf2/read.c (create_signatured_type_table_from_index)
11312 (create_signatured_type_table_from_debug_names)
11313 (create_all_type_units, add_type_unit)
11314 (lookup_dwo_signatured_type, lookup_signatured_type)
11315 (process_skeletonless_type_unit): Update.
11316 (create_debug_type_hash_table, create_debug_types_hash_table):
11317 Change type of types_htab.
11318 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11319 htab_up. Don't allocate on obstack.
11320 (create_cus_hash_table): Change type of cus_htab parameter.
11321 (struct dwo_file) <cus, tus>: Now htab_up.
11322 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11323 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11324 (queue_and_load_all_dwo_tus): Update.
11325 * dwarf2/index-write.c (write_gdbindex): Update.
11326 (write_debug_names): Update.
11327
39856def
TT
113282020-02-08 Tom Tromey <tom@tromey.com>
11329
11330 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11331 dwarf2/read.c. Remove "next" member. Add constructor ntad
11332 destructor.
11333 (struct dwarf2_per_objfile) <queue>: New member.
11334 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11335 dwarf2/read.h.
11336 (dwarf2_queue, dwarf2_queue_tail): Remove.
11337 (class dwarf2_queue_guard): Add parameter to constructor. Use
11338 DISABLE_COPY_AND_ASSIGN.
11339 <m_per_objfile>: New member.
11340 <~dwarf2_queue_guard>: Rewrite.
11341 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11342 Update.
11343 (~dwarf2_queue_item): New.
11344
3e225074
TT
113452020-02-08 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2/read.c (struct die_info) <has_children>: New member.
11348 (dw2_get_file_names_reader): Remove has_children.
11349 (dw2_get_file_names): Update.
11350 (read_cutu_die_from_dwo): Remove has_children.
11351 (cutu_reader::init_tu_and_read_dwo_dies)
11352 (cutu_reader::cutu_reader): Update.
11353 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11354 Remove has_children.
11355 (build_type_psymtabs_1, process_skeletonless_type_unit)
11356 (load_partial_comp_unit, load_full_comp_unit): Update.
11357 (create_dwo_cu_reader): Remove has_children.
11358 (create_cus_hash_table, read_die_and_children): Update.
11359 (read_full_die_1,read_full_die): Remove has_children.
11360 (read_signatured_type): Update.
11361 (class cutu_reader) <has_children>: Remove.
11362
82ca8957
TT
113632020-02-08 Tom Tromey <tom@tromey.com>
11364
11365 * dwarf2/expr.c: Rename from dwarf2expr.c.
11366 * dwarf2/expr.h: Rename from dwarf2expr.h.
11367 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11368 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11369 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11370 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11371 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11372 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11373 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11374 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11375 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11376 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11377 * dwarf2/loc.c: Rename from dwarf2loc.c.
11378 * dwarf2/loc.h: Rename from dwarf2loc.h.
11379 * dwarf2/read.c: Rename from dwarf2read.c.
11380 * dwarf2/read.h: Rename from dwarf2read.h.
11381 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11382 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11383 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11384 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11385 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11386 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11387 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11388 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11389 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11390 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11391 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11392 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11393 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11394 Update.
11395 * Makefile.in (COMMON_SFILES): Update.
11396 (HFILES_NO_SRCDIR): Update.
11397
9e35d499
TT
113982020-02-08 Tom Tromey <tom@tromey.com>
11399
11400 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11401 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11402
1eba2311
TT
114032020-02-08 Tom Tromey <tom@tromey.com>
11404
11405 * dwarf2read.h (struct die_info): Don't declare.
11406
e41c2da2
TT
114072020-02-08 Tom Tromey <tom@tromey.com>
11408
11409 * dwarf2read.h (die_info_ptr): Remove typedef.
11410
4fc6c0d5
TT
114112020-02-08 Tom Tromey <tom@tromey.com>
11412
11413 * dwarf2read.c (read_call_site_scope)
11414 (handle_data_member_location, dwarf2_add_member_fn)
11415 (mark_common_block_symbol_computed, read_common_block)
11416 (attr_to_dynamic_prop, partial_die_info::read)
11417 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11418 (dwarf2_symbol_mark_computed, set_die_type): Update.
11419 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11420 method.
11421 (attr_form_is_block): Don't declare.
11422 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11423
cd6c91b4
TT
114242020-02-08 Tom Tromey <tom@tromey.com>
11425
11426 * dwarf2read.c (dwarf2_find_base_address, )
11427 (read_call_site_scope, rust_containing_type)
11428 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11429 (handle_data_member_location, dwarf2_add_member_fn)
11430 (get_alignment, read_structure_type, process_structure_scope)
11431 (mark_common_block_symbol_computed, read_common_block)
11432 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11433 (partial_die_info::read, read_attribute_value, new_symbol)
11434 (lookup_die_type, dwarf2_get_ref_die_offset)
11435 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11436 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11437 (dwarf2_symbol_mark_computed): Update.
11438 * dwarf2/attribute.h (struct attribute) <value_as_address,
11439 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11440 methods.
11441 (value_as_address, attr_form_is_section_offset)
11442 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11443 * dwarf2/attribute.c (attribute::value_as_address)
11444 (attribute::form_is_section_offset, attribute::form_is_constant)
11445 (attribute::form_is_ref): Now methods.
11446
162dce55
TT
114472020-02-08 Tom Tromey <tom@tromey.com>
11448
11449 * dwarf2read.c (struct attribute, DW_STRING)
11450 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11451 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11452 (attr_form_is_block, attr_form_is_section_offset)
11453 (attr_form_is_constant, attr_form_is_ref): Move.
11454 * dwarf2/attribute.h: New file.
11455 * dwarf2/attribute.c: New file, from dwarf2read.c.
11456 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11457
3054dd54
TT
114582020-02-08 Tom Tromey <tom@tromey.com>
11459
11460 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11461 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11462 Move.
11463 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11464 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11465 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11466 abbrev.c.
11467 * dwarf2/abbrev.h: New file.
11468 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11469 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11470
96b79293
TT
114712020-02-08 Tom Tromey <tom@tromey.com>
11472
11473 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11474 (dwarf2_section_size, dwarf2_get_section_info)
11475 (create_signatured_type_table_from_debug_names)
11476 (create_addrmap_from_aranges, read_debug_names_from_section)
11477 (get_gdb_index_contents_from_section, read_comp_unit_head)
11478 (error_check_comp_unit_head, read_abbrev_offset)
11479 (create_debug_type_hash_table, init_cu_die_reader)
11480 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11481 (read_comp_units_from_section, create_cus_hash_table)
11482 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11483 (create_dwp_v2_section, dwarf2_rnglists_process)
11484 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11485 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11486 (read_indirect_string_from_dwz, read_addr_index_1)
11487 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11488 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11489 (fill_in_loclist_baton): Update.
11490 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11491 get_containing_section, get_bfd_owner, get_bfd_section,
11492 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11493 (dwarf2_read_section, get_section_name, get_section_file_name)
11494 (get_containing_section, get_section_bfd_owner)
11495 (get_section_bfd_section, get_section_name, get_section_file_name)
11496 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11497 declare.
11498 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11499 (dwarf2_section_info::get_bfd_owner)
11500 (dwarf2_section_info::get_bfd_section)
11501 (dwarf2_section_info::get_name)
11502 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11503 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11504 (dwarf2_section_info::read): Now methods.
11505 * dwarf-index-write.c (class debug_names): Update.
11506
2c86cff9
TT
115072020-02-08 Tom Tromey <tom@tromey.com>
11508
11509 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11510 Move to dwarf2/section.h.
11511 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11512 (get_section_bfd_section, get_section_name)
11513 (get_section_file_name, get_section_id, get_section_flags)
11514 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11515 dwarf2/section.c.
11516 * dwarf2/section.h: New file.
11517 * dwarf2/section.c: New file, from dwarf2read.c.
11518 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11519
f4382c45
TT
115202020-02-08 Tom Tromey <tom@tromey.com>
11521
11522 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11523 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11524 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11525 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11526 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11527 * dwarf2/leb.h: New file, from dwarf2read.c.
11528 * dwarf2/leb.c: New file, from dwarf2read.c.
11529 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11530 Remove.
11531 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11532 (COMMON_SFILES): Add dwarf2/leb.c.
11533
01840b7a
JB
115342020-02-08 Joel Brobecker <brobecker@adacore.com>
11535
11536 GDB 9.1 released.
11537
dfcb27e4
IB
115382020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11539
11540 PR gdb/25190:
aac66a4c
SM
11541 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11542 * gdb/remote.c (remote_console_output): Update.
11543 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11544 (ui_file_puts): ...this.
11545 * gdb/ui-file.h (ui_file_puts): Add declaration.
11546 * gdb/utils.c (emit_style_escape): Update.
11547 (flush_wrap_buffer): Update.
11548 (fputs_maybe_filtered): Update.
11549 (fputs_unfiltered): Add function.
dfcb27e4 11550
faa17681
IB
115512020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11552
aac66a4c
SM
11553 * gdb/event-loop.c (gdb_wait_for_event): Update.
11554 * gdb/printcmd.c (printf_command): Update.
11555 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11556 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11557 (gdb_os_flush_stderr): Update.
11558 * gdb/remote.c (remote_console_output): Update.
11559 * gdb/ui-file.c (gdb_flush): Rename to...
11560 (ui_file_flush): ...this.
11561 (stderr_file::write): Update.
11562 (stderr_file::puts): Update.
11563 * gdb/ui-file.h (gdb_flush): Rename to...
11564 (ui_file_flush): ...this.
11565 * gdb/utils.c (gdb_flush): Add function.
11566 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11567
5abbbe1d
TT
115682020-02-07 Tom Tromey <tromey@adacore.com>
11569
11570 PR breakpoints/24915:
11571 * source.c (find_and_open_source): Do not check basenames_may_differ.
11572
919adfe8
TT
115732020-02-07 Tom Tromey <tom@tromey.com>
11574
11575 * README: Update gdbserver documentation.
11576 * gdbserver: Move to top level.
11577 * configure.tgt (build_gdbserver): Remove.
11578 * configure.ac: Remove --enable-gdbserver.
11579 * configure: Rebuild.
11580 * Makefile.in (distclean): Don't mention gdbserver.
11581
1d5d29e7
SV
115822020-02-06 Shahab Vahedi <shahab@synopsys.com>
11583
11584 * source-cache.c (source_cache::ensure): Surround
11585 get_plain_source_lines with a try/catch.
11586 (source_cache::get_line_charpos): Get rid of try/catch
11587 and only check for the return value of "ensure".
11588 * tui/tui-source.c (tui_source_window::set_contents):
11589 Simplify "nlines" calculation.
11590
6eb1129c
SV
115912020-02-06 Shahab Vahedi <shahab@synopsys.com>
11592
11593 * MAINTAINERS (Write After Approval): Add myself.
11594
c6a42d11
CB
115952020-02-05 Christian Biesinger <cbiesinger@google.com>
11596
11597 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11598 function call.
11599
c8ecdda6
CB
116002020-02-05 Christian Biesinger <cbiesinger@google.com>
11601
11602 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11603
f6480e70
MR
116042020-02-05 Maciej W. Rozycki <macro@wdc.com>
11605
11606 * nat/riscv-linux-tdesc.h: New file.
11607 * nat/riscv-linux-tdesc.c: New file, taking code from...
11608 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11609 ... here.
11610 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11611 NATDEPFILES.
11612
dcc9fbc6
AB
116132020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11614
11615 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11616 we don't set the fake simulator ptid to the null_ptid.
11617
719546c4
SM
116182020-02-03 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11621 * gdbthread.h (class thread_info) <resumed>: Likewise.
11622 * infrun.c (resume_1): Likewise.
11623 (proceed): Likewise.
11624 (infrun_thread_stop_requested): Likewise.
11625 (stop_all_threads): Likewise.
11626 (handle_inferior_event): Likewise.
11627 (restart_threads): Likewise.
11628 (finish_step_over): Likewise.
11629 (keep_going_stepped_thread): Likewise.
11630 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11631 (linux_handle_extended_wait): Likewise.
11632 * record-btrace.c (get_thread_current_frame_id): Likewise.
11633 * record-full.c (record_full_wait_1): Likewise.
11634 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11635 * target.c (target_resume): Likewise.
11636 * thread.c (set_running_thread): Likewise.
11637
e409c542
AKS
116382020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11639
11640 * f-valprint.c (f77_print_array_1): Changed datatype of index
11641 variable to LONGEST from int to enable it to contain bound
11642 values correctly.
11643
ee98c0da
MR
116442020-02-03 Maciej W. Rozycki <macro@wdc.com>
11645
11646 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11647 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11648 offsets according to FLEN determined.
11649 (riscv_linux_nat_target::read_description): Determine FLEN
11650 dynamically.
11651 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11652 according to FLEN determined.
11653 (riscv_linux_nat_target::store_registers): Likewise.
11654
aa66aac4
SV
116552020-02-01 Shahab Vahedi <shahab@synopsys.com>
11656
11657 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11658 when reg->group is empty and reggroup is not.
11659
fd9faca8
TT
116602020-01-31 Tom Tromey <tromey@adacore.com>
11661
11662 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11663 Call beneath target's mourn_inferior after unpushing.
11664
42330a68
AB
116652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11666
11667 PR tui/9765
11668 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11669 have enough lines to fill the screen, still return the lowest
11670 address we found.
11671
7a27a45b
AB
116722020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11673
11674 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11675 '-', '<', and '>' commands.
11676
c47f70e2
PA
116772020-01-29 Pedro Alves <palves@redhat.com>
11678 Sergio Durigan Junior <sergiodj@redhat.com>
11679
11680 * infcmd.c (construct_inferior_arguments): Assert that
11681 'argc' is greater than 0.
11682
5133a315
LM
116832020-01-29 Luis Machado <luis.machado@linaro.org>
11684
11685 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11686 (BRK_INSN_MASK): Define to 0xd4200000.
11687 (aarch64_program_breakpoint_here_p): New function.
11688 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11689 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11690 breakpoint.c.
11691 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11692 breakpoint.h
11693 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11694 call gdbarch_program_breakpoint_here_p.
11695 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11696 default_program_breakpoint_here_p, changed return type to bool and
11697 simplified.
11698 * breakpoint.h (program_breakpoint_here): Moved prototype to
11699 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11700 return type to bool.
11701 * gdbarch.c: Regenerate.
11702 * gdbarch.h: Regenerate.
11703 * gdbarch.sh (program_breakpoint_here_p): New method.
11704 * infrun.c (handle_signal_stop): Call
11705 gdbarch_program_breakpoint_here_p.
11706
168f8c6b
TT
117072020-01-26 Tom Tromey <tom@tromey.com>
11708
11709 * ctfread.c (struct ctf_fp_info): Reindent.
11710 (_initialize_ctfread): Remove.
11711
128a391f
TT
117122020-01-26 Tom Tromey <tom@tromey.com>
11713
11714 * psymtab.c (partial_map_expand_apply)
11715 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11716 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11717 (psym_print_stats, psym_expand_symtabs_for_function)
11718 (psym_map_symbol_filenames, psym_map_matching_symbols)
11719 (psym_expand_symtabs_matching)
11720 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11721 (maintenance_check_psymtabs): Use new methods.
11722 * psympriv.h (struct partial_symtab) <readin_p,
11723 get_compunit_symtab>: New methods.
11724 <readin, compunit_symtab>: Remove members.
11725 (struct standard_psymtab): New.
11726 (struct legacy_psymtab): Derive from standard_psymtab.
11727 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11728 standard_psymtab.
11729 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11730
0494dbec
TT
117312020-01-26 Tom Tromey <tom@tromey.com>
11732
11733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11734 read_dependencies. Add assert.
11735 * psymtab.c (partial_symtab::read_dependencies): New method.
11736 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11737 method.
11738 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11739 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11740 read_dependencies.
11741 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11742 Add assert.
11743
8566b89b
TT
117442020-01-26 Tom Tromey <tom@tromey.com>
11745
11746 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11747 Call expand_psymtab.
11748 (xcoff_read_symtab): Call expand_psymtab.
11749 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11750 legacy_expand_psymtab.
11751 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11752 method.
11753 (struct legacy_psymtab) <expand_psymtab>: Implement.
11754 <legacy_expand_psymtab>: New member.
11755 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11756 (parse_partial_symbols): Set legacy_expand_psymtab.
11757 (psymtab_to_symtab_1): Change argument order. Call
11758 expand_psymtab.
11759 (new_psymtab): Set legacy_expand_psymtab.
11760 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11761 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11762 expand_psymtab.
11763 (dwarf2_psymtab::expand_psymtab): Rename from
11764 psymtab_to_symtab_1. Call expand_psymtab.
11765 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11766 (dbx_end_psymtab): Likewise.
11767 (dbx_psymtab_to_symtab_1): Change argument order. Call
11768 expand_psymtab.
11769 (dbx_read_symtab): Call expand_psymtab.
11770 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11771 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11772 (ctf_psymtab::read_symtab): Call expand_psymtab.
11773
077cbab2
TT
117742020-01-26 Tom Tromey <tom@tromey.com>
11775
11776 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11777 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11778 messages.
11779 * mdebugread.c (mdebug_read_symtab): Remove prints.
11780 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11781 assert.
11782 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11783
891813be
TT
117842020-01-26 Tom Tromey <tom@tromey.com>
11785
11786 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11787 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11788 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11789 legacy_symtab.
11790 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11791 * psymtab.c (psymtab_to_symtab): Call method.
11792 (dump_psymtab): Update.
11793 * psympriv.h (struct partial_symtab): Add virtual destructor.
11794 <read_symtab>: New method.
11795 (struct legacy_symtab): New.
11796 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11797 (struct pst_map) <pst>: Now a legacy_psymtab.
11798 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11799 (new_psymtab): Use legacy_psymtab.
11800 * dwarf2read.h (struct dwarf2_psymtab): New.
11801 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11802 * dwarf2read.c (dwarf2_create_include_psymtab)
11803 (dwarf2_build_include_psymtabs, create_type_unit_group)
11804 (create_partial_symtab, process_psymtab_comp_unit_reader)
11805 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11806 (set_partial_user): Use dwarf2_psymtab.
11807 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11808 (psymtab_to_symtab_1, process_full_comp_unit)
11809 (process_full_type_unit, dwarf2_ranges_read)
11810 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11811 (dwarf_decode_lines): Use dwarf2_psymtab.
11812 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11813 (add_address_entry_worker, write_one_signatured_type)
11814 (recursively_count_psymbols, recursively_write_psymbols)
11815 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11816 (write_debug_names): Likewise.
11817 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11818 <pst>: Now a legacy_psymtab.
11819 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11820 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11821 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11822 * ctfread.c (struct ctf_psymtab): New.
11823 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11824 ctf_psymtab.
11825 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11826 (create_partial_symtab): Return a ctf_psymtab.
11827 (scan_partial_symbols): Update.
11828
c3693a1d
TT
118292020-01-26 Tom Tromey <tom@tromey.com>
11830
11831 * xcoffread.c (xcoff_start_psymtab): Use new.
11832 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11833 renamed from start_psymtab_common.
11834 * psympriv.h (struct partial_symtab): Add new constructor.
11835 (start_psymtab_common): Don't declare.
11836 * mdebugread.c (parse_partial_symbols): Use new.
11837 * dwarf2read.c (create_partial_symtab): Use new.
11838 * dbxread.c (start_psymtab): Use new.
11839 * ctfread.c (create_partial_symtab): Use new.
11840
32caafd0
TT
118412020-01-26 Tom Tromey <tom@tromey.com>
11842
11843 * xcoffread.c (xcoff_end_psymtab): Use new.
11844 * psymtab.c (start_psymtab_common): Use new.
11845 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11846 Update.
11847 * psympriv.h (struct partial_symtab): Add parameters to
11848 constructor. Don't inline.
11849 (allocate_psymtab): Don't declare.
11850 * mdebugread.c (new_psymtab): Use new.
11851 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11852 * dbxread.c (dbx_end_psymtab): Use new.
11853
abaa2f23
TT
118542020-01-26 Tom Tromey <tom@tromey.com>
11855
11856 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11857 allocate_psymtab. Update documentation.
11858 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11859 allocate_psymtab. Do not use new.
11860 (allocate_psymtab): Use new. Update.
11861
6d94535f
TT
118622020-01-26 Tom Tromey <tom@tromey.com>
11863
11864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11865 * psymtab.c (psym_print_stats): Update.
11866 * psympriv.h (struct partial_symtab) <readin,
11867 psymtabs_addrmap_supported, anonymous>: Now bool.
11868 * mdebugread.c (psymtab_to_symtab_1): Update.
11869 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11870 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11871 (process_full_comp_unit, process_full_type_unit): Update.
11872 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11873 * ctfread.c (psymtab_to_symtab): Update.
11874
6f17252b
TT
118752020-01-26 Tom Tromey <tom@tromey.com>
11876
11877 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11878 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11879 * psymtab.c (psymtab_storage): Delete psymtabs.
11880 (psymtab_storage::allocate_psymtab): Use new.
11881 (psymtab_storage::discard_psymtab): Use delete.
11882 * psympriv.h (struct partial_symtab): Add constructor and
11883 initializers.
11884
f6f1cebc
TT
118852020-01-26 Tom Tromey <tom@tromey.com>
11886
11887 * machoread.c: Do not include psympriv.h.
11888
e47e48f6
PW
118892020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11890
11891 * NEWS: Mention the new option and the set/show commands.
11892
a2fedca9
PW
118932020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11894
11895 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11896 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11897 (validate_exec_file): New variables, enums, functions.
11898 (exec_file_locate_attach, print_section_info): Style the filenames.
11899 (_initialize_exec): Install show_exec_file_mismatch_command and
11900 set_exec_file_mismatch_command.
11901 * gdbcore.h (validate_exec_file): Declare.
11902 * infcmd.c (attach_command): Call validate_exec_file.
11903 * remote.c ( remote_target::remote_add_inferior): Likewise.
11904
7ffa82e1
AB
119052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11906
11907 * frame.c (find_frame_sal): Move call to get_next_frame into more
11908 inner scope.
11909 * inline-frame.c (inilne_state) <inline_state>: Update argument
11910 types.
11911 (inilne_state) <skipped_symbol>: Rename to...
11912 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11913 (skip_inline_frames): Build vector of skipped symbols and use this
11914 to reate the inline_state.
11915 (inline_skipped_symbol): Add a comment and some assertions, fetch
11916 skipped symbol from the list.
11917
3d92a3e3
AB
119182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11919
11920 * buildsym.c (lte_is_less_than): Delete.
11921 (buildsym_compunit::end_symtab_with_blockvector): Create local
11922 lambda function to sort line table entries, and use
11923 std::stable_sort instead of std::sort.
11924 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11925 markers when looking for a previous line.
11926
94a72be7
AB
119272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11928
11929 * dwarf2read.c (lnp_state_machine::record_line): Include
11930 end_sequence parameter in debug print out. Record the line if we
11931 are at an end_sequence marker even if it's not the start of a
11932 statement.
11933 * symmisc.c (maintenance_print_one_line_table): Print end of
11934 sequence markers with 'END' not '0'.
11935
53af73bf
PA
119362020-01-24 Pedro Alves <palves@redhat.com>
11937
11938 PR gdb/25410
11939 * thread.c (scoped_restore_current_thread::restore): Use
11940 switch_to_inferior_no_thread.
11941 * exec.c: Include "progspace-and-thread.h".
11942 (add_target_sections, remove_target_sections):
11943 scoped_restore_current_pspace_and_thread instead of
11944 scoped_restore_current_thread.
11945 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11946 and aspace to the inferior before calling clone_program_space.
11947 Remove stale comment.
11948
3050c6f4
CB
119492020-01-24 Christian Biesinger <cbiesinger@google.com>
11950
11951 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11952 (arm_netbsd_nat_target::fetch_registers): ...this.
11953 (arm_nbsd_nat_target::store_registers): Rename to...
11954 (arm_netbsd_nat_target::store_registers): ...this.
11955
73685c7e
CB
119562020-01-24 Christian Biesinger <cbiesinger@google.com>
11957
11958 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11959 register_t.
11960
89203d40
CB
119612020-01-24 Christian Biesinger <cbiesinger@google.com>
11962
11963 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11964 Update comment.
11965 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11966 Likewise.
11967 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11968 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11969 the correct replacement (iterate_over_regset_sections).
11970 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11971 Update comment.
11972
1ba1ac88
AB
119732020-01-24 Graham Markall <graham.markall@embecosm.com>
11974
11975 PR gdb/23718
11976 * gdb/python/python.c (execute_gdb_command): Call
11977 async_enable_stdin in catch block.
11978
f3364a6d
AB
119792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11980
11981 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11982 SWITCH_THRU_ALL_UIS.
11983
733d0a67
AB
119842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11985
11986 PR tui/9765
11987 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11988 comment, add extra parameter, and update to store previous symbol
11989 when appropriate.
11990 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11991 add extra parameter.
11992 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11993 remove unneeded parameter, add try/catch around gdb_print_insn,
11994 rewrite to add items to asm_lines vector.
11995 (tui_find_backward_disassembly_start_address): New function.
11996 (tui_find_disassembly_address): Updated throughout.
11997 (tui_disasm_window::set_contents): Update for changes to
11998 tui_disassemble.
11999 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12000 number of lines to scroll.
12001
b3b3bada
SM
120022020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12003
12004 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12005 (SECT_OFF_DATA): Likewise.
12006 (SECT_OFF_RODATA): Likewise.
12007 (SECT_OFF_TEXT): Likewise.
12008 (SECT_OFF_BSS): Likewise.
12009 (struct objfile) <text_section_offset, data_section_offset>: New
12010 methods.
12011 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12012 objfile::text_section_offset.
12013 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12014 * coffread.c (coff_symtab_read): Likewise.
12015 (enter_linenos): Likewise.
12016 (process_coff_symbol): Likewise.
12017 * ctfread.c (get_objfile_text_range): Likewise.
12018 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12019 Use objfile::data_section_offset.
12020 * dwarf2-frame.c (execute_cfa_program): Use
12021 objfile::text_section_offset.
12022 (dwarf2_frame_find_fde): Likewise.
12023 * dwarf2read.c (create_addrmap_from_index): Likewise.
12024 (create_addrmap_from_aranges): Likewise.
12025 (dw2_find_pc_sect_compunit_symtab): Likewise.
12026 (process_psymtab_comp_unit_reader): Likewise.
12027 (add_partial_symbol): Likewise.
12028 (add_partial_subprogram): Likewise.
12029 (process_full_comp_unit): Likewise.
12030 (read_file_scope): Likewise.
12031 (read_func_scope): Likewise.
12032 (read_lexical_block_scope): Likewise.
12033 (read_call_site_scope): Likewise.
12034 (dwarf2_rnglists_process): Likewise.
12035 (dwarf2_ranges_process): Likewise.
12036 (dwarf2_ranges_read): Likewise.
12037 (dwarf_decode_lines_1): Likewise.
12038 (new_symbol): Likewise.
12039 (dwarf2_fetch_die_loc_sect_off): Likewise.
12040 (dwarf2_per_cu_text_offset): Likewise.
12041 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12042 * hppa-tdep.c (read_unwind_info): Likewise.
12043 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12044 * psympriv.h (struct partial_symtab): Likewise.
12045 * psymtab.c (find_pc_sect_psymtab): Likewise.
12046 * solib-svr4.c (enable_break): Likewise.
12047 * stap-probe.c (relocate_address): Use
12048 objfile::data_section_offset.
12049 * xcoffread.c (enter_line_range): Use
12050 objfile::text_section_offset.
12051 (read_xcoff_symtab): Likewise.
12052
ab53f382
SM
120532020-01-23 Simon Marchi <simon.marchi@efficios.com>
12054
12055 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12056 declaration to narrower scopes.
12057
e7eee665
SM
120582020-01-23 Simon Marchi <simon.marchi@efficios.com>
12059
12060 * darwin-nat.h (struct darwin_exception_msg, enum
12061 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12062 Move up.
12063 (class darwin_nat_target) <wait_1, check_new_threads,
12064 decode_exception_message, decode_message, stop_inferior,
12065 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12066 * darwin-nat.c (darwin_check_new_threads): Rename to...
12067 (darwin_nat_target::check_new_threads): ... this.
12068 (darwin_suspend_inferior_it): Remove.
12069 (darwin_decode_exception_message): Rename to...
12070 (darwin_nat_target::decode_exception_message): ... this.
12071 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12072 (darwin_decode_message): Rename to...
12073 (darwin_nat_target::decode_message): ... this.
12074 (cancel_breakpoint): Rename to...
12075 (darwin_nat_target::cancel_breakpoint): ... this.
12076 (darwin_wait): Rename to...
12077 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12078 instead of iterate_over_inferiors.
12079 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12080 (darwin_stop_inferior): Rename to...
12081 (darwin_nat_target::stop_inferior): ... this.
12082 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12083 (darwin_init_thread_list): Rename to...
12084 (darwin_nat_target::init_thread_list): ... this.
12085 (darwin_ptrace_him): Rename to...
12086 (darwin_nat_target::ptrace_him): ... this.
12087 (darwin_nat_target::create_inferior): Pass lambda function to
12088 fork_inferior.
12089 (darwin_nat_target::detach): Call stop_inferior instead of
12090 darwin_stop_inferior.
12091 * fork-inferior.h (fork_inferior): Change init_trace_fun
12092 parameter to gdb::function_view.
12093 * fork-inferior.c (fork_inferior): Likewise.
12094
c162ed3e
HD
120952020-01-23 Hannes Domani <ssbssa@yahoo.de>
12096
12097 * i386-cygwin-tdep.c (core_process_module_section): Update.
12098 * windows-nat.c (struct lm_info_windows): Add text_offset.
12099 (windows_xfer_shared_libraries): Update.
12100 * windows-tdep.c (windows_xfer_shared_library):
12101 Add text_offset_cached argument.
12102 * windows-tdep.h (windows_xfer_shared_library): Update.
12103
a1237872
SM
121042020-01-21 Simon Marchi <simon.marchi@efficios.com>
12105
12106 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12107
b3ee6dd9
SM
121082020-01-21 Simon Marchi <simon.marchi@efficios.com>
12109
12110 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12111 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12112 replace with range-based for.
12113 (gdbsim_interrupt_inferior): Remove.
12114 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12115 with a range-based for. Inline code from
12116 gdbsim_interrupt_inferior.
12117
f9fac3c8
SM
121182020-01-21 Simon Marchi <simon.marchi@efficios.com>
12119
12120 * infrun.c (proceed): Fix indentation.
12121
f6474de9
TT
121222020-01-21 Tom Tromey <tromey@adacore.com>
12123
12124 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12125 * python/python.c (python_extension_ops): Update.
12126 (gdbpy_colorize): New function.
12127 * python/lib/gdb/__init__.py (colorize): New function.
12128 * extension.h (ext_lang_colorize): Declare.
12129 * extension.c (ext_lang_colorize): New function.
12130 * extension-priv.h (struct extension_language_ops) <colorize>: New
12131 member.
12132 * cli/cli-style.c (_initialize_cli_style): Update help text.
12133
f0c702d4
LM
121342020-01-21 Luis Machado <luis.machado@linaro.org>
12135
12136 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12137 <cond>: Change type to bool.
12138 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12139 (aarch64_displaced_step_cb): Likewise.
12140 (aarch64_displaced_step_tb): Likewise.
12141
1ab139e5
LM
121422020-01-21 Luis Machado <luis.machado@linaro.org>
12143
12144 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12145 output.
12146
0c271889
LM
121472020-01-21 Luis Machado <luis.machado@linaro.org>
12148
12149 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12150 <pc_adjust>: Adjust the documentation.
12151 (aarch64_displaced_step_fixup): Check if PC really moved before
12152 adjusting it.
12153
4d89c1c7
TT
121542020-01-19 Tom Tromey <tom@tromey.com>
12155
12156 * disasm.c (~gdb_disassembler): New destructor.
12157 (gdb_buffered_insn_length): Call disassemble_free_target.
12158 * disasm.h (class gdb_disassembler): Declare destructor. Use
12159 DISABLE_COPY_AND_ASSIGN.
12160
c0ab21c2
TT
121612020-01-19 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12164 (die_reader_func_ftype): Remove.
12165 (cutu_reader): New class.
12166 (dw2_get_file_names_reader): Remove "data" parameter.
12167 (dw2_get_file_names): Use cutu_reader.
12168 (create_debug_type_hash_table): Update.
12169 (read_cutu_die_from_dwo): Update comment.
12170 (lookup_dwo_unit): Add dwo_name parameter.
12171 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12172 die_reader_func_ftype and data parameters.
12173 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12174 Remove die_reader_func_ftype and data parameters.
12175 (~cutu_reader): New; from init_cutu_and_read_dies.
12176 (cutu_reader::cutu_reader): Rename from
12177 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12178 and data parameters.
12179 (init_cutu_and_read_dies_simple): Remove.
12180 (struct process_psymtab_comp_unit_data): Remove.
12181 (process_psymtab_comp_unit_reader): Remove data parameter; add
12182 want_partial_unit and pretend_language parameters.
12183 (process_psymtab_comp_unit): Use cutu_reader.
12184 (build_type_psymtabs_reader): Remove data parameter.
12185 (build_type_psymtabs_1): Use cutu_reader.
12186 (process_skeletonless_type_unit): Likewise.
12187 (load_partial_comp_unit_reader): Remove.
12188 (load_partial_comp_unit): Use cutu_reader.
12189 (load_full_comp_unit_reader): Remove.
12190 (load_full_comp_unit): Use cutu_reader.
12191 (struct create_dwo_cu_data): Remove.
12192 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12193 dwo_unit parameters.
12194 (create_cus_hash_table): Use cutu_reader.
12195 (struct dwarf2_read_addr_index_data): Remove.
12196 (dwarf2_read_addr_index_reader): Remove.
12197 (dwarf2_read_addr_index): Use cutu_reader.
12198 (read_signatured_type_reader): Remove.
12199 (read_signatured_type): Use cutu_reader.
12200
45bbae5c
TT
122012020-01-19 Tom Tromey <tom@tromey.com>
12202
12203 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12204 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12205 (tui_wrefresh): Declare.
12206 * tui/tui-wingeneral.c (suppress_output): New global.
12207 (tui_suppress_output, ~tui_suppress_output): New constructor and
12208 destructor.
12209 (tui_wrefresh): New function.
12210 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12211 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12212 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12213 method.
12214 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12215 tui_wrefresh.
12216 (tui_data_window::no_refresh): New method.
12217 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12218 (tui_reg_command): Use tui_suppress_output
12219 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12220 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12221 method.
12222 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12223
4f13c1c0
TT
122242020-01-19 Tom Tromey <tom@tromey.com>
12225
12226 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12227 Handle case where symtab is null.
12228
fa47e446
SM
122292020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12230
12231 * linux-fork.c (one_fork_p): Simplify.
12232
26f42329
SM
122332020-01-17 Simon Marchi <simon.marchi@efficios.com>
12234
12235 * top.c (struct qt_args): Remove.
12236 (kill_or_detach): Change return type to void, replace `void *`
12237 parameter with a proper one.
12238 (print_inferior_quit_action): Likewise.
12239 (quit_confirm): Use range-based for loop to iterate over inferiors.
12240 (quit_force): Likewise.
12241
a9ac81b1
SM
122422020-01-17 Simon Marchi <simon.marchi@efficios.com>
12243
12244 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12245 `void *` parameter with proper parameters.
12246 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12247 (print_one_inferior): Change return type to void, replace `void *`
12248 parameter with proper parameters.
12249 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12250 inferiors.
12251 (get_other_inferior): Remove.
12252 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12253 inferiors.
12254
788eca49
SM
122552020-01-17 Simon Marchi <simon.marchi@efficios.com>
12256
12257 * mi/mi-interp.c (report_initial_inferior): Remove.
12258 (mi_interp::init): Use range-based for to iterate over inferiors.
12259
d9bc85b6
SM
122602020-01-17 Simon Marchi <simon.marchi@efficios.com>
12261
12262 * python/py-inferior.c (build_inferior_list): Remove.
12263 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12264
40c94099
CB
122652020-01-16 Christian Biesinger <cbiesinger@google.com>
12266
12267 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12268 (btrace_stitch_trace): Likewise.
12269 * charset.c (intermediate_encoding): Likewise (vaild).
12270 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12271 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12272 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12273
e0cdfe3c
HD
122742020-01-16 Hannes Domani <ssbssa@yahoo.de>
12275
12276 * windows-tdep.c (windows_get_tlb_type):
12277 Add rtl_user_process_parameters type.
12278
790f1718 122792020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12280 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12281
12282 PR build/24805
12283 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12284 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12285 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12286 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12287 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12288 (ps_plog): Redeclare exported functions with default visibility.
12289
3112ed97
NA
122902020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12291
12292 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12293 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12294
8dc3273e
SM
122952020-01-15 Simon Marchi <simon.marchi@efficios.com>
12296
12297 * infcmd.c (post_create_inferior): Use get_thread_regcache
12298 instead of get_current_regcache.
12299
ff47f4f0
TT
123002020-01-14 Tom Tromey <tom@tromey.com>
12301
12302 PR symtab/12535:
12303 * python/python.c (gdbpy_decode_line): Treat empty string the same
12304 as no argument.
12305
975f45b7
TT
123062020-01-14 Tom Tromey <tom@tromey.com>
12307
12308 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12309
25e57356
TT
123102020-01-14 Tom Tromey <tom@tromey.com>
12311
12312 * nat/linux-btrace.c: Don't include <config.h>.
12313 * nat/linux-ptrace.c: Don't include <config.h>.
12314 * nat/x86-linux-dregs.c: Don't include <config.h>.
12315
05ea2a05
TT
123162020-01-14 Tom Tromey <tom@tromey.com>
12317
12318 * configure: Rebuild.
12319 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12320
01027315
TT
123212020-01-14 Tom Tromey <tom@tromey.com>
12322
12323 * nat/x86-linux-dregs.c: Include configh.h.
12324 * nat/linux-ptrace.c: Include configh.h.
12325 * nat/linux-btrace.c: Include configh.h.
12326 * defs.h: Include config.h, bfd.h.
12327 * configure.ac: Don't source common.host.
12328 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12329 * configure: Rebuild.
12330 * acinclude.m4: Update path.
12331 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12332 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12333 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12334 (CLIBS): Add LIBSUPPORT.
12335 (CDEPS): Likewise.
12336 (COMMON_SFILES): Remove gdbsupport files.
12337 (HFILES_NO_SRCDIR): Likewise.
12338 (stamp-version): Update path to create-version.sh.
12339 (ALLDEPFILES): Remove gdbsupport files.
12340
b2ceabe8
TT
123412020-01-14 Tom Tromey <tom@tromey.com>
12342
12343 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12344 USE_WIN32API when needed.
12345 * configure.ac (USE_WIN32API): Don't define.
12346 (WIN32LIBS): Use WIN32APILIBS.
12347 * configure: Rebuild.
12348
25c51f71
TT
123492020-01-14 Tom Tromey <tom@tromey.com>
12350
12351 * configure: Rebuild.
12352 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12353
717c684d
BE
123542020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12355
12356 * skip.c (skip_function_command): Make skip w/o arguments use the
12357 name of the inlined function if pc is inside any inlined function.
12358
7da6a5b9
LM
123592020-01-14 Luis Machado <luis.machado@linaro.org>
12360
12361 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12362 * infrun.c (resume_1): Likewise.
12363 (handle_inferior_event): Remove stale comment.
12364 * linux-nat.c (linux_nat_target::resume): Update comments.
12365 (save_stop_reason): Likewise.
12366 (linux_nat_filter_event): Likewise.
12367 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12368
44e4c775
AB
123692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12370
12371 * elfread.c (record_minimal_symbol): Set section index to 0 for
12372 non-allocatable sections.
12373
18a8505e
AT
12374
123752020-01-13 Ali Tamur <tamur@google.com>
12376
12377 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12378 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12379 to gdb::optional. Update comments.
12380 (dwo_file): Update comments.
12381 (read_attribute): Update API to take an additional out parameter,
12382 need_reprocess. This is used to mark attributes that need other
12383 attributes (e.g. str_offsets_base) for correct computation which may not
12384 have been read yet.
12385 (read_attribute_reprocess): New function declaration.
12386 (read_addr_index): Likewise.
12387 (read_dwo_str_index): Likewise.
12388 (read_stub_str_index): Likewise.
12389 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12390 (lookup_addr_base): New function definition.
12391 (lookup_ranges_base): Likewise.
12392 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12393 lookup_ranges_base.
12394 (init_cutu_and_read_dies): Update comments.
12395 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12396 unit. This is used to inherit parent's str_offsets_base and addr_base.
12397 Update comments.
12398 (init_cutu_and_read_dies_simple): Reflect API changes.
12399 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12400 (create_cus_hash_table): Change API to take parent compile unit.
12401 Reflect API changes.
12402 (open_and_init_dwo_file): Reflect API changes.
12403 (dwarf2_get_pc_bounds): Update comments.
12404 (dwarf2_record_block_ranges): Likewise.
12405 (read_full_die_1): Change implementation to reprocess attributes that
12406 need str_offsets_base and addr_base.
12407 (partial_die_info::read): Likewise.
12408 (read_attribute_reprocess): New function definition.
12409 (read_attribute_value): Change API to take an additional out parameter,
12410 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12411 when a non-dwo compile unit has index based attributes.
12412 (read_attribute): Reflect API changes.
12413 (read_addr_index_1): Reflect API changes. Update comments.
12414 (dwarf2_read_addr_index_data): Reflect API changes.
12415 (dwarf2_read_addr_index): Likewise.
12416 (read_str_index): Change API and implementation. This becomes a helper
12417 to be used by the new string index related methods. Update error
12418 message and comments.
12419 (read_dwo_str_index): New function definition.
12420 (read_stub_str_index): Likewise.
12421 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12422 * symfile.h (dwarf2_debug_sections): Likewise.
12423 * xcoffread.c (dwarf2_debug_sections): Likewise.
12424
0cac9354
SM
124252020-01-13 Simon Marchi <simon.marchi@efficios.com>
12426
12427 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12428 core_reg_sect type to gdb_byte *.
12429 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12430 * cris-tdep.c (fetch_core_registers): Likewise.
12431 * corelow.c (core_target::get_core_register_section): Change
12432 type of `contents` to gdb::byte_vector.
12433
9a6d629c
AB
124342020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12435
12436 * tui/tui-wingeneral.c (box_win): Position the title in the center
12437 of the border.
12438
d8b2f9e3
SM
124392020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12440
12441 * corelow.c (core_target::get_core_register_section): Use
12442 std::vector instead of alloca.
12443
bb564c58
SM
124442020-01-13 Simon Marchi <simon.marchi@efficios.com>
12445
12446 * warning.m4: Add -Wmissing-declarations to build_warnings.
12447 * configure: Re-generate.
12448
6b366111
SM
124492020-01-13 Simon Marchi <simon.marchi@efficios.com>
12450
12451 * python/python.c (init__gdb_module): Add declaration.
12452
6c265988
SM
124532020-01-13 Simon Marchi <simon.marchi@efficios.com>
12454
12455 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12456 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12457 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12458 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12459 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12460 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12461 * ada-exp.y (_initialize_ada_exp): Add declaration.
12462 * ada-lang.c (_initialize_ada_language): Add declaration.
12463 * ada-tasks.c (_initialize_tasks): Add declaration.
12464 * agent.c (_initialize_agent): Add declaration.
12465 * aix-thread.c (_initialize_aix_thread): Add declaration.
12466 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12467 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12468 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12469 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12470 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12471 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12472 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12473 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12474 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12475 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12476 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12477 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12478 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12479 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12480 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12481 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12482 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12483 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12484 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12485 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12486 * annotate.c (_initialize_annotate): Add declaration.
12487 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12488 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12489 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12490 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12491 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12492 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12493 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12494 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12495 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12496 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12497 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12498 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12499 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12500 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12501 * auto-load.c (_initialize_auto_load): Add declaration.
12502 * auxv.c (_initialize_auxv): Add declaration.
12503 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12504 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12505 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12506 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12507 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12508 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12509 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12510 * breakpoint.c (_initialize_breakpoint): Add declaration.
12511 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12512 * btrace.c (_initialize_btrace): Add declaration.
12513 * charset.c (_initialize_charset): Add declaration.
12514 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12515 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12516 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12517 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12518 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12519 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12520 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12521 * coffread.c (_initialize_coffread): Add declaration.
12522 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12523 * compile/compile.c (_initialize_compile): Add declaration.
12524 * complaints.c (_initialize_complaints): Add declaration.
12525 * completer.c (_initialize_completer): Add declaration.
12526 * copying.c (_initialize_copying): Add declaration.
12527 * corefile.c (_initialize_core): Add declaration.
12528 * corelow.c (_initialize_corelow): Add declaration.
12529 * cp-abi.c (_initialize_cp_abi): Add declaration.
12530 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12531 * cp-support.c (_initialize_cp_support): Add declaration.
12532 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12533 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12534 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12535 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12536 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12537 * ctfread.c (_initialize_ctfread): Add declaration.
12538 * d-lang.c (_initialize_d_language): Add declaration.
12539 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12540 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12541 * dbxread.c (_initialize_dbxread): Add declaration.
12542 * dcache.c (_initialize_dcache): Add declaration.
12543 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12544 * disasm.c (_initialize_disasm): Add declaration.
12545 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12546 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12547 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12548 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12549 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12550 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12551 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12552 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12553 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12554 * elfread.c (_initialize_elfread): Add declaration.
12555 * exec.c (_initialize_exec): Add declaration.
12556 * extension.c (_initialize_extension): Add declaration.
12557 * f-lang.c (_initialize_f_language): Add declaration.
12558 * f-valprint.c (_initialize_f_valprint): Add declaration.
12559 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12560 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12561 * filesystem.c (_initialize_filesystem): Add declaration.
12562 * findcmd.c (_initialize_mem_search): Add declaration.
12563 * findvar.c (_initialize_findvar): Add declaration.
12564 * fork-child.c (_initialize_fork_child): Add declaration.
12565 * frame-base.c (_initialize_frame_base): Add declaration.
12566 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12567 * frame.c (_initialize_frame): Add declaration.
12568 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12569 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12570 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12571 * gcore.c (_initialize_gcore): Add declaration.
12572 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12573 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12574 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12575 * gdbarch.c (_initialize_gdbarch): Add declaration.
12576 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12577 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12578 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12579 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12580 * go-lang.c (_initialize_go_language): Add declaration.
12581 * go32-nat.c (_initialize_go32_nat): Add declaration.
12582 * guile/guile.c (_initialize_guile): Add declaration.
12583 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12584 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12585 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12586 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12587 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12588 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12589 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12590 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12591 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12592 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12593 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12594 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12595 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12596 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12597 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12598 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12599 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12600 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12601 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12602 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12603 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12604 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12605 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12606 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12607 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12608 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12609 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12610 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12611 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12612 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12613 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12614 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12615 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12616 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12617 * infcall.c (_initialize_infcall): Add declaration.
12618 * infcmd.c (_initialize_infcmd): Add declaration.
12619 * inflow.c (_initialize_inflow): Add declaration.
12620 * infrun.c (_initialize_infrun): Add declaration.
12621 * interps.c (_initialize_interpreter): Add declaration.
12622 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12623 * jit.c (_initialize_jit): Add declaration.
12624 * language.c (_initialize_language): Add declaration.
12625 * linux-fork.c (_initialize_linux_fork): Add declaration.
12626 * linux-nat.c (_initialize_linux_nat): Add declaration.
12627 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12628 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12629 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12630 * m2-lang.c (_initialize_m2_language): Add declaration.
12631 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12632 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12633 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12634 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12635 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12636 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12637 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12638 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12639 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12640 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12641 * machoread.c (_initialize_machoread): Add declaration.
12642 * macrocmd.c (_initialize_macrocmd): Add declaration.
12643 * macroscope.c (_initialize_macroscope): Add declaration.
12644 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12645 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12646 * maint.c (_initialize_maint_cmds): Add declaration.
12647 * mdebugread.c (_initialize_mdebugread): Add declaration.
12648 * memattr.c (_initialize_mem): Add declaration.
12649 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12650 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12651 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12652 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12653 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12654 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12655 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12656 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12657 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12658 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12659 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12660 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12661 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12662 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12663 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12664 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12665 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12666 * mipsread.c (_initialize_mipsread): Add declaration.
12667 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12668 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12669 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12670 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12671 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12672 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12673 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12674 * nto-procfs.c (_initialize_procfs): Add declaration.
12675 * objc-lang.c (_initialize_objc_language): Add declaration.
12676 * observable.c (_initialize_observer): Add declaration.
12677 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12678 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12679 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12680 * osabi.c (_initialize_gdb_osabi): Add declaration.
12681 * osdata.c (_initialize_osdata): Add declaration.
12682 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12683 * parse.c (_initialize_parse): Add declaration.
12684 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12685 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12686 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12687 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12688 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12689 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12690 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12691 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12692 * printcmd.c (_initialize_printcmd): Add declaration.
12693 * probe.c (_initialize_probe): Add declaration.
12694 * proc-api.c (_initialize_proc_api): Add declaration.
12695 * proc-events.c (_initialize_proc_events): Add declaration.
12696 * proc-service.c (_initialize_proc_service): Add declaration.
12697 * procfs.c (_initialize_procfs): Add declaration.
12698 * producer.c (_initialize_producer): Add declaration.
12699 * psymtab.c (_initialize_psymtab): Add declaration.
12700 * python/python.c (_initialize_python): Add declaration.
12701 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12702 * record-btrace.c (_initialize_record_btrace): Add declaration.
12703 * record-full.c (_initialize_record_full): Add declaration.
12704 * record.c (_initialize_record): Add declaration.
12705 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12706 * regcache.c (_initialize_regcache): Add declaration.
12707 * reggroups.c (_initialize_reggroup): Add declaration.
12708 * remote-notif.c (_initialize_notif): Add declaration.
12709 * remote-sim.c (_initialize_remote_sim): Add declaration.
12710 * remote.c (_initialize_remote): Add declaration.
12711 * reverse.c (_initialize_reverse): Add declaration.
12712 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12713 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12714 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12715 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12716 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12717 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12718 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12719 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12720 Add declaration.
12721 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12722 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12723 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12724 * rust-exp.y (_initialize_rust_exp): Add declaration.
12725 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12726 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12727 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12728 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12729 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12730 * score-tdep.c (_initialize_score_tdep): Add declaration.
12731 * ser-go32.c (_initialize_ser_dos): Add declaration.
12732 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12733 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12734 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12735 * ser-uds.c (_initialize_ser_socket): Add declaration.
12736 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12737 * serial.c (_initialize_serial): Add declaration.
12738 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12739 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12740 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12741 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12742 * skip.c (_initialize_step_skip): Add declaration.
12743 * sol-thread.c (_initialize_sol_thread): Add declaration.
12744 * solib-aix.c (_initialize_solib_aix): Add declaration.
12745 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12746 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12747 * solib-frv.c (_initialize_frv_solib): Add declaration.
12748 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12749 * solib-target.c (_initialize_solib_target): Add declaration.
12750 * solib.c (_initialize_solib): Add declaration.
12751 * source-cache.c (_initialize_source_cache): Add declaration.
12752 * source.c (_initialize_source): Add declaration.
12753 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12754 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12755 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12756 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12757 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12758 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12759 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12760 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12761 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12762 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12763 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12764 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12765 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12766 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12767 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12768 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12769 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12770 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12771 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12772 * stabsread.c (_initialize_stabsread): Add declaration.
12773 * stack.c (_initialize_stack): Add declaration.
12774 * stap-probe.c (_initialize_stap_probe): Add declaration.
12775 * std-regs.c (_initialize_frame_reg): Add declaration.
12776 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12777 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12778 * symfile.c (_initialize_symfile): Add declaration.
12779 * symmisc.c (_initialize_symmisc): Add declaration.
12780 * symtab.c (_initialize_symtab): Add declaration.
12781 * target.c (_initialize_target): Add declaration.
12782 * target-connection.c (_initialize_target_connection): Add
12783 declaration.
12784 * target-dcache.c (_initialize_target_dcache): Add declaration.
12785 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12786 * thread.c (_initialize_thread): Add declaration.
12787 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12788 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12789 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12790 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12791 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12792 * tracectf.c (_initialize_ctf): Add declaration.
12793 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12794 * tracefile.c (_initialize_tracefile): Add declaration.
12795 * tracepoint.c (_initialize_tracepoint): Add declaration.
12796 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12797 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12798 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12799 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12800 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12801 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12802 * tui/tui.c (_initialize_tui): Add declaration.
12803 * typeprint.c (_initialize_typeprint): Add declaration.
12804 * ui-style.c (_initialize_ui_style): Add declaration.
12805 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12806 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12807 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12808 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12809 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12810 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12811 * unittests/filtered_iterator-selftests.c
12812 (_initialize_filtered_iterator_selftests): Add declaration.
12813 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12814 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12815 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12816 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12817 * unittests/main-thread-selftests.c
12818 (_initialize_main_thread_selftests): Add declaration.
12819 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12820 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12821 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12822 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12823 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12824 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12825 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12826 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12827 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12828 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12829 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12830 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12831 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12832 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12833 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12834 declaration.
12835 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12836 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12837 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12838 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12839 * user-regs.c (_initialize_user_regs): Add declaration.
12840 * utils.c (_initialize_utils): Add declaration.
12841 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12842 * valops.c (_initialize_valops): Add declaration.
12843 * valprint.c (_initialize_valprint): Add declaration.
12844 * value.c (_initialize_values): Add declaration.
12845 * varobj.c (_initialize_varobj): Add declaration.
12846 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12847 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12848 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12849 * windows-nat.c (_initialize_windows_nat): Add declaration.
12850 (_initialize_check_for_gdb_ini): Add declaration.
12851 (_initialize_loadable): Add declaration.
12852 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12853 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12854 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12855 * xcoffread.c (_initialize_xcoffread): Add declaration.
12856 * xml-support.c (_initialize_xml_support): Add declaration.
12857 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12858 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12859 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12860 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12861
e2de1eec
SM
128622020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12863
12864 * regformats/regdat.sh: Generate declaration for init function.
12865
e0037b4c
SM
128662020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12867
12868 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12869 up.
12870 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12871 close_one_inferior>: New methods.
12872 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12873 pass down target to find_inferior_pid.
12874 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12875 Pass down target to find_inferior_ptid.
12876 (gdbsim_target::create_inferior): Pass down target to
12877 add_thread_silent.
12878 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12879 target down to find_inferior_ptid and switch_to_thread.
12880 (gdbsim_target::close): Update to call close_one_inferior.
12881 (struct resume_data): Remove.
12882 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12883 directly, rather than through a void pointer.
12884 (gdbsim_target::resume): Update to call resume_one_inferior.
12885
58920b5b
SM
128862020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12887
12888 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12889
4ec89149
PA
128902020-01-12 Pedro Alves <palves@redhat.com>
12891
12892 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12893 directly for the current inferior instead of
12894 discard_all_inferiors.
12895 (discard_all_inferiors): Delete.
12896
7c392d1d
TT
128972020-01-11 Tom Tromey <tom@tromey.com>
12898
12899 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12900 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12901 deprecated_safe_get_selected_frame.
12902
d9ebdab7
TBA
129032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12904
12905 * inferior.c (print_inferior): Switch inferior before printing it.
12906
f3c469b9
PA
129072020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12908 Pedro Alves <palves@redhat.com>
12909
12910 * progspace-and-thread.c (switch_to_program_space_and_thread):
12911 Assert there's an inferior for PSPACE. Use
12912 switch_to_inferior_no_thread to switch the inferior too.
12913 * progspace.c (program_space::~program_space): Call
12914 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12915 (program_space::free_all_objfiles): Don't call clear_symtab_users
12916 here.
12917 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12918
65c574f6
PA
129192020-01-10 Pedro Alves <palves@redhat.com>
12920
12921 * NEWS: Mention multi-target debugging, "info connections", and
12922 "add-inferior -no-connection".
12923
2f4fcf00
PA
129242020-01-10 Pedro Alves <palves@redhat.com>
12925
12926 * infrun.c: Include "target-connection.h".
12927 (check_multi_target_resumption): New.
12928 (proceed): Call it.
12929 * target-connection.c (make_target_connection_string): Make
12930 extern.
12931 * target-connection.h (make_target_connection_string): Declare.
12932
121b3efd
PA
129332020-01-10 Pedro Alves <palves@redhat.com>
12934
12935 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12936 * inferior.c (uiout_field_connection): New function.
12937 (print_inferior): Add new "connection-id" column.
12938 (add_inferior_command): Show connection number/string of added
12939 inferior.
12940 * process-stratum-target.h
12941 (process_stratum_target::connection_string): New virtual method.
12942 (process_stratum_target::connection_number): New field.
12943 * remote.c (remote_target::connection_string): New override.
12944 * target-connection.c: New file.
12945 * target-connection.h: New file.
12946 * target.c (decref_target): Remove process_stratum targets from
12947 the connection list.
12948 (target_stack::push): Add process_stratum targets to the
12949 connection list.
12950
4f837581
PA
129512020-01-10 Pedro Alves <palves@redhat.com>
12952
12953 Revert:
12954 2016-04-12 Pedro Alves <palves@redhat.com>
12955 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12956 Remove references to name.
12957 * serial.h (struct serial) <name>: Delete.
12958
f4ec508e
PA
129592020-01-10 Pedro Alves <palves@redhat.com>
12960
12961 * gdbarch-selftests.c (register_to_value_test): Remove "target
12962 already pushed" check.
12963
5b6d1e4f
PA
129642020-01-10 Pedro Alves <palves@redhat.com>
12965 John Baldwin <jhb@FreeBSD.org>
12966
12967 * aarch64-linux-nat.c
12968 (aarch64_linux_nat_target::thread_architecture): Adjust.
12969 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12970 (task_command_1): Likewise.
12971 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12972 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12973 (aix_thread_target::store_registers)
12974 (aix_thread_target::thread_alive): Adjust.
12975 * amd64-fbsd-tdep.c: Include "inferior.h".
12976 (amd64fbsd_get_thread_local_address): Pass down target.
12977 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12978 thread's gdbarch instead of target_gdbarch.
12979 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12980 get_last_target_status.
12981 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12982 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12983 inferiors.
12984 (update_inserted_breakpoint_locations): Skip if inferiors with no
12985 execution.
12986 (update_global_location_list): When handling moribund locations,
12987 find representative inferior for location's pspace, and use thread
12988 count of its process_stratum target.
12989 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12990 * bsd-uthread.c (bsd_uthread_target::wait): Use
12991 as_process_stratum_target and adjust thread_change_ptid and
12992 add_thread calls.
12993 (bsd_uthread_target::update_thread_list): Use
12994 as_process_stratum_target and adjust find_thread_ptid,
12995 thread_change_ptid and add_thread calls.
12996 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12997 find_thread_ptid call.
12998 * corelow.c (add_to_thread_list): Adjust add_thread call.
12999 (core_target_open): Adjust add_thread_silent and thread_count
13000 calls.
13001 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13002 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13003 * event-top.c (async_disconnect): Pop targets from all inferiors.
13004 * exec.c (add_target_sections): Push exec target on all inferiors
13005 sharing the program space.
13006 (remove_target_sections): Remove the exec target from all
13007 inferiors sharing the program space.
13008 (exec_on_vfork): New.
13009 * exec.h (exec_on_vfork): Declare.
13010 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13011 Pass it down.
13012 (fbsd_nat_target::update_thread_list): Adjust.
13013 (fbsd_nat_target::resume): Adjust.
13014 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13015 down.
13016 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13017 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13018 get_thread_arch_regcache call.
13019 * fork-child.c (gdb_startup_inferior): Pass target down to
13020 startup_inferior and set_executing.
13021 * gdbthread.h (struct process_stratum_target): Forward declare.
13022 (add_thread, add_thread_silent, add_thread_with_info)
13023 (in_thread_list): Add process_stratum_target parameter.
13024 (find_thread_ptid(inferior*, ptid_t)): New overload.
13025 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13026 parameter.
13027 (all_threads()): Delete overload.
13028 (all_threads, all_non_exited_threads): Add process_stratum_target
13029 parameter.
13030 (all_threads_safe): Use brace initialization.
13031 (thread_count): Add process_stratum_target parameter.
13032 (set_resumed, set_running, set_stop_requested, set_executing)
13033 (threads_are_executing, finish_thread_state): Add
13034 process_stratum_target parameter.
13035 (switch_to_thread): Use is_current_thread.
13036 * i386-fbsd-tdep.c: Include "inferior.h".
13037 (i386fbsd_get_thread_local_address): Pass down target.
13038 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13039 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13040 have_inferiors check.
13041 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13042 (inf_ptrace_target::attach): Adjust.
13043 * infcall.c (run_inferior_call): Adjust.
13044 * infcmd.c (run_command_1): Pass target to
13045 scoped_finish_thread_state.
13046 (proceed_thread_callback): Skip inferiors with no execution.
13047 (continue_command): Rename 'all_threads' local to avoid hiding
13048 'all_threads' function. Adjust get_last_target_status call.
13049 (prepare_one_step): Adjust set_running call.
13050 (signal_command): Use user_visible_resume_target. Compare thread
13051 pointers instead of inferior_ptid.
13052 (info_program_command): Adjust to pass down target.
13053 (attach_command): Mark target's 'thread_executing' flag.
13054 (stop_current_target_threads_ns): New, factored out from ...
13055 (interrupt_target_1): ... this. Switch inferior before making
13056 target calls.
13057 * inferior-iter.h
13058 (struct all_inferiors_iterator, struct all_inferiors_range)
13059 (struct all_inferiors_safe_range)
13060 (struct all_non_exited_inferiors_range): Filter on
13061 process_stratum_target too. Remove explicit.
13062 * inferior.c (inferior::inferior): Push dummy target on target
13063 stack.
13064 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13065 Add process_stratum_target parameter, and pass it down.
13066 (have_live_inferiors): Adjust.
13067 (switch_to_inferior_and_push_target): New.
13068 (add_inferior_command, clone_inferior_command): Handle
13069 "-no-connection" parameter. Use
13070 switch_to_inferior_and_push_target.
13071 (_initialize_inferior): Mention "-no-connection" option in
13072 the help of "add-inferior" and "clone-inferior" commands.
13073 * inferior.h: Include "process-stratum-target.h".
13074 (interrupt_target_1): Use bool.
13075 (struct inferior) <push_target, unpush_target, target_is_pushed,
13076 find_target_beneath, top_target, process_target, target_at,
13077 m_stack>: New.
13078 (discard_all_inferiors): Delete.
13079 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13080 (all_inferiors, all_non_exited_inferiors): Add
13081 process_stratum_target parameter.
13082 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13083 (target_last_proc_target): New global.
13084 (follow_fork_inferior): Push target on new inferior. Pass target
13085 to add_thread_silent. Call exec_on_vfork. Handle target's
13086 reference count.
13087 (follow_fork): Adjust get_last_target_status call. Also consider
13088 target.
13089 (follow_exec): Push target on new inferior.
13090 (struct execution_control_state) <target>: New field.
13091 (user_visible_resume_target): New.
13092 (do_target_resume): Call target_async.
13093 (resume_1): Set target's threads_executing flag. Consider resume
13094 target.
13095 (commit_resume_all_targets): New.
13096 (proceed): Also consider resume target. Skip threads of inferiors
13097 with no execution. Commit resumtion in all targets.
13098 (start_remote): Pass current inferior to wait_for_inferior.
13099 (infrun_thread_stop_requested): Consider target as well. Pass
13100 thread_info pointer to clear_inline_frame_state instead of ptid.
13101 (infrun_thread_thread_exit): Consider target as well.
13102 (random_pending_event_thread): New inferior parameter. Use it.
13103 (do_target_wait): Rename to ...
13104 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13105 down.
13106 (threads_are_resumed_pending_p, do_target_wait): New.
13107 (prepare_for_detach): Adjust calls.
13108 (wait_for_inferior): New inferior parameter. Handle it. Use
13109 do_target_wait_1 instead of do_target_wait.
13110 (fetch_inferior_event): Adjust. Switch to representative
13111 inferior. Pass target down.
13112 (set_last_target_status): Add process_stratum_target parameter.
13113 Save target in global.
13114 (get_last_target_status): Add process_stratum_target parameter and
13115 handle it.
13116 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13117 (context_switch): Check inferior_ptid == null_ptid before calling
13118 inferior_thread().
13119 (get_inferior_stop_soon): Pass down target.
13120 (wait_one): Rename to ...
13121 (poll_one_curr_target): ... this.
13122 (struct wait_one_event): New.
13123 (wait_one): New.
13124 (stop_all_threads): Adjust.
13125 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13126 event's target.
13127 (switch_back_to_stepped_thread): Also consider target.
13128 (print_stop_event): Update.
13129 (normal_stop): Update. Also consider the resume target.
13130 * infrun.h (wait_for_inferior): Remove declaration.
13131 (user_visible_resume_target): New declaration.
13132 (get_last_target_status, set_last_target_status): New
13133 process_stratum_target parameter.
13134 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13135 process_stratum_target parameter, and use it.
13136 (clear_inline_frame_state (thread_info*)): New.
13137 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13138 process_stratum_target parameter.
13139 (clear_inline_frame_state (thread_info*)): Declare.
13140 * linux-fork.c (delete_checkpoint_command): Pass target down to
13141 find_thread_ptid.
13142 (checkpoint_command): Adjust.
13143 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13144 instead of just tweaking inferior_ptid.
13145 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13146 (exit_lwp): Pass target down to find_thread_ptid.
13147 (attach_proc_task_lwp_callback): Pass target down to
13148 add_thread/set_running/set_executing.
13149 (linux_nat_target::attach): Pass target down to
13150 thread_change_ptid.
13151 (get_detach_signal): Pass target down to find_thread_ptid.
13152 Consider last target status's target.
13153 (linux_resume_one_lwp_throw, resume_lwp)
13154 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13155 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13156 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13157 (linux_nat_target::async_wait_fd): New.
13158 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13159 target down.
13160 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13161 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13162 * linux-thread-db.c (struct thread_db_info::process_target): New
13163 field.
13164 (add_thread_db_info): Save target.
13165 (get_thread_db_info): New process_stratum_target parameter. Also
13166 match target.
13167 (delete_thread_db_info): New process_stratum_target parameter.
13168 Also match target.
13169 (thread_from_lwp): Adjust to pass down target.
13170 (thread_db_notice_clone): Pass down target.
13171 (check_thread_db_callback): Pass down target.
13172 (try_thread_db_load_1): Always push the thread_db target.
13173 (try_thread_db_load, record_thread): Pass target down.
13174 (thread_db_target::detach): Pass target down. Always unpush the
13175 thread_db target.
13176 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13177 target down. Always unpush the thread_db target.
13178 (find_new_threads_callback, thread_db_find_new_threads_2)
13179 (thread_db_target::update_thread_list): Pass target down.
13180 (thread_db_target::pid_to_str): Pass current inferior down.
13181 (thread_db_target::get_thread_local_address): Pass target down.
13182 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13183 target down.
13184 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13185 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13186 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13187 (procfs_init_inferior): Rename to ...
13188 (procfs_target::procfs_init_inferior): ... this and adjust.
13189 (procfs_target::create_inferior, procfs_notice_thread)
13190 (procfs_do_thread_registers): Adjust.
13191 * ppc-fbsd-tdep.c: Include "inferior.h".
13192 (ppcfbsd_get_thread_local_address): Pass down target.
13193 * proc-service.c (ps_xfer_memory): Switch current inferior and
13194 program space as well.
13195 (get_ps_regcache): Pass target down.
13196 * process-stratum-target.c
13197 (process_stratum_target::thread_address_space)
13198 (process_stratum_target::thread_architecture): Pass target down.
13199 * process-stratum-target.h
13200 (process_stratum_target::threads_executing): New field.
13201 (as_process_stratum_target): New.
13202 * ravenscar-thread.c
13203 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13204 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13205 down.
13206 * record-btrace.c (record_btrace_target::info_record): Adjust.
13207 (record_btrace_target::record_method)
13208 (record_btrace_target::record_is_replaying)
13209 (record_btrace_target::fetch_registers)
13210 (get_thread_current_frame_id, record_btrace_target::resume)
13211 (record_btrace_target::wait, record_btrace_target::stop): Pass
13212 target down.
13213 * record-full.c (record_full_wait_1): Switch to event thread.
13214 Pass target down.
13215 * regcache.c (regcache::regcache)
13216 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13217 process_stratum_target parameter and handle it.
13218 (current_thread_target): New global.
13219 (get_thread_regcache): Add process_stratum_target parameter and
13220 handle it. Switch inferior before calling target method.
13221 (get_thread_regcache): Pass target down.
13222 (get_thread_regcache_for_ptid): Pass target down.
13223 (registers_changed_ptid): Add process_stratum_target parameter and
13224 handle it.
13225 (registers_changed_thread, registers_changed): Pass target down.
13226 (test_get_thread_arch_aspace_regcache): New.
13227 (current_regcache_test): Define a couple local test_target_ops
13228 instances and use them for testing.
13229 (readwrite_regcache): Pass process_stratum_target parameter.
13230 (cooked_read_test, cooked_write_test): Pass mock_target down.
13231 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13232 (get_thread_arch_aspace_regcache): Add process_stratum_target
13233 parameter.
13234 (regcache::target): New method.
13235 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13236 (regcache::registers_changed_ptid): Add process_stratum_target
13237 parameter.
13238 (regcache::m_target): New field.
13239 (registers_changed_ptid): Add process_stratum_target parameter.
13240 * remote.c (remote_state::supports_vCont_probed): New field.
13241 (remote_target::async_wait_fd): New method.
13242 (remote_unpush_and_throw): Add remote_target parameter.
13243 (get_current_remote_target): Adjust.
13244 (remote_target::remote_add_inferior): Push target.
13245 (remote_target::remote_add_thread)
13246 (remote_target::remote_notice_new_inferior)
13247 (get_remote_thread_info): Pass target down.
13248 (remote_target::update_thread_list): Skip threads of inferiors
13249 bound to other targets. (remote_target::close): Don't discard
13250 inferiors. (remote_target::add_current_inferior_and_thread)
13251 (remote_target::process_initial_stop_replies)
13252 (remote_target::start_remote)
13253 (remote_target::remote_serial_quit_handler): Pass down target.
13254 (remote_target::remote_unpush_target): New remote_target
13255 parameter. Unpush the target from all inferiors.
13256 (remote_target::remote_unpush_and_throw): New remote_target
13257 parameter. Pass it down.
13258 (remote_target::open_1): Check whether the current inferior has
13259 execution instead of checking whether any inferior is live. Pass
13260 target down.
13261 (remote_target::remote_detach_1): Pass down target. Use
13262 remote_unpush_target.
13263 (extended_remote_target::attach): Pass down target.
13264 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13265 (remote_target::append_resumption): Pass down target.
13266 (remote_target::append_pending_thread_resumptions)
13267 (remote_target::remote_resume_with_hc, remote_target::resume)
13268 (remote_target::commit_resume): Pass down target.
13269 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13270 (remote_target::interrupt_query)
13271 (remote_target::remove_new_fork_children)
13272 (remote_target::check_pending_events_prevent_wildcard_vcont)
13273 (remote_target::remote_parse_stop_reply)
13274 (remote_target::process_stop_reply): Pass down target.
13275 (first_remote_resumed_thread): New remote_target parameter. Pass
13276 it down.
13277 (remote_target::wait_as): Pass down target.
13278 (unpush_and_perror): New remote_target parameter. Pass it down.
13279 (remote_target::readchar, remote_target::remote_serial_write)
13280 (remote_target::getpkt_or_notif_sane_1)
13281 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13282 down target.
13283 (remote_target::mourn_inferior): Pass down target. Use
13284 remote_unpush_target.
13285 (remote_target::core_of_thread)
13286 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13287 (remote_target::pid_to_exec_file)
13288 (remote_target::thread_handle_to_thread_info): Pass down target.
13289 (remote_target::async_wait_fd): New.
13290 * riscv-fbsd-tdep.c: Include "inferior.h".
13291 (riscv_fbsd_get_thread_local_address): Pass down target.
13292 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13293 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13294 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13295 Adjust.
13296 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13297 * solib-svr4.c (enable_break): Pass down target.
13298 * spu-multiarch.c (parse_spufs_run): Pass down target.
13299 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13300 * target-delegates.c: Regenerate.
13301 * target.c (g_target_stack): Delete.
13302 (current_top_target): Return the current inferior's top target.
13303 (target_has_execution_1): Refer to the passed-in inferior's top
13304 target.
13305 (target_supports_terminal_ours): Check whether the initial
13306 inferior was already created.
13307 (decref_target): New.
13308 (target_stack::push): Incref/decref the target.
13309 (push_target, push_target, unpush_target): Adjust.
13310 (target_stack::unpush): Defref target.
13311 (target_is_pushed): Return bool. Adjust to refer to the current
13312 inferior's target stack.
13313 (dispose_inferior): Delete, and inline parts ...
13314 (target_preopen): ... here. Only dispose of the current inferior.
13315 (target_detach): Hold strong target reference while detaching.
13316 Pass target down.
13317 (target_thread_name): Add assertion.
13318 (target_resume): Pass down target.
13319 (target_ops::beneath, find_target_at): Adjust to refer to the
13320 current inferior's target stack.
13321 (get_dummy_target): New.
13322 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13323 has a thread running.
13324 (initialize_targets): Rename to ...
13325 (_initialize_target): ... this.
13326 * target.h: Include "gdbsupport/refcounted-object.h".
13327 (struct target_ops): Inherit refcounted_object.
13328 (target_ops::shortname, target_ops::longname): Make const.
13329 (target_ops::async_wait_fd): New method.
13330 (decref_target): Declare.
13331 (struct target_ops_ref_policy): New.
13332 (target_ops_ref): New typedef.
13333 (get_dummy_target): Declare function.
13334 (target_is_pushed): Return bool.
13335 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13336 (all_matching_threads_iterator::all_matching_threads_iterator):
13337 Handle filter target.
13338 * thread-iter.h (struct all_matching_threads_iterator, struct
13339 all_matching_threads_range, class all_non_exited_threads_range):
13340 Filter by target too. Remove explicit.
13341 * thread.c (threads_executing): Delete.
13342 (inferior_thread): Pass down current inferior.
13343 (clear_thread_inferior_resources): Pass down thread pointer
13344 instead of ptid_t.
13345 (add_thread_silent, add_thread_with_info, add_thread): Add
13346 process_stratum_target parameter. Use it for thread and inferior
13347 searches.
13348 (is_current_thread): New.
13349 (thread_info::deletable): Use it.
13350 (find_thread_ptid, thread_count, in_thread_list)
13351 (thread_change_ptid, set_resumed, set_running): New
13352 process_stratum_target parameter. Pass it down.
13353 (set_executing): New process_stratum_target parameter. Pass it
13354 down. Adjust reference to 'threads_executing'.
13355 (threads_are_executing): New process_stratum_target parameter.
13356 Adjust reference to 'threads_executing'.
13357 (set_stop_requested, finish_thread_state): New
13358 process_stratum_target parameter. Pass it down.
13359 (switch_to_thread): Also match inferior.
13360 (switch_to_thread): New process_stratum_target parameter. Pass it
13361 down.
13362 (update_threads_executing): Reimplement.
13363 * top.c (quit_force): Pop targets from all inferior.
13364 (gdb_init): Don't call initialize_targets.
13365 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13366 Declare.
13367 (windows_add_thread, windows_delete_thread): Adjust.
13368 (get_windows_debug_event): Rename to ...
13369 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13370 * tracefile-tfile.c (tfile_target_open): Pass down target.
13371 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13372 Forward declare.
13373 (switch_to_thread): Add process_stratum_target parameter.
13374 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13375 parameter. Use it.
13376 (mi_on_resume): Pass target down.
13377 * nat/fork-inferior.c (startup_inferior): Add
13378 process_stratum_target parameter. Pass it down.
13379 * nat/fork-inferior.h (startup_inferior): Add
13380 process_stratum_target parameter.
13381 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13382
75c6c844
PA
133832020-01-10 Pedro Alves <palves@redhat.com>
13384
13385 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13386 directly. Instead find the first thread in the thread list and
13387 use switch_to_thread.
13388
78f2c40a
PA
133892020-01-10 Pedro Alves <palves@redhat.com>
13390
13391 * remote.c (remote_target::remote_add_inferior): Don't bind a
13392 process to the current inferior if the current inferior is already
13393 bound to a process.
13394
e7af6c70
TBA
133952020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13396 Pedro Alves <palves@redhat.com>
13397
13398 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13399 If no process is specified, return null_ptid instead of
13400 inferior_ptid.
13401 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13402 TARGET_WAITKIND_SIGNALLED with no pid.
13403
31ba933e
PA
134042020-01-10 Pedro Alves <palves@redhat.com>
13405
13406 * remote.c (first_remote_resumed_thread): New.
13407 (remote_target::wait_as): Use it as default event_ptid instead of
13408 inferior_ptid.
13409
735fc2ca
PA
134102020-01-10 Pedro Alves <palves@redhat.com>
13411
13412 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13413
c17e02e1
PA
134142020-01-10 Pedro Alves <palves@redhat.com>
13415
13416 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13417 not -1.
13418
ab1ddbcf
PA
134192020-01-10 Pedro Alves <palves@redhat.com>
13420
13421 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13422 ptid to get_last_target_status.
13423 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13424 ptid to get_last_target_status.
13425 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13426 get_last_target_status.
13427 (info_program_command): Don't pass a target_waitstatus to
13428 get_last_target_status.
13429 * infrun.c (init_wait_for_inferior): Use
13430 nullify_last_target_wait_ptid.
13431 (get_last_target_status): Handle nullptr arguments.
13432 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13433 (print_stop_event): Don't pass a ptid to get_last_target_status.
13434 (normal_stop): Don't pass a ptid to get_last_target_status.
13435 * infrun.h (get_last_target_status, set_last_target_status): Move
13436 comments here and update.
13437 (nullify_last_target_wait_ptid): Declare.
13438 * linux-fork.c (fork_load_infrun_state): Remove local extern
13439 declaration of nullify_last_target_wait_ptid.
13440 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13441 to get_last_target_status.
13442
f3f8ece4
PA
134432020-01-10 Pedro Alves <palves@redhat.com>
13444
13445 * gdbthread.h (scoped_restore_current_thread)
13446 <dont_restore, restore, m_dont_restore>: Declare.
13447 * thread.c (thread_alive): Add assertion. Return bool.
13448 (switch_to_thread_if_alive): New.
13449 (prune_threads): Switch inferior/thread.
13450 (print_thread_info_1): Switch thread before calling target methods.
13451 (scoped_restore_current_thread::restore): New, factored out from
13452 ...
13453 (scoped_restore_current_thread::~scoped_restore_current_thread):
13454 ... this.
13455 (scoped_restore_current_thread::scoped_restore_current_thread):
13456 Add assertion.
13457 (thread_apply_all_command, thread_select): Use
13458 switch_to_thread_if_alive.
13459 * infrun.c (proceed, restart_threads, handle_signal_stop)
13460 (switch_back_to_stepped_thread): Switch current thread before
13461 calling target methods.
13462
db2d40f7
PA
134632020-01-10 Pedro Alves <palves@redhat.com>
13464
13465 * inferior.c (switch_to_inferior_no_thread): New function,
13466 factored out from ...
13467 (inferior_command): ... here.
13468 * inferior.h (switch_to_inferior_no_thread): Declare.
13469 * mi/mi-main.c (run_one_inferior): Use
13470 switch_to_inferior_no_thread.
13471
bd420a2d
PA
134722020-01-10 Pedro Alves <palves@redhat.com>
13473
13474 * infcmd.c (kill_command): Remove dead code.
13475
ddf5db90
PA
134762020-01-10 Pedro Alves <palves@redhat.com>
13477
13478 * remote.c (remote_target::mourn_inferior): No longer check
13479 whether the target is running.
13480
5018ce90
PA
134812020-01-10 Pedro Alves <palves@redhat.com>
13482
13483 * corelow.c (core_target::has_execution): Change parameter type to
13484 inferior pointer.
13485 * inferior.c (number_of_live_inferiors): Use
13486 inferior::has_execution instead of target_has_execution_1.
13487 * inferior.h (inferior::has_execution): New.
13488 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13489 inferior::has_execution instead of target_has_execution_1.
13490 * process-stratum-target.c
13491 (process_stratum_target::has_execution): Change parameter type to
13492 inferior pointer. Check the inferior's PID instead of
13493 inferior_ptid.
13494 * process-stratum-target.h
13495 (process_stratum_target::has_execution): Change parameter type to
13496 inferior pointer.
13497 * record-full.c (record_full_core_target::has_execution): Change
13498 parameter type to inferior pointer.
13499 * target.c (target_has_execution_1): Change parameter type to
13500 inferior pointer.
13501 (target_has_execution_current): Adjust.
13502 * target.h (target_ops::has_execution): Change parameter type to
13503 inferior pointer.
13504 (target_has_execution_1): Change parameter type to inferior
13505 pointer. Change return type to bool.
13506 * tracefile.h (tracefile_target::has_execution): Change parameter
13507 type to inferior pointer.
13508
74375d18
PA
135092020-01-10 Pedro Alves <palves@redhat.com>
13510
13511 * exceptions.c (print_flush): Remove current_top_target() check.
13512
acdf84a6
PA
135132020-01-10 Pedro Alves <palves@redhat.com>
13514
13515 * remote.c (show_remote_exec_file): Show the current inferior's
13516 exec-file instead of the command variable's value.
13517
ec506636
PA
135182020-01-10 Pedro Alves <palves@redhat.com>
13519
13520 * record-full.c (record_full_resume_ptid): New global.
13521 (record_full_target::resume): Set it.
13522 (record_full_wait_1): Use record_full_resume_ptid instead of
13523 inferior_ptid.
13524
873657b9
PA
135252020-01-10 Pedro Alves <palves@redhat.com>
13526
13527 * gdbthread.h (scoped_restore_current_thread)
13528 <dont_restore, restore, m_dont_restore>: Declare.
13529 * thread.c (thread_alive): Add assertion. Return bool.
13530 (switch_to_thread_if_alive): New.
13531 (prune_threads): Switch inferior/thread.
13532 (print_thread_info_1): Switch thread before calling target methods.
13533 (scoped_restore_current_thread::restore): New, factored out from
13534 ...
13535 (scoped_restore_current_thread::~scoped_restore_current_thread):
13536 ... this.
13537 (scoped_restore_current_thread::scoped_restore_current_thread):
13538 Add assertion.
13539 (thread_apply_all_command, thread_select): Use
13540 switch_to_thread_if_alive.
13541
7f0ae84c
GB
135422020-01-10 George Barrett <bob@bob131.so>
13543
13544 * stap-probe.c (stap_modify_semaphore): Don't check for null
13545 semaphores.
13546 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13547 for null semaphores.
13548
f5a7c406
AB
135492020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13550
13551 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13552 all source windows, and maintain horizontal scroll status while
13553 doing so.
13554
9ae6bf64
TT
135552020-01-09 Tom Tromey <tom@tromey.com>
13556
13557 PR tui/18932:
13558 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13559 update_source_window, not print_source_lines.
13560
b2efe70c
AB
135612020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13562
13563 * tui/tui.c (tui_enable): Register tui hooks after calling
13564 tui_display_main.
13565
5f23a082
CB
135662020-01-09 Christian Biesinger <cbiesinger@google.com>
13567
13568 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13569
3061113b
SM
135702020-01-08 Simon Marchi <simon.marchi@efficios.com>
13571
13572 * thread.c (print_thread_info_1): Fix indentation.
13573
57d75002
CB
135742020-01-09 Christian Biesinger <cbiesinger@google.com>
13575
13576 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13577 unique_xmalloc_ptr outside the if to always free the demangled name.
13578
6a053cb1
TT
135792020-01-08 Tom Tromey <tromey@adacore.com>
13580
13581 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13582 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13583 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13584 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13585 Remove.
13586 (section_offsets): New typedef.
13587 * symtab.c (fixup_section, get_msymbol_address): Update.
13588 * symmisc.c (dump_msymbols): Update.
13589 * symfile.h (relative_addr_info_to_section_offsets)
13590 (symfile_map_offsets_to_segments): Update.
13591 * symfile.c (build_section_addr_info_from_objfile)
13592 (init_objfile_sect_indices): Update.
13593 (struct place_section_arg): Change type of "offsets".
13594 (place_section): Update.
13595 (relative_addr_info_to_section_offsets): Change type of
13596 "section_offsets". Remove "num_sections" parameter.
13597 (default_symfile_offsets, syms_from_objfile_1)
13598 (set_objfile_default_section_offset): Update.
13599 (reread_symbols): No need to preserve section offsets by hand.
13600 (symfile_map_offsets_to_segments): Change type of "offsets".
13601 * stap-probe.c (relocate_address): Update.
13602 * stabsread.h (process_one_symbol): Update.
13603 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13604 (solib_target_relocate_section_addresses): Update.
13605 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13606 Update.
13607 * solib-frv.c (frv_relocate_main_executable): Update.
13608 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13609 * solib-aix.c (solib_aix_get_section_offsets): Change return
13610 type.
13611 (solib_aix_solib_create_inferior_hook): Update.
13612 * remote.c (remote_target::get_offsets): Update.
13613 * psymtab.c (find_pc_sect_psymtab): Update.
13614 * psympriv.h (struct partial_symbol) <address, text_low,
13615 text_high>: Update.
13616 * objfiles.h (obj_section_offset): Update.
13617 (struct objfile) <section_offsets>: Change type.
13618 <num_sections>: Remove.
13619 (objfile_relocate): Update.
13620 * objfiles.c (entry_point_address_query): Update
13621 (relocate_one_symbol): Change type of "section_offsets".
13622 (objfile_relocate1, objfile_relocate1): Change type of
13623 "new_offsets".
13624 (objfile_rebase1): Update.
13625 * mipsread.c (mipscoff_symfile_read): Update.
13626 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13627 parameter.
13628 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13629 (parse_external, psymtab_to_symtab_1): Update.
13630 * machoread.c (macho_symfile_offsets): Update.
13631 * ia64-tdep.c (ia64_find_unwind_table): Update.
13632 * hppa-tdep.c (read_unwind_info): Update.
13633 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13634 * dwarf2read.c (create_addrmap_from_index)
13635 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13636 (process_psymtab_comp_unit_reader, add_partial_symbol)
13637 (add_partial_subprogram, process_full_comp_unit)
13638 (read_file_scope, read_func_scope, read_lexical_block_scope)
13639 (read_call_site_scope, dwarf2_rnglists_process)
13640 (dwarf2_ranges_process, dwarf2_ranges_read)
13641 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13642 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13643 Update.
13644 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13645 Update.
13646 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13647 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13648 (process_one_symbol): Change type of "section_offsets".
13649 * ctfread.c (get_objfile_text_range): Update.
13650 * coffread.c (coff_symtab_read, enter_linenos)
13651 (process_coff_symbol): Update.
13652 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13653 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13654
456e800a
TT
136552020-01-08 Tom Tromey <tromey@adacore.com>
13656
13657 * dwarf2read.c (parse_macro_definition): Use std::string.
13658 (parse_macro_definition): Likewise.
13659
6dfa2fc2
TT
136602020-01-08 Tom Tromey <tromey@adacore.com>
13661
13662 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13663 (ATTR_ALLOC_CHUNK): Remove.
13664
421d1616
TT
136652020-01-08 Tom Tromey <tromey@adacore.com>
13666
13667 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13668
43816ebc
TT
136692020-01-08 Tom Tromey <tromey@adacore.com>
13670
13671 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13672 (dwarf2_compute_name, open_dwo_file): Likewise.
13673 (process_enumeration_scope): Use std::vector.
13674 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13675 (partial_die_info::fixup, dwarf2_start_subfile)
13676 (guess_full_die_structure_name, dwarf2_name): Likewise.
13677 (determine_prefix): Update.
13678 (guess_full_die_structure_name): Make return type const.
13679 (partial_die_full_name): Return unique_xmalloc_ptr.
13680 (DW_FIELD_ALLOC_CHUNK): Remove.
13681
4212d509
TT
136822020-01-07 Tom Tromey <tromey@adacore.com>
13683
13684 PR build/24937:
13685 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13686
06a6207a
JT
136872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13688
13689 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13690
153d79c4
AB
136912020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13692
13693 * stack.c (print_frame_info): Move disassemble_next_line code
13694 inside source_print block.
13695
66182876
EZ
136962020-01-06 Eli Zaretskii <eliz@gnu.org>
13697
13698 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13699 gdb/signals.h, as we are now using native signal symbols.
13700
cbfa8581
SV
137012020-01-06 Shahab Vahedi <shahab@synopsys.com>
13702
13703 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13704 overflow by an early check of content vs threshold.
aac66a4c 13705 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13706 Likewise.
13707
3f602821
EZ
137082020-01-06 Eli Zaretskii <eliz@gnu.org>
13709
13710 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13711
a08c904d
JT
137122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13713
13714 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13715 export table if no section contains it's RVA.
13716
89a65580
EZ
137172020-01-06 Eli Zaretskii <eliz@gnu.org>
13718
13719 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13720
8b7fcda2
HD
137212020-01-06 Hannes Domani <ssbssa@yahoo.de>
13722
13723 * source.c (print_source_lines_base): Set last_line_listed.
13724
a61b4f69
SV
137252020-01-06 Shahab Vahedi <shahab@synopsys.com>
13726
13727 * tui/tui-disasm.c: Remove trailing spaces.
13728
559e7e50
EZ
137292020-01-06 Eli Zaretskii <eliz@gnu.org>
13730 Pedro Alves <palves@redhat.com>
13731
13732 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13733 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13734 (windows_gdb_signal_to_target): New function, uses the above
13735 enumeration to convert GDB internal signal codes to equivalent
13736 Windows codes.
13737 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13738 * windows-nat.c: Include "gdb_wait.h".
13739 (get_windows_debug_event): Extract the fatal exception from the
13740 exit status and convert to the equivalent Posix signal number.
13741 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13742 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13743 * gdbsupport/gdb_wait.c: New file, implements
13744 windows_status_to_termsig.
13745 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13746 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13747
f2302a34
AB
137482020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13751 show_layout.
13752
6a5206eb
LM
137532020-01-05 Luis Machado <luis.machado@linaro.org>
13754
13755 * aarch64-linux-nat.c
13756 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13757 and bfd_mach_aarch64.
13758
6ec1d75e
PW
137592020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13760
13761 * ui-file.c (stdio_file::can_emit_style_escape)
13762 (tee_file::can_emit_style_escape): Ensure style is used also on
13763 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13764 to gdb_stdout.
13765 * main.c (set_gdb_data_directory): Use file style to output the
13766 warning that the given pathname is not a directory.
13767 * top.c (show_history_filename, gdb_safe_append_history)
13768 (show_gdb_datadir): Use file style.
13769
44f81a76
HD
137702020-01-03 Hannes Domani <ssbssa@yahoo.de>
13771
13772 * solib-target.c (struct lm_info_target):
13773 Change offsets to be a unique_xmalloc_ptr.
13774 (solib_target_relocate_section_addresses): Update.
13775
25057eb0
HD
137762020-01-03 Hannes Domani <ssbssa@yahoo.de>
13777
13778 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13779
6e2118f5
BE
137802020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13781
13782 * MAINTAINERS (Write After Approval): Add myself.
13783
8133c7dc
LM
137842020-01-02 Luis Machado <luis.machado@linaro.org>
13785
13786 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13787 Cell BE architecture.
13788 * target.h (struct target_ops) <thread_architecture>: Likewise.
13789
48189bec
HD
137902020-01-01 Hannes Domani <ssbssa@yahoo.de>
13791
13792 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13793
ead1063b
HD
137942020-01-01 Hannes Domani <ssbssa@yahoo.de>
13795
13796 * MAINTAINERS (Write After Approval): Add myself.
13797
e5d78223
JB
137982020-01-01 Joel Brobecker <brobecker@adacore.com>
13799
13800 * gdbarch.sh: Update copyright year range of generated files.
13801
b811d2c2
JB
138022020-01-01 Joel Brobecker <brobecker@adacore.com>
13803
13804 Update copyright year range in all GDB files.
13805
5f4def5c
JB
138062020-01-01 Joel Brobecker <brobecker@adacore.com>
13807
13808 * copyright.py: Convert to Python 3.
13809
51fd4002
JB
138102020-01-01 Joel Brobecker <brobecker@adacore.com>
13811
13812 * copyright.py: Adapt after move of gnulib directory from gdb
13813 directory to toplevel directory.
13814
5fb651f2
JB
138152020-01-01 Joel Brobecker <brobecker@adacore.com>
13816
13817 * copyright.py (main): Exit if run from the wrong directory.
13818
5dd8bf88
JB
138192020-01-01 Joel Brobecker <brobecker@adacore.com>
13820
13821 * top.c (print_gdb_version): Change copyright year to 2020.
13822
9f71dacb 138232020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13824
9f71dacb 13825 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13826
9f71dacb 13827For older changes see ChangeLog-2019.
c906108c
SS
13828\f
13829Local Variables:
13830mode: change-log
13831left-margin: 8
13832fill-column: 74
13833version-control: never
57da7796 13834coding: utf-8
c906108c 13835End:
This page took 3.069305 seconds and 4 git commands to generate.