gdb: Convert language_data::la_case_sensitivity to a method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4 initializer.
5 * c-lang.c (c_language_data): Likewise.
6 (cplus_language_data): Likewise.
7 (asm_language_data): Likewise.
8 (minimal_language_data): Likewise.
9 * d-lang.c (d_language_data): Likewise.
10 * f-lang.c (f_language_data): Likewise.
11 (f_language::case_sensitivity): New member function.
12 * go-lang.c (go_language_data): Remove la_case_sensitivity
13 initializer.
14 * language.c (enum case_mode): Moved here from language.h.
15 (case_mode): Make static.
16 (show_case_command): Update for case_sensitivity being a method.
17 (set_case_command): Likewise.
18 (set_range_case): Likewise.
19 (unknown_language_data): Remove la_case_sensitivity initializer.
20 (auto_language_data): Likewise.
21 * language.h (case_mode): Delete, move enum declaration to
22 language.c.
23 (language_data): Delete la_case_sensitivity field.
24 (language_defn::case_sensitivity): New member function.
25 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
26 initializer.
27 * objc-lang.c (objc_language_data): Likewise.
28 * opencl-lang.c (opencl_language_data): Likewise.
29 * p-lang.c (pascal_language_data): Likewise.
30 * rust-lang.c (rust_language_data): Likewise.
31
32 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * ada-lang.c (ada_language_data): Remove la_range_check
35 initializer.
36 * c-lang.c (c_language_data): Likewise.
37 (cplus_language_data): Likewise.
38 (asm_language_data): Likewise.
39 (minimal_language_data): Likewise.
40 * d-lang.c (d_language_data): Likewise.
41 * f-lang.c (f_language_data): Likewise.
42 (f_language::range_checking_on_by_default): New member function.
43 * go-lang.c (go_language_data): Remove la_range_check initializer.
44 * language.c (enum range_mode): Moved here from language.h.
45 (range_mode): Made static.
46 (show_range_command): Update to use
47 range_checking_on_by_default.
48 (set_range_command): Likewise.
49 (set_range_case): Likewise.
50 (unknown_language_data): Remove la_range_check initializer.
51 (auto_language_data): Likewise.
52 * language.h (range_mode): Delete. Enum definition moved to
53 language.c.
54 (language_data): Remove la_range_check field.
55 (language_defn::range_checking_on_by_default): New member
56 function.
57 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
58 (m2_language::range_checking_on_by_default): New member function.
59 * objc-lang.c (objc_language_data): Remove la_range_check
60 initializer.
61 * opencl-lang.c (opencl_language_data): Likewise.
62 * p-lang.c (pascal_language_data): Likewise.
63 (pascal_language::range_checking_on_by_default): New member
64 function.
65 * rust-lang.c (rust_language_data): Remove la_range_check
66 initializer.
67 (rust_language::range_checking_on_by_default): New member
68 function.
69
70 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * dwarf2/read.c (dwarf2_physname): Remove special case for
73 language_go.
74 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
75 member function.
76
77 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * ada-lang.c (ada_language_data): Remove
80 la_store_sym_names_in_linkage_form_p initializer.
81 (ada_language::store_sym_names_in_linkage_form_p): New member
82 function.
83 * c-lang.c (c_language_data): Remove
84 la_store_sym_names_in_linkage_form_p initializer.
85 (c_language::store_sym_names_in_linkage_form_p): New member
86 function.
87 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
88 initializer.
89 (asm_language_data): Likewise.
90 (asm_language::store_sym_names_in_linkage_form_p): New member
91 function.
92 (minimal_language_data): Remove
93 la_store_sym_names_in_linkage_form_p initializer.
94 (minimal_language::store_sym_names_in_linkage_form_p): New member
95 function.
96 * d-lang.c (d_language_data): Remove
97 la_store_sym_names_in_linkage_form_p initializer.
98 * dwarf2/read.c (dwarf2_physname): Update call to
99 store_sym_names_in_linkage_form_p.
100 * f-lang.c (f_language_data): Remove
101 la_store_sym_names_in_linkage_form_p initializer.
102 * go-lang.c (go_language_data): Remove
103 la_store_sym_names_in_linkage_form_p initializer.
104 * language.c (unknown_language_data): Remove
105 la_store_sym_names_in_linkage_form_p initializer.
106 (unknown_language::store_sym_names_in_linkage_form_p): New member
107 function.
108 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
109 initializer.
110 (auto_language::store_sym_names_in_linkage_form_p): New member
111 function.
112 * language.h (language_data): Remove
113 la_store_sym_names_in_linkage_form_p member variable.
114 (language_defn::store_sym_names_in_linkage_form_p): New member
115 function.
116 * m2-lang.c (m2_language_data): Remove
117 la_store_sym_names_in_linkage_form_p initializer.
118 * objc-lang.c (objc_language_data): Likewise.
119 * opencl-lang.c (opencl_language_data): Likewise.
120 * p-lang.c (pascal_language_data): Likewise.
121 * rust-lang.c (rust_language_data): Likewise.
122
123 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * ada-lang.c (ada_language_data): Remove string_lower_bound
126 initializer.
127 * c-lang.c (c_language_data): Likewise.
128 (cplus_language_data): Likewise.
129 (asm_language_data): Likewise.
130 (minimal_language_data): Likewise.
131 * d-lang.c (d_language_data): Likewise.
132 * f-lang.c (f_language_data): Likewise.
133 * go-lang.c (go_language_data): Likewise.
134 * language.c (unknown_language_data): Likewise.
135 (auto_language_data): Likewise.
136 * language.h (language_data): Remove string_lower_bound field.
137 (language_defn::string_lower_bound): New member function.
138 * m2-lang.c (m2_language_data): Remove string_lower_bound
139 initializer.
140 (m2_language::string_lower_bound): New member function.
141 * objc-lang.c (objc_language_data): Remove string_lower_bound
142 initializer.
143 * opencl-lang.c (opencl_language_data): Likewise.
144 * p-lang.c (pascal_language_data): Likewise.
145 * rust-lang.c (rust_language_data): Likewise.
146 * valops.c (value_cstring): Update call to string_lower_bound.
147 (value_string): Likewise.
148 * value.c (allocate_repeated_value): Likewise.
149
150 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * valops.c (value_repeat): Fix incorrect argument name in comment.
153
154 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * ada-lang.c (ada_language_data): Remove c_style_arrays
157 initializer.
158 (ada_language::c_style_arrays_p): New member fuction.
159 * c-lang.c (c_language_data): Remove c_style_arrays
160 initializer.
161 (cplus_language_data): Likewise.
162 (asm_language_data): Likewise.
163 (minimal_language_data): Likewise.
164 * d-lang.c (d_language_data): Likewise.
165 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
166 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
167 (f_language::c_style_arrays_p): New member function.
168 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
169 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
170 * language.c (unknown_language_data): Remove c_style_arrays
171 initializer.
172 (auto_language_data): Likewise.
173 * language.h (language_data): Remove c_style_arrays field.
174 (language_defn::c_style_arrays_p): New member function.
175 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
176 (m2_language::c_style_arrays_p): New member function.
177 * objc-lang.c (objc_language_data): Remove c_style_arrays
178 initializer.
179 * opencl-lang.c (opencl_language_data): Likewise.
180 * p-lang.c (pascal_language_data): Likewise.
181 * rust-lang.c (rust_language_data): Likewise.
182 * valarith.c (value_subscript): Update call to c_style_arrays_p,
183 and update local variable to a bool.
184 * valops.c (value_cast): Update call to c_style_arrays_p.
185 (value_array): Likewise.
186 * value.c (coerce_array): Likewise.
187
188 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * ada-lang.c (ada_language_data): Remove la_language initializer.
191 * c-lang.c (c_language_data): Likewise.
192 (cplus_language_data): Likewise.
193 (asm_language_data): Likewise.
194 (minimal_language_data): Likewise.
195 * d-lang.c (d_language_data): Likewise.
196 * f-lang.c (f_language_data): Likewise.
197 * go-lang.c (go_language_data): Likewise.
198 * language.c (unknown_language_data): Likewise.
199 (auto_language_data): Likewise.
200 * language.h (language_data): Remove la_language field.
201 (language_defn::language_defn): Initialise la_language field.
202 (language_defn::la_language): New member variable.
203 * m2-lang.c (m2_language_data): Remove la_language field.
204 * objc-lang.c (objc_language_data): Likewise.
205 * opencl-lang.c (opencl_language_data): Likewise.
206 * p-lang.c (pascal_language_data): Likewise.
207 * rust-lang.c (rust_language_data): Likewise.
208
209 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * ada-lang.c (ada_extensions): Delete, moved into
212 ada_language::filename_extensions.
213 (ada_language_data): Remove la_filename_extensions initializer.
214 (ada_language::filename_extensions): New member function.
215 * c-lang.c (c_extensions): Delete, moved into
216 c_language::filename_extensions.
217 (c_language_data): Remove la_filename_extensions initializer.
218 (c_language::filename_extensions): New member function.
219 (cplus_extensions): Delete, moved into
220 cplus_language::filename_extensions.
221 (cplus_language_data): Remove la_filename_extensions initializer.
222 (cplus_language::filename_extensions): New member function.
223 (asm_extensions): Delete, moved into
224 asm_language::filename_extensions.
225 (asm_language_data): Remove la_filename_extensions initializer.
226 (asm_language::filename_extensions): New member function.
227 (minimal_language_data): Remove la_filename_extensions
228 initializer.
229 * d-lang.c (d_extensions): Delete, moved into
230 d_language::filename_extensions.
231 (d_language_data): Remove la_filename_extensions initializer.
232 (d_language::filename_extensions): New member function.
233 * f-lang.c (f_extensions): Delete, moved into
234 f_language::filename_extensions.
235 (f_language_data): Remove la_filename_extensions initializer.
236 (f_language::filename_extensions): New member function.
237 * go-lang.c (go_language_data): Remove la_filename_extensions
238 initializer.
239 * language.c (add_set_language_command): Update now that
240 filename_extensions returns a vector.
241 (unknown_language_data): Remove la_filename_extensions
242 initializer.
243 (auto_language_data): Likewise.
244 * language.h (language_data): Remove la_filename_extensions field.
245 (language_defn::filename_extensions): New member function.
246 * m2-lang.c (m2_language_data): Remove la_filename_extensions
247 initializer.
248 * objc-lang.c (objc_extensions): Delete, moved into
249 objc_language::filename_extensions.
250 (objc_language_data): Remove la_filename_extensions initializer.
251 (objc_language::filename_extensions): New member function.
252 * opencl-lang.c (opencl_language_data): Remove
253 la_filename_extensions initializer.
254 * p-lang.c (pascal_extensions): Delete, moved into
255 pascal_language::filename_extensions.
256 (pascal_language_data): Remove la_filename_extensions initializer.
257 (pascal_language::filename_extensions): New member function.
258 * rust-lang.c (rust_extensions): Delete, moved into
259 rust_language::filename_extensions.
260 (rust_language_data): Remove la_filename_extensions initializer.
261 (rust_language::filename_extensions): New member function.
262 * symfile.c (add_filename_language): Add new assert.
263
264 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * ada-lang.c (ada_language_data): Remove la_name and
267 la_natural_name initializers.
268 (ada_language::name): New member function.
269 (ada_language::natural_name): New member function.
270 * c-lang.c (c_language_data): Remove la_name and
271 la_natural_name initializers.
272 (c_language::name): New member function.
273 (c_language::natural_name): New member function.
274 (cplus_language_data): Remove la_name and
275 la_natural_name initializers.
276 (cplus_language::name): New member function.
277 (cplus_language::natural_name): New member function.
278 (asm_language_data): Remove la_name and
279 la_natural_name initializers.
280 (asm_language::name): New member function.
281 (asm_language::natural_name): New member function.
282 (minimal_language_data): Remove la_name and
283 la_natural_name initializers.
284 (minimal_language::name): New member function.
285 (minimal_language::natural_name): New member function.
286 * compile/compile.c (compile_to_object): Update call to
287 lanugage_defn::name.
288 * d-lang.c (d_language_data): Remove la_name and
289 la_natural_name initializers.
290 (d_language::name): New member function.
291 (d_language::natural_name): New member function.
292 * expprint.c (print_subexp_standard): Update call to
293 language_defn::name.
294 (dump_raw_expression): Likewise
295 (dump_prefix_expression): Likewise.
296 * f-lang.c (f_language_data): Remove la_name and
297 la_natural_name initializers.
298 (f_language::name): New member function.
299 (f_language::natural_name): New member function.
300 * go-lang.c (go_language_data): Remove la_name and
301 la_natural_name initializers.
302 (go_language::name): New member function.
303 (go_language::natural_name): New member function.
304 * language.c (show_language_command): Update call to
305 language_defn::name.
306 (set_language_command): Likewise.
307 (language_enum): Likewise.
308 (language_str): Likewise.
309 (add_set_language_command): Likewise, use
310 language_defn::natural_name in the doc string.
311 (unknown_language_data): Remove la_name and
312 la_natural_name initializers.
313 (unknown_language::name): New member function.
314 (unknown_language::natural_name): New member function.
315 (auto_language_data): Remove la_name and
316 la_natural_name initializers.
317 (auto_language::name): New member function.
318 (auto_language::natural_name): New member function.
319 (language_lookup_primitive_type_as_symbol): Update call to
320 language_defn::name.
321 * language.h (language_data): Remove la_name and la_natural_name
322 member variables.
323 (language_defn::name): New member function.
324 (language_defn::natural_name): New member function.
325 * m2-lang.c (m2_language_data): Remove la_name and
326 la_natural_name initializers.
327 (m2_language::name): New member function.
328 (m2_language::natural_name): New member function.
329 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
330 language_defn::natural_name.
331 * objc-lang.c (objc_language_data): Remove la_name and
332 la_natural_name initializers.
333 (objc_language::name): New member function.
334 (objc_language::natural_name): New member function.
335 * opencl-lang.c (opencl_language_data): Remove la_name and
336 la_natural_name initializers.
337 (opencl_language::name): New member function.
338 (opencl_language::natural_name): New member function.
339 * p-lang.c (pascal_language_data): Remove la_name and
340 la_natural_name initializers.
341 (pascal_language::name): New member function.
342 (pascal_language::natural_name): New member function.
343 * rust-lang.c (rust_language_data): Remove la_name and
344 la_natural_name initializers.
345 (rust_language::name): New member function.
346 (rust_language::natural_name): New member function.
347 * symtab.c (lookup_language_this): Update call to
348 language_defn::name.
349
350 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * ada-lang.c (ada_language_data): Remove la_name_of_this
353 initializer.
354 * ax-gdb.c (gen_expr): Update call to name_of_this.
355 * c-exp.y (classify_name): Likewise.
356 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
357 (cplus_language_data): Likewise.
358 (cplus_language::name_of_this): New member function.
359 (asm_language_data): Remove la_name_of_this initializer.
360 (minimal_language_data): Likewise.
361 * d-lang.c (d_language_data): Likewise.
362 (d_language::name_of_this): New member function.
363 * expprint.c (print_subexp_standard): Update call to name_of_this.
364 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
365 * go-lang.c (go_language_data): Likewise.
366 * language.c (unknown_language_data): Likewise.
367 (unknown_language::name_of_this): New member function.
368 (auto_language_data): Remove la_name_of_this initializer.
369 (auto_language::name_of_this): New member function.
370 * language.h (language_data): Delete la_name_of_this member
371 variable.
372 (language_defn::name_of_this): New member function.
373 * m2-lang.c (m2_language_data): Remove la_name_of_this
374 initializer.
375 * objc-lang.c (objc_language_data): Likewise.
376 (objc_language::name_of_this): New member function.
377 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
378 initializer.
379 * p-lang.c (pascal_language_data): Likewise.
380 (pascal_language::name_of_this): New member function.
381 * rust-lang.c (rust_language_data): Remove la_name_of_this
382 initializer.
383 * symtab.c (lookup_language_this): Update call to name_of_this.
384 (lookup_symbol_aux): Likewise.
385 * valops.c (value_of_this): Likewise.
386
387 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
388
389 * ada-lang.c (ada_language_data): Remove
390 la_struct_too_deep_ellipsis initializer.
391 (ada_language::struct_too_deep_ellipsis): New member function.
392 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
393 initializer.
394 (cplus_language_data): Likewise.
395 (asm_language_data): Likewise.
396 (minimal_language_data): Likewise.
397 * cp-valprint.c (cp_print_value): Update call to
398 struct_too_deep_ellipsis.
399 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
400 initializer.
401 * f-lang.c (f_language_data): Likewise.
402 (f_language::struct_too_deep_ellipsis): New member function.
403 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
404 initializer.
405 * language.c (unknown_language_data): Likewise.
406 (auto_language_data): Likewise.
407 * language.h (language_data): Delete la_struct_too_deep_ellipsis
408 member variable.
409 (language_defn::struct_too_deep_ellipsis): New member function.
410 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
411 initializer.Q
412 * objc-lang.c (objc_language_data): Likewise.
413 * opencl-lang.c (opencl_language_data): Likewise.
414 * p-lang.c (pascal_language_data): Likewise.
415 * rust-lang.c (rust_language_data): Likewise.
416 * valprint.c (val_print_check_max_depth): Update call to
417 struct_too_deep_ellipsis.
418
419 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
420
421 * MAINTAINERS (Write After Approval): Add myself.
422
423 2020-09-15 Tom Tromey <tom@tromey.com>
424
425 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
426 Remove.
427
428 2020-09-15 Tom Tromey <tom@tromey.com>
429
430 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
431 and TYPE_CODE_METHODPTR cases.
432 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
433 (c_value_print_inner): Update.
434 * valprint.c (generic_value_print_memberptr): New function, from
435 c_value_print_memberptr.
436 (generic_value_print): Use it. Call cplus_print_method_ptr.
437
438 2020-09-15 Tom Tromey <tromey@adacore.com>
439
440 * python/python-internal.h (PyInt_FromLong): Remove define.
441 * python/py-value.c (convert_value_from_python): Use
442 gdb_py_object_from_longest.
443 * python/py-type.c (typy_get_code): Use
444 gdb_py_object_from_longest.
445 * python/py-symtab.c (salpy_get_line): Use
446 gdb_py_object_from_longest.
447 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
448 gdb_py_object_from_longest.
449 * python/py-record.c (recpy_gap_reason_code): Use
450 gdb_py_object_from_longest.
451 * python/py-record-btrace.c (recpy_bt_insn_size)
452 (recpy_bt_func_level, btpy_list_count): Use
453 gdb_py_object_from_longest.
454 * python/py-infthread.c (gdbpy_create_ptid_object): Use
455 gdb_py_object_from_longest. Fix error handling.
456 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
457 gdb_py_object_from_longest.
458 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
459 gdb_py_object_from_longest.
460 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
461 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
462 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
463
464 2020-09-15 Tom Tromey <tromey@adacore.com>
465
466 * python/python.c (gdbpy_parameter_value): Use
467 gdb_py_object_from_ulongest.
468
469 2020-09-15 Tom Tromey <tromey@adacore.com>
470
471 * python/py-infevents.c (create_register_changed_event_object):
472 Use gdb_py_object_from_longest.
473 * python/py-exitedevent.c (create_exited_event_object): Use
474 gdb_py_object_from_longest.
475
476 2020-09-15 Tom Tromey <tromey@adacore.com>
477
478 * python/python.c (gdbpy_parameter_value): Use
479 gdb_py_object_from_longest.
480 * python/py-type.c (convert_field, typy_range): Use
481 gdb_py_object_from_longest.
482 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
483 gdb_py_object_from_longest.
484 * python/py-lazy-string.c (stpy_get_length): Use
485 gdb_py_object_from_longest.
486 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
487 gdb_py_object_from_longest.
488 * python/py-infevents.c (create_memory_changed_event_object): Use
489 gdb_py_object_from_longest.
490 * python/py-inferior.c (infpy_get_num): Use
491 gdb_py_object_from_longest.
492 (infpy_get_pid): Likewise.
493
494 2020-09-15 Tom Tromey <tromey@adacore.com>
495
496 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
497 defines.
498 * python/py-value.c (valpy_long): Use
499 gdb_py_object_from_ulongest.
500 * python/py-symtab.c (salpy_get_pc): Use
501 gdb_py_object_from_ulongest.
502 (salpy_get_last): Likewise.
503 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
504 gdb_py_object_from_ulongest.
505 * python/py-lazy-string.c (stpy_get_address): Use
506 gdb_py_object_from_ulongest.
507 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
508 * python/py-arch.c (archpy_disassemble): Use
509 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
510 error handling.
511
512 2020-09-15 Tom Tromey <tromey@adacore.com>
513
514 * python/python-internal.h (gdb_py_long_from_longest): Remove
515 defines.
516 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
517 * python/py-type.c (convert_field, typy_get_sizeof): Use
518 gdb_py_object_from_longest.
519 * python/py-record-btrace.c (btpy_list_index): Use
520 gdb_py_object_from_longest.
521
522 2020-09-15 Tom Tromey <tromey@adacore.com>
523
524 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
525 * python/py-record.c (recpy_element_number): Use
526 gdb_py_object_from_longest.
527 (recpy_gap_number): Likewise.
528
529 2020-09-15 Tom Tromey <tromey@adacore.com>
530
531 * top.c (ui::ui): Update.
532 (highest_ui_num): Remove.
533 * top.h (struct ui) <num>: Remove.
534
535 2020-09-15 Tom Tromey <tromey@adacore.com>
536
537 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
538 * ui-style.c (ansi_regex_text): Now array.
539 * rust-exp.y (number_regex_text): Now array.
540 * linespec.c (linespec_quote_characters): Now array.
541 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
542 Now arrays.
543
544 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * debuginfod-support.c (debuginfod_client_deleter): New.
547 (debuginfod_client_up): New.
548 (debuginfod_init): Return debuginfod_client_up.
549 (debuginfod_source_query): Adjust.
550 (debuginfod_debuginfo_query): Adjust.
551
552 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * debuginfod-support.c (debuginfod_source_query): Use
555 make_unique_xstrdup.
556
557 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
558
559 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
560 with `type::instance_flags`.
561
562 2020-09-14 Michael Mullin <masmullin@gmail.com>
563
564 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
565 Remove baton parameter.
566
567 2020-09-14 Pedro Alves <pedro@palves.net>
568
569 * Makefile.in (SELFTESTS_SRCS): Add
570 unittests/enum-flags-selftests.c.
571 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
572 btrace_function_flags instead of enum btrace_function_flag.
573 * compile/compile-c-types.c (convert_qualified): Use
574 enum_flags::raw.
575 * compile/compile-cplus-symbols.c (convert_one_symbol)
576 (convert_symbol_bmsym):
577 * compile/compile-cplus-types.c (compile_cplus_convert_method)
578 (compile_cplus_convert_struct_or_union_methods)
579 (compile_cplus_instance::convert_qualified_base):
580 * go-exp.y (parse_string_or_char): Add cast to int.
581 * unittests/enum-flags-selftests.c: New file.
582 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
583 type to btrace_thread_flags from btrace_thread_flag.
584 (record_btrace_cancel_resume, record_btrace_step_thread): Change
585 local's type to btrace_thread_flags from btrace_thread_flag. Add
586 cast in DEBUG call.
587
588 2020-09-14 Pedro Alves <pedro@palves.net>
589
590 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
591 * gdbtypes.c (address_space_name_to_int): Rename to ...
592 (address_space_name_to_type_instance_flags): ... this.
593 (address_space_int_to_name): Rename to ...
594 (address_space_type_instance_flags_to_name): ... this.
595 * gdbtypes.h (address_space_name_to_int): Rename to ...
596 (address_space_name_to_type_instance_flags): ... this.
597 (address_space_int_to_name): Rename to ...
598 (address_space_type_instance_flags_to_name): ... this.
599 * type-stack.c (type_stack::insert): Adjust to rename.
600 * type-stack.h (type_stack::insert): Likewise.
601
602 2020-09-14 Pedro Alves <pedro@palves.net>
603 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * avr-tdep.c (avr_address_class_type_flags): Return
606 type_instance_flags.
607 (avr_address_class_type_flags_to_name): Take a
608 type_instance_flags.
609 (avr_address_class_name_to_type_flags): Return bool and take a
610 type_instance_flags.
611 * d-lang.c (build_d_types): Use type::set_instance_flags.
612 * ft32-tdep.c (ft32_address_class_type_flags): Return
613 type_instance_flags.
614 (ft32_address_class_type_flags_to_name): Take a
615 type_instance_flags.
616 (ft32_address_class_name_to_type_flags): Return bool and take a
617 type_instance_flags.
618 (ft32_gdbarch_init): Use type::set_instance_flags.
619 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
620 * gdbarch.h, gdbarch.c: Regenerate.
621 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
622 (address_class_name_to_type_flags): Use type_instance_flags and
623 bool.
624 * gdbtypes.c (address_space_name_to_int)
625 (address_space_int_to_name, make_qualified_type): Use
626 type_instance_flags.
627 (make_qualified_type): Use type_instance_flags and
628 type::set_instance_flags.
629 (make_type_with_address_space, make_cv_type, make_vector_type)
630 (check_typedef): Use type_instance_flags.
631 (recursive_dump_type): Cast type_instance_flags to unsigned for
632 printing.
633 (copy_type_recursive): Use type::set_instance_flags.
634 (gdbtypes_post_init): Use type::set_instance_flags.
635 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
636 <m_instance_flags>: ... this.
637 <instance_flags, set_instance_flags>: New methods.
638 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
639 (SET_TYPE_INSTANCE_FLAGS): New.
640 (address_space_name_to_int, address_space_int_to_name)
641 (make_type_with_address_space): Pass flags using
642 type_instance_flags instead of int.
643 * stabsread.c (cleanup_undefined_types_noname): Use
644 type::set_instance_flags.
645 * s390-tdep.c (s390_address_class_type_flags): Return
646 type_instance_flags.
647 (s390_address_class_type_flags_to_name): Take a
648 type_instance_flags.
649 (s390_address_class_name_to_type_flags): Return bool and take a
650 type_instance_flags.
651 * type-stack.c (type_stack::follow_types): Use
652 type_instance_flags.
653 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
654
655 2020-09-14 Tom Tromey <tromey@adacore.com>
656
657 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
658 * x86-tdep.c (x86_is_thunk_register_name)
659 (x86_in_indirect_branch_thunk): Update.
660 * sparc64-tdep.c (sparc64_fpu_register_names)
661 (sparc64_cp0_register_names, sparc64_register_names)
662 (sparc64_pseudo_register_names): Now const.
663 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
664 cp0_registers_num>: Now const.
665 * sparc-tdep.c (sparc_core_register_names)
666 (sparc32_fpu_register_names, sparc32_cp0_register_names)
667 (sparc32_pseudo_register_names): Now const.
668 (validate_tdesc_registers): Update.
669 * rust-lang.c (rust_extensions): Now const.
670 * p-lang.c (p_extensions): Now const.
671 * objc-lang.c (objc_extensions): Now const.
672 * nto-tdep.c (nto_thread_state_str): Now const.
673 * moxie-tdep.c (moxie_register_names): Now const.
674 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
675 Now const.
676 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
677 (mips_linux_reg_names): Now const.
678 (mips_gdbarch_init): Update.
679 * microblaze-tdep.c (microblaze_register_names): Now const.
680 * m68k-tdep.c (m68k_register_names): Now const.
681 * m32r-tdep.c (m32r_register_names): Now const.
682 * ia64-tdep.c (ia64_register_names): Now const.
683 * i386-tdep.h (struct gdbarch_tdep) <register_names,
684 ymmh_register_names, ymm16h_regnum, mpx_register_names,
685 k_register_names, zmmh_register_names, xmm_avx512_register_names,
686 ymm_avx512_register_names, pkeys_register_names>: Now const.
687 * i386-tdep.c (i386_register_names, i386_zmm_names)
688 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
689 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
690 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
691 * f-lang.c (f_extensions): Now const.
692 * d-lang.c (d_extensions): Now const.
693 * csky-tdep.c (csky_register_names): Now const.
694 * charset.c (default_charset_names, charset_enum): Now const.
695 (_initialize_charset): Update.
696 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
697 const.
698 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
699 (bsd_uthread_solib_loaded): Update.
700 (bsd_uthread_state): Now const.
701 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
702 (amd64_ymm_avx512_names, amd64_ymmh_names)
703 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
704 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
705 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
706 (amd64_dword_names): Now const.
707 * agent.c (can_use_agent_enum): Now const.
708 * ada-tasks.c (task_states, long_task_states): Now const.
709 * ada-lang.c (known_runtime_file_name_patterns)
710 (known_auxiliary_function_name_patterns, attribute_names)
711 (standard_exc, ada_extensions): Now const.
712
713 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
714
715 * bcache.h (struct bcache) <bcache>: Remove constructor.
716 <m_hash_function, m_compare_function>: Remove.
717 <~bcache>: Make virtual.
718 <compare>: Remove static method, introduce virtual method.
719 <default_hash>: Remove.
720 <hash>: New virtual method.
721 * bcache.c (bcache::expand_hash_table): Update.
722 (bcache::insert): Update.
723 (bcache::hash): New.
724 (bcache::compare): Update comment and parameter names.
725 * gdbtypes.c (types_deeply_equal): Update.
726 * psymtab.h (struct psymbol_bcache): New struct.
727 (class psymtab_storage) <psymtab_storage>: Make default.
728 <psymbol_cache>: Change type to psymbol_bcache.
729 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
730 (psymbol_hash): Change to...
731 (psymbol_bcache::hash): ... this.
732 (psymbol_compare): Change to...
733 (psymbol_bcache::compare): ... this.
734
735 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
738 checking for initial lwp.
739
740 2020-09-14 Tom Tromey <tromey@adacore.com>
741
742 * m68k-tdep.c (m68k_extract_return_value): Use
743 pointer_result_regnum.
744 (m68k_store_return_value): Likewise.
745 (m68k_reg_struct_return_p): Handle vectors and arrays.
746 (m68k_return_value): Handle arrays.
747 (m68k_svr4_return_value): Fix single-element aggregate handling.
748 Handle long double. Adjust for embedded ABI.
749 (m68k_svr4_init_abi): Set pointer_result_regnum.
750 (m68k_embedded_init_abi): New function.
751 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
752 (m68k_osabi_sniffer): New function.
753 (_initialize_m68k_tdep): Register osabi sniffer.
754 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
755 member.
756
757 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * xml-support.c (xml_fetch_content_from_file): Replace xfree
760 with gdb::unique_xmalloc_ptr<char>.
761
762 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
763
764 * xml-support.h (xml_fetch_another): Change type to be a
765 function_view.
766 (xml_process_xincludes): Remove baton parameter.
767 (xml_fetch_content_from_file): Change baton parameter to
768 dirname.
769 * xml-support.c (struct xinclude_parsing_data)
770 <xinclude_parsing_data>: Remove baton parameter.
771 <fetcher_baton>: Remove.
772 (xinclude_start_include): Adjust.
773 (xml_process_xincludes): Adjust.
774 (xml_fetch_content_from_file): Replace baton parameter with
775 dirname.
776 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
777 (xml_init_syscalls_info): Use a lambda.
778 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
779 (file_read_description_xml): Use a lambda.
780 (fetch_available_features_from_target): Change baton parameter
781 to target_ops.
782 (target_read_description_xml): Use a lambda.
783 (target_fetch_description_xml): Use a lambda.
784 (string_read_description_xml): Update.
785
786 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
789 uses with type::endianity_is_not_default.
790
791 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
792
793 * gdbtypes.h (struct type) <endianity_is_not_default,
794 set_endianity_is_not_default>: New methods.
795 (TYPE_ENDIANITY_NOT_DEFAULT): Use
796 type::endianity_is_not_default, change all write call sites to
797 use type::set_endianity_is_not_default.
798
799 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
800
801 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
802 uses with type::is_fixed_instance.
803
804 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
805
806 * gdbtypes.h (struct type) <is_fixed_instance,
807 set_is_fixed_instance>: New methods.
808 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
809 write call sites to use type::set_is_fixed_instance.
810
811 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
812
813 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
814 uses with type::is_gnu_ifunc.
815
816 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
817
818 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
819 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
820 use type::set_is_gnu_ifunc.
821
822 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
823
824 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
825 uses with type::stub_is_supported.
826
827 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
828
829 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
830 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
831 use type::set_stub_is_supported.
832
833 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
834
835 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
836 uses with type::is_vector.
837
838 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
839
840 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
841 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
842 use type::set_is_vector.
843
844 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
845
846 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
847 uses with type::has_varargs.
848
849 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
850
851 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
852 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
853 use type::set_has_varargs.
854
855 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
856
857 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
858 uses with type::is_prototyped.
859
860 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
861
862 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
863 New methods.
864 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
865 call sites to use type::set_is_prototyped.
866
867 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
868
869 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
870 uses with type::target_is_stub.
871
872 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
873
874 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
875 New methods.
876 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
877 sites to use type::set_target_is_stub.
878
879 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
880
881 * gdbtypes.h (TYPE_STUB): Remove, replace all
882 uses with type::is_stub.
883
884 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
885
886 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
887 (TYPE_STUB): Use type::is_stub, change all write call sites to
888 use type::set_is_stub.
889
890 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
891
892 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
893 type::has_no_signedness.
894
895 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
896
897 * gdbtypes.h (struct type) <has_no_signedness,
898 set_has_no_signedness>: New methods.
899 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
900 call sites to use type::set_has_no_signedness.
901
902 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
903
904 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
905 type::is_unsigned.
906
907 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
908
909 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
910 methods.
911 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
912 sites to use type::set_is_unsigned.
913
914 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
915 Adam Renquinha <arenquinha@cimeq.qc.ca>
916
917 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
918 pointer and stack frame offset when unwinding.
919
920 2020-09-13 Pedro Alves <pedro@palves.net>
921
922 * NEWS: Document "-break-insert --qualified".
923 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
924
925 2020-09-13 Pedro Alves <pedro@palves.net>
926
927 * linespec.c (classify_mtype, compare_msyms): Delete.
928 (search_minsyms_for_name): Remove classification logic. Instead
929 filter out trampoline symbols if we also found an external
930 function of the same name.
931
932 2020-09-13 Joel Brobecker <brobecker@adacore.com>
933
934 * NEWS: Create a new section for the next release branch.
935 Rename the section of the current branch, now that it has
936 been cut.
937
938 2020-09-13 Joel Brobecker <brobecker@adacore.com>
939
940 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
941 * version.in: Bump version to 11.0.50.DATE-git.
942
943 2020-09-12 Joel Brobecker <brobecker@adacore.com>
944
945 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
946
947 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
948 Felix Willgerodt <Felix.Willgerodt@intel.com>
949
950 * gdbarch.sh: Added bfloat16 type.
951 * gdbarch.c: Regenerated.
952 * gdbarch.h: Regenerated.
953 * gdbtypes.c (floatformats_bfloat16): New struct.
954 (gdbtypes_post_init): Add builtin_bfloat16.
955 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
956 (floatformats_bfloat16): New struct.
957 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
958 (i386_ymm_type): Add field "v16_bfloat16"
959 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
960 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
961 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
962 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
963 * features/i386/64bit-avx512.xml: Add bfloat16 type.
964 * features/i386/64bit-avx512.c: Regenerated.
965 * features/i386/64bit-sse.xml: Add bfloat16 type.
966 * features/i386/64bit-sse.c: Regenerated.
967
968 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
969
970 * i386-tdep.c (i386_zmm_type): Fix field names.
971 (i386_ymm_type): Fix field names.
972
973 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
974
975 * breakpoint.c: Fix typo in the help message of the
976 "set breakpoint condition-evaluation" command.
977
978 2020-09-10 Kamil Rytarowski <n54@gmx.com>
979
980 * nbsd-nat.c: Include "nat/netbsd-nat.h".
981 * (nbsd_nat_target::pid_to_exec_file)
982 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
983 (nbsd_nat_target::post_startup_inferior)
984 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
985 (nbsd_add_threads): Switch local code to common gdb/nat functions.
986 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
987 * (nbsd_thread_lister): Remove.
988
989 2020-09-10 Kamil Rytarowski <n54@gmx.com>
990
991 * fork-inferior.c (startup_inferior): Avoid double free.
992
993 2020-09-10 Kamil Rytarowski <n54@gmx.com>
994
995 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
996 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
997
998 2020-09-10 Kamil Rytarowski <n54@gmx.com>
999
1000 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1001 * netbsd-nat.c: Include <sys/ptrace.h>.
1002 * (netbsd_nat::enable_proc_events): Add.
1003
1004 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1005
1006 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1007 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1008 (netbsd_nat::for_each_thread): Add.
1009 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1010 "gdbsupport/common-debug.h".
1011 * (netbsd_nat::netbsd_thread_lister)
1012 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1013 (netbsd_nat::for_each_thread): Add.
1014
1015 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1016
1017 * netbsd-nat.h: Include <unistd.h>.
1018 * (netbsd_nat::pid_to_exec_file): Add.
1019 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1020 * (netbsd_nat::pid_to_exec_file) Add.
1021
1022 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1023
1024 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1025
1026 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1027
1028 * netbsd-nat.h: New file.
1029 * netbsd-nat.c: Likewise.
1030
1031 2020-09-09 Tom Tromey <tromey@adacore.com>
1032
1033 * ada-lang.c (remove_extra_symbols): Do not increment when
1034 removing an element
1035
1036 2020-09-08 Tom Tromey <tromey@adacore.com>
1037
1038 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1039
1040 2020-09-08 Tom Tromey <tromey@adacore.com>
1041
1042 PR win32/25302:
1043 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1044 (gdb_bfd_init_data): New function.
1045 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1046
1047 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1048
1049 * infrun.c (fetch_inferior_event): Use
1050 `switch_to_target_no_thread` to switch the target.
1051
1052 2020-09-06 Tom Tromey <tom@tromey.com>
1053
1054 * symfile.h (dwarf2_free_objfile): Don't declare.
1055
1056 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1057
1058 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1059 to match 16 byte real/complex type generated by Flang compiler.
1060
1061 2020-09-03 Tom de Vries <tdevries@suse.de>
1062
1063 PR breakpoint/26546
1064 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1065 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1066
1067 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1068
1069 * maint.c (index_digits): New function.
1070 (struct maint_print_section_data): Remove.
1071 (print_bfd_section_info): Remove print_data parameter, add arg
1072 and index_digits.
1073 (print_objfile_section_info): Likewise.
1074 (print_bfd_section_info_maybe_relocated): Likewise (plus
1075 objfile).
1076 (maintenance_info_sections): Adjust calls.
1077
1078 2020-09-02 Tom Tromey <tromey@adacore.com>
1079
1080 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1081 for null pointers.
1082 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1083
1084 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1085
1086 * bcache.h (struct bcache) <insert>: Change type of `added` to
1087 pointer to bool.
1088 * bcache.c (bcache::insert): Likewise.
1089 * gdbtypes.c (check_types_worklist): Adjust.
1090 * psymtab.c (add_psymbol_to_bcache): Adjust.
1091
1092 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1093
1094 * corelow.c (unordered_set): Include.
1095 (class core_target): Add field 'm_core_unavailable_mappings'.
1096 (core_target::build_file_mappings): Print only one warning
1097 per inaccessible file. Add unavailable/broken mappings
1098 to m_core_unavailable_mappings.
1099 (core_target::xfer_partial): Call...
1100 (core_target::xfer_memory_via_mappings): New method.
1101
1102 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1105 type to bool.
1106
1107 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1108
1109 * dwarf2/read.c (struct field_info): Fix indentation.
1110
1111 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1114 ordering in comment.
1115 * frame.c (frame_id_eq): Fix indentation.
1116
1117 2020-08-31 Scott Linder <scott@scottlinder.com>
1118 Simon Marchi <simon.marchi@efficios.com>
1119
1120 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1121 inline frame ids in outer frame.
1122
1123 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1124
1125 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1126 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1127 (outer_frame_id): Use FID_STACK_OUTER instead of
1128 FID_STACK_INVALID.
1129 (frame_id_p): Don't check for outer_frame_id.
1130
1131 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1134 regnum/frame in value. Call allocate_value_lazy.
1135 * frame.c (frame_unwind_register_value): Use
1136 val_print_not_saved.
1137
1138 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1139
1140 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1141
1142 2020-08-29 Pedro Alves <pedro@palves.net>
1143
1144 * progspace.c (print_program_space): Use all_inferiors. Switch to
1145 the inferior before calling target_pid_to_str.
1146
1147 2020-08-28 Tom Tromey <tom@tromey.com>
1148
1149 * xcoffread.c (xcoff_end_psymtab): Update comment.
1150 * dbxread.c (dbx_end_psymtab): Update comment.
1151
1152 2020-08-28 Tom de Vries <tdevries@suse.de>
1153
1154 PR breakpoint/26544
1155 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1156 event_location.
1157 (create_breakpoint): Same.
1158 (base_breakpoint_decode_location): Same.
1159 (bkpt_create_sals_from_location): Same.
1160 (bkpt_decode_location): Same.
1161 (bkpt_probe_create_sals_from_location): Same.
1162 (bkpt_probe_decode_location): Same.
1163 (tracepoint_create_sals_from_location): Same.
1164 (tracepoint_decode_location): Same.
1165 (tracepoint_probe_decode_location): Same.
1166 (strace_marker_create_sals_from_location): Same.
1167 (strace_marker_decode_location): Same.
1168 (create_sals_from_location_default): Same.
1169 (decode_location_default): Same.
1170 * breakpoint.h (struct breakpoint_ops): Same.
1171 (create_breakpoint): Same.
1172 * linespec.h (decode_line_full): Same.
1173 * linespec.c (decode_line_full): Same. Throw error if
1174 result.size () == 0.
1175
1176 2020-08-27 Pedro Alves <pedro@palves.net>
1177
1178 PR gdb/26524
1179 * breakpoint.c (until_break_fsm) <location_breakpoint,
1180 caller_breakpoint>: Delete fields.
1181 <breakpoints>: New field.
1182 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1183 two individual breakpoints.
1184 (until_break_fsm::should_stop): Loop over breakpoints in the
1185 breakpoint vector.
1186 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1187 vector.
1188 (until_break_command): Handle location expanding into multiple
1189 sals.
1190
1191 2020-08-27 Pedro Alves <pedro@palves.net>
1192
1193 PR gdb/26523
1194 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1195 bp_until breakpoints user-specified locations. Update intro
1196 comment.
1197
1198 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1199
1200 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1201 gdb_bfd_sections): New.
1202 * maint.c (print_bfd_section_info): Change param type to
1203 maint_print_section_data.
1204 (print_objfile_section_info): Likewise.
1205 (print_bfd_section_info_maybe_relocated): Likewise.
1206 (maintenance_info_sections): Use gdb_bfd_sections.
1207
1208 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1209
1210 * MAINTAINERS: Add ARC target and maintainer.
1211
1212 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1213
1214 * configure.tgt: ARC support for GNU/Linux.
1215 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1216 * arc-linux-tdep.c: New file.
1217 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1218 * arc-tdep.c (arc_write_pc): Use it.
1219
1220 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1221
1222 * arc-tdep.c (arc_check_for_hardware_loop): New.
1223 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1224
1225 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1226
1227 * arc-tdep.h: Include "gdbarch.h".
1228
1229 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1230
1231 * arch/arc.h
1232 (arc_gdbarch_features): New class to stir the selection of target XML.
1233 (arc_create_target_description): Use FEATURES to choose XML target.
1234 (arc_lookup_target_description): Use arc_create_target_description
1235 to create _new_ target descriptions or return the already created
1236 ones if the FEATURES is the same.
1237 * arch/arc.c: Implementation of prototypes described above.
1238 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1239 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1240 * arc-tdep.c (*_feature_name): Make feature names consistent.
1241 (arc_register_feature): A new struct to hold information about
1242 registers of a particular target/feature.
1243 (arc_check_tdesc_feature): Check if XML provides registers in
1244 compliance with ARC_REGISTER_FEATURE structs.
1245 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1246 (determine_*_reg_feature_set): Which feature name to look for.
1247 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1248 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1249 to expected ISA enums to be used in arc_gdbarch_features structs.
1250 * features/Makefile (FEATURE_XMLFILES): Add new files.
1251 * gdb/features/arc/v1-aux.c: New file.
1252 * gdb/features/arc/v1-aux.xml: Likewise.
1253 * gdb/features/arc/v1-core.c: Likewise.
1254 * gdb/features/arc/v1-core.xml: Likewise.
1255 * gdb/features/arc/v2-aux.c: Likewise.
1256 * gdb/features/arc/v2-aux.xml: Likewise.
1257 * gdb/features/arc/v2-core.c: Likewise.
1258 * gdb/features/arc/v2-core.xml: Likewise.
1259 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1260
1261 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1262 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 PR m2/26372
1265 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1266 an assert. Remove single element array indexing pattern as the
1267 MULTI_SUBSCRIPT support will handle this case too.
1268
1269 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * value.h (valprint_check_validity): Move declaration from
1272 here...
1273 * valprint.h (valprint_check_validity): ... to here.
1274
1275 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * debug.h: New file.
1278 * debug.c (debug_prefixed_vprintf): New function.
1279 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1280 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1281
1282 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1283
1284 * infrun.h (infrun_debug_printf_1): New function declaration.
1285 (infrun_debug_printf): New macro.
1286 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1287 throughout.
1288 (infrun_debug_printf): New function.
1289 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1290 (handle_jit_event): Likewise.
1291
1292 2020-08-21 Mark Wielaard <mark@klomp.org>
1293
1294 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1295
1296 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1297
1298 * frame.c (enum class frame_id_status): New.
1299 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1300 (fprintf_frame): Update.
1301 (compute_frame_id): Set frame id status to "computing" on entry.
1302 Set it back to "not_computed" on failure and to "computed" on
1303 success.
1304 (get_frame_id): Assert the frame id is not being computed.
1305 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1306 (create_new_frame): Likewise.
1307 (frame_cleanup_after_sniffer): Update assert.
1308
1309 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1310
1311 * regcache.c (pid_ptid_regcache_map): New type.
1312 (target_ptid_regcache_map): Remove.
1313 (target_pid_ptid_regcache_map): New type.
1314 (regcaches): Change type to target_pid_ptid_regcache_map.
1315 (get_thread_arch_aspace_regcache): Update.
1316 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1317 case.
1318 (regcaches_size): Update.
1319 (regcache_count): Update.
1320 (registers_changed_ptid_target_pid_test): New.
1321 (_initialize_regcache): Register new test.
1322
1323 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * regcache.c (regcache_count): New.
1326 (struct regcache_test_data): New.
1327 (regcache_test_data_up): New.
1328 (populate_regcaches_for_test): New.
1329 (regcaches_test): Remove.
1330 (get_thread_arch_aspace_regcache_test): New.
1331 (registers_changed_ptid_all_test): New.
1332 (registers_changed_ptid_target_test): New.
1333 (registers_changed_ptid_target_ptid_test): New.
1334 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1335 (_initialize_regcache): Register new tests.
1336
1337 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1340 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1341 gdbarch and aspace parameter. Use current inferior's aspace.
1342 Validate regcache's arch value.
1343 (regcaches_test): Update.
1344
1345 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * regcache.c (regcaches_test): Call registers_changed.
1348
1349 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1350
1351 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1352
1353 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1354
1355 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1356 to find the end of prologue for flang compiled binaries.
1357 * arm-tdep.c (arm_skip_prologue): Likewise.
1358 * i386-tdep.c (i386_skip_prologue): Likewise.
1359 * producer.c (producer_is_llvm): New function.
1360 (producer_parsing_tests): Added new tests for clang/flang.
1361 * producer.h (producer_is_llvm): New declaration.
1362
1363 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1364
1365 * linux-nat.c (linux_nat_debug_printf): New function.
1366 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1367
1368 2020-08-18 Aaron Merey <amerey@redhat.com>
1369
1370 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1371 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1372 (CLIBS): Add DEBUGINFOD_LIBS.
1373
1374 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1375
1376 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1377 'gdbarch_num_regs'.
1378
1379 2020-08-17 Tom Tromey <tromey@adacore.com>
1380
1381 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1382 ada_get_decoded_value returns NULL.
1383
1384 2020-08-17 Tom Tromey <tromey@adacore.com>
1385
1386 * python/py-inferior.c (infpy_search_memory): Use
1387 gdb_py_object_from_ulongest.
1388 * python/py-infevents.c (create_inferior_call_event_object)
1389 (create_memory_changed_event_object): Use
1390 gdb_py_object_from_ulongest.
1391 * python/py-linetable.c (ltpy_entry_get_pc): Use
1392 gdb_py_object_from_ulongest.
1393
1394 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * loc.c (class symbol_needs_eval_context): Fix indentation.
1397
1398 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1399
1400 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1401 bool.
1402
1403 2020-08-17 Tom de Vries <tdevries@suse.de>
1404
1405 PR gdb/26393
1406 * gdbtypes.c (dump_dynamic_prop): New function.
1407 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1408
1409 2020-08-15 Tom de Vries <tdevries@suse.de>
1410
1411 PR backtrace/26390
1412 * stack.c (print_frame_args): Temporarily set the selected
1413 frame to FRAME while printing the frame's arguments.
1414
1415 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1416
1417 PR breakpoints/26385
1418 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1419 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1420
1421 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1422
1423 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1424 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1425 and >= to check return value instead of == -1 and != -1.
1426
1427 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 * utils.h (class gdb_argv) <as_array_view>: New method.
1430 * utils.c (gdb_argv_as_array_view_test): New.
1431 (_initialize_utils): Register selftest.
1432 * maint.c (maintenance_selftest): Use the new method.
1433
1434 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1435
1436 * target.h (supports_dumpcore, dumpcore): New
1437 function declarations.
1438 * target.c (supports_dumpcore, dumpcore): New
1439 functions.
1440 * target-delegates.c: Rebuild.
1441 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1442 and target_dumpcore ().
1443
1444 2020-08-13 Aaron Merey <amerey@redhat.com>
1445
1446 * debuginfod-support.c: Replace global variables with user_data.
1447
1448 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1449
1450 * maint.c (maintenance_selftest): Split args and pass array_view
1451 to run_tests.
1452
1453 2020-08-12 Luis Machado <luis.machado@linaro.org>
1454
1455 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1456 type's length.
1457 Use %s and pulongest to print the length.
1458
1459 2020-08-12 Pedro Alves <palves@redhat.com>
1460
1461 * NEWS: Move "Multi-target debugging support" item to the
1462 "Changes since GDB 9" section.
1463
1464 2020-08-12 Pedro Alves <palves@redhat.com>
1465
1466 PR gdb/26336
1467 * progspace.c (program_space::remove_objfile): Invalidate the
1468 frame cache.
1469
1470 2020-08-11 Tom de Vries <tdevries@suse.de>
1471
1472 * MAINTAINERS: Mark ms1 as deleted.
1473
1474 2020-08-10 Luis Machado <luis.machado@linaro.org>
1475
1476 PR gdb/26310
1477
1478 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1479 act accordingly.
1480 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1481 movz/str/stur/stp skipping behavior.
1482
1483 2020-08-10 Luis Machado <luis.machado@linaro.org>
1484
1485 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1486 struct user_sve_header instead of struct sve_context.
1487
1488 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1489
1490 * read.h (dwarf2_fetch_die_loc_sect_off,
1491 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1492 `void *` parameter with function_view.
1493 * read.c (dwarf2_fetch_die_loc_sect_off,
1494 dwarf2_fetch_die_loc_cu_off): Likewise.
1495 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1496 (per_cu_dwarf_call): Adjust.
1497 (get_frame_address_in_block_wrapper): Remove.
1498 (indirect_synthetic_pointer): Adjust.
1499 (get_ax_pc): Remove.
1500 (dwarf2_compile_expr_to_ax): Adjust.
1501
1502 2020-08-08 Tom de Vries <tdevries@suse.de>
1503
1504 PR build/26344
1505 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1506 constructor.
1507 * regcache.c (get_thread_arch_aspace_regcache): Same.
1508
1509 2020-08-07 Tom Tromey <tromey@adacore.com>
1510
1511 * ravenscar-thread.c
1512 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1513 New method.
1514 (ravenscar_thread_target::wait): Check
1515 runtime_initialized.
1516 (ravenscar_thread_target::prepare_to_store)
1517 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1518 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1519 (ravenscar_thread_target::stopped_by_watchpoint)
1520 (ravenscar_thread_target::stopped_data_address)
1521 (ravenscar_thread_target::core_of_thread): Use
1522 scoped_restore_current_thread and
1523 set_base_thread_from_ravenscar_task.
1524
1525 2020-08-07 Tom Tromey <tromey@adacore.com>
1526
1527 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1528
1529 2020-08-07 Tom Tromey <tromey@adacore.com>
1530
1531 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1532 update_inferior_ptid before update_thread_list.
1533 (temporarily_change_regcache_ptid): New class.
1534 (ravenscar_thread_target::fetch_registers)
1535 (ravenscar_thread_target::store_registers)
1536 (ravenscar_thread_target::prepare_to_store): Use base thread when
1537 forwarding operation.
1538
1539 2020-08-07 Tom Tromey <tromey@adacore.com>
1540
1541 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1542 "is_pid" case.
1543
1544 2020-08-07 Tom Tromey <tromey@adacore.com>
1545
1546 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1547 New methods.
1548 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1549 first.
1550 (ravenscar_thread_target::add_thread): Rename from
1551 ravenscar_add_thread.
1552 (ravenscar_thread_target::update_thread_list): Use a lambda.
1553 (ravenscar_thread_target::xfer_partial): New method.
1554
1555 2020-08-07 Tom Tromey <tromey@adacore.com>
1556
1557 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1558 gdb::function_view.
1559 (iterate_over_live_ada_tasks): Change type of argument.
1560 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1561 of argument.
1562
1563 2020-08-07 Tom Tromey <tromey@adacore.com>
1564
1565 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1566 Remove.
1567 (ravenscar_thread_target::extra_thread_info): Remove.
1568 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1569 defer to target beneath for non-Ravenscar threads.
1570
1571 2020-08-07 Tom Tromey <tromey@adacore.com>
1572
1573 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1574 get_base_thread_from_ravenscar_task>: Now methods.
1575 <m_cpu_map>: New member.
1576 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1577 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1578 (ravenscar_thread_target::task_is_currently_active): Update.
1579 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1580 Now a method.
1581 (ravenscar_thread_target::add_active_thread): Put initial thread
1582 into the m_cpu_map.
1583
1584 2020-08-07 Tom Tromey <tromey@adacore.com>
1585
1586 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1587 event_ptid.
1588
1589 2020-08-07 Tom Tromey <tromey@adacore.com>
1590
1591 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1592 runtime_initialized.
1593
1594 2020-08-07 Tom Tromey <tromey@adacore.com>
1595
1596 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1597 add_active_thread.
1598 (ravenscar_thread_target::add_active_thread): Now public.
1599 (ravenscar_inferior_created): Call add_active_thread after pushing
1600 the target.
1601
1602 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * regcache.c (ptid_regcache_map): New type.
1605 (target_ptid_regcache_map): New type.
1606 (regcaches): Change type to target_ptid_regcache_map.
1607 (get_thread_arch_aspace_regcache): Update to regcaches' new
1608 type.
1609 (regcache_thread_ptid_changed): Likewise.
1610 (registers_changed_ptid): Likewise.
1611 (regcaches_size): Likewise.
1612 (regcaches_test): Update.
1613 (regcache_thread_ptid_changed): Update.
1614 * regcache.h (regcache_up): New type.
1615 * gdbsupport/ptid.h (hash_ptid): New struct.
1616
1617 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1618
1619 * observable.h (thread_ptid_changed): Add parameter
1620 `process_stratum_target *`.
1621 * infrun.c (infrun_thread_ptid_changed): Add parameter
1622 `process_stratum_target *` and use it.
1623 (selftests): New namespace.
1624 (infrun_thread_ptid_changed): New function.
1625 (_initialize_infrun): Register selftest.
1626 * regcache.c (regcache_thread_ptid_changed): Add parameter
1627 `process_stratum_target *` and use it.
1628 (regcache_thread_ptid_changed): New function.
1629 (_initialize_regcache): Register selftest.
1630 * thread.c (thread_change_ptid): Pass target to
1631 thread_ptid_changed observable.
1632
1633 2020-08-06 Caroline Tice <cmtice@google.com>
1634
1635 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1636 (struct dwp_sections): Update field comments. Add loclists and
1637 rnglists fields.
1638 (struct virtual_v2_dwo_sections): Rename struct to
1639 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1640 size & offset fields for loclists and rnglists.
1641 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1642 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1643 skipping dummy type units.
1644 (create_dwp_hash_table): Update the large comment above the function to
1645 discuss Version 5 DWP files as well, with references. Update all the
1646 version checks in the function to check for version 5 as well. Add new
1647 section at the end to create dwp hash table for version 5.
1648 (create_dwp_v2_section): Rename function to
1649 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1650 Add V5 to error message text.
1651 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1652 into calls to create_dwp_v2_or_v5_section.
1653 (create_dwo_unit_in_dwp_v5): New function.
1654 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1655 check for version2; add else clause to handle version 5.
1656 (open_and_init_dwo_file): Add code to check dwarf version & only call
1657 create_debug_types_hash_table (with sections.types) if version is not 5;
1658 else call create_debug_type_hash_table, with sections.info.
1659 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1660 version 5.
1661 (dwarf2_locate_v5_dwp_sections): New function.
1662 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1663 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1664
1665 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * regcache.h (class regcache): Remove friend
1668 registers_changed_ptid.
1669 <regcache_thread_ptid_changed>: Remove.
1670 <regcaches>: Remove.
1671 * regcache.c (regcache::regcaches): Rename to...
1672 (regcaches): ... this. Make static.
1673 (get_thread_arch_aspace_regcache): Update.
1674 (regcache::regcache_thread_ptid_changed): Rename to...
1675 (regcache_thread_ptid_changed): ... this. Update.
1676 (class regcache_access): Remove.
1677 (regcaches_test): Update.
1678 (_initialize_regcache): Update.
1679 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1680 <forward_list>.
1681
1682 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * regcache.h (class regcache) <current_regcache>: Rename to...
1685 <regcaches>: ... this. Move doc here.
1686 * regcache.c (regcache::current_regcache) Rename to...
1687 (regcache::regcaches): ... this. Move doc to header.
1688 (get_thread_arch_aspace_regcache): Update.
1689 (regcache::regcache_thread_ptid_changed): Update.
1690 (registers_changed_ptid): Update.
1691 (class regcache_access) <current_regcache_size>: Rename to...
1692 <regcaches_size>: ... this.
1693 (current_regcache_test): Rename to...
1694 (regcaches_test): ... this.
1695 (_initialize_regcache): Update.
1696
1697 2020-08-06 Victor Collod <vcollod@nvidia.com>
1698
1699 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1700
1701 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1702
1703 * corelow.c (core_target::build_file_mappings): Don't output
1704 null pathname in warning.
1705
1706 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1707
1708 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1709 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1710 gdb.dwarf2/dw2-single-line-discriminators.exp,
1711 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1712
1713 2020-08-05 Tom Tromey <tromey@adacore.com>
1714
1715 PR rust/26197:
1716 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1717 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1718 Fix off-by-one and type size errors in ordinary case.
1719
1720 2020-08-05 Tom de Vries <tdevries@suse.de>
1721
1722 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1723 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1724
1725 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1726
1727 * frame.h (frame_id_p): Return bool.
1728 (frame_id_artificial_p): Return bool.
1729 (frame_id_eq): Return bool.
1730 (has_stack_frames): Return bool.
1731 (get_selected_frame): Fix typo in comment.
1732 (get_frame_pc_if_available): Return bool.
1733 (get_frame_address_in_block_if_available): Return bool.
1734 (get_frame_func_if_available): Return bool.
1735 (read_frame_register_unsigned): Return bool.
1736 (get_frame_register_bytes): Return bool.
1737 (safe_frame_unwind_memory): Return bool.
1738 (deprecated_frame_register_read): Return bool.
1739 (frame_unwinder_is): Return bool.
1740 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1741 bool.
1742 <this_id::p>: Likewise.
1743 <prev_p>: Likewise.
1744 (frame_stash_add): Return bool.
1745 (get_frame_id): Use bool.
1746 (frame_id_build_special) Use bool.
1747 (frame_id_build_unavailable_stack): Use bool.
1748 (frame_id_build): Use bool.
1749 (frame_id_p): Return bool, use true/false instead of 1/0.
1750 (frame_id_artificial_p): Likewise.
1751 (frame_id_eq): Likewise.
1752 (frame_id_inner): Likewise.
1753 (get_frame_func_if_available): Likewise.
1754 (read_frame_register_unsigned): Likewise.
1755 (deprecated_frame_register_read): Likewise.
1756 (get_frame_register_bytes): Likewise.
1757 (has_stack_frames): Likewise.
1758 (inside_main_func): Likewise.
1759 (inside_entry_func): Likewise.
1760 (get_frame_pc_if_available): Likewise.
1761 (get_frame_address_in_block_if_available): Likewise.
1762 (frame_unwinder_is): Likewise.
1763 (safe_frame_unwind_memory): Likewise.
1764 (frame_unwind_arch): Likewise.
1765
1766 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1767
1768 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1769 type to cached_copy_status.
1770 (fprintf_frame): Adjust.
1771 (get_frame_func_if_available): Adjust.
1772 (frame_cleanup_after_sniffer): Adjust.
1773
1774 2020-08-04 Mark Wielaard <mark@klomp.org>
1775
1776 * MAINTAINERS (Write After Approval): Update email address.
1777
1778 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1781 dynamic_prop::const_val.
1782
1783 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1786 dynamic_prop::kind.
1787
1788 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1789
1790 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1791
1792 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1793
1794 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1795
1796 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1797 Jose E. Marchesi <jose.marchesi@oracle.com>
1798
1799 * configure.tgt: Add entry for bpf-*-*.
1800 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1801 (ALLDEPFILES): Add bpf-tdep.c.
1802 * bpf-tdep.c: New file.
1803 * MAINTAINERS: Add bpf target and maintainer.
1804 * NEWS: Mention the support for the new target.
1805
1806 2020-08-04 Tom de Vries <tdevries@suse.de>
1807
1808 PR symtab/23270
1809 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1810 Error.
1811
1812 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1813
1814 * syscalls/freebsd.xml: Regenerate.
1815
1816 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1817
1818 * syscalls/update-freebsd.sh: Fix usage and year range.
1819
1820 2020-08-03 Tom de Vries <tdevries@suse.de>
1821
1822 PR symtab/26333
1823 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1824 DW_LNE_lo_user/DW_LNE_hi_user range.
1825
1826 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 PR ada/26318
1829 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1830 kind.
1831
1832 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1833
1834 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1835
1836 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1837
1838 * breakpoint.c (set_breakpoint_condition): Update the condition
1839 expressions after checking that the input condition string parses
1840 successfully and does not contain junk at the end.
1841
1842 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1843
1844 * breakpoint.c (set_breakpoint_condition): Update the
1845 condition string after parsing the new condition successfully.
1846
1847 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1848
1849 * proc-api.c (_STRUCTURED_PROC): Don't define.
1850 * proc-events.c: Likewise.
1851 * proc-flags.c: Likewise.
1852 * proc-why.c: Likewise.
1853 * procfs.c: Likewise.
1854
1855 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1856 * configure, config.in: Regenerate.
1857
1858 2020-07-30 Tom de Vries <tdevries@suse.de>
1859
1860 PR build/26320
1861 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1862 m_red/m_green/m_blue in a union.
1863
1864 2020-07-29 Tom de Vries <tdevries@suse.de>
1865
1866 PR tdep/26280
1867 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1868
1869 2020-07-28 Tom Tromey <tromey@adacore.com>
1870
1871 PR symtab/26270:
1872 * symtab.h (find_pc_partial_function_sym): Declare.
1873 * cli/cli-cmds.c (disassemble_command): Use
1874 find_pc_partial_function_sym. Check asm_demangle.
1875 * blockframe.c (cache_pc_function_sym): New global.
1876 (cache_pc_function_name): Remove.
1877 (clear_pc_function_cache): Update.
1878 (find_pc_partial_function_sym): New function, from
1879 find_pc_partial_function.
1880 (find_pc_partial_function): Rewrite using
1881 find_pc_partial_function_sym.
1882
1883 2020-07-28 Tom Tromey <tromey@adacore.com>
1884
1885 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1886 help. Add usage.
1887
1888 2020-07-28 Tom Tromey <tromey@adacore.com>
1889
1890 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1891 <DW_OP_GNU_variable_value>: Cast to address type.
1892
1893 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1894
1895 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1896 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1897 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1898 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1899 (nbsd_get_siginfo_type): New.
1900 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1901 (_initialize_nbsd_tdep): New.
1902
1903 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1904
1905 PR binutils/26301
1906 * configure: Regenerated.
1907
1908 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1909
1910 PR binutils/26301
1911 * configure: Regenerated.
1912
1913 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1914
1915 * python/py-frame.c: Remove 'user-regs.h' include.
1916 (frapy_read_register): Rewrite to make use of
1917 gdbpy_parse_register_id.
1918 * python/py-registers.c (gdbpy_parse_register_id): New function,
1919 moved here from python/py-unwind.c. Updated the return type, and
1920 also accepts register descriptor objects.
1921 * python/py-unwind.c: Remove 'user-regs.h' include.
1922 (pyuw_parse_register_id): Moved to python/py-registers.c.
1923 (unwind_infopy_add_saved_register): Update to use
1924 gdbpy_parse_register_id.
1925 (pending_framepy_read_register): Likewise.
1926 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1927
1928 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * python/py-registers.c: Add 'user-regs.h' include.
1931 (register_descriptor_iter_find): New function.
1932 (register_descriptor_iterator_object_methods): New static global
1933 methods array.
1934 (register_descriptor_iterator_object_type): Add pointer to methods
1935 array.
1936
1937 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1938
1939 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1940 for all architectures on FreeBSD 11.3 and later.
1941
1942 2020-07-27 Tom Tromey <tromey@adacore.com>
1943
1944 * gcore.h (load_corefile): Don't declare.
1945
1946 2020-07-27 Tom de Vries <tdevries@suse.de>
1947
1948 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1949 * config.in: Regenerate.
1950 * configure: Regenerate.
1951
1952 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1953
1954 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1955 ws2tcpip.h. When checking whether socklen_t type is defined, use
1956 ws2tcpip.h if it is available and sys/socket.h isn't.
1957 * configure: Regenerate.
1958 * config.in: Regenerate.
1959
1960 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 PR fortran/23051
1963 PR fortran/26139
1964 * valops.c (value_ind): Pass address to
1965 readjust_indirect_value_type.
1966 * value.c (readjust_indirect_value_type): Make parameter
1967 non-const, and add extra address parameter. Resolve original type
1968 before using it.
1969 * value.h (readjust_indirect_value_type): Update function
1970 signature and comment.
1971
1972 2020-07-25 Tom de Vries <tdevries@suse.de>
1973
1974 PR symtab/26243
1975 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1976 entries.
1977
1978 2020-07-24 Aaron Merey <amerey@redhat.com>
1979
1980 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1981 * configure: Rebuild.
1982
1983 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1984
1985 PR corefiles/26294
1986 * corelow.c (_initialize_corelow): Add period to help text
1987 for "maintenance print core-file-backed-mappings".
1988
1989 2020-07-23 Pedro Alves <pedro@palves.net>
1990
1991 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1992 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1993 meanwhile.
1994 * frame.c (frame_cache_generation, get_frame_cache_generation):
1995 New.
1996 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1997 (get_prev_frame_if_no_cycle): On exception, don't touch
1998 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1999 * frame.h (get_frame_cache_generation): Declare.
2000
2001 2020-07-23 Tom de Vries <tdevries@suse.de>
2002
2003 PR tui/26282
2004 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2005 New default constructor.
2006
2007 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2010 exclude non-statement entries.
2011
2012 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2013
2014 * NEWS (New commands): Mention new command
2015 "maintenance print core-file-backed-mappings".
2016
2017 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2018
2019 * corelow.c (gdbcmd.h): Include.
2020 (core_target::info_proc_mappings): New method.
2021 (get_current_core_target): New function.
2022 (maintenance_print_core_file_backed_mappings): New function.
2023 (_initialize_corelow): Add core-file-backed-mappings to
2024 "maint print" commands.
2025
2026 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2027
2028 * linux-tdep.c (dump_note_entry_p): New function.
2029 (linux_dump_mapping_p_ftype): New typedef.
2030 (linux_find_memory_regions_full): Add new parameter,
2031 should_dump_mapping_p.
2032 (linux_find_memory_regions): Adjust call to
2033 linux_find_memory_regions_full.
2034 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2035 call to linux_find_memory_regions_full.
2036
2037 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2038
2039 * corelow.c (solist.h, unordered_map): Include.
2040 (class core_target): Add field m_core_file_mappings and
2041 method build_file_mappings.
2042 (core_target::core_target): Call build_file_mappings.
2043 (core_target::~core_target): Free memory associated with
2044 m_core_file_mappings.
2045 (core_target::build_file_mappings): New method.
2046 (core_target::xfer_partial): Use m_core_file_mappings
2047 for memory transfers.
2048 * linux-tdep.c (linux_read_core_file_mappings): New
2049 function.
2050 (linux_core_info_proc_mappings): Rewrite to use
2051 linux_read_core_file_mappings.
2052 (linux_init_abi): Register linux_read_core_file_mappings.
2053
2054 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2055
2056 * arch-utils.c (default_read_core_file_mappings): New function.
2057 * arch-utils.c (default_read_core_file_mappings): Declare.
2058 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2059 * gdbarch.h, gdbarch.c: Regenerate.
2060
2061 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2062
2063 PR corefiles/25631
2064 * corelow.c (core_target:xfer_partial): Revise
2065 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2066 case after first checking the stratum beneath the core
2067 target.
2068 (has_all_memory): Return true.
2069 * target.c (raw_memory_xfer_partial): Revise comment
2070 regarding use of has_all_memory.
2071
2072 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2073
2074 * exec.h (section_table_xfer_memory): Revise declaration,
2075 replacing section name parameter with an optional callback
2076 predicate.
2077 * exec.c (section_table_xfer_memory): Likewise.
2078 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2079 of section_table_xfer_memory.
2080
2081 2020-07-22 Tom Tromey <tromey@adacore.com>
2082
2083 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2084 lookup_symbol_search_name.
2085
2086 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2089 redundant local variable.
2090 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2091 reference, not pointer, update code accordingly.
2092
2093 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2094 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2095
2096 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2097 * jit.c (jit_breakpoint_re_set_internal): Use the
2098 `skip_jit_symbol_lookup` field.
2099
2100 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2101 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2102
2103 * jit.c (jit_read_descriptor): Define the descriptor address once,
2104 use twice.
2105 (jit_breakpoint_deleted): Move the declaration of the loop variable
2106 `iter` into the loop header.
2107 (jit_breakpoint_re_set_internal): Move the declaration of the local
2108 variable `objf_data` to the first point of definition.
2109 (jit_event_handler): Move the declaration of local variables
2110 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2111 Rename `objf` to `jited`.
2112
2113 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2116 Remove.
2117 * jit.c (get_jiter_objfile_data): Update.
2118
2119 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2120 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * jit.c (struct jit_program_space_data): Remove.
2123 (jit_program_space_key): Remove.
2124 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2125 stuff.
2126 (get_jit_program_space_data): Remove.
2127 (jit_breakpoint_deleted): Iterate on all of the program space's
2128 objfiles.
2129 (jit_inferior_init): Likewise.
2130 (jit_breakpoint_re_set_internal): Likewise. Also change return
2131 type to void.
2132 (jit_breakpoint_re_set): Pass current_program_space to
2133 jit_breakpoint_re_set_internal.
2134
2135 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2136
2137 * jit.h (struct jiter_objfile_data) <cached_code_address,
2138 jit_breakpoint>: Move to here from ...
2139 * jit.c (jit_program_space_data): ... here.
2140 (jiter_objfile_data::~jiter_objfile_data): Update.
2141 (jit_breakpoint_deleted): Update.
2142 (jit_breakpoint_re_set_internal): Update.
2143
2144 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2147 checks.
2148 (jit_read_descriptor): Remove NULL check.
2149 (jit_event_handler): Add an assertion.
2150
2151 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 * jit.h (struct jit_objfile_data): Split into...
2154 (struct jiter_objfile_data): ... this ...
2155 (struct jited_objfile_data): ... and this.
2156 * objfiles.h (struct objfile) <jit_data>: Remove.
2157 <jiter_data, jited_data>: New fields.
2158 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2159 (jiter_objfile_data::~jiter_objfile_data): ... this.
2160 (get_jit_objfile_data): Rename to ...
2161 (get_jiter_objfile_data): ... this.
2162 (add_objfile_entry): Update.
2163 (jit_read_descriptor): Use get_jiter_objfile_data.
2164 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2165 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2166 (jit_inferior_exit_hook): Use objfile's jited_data field.
2167
2168 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * jit.h: Forward-declare `struct minimal_symbol`.
2171 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2172 constructor, destructor, and an objfile* field.
2173 * jit.c (jit_objfile_data): Remove.
2174 (struct jit_objfile_data): Migrate from here to jit.h.
2175 (jit_objfile_data::~jit_objfile_data): New destructor
2176 implementation with code moved from free_objfile_data.
2177 (free_objfile_data): Delete.
2178 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2179 (jit_find_objf_with_entry_addr): Ditto.
2180 (jit_inferior_exit_hook): Ditto.
2181 (_initialize_jit): Remove the call to
2182 register_objfile_data_with_cleanup.
2183 * objfiles.h (struct objfile) <jit_data>: New field.
2184
2185 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2186
2187 * jit.h: Forward-declare `struct objfile`.
2188 (jit_event_handler): Add a second parameter, the JITer objfile.
2189 * jit.c (jit_read_descriptor): Change the signature to take the
2190 JITer objfile as an argument instead of the jit_program_space_data.
2191 (jit_inferior_init): Update the call to jit_read_descriptor.
2192 (jit_event_handler): Use the new JITer objfile argument when calling
2193 jit_read_descriptor.
2194 * breakpoint.c (handle_jit_event): Update the call to
2195 jit_event_handler to pass the JITer objfile.
2196
2197 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2198
2199 * gdbarch.c: Regenerate.
2200 * gdbarch.h: Regenerate.
2201 * gdbarch.sh (handle_segmentation_fault): Remove method.
2202 * infrun.c (handle_segmentation_fault): Remove.
2203 (print_signal_received_reason): Remove call to
2204 handle_segmentation_fault.
2205
2206 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2207
2208 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2209 Rename to sparc64_linux_report_signal_info and add siggnal
2210 argument.
2211 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2212 instead of sparc64_linux_handle_segmentation_fault.
2213
2214 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2215
2216 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2217 i386_linux_report_signal_info instead of
2218 i386_linux_handle_segmentation_fault.
2219 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2220 to i386_linux_report_signal_info and add siggnal argument.
2221 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2222 of i386_linux_handle_segmentation_fault.
2223 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2224 to i386_linux_report_signal_info and add siggnal argument.
2225
2226 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2227
2228 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2229 hook if present.
2230
2231 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2232
2233 * gdbarch.c: Regenerate.
2234 * gdbarch.h: Regenerate.
2235 * gdbarch.sh (report_signal_info): New method.
2236 * infrun.c (print_signal_received_reason): Invoke gdbarch
2237 report_signal_info hook if present.
2238
2239 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * python/py-registers.c : Add 'unordered_map' include.
2242 (gdbpy_new_reggroup): Renamed to...
2243 (gdbpy_get_reggroup): ...this. Update to only create register
2244 group descriptors when needed.
2245 (gdbpy_reggroup_iter_next): Update.
2246
2247 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * python/py-registers.c (gdbpy_register_object_data): New static
2250 global.
2251 (gdbpy_register_object_data_init): New function.
2252 (gdbpy_new_register_descriptor): Renamed to...
2253 (gdbpy_get_register_descriptor): ...this, and update to reuse
2254 existing register descriptors where possible.
2255 (gdbpy_register_descriptor_iter_next): Update.
2256 (gdbpy_initialize_registers): Register new gdbarch data.
2257
2258 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2259
2260 * linux-nat.c (stopped_pids): Make static.
2261
2262 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2263
2264 PR ada/26235
2265 * gdbtypes.c (ada_discrete_type_low_bound,
2266 ada_discrete_type_high_bound): Handle undefined bounds.
2267
2268 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2269
2270 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2271 declaration.
2272 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2273 function.
2274
2275 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2276
2277 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2278 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2279 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2280 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2281 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2282 method.
2283
2284 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2285
2286 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2287 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2288 which are deprecated in Guile 3.0.
2289 * configure.ac (try_guile_versions): Add "guile-3.0".
2290 * configure (try_guile_versions): Regenerate.
2291 * NEWS: Update entry.
2292
2293 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2294 Doug Evans <dje@google.com>
2295
2296 PR gdb/21104
2297 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2298 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2299 USING_GUILE_BEFORE_2_2.
2300 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2301 Change type to 'scm_t_port_type *'.
2302 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2303 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2304 parameter and honor it. Update callers.
2305 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2306 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2307 functions.
2308 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2309 USING_GUILE_BEFORE_2_2.
2310 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2311 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2312 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2313 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2314 and 'SCM_PORT_TYPE'.
2315 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2316 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2317 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2318 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2319 [!USING_GUILE_BEFORE_2_2]: New functions.
2320 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2321 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2322 'gdbscm_memory_port_read'.
2323 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2324 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2325 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2326 function.
2327 (ioscm_init_memory_port): Remove.
2328 (ioscm_init_memory_port_stream): New function
2329 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2330 function.
2331 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2332 Return scm_from_uint (0).
2333 (gdbscm_set_memory_port_read_buffer_size_x)
2334 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2335 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2336 Return scm_from_uint (0).
2337 (gdbscm_set_memory_port_write_buffer_size_x)
2338 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2339 * configure.ac (try_guile_versions): Add "guile-2.2".
2340 * configure: Regenerate.
2341 * NEWS: Add entry.
2342
2343 2020-07-18 Tom Tromey <tom@tromey.com>
2344
2345 * linux-nat.c (linux_multi_process): Remove.
2346 (linux_nat_target::supports_multi_process): Return true.
2347
2348 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2351 (riscv_lookup_target_description): Return pointer out of
2352 unique_ptr.
2353 * target-descriptions.c (allocate_target_description): Add
2354 comment.
2355 (target_desc_deleter::operator()): Likewise.
2356 * target-descriptions.h (struct target_desc_deleter): Moved to
2357 gdbsupport/tdesc.h.
2358 (target_desc_up): Likewise.
2359
2360 2020-07-17 Tom Tromey <tromey@adacore.com>
2361
2362 * linux-nat.c (linux_nat_target::supports_non_stop)
2363 (linux_nat_target::always_non_stop_p): Use "true".
2364 (linux_nat_target::supports_disable_randomization): Use "true" and
2365 "false".
2366
2367 2020-07-16 Caroline Tice <cmtice@google.com>
2368
2369 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2370 (RNGLIST_HEADER_SIZE64): New constant definition.
2371 (struct dwop_section_names): Add rnglists_dwo.
2372 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2373 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2374 (struct dwo_sections): Add rnglists field.
2375 (read_attribut_reprocess): Add tag parameter.
2376 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2377 (cu_debug_rnglists_section): New function (decl & definition).
2378 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2379 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2380 die whose range is being checked; get rnglist section from
2381 cu_debug_rnglists_section, to get from either objfile or dwo file as
2382 appropriate. Add cases for DW_RLE_base_addressx,
2383 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2384 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2385 test inside if-condition and updating complaint message.
2386 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2387 dwarf2_rnglists_process.
2388 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2389 dwarf2_ranges_process.
2390 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2391 need_ranges_base and update comment appropriately. Also pass die tag
2392 to dwarf2_ranges_read.
2393 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2394 need_ranges_base and update comment appropriately. Also pass die tag
2395 to dwarf2_ranges_process.
2396 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2397 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2398 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2399 need_ranges_base and update comment appropriately. Also pass die tag
2400 to read_attribute_reprocess and dwarf2_ranges_read.
2401 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2402 and update function comment appropriately.
2403 (read_loclist_index): Call read_loclists_rnglists_header instead of
2404 read_loclist_header.
2405 (read_rnglist_index): New function.
2406 (read_attribute_reprocess): Add tag parameter. Add code for
2407 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2408 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2409
2410 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2413 being resolved.
2414
2415 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * arch-utils.c (show_architecture): Update formatting of messages.
2418
2419 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * gdbtypes.h (struct type) <bounds>: Handle array and string
2422 types.
2423 * ada-lang.c (assign_aggregate): Use type::bounds on
2424 array/string type.
2425 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2426 * c-varobj.c (c_number_of_children): Likewise.
2427 (c_describe_child): Likewise.
2428 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2429 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2430 (f_type_print_base): Likewise.
2431 * f-valprint.c (f77_array_offset_tbl): Likewise.
2432 (f77_get_upperbound): Likewise.
2433 (f77_print_array_1): Likewise.
2434 * guile/scm-type.c (gdbscm_type_range): Likewise.
2435 * m2-typeprint.c (m2_array): Likewise.
2436 (m2_is_long_set_of_type): Likewise.
2437 * m2-valprint.c (get_long_set_bounds): Likewise.
2438 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2439 * python/py-type.c (typy_range): Likewise.
2440 * rust-lang.c (rust_internal_print_type): Likewise.
2441 * type-stack.c (type_stack::follow_types): Likewise.
2442 * valarith.c (value_subscripted_rvalue): Likewise.
2443 * valops.c (value_cast): Likewise.
2444
2445 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2446
2447 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2448 callers to use the equivalent accessor methods.
2449
2450 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2453 (struct type) <bit_stride>: New method.
2454 (TYPE_BIT_STRIDE): Remove.
2455 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2456
2457 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2458
2459 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2460 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2461 callers to use the equivalent accessor methods instead.
2462
2463 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2464
2465 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2466 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2467 callers to use the equivalent accessor methods instead.
2468
2469 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2472 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2473 to use dynamic_prop::kind.
2474
2475 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2476
2477 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2478 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2479 to get the bound property's kind and check against
2480 PROP_UNDEFINED.
2481
2482 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2485 all callers to use type::range_bounds followed by
2486 dynamic_prop::{low,high}.
2487
2488 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2489
2490 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2491 const_val, set_const_val, baton, set_locexpr, set_loclist,
2492 set_addr_offset, variant_parts, set_variant_parts,
2493 original_type, set_original_type>: New methods.
2494 <kind>: Rename to...
2495 <m_kind>: ... this. Update all users to use the new methods
2496 instead.
2497 <data>: Rename to...
2498 <m_data>: ... this. Update all users to use the new methods
2499 instead.
2500
2501 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * gdbtypes.c (get_discrete_bounds): Return failure if
2504 the range type's bounds are not both defined and constant
2505 values.
2506 (get_array_bounds): Update comment. Remove undefined bound check.
2507
2508 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2509
2510 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2511 the type::bounds method directly.
2512
2513 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2514
2515 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2516 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2517 are used to set the range type's bounds to use set_bounds.
2518
2519 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2520
2521 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2522
2523 2020-07-10 Pedro Alves <pedro@palves.net>
2524
2525 * gdbthread.h (inferior_ref): Define.
2526 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2527 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2528 * thread.c
2529 (scoped_restore_current_thread::restore):
2530 Adjust to gdb::ref_ptr.
2531 (scoped_restore_current_thread::~scoped_restore_current_thread):
2532 Remove manual decref handling.
2533 (scoped_restore_current_thread::scoped_restore_current_thread):
2534 Adjust to use
2535 inferior_ref::new_reference/thread_info_ref::new_reference.
2536 Incref the thread before calling get_frame_id instead of after.
2537 Let TARGET_CLOSE_ERROR propagate.
2538
2539 2020-07-10 Pedro Alves <pedro@palves.net>
2540
2541 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2542 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2543 NOT_AVAILABLE_ERROR.
2544 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2545 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2546
2547 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2548 Pedro Alves <pedro@palves.net>
2549
2550 PR gdb/26199
2551 * infrun.c (threads_are_resumed_pending_p): Delete.
2552 (do_target_wait): Remove threads_are_executing and
2553 threads_are_resumed_pending_p checks from the inferior_matches
2554 lambda. Update comments.
2555
2556 2020-07-10 Pedro Alves <pedro@palves.net>
2557
2558 PR gdb/26199
2559 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2560 executing threads.
2561
2562 2020-07-10 Pedro Alves <pedro@palves.net>
2563
2564 PR gdb/26199
2565 * infrun.c (handle_no_resumed): Handle multiple targets.
2566
2567 2020-07-10 Pedro Alves <pedro@palves.net>
2568
2569 PR gdb/26199
2570 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2571 target_is_async_p.
2572
2573 2020-07-10 Pedro Alves <pedro@palves.net>
2574
2575 PR gdb/26199
2576 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2577 threads, not all threads.
2578
2579 2020-07-10 Pedro Alves <pedro@palves.net>
2580
2581 PR gdb/26199
2582 * remote.c (remote_target::open_1): Pass remote target pointer as
2583 data to create_async_event_handler.
2584 (remote_async_inferior_event_handler): Mark async event handler
2585 before returning if the remote target still has either pending
2586 events or unacknowledged notifications.
2587
2588 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2589
2590 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2591 declaration.
2592 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2593 function.
2594
2595 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2596
2597 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2598 inferior_ptid.
2599
2600 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2601
2602 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2603 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2604 AT_FREEBSD_PS_STRINGS.
2605
2606 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2607
2608 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2609 of debugfile path on Windows.
2610
2611 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2612
2613 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2614 argument to 'data'.
2615
2616 2020-07-08 Tom Tromey <tromey@adacore.com>
2617
2618 * ada-lang.c (ada_exception_message_1): Use read_memory.
2619
2620 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 PR python/22748
2623 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2624 special handling for inline frames.
2625 * findvar.c (value_of_register_lazy): Skip inline frames when
2626 creating lazy register values.
2627 * frame.c (frame_id_computed_p): Delete definition.
2628 * frame.h (frame_id_computed_p): Delete declaration.
2629
2630 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * NEWS: Mention additions to Python API.
2633 * python/py-arch.c (archpy_register_groups): New function.
2634 (arch_object_methods): Add 'register_groups' method.
2635 * python/py-registers.c (reggroup_iterator_object): New struct.
2636 (reggroup_object): New struct.
2637 (gdbpy_new_reggroup): New function.
2638 (gdbpy_reggroup_to_string): New function.
2639 (gdbpy_reggroup_name): New function.
2640 (gdbpy_reggroup_iter): New function.
2641 (gdbpy_reggroup_iter_next): New function.
2642 (gdbpy_new_reggroup_iterator): New function
2643 (gdbpy_initialize_registers): Register new types.
2644 (reggroup_iterator_object_type): Define new Python type.
2645 (gdbpy_reggroup_getset): New static global.
2646 (reggroup_object_type): Define new Python type.
2647 * python/python-internal.h
2648
2649 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2652 * python/py-arch.c (archpy_registers): New function.
2653 (arch_object_methods): Add 'registers' method.
2654 * python/py-registers.c: New file.
2655 * python/python-internal.h
2656 (gdbpy_new_register_descriptor_iterator): Declare.
2657 (gdbpy_initialize_registers): Declare.
2658 * python/python.c (do_start_initialization): Call
2659 gdbpy_initialize_registers.
2660 * NEWS: Mention additions to the Python API.
2661
2662 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * NEWS: Mention new Python API method.
2665 * python/py-unwind.c (pending_framepy_architecture): New function.
2666 (pending_frame_object_methods): Add architecture method.
2667
2668 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * gdbarch.c: Regenerate.
2671 * gdbarch.h: Regenerate.
2672 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2673 (gdbarch_data): Use internal_error for the case where
2674 deprecated_set_gdbarch_data was originally needed.
2675 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2676 and use passed in obstack.
2677 (libunwind_frame_set_descr): Should no longer get back NULL from
2678 gdbarch_data.
2679 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2680 type.
2681 * user-regs.c (user_regs_init): Update parameters, and use passed
2682 in obstack.
2683 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2684 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2685
2686 2020-07-06 Tom de Vries <tdevries@suse.de>
2687
2688 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2689 End-Of-Sequence in lte_is_less_than.
2690 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2691 "gdb: Don't reorder line table entries too much when sorting".
2692
2693 2020-07-06 Tom de Vries <tdevries@suse.de>
2694
2695 PR tui/26205
2696 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2697
2698 2020-07-05 Tom de Vries <tdevries@suse.de>
2699
2700 PR build/26187
2701 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2702 std::uncaught_exceptions instead of deprecated
2703 std::uncaught_exception.
2704
2705 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2706
2707 * macroexp.h (macro_stringify): Return
2708 gdb::unique_xmalloc_ptr<char>.
2709 * macroexp.c (macro_stringify): Likewise.
2710 * macrotab.c (fixup_definition): Update.
2711
2712 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2715 (lex_one_token): Update.
2716 * macroexp.c (struct macro_buffer) <release>: Return
2717 gdb::unique_xmalloc_ptr<char>.
2718 (macro_stringify): Update.
2719 (macro_expand): Update.
2720 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2721 * macroexp.h (macro_expand_next): Likewise.
2722
2723 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * macroexp.h (macro_lookup_ftype): Remove.
2726 (macro_expand, macro_expand_once, macro_expand_next): Remove
2727 lookup function parameters, add scope parameter.
2728 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2729 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2730 * macroscope.h (standard_macro_lookup): Change parameter type
2731 to macro_scope.
2732 * macroscope.c (standard_macro_lookup): Likewise.
2733 * c-exp.y (lex_one_token): Update.
2734 * macrocmd.c (macro_expand_command): Likewise.
2735 (macro_expand_once_command): Likewise.
2736
2737 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2738
2739 * inf-loop.c (inferior_event_handler): Remove client_data param.
2740 * inf-loop.h (inferior_event_handler): Likewise.
2741 * infcmd.c (step_1): Adjust.
2742 * infrun.c (proceed): Adjust.
2743 (fetch_inferior_event): Remove client_data param.
2744 (infrun_async_inferior_event_handler): Adjust.
2745 * infrun.h (fetch_inferior_event): Remove `void *` param.
2746 * linux-nat.c (handle_target_event): Adjust.
2747 * record-btrace.c (record_btrace_handle_async_inferior_event):
2748 Adjust.
2749 * record-full.c (record_full_async_inferior_event_handler):
2750 Adjust.
2751 * remote.c (remote_async_inferior_event_handler): Adjust.
2752
2753 2020-07-01 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2756 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2757
2758 2020-07-01 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2761 tui_gen_win_info.
2762 (tui_win_info::make_window): Merge with
2763 tui_gen_win_info::make_window.
2764 (tui_win_info::make_visible): Move from tui_gen_win_info.
2765 * tui/tui-win.c (tui_win_info::max_width): Move from
2766 tui_gen_win_info.
2767 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2768 type.
2769 <window_factory>: Likewise.
2770 * tui/tui-layout.c (tui_win_info::resize): Move from
2771 tui_gen_win_info.
2772 (make_standard_window): Change return type.
2773 (get_locator_window, tui_get_window_by_name): Likewise.
2774 (tui_layout_window::apply): Remove a cast.
2775 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2776 (struct tui_win_info): Merge with tui_gen_win_info.
2777 (struct tui_gen_win_info): Remove.
2778
2779 2020-07-01 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-stack.h (struct tui_locator_window): Derive from
2782 tui_win_info.
2783 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2784 <can_box>: New method.
2785
2786 2020-07-01 Tom Tromey <tom@tromey.com>
2787
2788 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2789
2790 2020-07-01 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-regs.c (tui_data_window::display_registers_from)
2793 (tui_data_window::display_registers_from)
2794 (tui_data_window::first_data_item_displayed)
2795 (tui_data_window::delete_data_content_windows): Update.
2796 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2797 Remove.
2798 (tui_data_window::check_register_values): Update.
2799 (tui_data_item_window::rerender): Add parameters. Update.
2800 (tui_data_item_window::refresh_window): Remove.
2801 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2802 virtual.
2803 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2804 tui_gen_win_info.
2805 <refresh_window, max_height, min_height>: Remove.
2806 <rerender>: Add parameters.
2807 <x, y, visible>: New members.
2808 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2809 <m_item_width>: New member.
2810
2811 2020-07-01 Tom Tromey <tom@tromey.com>
2812
2813 * tui/tui-regs.c (tui_data_window::show_register_group)
2814 (tui_data_window::check_register_values): Update.
2815 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2816 from item_no.
2817
2818 2020-07-01 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2821 useless "if".
2822
2823 2020-07-01 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2826 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2827
2828 2020-07-01 Tom Tromey <tom@tromey.com>
2829
2830 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2831 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2832 (struct tui_line_or_address): Move from tui-data.h.
2833 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2834 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2835 (tui_cmd_window, tui_source_window_base, tui_source_window)
2836 (tui_disasm_window): Don't declare.
2837 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2838 to tui-winsource.h.
2839 (SINGLE_KEY): Move to tui-stack.c.
2840
2841 2020-07-01 Tom Tromey <tom@tromey.com>
2842
2843 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2844 std::string.
2845 * tui/tui-regs.c (class tab_expansion_file): New.
2846 (tab_expansion_file::write): New method.
2847 (tui_register_format): Change return type. Use
2848 tab_expansion_file.
2849 (tui_get_register, tui_data_window::display_registers_from)
2850 (tui_data_item_window::rerender): Update.
2851 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2852 * tui/tui-io.c (tui_expand_tabs): Remove.
2853
2854 2020-07-01 Tom Tromey <tom@tromey.com>
2855
2856 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2857
2858 2020-07-01 Fangrui Song <maskray@google.com>
2859
2860 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2861
2862 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2863
2864 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2865 forms for DW_AT_associated and DW_AT_allocated attributes,
2866 which is already checked in function attr_to_dynamic_prop.
2867
2868 2020-06-30 Tom Tromey <tromey@adacore.com>
2869
2870 * dwarf2/read.c (quirk_rust_enum): Correctly call
2871 alloc_rust_variant for default-less enum.
2872
2873 2020-06-30 Tom Tromey <tromey@adacore.com>
2874
2875 PR build/26183:
2876 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2877 gdb::to_string.
2878
2879 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2882 * gdbarch.h: Re-generate.
2883
2884 2020-06-28 Tom Tromey <tom@tromey.com>
2885
2886 * command.h (cmd_types): Remove.
2887 (cmd_type): Don't declare.
2888 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2889 typedef.
2890 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2891 * cli/cli-decode.c (cmd_type): Remove.
2892
2893 2020-06-27 Pedro Alves <palves@redhat.com>
2894
2895 * fork-child.c (prefork_hook): Adjust.
2896 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2897 Delete.
2898 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2899 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2900 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2901 Remove declarations.
2902 (struct inferior) <set_tty, tty>: New methods.
2903 (struct inferior) <terminal>: Rename to ...
2904 (struct inferior) <m_terminal>: ... this and make private.
2905 * main.c (captured_main_1): Adjust.
2906 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2907 (mi_cmd_inferior_tty_show): Adjust.
2908 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2909 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2910
2911 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2912
2913 * configure.ac: Add --enable-libctf: handle --disable-static
2914 properly.
2915 * acinclude.m4: sinclude ../config/enable.m4.
2916 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2917 (LIBCTF): Substitute in.
2918 (CTF_DEPS): New, likewise.
2919 (CLIBS): libctf needs symbols from libbfd: move earlier.
2920 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2921 flags.
2922 * ctfread.c: Surround in ENABLE_LIBCTF.
2923 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2924 * configure: Regenerate.
2925 * config.in: Likewise.
2926
2927 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2928
2929 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2930
2931 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * inferior.h (struct inferior) <terminal>: Change type to
2934 gdb::unique_xmalloc_ptr<char>.
2935 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2936 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2937 field, adjust to unique pointer.
2938 (get_inferior_io_terminal): Adjust to unique pointer.
2939
2940 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2943 registers, not just the known core set of registers.
2944
2945 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2946
2947 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2948 fflags, frm, and fcsr registers.
2949 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2950 restore groups.
2951 (riscv_tdesc_unknown_reg): New function.
2952 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2953 tdesc_use_registers.
2954 * riscv-tdep.h (struct gdbarch_tdep): Add
2955 unknown_csrs_first_regnum, unknown_csrs_count,
2956 duplicate_fflags_regnum, duplicate_frm_regnum, and
2957 duplicate_fcsr_regnum fields.
2958
2959 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2962 callback, use the callback (when not null) to help number unknown
2963 registers.
2964 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2965 (tdesc_use_registers): Add extra parameter to declaration.
2966
2967 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2968
2969 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2970 in the file.
2971 (class riscv_pending_register_alias): Likewise.
2972 (riscv_register_feature::register_info): Change 'required_p' field
2973 to 'required', and change its type. Add 'check' member function.
2974 (riscv_register_feature::register_info::check): Define new member
2975 function.
2976 (riscv_xreg_feature): Change initialisation of 'required' field.
2977 (riscv_freg_feature): Likewise.
2978 (riscv_virtual_feature): Likewise.
2979 (riscv_csr_feature): Likewise.
2980 (riscv_check_tdesc_feature): Take extra parameter, the csr
2981 tdesc_feature, rewrite the function to use the new
2982 riscv_register_feature::register_info::check function.
2983 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2984
2985 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * features/Makefile: Remove all references to the deleted files
2988 below.
2989 * features/riscv/32bit-csr.c: Deleted.
2990 * features/riscv/32bit-csr.xml: Deleted.
2991 * features/riscv/64bit-csr.c: Deleted.
2992 * features/riscv/64bit-csr.xml: Deleted.
2993 * features/riscv/rebuild-csr-xml.sh: Deleted.
2994
2995 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2998 whitespace error for declaration of names member variable.
2999 (struct riscv_register_feature): Add new prefer_first_name member
3000 variable, and fix whitespace error in declaration of registers.
3001 (riscv_xreg_feature): Initialize prefer_first_name field.
3002 (riscv_freg_feature): Likewise.
3003 (riscv_virtual_feature): Likewise.
3004 (riscv_csr_feature): Likewise.
3005 (riscv_register_name): Expand on comments. Remove register name
3006 modifications for CSR and virtual registers.
3007
3008 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3011 errors.
3012
3013 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3014
3015 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3016 riscv-opc.h.
3017 (class riscv_pending_register_alias): New class.
3018 (riscv_check_tdesc_feature): Take vector of pending aliases and
3019 populate it as appropriate.
3020 (riscv_setup_register_aliases): Delete.
3021 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3022 to riscv_check_tdesc_feature in all cases. Use the vector to
3023 create the register aliases.
3024
3025 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3026
3027 * sol2-tdep.c (sol2_static_transform_name): Remove.
3028 (sol2_init_abi): Don't register it.
3029 * gdbarch.sh (static_transform_name): Remove.
3030 * gdbarch.c, gdbarch.h: Regenerate.
3031
3032 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3033 gdbarch_static_transform_name.
3034 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3035 * stabsread.c (define_symbol) <'X'>: Remove.
3036 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3037 handling.
3038 <'V'>: Likewise.
3039 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3040 <'S'>: Remove call to gdbarch_static_transform_name.
3041
3042 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3043
3044 * procfs.c (procfs_pre_trace): New function.
3045 (procfs_target::create_inferior): Pass it to fork_inferior.
3046
3047 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3048
3049 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3050 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3051 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3052 sol2-tdep.o, sparc-sol2-tdep.o.
3053 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3054 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3055 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3056 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3057
3058 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3059
3060 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3061 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3062 Call sol2_init_abi.
3063 Remove calls to set_gdbarch_skip_solib_resolver,
3064 set_gdbarch_core_pid_to_str.
3065 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3066 (i386_sol2_static_transform_name): Remove.
3067 (i386_sol2_init_abi): Call sol2_init_abi.
3068 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3069 set_gdbarch_static_transform_name,
3070 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3071 Use sol2_sigtramp_p.
3072 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3073 (sol2_sigtramp_p): New function.
3074 (sol2_static_transform_name): New function.
3075 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3076 (sol2_init_abi): New function.
3077 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3078 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3079 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3080 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3081 (sparc_sol2_static_transform_name): Remove.
3082 (sparc32_sol2_init_abi): Call sol2_init_abi.
3083 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3084 set_gdbarch_static_transform_name,
3085 set_gdbarch_skip_solib_resolver,
3086 set_gdbarch_core_pid_to_str.
3087 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3088 (sparc_sol2_static_transform_name): Remove
3089 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3090 call sol2_sigtramp_p.
3091 (sparc64_sol2_init_abi): Call sol2_init_abi.
3092 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3093 set_gdbarch_static_transform_name,
3094 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3095
3096 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3097
3098 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3099 * exec.c (validate_exec_file): If from_tty, set both
3100 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3101 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3102 and from_tty, unconditionally ask a confirmation.
3103
3104 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * target-descriptions.c (tdesc_architecture_name): Protect against
3107 NULL pointer dereference.
3108 (maint_print_xml_tdesc_cmd): New function.
3109 (_initialize_target_descriptions): Register new 'maint print
3110 xml-tdesc' command and give it the filename completer.
3111 * NEWS: Mention new 'maint print xml-tdesc' command.
3112
3113 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * target-descriptions.c (class tdesc_compatible_info): New class.
3116 (struct target_desc): Change type of compatible vector.
3117 (tdesc_compatible_p): Update for change in type of
3118 target_desc::compatible.
3119 (tdesc_compatible_info_list): New function.
3120 (tdesc_compatible_info_arch_name): New function.
3121 (tdesc_add_compatible): Update for change in type of
3122 target_desc::compatible.
3123 (print_c_tdesc::visit_pre): Likewise.
3124
3125 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3128 whitespace to underscore.
3129 (maint_print_c_tdesc_cmd): Use fake filename for target
3130 descriptions that came from the target.
3131 (_initialize_target_descriptions): Add filename command completion
3132 for 'maint print c-tdesc'.
3133
3134 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3137 lines.
3138
3139 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3140
3141 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3142 lines.
3143 (dwarf2_find_location_expression): Likewise.
3144 (call_site_parameter_matches): Likewise.
3145 (dwarf2_compile_expr_to_ax): Likewise.
3146 (disassemble_dwarf_expression): Likewise.
3147 (loclist_describe_location): Likewise.
3148
3149 2020-06-23 Pedro Alves <palves@redhat.com>
3150
3151 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3152 progspace-and-thread.h. Include scoped-mock-context.h instead.
3153 (register_to_value_test): Use scoped_mock_context.
3154 * regcache.c: Include "scoped-mock-context.h".
3155 (cooked_read_test): Don't error out if a target is already pushed.
3156 Use scoped_mock_context. Adjust.
3157 * scoped-mock-context.h: New file.
3158
3159 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3162 initializer.
3163 (ada_language::is_string_type_p): New member function.
3164 * c-lang.c (c_language_data): Delete la_is_string_type_p
3165 initializer.
3166 (cplus_language_data): Likewise.
3167 (asm_language_data): Likewise.
3168 (minimal_language_data): Likewise.
3169 * d-lang.c (d_language_data): Likewise.
3170 * f-lang.c (f_is_string_type_p): Delete function, implementation
3171 moved to f_language::is_string_type_p.
3172 (f_language_data): Delete la_is_string_type_p initializer.
3173 (f_language::is_string_type_p): New member function,
3174 implementation from f_is_string_type_p.
3175 * go-lang.c (go_is_string_type_p): Delete function, implementation
3176 moved to go_language::is_string_type_p.
3177 (go_language_data): Delete la_is_string_type_p initializer.
3178 (go_language::is_string_type_p): New member function,
3179 implementation from go_is_string_type_p.
3180 * language.c (language_defn::is_string_type_p): Define new member
3181 function.
3182 (default_is_string_type_p): Make static, add comment copied from
3183 header file.
3184 (unknown_language_data): Delete la_is_string_type_p initializer.
3185 (unknown_language::is_string_type_p): New member function.
3186 (auto_language_data): Delete la_is_string_type_p initializer.
3187 (auto_language::is_string_type_p): New member function.
3188 * language.h (language_data): Delete la_is_string_type_p field.
3189 (language_defn::is_string_type_p): Declare new function.
3190 (default_is_string_type_p): Delete desclaration, move comment to
3191 definition.
3192 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3193 moved to m2_language::is_string_type_p.
3194 (m2_language_data): Delete la_is_string_type_p initializer.
3195 (m2_language::is_string_type_p): New member function,
3196 implementation from m2_is_string_type_p.
3197 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3198 initializer.
3199 * opencl-lang.c (opencl_language_data): Likewise.
3200 * p-lang.c (pascal_is_string_type_p): Delete function,
3201 implementation moved to pascal_language::is_string_type_p.
3202 (pascal_language_data): Delete la_is_string_type_p initializer.
3203 (pascal_language::is_string_type_p): New member function,
3204 implementation from pascal_is_string_type_p.
3205 * rust-lang.c (rust_is_string_type_p): Delete function,
3206 implementation moved to rust_language::is_string_type_p.
3207 (rust_language_data): Delete la_is_string_type_p initializer.
3208 (rust_language::is_string_type_p): New member function,
3209 implementation from rust_is_string_type_p.
3210 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3211 is_string_type_p.
3212
3213 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * ada-lang.c (ada_language_data): Delete la_print_typedef
3216 initializer.
3217 (ada_language::print_typedef): New member function.
3218 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3219 (cplus_language_data): Likewise.
3220 (asm_language_data): Likewise.
3221 (minimal_language_data): Likewise.
3222 * d-lang.c (d_language_data): Likewise.
3223 * f-lang.c (f_language_data): Likewise.
3224 (f_language::print_typedef): New member function.
3225 * go-lang.c (go_language_data): Delete la_print_typedef
3226 initializer.
3227 * language.c (language_defn::print_typedef): Define member
3228 function.
3229 (unknown_language_data): Delete la_print_typedef initializer.
3230 (unknown_language::print_typedef): New member function.
3231 (auto_language_data): Delete la_print_typedef initializer.
3232 (auto_language::print_typedef): New member function.
3233 * language.h (language_data): Delete la_print_typedef field.
3234 (language_defn::print_typedef): Declare new member function.
3235 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3236 (default_print_typedef): Delete declaration.
3237 * m2-lang.c (m2_language_data): Delete la_print_typedef
3238 initializer.
3239 (m2_language::print_typedef): New member function.
3240 * objc-lang.c (objc_language_data): Delete la_print_typedef
3241 initializer.
3242 * opencl-lang.c (opencl_language_data): Likewise.
3243 * p-lang.c (pascal_language_data): Likewise.
3244 (pascal_language::print_typedef): New member function.
3245 * rust-lang.c (rust_print_typedef): Delete function,
3246 implementation moved to rust_language::print_typedef.
3247 (rust_language): Delete la_print_typedef initializer.
3248 (rust_language::print_typedef): New member function,
3249 implementation from rust_print_typedef.
3250 * typeprint.c (default_print_typedef): Delete.
3251
3252 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3255 (ada_language::printstr): New member function.
3256 * c-lang.c (c_language_data): Delete la_printstr initializer.
3257 (cplus_language_data): Likewise.
3258 (asm_language_data): Likewise.
3259 (minimal_language_data): Likewise.
3260 * d-lang.c (d_language_data): Likewise.
3261 * f-lang.c (f_printstr): Rename to f_language::printstr.
3262 (f_language_data): Delete la_printstr initializer.
3263 (f_language::printstr): New member function, implementation from
3264 f_printstr.
3265 * go-lang.c (go_language_data): Delete la_printstr initializer.
3266 * language.c (language_defn::printstr): Define new member
3267 function.
3268 (unk_lang_printstr): Delete.
3269 (unknown_language_data): Delete la_printstr initializer.
3270 (unknown_language::printstr): New member function.
3271 (auto_language_data): Delete la_printstr initializer.
3272 (auto_language::printstr): New member function.
3273 * language.h (language_data): Delete la_printstr field.
3274 (language_defn::printstr): Declare new member function.
3275 (LA_PRINT_STRING): Update call to printstr.
3276 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3277 (m2_language_data): Delete la_printstr initializer.
3278 (m2_language::printstr): New member function, implementation from
3279 m2_printstr.
3280 * objc-lang.c (objc_language_data): Delete la_printstr
3281 initializer.
3282 * opencl-lang.c (opencl_language_data): Likewise.
3283 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3284 (pascal_language_data): Delete la_printstr initializer.
3285 (pascal_language::printstr): New member function, implementation
3286 from pascal_printstr.
3287 * p-lang.h (pascal_printstr): Delete declaration.
3288 * rust-lang.c (rust_printstr): Update header comment.
3289 (rust_language_data): Delete la_printstr initializer.
3290 (rust_language::printstr): New member function.
3291
3292 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3293
3294 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3295 (ada_language::printchar): New member function.
3296 * c-lang.c (c_language_data): Delete la_printchar initializer.
3297 (cplus_language_data): Likewise.
3298 (asm_language_data): Likewise.
3299 (minimal_language_data): Likewise.
3300 * d-lang.c (d_language_data): Likewise.
3301 * f-lang.c (f_printchar): Rename to f_language::printchar.
3302 (f_language_data): Delete la_printchar initializer.
3303 (f_language::printchar): New member function, implementation from
3304 f_printchar.
3305 * go-lang.c (go_language_data): Delete la_printchar initializer.
3306 * language.c (unk_lang_printchar): Delete.
3307 (language_defn::printchar): Define new member function.
3308 (unknown_language_data): Delete la_printchar initializer.
3309 (unknown_language::printchar): New member function.
3310 (auto_language_data): Delete la_printchar initializer.
3311 (auto_language::printchar): New member function.
3312 * language.h (language_data): Delete la_printchar field.
3313 (language_defn::printchar): Declare new member function.
3314 (LA_PRINT_CHAR): Update call to printchar.
3315 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3316 (m2_language::printchar): New member function.
3317 * objc-lang.c (objc_language_data): Delete la_printchar
3318 initializer.
3319 * opencl-lang.c (opencl_language_data): Likewise.
3320 * p-lang.c (pascal_language_data): Delete la_printchar
3321 initializer.
3322 (pascal_language::printchar): New member function.
3323 * rust-lang.c (rust_printchar): Rename to
3324 rust_language::printchar.
3325 (rust_language_data): Delete la_printchar initializer.
3326 (rust_language::printchar): New member function, implementation
3327 from rust_printchar.
3328
3329 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3330
3331 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3332 (ada_language_data): Delete la_emitchar initializer.
3333 (ada_language::emitchar): New member function, implementation from
3334 emit_char.
3335 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3336 (cplus_language_data): Likewise.
3337 (asm_language_data): Likewise.
3338 (minimal_language_data): Likewise.
3339 * d-lang.c (d_language_data): Likewise.
3340 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3341 (f_language_data): Delete la_emitchar initializer.
3342 (f_language::emitchar): New member function, implementation from
3343 f_emit_char.
3344 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3345 * language.c (unk_lang_emit_char): Delete.
3346 (language_defn::emitchar): New member function definition.
3347 (unknown_language_data): Delete la_emitchar initializer.
3348 (unknown_language::emitchar): New member function.
3349 (auto_language_data): Delete la_emitchar initializer.
3350 (auto_language::emitchar): New member function.
3351 * language.h (language_data): Delete la_emitchar field.
3352 (language_defn::emitchar): New member field declaration.
3353 (LA_EMIT_CHAR): Update call to emitchar.
3354 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3355 (m2_language_data): Delete la_emitchar initializer.
3356 (m2_language::emitchar): New member function, implementation from
3357 m2_emit_char.
3358 * objc-lang.c (objc_language_data): Delete la_emitchar
3359 initializer.
3360 * opencl-lang.c (opencl_language_data): Likewise.
3361 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3362 (pascal_language_data): Delete la_emitchar initializer.
3363 (pascal_language::emitchar): New member function, implementation
3364 from pascal_emit_char.
3365 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3366 (rust_language_data): Delete la_emitchar initializer.
3367 (rust_language::emitchar): New member function, implementation
3368 from rust_emitchar.
3369
3370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3373 (ada_language_data): Delete la_post_parser initializer.
3374 (ada_language::post_parser): New member function.
3375 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3376 (cplus_language_data): Likewise.
3377 (asm_language_data): Likewise.
3378 (minimal_language_data): Likewise.
3379 * d-lang.c (d_language_data): Likewise.
3380 * f-lang.c (f_language_data): Likewise.
3381 * go-lang.c (go_language_data): Likewise.
3382 * language.c (unknown_language_data): Likewise.
3383 (auto_language_data): Likewise.
3384 * language.h (language_data): Delete la_post_parser field.
3385 (language_defn::post_parser): New member function.
3386 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3387 * objc-lang.c (objc_language_data): Likewise.
3388 * opencl-lang.c (opencl_language_data): Likewise.
3389 * p-lang.c (pascal_language_data): Likewise.
3390 * parse.c (parse_exp_in_context): Update call to post_parser.
3391 (null_post_parser): Delete definition.
3392 * parser-defs.h (null_post_parser): Delete declaration.
3393 * rust-lang.c (rust_language_data): Delete la_post_parser
3394 initializer.
3395
3396 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3397
3398 * ada-lang.c (parse): Rename to ada_language::parser.
3399 (ada_language_data): Delete la_parser initializer.
3400 (ada_language::parser): New member function, implementation from
3401 parse.
3402 * c-lang.c (c_language_data): Delete la_parser initializer.
3403 (cplus_language_data): Likewise.
3404 (asm_language_data): Likewise.
3405 (minimal_language_data): Likewise.
3406 * d-lang.c (d_language_data): Likewise.
3407 (d_language::parser): New member function.
3408 * f-lang.c (f_language_data): Delete la_parser initializer.
3409 (f_language::parser): New member function.
3410 * go-lang.c (go_language_data): Delete la_parser initializer.
3411 (go_language::parser): New member function.
3412 * language.c (unk_lang_parser): Delete.
3413 (language_defn::parser): Define new member function.
3414 (unknown_language_data): Delete la_parser initializer.
3415 (unknown_language::parser): New member function.
3416 (auto_language_data): Delete la_parser initializer.
3417 (auto_language::parser): New member function.
3418 * language.h (language_data): Delete la_parser field.
3419 (language_defn::parser): Declare new member function.
3420 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3421 (m2_language::parser): New member function.
3422 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3423 * opencl-lang.c (opencl_language_data): Likewise.
3424 * p-lang.c (pascal_language_data): Likewise.
3425 (pascal_language::parser): New member function.
3426 * parse.c (parse_exp_in_context): Update call to parser.
3427 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3428 (rust_language::parser): New member function.
3429
3430 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * top.c (print_gdb_configuration): Print --with-python-libdir
3433 configuration value.
3434
3435 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3436
3437 * NEWS: Mention change to the alias command.
3438
3439 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3440
3441 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3442 (alias_command_completer)
3443 (make_alias_options_def_group): New functions.
3444 (alias_opts, alias_option_defs): New struct and array.
3445 (alias_usage_error): Update usage.
3446 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3447 Use option framework.
3448 (_initialize_cli_cmds): Update alias command help.
3449 Update aliases command help.
3450 (show_user):
3451 Add NULL for new default_args lookup_cmd argument.
3452 (valid_command_p): Rename to validate_aliased_command.
3453 Add NULL for new default_args lookup_cmd argument. Verify that the
3454 aliased_command has no default args.
3455 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3456 (lookup_cmd_1, lookup_cmd): New argument default_args.
3457 (add_alias_cmd):
3458 Add NULL for new default_args lookup_cmd argument.
3459 (print_help_for_command): Show default args under the layout
3460 alias some_alias = some_aliased_cmd some_alias_default_arg.
3461 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3462 xfree default_args in destructor.
3463 * cli/cli-script.c (process_next_line, do_define_command):
3464 Add NULL for new default_args lookup_cmd argument.
3465 * command.h: Declare new default_args argument in lookup_cmd
3466 and lookup_cmd_1.
3467 * completer.c (complete_line_internal_1):
3468 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3469 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3470 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3471 Likewise.
3472 * infcmd.c (_initialize_infcmd): Likewise.
3473 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3474 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3475 * python/py-param.c (add_setshow_generic): Likewise.
3476 * remote.c (_initialize_remote): Likewise.
3477 * top.c (execute_command): Prepend default_args if command has some.
3478 (set_verbose):
3479 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3480 * tracepoint.c (validate_actionline, encode_actions_1):
3481 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3482
3483 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3484
3485 * jit.c (jit_read_descriptor): Use bool as the return type.
3486 (jit_breakpoint_re_set_internal): Use bool as the return type.
3487 Invert the return value logic; return true if the jit breakpoint
3488 has been successfully initialized.
3489 (jit_inferior_init): Update the call to
3490 jit_breakpoint_re_set_internal.
3491
3492 2020-06-22 Pedro Alves <palves@redhat.com>
3493
3494 PR gdb/25939
3495 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3496 Use the current inferior instead. Don't return
3497 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3498 wait again.
3499 * sol-thread.c (sol_thread_target::wait): Don't reference
3500 inferior_ptid.
3501 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3502 (sol_update_thread_list_callback): Use the current inferior's pid
3503 instead of inferior_ptid.
3504
3505 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3506
3507 * procfs.c: Cleanup many comments.
3508
3509 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3510 (AFTER_WATCHFLAG): Replace by value.
3511
3512 (MAIN_PROC_NAME_FORMAT): Inline ...
3513 (create_procinfo): ... here.
3514
3515 (procfs_debug_inferior): Remove SYS_exec handling.
3516 (syscall_is_exec): Likewise.
3517 (procfs_set_exec_trap): Likewise.
3518
3519 (syscall_is_lwp_exit): Inline in callers.
3520 (syscall_is_exit): Likewise.
3521 (syscall_is_exec): Likewise.
3522 (syscall_is_lwp_create): Likewise.
3523
3524 (invalidate_cache): Remove #if 0 code.
3525
3526 (make_signal_thread_runnable): Remove.
3527 (procfs_target::resume): Remove #if 0 code.
3528
3529 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3530
3531 PR gdb/25939
3532 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3533 call ...
3534 (procfs_target::create_inferior): ... here.
3535
3536 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3537
3538 * exec.c (validate_exec_file): Ensure the build-id is up to
3539 date by calling reopen_exec_file (that checks file timestamp
3540 to decide to re-read the file).
3541
3542 2020-06-18 Pedro Alves <palves@redhat.com>
3543
3544 PR gdb/25412
3545 * gdbthread.h (delete_thread, delete_thread_silent)
3546 (find_thread_ptid): Update comments.
3547 * thread.c (current_thread_): New global.
3548 (is_current_thread): Move higher, and reimplement.
3549 (inferior_thread): Reimplement.
3550 (set_thread_exited): Use bool. Add assertions.
3551 (add_thread_silent): Simplify thread-reuse handling by always
3552 calling delete_thread.
3553 (delete_thread): Remove intro comment.
3554 (find_thread_ptid): Skip exited threads.
3555 (switch_to_thread_no_regs): Write to current_thread_.
3556 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3557 INFERIOR_PTID. Clear current_thread_.
3558
3559 2020-06-18 Pedro Alves <palves@redhat.com>
3560
3561 * aix-thread.c (pd_update): Use switch_to_thread.
3562
3563 2020-06-18 Pedro Alves <palves@redhat.com>
3564
3565 * ravenscar-thread.c (ravenscar_thread_target): Update.
3566 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3567 (ravenscar_thread_target::add_active_thread): ... this. Don't
3568 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3569 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3570
3571 2020-06-18 Pedro Alves <palves@redhat.com>
3572
3573 * nat/windows-nat.c (current_windows_thread): Remove.
3574 * nat/windows-nat.h (current_windows_thread): Remove.
3575 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3576 Adjust.
3577 (display_selectors): Adjust to fetch the current
3578 windows_thread_info based on inferior_ptid.
3579 (fake_create_process): No longer write to current_windows_thread.
3580 (windows_nat_target::get_windows_debug_event):
3581 Don't set inferior_ptid or current_windows_thread.
3582 (windows_nat_target::wait): Adjust to not rely on
3583 current_windows_thread.
3584 (do_initial_windows_stuff): Now a method of windows_nat_target.
3585 Switch to the last_ptid thread.
3586 (windows_nat_target::attach): Adjust.
3587 (windows_nat_target::detach): Use switch_to_no_thread instead of
3588 writing to inferior_ptid directly.
3589 (windows_nat_target::create_inferior): Adjust.
3590
3591 2020-06-18 Pedro Alves <palves@redhat.com>
3592
3593 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3594
3595 2020-06-18 Pedro Alves <palves@redhat.com>
3596
3597 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3598 after creating it, instead of writing to inferior_ptid. Don't
3599 write to inferior_ptid.
3600
3601 2020-06-18 Pedro Alves <palves@redhat.com>
3602
3603 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3604
3605 2020-06-18 Pedro Alves <palves@redhat.com>
3606
3607 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3608 it, instead of writing to inferior_ptid.
3609
3610 2020-06-18 Pedro Alves <palves@redhat.com>
3611
3612 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3613 to inferior_ptid.
3614
3615 2020-06-18 Pedro Alves <palves@redhat.com>
3616
3617 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3618 instead of writing to inferior_ptid directly.
3619
3620 2020-06-18 Pedro Alves <palves@redhat.com>
3621
3622 * corelow.c (core_target::close): Use switch_to_no_thread instead
3623 of writing to inferior_ptid directly.
3624 (add_to_thread_list, core_target_open): Use switch_to_thread
3625 instead of writing to inferior_ptid directly.
3626
3627 2020-06-18 Pedro Alves <palves@redhat.com>
3628
3629 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3630 inferior_ptid.
3631 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3632 inferior_ptid.
3633 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3634 inferior_ptid directly.
3635 (darwin_nat_target::init_thread_list): Switch to thread, instead
3636 of writing to inferior_ptid.
3637 (darwin_nat_target::attach): Don't write to inferior_ptid.
3638 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3639
3640 2020-06-18 Pedro Alves <palves@redhat.com>
3641
3642 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3643 thread.
3644 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3645 Instead use switch_to_thread.
3646 (gnu_nat_target::detach): Use switch_to_no_thread
3647 instead of writing to inferior_ptid directly. Used passed-in
3648 inferior instead of looking up the inferior by pid.
3649
3650 2020-06-18 Pedro Alves <palves@redhat.com>
3651
3652 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3653 inferior_ptid.
3654
3655 2020-06-18 Pedro Alves <palves@redhat.com>
3656
3657 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3658 inferior_ptid.
3659 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3660 thread.
3661 (nto_procfs_target::detach): Avoid referencing
3662 inferior_ptid. Use switch_to_no_thread instead of writing to
3663 inferior_ptid directly.
3664 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3665 instead of writing to inferior_ptid directly.
3666 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3667 to thread.
3668
3669 2020-06-18 Pedro Alves <palves@redhat.com>
3670
3671 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3672 after creating it, instead of writing to inferior_ptid.
3673 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3674 to inferior_ptid directly.
3675 (gdbsim_target::wait): Don't write to inferior_ptid.
3676
3677 2020-06-18 Pedro Alves <palves@redhat.com>
3678
3679 * remote.c (remote_target::remote_notice_new_inferior): Use
3680 switch_to_thread instead of writing to inferior_ptid directly.
3681 (remote_target::add_current_inferior_and_thread): Use
3682 switch_to_no_thread instead of writing to inferior_ptid directly.
3683 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3684 and switch_to_thread instead of using set_current_inferior or
3685 writing to inferior_ptid directly.
3686
3687 2020-06-18 Pedro Alves <palves@redhat.com>
3688
3689 * tracectf.c (ctf_target_open): Switch to added thread instead of
3690 writing to inferior_ptid directly.
3691 (ctf_target::close): Use switch_to_no_thread instead of writing to
3692 inferior_ptid directly.
3693
3694 2020-06-18 Pedro Alves <palves@redhat.com>
3695
3696 * tracefile-tfile.c (tfile_target_open): Don't write to
3697 inferior_ptid directly, instead switch to added thread.
3698 (tfile_target::close): Use switch_to_no_thread instead of writing
3699 to inferior_ptid directly.
3700
3701 2020-06-18 Pedro Alves <palves@redhat.com>
3702
3703 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3704 (procfs_target::detach): Use switch_to_no_thread
3705 instead of writing to inferior_ptid directly.
3706 (do_attach): Change return type to void. Switch to the added
3707 thread.
3708 (procfs_target::create_inferior): Switch to the added thread.
3709 (procfs_do_thread_registers): Don't write to inferior_ptid.
3710
3711 2020-06-18 Pedro Alves <palves@redhat.com>
3712
3713 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3714 of writing to inferior_ptid.
3715 (scoped_restore_exited_inferior): Delete.
3716 (handle_vfork_child_exec_or_exit): Simplify using
3717 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3718 instead of writing to inferior_ptid.
3719 (THREAD_STOPPED_BY): Delete.
3720 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3721 (thread_stopped_by_hw_breakpoint): Delete.
3722 (save_waitstatus): Use
3723 scoped_restore_current_thread+switch_to_thread, and call
3724 target_stopped_by_watchpoint instead of
3725 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3726 instead of thread_stopped_by_sw_breakpoint, and
3727 target_stopped_by_hw_breakpoint instead of
3728 thread_stopped_by_hw_breakpoint.
3729 (handle_inferior_event)
3730 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3731 inferior_ptid directly, nor
3732 set_current_inferior/set_current_program_space. Use
3733 switch_to_thread / switch_to_inferior_no_thread instead.
3734
3735 2020-06-18 Pedro Alves <palves@redhat.com>
3736
3737 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3738 instead of writing to inferior_ptid.
3739
3740 2020-06-18 Pedro Alves <palves@redhat.com>
3741
3742 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3743 added thread.
3744 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3745 to the added thread.
3746 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3747 instead of writing to inferior_ptid.
3748
3749 2020-06-18 Pedro Alves <palves@redhat.com>
3750
3751 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3752 (register_to_value_test): Mock a program_space too. Heap-allocate
3753 the address space. Don't write to inferior_ptid. Use
3754 switch_to_thread instead.
3755
3756 2020-06-18 Pedro Alves <palves@redhat.com>
3757
3758 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3759 Delete.
3760 (find_signalled_thread()): New, factored out from
3761 linux_make_corefile_notes and adjusted to handle exited threads.
3762 (linux_make_corefile_notes): Adjust to use the new
3763 find_signalled_thread.
3764
3765 2020-06-18 Pedro Alves <palves@redhat.com>
3766
3767 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3768 of saving/restoring inferior_ptid.
3769
3770 2020-06-17 Tom Tromey <tom@tromey.com>
3771
3772 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3773 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3774 declare.
3775 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3776
3777 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3778
3779 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3780 of partial symtabs.
3781
3782 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3783
3784 * regformats/reg-arm.dat: Remove.
3785 * regformats/reg-bfin.dat: Remove.
3786 * regformats/reg-cris.dat: Remove.
3787 * regformats/reg-crisv32.dat: Remove.
3788 * regformats/reg-m32r.dat: Remove.
3789 * regformats/reg-tilegx.dat: Remove.
3790 * regformats/reg-tilegx32.dat: Remove.
3791
3792 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3793
3794 * features/Makefile (WHICH): Remove arm files.
3795 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3796 * regformats/arm/arm-with-neon.dat: Remove.
3797 * regformats/arm/arm-with-vfpv2.dat: Remove.
3798 * regformats/arm/arm-with-vfpv3.dat: Remove.
3799
3800 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * features/Makefile (XMLTOC): Remove rx.xml.
3803
3804 2020-06-17 Pedro Alves <palves@redhat.com>
3805
3806 * gdbthread.h (thread_control_state) <trap_expected> Update
3807 comments.
3808
3809 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3810
3811 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3812 ada_language::lookup_symbol_nonlocal.
3813 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3814 (ada_language::lookup_symbol_nonlocal): New member function,
3815 implementation from ada_lookup_symbol_nonlocal.
3816 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3817 initializer.
3818 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3819 initializer.
3820 (cplus_language::lookup_symbol_nonlocal): New member function.
3821 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3822 (minimal_language_data) Likewise.
3823 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3824 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3825 initializer.
3826 (d_language::lookup_symbol_nonlocal): New member function.
3827 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3828 initializer.
3829 (f_language::lookup_symbol_nonlocal): New member function.
3830 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3831 initializer.
3832 * language.c (unknown_language_data): Likewise.
3833 (auto_language_data): Likewise.
3834 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3835 field.
3836 (language_defn::lookup_symbol_nonlocal): New member function.
3837 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3838 initializer.
3839 * objc-lang.c (objc_language_data): Likewise.
3840 * opencl-lang.c (opencl_language_data): Likewise.
3841 * p-lang.c (pascal_language_data): Likewise.
3842 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3843 rust_language::lookup_symbol_nonlocal.
3844 (rust_language_data): Delete la_lookup_symbol_nonlocal
3845 initializer.
3846 (rust_language::lookup_symbol_nonlocal): New member function,
3847 implementation from rust_lookup_symbol_nonlocal.
3848 * symtab.c (lookup_symbol_aux): Update call to
3849 lookup_symbol_nonlocal.
3850 (basic_lookup_symbol_nonlocal): Rename to...
3851 (language_defn::lookup_symbol_nonlocal): ...this, and update
3852 header comment. Remove language_defn parameter, and replace with
3853 uses of `this'.
3854 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3855
3856 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3857
3858 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3859 initializer.
3860 (ada_language::value_print_inner): New member function.
3861 * c-lang.c (c_language_data): Delete la_value_print_inner
3862 initializer.
3863 (cplus_language_data): Likewise.
3864 (asm_language_data): Likewise.
3865 (minimal_language_data): Likewise.
3866 * d-lang.c (d_language_data): Likewise.
3867 (d_language::value_print_inner): New member function.
3868 * f-lang.c (f_language_data): Delete la_value_print_inner
3869 initializer.
3870 (f_language::value_print_inner): New member function.
3871 * f-lang.h (f_value_print_innner): Rename to...
3872 (f_value_print_inner): ...this (note spelling of 'inner').
3873 * f-valprint.c (f_value_print_innner): Rename to...
3874 (f_value_print_inner): ...this (note spelling of 'inner').
3875 * go-lang.c (go_language_data): Delete la_value_print_inner
3876 initializer.
3877 (go_language::value_print_inner): New member function.
3878 * language.c (language_defn::value_print_inner): Define new member
3879 function.
3880 (unk_lang_value_print_inner): Delete.
3881 (unknown_language_data): Delete la_value_print_inner initializer.
3882 (unknown_language::value_print_inner): New member function.
3883 (auto_language_data): Delete la_value_print_inner initializer.
3884 (auto_language::value_print_inner): New member function.
3885 * language.h (language_data): Delete la_value_print_inner field.
3886 (language_defn::value_print_inner): Delcare new member function.
3887 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3888 initializer.
3889 (m2_language::value_print_inner): New member function.
3890 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3891 initializer.
3892 * opencl-lang.c (opencl_language_data): Likewise.
3893 * p-lang.c (pascal_language_data): Likewise.
3894 (pascal_language::value_print_inner): New member function.
3895 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3896 initializer.
3897 (rust_language::value_print_inner): New member function.
3898 * valprint.c (do_val_print): Update call to value_print_inner.
3899
3900 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3901
3902 * ada-lang.c (ada_language_data): Delete la_value_print
3903 initializer.
3904 (ada_language::value_print): New member function.
3905 * c-lang.c (c_language_data): Delete la_value_print initializer.
3906 (cplus_language_data): Likewise.
3907 (asm_language_data): Likewise.
3908 (minimal_language_data): Likewise.
3909 * d-lang.c (d_language_data): Likewise.
3910 * f-lang.c (f_language_data): Likewise.
3911 * go-lang.c (go_language_data): Likewise.
3912 * language.c (unk_lang_value_print): Delete.
3913 (language_defn::value_print): Define new member function.
3914 (unknown_language_data): Delete la_value_print initializer.
3915 (unknown_language::value_print): New member function.
3916 (auto_language_data): Delete la_value_print initializer.
3917 (auto_language::value_print): New member function.
3918 * language.h (language_data): Delete la_value_print field.
3919 (language_defn::value_print): Declare new member function.
3920 (LA_VALUE_PRINT): Update call to value_print.
3921 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3922 * objc-lang.c (objc_language_data): Likewise.
3923 * opencl-lang.c (opencl_language_data): Likewise.
3924 * p-lang.c (pascal_language_data): Likewise.
3925 (pascal_language::value_print): New member function.
3926 * rust-lang.c (rust_language_data): Delete la_value_print
3927 initializer.
3928
3929 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3930
3931 * ada-lang.c (ada_watch_location_expression): Rename to
3932 ada_language::watch_location_expression.
3933 (ada_language_data): Delete la_watch_location_expression
3934 initializer.
3935 (ada_language::watch_location_expression): New member function,
3936 implementation from ada_watch_location_expression.
3937 * breakpoint.c (watch_command_1): Update call to
3938 watch_location_expression.
3939 * c-lang.c (c_watch_location_expression): Rename to
3940 language_defn::watch_location_expression.
3941 (c_language_data): Delete la_watch_location_expression
3942 initializer.
3943 (cplus_language_data): Likewise.
3944 (asm_language_data): Likewise.
3945 (minimal_language_data): Likewise.
3946 * c-lang.h (c_watch_location_expression): Delete declaration.
3947 * d-lang.c (d_language_data): Delete la_watch_location_expression
3948 initializer.
3949 * f-lang.c (f_language_data): Likewise.
3950 * go-lang.c (go_language_data): Likewise.
3951 * language.c (language_defn::watch_location_expression): Member
3952 function implementation from c_watch_location_expression.
3953 (unknown_language_data): Delete la_watch_location_expression
3954 initializer.
3955 (auto_language_data): Likewise.
3956 * language.h (language_data): Delete la_watch_location_expression
3957 field.
3958 (language_defn::watch_location_expression): Declare new member
3959 function.
3960 * m2-lang.c (m2_language_data): Delete
3961 la_watch_location_expression initializer.
3962 * objc-lang.c (objc_language_data): Likewise.
3963 * opencl-lang.c (opencl_language_data): Likewise.
3964 * p-lang.c (pascal_language_data): Likewise.
3965 * rust-lang.c (rust_watch_location_expression): Rename to
3966 rust_language::watch_location_expression.
3967 (rust_language_data): Delete la_watch_location_expression
3968 initializer.
3969 (rust_language::watch_location_expression): New member function,
3970 implementation from rust_watch_location_expression.
3971
3972 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3975 ada_language::collect_symbol_completion_matches.
3976 (ada_language_data): Delete la_collect_symbol_completion_matches
3977 initializer.
3978 (ada_language::collect_symbol_completion_matches): New member
3979 function, implementation from
3980 ada_collect_symbol_completion_matches.
3981 * c-lang.c (c_language_data): Delete
3982 la_collect_symbol_completion_matches initializer.
3983 (cplus_language_data): Likewise.
3984 (asm_language_data): Likewise.
3985 (minimal_language_data): Likewise.
3986 * d-lang.c (d_language_data): Likewise.
3987 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3988 f_language::collect_symbol_completion_matches.
3989 (f_language_data): Delete la_collect_symbol_completion_matches
3990 initializer.
3991 (f_language::collect_symbol_completion_matches) New member
3992 function, implementation from f_collect_symbol_completion_matches.
3993 * go-lang.c (go_language_data): Delete
3994 la_collect_symbol_completion_matches initializer.
3995 * language.c (unknown_language_data): Likewise.
3996 (auto_language_data): Likewise.
3997 * language.h (language_data): Delete
3998 la_collect_symbol_completion_matches field.
3999 (language_defn::collect_symbol_completion_matches): New member
4000 function.
4001 * m2-lang.c (m2_language_data): Delete
4002 la_collect_symbol_completion_matches initializer.
4003 * objc-lang.c (objc_language_data): Likewise.
4004 * opencl-lang.c (opencl_language_data): Likewise.
4005 * p-lang.c (pascal_language_data): Likewise.
4006 * rust-lang.c (rust_language_data): Likewise.
4007 * symtab.c (default_collect_symbol_completion_matches): Delete.
4008 (collect_symbol_completion_matches): Update call to
4009 collect_symbol_completion_matches.
4010 (collect_symbol_completion_matches_type): Likewise.
4011 * symtab.h (default_collect_symbol_completion_matches): Delete
4012 declaration.
4013
4014 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4015
4016 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4017 (ada_language_data): Delete la_word_break_characters initializer.
4018 (ada_language::word_break_characters): New member function.
4019 * c-lang.c (c_language_data): Delete la_word_break_characters
4020 initializer.
4021 (cplus_language_data): Likewise.
4022 (asm_language_data): Likewise.
4023 (minimal_language_data): Likewise.
4024 * completer.c: Update global comment.
4025 (advance_to_expression_complete_word_point): Update call to
4026 word_break_characters.
4027 (complete_files_symbols): Likewise.
4028 (complete_line_internal_1): Likewise.
4029 (default_completer_handle_brkchars): Likewise.
4030 (skip_quoted_chars): Likewise.
4031 * d-lang.c (d_language_data): Delete la_word_break_characters
4032 initializer.
4033 * f-lang.c (f_word_break_characters): Delete.
4034 (f_language_data): Delete la_word_break_characters initializer.
4035 (f_language::word_break_characters): New member function.
4036 * go-lang.c (go_language_data): Delete la_word_break_characters
4037 initializer.
4038 * language.c (unknown_language_data): Likewise.
4039 (auto_language_data): Likewise.
4040 * language.h (default_word_break_characters): Move declaration to
4041 earlier in the file.
4042 (language_data): Delete la_word_break_characters field.
4043 (language_defn::word_break_characters): New member function.
4044 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4045 initializer.
4046 * objc-lang.c (objc_language_data): Likewise.
4047 * opencl-lang.c (opencl_language_data): Likewise.
4048 * p-lang.c (pascal_language_data): Likewise.
4049 * rust-lang.c (rust_language_data): Likewise.
4050
4051 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4052
4053 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4054 (ada_language_data): Delete la_get_symbol_name_matcher
4055 initializer.
4056 (language_defn::get_symbol_name_matcher_inner): New member
4057 function.
4058 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4059 initializer.
4060 (cplus_language_data): Likewise.
4061 (cplus_language::get_symbol_name_matcher_inner): New member
4062 function.
4063 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4064 (minimal_language_data): Likewise.
4065 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4066 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4067 initializer.
4068 * dictionary.c (iter_match_first_hashed): Update call to
4069 get_symbol_name_matcher.
4070 (iter_match_next_hashed): Likewise.
4071 (iter_match_next_linear): Likewise.
4072 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4073 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4074 initializer.
4075 (f_language::get_symbol_name_matcher_inner): New member function.
4076 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4077 initializer.
4078 * language.c (default_symbol_name_matcher): Update header comment,
4079 make static.
4080 (language_defn::get_symbol_name_matcher): New definition.
4081 (language_defn::get_symbol_name_matcher_inner): Likewise.
4082 (get_symbol_name_matcher): Delete.
4083 (unknown_language_data): Delete la_get_symbol_name_matcher
4084 initializer.
4085 (auto_language_data): Likewise.
4086 * language.h (language_data): Delete la_get_symbol_name_matcher
4087 field.
4088 (language_defn::get_symbol_name_matcher): New member function.
4089 (language_defn::get_symbol_name_matcher_inner): Likewise.
4090 (default_symbol_name_matcher): Delete declaration.
4091 * linespec.c (find_methods): Update call to
4092 get_symbol_name_matcher.
4093 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4094 initializer.
4095 * minsyms.c (lookup_minimal_symbol): Update call to
4096 get_symbol_name_matcher.
4097 (iterate_over_minimal_symbols): Likewise.
4098 * objc-lang.c (objc_language_data): Delete
4099 la_get_symbol_name_matcher initializer.
4100 * opencl-lang.c (opencl_language_data): Likewise.
4101 * p-lang.c (pascal_language_data): Likewise.
4102 * psymtab.c (psymbol_name_matches): Update call to
4103 get_symbol_name_matcher.
4104 * rust-lang.c (rust_language_data): Delete
4105 la_get_symbol_name_matcher initializer.
4106 * symtab.c (symbol_matches_search_name): Update call to
4107 get_symbol_name_matcher.
4108 (compare_symbol_name): Likewise.
4109
4110 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4111
4112 * ada-lang.c (ada_language_data): Delete la_compute_program
4113 initializer.
4114 * c-lang.c (c_language_data): Likewise.
4115 (c_language::compute_program): New member function.
4116 (cplus_language_data): Delete la_compute_program initializer.
4117 (cplus_language::compute_program): New member function.
4118 (asm_language_data): Delete la_compute_program initializer.
4119 (minimal_language_data): Likewise.
4120 * c-lang.h (c_compute_program): Update comment.
4121 (cplus_compute_program): Likewise.
4122 * compile/compile-c-support.c (c_compute_program): Likewise.
4123 (cplus_compute_program): Likewise.
4124 * compile/compile.c (compile_to_object): Update call to
4125 la_compute_program.
4126 * d-lang.c (d_language_data): Delete la_compute_program
4127 initializer.
4128 * f-lang.c (f_language_data): Likewise.
4129 * go-lang.c (go_language_data): Likewise.
4130 * language.c (unknown_language_data): Likewise.
4131 (auto_language_data): Likewise.
4132 * language.h (language_data): Delete la_compute_program field.
4133 (language_defn::compute_program): New member function.
4134 * m2-lang.c (m2_language_data): Delete la_compute_program
4135 initializer.
4136 * objc-lang.c (objc_language_data): Likewise.
4137 * opencl-lang.c (opencl_language_data): Likewise.
4138 * p-lang.c (pascal_language_data): Likewise.
4139 * rust-lang.c (rust_language_data): Likewise.
4140
4141 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4142
4143 * ada-lang.c (ada_language_data) Delete
4144 la_class_name_from_physname initializer.
4145 * c-lang.c (c_language_data): Likewise.
4146 (cplus_language_data): Likewise.
4147 (cplus_language::class_name_from_physname): New member function.
4148 (asm_language_data): Delete la_class_name_from_physname
4149 initializer.
4150 (minimal_language_data): Likewise.
4151 * d-lang.c (d_language_data): Likewise.
4152 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4153 method on language_defn class.
4154 (guess_full_die_structure_name): Likewise.
4155 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4156 initializer.
4157 * go-lang.c (go_language_data): Likewise.
4158 * language.c (language_class_name_from_physname): Delete.
4159 (unk_lang_class_name): Delete.
4160 (unknown_language_data): Delete la_class_name_from_physname
4161 initializer.
4162 (auto_language_data): Likewise.
4163 * language.h (language_data): Delete la_class_name_from_physname
4164 field.
4165 (language_defn::class_name_from_physname): New function.
4166 (language_class_name_from_physname): Delete declaration.
4167 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4168 initializer.
4169 * objc-lang.c (objc_language_data): Likewise.
4170 * opencl-lang.c (opencl_language_data): Likewise.
4171 * p-lang.c (pascal_language_data): Likewise.
4172 * rust-lang.c (rust_language_data): Likewise.
4173
4174 2020-06-16 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-data.h (STATUS_NAME): New macro.
4177 * tui/tui-layout.c (tui_remove_some_windows)
4178 (initialize_known_windows, tui_register_window)
4179 (tui_layout_split::remove_windows, initialize_layouts)
4180 (tui_new_layout_command): Don't use hard-coded window names.
4181
4182 2020-06-16 Tom Tromey <tom@tromey.com>
4183
4184 PR tui/25348:
4185 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4186 tui_initialize_readline. Only run once. Call rl_initialize.
4187 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4188 tui_initialize_readline.
4189 * tui/tui-io.c (tui_setup_io): Call
4190 tui_ensure_readline_initialized.
4191 * tui/tui-interp.c (tui_interp::init): Update.
4192
4193 2020-06-16 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4196 Also preserve the status window.
4197
4198 2020-06-16 Tom Tromey <tom@tromey.com>
4199
4200 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4201 where m_window==nullptr.
4202
4203 2020-06-15 Tom Tromey <tromey@adacore.com>
4204
4205 * windows-nat.c (windows_nat::handle_output_debug_string):
4206 Update.
4207 (windows_nat::handle_ms_vc_exception): Update.
4208 * target.h (target_read_string): Change API.
4209 * target.c (target_read_string): Change API.
4210 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4211 Update.
4212 * solib-frv.c (frv_current_sos): Update.
4213 * solib-dsbt.c (dsbt_current_sos): Update.
4214 * solib-darwin.c (darwin_current_sos): Update.
4215 * linux-thread-db.c (inferior_has_bug): Update.
4216 * expprint.c (print_subexp_standard): Update.
4217 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4218 (ada_exception_message_1): Update.
4219
4220 2020-06-15 Tom Tromey <tromey@adacore.com>
4221
4222 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4223
4224 2020-06-15 Tom Tromey <tromey@adacore.com>
4225
4226 * valprint.c (read_string): Update comment.
4227 * target.c (MIN): Remove.
4228 (target_read_string): Rewrite.
4229
4230 2020-06-15 Tom Tromey <tromey@adacore.com>
4231
4232 * corefile.c (read_memory_string): Remove.
4233 * ada-valprint.c (ada_value_print_ptr): Update.
4234 * ada-lang.h (ada_tag_name): Change return type.
4235 * ada-lang.c (type_from_tag): Update.
4236 (ada_tag_name_from_tsd): Change return type. Use
4237 target_read_string.
4238 (ada_tag_name): Likewise.
4239 * gdbcore.h (read_memory_string): Don't declare.
4240
4241 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4242
4243 * symtab.c (rbreak_command): Ignore Windows drive colon.
4244
4245 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * NEWS: Mention removed GDBserver host support.
4248
4249 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4250
4251 * features/riscv/rebuild-csr-xml.sh: Updated.
4252
4253 2020-06-11 Tom Tromey <tom@tromey.com>
4254
4255 PR gdb/18318:
4256 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4257
4258 2020-06-09 Jonny Grant <jg@jguk.org>
4259 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4260
4261 * main.c (captured_main_1): Don't print new line after help.
4262 (print_gdb_help): add mailing list and IRC channel information
4263 to --help. Add new lines between items in the footer. Remove
4264 quotes around bug url.
4265
4266 2020-06-11 Keith Seitz <keiths@redhat.com>
4267
4268 PR gdb/21356
4269 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4270 Resolve typedefs for type length calculations.
4271
4272 2020-06-10 Tom de Vries <tdevries@suse.de>
4273
4274 PR ada/24713
4275 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4276 (write_psymbols): Enable .gdb_index for ada.
4277 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4278 ada.
4279
4280 2020-06-10 Tom de Vries <tdevries@suse.de>
4281
4282 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4283 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4284 namei" instead of "const char *name" argument.
4285 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4286 dw2_symtab_iter_init.
4287
4288 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4291 to use type::field and field::type instead.
4292
4293 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4296 to use field::type instead.
4297
4298 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * gdbtypes.h (struct field) <type, set_type>: New methods.
4301 Rename `type` field to...
4302 <m_type>: ... this. Change references throughout to use type or
4303 set_type methods.
4304 (FIELD_TYPE): Use field::type. Change call sites that modify
4305 the field's type to use field::set_type instead.
4306
4307 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4310 to use type::index_type instead.
4311
4312 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4315 methods.
4316 (TYPE_INDEX_TYPE): Use type::index_type.
4317 * gdbtypes.c (create_array_type_with_stride): Likewise.
4318
4319 2020-06-07 Tom Tromey <tom@tromey.com>
4320
4321 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4322 parameter.
4323 (generic_value_print): Update.
4324
4325 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 Revert commit 982a38f60b0.
4328 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4329
4330 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4331
4332 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4333 avoid use after free.
4334
4335 2020-06-05 Tom de Vries <tdevries@suse.de>
4336
4337 * NEWS: Fix typos.
4338
4339 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4340
4341 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4342 the per_bfd object.
4343 (dwarf2_read_debug_names): Likewise.
4344 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4345 object when re-using a per_bfd object with an index.
4346
4347 2020-06-03 Tom de Vries <tdevries@suse.de>
4348
4349 PR symtab/26046
4350 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4351 children for C++.
4352 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4353 DW_TAG_subprogram.
4354
4355 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 * ada-lang.c (ada_language_data): Delete skip_trampoline
4358 initializer.
4359 * c-lang.c (c_language_data): Likewise.
4360 (cplus_language_data): Likewise.
4361 (cplus_language::skip_trampoline): New member function.
4362 (asm_language_data): Delete skip_trampoline initializer.
4363 (minimal_language_data): Likewise.
4364 * d-lang.c (d_language_data): Likewise.
4365 * f-lang.c (f_language_data): Likewise.
4366 * go-lang.c (go_language_data): Likewise.
4367 * language.c (unk_lang_trampoline): Delete function.
4368 (skip_language_trampoline): Update.
4369 (unknown_language_data): Delete skip_trampoline initializer.
4370 (auto_language_data): Likewise.
4371 * language.h (language_data): Delete skip_trampoline field.
4372 (language_defn::skip_trampoline): New function.
4373 * m2-lang.c (m2_language_data): Delete skip_trampoline
4374 initializer.
4375 * objc-lang.c (objc_skip_trampoline): Delete function, move
4376 implementation to objc_language::skip_trampoline.
4377 (objc_language_data): Delete skip_trampoline initializer.
4378 (objc_language::skip_trampoline): New member function with
4379 implementation from objc_skip_trampoline.
4380 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4381 initializer.
4382 * p-lang.c (pascal_language_data): Likewise.
4383 * rust-lang.c (rust_language_data): Likewise.
4384
4385 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4388 (ada_language::demangle): New member function.
4389 * c-lang.c (c_language_data): Delete la_demangle initializer.
4390 (cplus_language_data): Delete la_demangle initializer.
4391 (cplus_language::demangle): New member function.
4392 (asm_language_data): Delete la_demangle initializer.
4393 (minimal_language_data): Delete la_demangle initializer.
4394 * d-lang.c (d_language_data): Delete la_demangle initializer.
4395 (d_language::demangle): New member function.
4396 * f-lang.c (f_language_data): Delete la_demangle initializer.
4397 (f_language::demangle): New member function.
4398 * go-lang.c (go_language_data): Delete la_demangle initializer.
4399 (go_language::demangle): New member function.
4400 * language.c (language_demangle): Update.
4401 (unk_lang_demangle): Delete.
4402 (unknown_language_data): Delete la_demangle initializer.
4403 (unknown_language::demangle): New member function.
4404 (auto_language_data): Delete la_demangle initializer.
4405 (auto_language::demangle): New member function.
4406 * language.h (language_data): Delete la_demangle field.
4407 (language_defn::demangle): New function.
4408 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4409 * objc-lang.c (objc_language_data): Delete la_demangle
4410 initializer.
4411 (objc_language::demangle): New member function.
4412 * opencl-lang.c (opencl_language_data): Delete la_demangle
4413 initializer.
4414 * p-lang.c (pascal_language_data): Likewise.
4415 * rust-lang.c (rust_language_data): Likewise.
4416 (rust_language::demangle): New member function.
4417
4418 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * ada-lang.c (ada_language_data): Delete la_print_type
4421 initializer.
4422 (ada_language::print_type): New member function.
4423 * c-lang.c (c_language_data): Delete la_print_type initializer.
4424 (c_language::print_type): New member function.
4425 (cplus_language_data): Delete la_print_type initializer.
4426 (cplus_language::print_type): New member function.
4427 (asm_language_data): Delete la_print_type initializer.
4428 (asm_language::print_type): New member function.
4429 (minimal_language_data): Delete la_print_type initializer.
4430 (minimal_language::print_type): New member function.
4431 * d-lang.c (d_language_data): Delete la_print_type initializer.
4432 (d_language::print_type): New member function.
4433 * f-lang.c (f_language_data): Delete la_print_type initializer.
4434 (f_language::print_type): New member function.
4435 * go-lang.c (go_language_data): Delete la_print_type initializer.
4436 (go_language::print_type): New member function.
4437 * language.c (unk_lang_print_type): Delete.
4438 (unknown_language_data): Delete la_print_type initializer.
4439 (unknown_language::print_type): New member function.
4440 (auto_language_data): Delete la_print_type initializer.
4441 (auto_language::print_type): New member function.
4442 * language.h (language_data): Delete la_print_type field.
4443 (language_defn::print_type): New function.
4444 (LA_PRINT_TYPE): Update.
4445 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4446 (m2_language::print_type): New member function.
4447 * objc-lang.c (objc_language_data): Delete la_print_type
4448 initializer.
4449 (objc_language::print_type): New member function.
4450 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4451 to opencl_language::print_type.
4452 (opencl_language_data): Delete la_print_type initializer.
4453 (opencl_language::print_type): New member function, implementation
4454 from opencl_print_type.
4455 * p-lang.c (pascal_language_data): Delete la_print_type
4456 initializer.
4457 (pascal_language::print_type): New member function.
4458 * rust-lang.c (rust_print_type): Delete, implementation moved to
4459 rust_language::print_type.
4460 (rust_language_data): Delete la_print_type initializer.
4461 (rust_language::print_type): New member function, implementation
4462 from rust_print_type.
4463
4464 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4465
4466 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4467 implementation moves to...
4468 (ada_language::sniff_from_mangled_name): ...here. Update return
4469 type.
4470 (ada_language_data): Delete la_sniff_from_mangled_name
4471 initializer.
4472 * c-lang.c (c_language_data): Likewise.
4473 (cplus_language_data): Likewise.
4474 (cplus_language::sniff_from_mangled_name): New member function,
4475 implementation taken from gdb_sniff_from_mangled_name.
4476 (asm_language_data): Delete la_sniff_from_mangled_name
4477 initializer.
4478 (minimal_language_data): Likewise.
4479 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4480 implementation moves to cplus_language::sniff_from_mangled_name.
4481 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4482 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4483 moves to...
4484 (d_language::sniff_from_mangled_name): ...here.
4485 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4486 * f-lang.c (f_language_data): Likewise.
4487 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4488 moves to...
4489 (go_language::sniff_from_mangled_name): ...here.
4490 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4491 * language.c (language_sniff_from_mangled_name): Delete.
4492 (unknown_language_data): Delete la_sniff_from_mangled_name
4493 initializer.
4494 (auto_language_data): Likewise.
4495 * language.h (language_data): Delete la_sniff_from_mangled_name
4496 field.
4497 (language_defn::sniff_from_mangled_name): New function.
4498 (language_sniff_from_mangled_name): Delete declaration.
4499 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4500 field.
4501 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4502 implementation moves to...
4503 (objc_language::sniff_from_mangled_name): ...here.
4504 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4505 * opencl-lang.c (opencl_language_data): Likewise.
4506 * p-lang.c (pascal_language_data): Likewise.
4507 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4508 implementation moves to...
4509 (rust_language::sniff_from_mangled_name): ...here.
4510 (rust_language_data): Delete la_sniff_from_mangled_name
4511 initializer.
4512 * symtab.c (symbol_find_demangled_name): Call
4513 sniff_from_mangled_name member function.
4514
4515 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4516
4517 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4518 initializer.
4519 * c-lang.c (c_language_data): Likewise.
4520 (cplus_language_data): Likewise.
4521 (cplus_language::search_name_hash): New member function.
4522 (asm_language_data): Delete la_search_name_hash initializer.
4523 (minimal_language_data): Likewise.
4524 * d-lang.c (d_language_data): Likewise.
4525 * dictionary.c (default_search_name_hash): Rename to...
4526 (language_defn::search_name_hash): ...this.
4527 * f-lang.c (f_language_data): Likewise.
4528 (f_language::search_name_hash): New member function.
4529 * go-lang.c (go_language_data): Delete la_search_name_hash
4530 initializer.
4531 * language.c (unknown_language_data): Likewise.
4532 (auto_language_data): Likewise.
4533 * language.h (struct language_data): Delete la_search_name_hash
4534 field.
4535 (language_defn::search_name_hash): Declare new member function.
4536 (default_search_name_hash): Delete declaration.
4537 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4538 initializer.
4539 * objc-lang.c (objc_language_data): Likewise.
4540 * opencl-lang.c (opencl_language_data): Likewise.
4541 * p-lang.c (pascal_language_data): Likewise.
4542 * rust-lang.c (rust_language_data): Likewise.
4543 * symtab.c (search_name_hash): Update call.
4544
4545 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4546
4547 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4548 initializer.
4549 * c-lang.c (class compile_instance): Declare.
4550 (c_language_data): Delete la_get_compile_instance initializer.
4551 (c_language::get_compile_instance): New member function.
4552 (cplus_language_data): Delete la_get_compile_instance initializer.
4553 (cplus_language::get_compile_instance): New member function.
4554 (asm_language_data): Delete la_get_compile_instance initializer.
4555 (minimal_language_data): Likewise.
4556 * c-lang.h (c_get_compile_context): Update comment.
4557 (cplus_get_compile_context): Update comment.
4558 * compile/compile.c (compile_to_object): Update calls, don't rely
4559 on function pointer being NULL.
4560 * d-lang.c (d_language_data): Delete la_get_compile_instance
4561 initializer.
4562 * f-lang.c (f_language_data): Likewise.
4563 * go-lang.c (go_language_data): Likewise.
4564 * language.c (unknown_language_data): Likewise.
4565 (auto_language_data): Likewise.
4566 * language.h (language_data): Delete la_get_compile_instance field.
4567 (language_defn::get_compile_instance): New member function.
4568 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4569 initializer.
4570 * objc-lang.c (objc_language_data): Likewise.
4571 * opencl-lang.c (opencl_language_data): Likewise.
4572 * p-lang.c (pascal_language_data): Likewise.
4573 * rust-lang.c (rust_language_data): Likewise.
4574
4575 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * ada-lang.c (ada_add_all_symbols): Update comment.
4578 (ada_iterate_over_symbols): Delete, move implementation to...
4579 (ada_language::iterate_over_symbols): ...here, a new member
4580 function, rewrite to use range based for loop.
4581 (ada_language_data): Delete la_iterate_over_symbols initializer.
4582 * c-lang.c (c_language_data): Likewise.
4583 (cplus_language_data): Likewise.
4584 (asm_language_data): Likewise.
4585 (minimal_language_data): Likewise.
4586 * d-lang.c (d_language_data): Likewise.
4587 * f-lang.c (f_language_data): Likewise.
4588 * go-lang.c (go_language_data): Likewise.
4589 * language.c (unknown_language_data): Likewise.
4590 (auto_language_data): Likewise.
4591 * language.h (language_data): Delete la_iterate_over_symbols field.
4592 (language_defn::iterate_over_symbols): New member function.
4593 (LA_ITERATE_OVER_SYMBOLS): Update.
4594 * linespec.c (iterate_over_all_matching_symtabs): Update.
4595 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4596 initializer.
4597 * objc-lang.c (objc_language_data): Likewise.
4598 * opencl-lang.c (opencl_language_data): Likewise.
4599 * p-lang.c (pascal_language_data): Likewise.
4600 * rust-lang.c (rust_language_data): Likewise.
4601
4602 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * ada-lang.c (ada_language_data): Delete
4605 la_lookup_transparent_type initializer.
4606 * c-lang.c (c_language_data): Likewise.
4607 (cplus_language_data): Likewise.
4608 (cplus_language::lookup_transparent_type): New member function.
4609 (asm_language_data): Delete la_lookup_transparent_type
4610 initializer.
4611 (minimal_language_data): Likewise.
4612 * d-lang.c (d_language_data): Likewise.
4613 * f-lang.c (f_language_data): Likewise.
4614 * go-lang.c (go_language_data): Likewise.
4615 * language.c (unknown_language_data): Likewise.
4616 (auto_language_data): Likewise.
4617 * language.h (struct language_data): Delete
4618 la_lookup_transparent_type field.
4619 (language_defn::lookup_transparent_type): New member function.
4620 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4621 initializer.
4622 * objc-lang.c (objc_language_data): Likewise.
4623 * opencl-lang.c (opencl_language_data): Likewise.
4624 * p-lang.c (pascal_language_data): Likewise.
4625 * rust-lang.c (rust_language_data): Likewise.
4626 * symtab.c (symbol_matches_domain): Update call.
4627
4628 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4629
4630 * ada-lang.c (ada_language_arch_info): Delete function, move
4631 implementation to...
4632 (ada_language::language_arch_info): ...here, a new member
4633 function.
4634 (ada_language_data): Delete la_language_arch_info.
4635 * c-lang.c (c_language_data): Likewise.
4636 (c_language::language_arch_info): New member function.
4637 (cplus_language_arch_info): Delete function, move
4638 implementation to...
4639 (cplus_language::language_arch_info): ...here, a new member
4640 function.
4641 (cplus_language_data): Delete la_language_arch_info.
4642 (asm_language_data): Likewise.
4643 (asm_language::language_arch_info): New member function.
4644 (minimal_language_data): Delete la_language_arch_info.
4645 (minimal_language::language_arch_info): New member function.
4646 * d-lang.c (d_language_arch_info): Delete function, move
4647 implementation to...
4648 (d_language::language_arch_info): ...here, a new member
4649 function.
4650 (d_language_data): Delete la_language_arch_info.
4651 * f-lang.c (f_language_arch_info): Delete function, move
4652 implementation to...
4653 (f_language::language_arch_info): ...here, a new member
4654 function.
4655 (f_language_data): Delete la_language_arch_info.
4656 * go-lang.c (go_language_arch_info): Delete function, move
4657 implementation to...
4658 (go_language::language_arch_info): ...here, a new member
4659 function.
4660 (go_language_data): Delete la_language_arch_info.
4661 * language.c (unknown_language_data): Likewise.
4662 (unknown_language::language_arch_info): New member function.
4663 (auto_language_data): Delete la_language_arch_info.
4664 (auto_language::language_arch_info): New member function.
4665 (language_gdbarch_post_init): Update call to
4666 la_language_arch_info.
4667 * language.h (language_data): Delete la_language_arch_info
4668 function pointer.
4669 (language_defn::language_arch_info): New function.
4670 * m2-lang.c (m2_language_arch_info): Delete function, move
4671 implementation to...
4672 (m2_language::language_arch_info): ...here, a new member
4673 function.
4674 (m2_language_data): Delete la_language_arch_info.
4675 * objc-lang.c (objc_language_arch_info): Delete function, move
4676 implementation to...
4677 (objc_language::language_arch_info): ...here, a new member
4678 function.
4679 (objc_language_data): Delete la_language_arch_info.
4680 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4681 implementation to...
4682 (opencl_language::language_arch_info): ...here, a new member
4683 function.
4684 (opencl_language_data): Delete la_language_arch_info.
4685 * p-lang.c (pascal_language_arch_info): Delete function, move
4686 implementation to...
4687 (pascal_language::language_arch_info): ...here, a new member
4688 function.
4689 (pascal_language_data): Delete la_language_arch_info.
4690 * rust-lang.c (rust_language_arch_info): Delete function, move
4691 implementation to...
4692 (rust_language::language_arch_info): ...here, a new member
4693 function.
4694 (rust_language_data): Delete la_language_arch_info.
4695
4696 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4697
4698 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4699 initializer.
4700 * c-lang.c (c_language_data): Likewise.
4701 (cplus_language_data): Likewise.
4702 (cplus_language::pass_by_reference_info): New method.
4703 (asm_language_data): Delete la_pass_by_reference initializer.
4704 (minimal_language_data): Likewise.
4705 * cp-abi.c (cp_pass_by_reference): Remove use of
4706 default_pass_by_reference.
4707 * d-lang.c (d_language_data): Likewise.
4708 * f-lang.c (f_language_data): Likewise.
4709 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4710 default_pass_by_reference.
4711 * go-lang.c (go_language_data): Likewise.
4712 * language.c (language_pass_by_reference): Update.
4713 (default_pass_by_reference): Delete.
4714 (unknown_language_data): Delete la_pass_by_reference
4715 initializer.
4716 (auto_language_data): Likewise.
4717 * language.h (struct language_data): Delete la_pass_by_reference
4718 field.
4719 (language_defn::pass_by_reference_info): New member function.
4720 (default_pass_by_reference): Delete declaration.
4721 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4722 initializer.
4723 * objc-lang.c (objc_language_data): Likewise.
4724 * opencl-lang.c (opencl_language_data): Likewise.
4725 * p-lang.c (pascal_language_data): Likewise.
4726 * rust-lang.c (rust_language_data): Likewise.
4727
4728 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 * ada-lang.c (ada_read_var_value): Delete function, move
4731 implementation to...
4732 (ada_language::read_var_value): ...here.
4733 (ada_language_data): Delete la_read_var_value initializer.
4734 * c-lang.c (c_language_data): Likewise.
4735 (cplus_language_data): Likewise.
4736 (minimal_language_data): Likewise.
4737 * d-lang.c (d_language_data): Likewise.
4738 * f-lang.c (f_language_data): Likewise.
4739 * findvar.c (default_read_var_value): Rename to...
4740 (language_defn::read_var_value): ...this.
4741 * findvar.c (read_var_value): Update header comment, and change to
4742 call member function instead of function pointer.
4743 * go-lang.c (go_language_data): Likewise.
4744 * language.c (unknown_language_data): Delete la_read_var_value
4745 initializer.
4746 (auto_language_data): Likewise.
4747 * language.h (struct language_data): Delete la_read_var_value
4748 field.
4749 (language_defn::read_var_value): New member function.
4750 (default_read_var_value): Delete declaration.
4751 * m2-lang.c (m2_language_data): Delete la_read_var_value
4752 initializer.
4753 * objc-lang.c (objc_language_data): Likewise.
4754 * opencl-lang.c (opencl_language_data): Likewise.
4755 * p-lang.c (pascal_language_data): Likewise.
4756 * rust-lang.c (rust_language_data): Likewise.
4757 * value.h (default_read_var_value): Delete declaration.
4758
4759 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4760
4761 * ada-lang.c (ada_print_array_index): Delete function, move
4762 implementation to...
4763 (ada_language::print_array_index): ...here.
4764 (ada_language_data): Delete la_print_array_index initializer.
4765 * c-lang.c (c_language_data): Likewise.
4766 (cplus_language_data): Likewise.
4767 (minimal_language_data): Likewise.
4768 * d-lang.c (d_language_data): Likewise.
4769 * f-lang.c (f_language_data): Likewise.
4770 * go-lang.c (go_language_data): Likewise.
4771 * language.c (default_print_array_index): Delete function, move
4772 implementation to...
4773 (language_defn::print_array_index): ...here.
4774 (unknown_language_data): Delete la_print_array_index initializer.
4775 (auto_language_data): Likewise.
4776 * language.h (struct language_data): Delete la_print_array_index
4777 field.
4778 (language_defn::print_array_index): New member function.
4779 (LA_PRINT_ARRAY_INDEX): Update.
4780 (default_print_array_index): Delete declaration.
4781 * m2-lang.c (m2_language_data): Delete la_print_array_index
4782 initializer.
4783 * objc-lang.c (objc_language_data): Likewise.
4784 * opencl-lang.c (opencl_language_data): Likewise.
4785 * p-lang.c (pascal_language_data): Likewise.
4786 * rust-lang.c (rust_language_data): Likewise.
4787
4788 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * gdb/ada-lang.c (ada_language_defn): Convert to...
4791 (ada_language_data): ...this.
4792 (class ada_language): New class.
4793 (ada_language_defn): New static global.
4794 * gdb/c-lang.c (c_language_defn): Convert to...
4795 (c_language_data): ...this.
4796 (class c_language): New class.
4797 (c_language_defn): New static global.
4798 (cplus_language_defn): Convert to...
4799 (cplus_language_data): ...this.
4800 (class cplus_language): New class.
4801 (cplus_language_defn): New static global.
4802 (asm_language_defn): Convert to...
4803 (asm_language_data): ...this.
4804 (class asm_language): New class.
4805 (asm_language_defn): New static global.
4806 (minimal_language_defn): Convert to...
4807 (minimal_language_data): ...this.
4808 (class minimal_language): New class.
4809 (minimal_language_defn): New static global.
4810 * gdb/d-lang.c (d_language_defn): Convert to...
4811 (d_language_data): ...this.
4812 (class d_language): New class.
4813 (d_language_defn): New static global.
4814 * gdb/f-lang.c (f_language_defn): Convert to...
4815 (f_language_data): ...this.
4816 (class f_language): New class.
4817 (f_language_defn): New static global.
4818 * gdb/go-lang.c (go_language_defn): Convert to...
4819 (go_language_data): ...this.
4820 (class go_language): New class.
4821 (go_language_defn): New static global.
4822 * gdb/language.c (unknown_language_defn): Remove declaration.
4823 (current_language): Initialize to nullptr, real initialization is
4824 moved to _initialize_language.
4825 (languages): Delete global.
4826 (language_defn::languages): Define.
4827 (set_language_command): Use language_defn::languages.
4828 (set_language): Likewise.
4829 (range_error): Likewise.
4830 (language_enum): Likewise.
4831 (language_def): Likewise.
4832 (add_set_language_command): Use language_def::languages for the
4833 language list, and language_def to lookup language pointers.
4834 (skip_language_trampoline): Use language_defn::languages.
4835 (unknown_language_defn): Convert to...
4836 (unknown_language_data): ...this.
4837 (class unknown_language): New class.
4838 (unknown_language_defn): New static global.
4839 (auto_language_defn): Convert to...
4840 (auto_language_data): ...this.
4841 (class auto_language): New class.
4842 (auto_language_defn): New static global.
4843 (language_gdbarch_post_init): Use language_defn::languages.
4844 (_initialize_language): Initialize current_language.
4845 * gdb/language.h (struct language_defn): Rename to...
4846 (struct language_data): ...this.
4847 (struct language_defn): New.
4848 (auto_language_defn): Delete.
4849 (unknown_language_defn): Delete.
4850 (minimal_language_defn): Delete.
4851 (ada_language_defn): Delete.
4852 (asm_language_defn): Delete.
4853 (c_language_defn): Delete.
4854 (cplus_language_defn): Delete.
4855 (d_language_defn): Delete.
4856 (f_language_defn): Delete.
4857 (go_language_defn): Delete.
4858 (m2_language_defn): Delete.
4859 (objc_language_defn): Delete.
4860 (opencl_language_defn): Delete.
4861 (pascal_language_defn): Delete.
4862 (rust_language_defn): Delete.
4863 * gdb/m2-lang.c (m2_language_defn): Convert to...
4864 (m2_language_data): ...this.
4865 (class m2_language): New class.
4866 (m2_language_defn): New static global.
4867 * gdb/objc-lang.c (objc_language_defn): Convert to...
4868 (objc_language_data): ...this.
4869 (class objc_language): New class.
4870 (objc_language_defn): New static global.
4871 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4872 (opencl_language_data): ...this.
4873 (class opencl_language): New class.
4874 (opencl_language_defn): New static global.
4875 * gdb/p-lang.c (pascal_language_defn): Convert to...
4876 (pascal_language_data): ...this.
4877 (class pascal_language): New class.
4878 (pascal_language_defn): New static global.
4879 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4880 language pointer, update comment format.
4881 * gdb/rust-lang.c (rust_language_defn): Convert to...
4882 (rust_language_data): ...this.
4883 (class rust_language): New class.
4884 (rust_language_defn): New static global.
4885
4886 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4887
4888 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4889 member variable.
4890 <m_stmt_at_address>: New member variable.
4891 (lnp_state_machine::record_line): Don't record some lines, update
4892 tracking of is_stmt at the same address.
4893 (lnp_state_machine::lnp_state_machine): Initialise new member
4894 variables.
4895
4896 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4897
4898 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4899 "-include gnu-nat-mig.h".
4900 * gnu-nat-mig.h: New file.
4901 * gnu-nat.c: Include "gnu-nat-mig.h".
4902 (exc_server, msg_reply_server, notify_server,
4903 process_reply_server): Remove declarations.
4904
4905 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4906
4907 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4908 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4909 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4910 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4911 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4912 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4913 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4914 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4915 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4916 to gnu_nat_target class.
4917 * gnu-nat.c: Likewise.
4918 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4919 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4920 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4921 object.
4922 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4923 instead of `gnu_target'.
4924
4925 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4926
4927 * i386-gnu-tdep.c: Include "gdbcore.h"
4928 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4929 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4930 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4931 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4932 i386_gnu_sigcontext_addr): New functions
4933 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4934 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4935 tdep.
4936
4937 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4938
4939 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4940 before fork_inferior call. Avoid calling it if target_is_pushed returns
4941 true.
4942
4943 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4944
4945 * gnu-nat.h (gnu_target): New variable declaration.
4946 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4947 gnu_target.
4948 * gnu-nat.c (gnu_target): New variable.
4949 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4950 add_thread_silent, and add_thread calls.
4951 (gnu_nat_target::create_inferior): Pass gnu_target to
4952 add_thread_silent, thread_change_ptid call.
4953 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4954 call.
4955
4956 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4957
4958 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4959 (gnu_nat_target::find_memory_regions): Remove unused
4960 `old_address' variable.
4961
4962 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4963
4964 * gnu-nat.c: Include "gdbarch.h".
4965
4966 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4967
4968 * reply_mig_hack.awk (Error return): Cast function through
4969 void *, to bypass compiler function call check.
4970
4971 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4972
4973 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4974 $(srcdir)/reply_mig_hack.awk.
4975
4976 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4977
4978 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4979
4980 2020-05-30 Jonny Grant <jg@jguk.org>
4981
4982 * configure.ac (ACX_BUGURL): change bug URL to https.
4983
4984 2020-05-30 Pedro Alves <palves@redhat.com>
4985
4986 * cp-support.c (replace_typedefs_template): New.
4987 (replace_typedefs_qualified_name): Handle
4988 DEMANGLE_COMPONENT_TEMPLATE.
4989
4990 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4993 dwarf2/index-cache.h, dwarf2/index-write.c,
4994 dwarf2/index-write.h, dwarf2/line-header.c,
4995 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4996 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4997 variables and fields from `dwarf2_per_objfile` to just
4998 `per_objfile` throughout.
4999
5000 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5001
5002 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5003 <push_dwarf_reg_entry_value>: Add comment.
5004
5005 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5006 Keith Seitz <keiths@redhat.com>
5007
5008 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5009 instead of PyEval_ReleaseLock.
5010 (class gdbpy_gil): Move to earlier in file.
5011 (finalize_python): Set gdb_python_initialized.
5012 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5013 when not initialized.
5014
5015 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5016
5017 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5018 <push_dwarf_reg_entry_value>: Remove assert. Override
5019 per_objfile with caller_per_objfile.
5020
5021 2020-05-28 Tom de Vries <tdevries@suse.de>
5022
5023 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5024 PR gold/15646 workaround to symbol kind "type".
5025
5026 2020-05-27 Tom Tromey <tromey@adacore.com>
5027
5028 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5029
5030 2020-05-27 Tom Tromey <tromey@adacore.com>
5031
5032 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5033 Use htab_find_with_hash.
5034 <add_abbrev>: Remove "abbrev_number" parameter.
5035 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5036 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5037 (hash_abbrev): Add comment.
5038 (abbrev_table::lookup_abbrev): Move to header file.
5039 (abbrev_table::read): Update.
5040
5041 2020-05-27 Tom Tromey <tromey@adacore.com>
5042
5043 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5044 method.
5045 <canonical_name>: New member.
5046 <raw_name>: Rename from "name".
5047 (partial_die_info): Initialize canonical_name.
5048 (scan_partial_symbols): Check raw_name.
5049 (partial_die_parent_scope, partial_die_full_name)
5050 (add_partial_symbol, add_partial_subprogram)
5051 (add_partial_enumeration, load_partial_dies): Use "name" method.
5052 (partial_die_info::name): New method.
5053 (partial_die_info::read, guess_partial_die_structure_name)
5054 (partial_die_info::fixup): Update.
5055
5056 2020-05-27 Tom Tromey <tromey@adacore.com>
5057
5058 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5059 <get_ref_die_offset>: Inline.
5060 <get_ref_die_offset_complaint>: New method.
5061 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5062 (attribute::get_ref_die_offset_complaint): Rename from
5063 get_ref_die_offset. Just issue complaint.
5064
5065 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5066
5067 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5068
5069 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5070
5071 * exec.c (exec_file_attach): Use errno value of first openp failure.
5072
5073 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5074
5075 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5076 Don't close thread handle.
5077
5078 2020-05-27 Tom Tromey <tom@tromey.com>
5079 Simon Marchi <simon.marchi@efficios.com>
5080
5081 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5082 shared_ptr.
5083 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5084 member.
5085 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5086 dwarf2_per_bfd_objfile_data_key>: New globals.
5087 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5088 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5089 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5090 shared.
5091 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5092 short-circuit when sharing.
5093 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5094 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5095
5096 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5097
5098 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5099 to...
5100 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5101 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5102
5103 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5104
5105 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5106 build_name_components, find_name_components_bounds>:
5107 Add per_objfile parameter.
5108 (struct mapped_index) <symbol_name_at>: Likewise.
5109 (struct mapped_debug_names): Remove constructor.
5110 <dwarf2_per_objfile>: Remove field.
5111 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5112 (mapped_index_base::find_name_components_bounds,
5113 mapped_index_base::build_name_components,
5114 dw2_expand_symtabs_matching_symbol): Likewise.
5115 (class mock_mapped_index) <symbol_name_at>: Likewise.
5116 (check_match): Likewise.
5117 (check_find_bounds_finds): Likewise.
5118 (test_mapped_index_find_name_component_bounds): Update.
5119 (CHECK_MATCH): Update.
5120 (dw2_expand_symtabs_matching): Update.
5121 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5122 per_objfile parameter.
5123 <find_vec_in_debug_names>: Likewise.
5124 <m_per_objfile>: New field.
5125 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5126 parameter.
5127 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5128 (dw2_debug_names_iterator::next): Update.
5129 (dw2_debug_names_lookup_symbol): Update.
5130 (dw2_debug_names_expand_symtabs_for_function): Update.
5131 (dw2_debug_names_map_matching_symbols): Update.
5132 (dw2_debug_names_expand_symtabs_matching): Update.
5133 (dwarf2_read_debug_names): Update.
5134
5135 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5138 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5139 move to dwarf2_per_objfile.
5140 <read_in_chain>: Remove.
5141 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5142 remove_all_cus, age_comp_units>: New methods.
5143 <m_dwarf2_cus>: New member.
5144 (struct dwarf2_per_cu_data) <cu>: Remove.
5145 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5146 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5147 moved to methods of dwarf2_per_objfile.
5148 (dwarf2_clear_marks): Remove.
5149 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5150 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5151 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5152 (dwarf2_per_objfile::remove_all_cus): New.
5153 (class free_cached_comp_units) <~free_cached_comp_units>:
5154 Update.
5155 (load_cu): Update.
5156 (dw2_do_instantiate_symtab): Adjust.
5157 (fill_in_sig_entry_from_dwo_entry): Adjust.
5158 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5159 (cutu_reader::cutu_reader): Likewise.
5160 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5161 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5162 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5163 and dwarf2_per_objfile::age_comp_units.
5164 (load_partial_comp_unit): Update.
5165 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5166 (process_queue): Likewise.
5167 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5168 backlink.
5169 (dwarf2_read_addr_index): Likewise.
5170 (follow_die_offset): Likewise.
5171 (dwarf2_fetch_die_loc_sect_off): Likewise.
5172 (dwarf2_fetch_constant_bytes): Likewise.
5173 (dwarf2_fetch_die_type_sect_off): Likewise.
5174 (follow_die_sig_1): Likewise.
5175 (load_full_type_unit): Likewise.
5176 (read_signatured_type): Likewise.
5177 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5178 (dwarf2_cu::~dwarf2_cu): Remove.
5179 (dwarf2_per_objfile::get_cu): New.
5180 (dwarf2_per_objfile::set_cu): New.
5181 (age_cached_comp_units): Rename to...
5182 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5183 to std::unordered_map.
5184 (free_one_cached_comp_unit): Rename to...
5185 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5186 to std::unordered_map.
5187 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5188 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5189 a dwarf2_per_objfile in data.
5190 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5191 (dwarf2_clear_marks): Remove.
5192
5193 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5194
5195 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5196 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5197 (init_tu_and_read_dwo_dies): Likewise.
5198 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5199 (cutu_reader::cutu_reader): Likewise.
5200 (load_partial_comp_unit): Likewise.
5201 (process_psymtab_comp_unit): Update.
5202 (build_type_psymtabs_1): Update.
5203 (process_skeletonless_type_unit): Update.
5204 (load_full_comp_unit): Update.
5205 (find_partial_die): Update.
5206 (dwarf2_read_addr_index): Update.
5207 (read_signatured_type): Update.
5208
5209 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5210
5211 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5212 m_header_read_in>: New fields.
5213 <get_header>: New method.
5214 * dwarf2/read.c (per_cu_header_read_in): Remove.
5215 (dwarf2_per_cu_data::get_header): New.
5216 (dwarf2_per_cu_data::addr_size): Update.
5217 (dwarf2_per_cu_data::offset_size): Update.
5218 (dwarf2_per_cu_data::ref_addr_size): Update.
5219
5220 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5221
5222 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5223 (dw2_do_instantiate_symtab): Update.
5224 (queue_and_load_all_dwo_tus): Change parameter from
5225 dwarf2_per_cu_data to dwarf2_cu.
5226 (dwarf2_fetch_die_loc_sect_off): Update.
5227 (dwarf2_fetch_constant_bytes): Update.
5228 (dwarf2_fetch_die_type_sect_off): Update.
5229
5230 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5231
5232 * dwarf2/read.c (process_full_comp_unit,
5233 process_full_type_unit): Remove per_cu, per_objfile paramters.
5234 Add dwarf2_cu parameter.
5235 (process_queue): Update.
5236
5237 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5238
5239 * dwarf2/read.c (create_cu_from_index_list): Replace
5240 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5241 (create_cus_from_index_list): Likewise.
5242 (create_cus_from_index): Likewise.
5243 (create_signatured_type_table_from_index): Likewise.
5244 (create_cus_from_debug_names_list): Likewise.
5245 (create_cus_from_debug_names): Likewise.
5246 (dwarf2_read_gdb_index): Update.
5247 (dwarf2_read_debug_names): Update.
5248
5249 2020-05-27 Tom Tromey <tom@tromey.com>
5250 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * dwarf2/read.h (struct dwarf2_per_objfile)
5253 <get_type_for_signatured_type, set_type_for_signatured_type>:
5254 New methods.
5255 <m_type_map>: New member.
5256 (struct signatured_type) <type>: Remove.
5257 * dwarf2/read.c
5258 (dwarf2_per_objfile::get_type_for_signatured_type,
5259 dwarf2_per_objfile::set_type_for_signatured_type): New.
5260 (get_signatured_type): Use new methods.
5261
5262 2020-05-27 Tom Tromey <tom@tromey.com>
5263 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5266 (struct dwarf2_per_objfile) <type_units>: New member.
5267 <get_type_unit_group_unshareable>: New method.
5268 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5269 num_symtabs, symtabs>: Remove; move to
5270 type_unit_group_unshareable.
5271 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5272 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5273 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5274
5275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * dwarf2/read.h (struct dwarf2_per_cu_data):
5278 <dwarf2_per_objfile>: Remove.
5279 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5280 dwarf2_per_objfile.
5281 (create_signatured_type_table_from_index): Likewise.
5282 (create_signatured_type_table_from_debug_names): Likewise.
5283 (create_debug_type_hash_table): Likewise.
5284 (fill_in_sig_entry_from_dwo_entry): Likewise.
5285 (create_type_unit_group): Likewise.
5286 (read_comp_units_from_section): Likewise.
5287 (create_cus_hash_table): Likewise.
5288
5289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5290
5291 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5292 dwarf2_per_cu_data::dwarf2_per_objfile.
5293 (compute_compunit_symtab_includes): Likewise.
5294 (dwarf2_cu::start_symtab): Likewise.
5295
5296 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5299 parameter.
5300 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5301 (read_namespace_alias): Update.
5302 (lookup_die_type): Update.
5303 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5304 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5305 Update.
5306 (disassemble_dwarf_expression): Update.
5307
5308 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5309
5310 * dwarf2/read.h (struct dwarf2_queue_item): Add
5311 dwarf2_per_objfile parameter, assign new parameter.
5312 <per_objfile>: New field.
5313 * dwarf2/read.c (free_one_cached_comp_unit): Add
5314 dwarf2_per_objfile parameter.
5315 (queue_comp_unit): Likewise.
5316 (dw2_do_instantiate_symtab): Update.
5317 (process_psymtab_comp_unit): Update.
5318 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5319 (process_imported_unit_die): Update.
5320 (queue_and_load_dwo_tu): Update.
5321 (follow_die_offset): Update.
5322 (follow_die_sig_1): Update.
5323
5324 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5327 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5328 (read_call_site_scope): Assign per_objfile.
5329 (dwarf2_per_cu_data::objfile): Remove.
5330 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5331 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5332 dwarf2_per_objfile parameter.
5333 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5334 dwarf2_per_objfile parameter.
5335 (dwarf_expr_reg_to_entry_parameter): Add output
5336 dwarf2_per_objfile parameter.
5337 (locexpr_get_frame_base): Update.
5338 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5339 <push_dwarf_reg_entry_value>: Update.
5340 <call_site_to_target_addr>: Update.
5341 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5342 parameter.
5343 (value_of_dwarf_reg_entry): Update.
5344 (rw_pieced_value): Update.
5345 (indirect_synthetic_pointer): Update.
5346 (dwarf2_evaluate_property): Update.
5347 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5348 parameter.
5349 (locexpr_read_variable): Update.
5350 (locexpr_get_symbol_read_needs): Update.
5351 (loclist_read_variable): Update.
5352
5353 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5356 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5357 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5358 parameter.
5359 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5360 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5361 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5362 parameter.
5363 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5364 sect_variable_value): Add dwarf2_per_objfile parameter.
5365 (class dwarf_evaluate_loc_desc) <dwarf_call,
5366 dwarf_variable_value>: Update.
5367 (fetch_const_value_from_synthetic_pointer): Add
5368 dwarf2_per_objfile parameter.
5369 (fetch_const_value_from_synthetic_pointer): Update.
5370 (coerced_pieced_ref): Update.
5371 (class symbol_needs_eval_context) <dwarf_call,
5372 dwarf_variable_value>: Update.
5373 (dwarf2_compile_expr_to_ax): Update.
5374
5375 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5378 parameter.
5379 (dwarf2_evaluate_loc_desc_full): Update.
5380
5381 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5384 parameter.
5385 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5386 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5387 dwarf2_per_objfile parameter.
5388 (decode_debug_loc_dwo_addresses): Likewise.
5389 (dwarf2_find_location_expression): Update.
5390 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5391 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5392 parameter.
5393 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5394 parameter.
5395 (locexpr_describe_location_1): Likewise.
5396 (locexpr_describe_location): Update.
5397
5398 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5399
5400 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5401 Remove.
5402 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5403 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5404 (dwarf2_compile_property_to_c): Update.
5405 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5406 use text offset from objfile.
5407 (locexpr_tracepoint_var_ref): Update.
5408 (locexpr_generate_c_location): Update.
5409 (loclist_describe_location): Update.
5410 (loclist_tracepoint_var_ref): Update.
5411 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5412 dwarf2_per_objfile parameter.
5413 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5414 use text offset from objfile.
5415 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5416
5417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * dwarf2/expr.h (struct dwarf_expr_context)
5420 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5421 <offset>: Remove.
5422 <per_objfile>: New member.
5423 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5424 dwarf2_per_objfile parameter. Don't set offset, set
5425 per_objfile.
5426 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5427 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5428 a dwarf2_per_objfile object instead of an offset.
5429 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5430 constructor.
5431 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5432 to dwarf2_expr_executor constructor. Don't set offset.
5433 (dwarf2_fetch_cfa_info): Update.
5434 (struct dwarf2_frame_cache) <text_offset>: Remove.
5435 <per_objfile>: New field.
5436 (dwarf2_frame_cache): Update.
5437 (dwarf2_frame_prev_register): Update.
5438 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5439 <dwarf_evaluate_loc_desc>: Add constructor.
5440 (dwarf2_evaluate_loc_desc_full): Update.
5441 (dwarf2_locexpr_baton_eval): Update.
5442 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5443 Add constructor.
5444 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5445
5446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5447
5448 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5449 addr_sized_int_type>: Move to dwarf2_cu.
5450 <int_type>: Move to dwarf2_per_objfile.
5451 (struct dwarf2_per_objfile) <int_type>: Move here.
5452 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5453 addr_sized_int_type>: Move here.
5454 (read_func_scope): Update.
5455 (read_array_type): Update.
5456 (read_tag_string_type): Update.
5457 (attr_to_dynamic_prop): Update.
5458 (dwarf2_per_cu_data::int_type): Rename to...
5459 (dwarf2_per_objfile::int_type): ... this.
5460 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5461 (dwarf2_cu::addr_sized_int_type): ... this.
5462 (read_subrange_type): Update.
5463 (dwarf2_per_cu_data::addr_type): Rename to...
5464 (dwarf2_cu::addr_type): ... this.
5465 (set_die_type): Update.
5466
5467 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5470 data through per_cu->cu.
5471
5472 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5475 dwarf2_per_cu_data parameter fo dwarf2_cu.
5476 (lookup_dwo_type_unit): Likewise.
5477 (read_cutu_die_from_dwo): Likewise.
5478 (lookup_dwo_unit): Likewise.
5479 (open_and_init_dwo_file): Likewise.
5480 (lookup_dwo_cutu): Likewise.
5481 (lookup_dwo_comp_unit): Likewise.
5482 (lookup_dwo_type_unit): Likewise.
5483 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5484 (cutu_reader::cutu_reader): Update.
5485
5486 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5489 parameter.
5490 (process_full_type_unit): Likewise.
5491 (process_queue): Update.
5492
5493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * dwarf2/read.c (recursively_compute_inclusions): Add
5496 dwarf2_per_objfile parameter.
5497 (compute_compunit_symtab_includes): Likewise.
5498 (process_cu_includes): Update.
5499
5500 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5503 parameter.
5504 (create_type_unit_group): Update.
5505 (process_psymtab_comp_unit_reader): Update.
5506 (build_type_psymtabs_reader): Update.
5507
5508 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5511 object through m_this_cu->cu.
5512
5513 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5514
5515 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5516 the info parameter.
5517 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5518
5519 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5520
5521 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5522 per_objfile parameter.
5523 (load_full_type_unit): Add per_objfile parameter.
5524 (read_signatured_type): Likewise.
5525 (load_full_comp_unit): Likewise.
5526 (load_cu): Likewise.
5527 (dw2_do_instantiate_symtab): Likewise.
5528 (dw2_get_file_names): Likewise.
5529 (dw2_map_symtabs_matching_filename): Update.
5530 (dw_expand_symtabs_matching_file_matcher): Update.
5531 (dw2_map_symbol_filenames): Update.
5532 (process_psymtab_comp_unit): Add per_objfile parameter.
5533 (build_type_psymtabs_1): Update.
5534 (process_skeletonless_type_unit): Update.
5535 (dwarf2_build_psymtabs_hard): Update.
5536 (load_partial_comp_unit): Add per_objfile parameter.
5537 (scan_partial_symbols): Update.
5538 (load_full_comp_unit): Add per_objfile parameter.
5539 (process_imported_unit_die): Update.
5540 (create_cus_hash_table): Update.
5541 (find_partial_die): Update.
5542 (dwarf2_read_addr_index): Update.
5543 (follow_die_offset): Update.
5544 (dwarf2_fetch_die_loc_sect_off): Update.
5545 (dwarf2_fetch_constant_bytes): Update.
5546 (dwarf2_fetch_die_type_sect_off): Update.
5547 (follow_die_sig_1): Update.
5548 (load_full_type_unit): Add per_objfile parameter.
5549 (read_signatured_type): Likewise.
5550
5551 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5552
5553 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5554 of objfile_name.
5555
5556 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5557
5558 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5559 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5560 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5561 field.
5562 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5563 (create_cus_from_index): Update.
5564 (dwarf2_read_gdb_index): Update.
5565 (create_cus_from_debug_names): Update.
5566 (dwarf2_read_debug_names): Update.
5567 (get_abbrev_section_for_cu): Update.
5568 (create_all_comp_units): Update.
5569 (read_attribute_value): Update.
5570 (get_debug_line_section): Update.
5571 * dwarf2/index-cache.c (index_cache::store): Update.
5572 * dwarf2/index-write.c (save_gdb_index_command): Update.
5573 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5574
5575 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5576
5577 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5578 member.
5579 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5580 dwarf2_per_cu_data::per_bfd.
5581 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5582 (create_type_unit_group): Likewise.
5583 (queue_comp_unit): Remove reference to
5584 per_cu->dwarf2_per_objfile.
5585 (maybe_queue_comp_unit): Likewise.
5586 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5587 (create_cus_hash_table): Assign new field.
5588
5589 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * dwarf2/read.c: Replace
5592 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5593 dwarf2_cu->per_objfile throughout.
5594
5595 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5598 parameter, don't use per_cu->dwarf2_per_objfile.
5599 (dw2_instantiate_symtab): Likewise.
5600 (dw2_find_last_source_symtab): Update.
5601 (dw2_map_expand_apply): Update.
5602 (dw2_lookup_symbol): Update.
5603 (dw2_expand_symtabs_for_function): Update.
5604 (dw2_expand_all_symtabs): Update.
5605 (dw2_expand_symtabs_with_fullname): Update.
5606 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5607 don't use per_cu->dwarf2_per_objfile.
5608 (dw2_expand_marked_cus): Update.
5609 (dw2_find_pc_sect_compunit_symtab): Update.
5610 (dw2_debug_names_lookup_symbol): Update.
5611 (dw2_debug_names_expand_symtabs_for_function): Update.
5612 (dw2_debug_names_map_matching_symbols): Update.
5613 (dwarf2_psymtab::expand_psymtab): Update.
5614
5615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5616
5617 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5618 <per_objfile>: New member.
5619 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5620 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5621 call to dwarf2_cu.
5622 (cutu_reader::cutu_reader): Update.
5623 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5624
5625 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5628 struct dwarf2_per_objfile.
5629 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5630 dwarf2_per_bfd.
5631 * dwarf2/read.c (set_die_type): Update.
5632 (get_die_type_at_offset): Update.
5633
5634 2020-05-27 Tom Tromey <tom@tromey.com>
5635 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5638 method.
5639 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5640 get_symtab, set_symtab>: New methods.
5641 <m_symtabs>: New field.
5642 (struct dwarf2_psymtab): Derive from partial_symtab.
5643 <readin_p, get_compunit_symtab>: Declare methods.
5644 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5645 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5646 New methods.
5647 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5648 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5649 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5650 (dw2_symtab_iter_next, dw2_print_stats)
5651 (dw2_expand_symtabs_with_fullname)
5652 (dw2_expand_symtabs_matching_one)
5653 (dw_expand_symtabs_matching_file_matcher)
5654 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5655 (dw2_debug_names_iterator::next)
5656 (dw2_debug_names_map_matching_symbols)
5657 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5658 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5659 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5660 New methods.
5661 (get_compunit_symtab, process_full_comp_unit)
5662 (process_full_type_unit): Update.
5663 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5664
5665 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5666
5667 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5668 then introduce a new dwarf2_per_objfile type.
5669 <read_line_string>: Move to the new dwarf2_per_objfile type.
5670 <objfile>: Likewise.
5671 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5672 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5673 dwarf2_per_objfile->per_bfd.
5674 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5675 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5676 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5677 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5678 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5679 (dwarf2_per_objfile::locate_sections): Rename to...
5680 (dwarf2_per_bfd::locate_sections): ... this.
5681 (dwarf2_per_objfile::get_cutu): Rename to...
5682 (dwarf2_per_bfd::get_cutu): ... this.
5683 (dwarf2_per_objfile::get_cu): Rename to...
5684 (dwarf2_per_bfd::get_cu): ... this.
5685 (dwarf2_per_objfile::get_tu): Rename to...
5686 (dwarf2_per_bfd::get_tu): ... this.
5687 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5688 (dwarf2_per_bfd::allocate_per_cu): ... this.
5689 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5690 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5691 (get_gdb_index_contents_ftype): Change parameter from
5692 dwarf2_per_objfile to dwarf2_per_bfd.
5693 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5694 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5695
5696 2020-05-27 Tom Tromey <tom@tromey.com>
5697 Simon Marchi <simon.marchi@efficios.com>
5698
5699 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5700 (allocate_piece_closure): Set "per_objfile" member.
5701 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5702 (locexpr_describe_location, loclist_describe_location): Use new
5703 member.
5704 * dwarf2/read.c (read_call_site_scope)
5705 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5706 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5707 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5708 handle_data_member_location): Set per_objfile member.
5709 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5710 member.
5711 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5712
5713 2020-05-27 Tom Tromey <tom@tromey.com>
5714
5715 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5716 allocate_signatured_type>: Declare new methods.
5717 <m_num_psymtabs>: New member.
5718 (struct dwarf2_per_cu_data) <index>: New member.
5719 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5720 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5721 (create_cu_from_index_list): Use allocate_per_cu.
5722 (create_signatured_type_table_from_index)
5723 (create_signatured_type_table_from_debug_names)
5724 (create_debug_type_hash_table, add_type_unit)
5725 (read_comp_units_from_section): Use allocate_signatured_type.
5726
5727 2020-05-27 Tom Tromey <tom@tromey.com>
5728
5729 * psymtab.c (partial_map_expand_apply)
5730 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5731 (psym_lookup_global_symbol_language)
5732 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5733 (psym_print_stats, psym_expand_symtabs_for_function)
5734 (psym_map_symbol_filenames, psym_map_matching_symbols)
5735 (psym_expand_symtabs_matching)
5736 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5737 (maintenance_check_psymtabs): Update.
5738 * psympriv.h (struct partial_symtab) <readin_p,
5739 get_compunit_symtab>: Add objfile parameter.
5740 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5741 Likewise.
5742 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5743 get_compunit_symtab>: Likewise.
5744 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5745
5746 2020-05-27 Tom Tromey <tom@tromey.com>
5747
5748 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5749 member.
5750 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5751 (create_cu_from_index_list)
5752 (create_signatured_type_table_from_index)
5753 (create_signatured_type_table_from_debug_names)
5754 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5755 (dwarf2_create_include_psymtab)
5756 (create_debug_type_hash_table, add_type_unit)
5757 (create_type_unit_group, read_comp_units_from_section)
5758 (dwarf2_compute_name, create_cus_hash_table)
5759 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5760 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5761 obstack.
5762 (dw2_get_real_path): Likewise. Change argument to
5763 dwarf2_per_objfile.
5764
5765 2020-05-27 Luis Machado <luis.machado@linaro.org>
5766
5767 PR tdep/26000
5768 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5769 for ldrd (immediate).
5770
5771 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5772
5773 * command.h: Add comment giving the name of class_tui.
5774 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5775 create the fake command for the help for class_tui.
5776
5777 2020-05-26 Tom Tromey <tromey@adacore.com>
5778
5779 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5780 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5781 (val_atr): New function.
5782 (value_val_atr): Use it.
5783 * ada-valprint.c (print_optional_low_bound): Change low bound
5784 handling for enums.
5785 (val_print_packed_array_elements): Don't call discrete_position.
5786 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5787 discrete_position for enum types.
5788 * language.c (default_print_array_index): Change type.
5789 * language.h (struct language_defn) <la_print_array_index>: Add
5790 index_type parameter, change type of index_value.
5791 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5792 (default_print_array_index): Update.
5793 * valprint.c (maybe_print_array_index): Don't call
5794 value_from_longest. Update.
5795 (value_print_array_elements): Don't call discrete_position.
5796
5797 2020-05-26 Tom Tromey <tromey@adacore.com>
5798
5799 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5800 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5801
5802 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5803
5804 PR gdb/13519
5805 * avr-tdep.c (avr_integer_to_address): Return data or code
5806 address accordingly to the second 'type' argument of the
5807 function.
5808
5809 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5810
5811 * infcmd.c, inferior.h: (construct_inferior_arguments):
5812 Moved function from here to gdbsupport/common-inferior.{h,cc}
5813
5814 2020-05-23 Tom Tromey <tom@tromey.com>
5815
5816 Revert commit eca1f90c:
5817 * NEWS: Remove entry for completion styling.
5818 * completer.c (_rl_completion_prefix_display_length): Move
5819 declaration later.
5820 (gdb_fnprint): Revert.
5821 (gdb_display_match_list_1): Likewise.
5822 * cli/cli-style.c (completion_prefix_style)
5823 (completion_difference_style, completion_suffix_style): Remove.
5824 (_initialize_cli_style): Revert.
5825 * cli/cli-style.h (completion_prefix_style)
5826 (completion_difference_style, completion_suffix_style): Don't
5827 declare.
5828
5829 2020-05-24 Pedro Alves <palves@redhat.com>
5830
5831 * symtab.c (completion_list_add_name): Return boolean indication
5832 of whether the symbol matched.
5833 (completion_list_add_symbol): Don't try to remove C++ aliases if
5834 the symbol didn't match in the first place.
5835 * symtab.h (completion_list_add_name): Return bool.
5836
5837 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5840 type::field.
5841
5842 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5843
5844 GDB 9.2 released.
5845
5846 2020-05-23 Tom Tromey <tom@tromey.com>
5847
5848 * NEWS: Add entry for completion styling.
5849 * completer.c (_rl_completion_prefix_display_length): Move
5850 declaration earlier.
5851 (gdb_fnprint): Use completion_style.
5852 (gdb_display_match_list_1): Likewise.
5853 * cli/cli-style.c (completion_prefix_style)
5854 (completion_difference_style, completion_suffix_style): New
5855 globals.
5856 (_initialize_cli_style): Register new globals.
5857 * cli/cli-style.h (completion_prefix_style)
5858 (completion_difference_style, completion_suffix_style): Declare.
5859
5860 2020-05-23 Pedro Alves <palves@redhat.com>
5861
5862 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5863 (parse_escape): Use ISDIGIT instead of isdigit.
5864 (puts_debug): Use gdb_isprint instead of isprint.
5865 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5866 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5867 ISSPACE instead of isspace.
5868 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5869 instead of isspace.
5870 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5871 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5872 instead of isxdigit and ISDIGIT instead of isdigit.
5873
5874 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5875
5876 * gdbtypes.h (struct type) <field>: New method.
5877 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5878 or type::field.
5879
5880 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5883 (TYPE_FIELDS): Use type::fields. Change all call sites that
5884 modify the propery to use type::set_fields instead.
5885
5886 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5887
5888 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5889 type::num_fields instead.
5890
5891 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5892
5893 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5894 methods.
5895 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5896 that modify the number of fields to use type::set_num_fields
5897 instead.
5898
5899 2020-05-22 Tom Tromey <tromey@adacore.com>
5900
5901 * compile/compile-object-load.h (munmap_list_free): Don't
5902 declare.
5903
5904 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5905
5906 * annotate.c (annotate_source_line): Update return type, add call
5907 to update current symtab and line.
5908 * annotate.h (annotate_source_line): Update return type, and
5909 extend header comment.
5910 * source.c (info_line_command): Check annotation_level before
5911 calling annotate_source_line.
5912 * stack.c (print_frame_info): If calling annotate_source_line
5913 returns true, then don't print any other source line information.
5914
5915 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5918
5919 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * coffread.c (patch_type): Remove NULL check before xfree.
5922 * corefile.c (set_gnutarget): Likewise.
5923 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5924 * exec.c (build_section_table): Likewise.
5925 * remote.c (remote_target::pass_signals): Likewise.
5926 * utils.c (n_spaces): Likewise.
5927 * cli/cli-script.c (document_command): Likewise.
5928 * i386-windows-tdep.c (core_process_module_section): Likewise.
5929 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5930
5931 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * symfile.c (reread_symbols): Clear objfile's section_offsets
5934 vector and section indices, re-compute them by calling
5935 sym_offsets.
5936
5937 2020-05-20 Tom Tromey <tromey@adacore.com>
5938
5939 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5940 (desc_one_bound, desc_index_type): Compute field name.
5941
5942 2020-05-20 Tom de Vries <tdevries@suse.de>
5943
5944 PR symtab/25833
5945 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5946
5947 2020-05-20 Alan Modra <amodra@gmail.com>
5948
5949 PR 25993
5950 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5951 bfd_set_filename.
5952 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5953 passed to bfd_set_filename.
5954 * symfile-mem.c (add_vsyscall_page): Likewise for string
5955 passed to symbol_file_add_from_memory.
5956 (symbol_file_add_from_memory): Make name param a const char* and
5957 don't strdup.
5958
5959 2020-05-20 Alan Modra <amodra@gmail.com>
5960
5961 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5962 rather than accessing bfd->filename directly.
5963 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5964 and use bfd_section_name.
5965 * dwarf2/frame.c (decode_frame_entry): Likewise.
5966 * exec.c (exec_set_section_address): Likewise.
5967 * solib-aix.c (solib_aix_bfd_open): Likewise.
5968 * stap-probe.c (get_stap_base_address): Likewise.
5969 * symfile.c (reread_symbols): Likewise.
5970
5971 2020-05-19 Tom Tromey <tromey@adacore.com>
5972
5973 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5974
5975 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5978
5979 2020-05-19 Pedro Alves <palves@redhat.com>
5980
5981 * NEWS (set exec-file-mismatch): Adjust entry.
5982 * exec.c: Include "build-id.h".
5983 (validate_exec_file): Try to match build IDs instead of filenames.
5984 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5985 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5986 and pass down 'warn_if_slow'.
5987 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5988 gdb_bfd_open_closure to pass it down.
5989 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5990
5991 2020-05-19 Pedro Alves <palves@redhat.com>
5992
5993 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5994 * target.c (target_fileio_open_1): Rename to target_fileio_open
5995 and make extern. Use bool.
5996 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5997 (target_fileio_read_alloc_1): Adjust.
5998 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5999 (target_fileio_open_warn_if_slow): Delete declaration.
6000
6001 2020-05-19 Pedro Alves <palves@redhat.com>
6002
6003 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6004 Adjust all callers.
6005
6006 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6007
6008 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6009 whether disp is negative.
6010
6011 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6012
6013 * symfile.h (struct symfile_segment_data)
6014 <~symfile_segment_data>: Remove.
6015 <segment_info>: Change to std::vector.
6016 * symfile.c (default_symfile_segments): Update.
6017 * elfread.c (elf_symfile_segments): Update.
6018
6019 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6022 <segments>: New.
6023 <segment_bases, segment_sizes>: Remove.
6024 * symfile.c (default_symfile_segments): Update.
6025 * elfread.c (elf_symfile_segments): Update.
6026 * remote.c (remote_target::get_offsets): Update.
6027 * solib-target.c (solib_target_relocate_section_addresses):
6028 Update.
6029
6030 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6031
6032 * symfile.h (struct symfile_segment_data): Initialize fields.
6033 <~symfile_segment_data>: Add.
6034 (symfile_segment_data_up): New.
6035 (struct sym_fns) <sym_segments>: Return a
6036 symfile_segment_data_up.
6037 (default_symfile_segments): Return a symfile_segment_data_up.
6038 (free_symfile_segment_data): Remove.
6039 (get_symfile_segment_data): Return a symfile_segment_data_up.
6040 * symfile.c (default_symfile_segments): Likewise.
6041 (get_symfile_segment_data): Likewise.
6042 (free_symfile_segment_data): Remove.
6043 (symfile_find_segment_sections): Update.
6044 * elfread.c (elf_symfile_segments): Return a
6045 symfile_segment_data_up.
6046 * remote.c (remote_target::get_offsets): Update.
6047 * solib-target.c (solib_target_relocate_section_addresses):
6048 Update.
6049 * symfile-debug.c (debug_sym_segments): Return a
6050 symfile_segment_data_up.
6051
6052 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6053
6054 PR build/25981
6055 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6056 Hardcode register numbers.
6057
6058 PR build/25981
6059 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6060 procfs_find_LDT_entry): Remove.
6061 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6062 procfs_find_LDT_entry): Remove.
6063 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6064 Remove.
6065
6066 2020-05-17 Pedro Alves <palves@redhat.com>
6067 Andrew Burgess <andrew.burgess@embecosm.com>
6068 Keno Fischer <keno@juliacomputing.com>
6069
6070 PR gdb/25741
6071 * breakpoint.c (build_target_condition_list): Update comments.
6072 (build_target_command_list): Update comments and skip matching
6073 locations.
6074 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6075 a separate function. Simplify "set breakpoint auto-hw off"
6076 handling.
6077 (insert_breakpoints): Update comment.
6078 (tracepoint_locations_match): New parameter. For breakpoints,
6079 compare location types too, if the caller wants to.
6080 (handle_automatic_hardware_breakpoints): New functions.
6081 (bp_location_is_less_than): Also sort by location type and
6082 hardware breakpoint length.
6083 (update_global_location_list): Handle "set breakpoint auto-hw on"
6084 here.
6085 (update_breakpoint_locations): Ask breakpoint_locations_match to
6086 ignore location types.
6087
6088 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6091 type::name instead.
6092
6093 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * gdbtypes.h (struct type) <name, set_name>: New methods.
6096 (TYPE_CODE): Use type::name. Change all call sites used to set
6097 the name to use type::set_name instead.
6098
6099 2020-05-16 Tom Tromey <tom@tromey.com>
6100
6101 * top.c (quit_force): Update.
6102 * infrun.c (handle_no_resumed): Update.
6103 * top.h (all_uis): New function.
6104 (ALL_UIS): Remove.
6105
6106 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6107
6108 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6109
6110 2020-05-16 Pedro Alves <palves@redhat.com>
6111
6112 * ia64-linux-nat.c
6113 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6114 Declare method.
6115 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6116
6117 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6120 (sparc64_adi_info): Likewise.
6121
6122 2020-05-15 Tom Tromey <tom@tromey.com>
6123
6124 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6125 block_objfile.
6126 (lookup_objfile_from_block): Remove.
6127 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6128 (lookup_global_symbol): Use block_objfile.
6129 * symtab.h (lookup_objfile_from_block): Don't declare.
6130 * printcmd.c (clear_dangling_display_expressions): Use
6131 block_objfile.
6132 * parse.c (operator_check_standard): Use block_objfile.
6133
6134 2020-05-15 Tom Tromey <tom@tromey.com>
6135
6136 * language.c (language_alloc_type_symbol): Set
6137 SYMBOL_SECTION.
6138 * symtab.c (initialize_objfile_symbol): Remove.
6139 (allocate_symbol): Remove.
6140 (allocate_template_symbol): Remove.
6141 * dwarf2/read.c (fixup_go_packaging): Use "new".
6142 (new_symbol): Use "new".
6143 (read_variable): Don't call initialize_objfile_symbol. Use
6144 "new".
6145 (read_func_scope): Use "new".
6146 * xcoffread.c (process_xcoff_symbol): Don't call
6147 initialize_objfile_symbol.
6148 (SYMBOL_DUP): Remove.
6149 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6150 "new".
6151 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6152 (allocate_template_symbol): Don't declare.
6153 (struct symbol): Add copy constructor. Change defaults.
6154 * jit.c (finalize_symtab): Use "new".
6155 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6156 Use "new".
6157 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6158 (common_block_end): Use "new".
6159 * mdebugread.c (parse_symbol): Use "new".
6160 (new_symbol): Likewise.
6161
6162 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6163
6164 * NEWS: Mention changes to help and apropos.
6165
6166 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6167
6168 * command.h (enum command_class): Improve comments, document
6169 that class_alias is for user-defined aliases, give the class
6170 name for each class, remove unused class_xdb.
6171 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6172 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6173 by a precise class.
6174 * infcmd.c (_initialize_infcmd): Likewise.
6175 * reverse.c (_initialize_reverse): Likewise.
6176 * stack.c (_initialize_stack): Likewise.
6177 * symfile.c (_initialize_symfile): Likewise.
6178 * tracepoint.c (_initialize_tracepoint): Likewise.
6179
6180 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6181
6182 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6183 when their aliased command is traversed.
6184 (help_cmd): Add fput_command_names_styled call to
6185 output command name and aliases when command has an alias.
6186
6187 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6188
6189 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6190 * cli/cli-decode.c (help_cmd_list): Declare as static,
6191 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6192 a command together with the command.
6193 (fput_command_name_styled, fput_command_names_styled): New functions.
6194 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6195 fput_command_name_styled.
6196 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6197 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6198
6199 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6200
6201 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6202 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6203 * command.h (cmd_show_list): Likewise.
6204 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6205 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6206
6207 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6208
6209 * unittests/command-def-selftests.c (traverse_command_structure):
6210 Verify all commands of a list have the same prefix command and
6211 that only the top cmdlist commands have a null prefix.
6212
6213 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6214
6215 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6216 as prefix, not one of its aliases.
6217 (set_cmd_prefix): Remove.
6218 (do_add_cmd): Centralize the setting of the prefix of a command, when
6219 command is defined after its full chain of prefix commands.
6220 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6221 (add_setshow_cmd_full): Likewise.
6222 (update_prefix_field_of_prefixed_commands): New function.
6223 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6224 update_prefix_field_of_prefixed_commands.
6225 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6226 addresses of remote_set_cmdlist and remote_show_cmdlist given
6227 as argument, not the address of an argument.
6228 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6229 * gdb/remote.c (_initialize_remote): Likewise.
6230
6231 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6232
6233 * cli/cli-cmds.c (alias_command): Check for an existing alias
6234 using lookup_cmd_composition, as valid_command_p is too strict
6235 and forbids aliases that are the prefix of an existing alias
6236 or command.
6237 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6238 command is properly recognised as a valid command.
6239
6240 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6241
6242 * unittests/help-doc-selftests.c: Rename to
6243 unittests/command-def-selftests.c
6244 * unittests/command-def-selftests.c (help_doc_tests): Update some
6245 comments.
6246 (command_structure_tests, traverse_command_structure): New namespace
6247 and function.
6248 (command_structure_invariants_tests): New function.
6249 (_initialize_command_def_selftests) Renamed from
6250 _initialize_help_doc_selftests, register command_structure_invariants
6251 selftest.
6252
6253 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6254
6255 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6256 an alias of 'show'.
6257
6258 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6259
6260 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6261 ada_is_fixed_point_type. Update all callers.
6262 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6263 all callers.
6264 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6265 Update all callers.
6266 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6267 print_fixed_point_type. Update all callers.
6268 * ada-valprint.c (ada_value_print_num): Replace call to
6269 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6270
6271 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6272
6273 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6274 processors.
6275 (cpu_supports_bts): Add CV_AMD case.
6276
6277 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6278 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * infrun.c (stop_all_threads): Collect multiple wait events at
6281 each pass.
6282
6283 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6284
6285 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6286 type::code instead.
6287
6288 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * gdbtypes.h (struct type) <code, set_code>: New methods.
6291 (TYPE_CODE): Use type::code. Change all call sites used to set
6292 the code to use type::set_code instead.
6293
6294 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6295 Tom de Vries <tdevries@suse.de>
6296 Pedro Alves <palves@redhat.com>
6297
6298 PR threads/25478
6299 * infrun.c (stop_all_threads): Do NOT ignore
6300 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6301 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6302 received.
6303 (handle_no_resumed): Remove code handling a live inferior with no
6304 threads.
6305 * remote.c (has_single_non_exited_thread): New.
6306 (remote_target::update_thread_list): Do not delete a thread if is
6307 the last thread of the process.
6308 * thread.c (thread_select): Call delete_exited_threads instead of
6309 prune_threads.
6310
6311 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6312
6313 * infrun.c (stop_all_threads): Enable/disable thread events of all
6314 targets. Move a debug message denoting the end of the function
6315 into the SCOPED_EXIT block.
6316
6317 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6318
6319 * process-stratum-target.h: Include <set>.
6320 (all_non_exited_process_targets, switch_to_target_no_thread): New
6321 function declarations.
6322 * process-stratum-target.c (all_non_exited_process_targets)
6323 (switch_to_target_no_thread): New function implementations.
6324
6325 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6326
6327 * infrun.c (handle_inferior_event): Extract out a piece of code
6328 into...
6329 (mark_non_executing_threads): ...this new function.
6330
6331 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6332
6333 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6334 use.
6335
6336 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6337
6338 * regcache.c (regcache_read_pc_protected): New function
6339 implementation that returns 0 if the PC cannot read via
6340 'regcache_read_pc'.
6341 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6342 instead of 'regcache_read_pc'.
6343 (keep_going_pass_signal): Ditto.
6344
6345 2020-05-13 Tom Tromey <tromey@adacore.com>
6346
6347 * ada-lang.c (align_value): Remove.
6348 (ada_template_to_fixed_record_type_1): Use align_up.
6349
6350 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6351
6352 * async-event.c: Update the copyright year.
6353 * async-event.h: Update the copyright year.
6354
6355 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6356
6357 * objfiles.h (is_addr_in_objfile,
6358 shared_objfile_contains_address_p): Return bool.
6359 * objfile.c (is_addr_in_objfile,
6360 shared_objfile_contains_address_p): Return bool.
6361
6362 2020-05-11 Tom Tromey <tromey@adacore.com>
6363
6364 * cli/cli-cmds.c (info_command): Restore.
6365 (_initialize_cli_cmds): Use add_prefix_command for "info".
6366 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6367
6368 2020-05-11 Tom Tromey <tromey@adacore.com>
6369
6370 * ada-lang.c (ada_value_primitive_field): Now public.
6371 * ada-lang.h (ada_value_primitive_field): Declare.
6372 * ada-valprint.c (print_field_values): Use
6373 ada_value_primitive_field for wrapper fields.
6374
6375 2020-05-11 Tom de Vries <tdevries@suse.de>
6376
6377 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6378 MODULE_DOMAIN.
6379
6380 2020-05-11 Tom de Vries <tdevries@suse.de>
6381
6382 PR symtab/25941
6383 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6384 with length 0, if not gdb-produced.
6385 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6386
6387 2020-05-09 Tom de Vries <tdevries@suse.de>
6388
6389 PR gdb/25955
6390 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6391 calculation.
6392
6393 2020-05-09 Tom Tromey <tom@tromey.com>
6394
6395 * top.c (server_command): Now bool.
6396 * top.h (server_command): Now bool.
6397
6398 2020-05-08 Tom Tromey <tromey@adacore.com>
6399
6400 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6401 already being processed.
6402
6403 2020-05-08 Tom Tromey <tom@tromey.com>
6404
6405 * printcmd.c (struct display) <next>: Remove.
6406 <display>: New constructor.
6407 <exp_string>: Now a std::string.
6408 <enabled_p>: Now a bool.
6409 (display_number): Move definition earlier.
6410 (displays): Rename from display_chain. Now a std::vector.
6411 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6412 (display_command): Update.
6413 (do_one_display, disable_display)
6414 (enable_disable_display_command, do_enable_disable_display):
6415 Update.
6416 (free_display): Remove.
6417 (clear_displays): Rewrite.
6418 (delete_display): Update.
6419 (map_display_numbers): Use function_view. Remove "data"
6420 parameter. Update.
6421 (do_delete_display): Remove.
6422 (undisplay_command): Update.
6423 (do_one_display, do_displays, disable_display)
6424 (info_display_command): Update.
6425 (do_enable_disable_display): Remove.
6426 (enable_disable_display_command)
6427 (clear_dangling_display_expressions): Update.
6428
6429 2020-05-08 Tom Tromey <tom@tromey.com>
6430
6431 * symtab.c (set_symbol_cache_size)
6432 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6433 (maintenance_print_symbol_cache_statistics): Update.
6434 * symmisc.c (print_symbol_bcache_statistics)
6435 (print_objfile_statistics, maintenance_print_objfiles)
6436 (maintenance_info_symtabs, maintenance_check_symtabs)
6437 (maintenance_expand_symtabs, maintenance_info_line_tables):
6438 Update.
6439 * symfile-debug.c (set_debug_symfile): Update.
6440 * source.c (forget_cached_source_info): Update.
6441 * python/python.c (gdbpy_progspaces): Update.
6442 * psymtab.c (maintenance_info_psymtabs): Update.
6443 * probe.c (parse_probes): Update.
6444 * linespec.c (iterate_over_all_matching_symtabs)
6445 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6446 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6447 * exec.c (exec_target::close): Update.
6448 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6449 * breakpoint.c (print_one_breakpoint_location)
6450 (create_longjmp_master_breakpoint)
6451 (create_std_terminate_master_breakpoint): Update.
6452 * progspace.c (program_spaces): Now a std::vector.
6453 (maybe_new_address_space): Update.
6454 (add_program_space): Remove.
6455 (program_space::program_space): Update.
6456 (remove_program_space): Update.
6457 (number_of_program_spaces): Remove.
6458 (print_program_space, update_address_spaces): Update.
6459 * progspace.h (program_spaces): Change type.
6460 (ALL_PSPACES): Remove.
6461 (number_of_program_spaces): Don't declare.
6462 (struct program_space) <next>: Remove.
6463
6464 2020-05-08 Tom Tromey <tom@tromey.com>
6465
6466 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6467 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6468 (enable_break): Update.
6469 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6470 (frv_fdpic_find_canonical_descriptor): Update.
6471 (frv_fetch_objfile_link_map): Update.
6472 * progspace.c (program_space::free_all_objfiles): Update.
6473 (program_space::solibs): New method.
6474 * progspace.h (struct program_space) <solibs>: New method.
6475 * solist.h (master_so_list): Don't declare.
6476 (ALL_SO_LIBS): Remove.
6477 * solib.h (so_list_head): Remove.
6478 (update_solib_list): Update comment.
6479 * solib.c (master_so_list): Remove.
6480 (solib_used, update_solib_list, solib_add)
6481 (info_sharedlibrary_command, clear_solib)
6482 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6483
6484 2020-05-08 Tom Tromey <tom@tromey.com>
6485
6486 * extension.c (extension_languages): Now a std::array.
6487 (ALL_EXTENSION_LANGUAGES): Remove.
6488 (get_ext_lang_defn, get_ext_lang_of_file)
6489 (eval_ext_lang_from_control_command): Update.
6490 (finish_ext_lang_initialization)
6491 (auto_load_ext_lang_scripts_for_objfile)
6492 (ext_lang_type_printers::ext_lang_type_printers)
6493 (apply_ext_lang_type_printers)
6494 (ext_lang_type_printers::~ext_lang_type_printers)
6495 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6496 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6497 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6498 (get_matching_xmethod_workers, ext_lang_colorize)
6499 (ext_lang_before_prompt): Update.
6500 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6501
6502 2020-05-08 Tom Tromey <tom@tromey.com>
6503
6504 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6505 overload.
6506 <swap_string, m_string>: Remove.
6507 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6508 Update.
6509 * stabsread.c (define_symbol, read_type): Update.
6510 * linespec.c (find_linespec_symbols): Update.
6511 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6512 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6513 * dbxread.c (read_dbx_symtab): Update.
6514 * cp-support.h (cp_canonicalize_string_full)
6515 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6516 Return unique_xmalloc_ptr.
6517 * cp-support.c (inspect_type): Update.
6518 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6519 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6520 Likewise.
6521 * c-typeprint.c (print_name_maybe_canonical): Update.
6522 * break-catch-throw.c (check_status_exception_catchpoint):
6523 Update.
6524
6525 2020-05-08 Tom de Vries <tdevries@suse.de>
6526
6527 * infrun.c (follow_fork): Copy current_line and current_symtab to
6528 child thread.
6529
6530 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * async-event.c (struct async_signal_handler, struct
6533 async_event_handler): Reformat, remove typedef.
6534
6535 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6538 access thistype->main_type->dyn_prop_list directly.
6539
6540 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6541
6542 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6543 (remove_dyn_prop): Remove. Update all users to use
6544 type::remove_dyn_prop.
6545 * gdbtypes.c (remove_dyn_prop): Rename to...
6546 (type::remove_dyn_prop): ... this.
6547
6548 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6549
6550 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6551 (add_dyn_prop): Remove. Update all users to use
6552 type::add_dyn_prop.
6553 * gdbtypes.c (add_dyn_prop): Rename to...
6554 (type::add_dyn_prop): ... this.
6555
6556 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6557
6558 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6559 (get_dyn_prop): Remove. Update all users to use
6560 type::dyn_prop.
6561 * gdbtypes.c (get_dyn_prop): Rename to...
6562 (type::dyn_prop): ... this.
6563
6564 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6565
6566 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6567
6568 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6569
6570 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6571 instruction, skip it if it's there.
6572
6573 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6574
6575 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6576
6577 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6578
6579 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6580 * gdbtypes.c (recursive_dump_type): Remove use of
6581 TYPE_INCOMPLETE.
6582
6583 2020-05-03 Tom Tromey <tom@tromey.com>
6584
6585 * breakpoint.c (catch_command, tcatch_command): Remove.
6586 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6587 add_show_prefix_cmd.
6588 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6589 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6590 Remove.
6591 (add_internal_problem_command): Use add_basic_prefix_cmd,
6592 add_show_prefix_cmd.
6593 * mips-tdep.c (set_mipsfpu_command): Remove.
6594 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6595 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6596 (_initialize_index_cache): Use add_basic_prefix_cmd.
6597 * memattr.c (dummy_cmd): Remove.
6598 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6599 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6600 (_initialize_tui_win): Use add_basic_prefix_cmd,
6601 add_show_prefix_cmd.
6602 * cli/cli-logging.c (set_logging_command): Remove.
6603 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6604 add_show_prefix_cmd.
6605 (show_logging_command): Remove.
6606 * target.c (target_command): Remove.
6607 (add_target): Use add_basic_prefix_cmd.
6608
6609 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6610
6611 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6612
6613 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6614
6615 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6616 info_command.
6617
6618 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6619
6620 * nbsd-nat.c (nbsd_enable_proc_events)
6621 (nbsd_nat_target::post_startup_inferior): Add.
6622 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6623 (nbsd_nat_target::update_thread_list): Rewrite.
6624 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6625 "PTRACE_LWP_CREATE".
6626 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6627
6628 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6629
6630 * stack.c (_initialize_stack): Remove duplicated creation
6631 of "frame" command and "f" alias.
6632
6633 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6634
6635 PR gdb/18706
6636 * gdbtypes.c (check_typedef): Calculate size of array of
6637 stubbed type.
6638
6639 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6640
6641 PR gdb/15559
6642 * i386-tdep.c (i386_push_dummy_call): Call
6643 i386_thiscall_push_dummy_call.
6644 (i386_thiscall_push_dummy_call): New function.
6645 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6646 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6647 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6648
6649 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * gdbarch.sh (do_read): Add shellcheck disable directive for
6652 warning SC2162.
6653
6654 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6657 "referenced but not assigned" warning.
6658
6659 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6660
6661 * gdbarch.sh: Remove code that sets fallbackdefault.
6662
6663 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6664
6665 * gdbarch.sh: Use shell operators && and || instead of
6666 -a and -o.
6667
6668 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6669
6670 * gdbarch.sh: Use $(...) instead of `...`.
6671
6672 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6673
6674 * gdbarch.sh: Use double quotes around variables.
6675
6676 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * gdbarch.sh: Use %s with printf, instead of variables in the
6679 format string.
6680
6681 2020-04-29 Tom Tromey <tromey@adacore.com>
6682
6683 PR ada/25875:
6684 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6685 type fields here.
6686 (read_enumeration_type): Call
6687 update_enumeration_type_from_children later. Update comments.
6688 (process_enumeration_scope): Don't create type fields.
6689
6690 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6691
6692 * nbsd-tdep.c: Include "xml-syscall.h".
6693 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6694
6695 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6696
6697 * nbsd-nat.c: Include "sys/wait.h".
6698 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6699 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6700 (nbsd_nat_target::remove_exec_catchpoint)
6701 (nbsd_nat_target::set_syscall_catchpoint): Add.
6702 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6703 (nbsd_nat_target::insert_exec_catchpoint)
6704 (nbsd_nat_target::remove_exec_catchpoint)
6705 (nbsd_nat_target::set_syscall_catchpoint): Add.
6706 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6707 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6708 `nbsd_get_syscall_number'.
6709
6710 2020-04-29 Tom Tromey <tom@tromey.com>
6711
6712 * stack.c (print_block_frame_labels): Remove.
6713
6714 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6715
6716 PR gdb/17320
6717 * ada-valprint.c (val_print_packed_array_elements): Move array
6718 end bracket to new line.
6719 (ada_val_print_string): Remove extra spaces before first array
6720 element.
6721 * c-valprint.c (c_value_print_array): Likewise.
6722 * m2-valprint.c (m2_print_array_contents): Likewise.
6723 (m2_value_print_inner): Likewise.
6724 * p-valprint.c (pascal_value_print_inner): Likewise.
6725 * valprint.c (generic_val_print_array): Likewise.
6726 (value_print_array_elements): Move first array element and array
6727 end bracket to new line.
6728
6729 2020-04-29 Tom de Vries <tdevries@suse.de>
6730
6731 PR symtab/25889
6732 * linespec.c (find_method): Fix ix calculation.
6733
6734 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6735
6736 * syscalls/update-netbsd.sh: New file.
6737 * syscalls/netbsd.xml: Regenerate.
6738 * data-directory/Makefile.in: Register `netbsd.xml' in
6739 `SYSCALLS_FILES'.
6740
6741 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6742
6743 * syscalls/update-freebsd.sh: Add double quotes.
6744
6745 2020-04-28 Tom Tromey <tom@tromey.com>
6746
6747 * NEWS: Update.
6748 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6749 (cmdpy_init): Allow class_tui.
6750
6751 2020-04-28 Mark Williams <mark@myosotissp.com>
6752
6753 PR gdb/24480
6754 * dwarf2read.c: Add missing assingments to list_in_scope when
6755 start_symtab was already called.
6756
6757 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6758
6759 PR gdb/25881
6760 * dwarf2/read.c (offset_map_type): Use
6761 gdb:hash_enum<sect_offset> as hash function.
6762
6763 2020-04-28 Tom de Vries <tdevries@suse.de>
6764
6765 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6766 with DW_AT_signature.
6767
6768 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6769
6770 * configure.ac: Remove check for fs_base/gs_base in
6771 user_regs_struct.
6772 * configure: Re-generate.
6773 * config.in: Re-generate.
6774 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6775 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6776 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6777
6778 2020-04-27 Luis Machado <luis.machado@linaro.org>
6779
6780 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6781 problematic inline frame unwinding situation.
6782 * frame.c (frame_id_computed_p): New function.
6783 * frame.h (frame_id_computed_p): New prototype.
6784
6785 2020-04-26 Tom Tromey <tom@tromey.com>
6786
6787 * command.h (enum command_class) <class_pseudo>: Remove.
6788
6789 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6790
6791 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6792 and whitespace.
6793
6794 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6795
6796 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6797 `PT_GET_PROCESS_STATE' block.
6798
6799 2020-04-24 Tom Tromey <tom@tromey.com>
6800
6801 * symtab.h (symbol_get_demangled_name): Don't declare.
6802 * symtab.c (symbol_get_demangled_name): Remove.
6803 (general_symbol_info::natural_name)
6804 (general_symbol_info::demangled_name): Update.
6805
6806 2020-04-24 Tom Tromey <tom@tromey.com>
6807
6808 PR rust/25025:
6809 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6810
6811 2020-04-24 Tom Tromey <tom@tromey.com>
6812
6813 PR symtab/12707:
6814 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6815 exists.
6816 (new_symbol): Likewise.
6817 * compile/compile-object-load.c (get_out_value_type): Use
6818 symbol_matches_search_name.
6819
6820 2020-04-24 Tom Tromey <tom@tromey.com>
6821
6822 * dwarf2/read.c (add_partial_symbol): Do not call
6823 compute_and_set_names.
6824
6825 2020-04-24 Tom Tromey <tom@tromey.com>
6826
6827 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6828 overload.
6829
6830 2020-04-24 Tom Tromey <tom@tromey.com>
6831
6832 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6833 (add_psymbol_to_list): New overload. Make old overload call new
6834 one.
6835 * psympriv.h (add_psymbol_to_list): New overload.
6836
6837 2020-04-24 Tom Tromey <tom@tromey.com>
6838
6839 * dwarf2/read.c (partial_die_info::read) <case
6840 DW_AT_linkage_name>: Use value_as_string.
6841 (dwarf2_string_attr): Use value_as_string.
6842 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6843 method.
6844 * dwarf2/attribute.c (attribute::value_as_string): New method.
6845
6846 2020-04-24 Tom Tromey <tom@tromey.com>
6847
6848 * symtab.c (general_symbol_info::natural_name)
6849 (general_symbol_info::demangled_name): Check for language_rust.
6850
6851 2020-04-24 Tom Tromey <tom@tromey.com>
6852
6853 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6854 (dwarf2_physname): ... from here.
6855 (partial_die_info::read): Add Rust "{" hack.
6856
6857 2020-04-24 Tom Tromey <tom@tromey.com>
6858
6859 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6860 method.
6861 (symbol_set_demangled_name): Don't declare.
6862 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6863 symbol_set_demangled_name.
6864 (general_symbol_info::set_language)
6865 (general_symbol_info::compute_and_set_names): Update.
6866 * minsyms.c (minimal_symbol_reader::install): Update.
6867 * dwarf2/read.c (new_symbol): Update.
6868
6869 2020-04-24 Tom Tromey <tromey@adacore.com>
6870
6871 PR python/23662:
6872 * python/py-type.c (convert_field): Handle
6873 FIELD_LOC_KIND_DWARF_BLOCK.
6874 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6875 (typy_get_dynamic): Nw function.
6876 (type_object_getset): Add "dynamic".
6877 * NEWS: Add entry.
6878
6879 2020-04-24 Tom Tromey <tromey@adacore.com>
6880
6881 * ada-typeprint.c (print_choices, print_variant_part)
6882 (print_record_field_types_dynamic): New functions.
6883 (print_record_field_types): Use print_record_field_types_dynamic.
6884
6885 2020-04-24 Tom Tromey <tromey@adacore.com>
6886
6887 * dwarf2/read.c (handle_data_member_location): New overload.
6888 (dwarf2_add_field): Use it.
6889 (decode_locdesc): Add "computed" parameter. Update comment.
6890 * gdbtypes.c (is_dynamic_type_internal): Also look for
6891 FIELD_LOC_KIND_DWARF_BLOCK.
6892 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6893 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6894 virtual base classes.
6895 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6896 FIELD_LOC_KIND_DWARF_BLOCK.
6897
6898 2020-04-24 Tom Tromey <tromey@adacore.com>
6899
6900 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6901 * gdbtypes.c (is_dynamic_type_internal): Check
6902 TYPE_HAS_DYNAMIC_LENGTH.
6903 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6904 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6905 New macros.
6906 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6907 constant.
6908
6909 2020-04-24 Tom Tromey <tromey@adacore.com>
6910
6911 * dwarf2/read.c (struct variant_field): Rewrite.
6912 (struct variant_part_builder): New.
6913 (struct nextfield): Remove "variant" field. Add "offset".
6914 (struct field_info): Add "current_variant_part" and
6915 "variant_parts".
6916 (alloc_discriminant_info): Remove.
6917 (alloc_rust_variant): New function.
6918 (quirk_rust_enum): Update.
6919 (dwarf2_add_field): Set "offset" member. Don't handle
6920 DW_TAG_variant_part.
6921 (offset_map_type): New typedef.
6922 (convert_variant_range, create_one_variant)
6923 (create_one_variant_part, create_variant_parts)
6924 (add_variant_property): New functions.
6925 (dwarf2_attach_fields_to_type): Call add_variant_property.
6926 (read_structure_type): Don't handle DW_TAG_variant_part.
6927 (handle_variant_part, handle_variant): New functions.
6928 (handle_struct_member_die): Use them.
6929 (process_structure_scope): Don't handle variant parts.
6930 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6931 (struct discriminant_info): Remove.
6932 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6933 (struct main_type) <flag_discriminated_union>: Remove.
6934 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6935 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6936 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6937 Update.
6938 * valops.c (value_union_variant): Remove.
6939 * value.h (value_union_variant): Don't declare.
6940
6941 2020-04-24 Tom Tromey <tromey@adacore.com>
6942
6943 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6944 (ada_value_primitive_packed_val): Update.
6945 * ada-valprint.c (ada_value_print_1): Update.
6946 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6947 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6948 just an address. Use evaluate_for_locexpr_baton.
6949 (dwarf2_evaluate_property): Update.
6950 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6951 array_view.
6952 * findvar.c (default_read_var_value): Update.
6953 * gdbtypes.c (compute_variant_fields_inner)
6954 (resolve_dynamic_type_internal): Update.
6955 (resolve_dynamic_type): Change type of valaddr parameter.
6956 * gdbtypes.h (resolve_dynamic_type): Update.
6957 * valarith.c (value_subscripted_rvalue): Update.
6958 * value.c (value_from_contents_and_address): Update.
6959
6960 2020-04-24 Tom Tromey <tromey@adacore.com>
6961
6962 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6963 "push_initial_value" parameter.
6964 (dwarf2_evaluate_property): Likewise.
6965 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6966
6967 2020-04-24 Tom Tromey <tromey@adacore.com>
6968
6969 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6970 (variant::matches, compute_variant_fields_recurse)
6971 (compute_variant_fields_inner, compute_variant_fields): New
6972 functions.
6973 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6974 Use resolved_type after type is made.
6975 (operator==): Add new cases.
6976 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6977 (struct discriminant_range, struct variant, struct variant_part):
6978 New.
6979 (union dynamic_prop_data) <variant_parts, original_type>: New
6980 members.
6981 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6982 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6983 constants.
6984 * value.c (unpack_bits_as_long): Now public.
6985 * value.h (unpack_bits_as_long): Declare.
6986
6987 2020-04-24 Tom Tromey <tromey@adacore.com>
6988
6989 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6990 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6991
6992 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6993
6994 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6995
6996 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6997
6998 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6999 (remove_fork_catchpoint, post_startup_inferior)
7000 (post_attach): Move...
7001 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7002 (remove_fork_catchpoint, post_startup_inferior)
7003 (post_attach): ...here.
7004 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7005 (remove_fork_catchpoint, post_startup_inferior)
7006 (post_attach): Move...
7007 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7008 (remove_fork_catchpoint, post_startup_inferior)
7009 (post_attach): ...here.
7010
7011 2020-04-24 Tom Tromey <tromey@adacore.com>
7012
7013 * nat/windows-nat.h (struct windows_thread_info)
7014 <pc_adjusted>: New member.
7015 * windows-nat.c (windows_fetch_one_register): Check
7016 pc_adjusted.
7017 (windows_nat_target::get_windows_debug_event)
7018 (windows_nat_target::wait): Set pc_adjusted.
7019
7020 2020-04-24 Tom de Vries <tdevries@suse.de>
7021
7022 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7023 Run gdb-add-index inside temp dir.
7024
7025 2020-04-23 Tom Tromey <tromey@adacore.com>
7026
7027 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7028 in loop.
7029
7030 2020-04-23 Luis Machado <luis.machado@linaro.org>
7031
7032 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7033 get_frame_register instead of gdbarch_unwind_pc.
7034
7035 2020-04-23 Tom de Vries <tdevries@suse.de>
7036
7037 * symtab.c (lookup_global_symbol): Prefer def over decl.
7038
7039 2020-04-23 Tom de Vries <tdevries@suse.de>
7040
7041 PR symtab/25807
7042 * block.c (best_symbol, better_symbol): Promote to external.
7043 * block.h (best_symbol, better_symbol): Declare.
7044 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7045 decl.
7046
7047 2020-04-23 Tom Tromey <tromey@adacore.com>
7048
7049 PR ada/25837:
7050 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7051 "const char *", not a "const std::string &".
7052 <name_and_matcher::operator==>: Update.
7053 * unittests/lookup_name_info-selftests.c: Change type of
7054 "result".
7055
7056 2020-04-23 Tom Tromey <tom@tromey.com>
7057
7058 * inferior.h (iterate_over_inferiors): Don't declare.
7059 * inferior.c (iterate_over_inferiors): Remove.
7060 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7061 Remove.
7062 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7063 use iterate_over_inferiors.
7064 (darwin_resume_inferior_it)
7065 (struct resume_inferior_threads_param)
7066 (darwin_resume_inferior_threads_it): Remove.
7067 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7068
7069 2020-04-23 Tom de Vries <tdevries@suse.de>
7070
7071 * blockframe.c (find_pc_partial_function): Use
7072 find_pc_sect_compunit_symtab rather than
7073 objfile->sf->qf->find_pc_sect_compunit_symtab.
7074
7075 2020-04-22 Tom de Vries <tdevries@suse.de>
7076
7077 PR symtab/25764
7078 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7079 in psymtabs.
7080
7081 2020-04-22 Tom de Vries <tdevries@suse.de>
7082
7083 PR symtab/25801
7084 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7085 symtabs.
7086
7087 2020-04-22 Tom de Vries <tdevries@suse.de>
7088
7089 PR symtab/25700
7090 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7091 CU if already created.
7092
7093 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7094
7095 * infrun.c (displaced_step_fixup): Switch to the event_thread
7096 before calling displaced_step_restore, not after.
7097
7098 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7099
7100 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7101 its inferior is not recorded by us.
7102 (record_btrace_target_open): Replace call to
7103 all_non_exited_threads () with call to current_inferior
7104 ()->non_exited_threads ().
7105 (record_btrace_target::stop_recording): Likewise.
7106 (record_btrace_target::close): Likewise.
7107 (record_btrace_target::wait): Likewise.
7108 (record_btrace_target::record_stop_replaying): Likewise.
7109
7110 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7111
7112 * btrace.c (btrace_enable): Throw an error on double enables and
7113 when enabling recording fails.
7114 (btrace_disable): Throw an error if the thread is not recorded.
7115
7116 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7117
7118 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7119 request if we do not have a thread_info.
7120
7121 2020-04-21 Tom de Vries <tdevries@suse.de>
7122
7123 PR gdb/25471
7124 * thread.c
7125 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7126 exception in get_frame_id.
7127
7128 2020-04-20 Tom Tromey <tromey@adacore.com>
7129
7130 * python/python.c (struct gdbpy_event): Mark move constructor as
7131 noexcept.
7132 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7133 constructor as noexcept.
7134 * completer.h (struct completion_result): Mark move constructor as
7135 noexcept.
7136 * completer.c (completion_result::completion_result): Use
7137 initialization style. Don't call reset_match_list.
7138
7139 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7140
7141 * MAINTAINERS (Write After Approval): Add myself.
7142
7143 2020-04-18 Tom Tromey <tom@tromey.com>
7144
7145 * windows-tdep.c (init_w32_command_list)
7146 (w32_prefix_command_valid): Restore.
7147 (_initialize_windows_tdep): Call init_w32_command_list.
7148
7149 2020-04-18 Tom Tromey <tom@tromey.com>
7150
7151 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7152 * value.c (value_fn_field): Update.
7153 * valops.c (find_function_in_inferior)
7154 (value_allocate_space_in_inferior): Update.
7155 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7156 Update.
7157 * tui/tui-source.c (tui_source_window::set_contents): Update.
7158 * symtab.c (lookup_global_or_static_symbol)
7159 (find_function_start_sal_1, skip_prologue_sal)
7160 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7161 * symmisc.c (dump_msymbols, dump_symtab_1)
7162 (maintenance_print_one_line_table): Update.
7163 * symfile.c (init_entry_point_info, section_is_mapped)
7164 (list_overlays_command, simple_read_overlay_table)
7165 (simple_overlay_update_1): Update.
7166 * stap-probe.c (handle_stap_probe): Update.
7167 * stabsread.c (dbx_init_float_type, define_symbol)
7168 (read_one_struct_field, read_enum_type, read_range_type): Update.
7169 * source.c (info_line_command): Update.
7170 * python/python.c (gdbpy_source_objfile_script)
7171 (gdbpy_execute_objfile_script): Update.
7172 * python/py-type.c (save_objfile_types): Update.
7173 * python/py-objfile.c (py_free_objfile): Update.
7174 * python/py-inferior.c (python_new_objfile): Update.
7175 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7176 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7177 (maintenance_check_psymtabs): Update.
7178 * printcmd.c (info_address_command): Update.
7179 * objfiles.h (struct objfile) <arch>: New method, from
7180 get_objfile_arch.
7181 (get_objfile_arch): Don't declare.
7182 * objfiles.c (get_objfile_arch): Remove.
7183 (filter_overlapping_sections): Update.
7184 * minsyms.c (msymbol_is_function): Update.
7185 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7186 (output_nondebug_symbol): Update.
7187 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7188 (mdebug_expand_psymtab): Update.
7189 * machoread.c (macho_add_oso_symfile): Update.
7190 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7191 Update.
7192 * linux-fork.c (checkpoint_command): Update.
7193 * linespec.c (convert_linespec_to_sals): Update.
7194 * jit.c (finalize_symtab): Update.
7195 * infrun.c (insert_exception_resume_from_probe): Update.
7196 * ia64-tdep.c (ia64_find_unwind_table): Update.
7197 * hppa-tdep.c (internalize_unwinds): Update.
7198 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7199 Update.
7200 * gcore.c (call_target_sbrk): Update.
7201 * elfread.c (record_minimal_symbol, elf_symtab_read)
7202 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7203 (elf_gnu_ifunc_resolve_by_got): Update.
7204 * dwarf2/read.c (create_addrmap_from_index)
7205 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7206 (read_debug_names_from_section)
7207 (process_psymtab_comp_unit_reader, add_partial_symbol)
7208 (add_partial_subprogram, process_full_comp_unit)
7209 (read_file_scope, read_func_scope, read_lexical_block_scope)
7210 (read_call_site_scope, dwarf2_ranges_read)
7211 (dwarf2_record_block_ranges, dwarf2_add_field)
7212 (mark_common_block_symbol_computed, read_tag_pointer_type)
7213 (read_tag_string_type, dwarf2_init_float_type)
7214 (dwarf2_init_complex_target_type, read_base_type)
7215 (partial_die_info::read, partial_die_info::read)
7216 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7217 (dwarf2_fetch_die_loc_sect_off): Update.
7218 * dwarf2/loc.c (dwarf2_find_location_expression)
7219 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7220 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7221 (dwarf2_loc_desc_get_symbol_read_needs)
7222 (locexpr_describe_location_piece, locexpr_describe_location_1)
7223 (loclist_describe_location): Update.
7224 * dwarf2/index-write.c (write_debug_names): Update.
7225 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7226 * dtrace-probe.c (dtrace_process_dof): Update.
7227 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7228 (process_one_symbol): Update.
7229 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7230 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7231 (coff_read_enum_type): Update.
7232 * cli/cli-cmds.c (edit_command, list_command): Update.
7233 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7234 * breakpoint.c (create_overlay_event_breakpoint)
7235 (create_longjmp_master_breakpoint)
7236 (create_std_terminate_master_breakpoint)
7237 (create_exception_master_breakpoint, get_sal_arch): Update.
7238 * block.c (block_gdbarch): Update.
7239 * annotate.c (annotate_source_line): Update.
7240
7241 2020-04-17 Tom Tromey <tromey@adacore.com>
7242
7243 * auto-load.c (show_auto_load_cmd): Remove.
7244 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7245 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7246 (maintenance_print_arc_command): Remove.
7247 * tui/tui-win.c (tui_command): Remove.
7248 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7249 * tui/tui-layout.c (tui_layout_command): Remove.
7250 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7251 * python/python.c (user_set_python, user_show_python): Remove.
7252 (_initialize_python): Use add_basic_prefix_cmd,
7253 add_show_prefix_cmd.
7254 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7255 (install_gdb_commands): Use add_basic_prefix_cmd,
7256 add_show_prefix_cmd.
7257 (info_guile_command): Remove.
7258 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7259 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7260 add_show_prefix_cmd.
7261 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7262 Remove do_set and do_show parameters.
7263 * cli/cli-style.c (set_style, show_style): Remove.
7264 (_initialize_cli_style): Use add_basic_prefix_cmd,
7265 add_show_prefix_cmd.
7266 (cli_style_option::add_setshow_commands): Remove do_set and
7267 do_show parameters.
7268 (cli_style_option::add_setshow_commands): Use
7269 add_basic_prefix_cmd, add_show_prefix_cmd.
7270 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7271 (set_style_name): Remove.
7272 * cli/cli-dump.c (dump_command, append_command): Remove.
7273 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7274 (tekhex_dump_command, binary_dump_command)
7275 (binary_append_command): Remove.
7276 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7277 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7278 (init_w32_command_list): Remove; move into ...
7279 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7280 * valprint.c (set_print, show_print, set_print_raw)
7281 (show_print_raw): Remove.
7282 (_initialize_valprint): Use add_basic_prefix_cmd,
7283 add_show_prefix_cmd.
7284 * typeprint.c (set_print_type, show_print_type): Remove.
7285 (_initialize_typeprint): Use add_basic_prefix_cmd,
7286 add_show_prefix_cmd.
7287 * record.c (set_record_command, show_record_command): Remove.
7288 (_initialize_record): Use add_basic_prefix_cmd,
7289 add_show_prefix_cmd.
7290 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7291 add_show_prefix_cmd.
7292 (info_command, show_command, set_debug, show_debug): Remove.
7293 * top.h (set_history, show_history): Don't declare.
7294 * top.c (set_history, show_history): Remove.
7295 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7296 (unset_tdesc_cmd): Remove.
7297 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7298 add_show_prefix_cmd.
7299 * symtab.c (info_module_command): Remove.
7300 (_initialize_symtab): Use add_basic_prefix_cmd.
7301 * symfile.c (overlay_command): Remove.
7302 (_initialize_symfile): Use add_basic_prefix_cmd.
7303 * sparc64-tdep.c (info_adi_command): Remove.
7304 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7305 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7306 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7307 add_show_prefix_cmd.
7308 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7309 (_initialize_serial): Use add_basic_prefix_cmd,
7310 add_show_prefix_cmd.
7311 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7312 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7313 add_show_prefix_cmd.
7314 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7315 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7316 add_show_prefix_cmd.
7317 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7318 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7319 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7320 add_show_prefix_cmd.
7321 * remote.c (remote_command, set_remote_cmd): Remove.
7322 (_initialize_remote): Use add_basic_prefix_cmd.
7323 * record-full.c (set_record_full_command)
7324 (show_record_full_command): Remove.
7325 (_initialize_record_full): Use add_basic_prefix_cmd,
7326 add_show_prefix_cmd.
7327 * record-btrace.c (cmd_set_record_btrace)
7328 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7329 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7330 (cmd_show_record_btrace_pt): Remove.
7331 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7332 add_show_prefix_cmd.
7333 * ravenscar-thread.c (set_ravenscar_command)
7334 (show_ravenscar_command): Remove.
7335 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7336 add_show_prefix_cmd.
7337 * mips-tdep.c (show_mips_command, set_mips_command)
7338 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7339 add_show_prefix_cmd.
7340 * maint.c (maintenance_command, maintenance_info_command)
7341 (maintenance_check_command, maintenance_print_command)
7342 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7343 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7344 add_show_prefix_cmd.
7345 (show_per_command_cmd): Remove.
7346 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7347 Remove.
7348 (maintenance_show_test_settings_cmd): Remove.
7349 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7350 add_show_prefix_cmd.
7351 * maint-test-options.c (maintenance_test_options_command):
7352 Remove.
7353 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7354 * macrocmd.c (macro_command): Remove
7355 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7356 * language.c (set_check, show_check): Remove.
7357 (_initialize_language): Use add_basic_prefix_cmd,
7358 add_show_prefix_cmd.
7359 * infcmd.c (unset_command): Remove.
7360 (_initialize_infcmd): Use add_basic_prefix_cmd.
7361 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7362 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7363 add_show_prefix_cmd.
7364 * go32-nat.c (go32_info_dos_command): Remove.
7365 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7366 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7367 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7368 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7369 (_initialize_frame): Use add_basic_prefix_cmd,
7370 add_show_prefix_cmd.
7371 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7372 (_initialize_dcache): Use add_basic_prefix_cmd,
7373 add_show_prefix_cmd.
7374 * cp-support.c (maint_cplus_command): Remove.
7375 (_initialize_cp_support): Use add_basic_prefix_cmd.
7376 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7377 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7378 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7379 add_basic_prefix_cmd, add_show_prefix_cmd.
7380 * breakpoint.c (save_command): Remove.
7381 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7382 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7383 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7384 add_show_prefix_cmd.
7385 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7386 (set_ada_command, show_ada_command): Remove.
7387 (_initialize_ada_language): Use add_basic_prefix_cmd,
7388 add_show_prefix_cmd.
7389 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7390
7391 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7392
7393 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7394 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7395
7396 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7397
7398 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7399 warning messages.
7400
7401 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7402
7403 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7404 import table is not at beginning of .idata section.
7405
7406 2020-04-16 Pedro Alves <palves@redhat.com>
7407
7408 * inferior.c (delete_inferior): Use delete operator directly
7409 instead of delete_program_space.
7410 * progspace.c (add_program_space): New, factored out from
7411 program_space::program_space.
7412 (remove_program_space): New, factored out from
7413 delete_program_space.
7414 (program_space::program_space): Remove intro comment. Rewrite.
7415 (program_space::~program_space): Remove intro comment. Call
7416 remove_program_space.
7417 (delete_program_space): Delete.
7418 * progspace.h (program_space::program_space): Make explicit. Move
7419 intro comment here, adjusted.
7420 (program_space::~program_space): Move intro comment here,
7421 adjusted.
7422 (delete_program_space): Remove.
7423
7424 2020-04-16 Tom Tromey <tromey@adacore.com>
7425
7426 * windows-nat.c (windows_nat::handle_access_violation): New
7427 function.
7428 * nat/windows-nat.h (handle_access_violation): Declare.
7429 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7430 windows-nat.c. Call handle_access_violation.
7431
7432 2020-04-16 Tom de Vries <tdevries@suse.de>
7433
7434 PR symtab/25791
7435 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7436 CUs without psymtab.
7437
7438 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7439
7440 * python/python.c (do_start_initialization): Don't call
7441 PyEval_InitThreads for Python 3.9 and beyond.
7442
7443 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7444
7445 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7446 thread functions.
7447 (obsd_nat_target::wait): Likewise.
7448
7449 2020-04-15 Tom Tromey <tromey@adacore.com>
7450
7451 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7452 (DEBUG_EXCEPT): Use debug_printf.
7453
7454 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7455
7456 * completer.c (class completion_tracker::completion_hash_entry)
7457 <hash_name>: New member function.
7458 (completion_tracker::discard_completions): New callback to hash a
7459 completion_hash_entry, pass this to htab_create_alloc.
7460
7461 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7462
7463 * windows-nat.c (windows_make_so): Warn rather than stopping with
7464 an error if realpath() fails.
7465
7466 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7467
7468 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7469 (nbsd_nat_target::info_proc): Add do_status.
7470
7471 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7472 Tom de Vries <tdevries@suse.de>
7473
7474 PR symtab/25718
7475 * psympriv.h (struct partial_symtab::read_symtab)
7476 (struct partial_symtab::expand_psymtab)
7477 (struct partial_symtab::read_dependencies): Update comments.
7478 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7479 read_symtab for includer.
7480 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7481 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7482 (struct dwarf2_include_psymtab::m_readin): Remove.
7483 (struct dwarf2_include_psymtab::includer): New member function.
7484 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7485
7486 2020-04-14 Tom de Vries <tdevries@suse.de>
7487
7488 PR symtab/25720
7489 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7490 with NULL symbol_matcher and lookup_name.
7491 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7492 and lookup_name.
7493 * dwarf2/read.c (dw2_expand_symtabs_matching)
7494 (dw2_debug_names_expand_symtabs_matching): Same.
7495 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7496 Make lookup_name a pointer. Update comment.
7497 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7498 lookup_name being a pointer.
7499 * symfile.c (expand_symtabs_matching): Same.
7500 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7501 * linespec.c (iterate_over_all_matching_symtabs): Same.
7502
7503 2020-04-13 Tom Tromey <tom@tromey.com>
7504
7505 * run-on-main-thread.c: Update include.
7506 * unittests/main-thread-selftests.c: Update include.
7507 * tui/tui-win.c: Update include.
7508 * tui/tui-io.c: Update include.
7509 * tui/tui-interp.c: Update include.
7510 * tui/tui-hooks.c: Update include.
7511 * top.h: Update include.
7512 * top.c: Update include.
7513 * ser-base.c: Update include.
7514 * remote.c: Update include.
7515 * remote-notif.c: Update include.
7516 * remote-fileio.c: Update include.
7517 * record-full.c: Update include.
7518 * record-btrace.c: Update include.
7519 * python/python.c: Update include.
7520 * posix-hdep.c: Update include.
7521 * mingw-hdep.c: Update include.
7522 * mi/mi-main.c: Update include.
7523 * mi/mi-interp.c: Update include.
7524 * main.c: Update include.
7525 * linux-nat.c: Update include.
7526 * interps.c: Update include.
7527 * infrun.c: Update include.
7528 * inf-loop.c: Update include.
7529 * event-top.c: Update include.
7530 * event-loop.c: Move to ../gdbsupport/.
7531 * event-loop.h: Move to ../gdbsupport/.
7532 * async-event.h: Update include.
7533 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7534
7535 2020-04-13 Tom Tromey <tom@tromey.com>
7536
7537 * tui/tui-win.c: Include async-event.h.
7538 * remote.c: Include async-event.h.
7539 * remote-notif.c: Include async-event.h.
7540 * record-full.c: Include async-event.h.
7541 * record-btrace.c: Include async-event.h.
7542 * infrun.c: Include async-event.h.
7543 * event-top.c: Include async-event.h.
7544 * event-loop.h: Move some declarations to async-event.h.
7545 * event-loop.c: Don't include ser-event.h or top.h. Move some
7546 code to async-event.c.
7547 * async-event.h: New file.
7548 * async-event.c: New file.
7549 * Makefile.in (COMMON_SFILES): Add async-event.c.
7550 (HFILES_NO_SRCDIR): Add async-event.h.
7551
7552 2020-04-13 Tom Tromey <tom@tromey.com>
7553
7554 * utils.c (flush_streams): New function.
7555 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7556
7557 2020-04-13 Tom Tromey <tom@tromey.com>
7558
7559 * event-loop.c (handle_file_event): Use warning, not
7560 printf_unfiltered.
7561
7562 2020-04-13 Tom Tromey <tom@tromey.com>
7563
7564 * event-loop.c: Include <chrono>.
7565
7566 2020-04-13 Tom Tromey <tom@tromey.com>
7567
7568 * gdb_select.h: Move to ../gdbsupport/.
7569 * event-loop.c: Update include path.
7570 * top.c: Update include path.
7571 * ser-base.c: Update include path.
7572 * ui-file.c: Update include path.
7573 * ser-tcp.c: Update include path.
7574 * guile/scm-ports.c: Update include path.
7575 * posix-hdep.c: Update include path.
7576 * ser-unix.c: Update include path.
7577 * gdb_usleep.c: Update include path.
7578 * mingw-hdep.c: Update include path.
7579 * inflow.c: Update include path.
7580 * infrun.c: Update include path.
7581 * event-top.c: Update include path.
7582
7583 2020-04-13 Tom Tromey <tom@tromey.com>
7584
7585 * configure: Rebuild.
7586 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7587
7588 2020-04-13 Tom Tromey <tom@tromey.com>
7589
7590 * event-loop.h (start_event_loop): Don't declare.
7591 * event-loop.c (start_event_loop): Move...
7592 * main.c (start_event_loop): ...here. Now static.
7593
7594 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7595
7596 * MAINTAINERS: Update my email address.
7597
7598 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7599
7600 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7601 IP_ALL.
7602
7603 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7604
7605 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7606 (nbsd_nat_target::info_proc): Add do_cmdline.
7607
7608 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7609
7610 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7611 (nbsd_nat_target::info_proc): Add do_cwd.
7612
7613 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7614
7615 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7616
7617 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7618
7619 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7620 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7621 (nbsd_nat_target::info_proc): New functions.
7622 * nbsd-nat.c (kinfo_get_vmmap): New function.
7623 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7624 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7625 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7626 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7627 functions.
7628 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7629 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7630 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7631 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7632 (KINFO_VME_FLAG_GROWS_DOWN): New.
7633
7634 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7635
7636 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7637 bit shift.
7638
7639 2020-04-10 Tom Tromey <tromey@adacore.com>
7640
7641 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7642
7643 2020-04-10 Tom Tromey <tromey@adacore.com>
7644
7645 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7646 separate debug files.
7647
7648 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7649
7650 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7651 Move to...
7652 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7653 ... here.
7654 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7655 Check for STATUS_WX86_BREAKPOINT.
7656 (windows_nat_target::wait): Same.
7657
7658 2020-04-10 Tom de Vries <tdevries@suse.de>
7659
7660 PR cli/25808
7661 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7662
7663 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7664
7665 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7666 (Write After Approval): Remove Tom de Vries.
7667
7668 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7669
7670 revert partially:
7671 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7672
7673 * buildsym.c (record_line): Fix undefined behavior and preserve
7674 lines at eof.
7675
7676 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7677
7678 * auxv.h (svr4_auxv_parse): New.
7679 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7680 and generic_auxv_parse.
7681 (svr4_auxv_parse): Add.
7682 * obsd-tdep.c: Include "auxv.h".
7683 (obsd_auxv_parse): Remove.
7684 (obsd_init_abi): Remove comment.
7685 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7686 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7687 * nbsd-tdep.c: Include "auxv.h".
7688 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7689
7690 2020-04-08 Tom Tromey <tromey@adacore.com>
7691
7692 * nat/windows-nat.h (last_wait_event): Don't declare.
7693 (wait_for_debug_event): Update comment.
7694 * nat/windows-nat.c (last_wait_event): Now static.
7695
7696 2020-04-08 Tom Tromey <tromey@adacore.com>
7697
7698 * windows-nat.c (wait_for_debug_event): Move to
7699 nat/windows-nat.c.
7700 * nat/windows-nat.h (wait_for_debug_event): Declare.
7701 * nat/windows-nat.c (wait_for_debug_event): Move from
7702 windows-nat.c. No longer static.
7703
7704 2020-04-08 Tom Tromey <tromey@adacore.com>
7705
7706 * windows-nat.c (get_windows_debug_event): Use
7707 fetch_pending_stop.
7708 * nat/windows-nat.h (fetch_pending_stop): Declare.
7709 * nat/windows-nat.c (fetch_pending_stop): New function.
7710
7711 2020-04-08 Tom Tromey <tromey@adacore.com>
7712
7713 * windows-nat.c (windows_continue): Use matching_pending_stop and
7714 continue_last_debug_event.
7715 * nat/windows-nat.h (matching_pending_stop)
7716 (continue_last_debug_event): Declare.
7717 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7718 (matching_pending_stop, continue_last_debug_event): New
7719 functions.
7720
7721 2020-04-08 Tom Tromey <tromey@adacore.com>
7722
7723 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7724 (handle_exception_result): Move to nat/windows-nat.h.
7725 (DEBUG_EXCEPTION_SIMPLE): Remove.
7726 (windows_nat::handle_ms_vc_exception): New function.
7727 (handle_exception): Move to nat/windows-nat.c.
7728 (get_windows_debug_event): Update.
7729 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7730 nat/windows-nat.c.
7731 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7732 (handle_exception_result): Move from windows-nat.c.
7733 (handle_exception): Declare.
7734 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7735 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7736 windows-nat.c.
7737
7738 2020-04-08 Tom Tromey <tromey@adacore.com>
7739
7740 * windows-nat.c (exception_count, event_count): Remove.
7741 (handle_exception, get_windows_debug_event)
7742 (do_initial_windows_stuff): Update.
7743
7744 2020-04-08 Tom Tromey <tromey@adacore.com>
7745
7746 * windows-nat.c (windows_nat::handle_load_dll)
7747 (windows_nat::handle_unload_dll): Rename. No longer static.
7748 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7749 Declare.
7750
7751 2020-04-08 Tom Tromey <tromey@adacore.com>
7752
7753 * complaints.h (stop_whining): Declare at top-level.
7754 (complaint): Don't declare stop_whining.
7755
7756 2020-04-08 Tom Tromey <tromey@adacore.com>
7757
7758 * windows-nat.c (windows_nat::handle_output_debug_string):
7759 Rename. No longer static.
7760 * nat/windows-nat.h (handle_output_debug_string): Declare.
7761
7762 2020-04-08 Tom Tromey <tromey@adacore.com>
7763
7764 * windows-nat.c (current_process_handle, current_process_id)
7765 (main_thread_id, last_sig, current_event, last_wait_event)
7766 (current_windows_thread, desired_stop_thread_id, pending_stops)
7767 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7768 (display_selectors, fake_create_process)
7769 (get_windows_debug_event): Update.
7770 * nat/windows-nat.h (current_process_handle, current_process_id)
7771 (main_thread_id, last_sig, current_event, last_wait_event)
7772 (current_windows_thread, desired_stop_thread_id, pending_stops)
7773 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7774 * nat/windows-nat.c (current_process_handle, current_process_id)
7775 (main_thread_id, last_sig, current_event, last_wait_event)
7776 (current_windows_thread, desired_stop_thread_id, pending_stops)
7777 (siginfo_er): New globals. Move from windows-nat.c.
7778
7779 2020-04-08 Tom Tromey <tromey@adacore.com>
7780
7781 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7782 (handle_load_dll): Update.
7783 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7784
7785 2020-04-08 Tom Tromey <tromey@adacore.com>
7786
7787 * windows-nat.c (enum thread_disposition_type): Move to
7788 nat/windows-nat.h.
7789 (windows_nat::thread_rec): Rename from thread_rec. No longer
7790 static.
7791 (windows_add_thread, windows_nat_target::fetch_registers)
7792 (windows_nat_target::store_registers, handle_exception)
7793 (windows_nat_target::resume, get_windows_debug_event)
7794 (windows_nat_target::get_tib_address)
7795 (windows_nat_target::thread_name)
7796 (windows_nat_target::thread_alive): Update.
7797 * nat/windows-nat.h (enum thread_disposition_type): Move from
7798 windows-nat.c.
7799 (thread_rec): Declare.
7800
7801 2020-04-08 Tom Tromey <tromey@adacore.com>
7802
7803 * windows-nat.c: Add "using namespace".
7804 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7805 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7806
7807 2020-04-08 Tom Tromey <tromey@adacore.com>
7808
7809 * nat/windows-nat.h (struct windows_thread_info): Declare
7810 destructor.
7811 * nat/windows-nat.c (~windows_thread_info): New.
7812
7813 2020-04-08 Tom Tromey <tromey@adacore.com>
7814
7815 PR gdb/22992
7816 * windows-nat.c (current_event): Update comment.
7817 (last_wait_event, desired_stop_thread_id): New globals.
7818 (struct pending_stop): New.
7819 (pending_stops): New global.
7820 (windows_nat_target) <stopped_by_sw_breakpoint>
7821 <supports_stopped_by_sw_breakpoint>: New methods.
7822 (windows_fetch_one_register): Add assertions. Adjust PC.
7823 (windows_continue): Handle pending stops. Suspend other threads
7824 when stepping. Use last_wait_event
7825 (wait_for_debug_event): New function.
7826 (get_windows_debug_event): Use wait_for_debug_event. Handle
7827 pending stops. Queue spurious stops.
7828 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7829 (windows_nat_target::kill): Use wait_for_debug_event.
7830 * nat/windows-nat.h (struct windows_thread_info)
7831 <stopped_at_software_breakpoint>: New field.
7832 * nat/windows-nat.c (windows_thread_info::resume): Clear
7833 stopped_at_software_breakpoint.
7834
7835 2020-04-08 Tom Tromey <tromey@adacore.com>
7836
7837 * windows-nat.c (enum thread_disposition_type): New.
7838 (thread_rec): Replace "get_context" parameter with "disposition";
7839 change type.
7840 (windows_add_thread, windows_nat_target::fetch_registers)
7841 (windows_nat_target::store_registers, handle_exception)
7842 (windows_nat_target::resume, get_windows_debug_event)
7843 (windows_nat_target::get_tib_address)
7844 (windows_nat_target::thread_name)
7845 (windows_nat_target::thread_alive): Update.
7846
7847 2020-04-08 Tom Tromey <tromey@adacore.com>
7848
7849 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7850 (windows_continue): Use windows_continue::resume.
7851 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7852 resume>: Declare new methods.
7853 * nat/windows-nat.c: New file.
7854 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7855
7856 2020-04-08 Tom Tromey <tromey@adacore.com>
7857
7858 * windows-nat.c (windows_add_thread, windows_delete_thread)
7859 (windows_nat_target::fetch_registers)
7860 (windows_nat_target::store_registers, fake_create_process)
7861 (windows_nat_target::resume, windows_nat_target::resume)
7862 (get_windows_debug_event, windows_nat_target::wait)
7863 (windows_nat_target::pid_to_str)
7864 (windows_nat_target::get_tib_address)
7865 (windows_nat_target::get_ada_task_ptid)
7866 (windows_nat_target::thread_name)
7867 (windows_nat_target::thread_alive): Use lwp, not tid.
7868
7869 2020-04-08 Tom Tromey <tromey@adacore.com>
7870
7871 * windows-nat.c (handle_exception)
7872 (windows_nat_target::thread_name): Update.
7873 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7874 <name>: Now unique_xmalloc_ptr.
7875
7876 2020-04-08 Tom Tromey <tromey@adacore.com>
7877
7878 * windows-nat.c (thread_rec)
7879 (windows_nat_target::fetch_registers): Update.
7880 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7881 Update comment.
7882 <debug_registers_changed, reload_context>: Now bool.
7883
7884 2020-04-08 Tom Tromey <tromey@adacore.com>
7885
7886 * windows-nat.c (windows_add_thread): Use new.
7887 (windows_init_thread_list, windows_delete_thread): Use delete.
7888 (get_windows_debug_event): Update.
7889 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7890 destructor, and initializers.
7891
7892 2020-04-08 Tom Tromey <tromey@adacore.com>
7893
7894 * windows-nat.c (struct windows_thread_info): Remove.
7895 * nat/windows-nat.h: New file.
7896
7897 2020-04-08 Tom Tromey <tromey@adacore.com>
7898
7899 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7900 (thread_rec, windows_add_thread, windows_delete_thread)
7901 (windows_continue): Update.
7902
7903 2020-04-08 Tom Tromey <tromey@adacore.com>
7904
7905 * windows-nat.c (struct windows_thread_info): Remove typedef.
7906 (thread_head): Remove.
7907 (thread_list): New global.
7908 (thread_rec, windows_add_thread, windows_init_thread_list)
7909 (windows_delete_thread, windows_continue): Update.
7910
7911 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7912
7913 * windows-tdep.h (windows_init_abi): Add comment.
7914 (cygwin_init_abi): New declaration.
7915 * windows-tdep.c: Split signal enumeration in two, one for
7916 Windows and one for Cygwin.
7917 (windows_gdb_signal_to_target): Only deal with signal of the
7918 Windows OS ABI.
7919 (cygwin_gdb_signal_to_target): New function.
7920 (windows_init_abi): Rename to windows_init_abi_common, don't set
7921 gdb_signal_to_target gdbarch method. Add new new function with
7922 this name.
7923 (cygwin_init_abi): New function.
7924 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7925 comment. Don't call windows_init_abi.
7926 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7927 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7928 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7929 i386_windows_init_abi_common, don't call windows_init_abi. Add
7930 a new function of this name.
7931 (i386_cygwin_init_abi): New function.
7932 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7933 OS ABI Cygwin.
7934
7935 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7936
7937 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7938 parameter.c.
7939 (dwarf2_read_gdb_index): Update.
7940
7941 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7942
7943 * nbsd-tdep.c: Include "objfiles.h".
7944 (nbsd_skip_solib_resolver): New.
7945 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7946
7947 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7948
7949 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7950 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7951 with DW_LLE_base_addressx are being emitted in DWARFv5.
7952 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7953 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7954 unsigned integer.
7955
7956 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7957
7958 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7959 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7960 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7961 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7962 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7963 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7964 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7965
7966
7967 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7968
7969 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7970 (read_loclist_index): New function definition.
7971 (lookup_loclist_base): New function definition.
7972 (read_loclist_header): New function definition.
7973 (dwarf2_cu): Add loclist_base and loclist_header field.
7974 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7975 (read_full_die_1): Read the value of DW_AT_loclists_base.
7976 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7977 (read_attribute_value): Handle DW_FORM_loclistx.
7978 (skip_one_die): Handle DW_FORM_loclistx.
7979 (loclist_header): New structure declaration.
7980 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7981
7982 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7983
7984 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7985 constructor. Remove `addr` parameter from other constructor and
7986 add `per_cu` parameter.
7987 * dwarf2/read.c (create_partial_symtab): Update.
7988
7989 2020-04-07 Tom de Vries <tdevries@suse.de>
7990
7991 PR symtab/25796
7992 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7993 (partial_die_info::fixup): Inherit has_const_value.
7994
7995 2020-04-07 Tom de Vries <tdevries@suse.de>
7996
7997 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7998 symbols without address.
7999
8000 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8001
8002 * nbsd-nat.h (struct thread_info): Add forward declaration.
8003 (nbsd_nat_target::thread_alive): Add.
8004 (nbsd_nat_target::thread_name): Likewise.
8005 (nbsd_nat_target::update_thread_list): Likewise.
8006 (update_thread_list::post_attach): Likewise.
8007 (post_attach::pid_to_str): Likewise.
8008 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8009 (nbsd_thread_lister): Add.
8010 (nbsd_nat_target::thread_alive): Likewise.
8011 (nbsd_nat_target::thread_name): Likewise.
8012 (nbsd_add_threads): Likewise.
8013 (update_thread_list::post_attach): Likewise.
8014 (nbsd_nat_target::update_thread_list): Likewise.
8015 (post_attach::pid_to_str): Likewise.
8016
8017 2020-04-06 Tom Tromey <tromey@adacore.com>
8018
8019 * ada-valprint.c (print_variant_part): Extract the variant field.
8020 (print_field_values): Use the field as the outer value when
8021 recursing.
8022
8023 2020-04-06 Tom Tromey <tromey@adacore.com>
8024
8025 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8026 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8027 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8028 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8029 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8030
8031 2020-04-06 Tom Tromey <tromey@adacore.com>
8032
8033 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8034 TYPE_CODE_ERROR.
8035
8036 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8037
8038 * nbsd-tdep.c: Include "gdbarch.h".
8039 Define enum with NetBSD signal numbers.
8040 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8041 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8042 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8043 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8044 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8045 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8046 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8047 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8048 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8049 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8050 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8051 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8052
8053 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8054
8055 PR gdb/25325
8056 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8057
8058 2020-04-03 Tom Tromey <tromey@adacore.com>
8059
8060 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8061 Read constant block.
8062
8063 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8064
8065 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8066 (gdb_bfd_get_full_section_contents): New declaration.
8067 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8068 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8069 gdb_bfd_get_full_section_contents.
8070
8071 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8072
8073 * exec.c (build_section_table): Replace internal_error with
8074 gdb_assert.
8075 (section_table_xfer_memory_partial): Likewise.
8076 * mdebugread.c (parse_partial_symbols): Likewise.
8077 * psymtab.c (lookup_partial_symbol): Likewise.
8078 * utils.c (wrap_here): Likewise.
8079
8080 2020-04-02 Tom Tromey <tromey@adacore.com>
8081
8082 * f-lang.c (build_fortran_types): Use arch_type to initialize
8083 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8084
8085 2020-04-02 Tom Tromey <tromey@adacore.com>
8086
8087 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8088 of attributes.
8089
8090 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8091 Bernd Edlinger <bernd.edlinger@hotmail.de>
8092 Tom Tromey <tromey@adacore.com>
8093
8094 * buildsym.c (buildsym_compunit::record_line): Remove
8095 deduplication code.
8096
8097 2020-04-02 Tom de Vries <tdevries@suse.de>
8098
8099 PR ada/24671
8100 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8101
8102 2020-04-02 Tom de Vries <tdevries@suse.de>
8103
8104 * dwarf2/read.c (dwarf2_gdb_index_functions,
8105 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8106 NULL.
8107 * psymtab.c (psym_lookup_global_symbol_language): New function.
8108 (psym_functions): Init psym_lookup_global_symbol_language with
8109 psym_lookup_global_symbol_language.
8110 * symfile-debug.c (debug_sym_quick_functions): Init
8111 lookup_global_symbol_language with NULL.
8112 * symfile.c (set_initial_language): Remove fixme comment.
8113 * symfile.h (struct quick_symbol_functions): Add
8114 lookup_global_symbol_language.
8115 * symtab.c (find_quick_global_symbol_language): New function.
8116 (find_main_name): Use find_quick_global_symbol_language.
8117
8118 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8119
8120 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8121
8122 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8123
8124 * buildsym.c (record_line): Fix undefined behavior and preserve
8125 lines at eof.
8126
8127 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8128
8129 * buildsym.c (record_line): Fix the resizing condition.
8130
8131 2020-04-01 Tom Tromey <tom@tromey.com>
8132
8133 * value.h (value_literal_complex): Add comment.
8134 * valops.c (value_literal_complex): Refer to value.h.
8135
8136 2020-04-01 Tom Tromey <tom@tromey.com>
8137
8138 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8139 (scalar_type): New rule, from typebase.
8140 (typebase): Use scalar_type. Recognize complex types.
8141 (field_name): Handle FLOAT_KEYWORD.
8142 (ident_tokens): Add _Complex and __complex__.
8143
8144 2020-04-01 Tom Tromey <tom@tromey.com>
8145
8146 PR exp/25299:
8147 * valarith.c (promotion_type, complex_binop): New functions.
8148 (scalar_binop): Handle complex numbers. Use promotion_type.
8149 (value_pos, value_neg, value_complement): Handle complex numbers.
8150
8151 2020-04-01 Tom Tromey <tom@tromey.com>
8152
8153 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8154 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8155 (parse_number): Handle complex numbers.
8156
8157 2020-04-01 Tom Tromey <tom@tromey.com>
8158
8159 * c-valprint.c (c_decorations): Change complex suffix to "i".
8160
8161 2020-04-01 Tom Tromey <tom@tromey.com>
8162
8163 * valprint.c (generic_value_print_complex): Use accessors.
8164 * value.h (value_real_part, value_imaginary_part): Declare.
8165 * valops.c (value_real_part, value_imaginary_part): New
8166 functions.
8167 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8168
8169 2020-04-01 Tom Tromey <tom@tromey.com>
8170
8171 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8172 (read_range_type): Update.
8173 * mdebugread.c (basic_type): Update.
8174 * go-lang.c (build_go_types): Use init_complex_type.
8175 * gdbtypes.h (struct main_type) <complex_type>: New member.
8176 (init_complex_type): Update.
8177 (arch_complex_type): Don't declare.
8178 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8179 Make name if none given. Use alloc_type_copy. Look for cached
8180 complex type.
8181 (arch_complex_type): Remove.
8182 (gdbtypes_post_init): Use init_complex_type.
8183 * f-lang.c (build_fortran_types): Use init_complex_type.
8184 * dwarf2/read.c (read_base_type): Update.
8185 * d-lang.c (build_d_types): Use init_complex_type.
8186 * ctfread.c (read_base_type): Update.
8187
8188 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8189
8190 * infrun.c (stop_all_threads): Update assertion, plus when
8191 stopping threads, take into account that we might be trying
8192 to stop an all-stop target.
8193 (stop_waiting): Call 'stop_all_threads' if there exists a
8194 non-stop target.
8195
8196 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8197
8198 * target.h (exists_non_stop_target): New function declaration.
8199 * target.c (exists_non_stop_target): New function.
8200
8201 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8202
8203 PR gdb/24789
8204 * eval.c (is_integral_or_integral_reference): New function.
8205 (evaluate_subexp_standard): Allow integer references in
8206 pointer arithmetic.
8207
8208 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8209
8210 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8211 check for no ptid in the stop reply when the target is non-stop.
8212
8213 2020-04-01 Tom Tromey <tromey@adacore.com>
8214
8215 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8216 "name" parameter to rvalue reference. Initialize m_name_holder.
8217 <lookup_name_info>: New overloads.
8218 <name>: Return gdb::string_view.
8219 <c_str>: New method.
8220 <make_ignore_params>: Update.
8221 <search_name_hash>: Update.
8222 <language_lookup_name>: Return const char *.
8223 <m_name>: Change type.
8224 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8225 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8226 (lookup_name_info::match_any): Update.
8227 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8228 Update.
8229 * minsyms.c (linkage_name_str): Update.
8230 * language.c (default_symbol_name_matcher): Update.
8231 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8232 Update.
8233 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8234 (ada_lookup_name_info::ada_lookup_name_info): Update.
8235 (literal_symbol_name_matcher): Update.
8236
8237 2020-04-01 Tom Tromey <tromey@adacore.com>
8238
8239 * psymtab.c (psymtab_search_name): Remove function.
8240 (psym_lookup_symbol): Create search name and lookup name here.
8241 (lookup_partial_symbol): Remove "name" parameter; add
8242 lookup_name.
8243 (psym_expand_symtabs_for_function): Update.
8244
8245 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8246
8247 PR tui/25597:
8248 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8249
8250 2020-03-31 Tom Tromey <tromey@adacore.com>
8251
8252 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8253 memcpy.
8254
8255 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8256
8257 * features/riscv/32bit-csr.xml: Regenerated.
8258 * features/riscv/64bit-csr.xml: Regenerated.
8259
8260 2020-03-30 Tom Tromey <tromey@adacore.com>
8261
8262 * ada-valprint.c (print_variant_part): Update.
8263 * ada-lang.h (ada_which_variant_applies): Update.
8264 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8265 outer_valaddr parameters; replace with "outer" value parameter.
8266 (to_fixed_variant_branch_type): Update.
8267
8268 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8269
8270 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8271 <list>. Remove inclusion of observable.h.
8272 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8273 (struct arch_lwp_info): New struct.
8274 (class ppc_linux_dreg_interface): New class.
8275 (struct ppc_linux_process_info): New struct.
8276 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8277 <low_new_clone, low_forget_process, low_prepare_to_resume>
8278 <copy_thread_dreg_state, mark_thread_stale>
8279 <mark_debug_registers_changed, register_hw_breakpoint>
8280 <clear_hw_breakpoint, register_wp, clear_wp>
8281 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8282 <num_memory_accesses, get_trigger_type>
8283 <create_watchpoint_request, hwdebug_point_cmp>
8284 <init_arch_lwp_info, get_arch_lwp_info>
8285 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8286 methods.
8287 <struct ptid_hash>: New inner struct.
8288 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8289 members.
8290 (saved_dabr_value, hwdebug_info, max_slots_number)
8291 (struct hw_break_tuple, struct thread_points, ppc_threads)
8292 (have_ptrace_hwdebug_interface)
8293 (hwdebug_find_thread_points_by_tid)
8294 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8295 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8296 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8297 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8298 use m_dreg_interface.
8299 (hwdebug_point_cmp): Change to...
8300 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8301 reference arguments instead of pointers.
8302 (ppc_linux_nat_target::ranged_break_num_registers): Use
8303 m_dreg_interface.
8304 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8305 m_dreg_interface. Call register_hw_breakpoint.
8306 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8307 m_dreg_interface. Call clear_hw_breakpoint.
8308 (get_trigger_type): Change to...
8309 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8310 comment.
8311 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8312 use m_dreg_interface. Call register_hw_breakpoint.
8313 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8314 use m_dreg_interface. Call clear_hw_breakpoint.
8315 (can_use_watchpoint_cond_accel): Change to...
8316 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8317 method. Update comment, use m_dreg_interface and
8318 m_process_info.
8319 (calculate_dvc): Change to...
8320 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8321 m_dreg_interface.
8322 (num_memory_accesses): Change to...
8323 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8324 (check_condition): Change to...
8325 (ppc_linux_nat_target::check_condition): ...this method.
8326 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8327 comment, use m_dreg_interface.
8328 (create_watchpoint_request): Change to...
8329 (ppc_linux_nat_target::create_watchpoint_request): ...this
8330 method. Use m_dreg_interface.
8331 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8332 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8333 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8334 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8335 (ppc_linux_nat_target::low_forget_process)
8336 (ppc_linux_nat_target::low_new_fork)
8337 (ppc_linux_nat_target::low_new_clone)
8338 (ppc_linux_nat_target::low_delete_thread)
8339 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8340 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8341 only call mark_thread_stale.
8342 (ppc_linux_thread_exit): Remove.
8343 (ppc_linux_nat_target::stopped_data_address): Change to...
8344 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8345 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8346 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8347 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8348 comment. Call low_stopped_data_address.
8349 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8350 m_dreg_interface.
8351 (ppc_linux_nat_target::masked_watch_num_registers): Use
8352 m_dreg_interface.
8353 (ppc_linux_nat_target::copy_thread_dreg_state)
8354 (ppc_linux_nat_target::mark_thread_stale)
8355 (ppc_linux_nat_target::mark_debug_registers_changed)
8356 (ppc_linux_nat_target::register_hw_breakpoint)
8357 (ppc_linux_nat_target::clear_hw_breakpoint)
8358 (ppc_linux_nat_target::register_wp)
8359 (ppc_linux_nat_target::clear_wp)
8360 (ppc_linux_nat_target::init_arch_lwp_info)
8361 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8362 (_initialize_ppc_linux_nat): Remove observer callback.
8363
8364 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8365
8366 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8367 (ppc_linux_nat_target::auxv_parse)
8368 (ppc_linux_nat_target::read_description)
8369 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8370 Move up.
8371
8372 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8373
8374 * linux-nat.h (low_new_clone): New method.
8375 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8376
8377 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8378
8379 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8380 (dbx_expand_psymtab): ... this.
8381 (start_psymtab): Update.
8382 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8383 (mdebug_expand_psymtab): ... this.
8384 (parse_partial_symbols): Update.
8385 (new_psymtab): Update.
8386 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8387 (xcoff_expand_psymtab): ... this.
8388 (xcoff_start_psymtab): Update.
8389
8390 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8391
8392 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8393 <expand_dependencies>: ... this.
8394 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8395 (partial_symtab::expand_dependencies): ... this.
8396 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8397 Update.
8398 (dwarf2_psymtab::expand_psymtab): Update.
8399 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8400 * mdebugread.c (psymtab_to_symtab_1): Update.
8401 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8402
8403 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8404
8405 * psympriv.h (discard_psymtab): Remove.
8406 * dbxread.c (dbx_end_psymtab): Update.
8407 * xcoffread.c (xcoff_end_psymtab): Update.
8408
8409 2020-03-28 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8412 comment.
8413
8414 2020-03-28 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8417
8418 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8419
8420 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8421
8422 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8423
8424 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8425
8426 2020-03-26 Tom Tromey <tom@tromey.com>
8427
8428 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8429 (mark_common_block_symbol_computed, read_tag_string_type)
8430 (attr_to_dynamic_prop, read_subrange_type): Update.
8431 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8432 to be methods on struct attribute.
8433 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8434 (read_call_site_scope, partial_die_info::read)
8435 (partial_die_info::read, lookup_die_type, follow_die_ref):
8436 Update.
8437 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8438 from dwarf2_get_ref_die_offset.
8439 (attribute::constant_value): New method, from
8440 dwarf2_get_attr_constant_value.
8441 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8442 Declare method.
8443 <constant_value>: New method.
8444
8445 2020-03-26 Tom Tromey <tom@tromey.com>
8446
8447 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8448 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8449 (dwarf_type_encoding_name): Move to stringify.c.
8450 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8451 * dwarf2/stringify.c: New file.
8452 * dwarf2/stringify.h: New file.
8453
8454 2020-03-26 Tom Tromey <tom@tromey.com>
8455
8456 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8457 Rewrite.
8458
8459 2020-03-26 Tom Tromey <tom@tromey.com>
8460
8461 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8462 methods.
8463 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8464 (lookup_ranges_base): Likewise.
8465 (read_cutu_die_from_dwo, read_full_die_1): Update.
8466
8467 2020-03-26 Tom Tromey <tom@tromey.com>
8468
8469 * dwarf2/read.c (read_import_statement, read_file_scope)
8470 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8471 (read_lexical_block_scope, read_call_site_scope)
8472 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8473 (handle_struct_member_die, process_structure_scope)
8474 (update_enumeration_type_from_children)
8475 (process_enumeration_scope, read_array_type, read_common_block)
8476 (read_namespace, read_module, read_subroutine_type): Update.
8477 (sibling_die): Remove.
8478
8479 2020-03-26 Tom Tromey <tom@tromey.com>
8480
8481 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8482 (build_type_psymtabs_reader, read_structure_type)
8483 (read_enumeration_type, read_full_die_1): Update.
8484 (dwarf2_attr_no_follow): Move to die.h.
8485 * dwarf2/die.h (struct die_info) <attr>: New method.
8486
8487 2020-03-26 Tom Tromey <tom@tromey.com>
8488
8489 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8490 <base_address>: Now an optional.
8491 (dwarf2_find_base_address, dwarf2_rnglists_process)
8492 (dwarf2_ranges_process, fill_in_loclist_baton)
8493 (dwarf2_symbol_mark_computed): Update.
8494
8495 2020-03-26 Tom Tromey <tom@tromey.com>
8496
8497 * dwarf2/read.c (struct die_info): Move to die.h.
8498 * dwarf2/die.h: New file.
8499
8500 2020-03-26 Tom Tromey <tom@tromey.com>
8501
8502 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8503 * dwarf2/read.c
8504 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8505 Move to line-header.c.
8506 (read_checked_initial_length_and_offset, read_formatted_entries):
8507 Likewise.
8508 (dwarf_decode_line_header): Split into two.
8509 * dwarf2/line-header.c
8510 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8511 Move from read.c.
8512 (read_checked_initial_length_and_offset, read_formatted_entries):
8513 Likewise.
8514 (dwarf_decode_line_header): New function, split from read.c.
8515
8516 2020-03-26 Tom Tromey <tom@tromey.com>
8517
8518 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8519 Declare method.
8520 * dwarf2/read.c (read_attribute_value): Update.
8521 (dwarf2_per_objfile::read_line_string): Rename from
8522 read_indirect_line_string.
8523 (read_formatted_entries): Update.
8524
8525 2020-03-26 Tom Tromey <tom@tromey.com>
8526
8527 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8528 variable.
8529
8530 2020-03-26 Tom Tromey <tom@tromey.com>
8531
8532 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8533 const.
8534 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8535 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8536 parameter const.
8537
8538 2020-03-26 Tom Tromey <tom@tromey.com>
8539
8540 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8541 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8542 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8543 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8544
8545 2020-03-26 Tom Tromey <tom@tromey.com>
8546
8547 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8548 file_names_size, file_full_name, file_file_name>: Use const.
8549 <file_name_at, file_names>: Add const overload.
8550 * dwarf2/line-header.c (line_header::file_file_name)
8551 (line_header::file_full_name): Update.
8552
8553 2020-03-26 Tom Tromey <tom@tromey.com>
8554
8555 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8556 (macro_start_file, consume_improper_spaces)
8557 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8558 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8559 (dwarf_decode_macros): Move to macro.c.
8560 * dwarf2/macro.c: New file.
8561 * dwarf2/macro.h: New file.
8562 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8563
8564 2020-03-26 Tom Tromey <tom@tromey.com>
8565
8566 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8567 method.
8568 * dwarf2/section.c: New method. From
8569 read_indirect_string_at_offset_from.
8570 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8571 (read_indirect_string_at_offset_from): Move to section.c.
8572 (read_indirect_string_at_offset): Rewrite.
8573 (read_indirect_line_string_at_offset): Remove.
8574 (read_indirect_string, read_indirect_line_string)
8575 (dwarf_decode_macro_bytes): Update.
8576
8577 2020-03-26 Tom Tromey <tom@tromey.com>
8578
8579 * dwarf2/section.h (struct dwarf2_section_info)
8580 <overload_complaint>: Declare.
8581 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8582 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8583 Rename from dwarf2_section_buffer_overflow_complaint.
8584 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8585 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8586
8587 2020-03-26 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8590 Declare.
8591 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8592 Move from read.c.
8593 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8594 to section.c.
8595
8596 2020-03-26 Tom Tromey <tom@tromey.com>
8597
8598 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8599
8600 2020-03-26 Tom Tromey <tom@tromey.com>
8601
8602 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8603 "builder".
8604 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8605 parameter.
8606 (dwarf_decode_macros): Update.
8607
8608 2020-03-26 Tom Tromey <tom@tromey.com>
8609
8610 * dwarf2/read.c (read_attribute_value): Update.
8611 (read_indirect_string_from_dwz): Move to dwz.c; change into
8612 method.
8613 (dwarf_decode_macro_bytes): Update.
8614 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8615 * dwarf2/dwz.c: New file.
8616 * Makefile.in (COMMON_SFILES): Add dwz.c.
8617
8618 2020-03-26 Tom Tromey <tom@tromey.com>
8619
8620 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8621 * dwarf2/read.c: Add include.
8622 * dwarf2/index-write.c: Add include.
8623 * dwarf2/index-cache.c: Add include.
8624 * dwarf2/dwz.h: New file.
8625
8626 2020-03-25 Tom Tromey <tom@tromey.com>
8627
8628 * compile/compile-object-load.c (get_out_value_type): Mention
8629 correct symbol name in error message.
8630
8631 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8632
8633 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8634
8635 2020-03-25 Tom de Vries <tdevries@suse.de>
8636
8637 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8638 * symmisc.c (dump_symtab_1): Print user and includes fields.
8639 (maintenance_info_symtabs): Same.
8640
8641 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 PR gdb/25534
8644 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8645 (riscv_regcache_cooked_write): New function.
8646 (riscv_push_dummy_call): Use new function.
8647 (riscv_return_value): Likewise.
8648
8649 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8650
8651 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8652 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8653 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8654 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8655 * infrun.c (follow_fork): Likewise.
8656 (follow_fork_inferior): Likewise.
8657 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8658 * linux-nat.h (class linux_nat_target): Likewise.
8659 * remote.c (class remote_target) <follow_fork>: Likewise.
8660 (remote_target::follow_fork): Likewise.
8661 * target-delegates.c: Re-generate.
8662 * target.c (default_follow_fork): Likewise.
8663 (target_follow_fork): Likewise.
8664 * target.h (struct target_ops) <follow_fork>: Likewise.
8665 (target_follow_fork): Likewise.
8666
8667 2020-03-24 Tom de Vries <tdevries@suse.de>
8668
8669 * psymtab.c (maintenance_info_psymtabs): Print user field.
8670
8671 2020-03-20 Tom Tromey <tromey@adacore.com>
8672
8673 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8674 const.
8675 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8676 const.
8677
8678 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8679
8680 * ptrace.m4: Don't check for ptrace declaration.
8681 * config.in: Re-generate.
8682 * configure: Re-generate.
8683 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8684 not defined.
8685
8686 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8687
8688 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8689 `PTRACE_TYPE_RET'.
8690 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8691 * sparc-nat.c (gdb_ptrace): Likewise.
8692 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8693
8694 2020-03-20 Tom Tromey <tromey@adacore.com>
8695
8696 * c-exp.y (lex_one_token): Fix assert.
8697
8698 2020-03-20 Tom Tromey <tromey@adacore.com>
8699
8700 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8701 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8702 strncpy call.
8703
8704 2020-03-20 Tom Tromey <tromey@adacore.com>
8705
8706 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8707
8708 2020-03-20 Tom Tromey <tromey@adacore.com>
8709
8710 * ada-valprint.c (print_variant_part): Remove parameters; switch
8711 to value-based API.
8712 (print_field_values): Likewise.
8713 (ada_val_print_struct_union): Likewise.
8714 (ada_value_print_1): Update.
8715
8716 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8717
8718 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8719 nbsd_nat_target instead of inf_ptrace_target.
8720 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8721 nbsd_nat_target.
8722
8723 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8724
8725 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8726 it to the ptrace call.
8727 * (store_registers): Likewise.
8728
8729 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8730
8731 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8732 it to the ptrace call.
8733 * (store_registers): Likewise.
8734
8735 2020-03-19 Luis Machado <luis.machado@linaro.org>
8736
8737 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8738 valid, fetch vg value from ptrace.
8739
8740 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8741 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8742 * inf-ptrace.c: Likewise.
8743 * (gdb_ptrace): Add.
8744 * (inf_ptrace_target::resume): Update.
8745 * (inf_ptrace_target::xfer_partial): Likewise.
8746 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8747 * (inf_ptrace_peek_poke): Update.
8748
8749 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8750
8751 * x86-bsd-nat.c (gdb_ptrace): New.
8752 * (x86bsd_dr_set): Add new argument `ptid'.
8753 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8754 x86bsd_dr_set_addr): Update.
8755
8756 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8757
8758 * remote.c (remote_target::process_stop_reply): Handle events for
8759 all threads differently.
8760
8761 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8762
8763 * completer.c (completion_tracker::remove_completion): Define new
8764 function.
8765 * completer.h (completion_tracker::remove_completion): Declare new
8766 function.
8767 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8768 when adding a C++ function symbol.
8769
8770 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8771
8772 * completer.c (completion_tracker::completion_hash_entry): Define
8773 new class.
8774 (advance_to_filename_complete_word_point): Call
8775 recompute_lowest_common_denominator.
8776 (completion_tracker::completion_tracker): Call discard_completions
8777 to setup the hash table.
8778 (completion_tracker::discard_completions): Allow for being called
8779 from the constructor, pass new equal function, and element deleter
8780 when constructing the hash table. Initialise new class member
8781 variables.
8782 (completion_tracker::maybe_add_completion): Remove use of
8783 m_entries_vec, and store more information into m_entries_hash.
8784 (completion_tracker::recompute_lcd_visitor): New function, most
8785 content taken from...
8786 (completion_tracker::recompute_lowest_common_denominator):
8787 ...here, this now just visits each item in the hash calling the
8788 above visitor.
8789 (completion_tracker::build_completion_result): Remove use of
8790 m_entries_vec, call recompute_lowest_common_denominator.
8791 * completer.h (completion_tracker::have_completions): Remove use
8792 of m_entries_vec.
8793 (completion_tracker::completion_hash_entry): Declare new class.
8794 (completion_tracker::recompute_lowest_common_denominator): Change
8795 function signature.
8796 (completion_tracker::recompute_lcd_visitor): Declare new function.
8797 (completion_tracker::m_entries_vec): Delete.
8798 (completion_tracker::m_entries_hash): Initialize to NULL.
8799 (completion_tracker::m_lowest_common_denominator_valid): New
8800 member variable.
8801 (completion_tracker::m_lowest_common_denominator_max_length): New
8802 member variable.
8803
8804 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8805
8806 * regformats/regdef.h: Put reg in gdb namespace.
8807
8808 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8809
8810 * i386-bsd-nat.c (gdb_ptrace): New.
8811 * (i386bsd_fetch_inferior_registers,
8812 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8813 * (i386bsd_fetch_inferior_registers,
8814 i386bsd_store_inferior_registers) Use gdb_ptrace.
8815
8816 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8817
8818 * amd64-bsd-nat.c (gdb_ptrace): New.
8819 * (amd64bsd_fetch_inferior_registers,
8820 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8821 * (amd64bsd_fetch_inferior_registers,
8822 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8823
8824 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8825
8826 * user-regs.c (user_reg::read): Rename to...
8827 (user_reg::xread): ...this.
8828 * (append_user_reg): Rename argument `read' to `xread'.
8829 * (user_reg_add_builtin): Likewise.
8830 * (user_reg_add): Likewise.
8831 * (value_of_user_reg): Likewise.
8832
8833 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8834
8835 * sparc-nat.c (gdb_ptrace): New.
8836 * sparc-nat.c (sparc_fetch_inferior_registers)
8837 (sparc_store_inferior_registers) Remove obsolete comment.
8838 * sparc-nat.c (sparc_fetch_inferior_registers)
8839 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8840 * sparc-nat.c (sparc_fetch_inferior_registers)
8841 (sparc_store_inferior_registers) Use gdb_ptrace.
8842
8843 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8844
8845 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8846 it to the ptrace call.
8847 * sh-nbsd-nat.c (store_registers): Likewise.
8848
8849 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8850
8851 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8852 nbsd_nat_target instead of inf_ptrace_target.
8853 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8854 nbsd_nat_target.
8855
8856 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8857
8858 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8859
8860 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8861
8862 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8863 <sys/sysctl.h>.
8864 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8865
8866 2020-03-17 Tom de Vries <tdevries@suse.de>
8867
8868 PR gdb/23710
8869 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8870 fields.
8871 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8872 fields.
8873 (process_imported_unit_die): Skip import of c++ CUs.
8874
8875 2020-03-16 Tom Tromey <tom@tromey.com>
8876
8877 * p-valprint.c (pascal_object_print_value): Initialize
8878 base_value.
8879
8880 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8881 Shahab Vahedi <shahab@synopsys.com>
8882
8883 * Makefile.in: Add arch/arc.o
8884 * configure.tgt: Likewise.
8885 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8886 (_initialize_arc_tdep): Don't initialize old target descriptions.
8887 (arc_read_description): New function to cache target descriptions.
8888 * arc-tdep.h (arc_read_description): Add proto type.
8889 * arch/arc.c: New file.
8890 * arch/arc.h: Likewise.
8891 * features/Makefile: Replace old target descriptions with new.
8892 * features/arc-arcompact.c: Remove.
8893 * features/arc-arcompact.xml: Likewise.
8894 * features/arc-v2.c: Likewise
8895 * features/arc-v2.xml: Likewise
8896 * features/arc/aux-arcompact.xml: New file.
8897 * features/arc/aux-v2.xml: Likewise.
8898 * features/arc/core-arcompact.xml: Likewise.
8899 * features/arc/core-v2.xml: Likewise.
8900 * features/arc/aux-arcompact.c: Generate.
8901 * features/arc/aux-v2.c: Likewise.
8902 * features/arc/core-arcompact.c: Likewise.
8903 * features/arc/core-v2.c: Likewise.
8904 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8905
8906 2020-03-16 Tom Tromey <tromey@adacore.com>
8907
8908 PR gdb/25663:
8909 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8910 putting value into bcache.
8911
8912 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8913
8914 PR gdb/21500
8915 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8916 to...
8917 (amd64_windows_init_abi_common): ... this. Don't set size of
8918 long type.
8919 (amd64_windows_init_abi): New function.
8920 (amd64_cygwin_init_abi): New function.
8921 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8922 the Cygwin OS ABI.
8923 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8924 comment.
8925
8926 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8929 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8930 (pe_import_directory_entry): New struct type.
8931 (is_linked_with_cygwin_dll): New function.
8932 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8933 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8934 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8935
8936 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8937
8938 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8939 i386_cygwin_core_osabi_sniffer.
8940
8941 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8942
8943 * i386-cygwin-tdep.c: Rename to...
8944 * i386-windows-tdep.c: ... this.
8945 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8946 i386-windows-tdep.c.
8947 * configure.tgt: Likewise.
8948
8949 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8950
8951 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8952 * osabi.c (gdb_osabi_names): Add "Windows".
8953 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8954 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8955 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8956 i386_cygwin_osabi_sniffer.
8957 (_initialize_i386_cygwin_tdep): Register OS ABI
8958 GDB_OSABI_WINDOWS for i386.
8959 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8960 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8961 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8962 for x86-64.
8963 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8964 when the target matches '*-*-mingw*'.
8965
8966 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8967
8968 * defs.h (enum gdb_osabi): Move to...
8969 * osabi.h (enum gdb_osabi): ... here.
8970 * gdbarch.sh: Include osabi.h in gdbarch.h.
8971 * gdbarch.h: Re-generate.
8972
8973 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8974
8975 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8976 function.
8977 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8978
8979 2020-03-14 Tom Tromey <tom@tromey.com>
8980
8981 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8982 for C++.
8983 (c_type_print_modifier): Likewise. Add "language" parameter.
8984 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8985 (c_type_print_base_1): Update.
8986 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8987 constants.
8988 * type-stack.c (type_stack::insert): Handle tp_atomic and
8989 tp_restrict.
8990 (type_stack::follow_type_instance_flags): Likewise.
8991 (type_stack::follow_types): Likewise. Merge type-following code.
8992 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8993 (space_identifier, cv_with_space_id)
8994 (const_or_volatile_or_space_identifier_noopt)
8995 (const_or_volatile_or_space_identifier): Remove.
8996 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8997 rules.
8998 (ptr_operator, typebase): Update.
8999 (enum token_flag) <FLAG_C>: New constant.
9000 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9001 "_Atomic".
9002 (lex_one_token): Handle FLAG_C.
9003
9004 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9005
9006 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9007 it to the ptrace call.
9008 * m68k-bsd-nat.c (store_registers): Likewise.
9009
9010 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9011
9012 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9013 gdb_byte *.
9014 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9015 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9016 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9017
9018 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9019
9020 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9021 nbsd_nat_target instead of inf_ptrace_target.
9022 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9023 nbsd_nat_target.
9024
9025 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9026
9027 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9028 register_t.
9029
9030 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9031
9032 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9033 it to the ptrace call.
9034 * alpha-bsd-nat.c (store_registers): Likewise.
9035
9036 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9037
9038 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9039 includes.
9040 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9041 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9042 fill_fpregset): Likewise.
9043
9044 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9045
9046 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9047 nbsd_nat_target instead of inf_ptrace_target.
9048 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9049 nbsd_nat_target.
9050
9051 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9052
9053 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9054 register_t.
9055
9056 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9057
9058 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9059 it to the ptrace call.
9060 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9061 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9062 * arm-nbsd-nat.c (store_register): Likewise.
9063 * arm-nbsd-nat.c (store_regs): Likewise.
9064 * arm-nbsd-nat.c (store_fp_register): Likewise.
9065 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9066
9067 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9068
9069 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9070 nbsd_nat_target instead of inf_ptrace_target.
9071 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9072 nbsd_nat_target.
9073
9074 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9075
9076 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9077 it to the ptrace call.
9078 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9079
9080 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9081
9082 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9083 it to the ptrace call.
9084 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9085
9086 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9087
9088 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9089 gdb_byte *.
9090 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9091
9092 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9093
9094 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9095 instead of inf_ptrace_target.
9096 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9097 nbsd_nat_target.
9098
9099 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9100
9101 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9102 register_t.
9103
9104 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9105
9106 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9107 register_t.
9108
9109 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9110
9111 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9112 register_t.
9113
9114 2020-03-13 Tom Tromey <tom@tromey.com>
9115
9116 * value.h (val_print): Don't declare.
9117 * valprint.h (val_print_array_elements)
9118 (val_print_scalar_formatted, generic_val_print): Don't declare.
9119 * valprint.c (generic_val_print_array): Take a struct value.
9120 (generic_val_print_ptr, generic_val_print_memberptr)
9121 (generic_val_print_bool, generic_val_print_int)
9122 (generic_val_print_char, generic_val_print_complex)
9123 (generic_val_print): Remove.
9124 (generic_value_print): Update.
9125 (do_val_print): Remove unused parameters. Don't call
9126 la_val_print.
9127 (val_print): Remove.
9128 (common_val_print): Update. Don't call value_check_printable.
9129 (val_print_scalar_formatted, val_print_array_elements): Remove.
9130 * rust-lang.c (rust_val_print): Remove.
9131 (rust_language_defn): Update.
9132 * p-valprint.c (pascal_val_print): Remove.
9133 (pascal_value_print_inner): Update.
9134 (pascal_object_print_val_fields, pascal_object_print_val):
9135 Remove.
9136 (pascal_object_print_static_field): Update.
9137 * p-lang.h (pascal_val_print): Don't declare.
9138 * p-lang.c (pascal_language_defn): Update.
9139 * opencl-lang.c (opencl_language_defn): Update.
9140 * objc-lang.c (objc_language_defn): Update.
9141 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9142 * m2-lang.h (m2_val_print): Don't declare.
9143 * m2-lang.c (m2_language_defn): Update.
9144 * language.h (struct language_defn) <la_val_print>: Remove.
9145 * language.c (unk_lang_value_print_inner): Rename. Change
9146 argument types.
9147 (unknown_language_defn, auto_language_defn): Update.
9148 * go-valprint.c (go_val_print): Remove.
9149 * go-lang.h (go_val_print): Don't declare.
9150 * go-lang.c (go_language_defn): Update.
9151 * f-valprint.c (f_val_print): Remove.
9152 * f-lang.h (f_value_print): Don't declare.
9153 * f-lang.c (f_language_defn): Update.
9154 * d-valprint.c (d_val_print): Remove.
9155 * d-lang.h (d_value_print): Don't declare.
9156 * d-lang.c (d_language_defn): Update.
9157 * cp-valprint.c (cp_print_value_fields)
9158 (cp_print_value_fields_rtti, cp_print_value): Remove.
9159 (cp_print_static_field): Update.
9160 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9161 (c_val_print_struct, c_val_print_union, c_val_print_int)
9162 (c_val_print_memberptr, c_val_print): Remove.
9163 * c-lang.h (c_val_print_array, cp_print_value_fields)
9164 (cp_print_value_fields_rtti): Don't declare.
9165 * c-lang.c (c_language_defn, cplus_language_defn)
9166 (asm_language_defn, minimal_language_defn): Update.
9167 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9168 (ada_val_print_enum): Take a struct value.
9169 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9170 (ada_val_print): Remove.
9171 (ada_value_print_1): Update.
9172 (printable_val_type): Remove.
9173 * ada-lang.h (ada_val_print): Don't declare.
9174 * ada-lang.c (ada_language_defn): Update.
9175
9176 2020-03-13 Tom Tromey <tom@tromey.com>
9177
9178 * valprint.c (do_val_print): Update.
9179 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9180 a struct value.
9181 (value_to_value_object_no_release): Declare.
9182 * python/py-value.c (value_to_value_object_no_release): New
9183 function.
9184 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9185 struct value.
9186 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9187 function.
9188 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9189 a struct value.
9190 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9191 Declare.
9192 (gdbscm_apply_val_pretty_printer): Take a struct value.
9193 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9194 value.
9195 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9196 value.
9197 * extension-priv.h (struct extension_language_ops)
9198 <apply_val_pretty_printer>: Take a struct value.
9199 * cp-valprint.c (cp_print_value): Create a struct value.
9200 (cp_print_value): Update.
9201
9202 2020-03-13 Tom Tromey <tom@tromey.com>
9203
9204 * ada-valprint.c (print_field_values): Call common_val_print.
9205
9206 2020-03-13 Tom Tromey <tom@tromey.com>
9207
9208 * ada-valprint.c (val_print_packed_array_elements): Remove
9209 bitoffset and val parameters. Call common_val_print.
9210 (ada_val_print_string): Remove offset, address, and original_value
9211 parameters.
9212 (ada_val_print_array): Update.
9213 (ada_value_print_array): New function.
9214 (ada_value_print_1): Call it.
9215
9216 2020-03-13 Tom Tromey <tom@tromey.com>
9217
9218 * ada-valprint.c (ada_value_print): Use common_val_print.
9219
9220 2020-03-13 Tom Tromey <tom@tromey.com>
9221
9222 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9223
9224 2020-03-13 Tom Tromey <tom@tromey.com>
9225
9226 * ada-valprint.c (ada_value_print_num): New function.
9227 (ada_value_print_1): Use it.
9228
9229 2020-03-13 Tom Tromey <tom@tromey.com>
9230
9231 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9232
9233 2020-03-13 Tom Tromey <tom@tromey.com>
9234
9235 * ada-valprint.c (ada_value_print_ptr): New function.
9236 (ada_value_print_1): Use it.
9237
9238 2020-03-13 Tom Tromey <tom@tromey.com>
9239
9240 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9241 call common_val_print.
9242 (ada_val_print_1): Update.
9243 (ada_value_print_1): New function.
9244 (ada_value_print_inner): Rewrite.
9245
9246 2020-03-13 Tom Tromey <tom@tromey.com>
9247
9248 * cp-valprint.c (cp_print_value_fields): Update.
9249 (cp_print_value): New function.
9250
9251 2020-03-13 Tom Tromey <tom@tromey.com>
9252
9253 * m2-valprint.c (m2_value_print_inner): Use
9254 cp_print_value_fields.
9255 * cp-valprint.c (cp_print_value_fields): New function.
9256 * c-valprint.c (c_value_print_struct): New function.
9257 (c_value_print_inner): Use c_value_print_struct.
9258 * c-lang.h (cp_print_value_fields): Declare.
9259
9260 2020-03-13 Tom Tromey <tom@tromey.com>
9261
9262 * c-valprint.c (c_value_print_array): New function.
9263 (c_value_print_inner): Use it.
9264
9265 2020-03-13 Tom Tromey <tom@tromey.com>
9266
9267 * c-valprint.c (c_value_print_memberptr): New function.
9268 (c_value_print_inner): Use it.
9269
9270 2020-03-13 Tom Tromey <tom@tromey.com>
9271
9272 * c-valprint.c (c_value_print_int): New function.
9273 (c_value_print_inner): Use it.
9274
9275 2020-03-13 Tom Tromey <tom@tromey.com>
9276
9277 * c-valprint.c (c_value_print_ptr): New function.
9278 (c_value_print_inner): Use it.
9279
9280 2020-03-13 Tom Tromey <tom@tromey.com>
9281
9282 * c-valprint.c (c_value_print_inner): Rewrite.
9283
9284 2020-03-13 Tom Tromey <tom@tromey.com>
9285
9286 * valprint.c (generic_value_print_complex): New function.
9287 (generic_value_print): Use it.
9288
9289 2020-03-13 Tom Tromey <tom@tromey.com>
9290
9291 * valprint.c (generic_val_print_float): Don't call
9292 val_print_scalar_formatted.
9293 (generic_val_print, generic_value_print): Update.
9294
9295 2020-03-13 Tom Tromey <tom@tromey.com>
9296
9297 * valprint.c (generic_value_print_char): New function
9298 (generic_value_print): Use it.
9299
9300 2020-03-13 Tom Tromey <tom@tromey.com>
9301
9302 * valprint.c (generic_value_print_int): New function.
9303 (generic_value_print): Use it.
9304
9305 2020-03-13 Tom Tromey <tom@tromey.com>
9306
9307 * valprint.c (generic_value_print_bool): New function.
9308 (generic_value_print): Use it.
9309
9310 2020-03-13 Tom Tromey <tom@tromey.com>
9311
9312 * valprint.c (generic_val_print_func): Simplify.
9313 (generic_val_print, generic_value_print): Update.
9314
9315 2020-03-13 Tom Tromey <tom@tromey.com>
9316
9317 * valprint.c (generic_val_print_flags): Remove.
9318 (generic_val_print, generic_value_print): Update.
9319 (val_print_type_code_flags): Add original_value parameter.
9320
9321 2020-03-13 Tom Tromey <tom@tromey.com>
9322
9323 * valprint.c (generic_val_print): Update.
9324 (generic_value_print): Update.
9325 * valprint.c (generic_val_print_enum): Don't call
9326 val_print_scalar_formatted.
9327
9328 2020-03-13 Tom Tromey <tom@tromey.com>
9329
9330 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9331 * valprint.c (generic_value_print_ptr): New function.
9332
9333 2020-03-13 Tom Tromey <tom@tromey.com>
9334
9335 * valprint.c (generic_value_print): Rewrite.
9336
9337 2020-03-13 Tom Tromey <tom@tromey.com>
9338
9339 * p-valprint.c (pascal_object_print_value_fields)
9340 (pascal_object_print_value): New functions.
9341
9342 2020-03-13 Tom Tromey <tom@tromey.com>
9343
9344 * p-valprint.c (pascal_value_print_inner): Rewrite.
9345
9346 2020-03-13 Tom Tromey <tom@tromey.com>
9347
9348 * f-valprint.c (f_value_print_innner): Rewrite.
9349
9350 2020-03-13 Tom Tromey <tom@tromey.com>
9351
9352 * m2-valprint.c (m2_print_unbounded_array): New overload.
9353 (m2_print_unbounded_array): Update.
9354 (m2_print_array_contents): Take a struct value.
9355 (m2_value_print_inner): Rewrite.
9356
9357 2020-03-13 Tom Tromey <tom@tromey.com>
9358
9359 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9360 (d_value_print_inner): New function.
9361 * d-lang.h (d_value_print_inner): Declare.
9362 * d-lang.c (d_language_defn): Use d_value_print_inner.
9363
9364 2020-03-13 Tom Tromey <tom@tromey.com>
9365
9366 * go-valprint.c (go_value_print_inner): New function.
9367 * go-lang.h (go_value_print_inner): Declare.
9368 * go-lang.c (go_language_defn): Use go_value_print_inner.
9369
9370 2020-03-13 Tom Tromey <tom@tromey.com>
9371
9372 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9373 API.
9374 (rust_val_print): Rewrite.
9375 (rust_value_print_inner): New function, from rust_val_print.
9376 (rust_language_defn): Use rust_value_print_inner.
9377
9378 2020-03-13 Tom Tromey <tom@tromey.com>
9379
9380 * ada-valprint.c (ada_value_print_inner): New function.
9381 * ada-lang.h (ada_value_print_inner): Declare.
9382 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9383
9384 2020-03-13 Tom Tromey <tom@tromey.com>
9385
9386 * f-valprint.c (f_value_print_innner): New function.
9387 * f-lang.h (f_value_print_innner): Declare.
9388 * f-lang.c (f_language_defn): Use f_value_print_innner.
9389
9390 2020-03-13 Tom Tromey <tom@tromey.com>
9391
9392 * p-valprint.c (pascal_value_print_inner): New function.
9393 * p-lang.h (pascal_value_print_inner): Declare.
9394 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9395
9396 2020-03-13 Tom Tromey <tom@tromey.com>
9397
9398 * m2-valprint.c (m2_value_print_inner): New function.
9399 * m2-lang.h (m2_value_print_inner): Declare.
9400 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9401
9402 2020-03-13 Tom Tromey <tom@tromey.com>
9403
9404 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9405 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9406 * c-valprint.c (c_value_print_inner): New function.
9407 * c-lang.h (c_value_print_inner): Declare.
9408 * c-lang.c (c_language_defn, cplus_language_defn)
9409 (asm_language_defn, minimal_language_defn): Use
9410 c_value_print_inner.
9411
9412 2020-03-13 Tom Tromey <tom@tromey.com>
9413
9414 * p-valprint.c (pascal_object_print_value_fields): Now static.
9415 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9416
9417 2020-03-13 Tom Tromey <tom@tromey.com>
9418
9419 * c-valprint.c (c_val_print_array): Simplify.
9420
9421 2020-03-13 Tom Tromey <tom@tromey.com>
9422
9423 * valprint.c (value_print_array_elements): New function.
9424 * valprint.h (value_print_array_elements): Declare.
9425
9426 2020-03-13 Tom Tromey <tom@tromey.com>
9427
9428 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9429 * mips-tdep.c (mips_print_register): Use
9430 value_print_scalar_formatted.
9431
9432 2020-03-13 Tom Tromey <tom@tromey.com>
9433
9434 * valprint.h (value_print_scalar_formatted): Declare.
9435 * valprint.c (value_print_scalar_formatted): New function.
9436
9437 2020-03-13 Tom Tromey <tom@tromey.com>
9438
9439 * valprint.h (generic_value_print): Declare.
9440 * valprint.c (generic_value_print): New function.
9441
9442 2020-03-13 Tom Tromey <tom@tromey.com>
9443
9444 * valprint.c (do_val_print): Call la_value_print_inner, if
9445 available.
9446 * rust-lang.c (rust_language_defn): Update.
9447 * p-lang.c (pascal_language_defn): Update.
9448 * opencl-lang.c (opencl_language_defn): Update.
9449 * objc-lang.c (objc_language_defn): Update.
9450 * m2-lang.c (m2_language_defn): Update.
9451 * language.h (struct language_defn) <la_value_print_inner>: New
9452 member.
9453 * language.c (unknown_language_defn, auto_language_defn): Update.
9454 * go-lang.c (go_language_defn): Update.
9455 * f-lang.c (f_language_defn): Update.
9456 * d-lang.c (d_language_defn): Update.
9457 * c-lang.c (c_language_defn, cplus_language_defn)
9458 (asm_language_defn, minimal_language_defn): Update.
9459 * ada-lang.c (ada_language_defn): Update.
9460
9461 2020-03-13 Tom Tromey <tom@tromey.com>
9462
9463 * c-valprint.c (c_value_print): Use common_val_print.
9464
9465 2020-03-13 Tom Tromey <tom@tromey.com>
9466
9467 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9468
9469 2020-03-13 Tom Tromey <tom@tromey.com>
9470
9471 * f-valprint.c (f77_print_array_1, f_val_print): Use
9472 common_val_print.
9473
9474 2020-03-13 Tom Tromey <tom@tromey.com>
9475
9476 * riscv-tdep.c (riscv_print_one_register_info): Use
9477 common_val_print.
9478
9479 2020-03-13 Tom Tromey <tom@tromey.com>
9480
9481 * mi/mi-main.c (output_register): Use common_val_print.
9482
9483 2020-03-13 Tom Tromey <tom@tromey.com>
9484
9485 * infcmd.c (default_print_one_register_info): Use
9486 common_val_print.
9487
9488 2020-03-13 Tom Tromey <tom@tromey.com>
9489
9490 * valprint.h (common_val_print_checked): Declare.
9491 * valprint.c (common_val_print_checked): New function.
9492 * stack.c (print_frame_arg): Use common_val_print_checked.
9493
9494 2020-03-13 Tom Tromey <tom@tromey.com>
9495
9496 * valprint.c (do_val_print): New function, from val_print.
9497 (val_print): Use do_val_print.
9498 (common_val_print): Use do_val_print.
9499
9500 2020-03-13 Tom Tromey <tom@tromey.com>
9501
9502 * valprint.c (value_print): Use scoped_value_mark.
9503
9504 2020-03-13 Tom de Vries <tdevries@suse.de>
9505
9506 PR symtab/25646
9507 * psymtab.c (partial_symtab::partial_symtab): Don't set
9508 globals_offset and statics_offset. Push element onto
9509 current_global_psymbols and current_static_psymbols stacks.
9510 (concat): New function.
9511 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9512 element from current_global_psymbols and current_static_psymbols
9513 stacks. Concat popped elements to global_psymbols and
9514 static_symbols.
9515 (add_psymbol_to_list): Use current_global_psymbols and
9516 current_static_psymbols stacks.
9517 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9518 current_static_psymbols fields.
9519
9520 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9521
9522 * corelow.c (sniff_core_bfd): Remove.
9523 (class core_target) <m_core_vec>: Remove.
9524 (core_target::core_target): Update.
9525 (core_file_fns): Remove.
9526 (deprecated_add_core_fns): Remove.
9527 (default_core_sniffer): Remove.
9528 (sniff_core_bfd): Remove.
9529 (default_check_format): Remove.
9530 (gdb_check_format): Remove.
9531 (core_target_open): Update.
9532 (core_target::get_core_register_section): Update.
9533 (get_core_registers_cb): Update.
9534 (core_target::fetch_registers): Update.
9535 * gdbcore.h (struct core_fns): Remove.
9536 (deprecated_add_core_fns): Remove.
9537 (default_core_sniffer): Remove.
9538 (default_check_format): Remove.
9539
9540 2020-03-12 Tom Tromey <tom@tromey.com>
9541
9542 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9543 CORE_ADDR.
9544 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9545
9546 2020-03-12 Tom Tromey <tom@tromey.com>
9547
9548 * remote.c (remote_target::download_tracepoint)
9549 (remote_target::enable_tracepoint)
9550 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9551 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9552 sprintf_vma.
9553
9554 2020-03-12 Tom Tromey <tom@tromey.com>
9555
9556 * symfile-mem.c: Update CORE_ADDR size assert.
9557
9558 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * selftest.m4: Move to gdbsupport/.
9561 * acinclude.m4: Update path to selftest.m4.
9562
9563 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9566 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9567 gdbarch-selfselftests.c and selftest-arch.c.
9568 (SUBDIR_UNITTESTS_OBS): Rename to...
9569 (SELFTESTS_OBS): ... this.
9570 (COMMON_SFILES): Remove disasm-selftests.c and
9571 gdbarch-selftests.c.
9572 * configure.ac: Don't add selftest-arch.{c,o} to
9573 CONFIG_{SRCS,OBS}.
9574 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9575 preprocessor conditions.
9576
9577 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9578
9579 * configure.ac: Don't source bfd/development.sh.
9580 * selftest.m4: Modify comment.
9581 * configure: Re-generate.
9582
9583 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9586 not "true" or "false".
9587 * configure: Re-generate.
9588
9589 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9590
9591 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9592 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9593 renamed to arm_nbsd_supply_gregset.
9594 (fetch_register): Update to call arm_nbsd_supply_gregset.
9595 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9596 (arm_netbsd_nat_target::fetch_registers): Update.
9597 (fetch_elfcore_registers): Removed.
9598 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9599 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9600 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9601 not require NetBSD system headers.
9602 (arm_nbsd_regset): New struct.
9603 (arm_nbsd_iterate_over_regset_sections): New function.
9604 (arm_netbsd_init_abi_common): Updated to call
9605 set_gdbarch_iterate_over_regset_sections.
9606 * arm-nbsd-tdep.h: New file.
9607
9608 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9609
9610 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9611 recursion.
9612
9613 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * configure: Re-generate.
9616
9617 2020-03-11 Tom Tromey <tromey@adacore.com>
9618
9619 * ada-typeprint.c (print_choices): Fix comment.
9620
9621 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9622
9623 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9624 previous item in the list, when the list has no items.
9625
9626 2020-03-11 Tom de Vries <tdevries@suse.de>
9627
9628 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9629 PROP_LOCLIST handling code.
9630
9631 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9632
9633 * buildsym-legacy.c (record_line): Pass extra parameter to
9634 record_line.
9635 * buildsym.c (buildsym_compunit::record_line): Take an extra
9636 parameter, reduce duplication in the line table, and record the
9637 is_stmt flag in the line table.
9638 * buildsym.h (buildsym_compunit::record_line): Add extra
9639 parameter.
9640 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9641 non-statement lines.
9642 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9643 this to the symtab builder.
9644 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9645 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9646 through to dwarf_record_line_1.
9647 * infrun.c (process_event_stop_test): When stepping, don't stop at
9648 a non-statement instruction, and only refresh the step info when
9649 we land in the middle of a line's range. Also add an extra
9650 comment.
9651 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9652 field.
9653 * record-btrace.c (btrace_find_line_range): Only record lines
9654 marked as is-statement.
9655 * stack.c (frame_show_address): Show the frame address if we are
9656 in a non-statement sal.
9657 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9658 (maintenance_print_one_line_table): Print a header for the is_stmt
9659 column, and include is_stmt information in the output.
9660 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9661 preference to non-statements.
9662 (find_pcs_for_symtab_line): Prefer is-statement entries.
9663 (find_line_common): Likewise.
9664 * symtab.h (struct linetable_entry): Add is_stmt field.
9665 (struct symtab_and_line): Likewise.
9666 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9667 arranging the line table.
9668
9669 2020-03-07 Tom de Vries <tdevries@suse.de>
9670
9671 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9672 DIE.
9673
9674 2020-03-07 Tom Tromey <tom@tromey.com>
9675
9676 * valops.c (value_literal_complex): Remove obsolete comment.
9677 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9678 comment.
9679
9680 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9681
9682 * infrun.h: Forward-declare thread_info.
9683 (set_step_info): Add thread_info parameter, add doc.
9684 * infrun.c (set_step_info): Add thread_info parameter, move doc
9685 to header.
9686 * infrun.c (process_event_stop_test): Pass thread to
9687 set_step_info call.
9688 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9689 set_step_info.
9690 (prepare_one_step): Add thread_info parameter, pass it to
9691 set_step_frame and prepare_one_step (recursive) call.
9692 (step_1): Pass thread to prepare_one_step call.
9693 (step_command_fsm::should_stop): Pass thread to
9694 prepare_one_step.
9695 (until_next_fsm): Pass thread to set_step_frame call.
9696 (finish_command): Pass thread to set_step_info call.
9697
9698 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9699
9700 * windows-tdep.c (windows_solib_create_inferior_hook):
9701 Check if inferior is running.
9702
9703 2020-03-06 Tom de Vries <tdevries@suse.de>
9704
9705 * NEWS: Fix "the the".
9706 * ctfread.c: Same.
9707
9708 2020-03-06 Tom de Vries <tdevries@suse.de>
9709
9710 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9711
9712 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9713
9714 * .dir-locals.el: Add a comment referencing the other copies of
9715 this file.
9716
9717 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9718
9719 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9720 psargs.
9721
9722 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9723
9724 * .gitattributes: New file.
9725
9726 2020-03-04 Tom Tromey <tom@tromey.com>
9727
9728 * symmisc.c (print_symbol_bcache_statistics)
9729 (print_objfile_statistics): Update.
9730 * symfile.c (allocate_symtab): Use intern.
9731 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9732 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9733 macro_cache>: Remove.
9734 <string_cache>: New member.
9735 (struct objfile) <intern>: New methods.
9736 * elfread.c (elf_symtab_read): Use intern.
9737 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9738 (dwarf2_compute_name, dwarf2_physname)
9739 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9740 names.
9741 (guess_partial_die_structure_name): Update.
9742 (partial_die_info::fixup): Intern name.
9743 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9744 name.
9745 (dwarf2_name): Intern name. Update.
9746 * buildsym.c (buildsym_compunit::get_macro_table): Use
9747 string_cache.
9748
9749 2020-03-04 Tom Tromey <tom@tromey.com>
9750
9751 * jit.c (bfd_open_from_target_memory): Make "target" const.
9752 * corefile.c (gnutarget): Now const.
9753 * gdbcore.h (gnutarget): Now const.
9754
9755 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9756
9757 * NEWS: Mention support for WOW64 processes.
9758 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9759 (amd64_windows_segment_register_p): Remove static.
9760 (_initialize_amd64_windows_nat): Update.
9761 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9762 * i386-windows-nat.c (context_offset): Update.
9763 (i386_mappings): Rename and remove static.
9764 (i386_windows_segment_register_p): Remove static.
9765 (_initialize_i386_windows_nat): Update.
9766 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9767 (STATUS_WX86_SINGLE_STEP): New macro.
9768 (EnumProcessModulesEx): New macro.
9769 (Wow64SuspendThread): New macro.
9770 (Wow64GetThreadContext): New macro.
9771 (Wow64SetThreadContext): New macro.
9772 (Wow64GetThreadSelectorEntry): New macro.
9773 (windows_set_context_register_offsets): Add static.
9774 (windows_set_segment_register_p): Likewise.
9775 (windows_add_thread): Adapt for WOW64 processes.
9776 (windows_fetch_one_register): Likewise.
9777 (windows_nat_target::fetch_registers): Likewise.
9778 (windows_store_one_register): Likewise.
9779 (display_selector): Likewise.
9780 (display_selectors): Likewise.
9781 (handle_exception): Likewise.
9782 (windows_continue): Likewise.
9783 (windows_nat_target::resume): Likewise.
9784 (windows_add_all_dlls): Likewise.
9785 (do_initial_windows_stuff): Likewise.
9786 (windows_nat_target::attach): Likewise.
9787 (windows_get_exec_module_filename): Likewise.
9788 (windows_nat_target::create_inferior): Likewise.
9789 (windows_xfer_siginfo): Likewise.
9790 (_initialize_loadable): Initialize Wow64SuspendThread,
9791 Wow64GetThreadContext, Wow64SetThreadContext,
9792 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9793 * windows-nat.h (windows_set_context_register_offsets):
9794 Remove declaration.
9795 (windows_set_segment_register_p): Likewise.
9796 (i386_windows_segment_register_p): Add declaration.
9797 (amd64_windows_segment_register_p): Likewise.
9798
9799 2020-03-04 Luis Machado <luis.machado@linaro.org>
9800
9801 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9802 in "info registers" for AArch64/ARM.
9803
9804 The change caused "info registers" to not print GPR's.
9805
9806 gdb/ChangeLog:
9807
9808 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9809
9810 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9811 when reg->group is empty and reggroup is not.
9812
9813 2020-03-03 Tom Tromey <tromey@adacore.com>
9814
9815 * dwarf2/frame.c (struct dwarf2_frame_cache)
9816 <checked_tailcall_bottom, entry_cfa_sp_offset,
9817 entry_cfa_sp_offset_p>: Remove members.
9818 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9819 (dwarf2_frame_prev_register): Don't call
9820 dwarf2_tailcall_sniffer_first.
9821 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9822 * frame-unwind.c (add_unwinder): New fuction.
9823 (frame_unwind_init): Use it. Add tailcall unwinder.
9824
9825 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9826 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9827
9828 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9829 value should be printed as true.
9830
9831 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9832
9833 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9834 (windows_init_abi): Set and use windows_so_ops.
9835
9836 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9837
9838 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9839 when verifying if dealing with a convenience variable.
9840
9841 2020-03-03 Luis Machado <luis.machado@linaro.org>
9842
9843 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9844
9845 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9846
9847 * infrun.c (gdbarch_supports_displaced_stepping): New.
9848 (use_displaced_stepping): Break up conditions in smaller pieces.
9849 Use gdbarch_supports_displaced_stepping.
9850 (displaced_step_prepare_throw): Use
9851 gdbarch_supports_displaced_stepping.
9852
9853 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9854
9855 * NEWS: Mention new behaviour of the history filename.
9856 * top.c (write_history_p): Add comment.
9857 (show_write_history_p): Add header comment, give a different
9858 message when history writing is on, but the history filename is
9859 empty.
9860 (history_filename): Add comment.
9861 (history_filename_empty): New function.
9862 (show_history_filename): Add header comment, give a different
9863 message when the filename is empty.
9864 (init_history): Compare history_filename against nullptr, and only
9865 read history if the filename is not empty.
9866 (set_history_filename): Add header comment, and only make
9867 non-empty filenames absolute.
9868 (init_main): Make the filename argument to 'set history filename'
9869 optional.
9870
9871 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9872
9873 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9874 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9875 (fetch_fp_register): Update.
9876 (fetch_fp_regs): Update.
9877 (store_fp_register): Update.
9878 (store_fp_regs): Update.
9879 (arm_netbsd_nat_target::read_description): New function.
9880 (fetch_elfcore_registers): Update.
9881
9882 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9885 general_thread if the stop reply is missing a thread-id.
9886 (remote_target::process_stop_reply): Use the first non-exited
9887 thread if the target didn't pass a thread-id.
9888 * infrun.c (do_target_wait): Move call to
9889 switch_to_inferior_no_thread to ....
9890 (do_target_wait_1): ... here.
9891
9892 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9893
9894 * debuginfod-support.c: Include defs.h first.
9895
9896 2020-02-28 Tom de Vries <tdevries@suse.de>
9897
9898 * symfile.c (set_initial_language): Use default language for lookup.
9899
9900 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9903 reader variable, pass `this` to read_cutu_die_from_dwo.
9904
9905 2020-02-27 Aaron Merey <amerey@redhat.com>
9906
9907 * source.c (open_source_file): Check for nullptr when computing
9908 srcpath.
9909
9910 2020-02-27 Tom Tromey <tromey@adacore.com>
9911
9912 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9913 member.
9914 (dwarf2_add_field): Don't update nfields.
9915 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9916
9917 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9918
9919 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9920 abs.
9921
9922 2020-02-26 Tom Tromey <tom@tromey.com>
9923
9924 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9925 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9926 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9927 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9928 per_cu_data.
9929
9930 2020-02-26 Tom Tromey <tom@tromey.com>
9931
9932 * dwarf2/index-write.c (psym_index_map): Change type.
9933 (add_address_entry_worker, write_one_signatured_type)
9934 (recursively_count_psymbols, recursively_write_psymbols)
9935 (class debug_names, psyms_seen_size, write_gdbindex)
9936 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9937
9938 2020-02-26 Aaron Merey <amerey@redhat.com>
9939
9940 * Makefile.in: Handle optional debuginfod support.
9941 * NEWS: Update.
9942 * README: Add --with-debuginfod summary.
9943 * config.in: Regenerate.
9944 * configure: Regenerate.
9945 * configure.ac: Handle optional debuginfod support.
9946 * debuginfod-support.c: debuginfod helper functions.
9947 * debuginfod-support.h: Ditto.
9948 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9949 summary.
9950 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9951 when a dwz file cannot be found.
9952 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9953 debuginfo file cannot be found.
9954 * source.c (open_source_file): Query debuginfod servers when a
9955 source file cannot be found.
9956 * top.c (print_gdb_configuration): Include
9957 --{with,without}-debuginfod in the output.
9958
9959 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9960
9961 * thread.c (thr_try_catch_cmd): Print thread name.
9962
9963 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9966 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9967 dwarf2_fetch_die_type_sect_off): Move to...
9968 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9969 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9970 dwarf2_fetch_die_type_sect_off): ... here.
9971 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9972 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9973 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9974
9975 2020-02-26 Tom de Vries <tdevries@suse.de>
9976
9977 PR gdb/25603
9978 * symfile.c (set_initial_language): Exit-early if
9979 language_mode == language_mode_manual.
9980
9981 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9982
9983 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9984 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9985 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9986
9987 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9988
9989 * gdbtypes.c (create_array_type_with_stride): Handle negative
9990 array strides.
9991 * valarith.c (value_subscripted_rvalue): Likewise.
9992
9993 2020-02-25 Luis Machado <luis.machado@linaro.org>
9994
9995 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9996
9997 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9998
9999 * loc.h (dwarf2_get_die_type): Move to...
10000 * read.h (dwarf2_get_die_type): ... here.
10001 * read.c (dwarf2_get_die_type): Move doc to header.
10002
10003 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10004
10005 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10006 'gnulib/Makefile.in' to the list.
10007
10008 2020-02-24 Tom Tromey <tom@tromey.com>
10009
10010 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10011 Remove.
10012 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10013 XOBNEWVEC.
10014
10015 2020-02-24 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10018 New method.
10019 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10020 (dw2_do_instantiate_symtab, dw2_get_file_names)
10021 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10022
10023 2020-02-24 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10026 make_scoped_restore.
10027 (dwarf2_psymtab::read_symtab): Don't clear
10028 reading_partial_symbols.
10029
10030 2020-02-24 Tom de Vries <tdevries@suse.de>
10031
10032 PR gdb/25592
10033 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10034
10035 2020-02-24 Tom de Vries <tdevries@suse.de>
10036
10037 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10038 commands layout next/prev/regs.
10039
10040 2020-02-22 Tom Tromey <tom@tromey.com>
10041
10042 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10043 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10044
10045 2020-02-22 Tom Tromey <tom@tromey.com>
10046
10047 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10048
10049 2020-02-22 Tom Tromey <tom@tromey.com>
10050
10051 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10052 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10053 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10054 * tui/tui.c (_initialize_tui): Add usage text.
10055
10056 2020-02-22 Tom Tromey <tom@tromey.com>
10057
10058 * tui/tui-win.c (tui_set_focus_command)
10059 (tui_set_win_height_command): Use error_no_arg.
10060 (_initialize_tui_win): Update help text.
10061 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10062
10063 2020-02-22 Tom Tromey <tom@tromey.com>
10064
10065 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10066 * tui/tui-disasm.h (struct tui_disasm_window)
10067 <display_start_addr>: Declare.
10068 * tui/tui-source.h (struct tui_source_window)
10069 <display_start_addr>: Declare.
10070 * tui/tui-winsource.h (struct tui_source_window_base)
10071 <show_source_line, display_start_addr>: New methods.
10072 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10073 Rename and move to protected section.
10074 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10075 (tui_source_window_base::do_erase_source_content): Update.
10076 (tui_source_window_base::show_source_line): Now a method.
10077 (tui_source_window_base::show_source_content)
10078 (tui_source_window_base::tui_source_window_base)
10079 (tui_source_window_base::rerender)
10080 (tui_source_window_base::refill)
10081 (tui_source_window_base::do_scroll_horizontal)
10082 (tui_source_window_base::set_is_exec_point_at)
10083 (tui_source_window_base::update_breakpoint_info)
10084 (tui_source_window_base::update_exec_info): Update.
10085 * tui/tui-source.c (tui_source_window::set_contents)
10086 (tui_source_window::showing_source_p)
10087 (tui_source_window::do_scroll_vertical)
10088 (tui_source_window::location_matches_p)
10089 (tui_source_window::line_is_displayed): Update.
10090 (tui_source_window::display_start_addr): New method.
10091 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10092 (tui_disasm_window::do_scroll_vertical)
10093 (tui_disasm_window::location_matches_p): Update.
10094 (tui_disasm_window::display_start_addr): New method.
10095
10096 2020-02-22 Tom Tromey <tom@tromey.com>
10097
10098 * NEWS: Add entry for gdb.register_window_type.
10099 * tui/tui-layout.h (window_factory): New typedef.
10100 (tui_register_window): Declare.
10101 * tui/tui-layout.c (saved_tui_windows): New global.
10102 (tui_apply_current_layout): Use it.
10103 (tui_register_window): New function.
10104 * python/python.c (do_start_initialization): Call
10105 gdbpy_initialize_tui.
10106 (python_GdbMethods): Add "register_window_type" function.
10107 * python/python-internal.h (gdbpy_register_tui_window)
10108 (gdbpy_initialize_tui): Declare.
10109 * python/py-tui.c: New file.
10110 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10111
10112 2020-02-22 Tom Tromey <tom@tromey.com>
10113
10114 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10115
10116 2020-02-22 Tom Tromey <tom@tromey.com>
10117
10118 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10119 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10120 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10121 (tui_set_win_focus_to): Move from tui-win.c.
10122
10123 2020-02-22 Tom Tromey <tom@tromey.com>
10124
10125 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10126 functions.
10127 (known_window_types): New global.
10128 (tui_get_window_by_name): Reimplement.
10129 (initialize_known_windows): New function.
10130 (validate_window_name): Rewrite.
10131 (_initialize_tui_layout): Call initialize_known_windows.
10132
10133 2020-02-22 Tom Tromey <tom@tromey.com>
10134
10135 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10136 Remove constants.
10137 * tui/tui-winsource.h (struct tui_source_window_base)
10138 <tui_source_window_base>: Remove parameter.
10139 * tui/tui-winsource.c
10140 (tui_source_window_base::tui_source_window_base): Remove
10141 parameter.
10142 (tui_source_window_base::refill): Update.
10143 * tui/tui-stack.h (struct tui_locator_window)
10144 <tui_locator_window>: Update.
10145 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10146 Default the constructor.
10147 * tui/tui-regs.h (struct tui_data_item_window)
10148 <tui_data_item_window>: Default the constructor.
10149 (struct tui_data_window) <tui_data_window>: Likewise.
10150 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10151 Default the constructor.
10152 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10153 Default the constructor.
10154 <type>: Remove.
10155 (struct tui_win_info) <tui_win_info>: Default the constructor.
10156 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10157 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10158 Default the constructor.
10159
10160 2020-02-22 Tom Tromey <tom@tromey.com>
10161
10162 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10163 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10164 * tui/tui-win.c (tui_resize_all): Don't call
10165 tui_delete_invisible_windows.
10166 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10167 done.
10168 (tui_set_layout): Update.
10169 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10170 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10171 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10172
10173 2020-02-22 Tom Tromey <tom@tromey.com>
10174
10175 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10176 correctly.
10177
10178 2020-02-22 Tom Tromey <tom@tromey.com>
10179
10180 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10181
10182 2020-02-22 Tom Tromey <tom@tromey.com>
10183
10184 * tui/tui-winsource.h (struct tui_source_window_iterator)
10185 <inner_iterator>: New etytypedef.
10186 <tui_source_window_iterator>: Take "end" parameter.
10187 <tui_source_window_iterator>: Take iterator.
10188 <operator*, advance>: Update.
10189 <m_iter>: Change type.
10190 <m_end>: New field.
10191 (struct tui_source_windows) <begin, end>: Update.
10192 * tui/tui-layout.c (tui_windows): New global.
10193 (tui_apply_current_layout): Clear tui_windows.
10194 (tui_layout_window::apply): Update tui_windows.
10195 * tui/tui-data.h (tui_windows): Declare.
10196 (all_tui_windows): Now inline function.
10197 (class tui_window_iterator, struct all_tui_windows): Remove.
10198
10199 2020-02-22 Tom Tromey <tom@tromey.com>
10200
10201 PR tui/17850:
10202 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10203 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10204 "height" argument.
10205 (class tui_layout_window) <get_sizes>: Likewise.
10206 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10207 argument.
10208 <get_sizes>: Add "height" argument.
10209 <m_vertical>: New field.
10210 * tui/tui-layout.c (tui_layout_split::clone): Update.
10211 (tui_layout_split::get_sizes): Add "height" argument.
10212 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10213 (tui_new_layout_command): Parse "-horizontal".
10214 (_initialize_tui_layout): Update help string.
10215 (tui_layout_split::specification): Add "-horizontal" when needed.
10216 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10217 argument.
10218 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10219 New methods.
10220
10221 2020-02-22 Tom Tromey <tom@tromey.com>
10222
10223 * tui/tui-layout.h (enum tui_adjust_result): New.
10224 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10225 (class tui_layout_window) <adjust_size>: Return
10226 tui_adjust_result. Rewrite.
10227 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10228 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10229
10230 2020-02-22 Tom Tromey <tom@tromey.com>
10231
10232 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10233 parameter and return types.
10234 (class tui_layout_base) <specification>: Add "depth".
10235 (class tui_layout_window) <specification>: Add "depth".
10236 (class tui_layout_split) <specification>: Add "depth".
10237 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10238 and return types.
10239 (tui_new_layout_command): Parse sub-layouts.
10240 (_initialize_tui_layout): Update help string.
10241 (tui_layout_window::specification): Add "depth".
10242 (add_layout_command): Update.
10243
10244 2020-02-22 Tom Tromey <tom@tromey.com>
10245
10246 * NEWS: Add "tui new-layout" item.
10247 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10248 Add new-layout command to help text.
10249 (validate_window_name): New function.
10250 (tui_new_layout_command): New function.
10251 (_initialize_tui_layout): Register "new-layout".
10252 (tui_layout_window::specification): New method.
10253 (tui_layout_window::specification): New method.
10254 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10255 method.
10256 (class tui_layout_window) <specification>: New method.
10257 (class tui_layout_split) <specification>: New method.
10258
10259 2020-02-22 Tom Tromey <tom@tromey.com>
10260
10261 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10262 * tui/tui-win.c (window_name_completer): Update comment.
10263 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10264 Declare method.
10265 (class tui_layout_window) <replace_window>: Likewise.
10266 (class tui_layout_split) <replace_window>: Likewise.
10267 (tui_set_layout): Don't declare.
10268 (tui_set_initial_layout): Declare function.
10269 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10270 (asm_regs_layout): New globals.
10271 (tui_current_layout, show_layout): Remove.
10272 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10273 (find_layout, tui_apply_layout): New function.
10274 (layout_completer): Remove.
10275 (tui_next_layout): Reimplement.
10276 (tui_next_layout_command): New function.
10277 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10278 (tui_regs_layout): Reimplement.
10279 (tui_regs_layout_command): New function.
10280 (extract_display_start_addr): Rewrite.
10281 (next_layout, prev_layout): Remove.
10282 (tui_layout_window::replace_window): New method.
10283 (tui_layout_split::replace_window): New method.
10284 (destroy_layout): New function.
10285 (layout_list): New global.
10286 (add_layout_command): New function.
10287 (initialize_layouts): Update.
10288 (tui_layout_command): New function.
10289 (_initialize_tui_layout): Install "layout" commands.
10290 * tui/tui-data.h (enum tui_layout_type): Remove.
10291 (tui_current_layout): Don't declare.
10292
10293 2020-02-22 Tom Tromey <tom@tromey.com>
10294
10295 * tui/tui-regs.c (tui_reg_layout): Remove.
10296 (tui_reg_command): Use tui_regs_layout.
10297 * tui/tui-layout.h (tui_reg_command): Declare.
10298 * tui/tui-layout.c (tui_reg_command): New function.
10299
10300 2020-02-22 Tom Tromey <tom@tromey.com>
10301
10302 * tui/tui.c (tui_rl_delete_other_windows): Call
10303 tui_remove_some_windows.
10304 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10305 Declare method.
10306 (class tui_layout_window) <remove_windows>: New method.
10307 (class tui_layout_split) <remove_windows>: Declare.
10308 (tui_remove_some_windows): Declare.
10309 * tui/tui-layout.c (tui_remove_some_windows): New function.
10310 (tui_layout_split::remove_windows): New method.
10311
10312 2020-02-22 Tom Tromey <tom@tromey.com>
10313
10314 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10315 * tui/tui-layout.h (tui_next_layout): Declare.
10316 * tui/tui-layout.c (tui_next_layout): New function.
10317
10318 2020-02-22 Tom Tromey <tom@tromey.com>
10319
10320 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10321 correct coordinates.
10322
10323 2020-02-22 Tom Tromey <tom@tromey.com>
10324
10325 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10326 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10327 DATA_WIN case.
10328
10329 2020-02-22 Tom Tromey <tom@tromey.com>
10330
10331 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10332 TUI_DISASM_WIN, not tui_win_list.
10333
10334 2020-02-22 Tom Tromey <tom@tromey.com>
10335
10336 * valprint.c (generic_val_print_enum_1)
10337 (val_print_type_code_flags): Style member names.
10338 * rust-lang.c (val_print_struct, rust_print_enum)
10339 (rust_print_struct_def, rust_internal_print_type): Style member
10340 names.
10341 * p-valprint.c (pascal_object_print_value_fields): Style member
10342 names. Only call fprintf_symbol_filtered for static members.
10343 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10344 * f-valprint.c (f_val_print): Style member names.
10345 * f-typeprint.c (f_type_print_base): Style member names.
10346 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10347 call fprintf_symbol_filtered for static members.
10348 (cp_print_class_member): Style member names.
10349 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10350 member names.
10351 * ada-valprint.c (ada_print_scalar): Style enum names.
10352 (ada_val_print_enum): Likewise.
10353 * ada-typeprint.c (print_enum_type): Style enum names.
10354
10355 2020-02-21 Tom Tromey <tom@tromey.com>
10356
10357 * psympriv.h (struct partial_symtab): Update comment.
10358
10359 2020-02-21 Tom Tromey <tromey@adacore.com>
10360
10361 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10362 type is CORE_ADDR.
10363
10364 2020-02-21 Tom de Vries <tdevries@suse.de>
10365
10366 PR gdb/25534
10367 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10368 if dependencies[i]->user != NULL.
10369
10370 2020-02-21 Ali Tamur <tamur@google.com>
10371
10372 * dwarf2/read.c (dwarf2_name): Add null check.
10373
10374 2020-02-20 Tom Tromey <tom@tromey.com>
10375
10376 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10377 ">=", in binary search.
10378 (dwarf2_find_containing_comp_unit): New overload.
10379 (run_test): New self-test.
10380 (_initialize_dwarf2_read): Register new test.
10381
10382 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10383
10384 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10385 * riscv-tdep.h: Likewise.
10386 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10387 rv32-only CSR.
10388 * features/riscv/64bit-csr.xml: Regenerated.
10389
10390 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10391 Tom Tromey <tom@tromey.com>
10392
10393 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10394 of 'fputc_unfiltered'.
10395 (putchar_unfiltered): Call 'fputc_unfiltered'.
10396 (fputc_unfiltered): Call 'fputs_unfiltered'.
10397
10398 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10399
10400 * config.in: Regenerate.
10401 * configure: Regenerate.
10402 * configure.ac: Add --with-python-libdir option.
10403 * main.c: Use WITH_PYTHON_LIBDIR.
10404
10405 2020-02-19 Tom Tromey <tom@tromey.com>
10406
10407 * symtab.c (general_symbol_info::compute_and_set_names): Use
10408 obstack_strndup. Simplify call to symbol_set_demangled_name.
10409
10410 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * dwarf2/read.c (allocate_signatured_type_table,
10413 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10414 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10415 Remove objfile parameter, update all callers.
10416
10417 2020-02-19 Doug Evans <dje@google.com>
10418
10419 PR rust/25535
10420 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10421 rust_enum_variant calculation.
10422
10423 2020-02-19 Tom Tromey <tromey@adacore.com>
10424
10425 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10426
10427 2020-02-19 Tom Tromey <tromey@adacore.com>
10428
10429 * ada-lang.c (cache_symbol): Use obstack_strdup.
10430
10431 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10432
10433 * configure: Regenerate.
10434
10435 2020-02-19 Tom Tromey <tromey@adacore.com>
10436
10437 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10438 NULL check.
10439
10440 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10441
10442 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10443
10444 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10445
10446 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10447 if GDBSERVER is not defined.
10448 (riscv_tdesc_cache): Likewise, also store const target_desc.
10449 (STATIC_IN_GDB): Define.
10450 (riscv_create_target_description): Update declaration with
10451 STATIC_IN_GDB.
10452 (riscv_lookup_target_description): New function, only define if
10453 GDBSERVER is not defined.
10454 * arch/riscv.h (riscv_create_target_description): Declare only
10455 when GDBSERVER is defined.
10456 (riscv_lookup_target_description): New declaration when GDBSERVER
10457 is not defined.
10458 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10459 (riscv_linux_read_features): ...this, and return
10460 riscv_gdbarch_features instead of target_desc.
10461 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10462 (riscv_linux_read_description): Rename to...
10463 (riscv_linux_read_features): ...this.
10464 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10465 Update to use riscv_gdbarch_features and
10466 riscv_lookup_target_description.
10467 * riscv-tdep.c (riscv_find_default_target_description): Use
10468 riscv_lookup_target_description instead of
10469 riscv_create_target_description.
10470
10471 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10472
10473 * valprint.c (generic_val_print_enum_1): When printing a flag
10474 enum with value 0 and there is no enumerator with value 0, print
10475 just "0" instead of "(unknown: 0x0)".
10476
10477 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10478
10479 * valprint.c (generic_val_print_enum_1): Print unknown part of
10480 flag enum in hex.
10481
10482 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10485 flag enums to contain duplicate enumerators.
10486 * valprint.c (generic_val_print_enum_1): Update comment.
10487
10488 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10489
10490 * dwarf2/read.c: Include "count-one-bits.h".
10491 (update_enumeration_type_from_children): If an enumerator has
10492 multiple bits set, don't treat the enumeration as a "flag enum".
10493 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10494 of flag enums have 0 or 1 bit set.
10495
10496 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10497
10498 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10499 conversion.
10500 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10501 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10502 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10503 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10504 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10505
10506 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10507
10508 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10509
10510 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10513 displaced_step_closure_up.
10514 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10515 (struct displaced_step_closure_up):
10516 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10517 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10518 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10519 Likewise.
10520 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10521 * gdbarch.c, gdbarch.h: Re-generate.
10522 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10523 displaced_step_closure_up.
10524 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10525 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10526 * infrun.h (displaced_step_closure_up): New type alias.
10527 (struct displaced_step_inferior_state) <step_closure>: Change
10528 type to displaced_step_closure_up.
10529 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10530 displaced_step_closure_up.
10531 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10532
10533 2020-02-14 Tom Tromey <tom@tromey.com>
10534
10535 * minidebug.c (gnu_debug_key): New global.
10536 (find_separate_debug_file_in_section): Use it.
10537
10538 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10539
10540 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10541 std::unique_ptr.
10542 * gdbarch.c: Re-generate.
10543 * gdbarch.h: Re-generate.
10544 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10545 change.
10546 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10547 type to std::unique_ptr.
10548 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10549 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10550 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10551 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10552 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10553 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10554 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10555 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10556 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10557
10558 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10559
10560 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10561 std::unique_ptr.
10562 (displaced_step_clear): Rename to...
10563 (displaced_step_reset): ... this. Just call displaced->reset ().
10564 (displaced_step_clear_cleanup): Rename to...
10565 (displaced_step_reset_cleanup): ... this.
10566 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10567 (displaced_step_fixup): Likewise.
10568 (resume_1): Likewise.
10569 (handle_inferior_event): Restore child's memory before calling
10570 displaced_step_fixup on the parent.
10571 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10572 to std::unique_ptr.
10573 <step_closure>: Change type to std::unique_ptr.
10574
10575 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10576
10577 * arm-tdep.c: Include count-one-bits.h.
10578 (cleanup_block_store_pc): Use count_one_bits.
10579 (cleanup_block_load_pc): Use count_one_bits.
10580 (arm_copy_block_xfer): Use count_one_bits.
10581 (thumb2_copy_block_xfer): Use count_one_bits.
10582 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10583 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10584 (thumb_get_next_pcs_raw): Use count_one_bits.
10585 (arm_get_next_pcs_raw): Use count_one_bits_l.
10586 * arch/arm.c (bitcount): Remove.
10587 * arch/arm.h (bitcount): Remove.
10588
10589 2020-02-14 Tom Tromey <tromey@adacore.com>
10590
10591 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10592 Update.
10593 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10594 * dwarf2/loc.c (call_site_find_chain_1): Return
10595 unique_xmalloc_ptr.
10596 (call_site_find_chain): Likewise.
10597
10598 2020-02-14 Richard Biener <rguenther@suse.de>
10599
10600 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10601 on expression with division operators.
10602
10603 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10604
10605 * MAINTAINERS (Write After Approval): Adding myself.
10606
10607 2020-02-12 Tom Tromey <tom@tromey.com>
10608
10609 * event-loop.c (event_data, gdb_event, event_handler_func):
10610 Remove.
10611
10612 2020-02-12 Tom Tromey <tom@tromey.com>
10613
10614 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10615 (dwarf2_frame_objfile_data): Add comment.
10616 (find_comp_unit, set_comp_unit): New functions.
10617 (dwarf2_frame_find_fde): Use find_comp_unit.
10618 (dwarf2_build_frame_info): Use set_comp_unit.
10619
10620 2020-02-12 Tom Tromey <tom@tromey.com>
10621
10622 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10623 (comp_unit): Don't initialize objfile.
10624 (execute_cfa_program): Add text_offset parameter.
10625 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10626 (dwarf2_frame_cache): Update.
10627 (dwarf2_build_frame_info): Don't set "objfile" member.
10628
10629 2020-02-12 Tom Tromey <tom@tromey.com>
10630
10631 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10632 (decode_frame_entry): Likewise.
10633 (dwarf2_build_frame_info): Update.
10634
10635 2020-02-12 Tom Tromey <tom@tromey.com>
10636
10637 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10638 (decode_frame_entry_1): Use the comp_unit obstack.
10639
10640 2020-02-12 Tom Tromey <tom@tromey.com>
10641
10642 * dwarf2/frame.c (struct comp_unit): Add initializers and
10643 constructor.
10644 (dwarf2_frame_objfile_data): Store a comp_unit.
10645 (dwarf2_frame_find_fde): Update.
10646 (dwarf2_build_frame_info): Use "new".
10647
10648 2020-02-12 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10651 (dwarf2_fde_table): Typedef for std::vector.
10652 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10653 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10654 (decode_frame_entry): Update.
10655 (dwarf2_build_frame_info): Use "new".
10656
10657 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10658
10659 * arm-tdep.c (arm_gdbarch_init): Update.
10660 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10661 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10662 have_neon, is_m>: Change to bool.
10663
10664 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10665
10666 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10667
10668 2020-02-12 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10671
10672 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10673
10674 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10675 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10676
10677 2020-02-11 Tom Tromey <tom@tromey.com>
10678
10679 * psymtab.h: Update comment.
10680
10681 2020-02-11 Tom Tromey <tom@tromey.com>
10682
10683 * gdb_obstack.h (struct auto_obstack): Use
10684 DISABLE_COPY_AND_ASSIGN.
10685
10686 2020-02-11 Tom Tromey <tom@tromey.com>
10687
10688 * dwarf2/frame.h (struct objfile): Don't forward declare.
10689
10690 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10691
10692 * cris-tdep.c (cris_supply_gregset): Change signature to match
10693 what struct regset expects.
10694 (cris_regset): New struct.
10695 (fetch_core_registers): Remove.
10696 (cris_iterate_over_regset_sections): New function.
10697 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10698 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10699
10700 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10701
10702 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10703 registers.
10704
10705 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10706
10707 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10708
10709 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10710
10711 * configure: Re-generate.
10712
10713 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10714
10715 * configure: Re-generate.
10716
10717 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10718
10719 * acinclude: Update warning.m4 path.
10720 * warning.m4: Move to gdbsupport.
10721
10722 2020-02-11 Tom Tromey <tromey@adacore.com>
10723
10724 * remote.c (remote_console_output): Update.
10725 * printcmd.c (printf_command): Update.
10726 * event-loop.c (gdb_wait_for_event): Update.
10727 * linux-nat.c (sigchld_handler): Update.
10728 * remote-sim.c (gdb_os_write_stdout): Update.
10729 (gdb_os_flush_stdout): Update.
10730 (gdb_os_flush_stderr): Update.
10731 (gdb_os_write_stderr): Update.
10732 * exceptions.c (print_exception): Update.
10733 * remote-fileio.c (remote_fileio_func_read): Update.
10734 (remote_fileio_func_write): Update.
10735 * tui/tui.c (tui_enable): Update.
10736 * tui/tui-interp.c (tui_interp::init): Update.
10737 * utils.c (init_page_info): Update.
10738 (putchar_unfiltered, fputc_unfiltered): Update.
10739 (gdb_flush): Update.
10740 (emit_style_escape): Update.
10741 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10742 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10743 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10744 (stderr_file::write): Update.
10745 (stderr_file::puts): Update.
10746 * ui-file.h (ui_file_isatty, ui_file_write)
10747 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10748 (ui_file_puts): Don't declare.
10749
10750 2020-02-10 Tom de Vries <tdevries@suse.de>
10751
10752 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10753 sentinel to char *.
10754
10755 2020-02-09 Tom de Vries <tdevries@suse.de>
10756
10757 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10758 filename if it matches "<artificial>".
10759
10760 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10761
10762 * windows-tdep.c (struct enum_value_name): New struct.
10763 (create_enum): New function.
10764 (windows_get_siginfo_type): Create and use enum types.
10765
10766 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10767
10768 * NEWS: Mention $_siginfo support for Windows.
10769 * windows-nat.c (handle_exception): Set siginfo_er.
10770 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10771 (windows_xfer_siginfo): New function.
10772 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10773 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10774 (init_windows_gdbarch_data): New function.
10775 (get_windows_gdbarch_data): New function.
10776 (windows_get_siginfo_type): New function.
10777 (windows_init_abi): Register windows_get_siginfo_type.
10778 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10779
10780 2020-02-08 Tom Tromey <tom@tromey.com>
10781
10782 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10783 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10784 <keep>: Declare method.
10785 <m_keep>: Remove member.
10786 <~cutu_reader>: Remove.
10787 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10788 (cutu_reader::cutu_reader): Update.
10789 (cutu_reader::keep): Rename from ~cutu_reader.
10790 (process_psymtab_comp_unit, build_type_psymtabs_1)
10791 (process_skeletonless_type_unit, load_partial_comp_unit)
10792 (load_full_comp_unit, dwarf2_read_addr_index)
10793 (read_signatured_type): Update.
10794
10795 2020-02-08 Tom Tromey <tom@tromey.com>
10796
10797 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10798 "want_partial_unit" parameter.
10799 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10800 Inline check for DW_TAG_partial_unit.
10801 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10802
10803 2020-02-08 Tom Tromey <tom@tromey.com>
10804
10805 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10806 read.c.
10807 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10808 read.c.
10809
10810 2020-02-08 Tom Tromey <tom@tromey.com>
10811
10812 * dwarf2/read.c (read_address): Move to comp-unit.c.
10813 (dwarf2_rnglists_process, dwarf2_ranges_process)
10814 (read_attribute_value, dwarf_decode_lines_1)
10815 (var_decode_location, decode_locdesc): Update.
10816 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10817 read.c. Remove "cu" parameter.
10818 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10819 method.
10820
10821 2020-02-08 Tom Tromey <tom@tromey.com>
10822
10823 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10824 (read_indirect_line_string): Update.
10825 * dwarf2/comp-unit.c (read_offset): Remove.
10826 (read_comp_unit_head): Update.
10827 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10828 method.
10829 (read_offset): Don't declare.
10830
10831 2020-02-08 Tom Tromey <tom@tromey.com>
10832
10833 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10834 * dwarf2/read.c (struct comp_unit_head): Move to
10835 dwarf2/comp-unit.h.
10836 (enum class rcuh_kind): Move to comp-unit.h.
10837 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10838 (read_comp_unit_head, error_check_comp_unit_head)
10839 (read_and_check_comp_unit_head): Move to comp-unit.c.
10840 (read_offset, dwarf_unit_type_name): Likewise.
10841 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10842 (cutu_reader::cutu_reader, read_call_site_scope)
10843 (find_partial_die, follow_die_offset): Update.
10844 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10845
10846 2020-02-08 Tom Tromey <tom@tromey.com>
10847
10848 * dwarf2/read.c (read_offset_1): Move to leb.c.
10849 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10850 (dwarf_decode_macro_bytes): Update.
10851 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10852 * dwarf2/leb.h (read_offset): Declare.
10853
10854 2020-02-08 Tom Tromey <tom@tromey.com>
10855
10856 * dwarf2/read.c (dwarf2_section_size): Remove.
10857 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10858 Update.
10859 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10860
10861 2020-02-08 Tom Tromey <tom@tromey.com>
10862
10863 * dwarf2/read.c (read_initial_length): Move to leb.c.
10864 * dwarf2/leb.h (read_initial_length): Declare.
10865 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10866 handle_nonstd parameter.
10867 * dwarf2/frame.c (read_initial_length): Remove.
10868 (decode_frame_entry_1): Update.
10869
10870 2020-02-08 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2/loc.c (dwarf2_find_location_expression)
10873 (dwarf_evaluate_loc_desc::get_tls_address)
10874 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10875 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10876 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10877 (dwarf2_compile_property_to_c)
10878 (dwarf2_loc_desc_get_symbol_read_needs)
10879 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10880 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10881 (loclist_describe_location, loclist_tracepoint_var_ref)
10882 (loclist_generate_c_location): Update.
10883 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10884 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10885 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10886 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10887 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10888 (dwarf2_per_cu_data::addr_size)
10889 (dwarf2_per_cu_data::ref_addr_size)
10890 (dwarf2_per_cu_data::text_offset)
10891 (dwarf2_per_cu_data::addr_type): Now methods.
10892 (per_cu_header_read_in): Make per_cu "const".
10893 (dwarf2_version): Remove.
10894 (dwarf2_per_cu_data::int_type): Now a method.
10895 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10896 (set_die_type, read_array_type, read_subrange_index_type)
10897 (read_tag_string_type, read_subrange_type): Update.
10898 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10899 offset_size, ref_addr_size, text_offset, addr_type, version,
10900 objfile, int_type, addr_sized_int_type>: Declare methods.
10901
10902 2020-02-08 Tom Tromey <tom@tromey.com>
10903
10904 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10905 Move earlier.
10906
10907 2020-02-08 Tom Tromey <tom@tromey.com>
10908
10909 * dwarf2/read.h (dwarf_line_debug): Declare.
10910 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10911 * dwarf2/read.c: Move line_header code to new files.
10912 (dwarf_line_debug): No longer static.
10913 * dwarf2/line-header.c: New file.
10914 * dwarf2/line-header.h: New file.
10915
10916 2020-02-08 Tom Tromey <tom@tromey.com>
10917
10918 * dwarf2/read.c (struct line_header) <file_full_name,
10919 file_file_name>: Return unique_xmalloc_ptr.
10920 (line_header::file_file_name): Update.
10921 (line_header::file_full_name): Update.
10922 (dw2_get_file_names_reader): Update.
10923 (macro_start_file): Update.
10924
10925 2020-02-08 Tom Tromey <tom@tromey.com>
10926
10927 * dwarf2/read.c (struct line_header) <file_full_name,
10928 file_file_name>: Declare methods.
10929 (dw2_get_file_names_reader): Update.
10930 (file_file_name): Now a method.
10931 (file_full_name): Likewise.
10932 (macro_start_file): Update.
10933
10934 2020-02-08 Tom Tromey <tom@tromey.com>
10935
10936 * dwarf2/read.c (dwarf_always_disassemble)
10937 (show_dwarf_always_disassemble): Move to loc.c.
10938 (_initialize_dwarf2_read): Move "always-disassemble" registration
10939 to loc.c.
10940 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10941 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10942 static.
10943 (show_dwarf_always_disassemble): Move from read.c.
10944 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10945
10946 2020-02-08 Tom Tromey <tom@tromey.com>
10947
10948 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10949 (create_quick_file_names_table): Return htab_up.
10950 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10951 Update.
10952 * dwarf2/read.h (struct dwarf2_per_objfile)
10953 <quick_file_names_table>: Now htab_up.
10954
10955 2020-02-08 Tom Tromey <tom@tromey.com>
10956
10957 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10958
10959 2020-02-08 Tom Tromey <tom@tromey.com>
10960
10961 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10962 Rewrite.
10963 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10964 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10965 (abbrev_table::abbrev_table): No longer inline.
10966 (ABBREV_HASH_SIZE): Remove.
10967 (abbrev_table::m_abbrevs): Now an htab_up.
10968
10969 2020-02-08 Tom Tromey <tom@tromey.com>
10970
10971 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10972 (cutu_reader): Update.
10973 (build_type_psymtabs_1): Update.
10974 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10975 (abbrev_table::alloc_abbrev): Update.
10976 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10977 (abbrev_table::read): New static method, renamed from
10978 abbrev_table_read_table.
10979 (abbrev_table::alloc_abbrev)
10980 (abbrev_table::add_abbrev): Now private.
10981 (abbrev_table::abbrev_table): Now private.
10982 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10983
10984 2020-02-08 Tom Tromey <tom@tromey.com>
10985
10986 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10987 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10988 htab_up.
10989
10990 2020-02-08 Tom Tromey <tom@tromey.com>
10991
10992 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10993 htab_up.
10994 (lookup_dwo_unit_in_dwp): Update.
10995 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10996 on obstack.
10997
10998 2020-02-08 Tom Tromey <tom@tromey.com>
10999
11000 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11001 obstack.
11002
11003 2020-02-08 Tom Tromey <tom@tromey.com>
11004
11005 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11006 line_header_hash.
11007 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11008 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11009 Change type to htab_up.
11010
11011 2020-02-08 Tom Tromey <tom@tromey.com>
11012
11013 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11014 htab_up. Don't allocate on obstack.
11015 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11016 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11017 Change type to htab_up.
11018
11019 2020-02-08 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11022 Change type to htab_up.
11023 * dwarf2/read.c (create_signatured_type_table_from_index)
11024 (create_signatured_type_table_from_debug_names)
11025 (create_all_type_units, add_type_unit)
11026 (lookup_dwo_signatured_type, lookup_signatured_type)
11027 (process_skeletonless_type_unit): Update.
11028 (create_debug_type_hash_table, create_debug_types_hash_table):
11029 Change type of types_htab.
11030 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11031 htab_up. Don't allocate on obstack.
11032 (create_cus_hash_table): Change type of cus_htab parameter.
11033 (struct dwo_file) <cus, tus>: Now htab_up.
11034 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11035 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11036 (queue_and_load_all_dwo_tus): Update.
11037 * dwarf2/index-write.c (write_gdbindex): Update.
11038 (write_debug_names): Update.
11039
11040 2020-02-08 Tom Tromey <tom@tromey.com>
11041
11042 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11043 dwarf2/read.c. Remove "next" member. Add constructor ntad
11044 destructor.
11045 (struct dwarf2_per_objfile) <queue>: New member.
11046 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11047 dwarf2/read.h.
11048 (dwarf2_queue, dwarf2_queue_tail): Remove.
11049 (class dwarf2_queue_guard): Add parameter to constructor. Use
11050 DISABLE_COPY_AND_ASSIGN.
11051 <m_per_objfile>: New member.
11052 <~dwarf2_queue_guard>: Rewrite.
11053 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11054 Update.
11055 (~dwarf2_queue_item): New.
11056
11057 2020-02-08 Tom Tromey <tom@tromey.com>
11058
11059 * dwarf2/read.c (struct die_info) <has_children>: New member.
11060 (dw2_get_file_names_reader): Remove has_children.
11061 (dw2_get_file_names): Update.
11062 (read_cutu_die_from_dwo): Remove has_children.
11063 (cutu_reader::init_tu_and_read_dwo_dies)
11064 (cutu_reader::cutu_reader): Update.
11065 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11066 Remove has_children.
11067 (build_type_psymtabs_1, process_skeletonless_type_unit)
11068 (load_partial_comp_unit, load_full_comp_unit): Update.
11069 (create_dwo_cu_reader): Remove has_children.
11070 (create_cus_hash_table, read_die_and_children): Update.
11071 (read_full_die_1,read_full_die): Remove has_children.
11072 (read_signatured_type): Update.
11073 (class cutu_reader) <has_children>: Remove.
11074
11075 2020-02-08 Tom Tromey <tom@tromey.com>
11076
11077 * dwarf2/expr.c: Rename from dwarf2expr.c.
11078 * dwarf2/expr.h: Rename from dwarf2expr.h.
11079 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11080 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11081 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11082 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11083 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11084 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11085 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11086 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11087 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11088 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11089 * dwarf2/loc.c: Rename from dwarf2loc.c.
11090 * dwarf2/loc.h: Rename from dwarf2loc.h.
11091 * dwarf2/read.c: Rename from dwarf2read.c.
11092 * dwarf2/read.h: Rename from dwarf2read.h.
11093 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11094 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11095 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11096 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11097 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11098 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11099 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11100 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11101 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11102 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11103 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11104 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11105 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11106 Update.
11107 * Makefile.in (COMMON_SFILES): Update.
11108 (HFILES_NO_SRCDIR): Update.
11109
11110 2020-02-08 Tom Tromey <tom@tromey.com>
11111
11112 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11113 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11114
11115 2020-02-08 Tom Tromey <tom@tromey.com>
11116
11117 * dwarf2read.h (struct die_info): Don't declare.
11118
11119 2020-02-08 Tom Tromey <tom@tromey.com>
11120
11121 * dwarf2read.h (die_info_ptr): Remove typedef.
11122
11123 2020-02-08 Tom Tromey <tom@tromey.com>
11124
11125 * dwarf2read.c (read_call_site_scope)
11126 (handle_data_member_location, dwarf2_add_member_fn)
11127 (mark_common_block_symbol_computed, read_common_block)
11128 (attr_to_dynamic_prop, partial_die_info::read)
11129 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11130 (dwarf2_symbol_mark_computed, set_die_type): Update.
11131 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11132 method.
11133 (attr_form_is_block): Don't declare.
11134 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11135
11136 2020-02-08 Tom Tromey <tom@tromey.com>
11137
11138 * dwarf2read.c (dwarf2_find_base_address, )
11139 (read_call_site_scope, rust_containing_type)
11140 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11141 (handle_data_member_location, dwarf2_add_member_fn)
11142 (get_alignment, read_structure_type, process_structure_scope)
11143 (mark_common_block_symbol_computed, read_common_block)
11144 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11145 (partial_die_info::read, read_attribute_value, new_symbol)
11146 (lookup_die_type, dwarf2_get_ref_die_offset)
11147 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11148 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11149 (dwarf2_symbol_mark_computed): Update.
11150 * dwarf2/attribute.h (struct attribute) <value_as_address,
11151 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11152 methods.
11153 (value_as_address, attr_form_is_section_offset)
11154 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11155 * dwarf2/attribute.c (attribute::value_as_address)
11156 (attribute::form_is_section_offset, attribute::form_is_constant)
11157 (attribute::form_is_ref): Now methods.
11158
11159 2020-02-08 Tom Tromey <tom@tromey.com>
11160
11161 * dwarf2read.c (struct attribute, DW_STRING)
11162 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11163 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11164 (attr_form_is_block, attr_form_is_section_offset)
11165 (attr_form_is_constant, attr_form_is_ref): Move.
11166 * dwarf2/attribute.h: New file.
11167 * dwarf2/attribute.c: New file, from dwarf2read.c.
11168 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11169
11170 2020-02-08 Tom Tromey <tom@tromey.com>
11171
11172 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11173 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11174 Move.
11175 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11176 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11177 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11178 abbrev.c.
11179 * dwarf2/abbrev.h: New file.
11180 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11181 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11182
11183 2020-02-08 Tom Tromey <tom@tromey.com>
11184
11185 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11186 (dwarf2_section_size, dwarf2_get_section_info)
11187 (create_signatured_type_table_from_debug_names)
11188 (create_addrmap_from_aranges, read_debug_names_from_section)
11189 (get_gdb_index_contents_from_section, read_comp_unit_head)
11190 (error_check_comp_unit_head, read_abbrev_offset)
11191 (create_debug_type_hash_table, init_cu_die_reader)
11192 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11193 (read_comp_units_from_section, create_cus_hash_table)
11194 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11195 (create_dwp_v2_section, dwarf2_rnglists_process)
11196 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11197 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11198 (read_indirect_string_from_dwz, read_addr_index_1)
11199 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11200 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11201 (fill_in_loclist_baton): Update.
11202 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11203 get_containing_section, get_bfd_owner, get_bfd_section,
11204 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11205 (dwarf2_read_section, get_section_name, get_section_file_name)
11206 (get_containing_section, get_section_bfd_owner)
11207 (get_section_bfd_section, get_section_name, get_section_file_name)
11208 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11209 declare.
11210 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11211 (dwarf2_section_info::get_bfd_owner)
11212 (dwarf2_section_info::get_bfd_section)
11213 (dwarf2_section_info::get_name)
11214 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11215 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11216 (dwarf2_section_info::read): Now methods.
11217 * dwarf-index-write.c (class debug_names): Update.
11218
11219 2020-02-08 Tom Tromey <tom@tromey.com>
11220
11221 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11222 Move to dwarf2/section.h.
11223 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11224 (get_section_bfd_section, get_section_name)
11225 (get_section_file_name, get_section_id, get_section_flags)
11226 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11227 dwarf2/section.c.
11228 * dwarf2/section.h: New file.
11229 * dwarf2/section.c: New file, from dwarf2read.c.
11230 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11231
11232 2020-02-08 Tom Tromey <tom@tromey.com>
11233
11234 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11235 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11236 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11237 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11238 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11239 * dwarf2/leb.h: New file, from dwarf2read.c.
11240 * dwarf2/leb.c: New file, from dwarf2read.c.
11241 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11242 Remove.
11243 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11244 (COMMON_SFILES): Add dwarf2/leb.c.
11245
11246 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11247
11248 GDB 9.1 released.
11249
11250 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11251
11252 PR gdb/25190:
11253 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11254 * gdb/remote.c (remote_console_output): Update.
11255 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11256 (ui_file_puts): ...this.
11257 * gdb/ui-file.h (ui_file_puts): Add declaration.
11258 * gdb/utils.c (emit_style_escape): Update.
11259 (flush_wrap_buffer): Update.
11260 (fputs_maybe_filtered): Update.
11261 (fputs_unfiltered): Add function.
11262
11263 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11264
11265 * gdb/event-loop.c (gdb_wait_for_event): Update.
11266 * gdb/printcmd.c (printf_command): Update.
11267 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11268 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11269 (gdb_os_flush_stderr): Update.
11270 * gdb/remote.c (remote_console_output): Update.
11271 * gdb/ui-file.c (gdb_flush): Rename to...
11272 (ui_file_flush): ...this.
11273 (stderr_file::write): Update.
11274 (stderr_file::puts): Update.
11275 * gdb/ui-file.h (gdb_flush): Rename to...
11276 (ui_file_flush): ...this.
11277 * gdb/utils.c (gdb_flush): Add function.
11278 * gdb/utils.h (gdb_flush): Add declaration.
11279
11280 2020-02-07 Tom Tromey <tromey@adacore.com>
11281
11282 PR breakpoints/24915:
11283 * source.c (find_and_open_source): Do not check basenames_may_differ.
11284
11285 2020-02-07 Tom Tromey <tom@tromey.com>
11286
11287 * README: Update gdbserver documentation.
11288 * gdbserver: Move to top level.
11289 * configure.tgt (build_gdbserver): Remove.
11290 * configure.ac: Remove --enable-gdbserver.
11291 * configure: Rebuild.
11292 * Makefile.in (distclean): Don't mention gdbserver.
11293
11294 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11295
11296 * source-cache.c (source_cache::ensure): Surround
11297 get_plain_source_lines with a try/catch.
11298 (source_cache::get_line_charpos): Get rid of try/catch
11299 and only check for the return value of "ensure".
11300 * tui/tui-source.c (tui_source_window::set_contents):
11301 Simplify "nlines" calculation.
11302
11303 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11304
11305 * MAINTAINERS (Write After Approval): Add myself.
11306
11307 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11308
11309 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11310 function call.
11311
11312 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11313
11314 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11315
11316 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11317
11318 * nat/riscv-linux-tdesc.h: New file.
11319 * nat/riscv-linux-tdesc.c: New file, taking code from...
11320 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11321 ... here.
11322 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11323 NATDEPFILES.
11324
11325 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11326
11327 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11328 we don't set the fake simulator ptid to the null_ptid.
11329
11330 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11331
11332 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11333 * gdbthread.h (class thread_info) <resumed>: Likewise.
11334 * infrun.c (resume_1): Likewise.
11335 (proceed): Likewise.
11336 (infrun_thread_stop_requested): Likewise.
11337 (stop_all_threads): Likewise.
11338 (handle_inferior_event): Likewise.
11339 (restart_threads): Likewise.
11340 (finish_step_over): Likewise.
11341 (keep_going_stepped_thread): Likewise.
11342 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11343 (linux_handle_extended_wait): Likewise.
11344 * record-btrace.c (get_thread_current_frame_id): Likewise.
11345 * record-full.c (record_full_wait_1): Likewise.
11346 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11347 * target.c (target_resume): Likewise.
11348 * thread.c (set_running_thread): Likewise.
11349
11350 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11351
11352 * f-valprint.c (f77_print_array_1): Changed datatype of index
11353 variable to LONGEST from int to enable it to contain bound
11354 values correctly.
11355
11356 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11357
11358 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11359 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11360 offsets according to FLEN determined.
11361 (riscv_linux_nat_target::read_description): Determine FLEN
11362 dynamically.
11363 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11364 according to FLEN determined.
11365 (riscv_linux_nat_target::store_registers): Likewise.
11366
11367 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11368
11369 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11370 when reg->group is empty and reggroup is not.
11371
11372 2020-01-31 Tom Tromey <tromey@adacore.com>
11373
11374 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11375 Call beneath target's mourn_inferior after unpushing.
11376
11377 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11378
11379 PR tui/9765
11380 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11381 have enough lines to fill the screen, still return the lowest
11382 address we found.
11383
11384 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11385
11386 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11387 '-', '<', and '>' commands.
11388
11389 2020-01-29 Pedro Alves <palves@redhat.com>
11390 Sergio Durigan Junior <sergiodj@redhat.com>
11391
11392 * infcmd.c (construct_inferior_arguments): Assert that
11393 'argc' is greater than 0.
11394
11395 2020-01-29 Luis Machado <luis.machado@linaro.org>
11396
11397 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11398 (BRK_INSN_MASK): Define to 0xd4200000.
11399 (aarch64_program_breakpoint_here_p): New function.
11400 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11401 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11402 breakpoint.c.
11403 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11404 breakpoint.h
11405 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11406 call gdbarch_program_breakpoint_here_p.
11407 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11408 default_program_breakpoint_here_p, changed return type to bool and
11409 simplified.
11410 * breakpoint.h (program_breakpoint_here): Moved prototype to
11411 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11412 return type to bool.
11413 * gdbarch.c: Regenerate.
11414 * gdbarch.h: Regenerate.
11415 * gdbarch.sh (program_breakpoint_here_p): New method.
11416 * infrun.c (handle_signal_stop): Call
11417 gdbarch_program_breakpoint_here_p.
11418
11419 2020-01-26 Tom Tromey <tom@tromey.com>
11420
11421 * ctfread.c (struct ctf_fp_info): Reindent.
11422 (_initialize_ctfread): Remove.
11423
11424 2020-01-26 Tom Tromey <tom@tromey.com>
11425
11426 * psymtab.c (partial_map_expand_apply)
11427 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11428 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11429 (psym_print_stats, psym_expand_symtabs_for_function)
11430 (psym_map_symbol_filenames, psym_map_matching_symbols)
11431 (psym_expand_symtabs_matching)
11432 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11433 (maintenance_check_psymtabs): Use new methods.
11434 * psympriv.h (struct partial_symtab) <readin_p,
11435 get_compunit_symtab>: New methods.
11436 <readin, compunit_symtab>: Remove members.
11437 (struct standard_psymtab): New.
11438 (struct legacy_psymtab): Derive from standard_psymtab.
11439 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11440 standard_psymtab.
11441 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11442
11443 2020-01-26 Tom Tromey <tom@tromey.com>
11444
11445 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11446 read_dependencies. Add assert.
11447 * psymtab.c (partial_symtab::read_dependencies): New method.
11448 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11449 method.
11450 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11451 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11452 read_dependencies.
11453 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11454 Add assert.
11455
11456 2020-01-26 Tom Tromey <tom@tromey.com>
11457
11458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11459 Call expand_psymtab.
11460 (xcoff_read_symtab): Call expand_psymtab.
11461 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11462 legacy_expand_psymtab.
11463 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11464 method.
11465 (struct legacy_psymtab) <expand_psymtab>: Implement.
11466 <legacy_expand_psymtab>: New member.
11467 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11468 (parse_partial_symbols): Set legacy_expand_psymtab.
11469 (psymtab_to_symtab_1): Change argument order. Call
11470 expand_psymtab.
11471 (new_psymtab): Set legacy_expand_psymtab.
11472 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11473 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11474 expand_psymtab.
11475 (dwarf2_psymtab::expand_psymtab): Rename from
11476 psymtab_to_symtab_1. Call expand_psymtab.
11477 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11478 (dbx_end_psymtab): Likewise.
11479 (dbx_psymtab_to_symtab_1): Change argument order. Call
11480 expand_psymtab.
11481 (dbx_read_symtab): Call expand_psymtab.
11482 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11483 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11484 (ctf_psymtab::read_symtab): Call expand_psymtab.
11485
11486 2020-01-26 Tom Tromey <tom@tromey.com>
11487
11488 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11489 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11490 messages.
11491 * mdebugread.c (mdebug_read_symtab): Remove prints.
11492 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11493 assert.
11494 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11495
11496 2020-01-26 Tom Tromey <tom@tromey.com>
11497
11498 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11499 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11500 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11501 legacy_symtab.
11502 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11503 * psymtab.c (psymtab_to_symtab): Call method.
11504 (dump_psymtab): Update.
11505 * psympriv.h (struct partial_symtab): Add virtual destructor.
11506 <read_symtab>: New method.
11507 (struct legacy_symtab): New.
11508 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11509 (struct pst_map) <pst>: Now a legacy_psymtab.
11510 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11511 (new_psymtab): Use legacy_psymtab.
11512 * dwarf2read.h (struct dwarf2_psymtab): New.
11513 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11514 * dwarf2read.c (dwarf2_create_include_psymtab)
11515 (dwarf2_build_include_psymtabs, create_type_unit_group)
11516 (create_partial_symtab, process_psymtab_comp_unit_reader)
11517 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11518 (set_partial_user): Use dwarf2_psymtab.
11519 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11520 (psymtab_to_symtab_1, process_full_comp_unit)
11521 (process_full_type_unit, dwarf2_ranges_read)
11522 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11523 (dwarf_decode_lines): Use dwarf2_psymtab.
11524 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11525 (add_address_entry_worker, write_one_signatured_type)
11526 (recursively_count_psymbols, recursively_write_psymbols)
11527 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11528 (write_debug_names): Likewise.
11529 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11530 <pst>: Now a legacy_psymtab.
11531 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11532 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11533 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11534 * ctfread.c (struct ctf_psymtab): New.
11535 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11536 ctf_psymtab.
11537 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11538 (create_partial_symtab): Return a ctf_psymtab.
11539 (scan_partial_symbols): Update.
11540
11541 2020-01-26 Tom Tromey <tom@tromey.com>
11542
11543 * xcoffread.c (xcoff_start_psymtab): Use new.
11544 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11545 renamed from start_psymtab_common.
11546 * psympriv.h (struct partial_symtab): Add new constructor.
11547 (start_psymtab_common): Don't declare.
11548 * mdebugread.c (parse_partial_symbols): Use new.
11549 * dwarf2read.c (create_partial_symtab): Use new.
11550 * dbxread.c (start_psymtab): Use new.
11551 * ctfread.c (create_partial_symtab): Use new.
11552
11553 2020-01-26 Tom Tromey <tom@tromey.com>
11554
11555 * xcoffread.c (xcoff_end_psymtab): Use new.
11556 * psymtab.c (start_psymtab_common): Use new.
11557 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11558 Update.
11559 * psympriv.h (struct partial_symtab): Add parameters to
11560 constructor. Don't inline.
11561 (allocate_psymtab): Don't declare.
11562 * mdebugread.c (new_psymtab): Use new.
11563 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11564 * dbxread.c (dbx_end_psymtab): Use new.
11565
11566 2020-01-26 Tom Tromey <tom@tromey.com>
11567
11568 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11569 allocate_psymtab. Update documentation.
11570 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11571 allocate_psymtab. Do not use new.
11572 (allocate_psymtab): Use new. Update.
11573
11574 2020-01-26 Tom Tromey <tom@tromey.com>
11575
11576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11577 * psymtab.c (psym_print_stats): Update.
11578 * psympriv.h (struct partial_symtab) <readin,
11579 psymtabs_addrmap_supported, anonymous>: Now bool.
11580 * mdebugread.c (psymtab_to_symtab_1): Update.
11581 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11582 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11583 (process_full_comp_unit, process_full_type_unit): Update.
11584 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11585 * ctfread.c (psymtab_to_symtab): Update.
11586
11587 2020-01-26 Tom Tromey <tom@tromey.com>
11588
11589 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11590 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11591 * psymtab.c (psymtab_storage): Delete psymtabs.
11592 (psymtab_storage::allocate_psymtab): Use new.
11593 (psymtab_storage::discard_psymtab): Use delete.
11594 * psympriv.h (struct partial_symtab): Add constructor and
11595 initializers.
11596
11597 2020-01-26 Tom Tromey <tom@tromey.com>
11598
11599 * machoread.c: Do not include psympriv.h.
11600
11601 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11602
11603 * NEWS: Mention the new option and the set/show commands.
11604
11605 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11606
11607 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11608 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11609 (validate_exec_file): New variables, enums, functions.
11610 (exec_file_locate_attach, print_section_info): Style the filenames.
11611 (_initialize_exec): Install show_exec_file_mismatch_command and
11612 set_exec_file_mismatch_command.
11613 * gdbcore.h (validate_exec_file): Declare.
11614 * infcmd.c (attach_command): Call validate_exec_file.
11615 * remote.c ( remote_target::remote_add_inferior): Likewise.
11616
11617 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11618
11619 * frame.c (find_frame_sal): Move call to get_next_frame into more
11620 inner scope.
11621 * inline-frame.c (inilne_state) <inline_state>: Update argument
11622 types.
11623 (inilne_state) <skipped_symbol>: Rename to...
11624 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11625 (skip_inline_frames): Build vector of skipped symbols and use this
11626 to reate the inline_state.
11627 (inline_skipped_symbol): Add a comment and some assertions, fetch
11628 skipped symbol from the list.
11629
11630 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11631
11632 * buildsym.c (lte_is_less_than): Delete.
11633 (buildsym_compunit::end_symtab_with_blockvector): Create local
11634 lambda function to sort line table entries, and use
11635 std::stable_sort instead of std::sort.
11636 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11637 markers when looking for a previous line.
11638
11639 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11640
11641 * dwarf2read.c (lnp_state_machine::record_line): Include
11642 end_sequence parameter in debug print out. Record the line if we
11643 are at an end_sequence marker even if it's not the start of a
11644 statement.
11645 * symmisc.c (maintenance_print_one_line_table): Print end of
11646 sequence markers with 'END' not '0'.
11647
11648 2020-01-24 Pedro Alves <palves@redhat.com>
11649
11650 PR gdb/25410
11651 * thread.c (scoped_restore_current_thread::restore): Use
11652 switch_to_inferior_no_thread.
11653 * exec.c: Include "progspace-and-thread.h".
11654 (add_target_sections, remove_target_sections):
11655 scoped_restore_current_pspace_and_thread instead of
11656 scoped_restore_current_thread.
11657 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11658 and aspace to the inferior before calling clone_program_space.
11659 Remove stale comment.
11660
11661 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11662
11663 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11664 (arm_netbsd_nat_target::fetch_registers): ...this.
11665 (arm_nbsd_nat_target::store_registers): Rename to...
11666 (arm_netbsd_nat_target::store_registers): ...this.
11667
11668 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11669
11670 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11671 register_t.
11672
11673 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11674
11675 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11676 Update comment.
11677 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11678 Likewise.
11679 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11680 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11681 the correct replacement (iterate_over_regset_sections).
11682 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11683 Update comment.
11684
11685 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11686
11687 PR gdb/23718
11688 * gdb/python/python.c (execute_gdb_command): Call
11689 async_enable_stdin in catch block.
11690
11691 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11692
11693 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11694 SWITCH_THRU_ALL_UIS.
11695
11696 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11697
11698 PR tui/9765
11699 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11700 comment, add extra parameter, and update to store previous symbol
11701 when appropriate.
11702 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11703 add extra parameter.
11704 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11705 remove unneeded parameter, add try/catch around gdb_print_insn,
11706 rewrite to add items to asm_lines vector.
11707 (tui_find_backward_disassembly_start_address): New function.
11708 (tui_find_disassembly_address): Updated throughout.
11709 (tui_disasm_window::set_contents): Update for changes to
11710 tui_disassemble.
11711 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11712 number of lines to scroll.
11713
11714 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11715
11716 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11717 (SECT_OFF_DATA): Likewise.
11718 (SECT_OFF_RODATA): Likewise.
11719 (SECT_OFF_TEXT): Likewise.
11720 (SECT_OFF_BSS): Likewise.
11721 (struct objfile) <text_section_offset, data_section_offset>: New
11722 methods.
11723 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11724 objfile::text_section_offset.
11725 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11726 * coffread.c (coff_symtab_read): Likewise.
11727 (enter_linenos): Likewise.
11728 (process_coff_symbol): Likewise.
11729 * ctfread.c (get_objfile_text_range): Likewise.
11730 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11731 Use objfile::data_section_offset.
11732 * dwarf2-frame.c (execute_cfa_program): Use
11733 objfile::text_section_offset.
11734 (dwarf2_frame_find_fde): Likewise.
11735 * dwarf2read.c (create_addrmap_from_index): Likewise.
11736 (create_addrmap_from_aranges): Likewise.
11737 (dw2_find_pc_sect_compunit_symtab): Likewise.
11738 (process_psymtab_comp_unit_reader): Likewise.
11739 (add_partial_symbol): Likewise.
11740 (add_partial_subprogram): Likewise.
11741 (process_full_comp_unit): Likewise.
11742 (read_file_scope): Likewise.
11743 (read_func_scope): Likewise.
11744 (read_lexical_block_scope): Likewise.
11745 (read_call_site_scope): Likewise.
11746 (dwarf2_rnglists_process): Likewise.
11747 (dwarf2_ranges_process): Likewise.
11748 (dwarf2_ranges_read): Likewise.
11749 (dwarf_decode_lines_1): Likewise.
11750 (new_symbol): Likewise.
11751 (dwarf2_fetch_die_loc_sect_off): Likewise.
11752 (dwarf2_per_cu_text_offset): Likewise.
11753 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11754 * hppa-tdep.c (read_unwind_info): Likewise.
11755 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11756 * psympriv.h (struct partial_symtab): Likewise.
11757 * psymtab.c (find_pc_sect_psymtab): Likewise.
11758 * solib-svr4.c (enable_break): Likewise.
11759 * stap-probe.c (relocate_address): Use
11760 objfile::data_section_offset.
11761 * xcoffread.c (enter_line_range): Use
11762 objfile::text_section_offset.
11763 (read_xcoff_symtab): Likewise.
11764
11765 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11766
11767 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11768 declaration to narrower scopes.
11769
11770 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11771
11772 * darwin-nat.h (struct darwin_exception_msg, enum
11773 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11774 Move up.
11775 (class darwin_nat_target) <wait_1, check_new_threads,
11776 decode_exception_message, decode_message, stop_inferior,
11777 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11778 * darwin-nat.c (darwin_check_new_threads): Rename to...
11779 (darwin_nat_target::check_new_threads): ... this.
11780 (darwin_suspend_inferior_it): Remove.
11781 (darwin_decode_exception_message): Rename to...
11782 (darwin_nat_target::decode_exception_message): ... this.
11783 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11784 (darwin_decode_message): Rename to...
11785 (darwin_nat_target::decode_message): ... this.
11786 (cancel_breakpoint): Rename to...
11787 (darwin_nat_target::cancel_breakpoint): ... this.
11788 (darwin_wait): Rename to...
11789 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11790 instead of iterate_over_inferiors.
11791 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11792 (darwin_stop_inferior): Rename to...
11793 (darwin_nat_target::stop_inferior): ... this.
11794 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11795 (darwin_init_thread_list): Rename to...
11796 (darwin_nat_target::init_thread_list): ... this.
11797 (darwin_ptrace_him): Rename to...
11798 (darwin_nat_target::ptrace_him): ... this.
11799 (darwin_nat_target::create_inferior): Pass lambda function to
11800 fork_inferior.
11801 (darwin_nat_target::detach): Call stop_inferior instead of
11802 darwin_stop_inferior.
11803 * fork-inferior.h (fork_inferior): Change init_trace_fun
11804 parameter to gdb::function_view.
11805 * fork-inferior.c (fork_inferior): Likewise.
11806
11807 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11808
11809 * i386-cygwin-tdep.c (core_process_module_section): Update.
11810 * windows-nat.c (struct lm_info_windows): Add text_offset.
11811 (windows_xfer_shared_libraries): Update.
11812 * windows-tdep.c (windows_xfer_shared_library):
11813 Add text_offset_cached argument.
11814 * windows-tdep.h (windows_xfer_shared_library): Update.
11815
11816 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11817
11818 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11819
11820 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11821
11822 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11823 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11824 replace with range-based for.
11825 (gdbsim_interrupt_inferior): Remove.
11826 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11827 with a range-based for. Inline code from
11828 gdbsim_interrupt_inferior.
11829
11830 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11831
11832 * infrun.c (proceed): Fix indentation.
11833
11834 2020-01-21 Tom Tromey <tromey@adacore.com>
11835
11836 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11837 * python/python.c (python_extension_ops): Update.
11838 (gdbpy_colorize): New function.
11839 * python/lib/gdb/__init__.py (colorize): New function.
11840 * extension.h (ext_lang_colorize): Declare.
11841 * extension.c (ext_lang_colorize): New function.
11842 * extension-priv.h (struct extension_language_ops) <colorize>: New
11843 member.
11844 * cli/cli-style.c (_initialize_cli_style): Update help text.
11845
11846 2020-01-21 Luis Machado <luis.machado@linaro.org>
11847
11848 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11849 <cond>: Change type to bool.
11850 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11851 (aarch64_displaced_step_cb): Likewise.
11852 (aarch64_displaced_step_tb): Likewise.
11853
11854 2020-01-21 Luis Machado <luis.machado@linaro.org>
11855
11856 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11857 output.
11858
11859 2020-01-21 Luis Machado <luis.machado@linaro.org>
11860
11861 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11862 <pc_adjust>: Adjust the documentation.
11863 (aarch64_displaced_step_fixup): Check if PC really moved before
11864 adjusting it.
11865
11866 2020-01-19 Tom Tromey <tom@tromey.com>
11867
11868 * disasm.c (~gdb_disassembler): New destructor.
11869 (gdb_buffered_insn_length): Call disassemble_free_target.
11870 * disasm.h (class gdb_disassembler): Declare destructor. Use
11871 DISABLE_COPY_AND_ASSIGN.
11872
11873 2020-01-19 Tom Tromey <tom@tromey.com>
11874
11875 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11876 (die_reader_func_ftype): Remove.
11877 (cutu_reader): New class.
11878 (dw2_get_file_names_reader): Remove "data" parameter.
11879 (dw2_get_file_names): Use cutu_reader.
11880 (create_debug_type_hash_table): Update.
11881 (read_cutu_die_from_dwo): Update comment.
11882 (lookup_dwo_unit): Add dwo_name parameter.
11883 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11884 die_reader_func_ftype and data parameters.
11885 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11886 Remove die_reader_func_ftype and data parameters.
11887 (~cutu_reader): New; from init_cutu_and_read_dies.
11888 (cutu_reader::cutu_reader): Rename from
11889 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11890 and data parameters.
11891 (init_cutu_and_read_dies_simple): Remove.
11892 (struct process_psymtab_comp_unit_data): Remove.
11893 (process_psymtab_comp_unit_reader): Remove data parameter; add
11894 want_partial_unit and pretend_language parameters.
11895 (process_psymtab_comp_unit): Use cutu_reader.
11896 (build_type_psymtabs_reader): Remove data parameter.
11897 (build_type_psymtabs_1): Use cutu_reader.
11898 (process_skeletonless_type_unit): Likewise.
11899 (load_partial_comp_unit_reader): Remove.
11900 (load_partial_comp_unit): Use cutu_reader.
11901 (load_full_comp_unit_reader): Remove.
11902 (load_full_comp_unit): Use cutu_reader.
11903 (struct create_dwo_cu_data): Remove.
11904 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11905 dwo_unit parameters.
11906 (create_cus_hash_table): Use cutu_reader.
11907 (struct dwarf2_read_addr_index_data): Remove.
11908 (dwarf2_read_addr_index_reader): Remove.
11909 (dwarf2_read_addr_index): Use cutu_reader.
11910 (read_signatured_type_reader): Remove.
11911 (read_signatured_type): Use cutu_reader.
11912
11913 2020-01-19 Tom Tromey <tom@tromey.com>
11914
11915 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11916 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11917 (tui_wrefresh): Declare.
11918 * tui/tui-wingeneral.c (suppress_output): New global.
11919 (tui_suppress_output, ~tui_suppress_output): New constructor and
11920 destructor.
11921 (tui_wrefresh): New function.
11922 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11923 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11924 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11925 method.
11926 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11927 tui_wrefresh.
11928 (tui_data_window::no_refresh): New method.
11929 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11930 (tui_reg_command): Use tui_suppress_output
11931 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11932 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11933 method.
11934 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11935
11936 2020-01-19 Tom Tromey <tom@tromey.com>
11937
11938 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11939 Handle case where symtab is null.
11940
11941 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11942
11943 * linux-fork.c (one_fork_p): Simplify.
11944
11945 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11946
11947 * top.c (struct qt_args): Remove.
11948 (kill_or_detach): Change return type to void, replace `void *`
11949 parameter with a proper one.
11950 (print_inferior_quit_action): Likewise.
11951 (quit_confirm): Use range-based for loop to iterate over inferiors.
11952 (quit_force): Likewise.
11953
11954 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11955
11956 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11957 `void *` parameter with proper parameters.
11958 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11959 (print_one_inferior): Change return type to void, replace `void *`
11960 parameter with proper parameters.
11961 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11962 inferiors.
11963 (get_other_inferior): Remove.
11964 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11965 inferiors.
11966
11967 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11968
11969 * mi/mi-interp.c (report_initial_inferior): Remove.
11970 (mi_interp::init): Use range-based for to iterate over inferiors.
11971
11972 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11973
11974 * python/py-inferior.c (build_inferior_list): Remove.
11975 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11976
11977 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11978
11979 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11980 (btrace_stitch_trace): Likewise.
11981 * charset.c (intermediate_encoding): Likewise (vaild).
11982 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11983 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11984 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11985
11986 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11987
11988 * windows-tdep.c (windows_get_tlb_type):
11989 Add rtl_user_process_parameters type.
11990
11991 2020-01-16 Pedro Alves <palves@redhat.com>
11992 Norbert Lange <nolange79@gmail.com>
11993
11994 PR build/24805
11995 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11996 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11997 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11998 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11999 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12000 (ps_plog): Redeclare exported functions with default visibility.
12001
12002 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12003
12004 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12005 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12006
12007 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12008
12009 * infcmd.c (post_create_inferior): Use get_thread_regcache
12010 instead of get_current_regcache.
12011
12012 2020-01-14 Tom Tromey <tom@tromey.com>
12013
12014 PR symtab/12535:
12015 * python/python.c (gdbpy_decode_line): Treat empty string the same
12016 as no argument.
12017
12018 2020-01-14 Tom Tromey <tom@tromey.com>
12019
12020 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12021
12022 2020-01-14 Tom Tromey <tom@tromey.com>
12023
12024 * nat/linux-btrace.c: Don't include <config.h>.
12025 * nat/linux-ptrace.c: Don't include <config.h>.
12026 * nat/x86-linux-dregs.c: Don't include <config.h>.
12027
12028 2020-01-14 Tom Tromey <tom@tromey.com>
12029
12030 * configure: Rebuild.
12031 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12032
12033 2020-01-14 Tom Tromey <tom@tromey.com>
12034
12035 * nat/x86-linux-dregs.c: Include configh.h.
12036 * nat/linux-ptrace.c: Include configh.h.
12037 * nat/linux-btrace.c: Include configh.h.
12038 * defs.h: Include config.h, bfd.h.
12039 * configure.ac: Don't source common.host.
12040 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12041 * configure: Rebuild.
12042 * acinclude.m4: Update path.
12043 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12044 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12045 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12046 (CLIBS): Add LIBSUPPORT.
12047 (CDEPS): Likewise.
12048 (COMMON_SFILES): Remove gdbsupport files.
12049 (HFILES_NO_SRCDIR): Likewise.
12050 (stamp-version): Update path to create-version.sh.
12051 (ALLDEPFILES): Remove gdbsupport files.
12052
12053 2020-01-14 Tom Tromey <tom@tromey.com>
12054
12055 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12056 USE_WIN32API when needed.
12057 * configure.ac (USE_WIN32API): Don't define.
12058 (WIN32LIBS): Use WIN32APILIBS.
12059 * configure: Rebuild.
12060
12061 2020-01-14 Tom Tromey <tom@tromey.com>
12062
12063 * configure: Rebuild.
12064 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12065
12066 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12067
12068 * skip.c (skip_function_command): Make skip w/o arguments use the
12069 name of the inlined function if pc is inside any inlined function.
12070
12071 2020-01-14 Luis Machado <luis.machado@linaro.org>
12072
12073 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12074 * infrun.c (resume_1): Likewise.
12075 (handle_inferior_event): Remove stale comment.
12076 * linux-nat.c (linux_nat_target::resume): Update comments.
12077 (save_stop_reason): Likewise.
12078 (linux_nat_filter_event): Likewise.
12079 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12080
12081 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12082
12083 * elfread.c (record_minimal_symbol): Set section index to 0 for
12084 non-allocatable sections.
12085
12086
12087 2020-01-13 Ali Tamur <tamur@google.com>
12088
12089 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12090 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12091 to gdb::optional. Update comments.
12092 (dwo_file): Update comments.
12093 (read_attribute): Update API to take an additional out parameter,
12094 need_reprocess. This is used to mark attributes that need other
12095 attributes (e.g. str_offsets_base) for correct computation which may not
12096 have been read yet.
12097 (read_attribute_reprocess): New function declaration.
12098 (read_addr_index): Likewise.
12099 (read_dwo_str_index): Likewise.
12100 (read_stub_str_index): Likewise.
12101 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12102 (lookup_addr_base): New function definition.
12103 (lookup_ranges_base): Likewise.
12104 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12105 lookup_ranges_base.
12106 (init_cutu_and_read_dies): Update comments.
12107 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12108 unit. This is used to inherit parent's str_offsets_base and addr_base.
12109 Update comments.
12110 (init_cutu_and_read_dies_simple): Reflect API changes.
12111 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12112 (create_cus_hash_table): Change API to take parent compile unit.
12113 Reflect API changes.
12114 (open_and_init_dwo_file): Reflect API changes.
12115 (dwarf2_get_pc_bounds): Update comments.
12116 (dwarf2_record_block_ranges): Likewise.
12117 (read_full_die_1): Change implementation to reprocess attributes that
12118 need str_offsets_base and addr_base.
12119 (partial_die_info::read): Likewise.
12120 (read_attribute_reprocess): New function definition.
12121 (read_attribute_value): Change API to take an additional out parameter,
12122 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12123 when a non-dwo compile unit has index based attributes.
12124 (read_attribute): Reflect API changes.
12125 (read_addr_index_1): Reflect API changes. Update comments.
12126 (dwarf2_read_addr_index_data): Reflect API changes.
12127 (dwarf2_read_addr_index): Likewise.
12128 (read_str_index): Change API and implementation. This becomes a helper
12129 to be used by the new string index related methods. Update error
12130 message and comments.
12131 (read_dwo_str_index): New function definition.
12132 (read_stub_str_index): Likewise.
12133 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12134 * symfile.h (dwarf2_debug_sections): Likewise.
12135 * xcoffread.c (dwarf2_debug_sections): Likewise.
12136
12137 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12138
12139 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12140 core_reg_sect type to gdb_byte *.
12141 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12142 * cris-tdep.c (fetch_core_registers): Likewise.
12143 * corelow.c (core_target::get_core_register_section): Change
12144 type of `contents` to gdb::byte_vector.
12145
12146 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12147
12148 * tui/tui-wingeneral.c (box_win): Position the title in the center
12149 of the border.
12150
12151 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12152
12153 * corelow.c (core_target::get_core_register_section): Use
12154 std::vector instead of alloca.
12155
12156 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12157
12158 * warning.m4: Add -Wmissing-declarations to build_warnings.
12159 * configure: Re-generate.
12160
12161 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12162
12163 * python/python.c (init__gdb_module): Add declaration.
12164
12165 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12166
12167 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12168 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12169 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12170 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12171 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12172 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12173 * ada-exp.y (_initialize_ada_exp): Add declaration.
12174 * ada-lang.c (_initialize_ada_language): Add declaration.
12175 * ada-tasks.c (_initialize_tasks): Add declaration.
12176 * agent.c (_initialize_agent): Add declaration.
12177 * aix-thread.c (_initialize_aix_thread): Add declaration.
12178 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12179 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12180 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12181 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12182 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12183 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12184 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12185 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12186 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12187 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12188 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12189 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12190 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12191 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12192 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12193 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12194 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12195 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12196 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12197 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12198 * annotate.c (_initialize_annotate): Add declaration.
12199 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12200 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12201 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12202 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12203 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12204 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12205 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12206 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12207 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12208 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12209 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12210 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12211 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12212 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12213 * auto-load.c (_initialize_auto_load): Add declaration.
12214 * auxv.c (_initialize_auxv): Add declaration.
12215 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12216 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12217 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12218 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12219 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12220 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12221 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12222 * breakpoint.c (_initialize_breakpoint): Add declaration.
12223 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12224 * btrace.c (_initialize_btrace): Add declaration.
12225 * charset.c (_initialize_charset): Add declaration.
12226 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12227 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12228 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12229 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12230 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12231 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12232 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12233 * coffread.c (_initialize_coffread): Add declaration.
12234 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12235 * compile/compile.c (_initialize_compile): Add declaration.
12236 * complaints.c (_initialize_complaints): Add declaration.
12237 * completer.c (_initialize_completer): Add declaration.
12238 * copying.c (_initialize_copying): Add declaration.
12239 * corefile.c (_initialize_core): Add declaration.
12240 * corelow.c (_initialize_corelow): Add declaration.
12241 * cp-abi.c (_initialize_cp_abi): Add declaration.
12242 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12243 * cp-support.c (_initialize_cp_support): Add declaration.
12244 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12245 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12246 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12247 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12248 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12249 * ctfread.c (_initialize_ctfread): Add declaration.
12250 * d-lang.c (_initialize_d_language): Add declaration.
12251 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12252 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12253 * dbxread.c (_initialize_dbxread): Add declaration.
12254 * dcache.c (_initialize_dcache): Add declaration.
12255 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12256 * disasm.c (_initialize_disasm): Add declaration.
12257 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12258 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12259 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12260 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12261 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12262 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12263 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12264 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12265 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12266 * elfread.c (_initialize_elfread): Add declaration.
12267 * exec.c (_initialize_exec): Add declaration.
12268 * extension.c (_initialize_extension): Add declaration.
12269 * f-lang.c (_initialize_f_language): Add declaration.
12270 * f-valprint.c (_initialize_f_valprint): Add declaration.
12271 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12272 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12273 * filesystem.c (_initialize_filesystem): Add declaration.
12274 * findcmd.c (_initialize_mem_search): Add declaration.
12275 * findvar.c (_initialize_findvar): Add declaration.
12276 * fork-child.c (_initialize_fork_child): Add declaration.
12277 * frame-base.c (_initialize_frame_base): Add declaration.
12278 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12279 * frame.c (_initialize_frame): Add declaration.
12280 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12281 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12282 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12283 * gcore.c (_initialize_gcore): Add declaration.
12284 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12285 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12286 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12287 * gdbarch.c (_initialize_gdbarch): Add declaration.
12288 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12289 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12290 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12291 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12292 * go-lang.c (_initialize_go_language): Add declaration.
12293 * go32-nat.c (_initialize_go32_nat): Add declaration.
12294 * guile/guile.c (_initialize_guile): Add declaration.
12295 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12296 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12297 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12298 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12299 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12300 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12301 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12302 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12303 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12304 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12305 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12306 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12307 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12308 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12309 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12310 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12311 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12312 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12313 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12314 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12315 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12316 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12317 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12318 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12319 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12320 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12321 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12322 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12323 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12324 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12325 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12326 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12327 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12328 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12329 * infcall.c (_initialize_infcall): Add declaration.
12330 * infcmd.c (_initialize_infcmd): Add declaration.
12331 * inflow.c (_initialize_inflow): Add declaration.
12332 * infrun.c (_initialize_infrun): Add declaration.
12333 * interps.c (_initialize_interpreter): Add declaration.
12334 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12335 * jit.c (_initialize_jit): Add declaration.
12336 * language.c (_initialize_language): Add declaration.
12337 * linux-fork.c (_initialize_linux_fork): Add declaration.
12338 * linux-nat.c (_initialize_linux_nat): Add declaration.
12339 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12340 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12341 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12342 * m2-lang.c (_initialize_m2_language): Add declaration.
12343 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12344 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12345 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12346 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12347 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12348 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12349 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12350 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12351 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12352 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12353 * machoread.c (_initialize_machoread): Add declaration.
12354 * macrocmd.c (_initialize_macrocmd): Add declaration.
12355 * macroscope.c (_initialize_macroscope): Add declaration.
12356 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12357 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12358 * maint.c (_initialize_maint_cmds): Add declaration.
12359 * mdebugread.c (_initialize_mdebugread): Add declaration.
12360 * memattr.c (_initialize_mem): Add declaration.
12361 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12362 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12363 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12364 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12365 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12366 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12367 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12368 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12369 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12370 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12371 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12372 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12373 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12374 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12375 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12376 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12377 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12378 * mipsread.c (_initialize_mipsread): Add declaration.
12379 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12380 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12381 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12382 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12383 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12384 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12385 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12386 * nto-procfs.c (_initialize_procfs): Add declaration.
12387 * objc-lang.c (_initialize_objc_language): Add declaration.
12388 * observable.c (_initialize_observer): Add declaration.
12389 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12390 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12391 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12392 * osabi.c (_initialize_gdb_osabi): Add declaration.
12393 * osdata.c (_initialize_osdata): Add declaration.
12394 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12395 * parse.c (_initialize_parse): Add declaration.
12396 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12397 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12398 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12399 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12400 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12401 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12402 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12403 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12404 * printcmd.c (_initialize_printcmd): Add declaration.
12405 * probe.c (_initialize_probe): Add declaration.
12406 * proc-api.c (_initialize_proc_api): Add declaration.
12407 * proc-events.c (_initialize_proc_events): Add declaration.
12408 * proc-service.c (_initialize_proc_service): Add declaration.
12409 * procfs.c (_initialize_procfs): Add declaration.
12410 * producer.c (_initialize_producer): Add declaration.
12411 * psymtab.c (_initialize_psymtab): Add declaration.
12412 * python/python.c (_initialize_python): Add declaration.
12413 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12414 * record-btrace.c (_initialize_record_btrace): Add declaration.
12415 * record-full.c (_initialize_record_full): Add declaration.
12416 * record.c (_initialize_record): Add declaration.
12417 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12418 * regcache.c (_initialize_regcache): Add declaration.
12419 * reggroups.c (_initialize_reggroup): Add declaration.
12420 * remote-notif.c (_initialize_notif): Add declaration.
12421 * remote-sim.c (_initialize_remote_sim): Add declaration.
12422 * remote.c (_initialize_remote): Add declaration.
12423 * reverse.c (_initialize_reverse): Add declaration.
12424 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12425 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12426 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12427 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12428 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12429 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12430 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12431 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12432 Add declaration.
12433 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12434 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12435 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12436 * rust-exp.y (_initialize_rust_exp): Add declaration.
12437 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12438 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12439 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12440 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12441 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12442 * score-tdep.c (_initialize_score_tdep): Add declaration.
12443 * ser-go32.c (_initialize_ser_dos): Add declaration.
12444 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12445 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12446 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12447 * ser-uds.c (_initialize_ser_socket): Add declaration.
12448 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12449 * serial.c (_initialize_serial): Add declaration.
12450 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12451 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12452 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12453 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12454 * skip.c (_initialize_step_skip): Add declaration.
12455 * sol-thread.c (_initialize_sol_thread): Add declaration.
12456 * solib-aix.c (_initialize_solib_aix): Add declaration.
12457 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12458 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12459 * solib-frv.c (_initialize_frv_solib): Add declaration.
12460 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12461 * solib-target.c (_initialize_solib_target): Add declaration.
12462 * solib.c (_initialize_solib): Add declaration.
12463 * source-cache.c (_initialize_source_cache): Add declaration.
12464 * source.c (_initialize_source): Add declaration.
12465 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12466 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12467 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12468 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12469 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12470 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12471 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12472 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12473 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12474 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12475 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12476 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12477 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12478 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12479 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12480 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12481 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12482 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12483 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12484 * stabsread.c (_initialize_stabsread): Add declaration.
12485 * stack.c (_initialize_stack): Add declaration.
12486 * stap-probe.c (_initialize_stap_probe): Add declaration.
12487 * std-regs.c (_initialize_frame_reg): Add declaration.
12488 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12489 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12490 * symfile.c (_initialize_symfile): Add declaration.
12491 * symmisc.c (_initialize_symmisc): Add declaration.
12492 * symtab.c (_initialize_symtab): Add declaration.
12493 * target.c (_initialize_target): Add declaration.
12494 * target-connection.c (_initialize_target_connection): Add
12495 declaration.
12496 * target-dcache.c (_initialize_target_dcache): Add declaration.
12497 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12498 * thread.c (_initialize_thread): Add declaration.
12499 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12500 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12501 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12502 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12503 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12504 * tracectf.c (_initialize_ctf): Add declaration.
12505 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12506 * tracefile.c (_initialize_tracefile): Add declaration.
12507 * tracepoint.c (_initialize_tracepoint): Add declaration.
12508 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12509 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12510 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12511 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12512 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12513 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12514 * tui/tui.c (_initialize_tui): Add declaration.
12515 * typeprint.c (_initialize_typeprint): Add declaration.
12516 * ui-style.c (_initialize_ui_style): Add declaration.
12517 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12518 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12519 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12520 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12521 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12522 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12523 * unittests/filtered_iterator-selftests.c
12524 (_initialize_filtered_iterator_selftests): Add declaration.
12525 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12526 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12527 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12528 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12529 * unittests/main-thread-selftests.c
12530 (_initialize_main_thread_selftests): Add declaration.
12531 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12532 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12533 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12534 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12535 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12536 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12537 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12538 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12539 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12540 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12541 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12542 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12543 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12544 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12545 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12546 declaration.
12547 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12548 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12549 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12550 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12551 * user-regs.c (_initialize_user_regs): Add declaration.
12552 * utils.c (_initialize_utils): Add declaration.
12553 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12554 * valops.c (_initialize_valops): Add declaration.
12555 * valprint.c (_initialize_valprint): Add declaration.
12556 * value.c (_initialize_values): Add declaration.
12557 * varobj.c (_initialize_varobj): Add declaration.
12558 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12559 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12560 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12561 * windows-nat.c (_initialize_windows_nat): Add declaration.
12562 (_initialize_check_for_gdb_ini): Add declaration.
12563 (_initialize_loadable): Add declaration.
12564 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12565 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12566 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12567 * xcoffread.c (_initialize_xcoffread): Add declaration.
12568 * xml-support.c (_initialize_xml_support): Add declaration.
12569 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12570 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12571 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12572 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12573
12574 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12575
12576 * regformats/regdat.sh: Generate declaration for init function.
12577
12578 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12579
12580 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12581 up.
12582 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12583 close_one_inferior>: New methods.
12584 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12585 pass down target to find_inferior_pid.
12586 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12587 Pass down target to find_inferior_ptid.
12588 (gdbsim_target::create_inferior): Pass down target to
12589 add_thread_silent.
12590 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12591 target down to find_inferior_ptid and switch_to_thread.
12592 (gdbsim_target::close): Update to call close_one_inferior.
12593 (struct resume_data): Remove.
12594 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12595 directly, rather than through a void pointer.
12596 (gdbsim_target::resume): Update to call resume_one_inferior.
12597
12598 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12599
12600 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12601
12602 2020-01-12 Pedro Alves <palves@redhat.com>
12603
12604 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12605 directly for the current inferior instead of
12606 discard_all_inferiors.
12607 (discard_all_inferiors): Delete.
12608
12609 2020-01-11 Tom Tromey <tom@tromey.com>
12610
12611 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12612 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12613 deprecated_safe_get_selected_frame.
12614
12615 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12616
12617 * inferior.c (print_inferior): Switch inferior before printing it.
12618
12619 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12620 Pedro Alves <palves@redhat.com>
12621
12622 * progspace-and-thread.c (switch_to_program_space_and_thread):
12623 Assert there's an inferior for PSPACE. Use
12624 switch_to_inferior_no_thread to switch the inferior too.
12625 * progspace.c (program_space::~program_space): Call
12626 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12627 (program_space::free_all_objfiles): Don't call clear_symtab_users
12628 here.
12629 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12630
12631 2020-01-10 Pedro Alves <palves@redhat.com>
12632
12633 * NEWS: Mention multi-target debugging, "info connections", and
12634 "add-inferior -no-connection".
12635
12636 2020-01-10 Pedro Alves <palves@redhat.com>
12637
12638 * infrun.c: Include "target-connection.h".
12639 (check_multi_target_resumption): New.
12640 (proceed): Call it.
12641 * target-connection.c (make_target_connection_string): Make
12642 extern.
12643 * target-connection.h (make_target_connection_string): Declare.
12644
12645 2020-01-10 Pedro Alves <palves@redhat.com>
12646
12647 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12648 * inferior.c (uiout_field_connection): New function.
12649 (print_inferior): Add new "connection-id" column.
12650 (add_inferior_command): Show connection number/string of added
12651 inferior.
12652 * process-stratum-target.h
12653 (process_stratum_target::connection_string): New virtual method.
12654 (process_stratum_target::connection_number): New field.
12655 * remote.c (remote_target::connection_string): New override.
12656 * target-connection.c: New file.
12657 * target-connection.h: New file.
12658 * target.c (decref_target): Remove process_stratum targets from
12659 the connection list.
12660 (target_stack::push): Add process_stratum targets to the
12661 connection list.
12662
12663 2020-01-10 Pedro Alves <palves@redhat.com>
12664
12665 Revert:
12666 2016-04-12 Pedro Alves <palves@redhat.com>
12667 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12668 Remove references to name.
12669 * serial.h (struct serial) <name>: Delete.
12670
12671 2020-01-10 Pedro Alves <palves@redhat.com>
12672
12673 * gdbarch-selftests.c (register_to_value_test): Remove "target
12674 already pushed" check.
12675
12676 2020-01-10 Pedro Alves <palves@redhat.com>
12677 John Baldwin <jhb@FreeBSD.org>
12678
12679 * aarch64-linux-nat.c
12680 (aarch64_linux_nat_target::thread_architecture): Adjust.
12681 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12682 (task_command_1): Likewise.
12683 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12684 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12685 (aix_thread_target::store_registers)
12686 (aix_thread_target::thread_alive): Adjust.
12687 * amd64-fbsd-tdep.c: Include "inferior.h".
12688 (amd64fbsd_get_thread_local_address): Pass down target.
12689 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12690 thread's gdbarch instead of target_gdbarch.
12691 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12692 get_last_target_status.
12693 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12694 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12695 inferiors.
12696 (update_inserted_breakpoint_locations): Skip if inferiors with no
12697 execution.
12698 (update_global_location_list): When handling moribund locations,
12699 find representative inferior for location's pspace, and use thread
12700 count of its process_stratum target.
12701 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12702 * bsd-uthread.c (bsd_uthread_target::wait): Use
12703 as_process_stratum_target and adjust thread_change_ptid and
12704 add_thread calls.
12705 (bsd_uthread_target::update_thread_list): Use
12706 as_process_stratum_target and adjust find_thread_ptid,
12707 thread_change_ptid and add_thread calls.
12708 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12709 find_thread_ptid call.
12710 * corelow.c (add_to_thread_list): Adjust add_thread call.
12711 (core_target_open): Adjust add_thread_silent and thread_count
12712 calls.
12713 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12714 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12715 * event-top.c (async_disconnect): Pop targets from all inferiors.
12716 * exec.c (add_target_sections): Push exec target on all inferiors
12717 sharing the program space.
12718 (remove_target_sections): Remove the exec target from all
12719 inferiors sharing the program space.
12720 (exec_on_vfork): New.
12721 * exec.h (exec_on_vfork): Declare.
12722 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12723 Pass it down.
12724 (fbsd_nat_target::update_thread_list): Adjust.
12725 (fbsd_nat_target::resume): Adjust.
12726 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12727 down.
12728 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12729 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12730 get_thread_arch_regcache call.
12731 * fork-child.c (gdb_startup_inferior): Pass target down to
12732 startup_inferior and set_executing.
12733 * gdbthread.h (struct process_stratum_target): Forward declare.
12734 (add_thread, add_thread_silent, add_thread_with_info)
12735 (in_thread_list): Add process_stratum_target parameter.
12736 (find_thread_ptid(inferior*, ptid_t)): New overload.
12737 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12738 parameter.
12739 (all_threads()): Delete overload.
12740 (all_threads, all_non_exited_threads): Add process_stratum_target
12741 parameter.
12742 (all_threads_safe): Use brace initialization.
12743 (thread_count): Add process_stratum_target parameter.
12744 (set_resumed, set_running, set_stop_requested, set_executing)
12745 (threads_are_executing, finish_thread_state): Add
12746 process_stratum_target parameter.
12747 (switch_to_thread): Use is_current_thread.
12748 * i386-fbsd-tdep.c: Include "inferior.h".
12749 (i386fbsd_get_thread_local_address): Pass down target.
12750 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12751 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12752 have_inferiors check.
12753 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12754 (inf_ptrace_target::attach): Adjust.
12755 * infcall.c (run_inferior_call): Adjust.
12756 * infcmd.c (run_command_1): Pass target to
12757 scoped_finish_thread_state.
12758 (proceed_thread_callback): Skip inferiors with no execution.
12759 (continue_command): Rename 'all_threads' local to avoid hiding
12760 'all_threads' function. Adjust get_last_target_status call.
12761 (prepare_one_step): Adjust set_running call.
12762 (signal_command): Use user_visible_resume_target. Compare thread
12763 pointers instead of inferior_ptid.
12764 (info_program_command): Adjust to pass down target.
12765 (attach_command): Mark target's 'thread_executing' flag.
12766 (stop_current_target_threads_ns): New, factored out from ...
12767 (interrupt_target_1): ... this. Switch inferior before making
12768 target calls.
12769 * inferior-iter.h
12770 (struct all_inferiors_iterator, struct all_inferiors_range)
12771 (struct all_inferiors_safe_range)
12772 (struct all_non_exited_inferiors_range): Filter on
12773 process_stratum_target too. Remove explicit.
12774 * inferior.c (inferior::inferior): Push dummy target on target
12775 stack.
12776 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12777 Add process_stratum_target parameter, and pass it down.
12778 (have_live_inferiors): Adjust.
12779 (switch_to_inferior_and_push_target): New.
12780 (add_inferior_command, clone_inferior_command): Handle
12781 "-no-connection" parameter. Use
12782 switch_to_inferior_and_push_target.
12783 (_initialize_inferior): Mention "-no-connection" option in
12784 the help of "add-inferior" and "clone-inferior" commands.
12785 * inferior.h: Include "process-stratum-target.h".
12786 (interrupt_target_1): Use bool.
12787 (struct inferior) <push_target, unpush_target, target_is_pushed,
12788 find_target_beneath, top_target, process_target, target_at,
12789 m_stack>: New.
12790 (discard_all_inferiors): Delete.
12791 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12792 (all_inferiors, all_non_exited_inferiors): Add
12793 process_stratum_target parameter.
12794 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12795 (target_last_proc_target): New global.
12796 (follow_fork_inferior): Push target on new inferior. Pass target
12797 to add_thread_silent. Call exec_on_vfork. Handle target's
12798 reference count.
12799 (follow_fork): Adjust get_last_target_status call. Also consider
12800 target.
12801 (follow_exec): Push target on new inferior.
12802 (struct execution_control_state) <target>: New field.
12803 (user_visible_resume_target): New.
12804 (do_target_resume): Call target_async.
12805 (resume_1): Set target's threads_executing flag. Consider resume
12806 target.
12807 (commit_resume_all_targets): New.
12808 (proceed): Also consider resume target. Skip threads of inferiors
12809 with no execution. Commit resumtion in all targets.
12810 (start_remote): Pass current inferior to wait_for_inferior.
12811 (infrun_thread_stop_requested): Consider target as well. Pass
12812 thread_info pointer to clear_inline_frame_state instead of ptid.
12813 (infrun_thread_thread_exit): Consider target as well.
12814 (random_pending_event_thread): New inferior parameter. Use it.
12815 (do_target_wait): Rename to ...
12816 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12817 down.
12818 (threads_are_resumed_pending_p, do_target_wait): New.
12819 (prepare_for_detach): Adjust calls.
12820 (wait_for_inferior): New inferior parameter. Handle it. Use
12821 do_target_wait_1 instead of do_target_wait.
12822 (fetch_inferior_event): Adjust. Switch to representative
12823 inferior. Pass target down.
12824 (set_last_target_status): Add process_stratum_target parameter.
12825 Save target in global.
12826 (get_last_target_status): Add process_stratum_target parameter and
12827 handle it.
12828 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12829 (context_switch): Check inferior_ptid == null_ptid before calling
12830 inferior_thread().
12831 (get_inferior_stop_soon): Pass down target.
12832 (wait_one): Rename to ...
12833 (poll_one_curr_target): ... this.
12834 (struct wait_one_event): New.
12835 (wait_one): New.
12836 (stop_all_threads): Adjust.
12837 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12838 event's target.
12839 (switch_back_to_stepped_thread): Also consider target.
12840 (print_stop_event): Update.
12841 (normal_stop): Update. Also consider the resume target.
12842 * infrun.h (wait_for_inferior): Remove declaration.
12843 (user_visible_resume_target): New declaration.
12844 (get_last_target_status, set_last_target_status): New
12845 process_stratum_target parameter.
12846 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12847 process_stratum_target parameter, and use it.
12848 (clear_inline_frame_state (thread_info*)): New.
12849 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12850 process_stratum_target parameter.
12851 (clear_inline_frame_state (thread_info*)): Declare.
12852 * linux-fork.c (delete_checkpoint_command): Pass target down to
12853 find_thread_ptid.
12854 (checkpoint_command): Adjust.
12855 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12856 instead of just tweaking inferior_ptid.
12857 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12858 (exit_lwp): Pass target down to find_thread_ptid.
12859 (attach_proc_task_lwp_callback): Pass target down to
12860 add_thread/set_running/set_executing.
12861 (linux_nat_target::attach): Pass target down to
12862 thread_change_ptid.
12863 (get_detach_signal): Pass target down to find_thread_ptid.
12864 Consider last target status's target.
12865 (linux_resume_one_lwp_throw, resume_lwp)
12866 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12867 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12868 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12869 (linux_nat_target::async_wait_fd): New.
12870 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12871 target down.
12872 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12873 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12874 * linux-thread-db.c (struct thread_db_info::process_target): New
12875 field.
12876 (add_thread_db_info): Save target.
12877 (get_thread_db_info): New process_stratum_target parameter. Also
12878 match target.
12879 (delete_thread_db_info): New process_stratum_target parameter.
12880 Also match target.
12881 (thread_from_lwp): Adjust to pass down target.
12882 (thread_db_notice_clone): Pass down target.
12883 (check_thread_db_callback): Pass down target.
12884 (try_thread_db_load_1): Always push the thread_db target.
12885 (try_thread_db_load, record_thread): Pass target down.
12886 (thread_db_target::detach): Pass target down. Always unpush the
12887 thread_db target.
12888 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12889 target down. Always unpush the thread_db target.
12890 (find_new_threads_callback, thread_db_find_new_threads_2)
12891 (thread_db_target::update_thread_list): Pass target down.
12892 (thread_db_target::pid_to_str): Pass current inferior down.
12893 (thread_db_target::get_thread_local_address): Pass target down.
12894 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12895 target down.
12896 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12897 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12898 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12899 (procfs_init_inferior): Rename to ...
12900 (procfs_target::procfs_init_inferior): ... this and adjust.
12901 (procfs_target::create_inferior, procfs_notice_thread)
12902 (procfs_do_thread_registers): Adjust.
12903 * ppc-fbsd-tdep.c: Include "inferior.h".
12904 (ppcfbsd_get_thread_local_address): Pass down target.
12905 * proc-service.c (ps_xfer_memory): Switch current inferior and
12906 program space as well.
12907 (get_ps_regcache): Pass target down.
12908 * process-stratum-target.c
12909 (process_stratum_target::thread_address_space)
12910 (process_stratum_target::thread_architecture): Pass target down.
12911 * process-stratum-target.h
12912 (process_stratum_target::threads_executing): New field.
12913 (as_process_stratum_target): New.
12914 * ravenscar-thread.c
12915 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12916 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12917 down.
12918 * record-btrace.c (record_btrace_target::info_record): Adjust.
12919 (record_btrace_target::record_method)
12920 (record_btrace_target::record_is_replaying)
12921 (record_btrace_target::fetch_registers)
12922 (get_thread_current_frame_id, record_btrace_target::resume)
12923 (record_btrace_target::wait, record_btrace_target::stop): Pass
12924 target down.
12925 * record-full.c (record_full_wait_1): Switch to event thread.
12926 Pass target down.
12927 * regcache.c (regcache::regcache)
12928 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12929 process_stratum_target parameter and handle it.
12930 (current_thread_target): New global.
12931 (get_thread_regcache): Add process_stratum_target parameter and
12932 handle it. Switch inferior before calling target method.
12933 (get_thread_regcache): Pass target down.
12934 (get_thread_regcache_for_ptid): Pass target down.
12935 (registers_changed_ptid): Add process_stratum_target parameter and
12936 handle it.
12937 (registers_changed_thread, registers_changed): Pass target down.
12938 (test_get_thread_arch_aspace_regcache): New.
12939 (current_regcache_test): Define a couple local test_target_ops
12940 instances and use them for testing.
12941 (readwrite_regcache): Pass process_stratum_target parameter.
12942 (cooked_read_test, cooked_write_test): Pass mock_target down.
12943 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12944 (get_thread_arch_aspace_regcache): Add process_stratum_target
12945 parameter.
12946 (regcache::target): New method.
12947 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12948 (regcache::registers_changed_ptid): Add process_stratum_target
12949 parameter.
12950 (regcache::m_target): New field.
12951 (registers_changed_ptid): Add process_stratum_target parameter.
12952 * remote.c (remote_state::supports_vCont_probed): New field.
12953 (remote_target::async_wait_fd): New method.
12954 (remote_unpush_and_throw): Add remote_target parameter.
12955 (get_current_remote_target): Adjust.
12956 (remote_target::remote_add_inferior): Push target.
12957 (remote_target::remote_add_thread)
12958 (remote_target::remote_notice_new_inferior)
12959 (get_remote_thread_info): Pass target down.
12960 (remote_target::update_thread_list): Skip threads of inferiors
12961 bound to other targets. (remote_target::close): Don't discard
12962 inferiors. (remote_target::add_current_inferior_and_thread)
12963 (remote_target::process_initial_stop_replies)
12964 (remote_target::start_remote)
12965 (remote_target::remote_serial_quit_handler): Pass down target.
12966 (remote_target::remote_unpush_target): New remote_target
12967 parameter. Unpush the target from all inferiors.
12968 (remote_target::remote_unpush_and_throw): New remote_target
12969 parameter. Pass it down.
12970 (remote_target::open_1): Check whether the current inferior has
12971 execution instead of checking whether any inferior is live. Pass
12972 target down.
12973 (remote_target::remote_detach_1): Pass down target. Use
12974 remote_unpush_target.
12975 (extended_remote_target::attach): Pass down target.
12976 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12977 (remote_target::append_resumption): Pass down target.
12978 (remote_target::append_pending_thread_resumptions)
12979 (remote_target::remote_resume_with_hc, remote_target::resume)
12980 (remote_target::commit_resume): Pass down target.
12981 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12982 (remote_target::interrupt_query)
12983 (remote_target::remove_new_fork_children)
12984 (remote_target::check_pending_events_prevent_wildcard_vcont)
12985 (remote_target::remote_parse_stop_reply)
12986 (remote_target::process_stop_reply): Pass down target.
12987 (first_remote_resumed_thread): New remote_target parameter. Pass
12988 it down.
12989 (remote_target::wait_as): Pass down target.
12990 (unpush_and_perror): New remote_target parameter. Pass it down.
12991 (remote_target::readchar, remote_target::remote_serial_write)
12992 (remote_target::getpkt_or_notif_sane_1)
12993 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12994 down target.
12995 (remote_target::mourn_inferior): Pass down target. Use
12996 remote_unpush_target.
12997 (remote_target::core_of_thread)
12998 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12999 (remote_target::pid_to_exec_file)
13000 (remote_target::thread_handle_to_thread_info): Pass down target.
13001 (remote_target::async_wait_fd): New.
13002 * riscv-fbsd-tdep.c: Include "inferior.h".
13003 (riscv_fbsd_get_thread_local_address): Pass down target.
13004 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13005 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13006 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13007 Adjust.
13008 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13009 * solib-svr4.c (enable_break): Pass down target.
13010 * spu-multiarch.c (parse_spufs_run): Pass down target.
13011 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13012 * target-delegates.c: Regenerate.
13013 * target.c (g_target_stack): Delete.
13014 (current_top_target): Return the current inferior's top target.
13015 (target_has_execution_1): Refer to the passed-in inferior's top
13016 target.
13017 (target_supports_terminal_ours): Check whether the initial
13018 inferior was already created.
13019 (decref_target): New.
13020 (target_stack::push): Incref/decref the target.
13021 (push_target, push_target, unpush_target): Adjust.
13022 (target_stack::unpush): Defref target.
13023 (target_is_pushed): Return bool. Adjust to refer to the current
13024 inferior's target stack.
13025 (dispose_inferior): Delete, and inline parts ...
13026 (target_preopen): ... here. Only dispose of the current inferior.
13027 (target_detach): Hold strong target reference while detaching.
13028 Pass target down.
13029 (target_thread_name): Add assertion.
13030 (target_resume): Pass down target.
13031 (target_ops::beneath, find_target_at): Adjust to refer to the
13032 current inferior's target stack.
13033 (get_dummy_target): New.
13034 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13035 has a thread running.
13036 (initialize_targets): Rename to ...
13037 (_initialize_target): ... this.
13038 * target.h: Include "gdbsupport/refcounted-object.h".
13039 (struct target_ops): Inherit refcounted_object.
13040 (target_ops::shortname, target_ops::longname): Make const.
13041 (target_ops::async_wait_fd): New method.
13042 (decref_target): Declare.
13043 (struct target_ops_ref_policy): New.
13044 (target_ops_ref): New typedef.
13045 (get_dummy_target): Declare function.
13046 (target_is_pushed): Return bool.
13047 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13048 (all_matching_threads_iterator::all_matching_threads_iterator):
13049 Handle filter target.
13050 * thread-iter.h (struct all_matching_threads_iterator, struct
13051 all_matching_threads_range, class all_non_exited_threads_range):
13052 Filter by target too. Remove explicit.
13053 * thread.c (threads_executing): Delete.
13054 (inferior_thread): Pass down current inferior.
13055 (clear_thread_inferior_resources): Pass down thread pointer
13056 instead of ptid_t.
13057 (add_thread_silent, add_thread_with_info, add_thread): Add
13058 process_stratum_target parameter. Use it for thread and inferior
13059 searches.
13060 (is_current_thread): New.
13061 (thread_info::deletable): Use it.
13062 (find_thread_ptid, thread_count, in_thread_list)
13063 (thread_change_ptid, set_resumed, set_running): New
13064 process_stratum_target parameter. Pass it down.
13065 (set_executing): New process_stratum_target parameter. Pass it
13066 down. Adjust reference to 'threads_executing'.
13067 (threads_are_executing): New process_stratum_target parameter.
13068 Adjust reference to 'threads_executing'.
13069 (set_stop_requested, finish_thread_state): New
13070 process_stratum_target parameter. Pass it down.
13071 (switch_to_thread): Also match inferior.
13072 (switch_to_thread): New process_stratum_target parameter. Pass it
13073 down.
13074 (update_threads_executing): Reimplement.
13075 * top.c (quit_force): Pop targets from all inferior.
13076 (gdb_init): Don't call initialize_targets.
13077 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13078 Declare.
13079 (windows_add_thread, windows_delete_thread): Adjust.
13080 (get_windows_debug_event): Rename to ...
13081 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13082 * tracefile-tfile.c (tfile_target_open): Pass down target.
13083 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13084 Forward declare.
13085 (switch_to_thread): Add process_stratum_target parameter.
13086 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13087 parameter. Use it.
13088 (mi_on_resume): Pass target down.
13089 * nat/fork-inferior.c (startup_inferior): Add
13090 process_stratum_target parameter. Pass it down.
13091 * nat/fork-inferior.h (startup_inferior): Add
13092 process_stratum_target parameter.
13093 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13094
13095 2020-01-10 Pedro Alves <palves@redhat.com>
13096
13097 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13098 directly. Instead find the first thread in the thread list and
13099 use switch_to_thread.
13100
13101 2020-01-10 Pedro Alves <palves@redhat.com>
13102
13103 * remote.c (remote_target::remote_add_inferior): Don't bind a
13104 process to the current inferior if the current inferior is already
13105 bound to a process.
13106
13107 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13108 Pedro Alves <palves@redhat.com>
13109
13110 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13111 If no process is specified, return null_ptid instead of
13112 inferior_ptid.
13113 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13114 TARGET_WAITKIND_SIGNALLED with no pid.
13115
13116 2020-01-10 Pedro Alves <palves@redhat.com>
13117
13118 * remote.c (first_remote_resumed_thread): New.
13119 (remote_target::wait_as): Use it as default event_ptid instead of
13120 inferior_ptid.
13121
13122 2020-01-10 Pedro Alves <palves@redhat.com>
13123
13124 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13125
13126 2020-01-10 Pedro Alves <palves@redhat.com>
13127
13128 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13129 not -1.
13130
13131 2020-01-10 Pedro Alves <palves@redhat.com>
13132
13133 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13134 ptid to get_last_target_status.
13135 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13136 ptid to get_last_target_status.
13137 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13138 get_last_target_status.
13139 (info_program_command): Don't pass a target_waitstatus to
13140 get_last_target_status.
13141 * infrun.c (init_wait_for_inferior): Use
13142 nullify_last_target_wait_ptid.
13143 (get_last_target_status): Handle nullptr arguments.
13144 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13145 (print_stop_event): Don't pass a ptid to get_last_target_status.
13146 (normal_stop): Don't pass a ptid to get_last_target_status.
13147 * infrun.h (get_last_target_status, set_last_target_status): Move
13148 comments here and update.
13149 (nullify_last_target_wait_ptid): Declare.
13150 * linux-fork.c (fork_load_infrun_state): Remove local extern
13151 declaration of nullify_last_target_wait_ptid.
13152 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13153 to get_last_target_status.
13154
13155 2020-01-10 Pedro Alves <palves@redhat.com>
13156
13157 * gdbthread.h (scoped_restore_current_thread)
13158 <dont_restore, restore, m_dont_restore>: Declare.
13159 * thread.c (thread_alive): Add assertion. Return bool.
13160 (switch_to_thread_if_alive): New.
13161 (prune_threads): Switch inferior/thread.
13162 (print_thread_info_1): Switch thread before calling target methods.
13163 (scoped_restore_current_thread::restore): New, factored out from
13164 ...
13165 (scoped_restore_current_thread::~scoped_restore_current_thread):
13166 ... this.
13167 (scoped_restore_current_thread::scoped_restore_current_thread):
13168 Add assertion.
13169 (thread_apply_all_command, thread_select): Use
13170 switch_to_thread_if_alive.
13171 * infrun.c (proceed, restart_threads, handle_signal_stop)
13172 (switch_back_to_stepped_thread): Switch current thread before
13173 calling target methods.
13174
13175 2020-01-10 Pedro Alves <palves@redhat.com>
13176
13177 * inferior.c (switch_to_inferior_no_thread): New function,
13178 factored out from ...
13179 (inferior_command): ... here.
13180 * inferior.h (switch_to_inferior_no_thread): Declare.
13181 * mi/mi-main.c (run_one_inferior): Use
13182 switch_to_inferior_no_thread.
13183
13184 2020-01-10 Pedro Alves <palves@redhat.com>
13185
13186 * infcmd.c (kill_command): Remove dead code.
13187
13188 2020-01-10 Pedro Alves <palves@redhat.com>
13189
13190 * remote.c (remote_target::mourn_inferior): No longer check
13191 whether the target is running.
13192
13193 2020-01-10 Pedro Alves <palves@redhat.com>
13194
13195 * corelow.c (core_target::has_execution): Change parameter type to
13196 inferior pointer.
13197 * inferior.c (number_of_live_inferiors): Use
13198 inferior::has_execution instead of target_has_execution_1.
13199 * inferior.h (inferior::has_execution): New.
13200 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13201 inferior::has_execution instead of target_has_execution_1.
13202 * process-stratum-target.c
13203 (process_stratum_target::has_execution): Change parameter type to
13204 inferior pointer. Check the inferior's PID instead of
13205 inferior_ptid.
13206 * process-stratum-target.h
13207 (process_stratum_target::has_execution): Change parameter type to
13208 inferior pointer.
13209 * record-full.c (record_full_core_target::has_execution): Change
13210 parameter type to inferior pointer.
13211 * target.c (target_has_execution_1): Change parameter type to
13212 inferior pointer.
13213 (target_has_execution_current): Adjust.
13214 * target.h (target_ops::has_execution): Change parameter type to
13215 inferior pointer.
13216 (target_has_execution_1): Change parameter type to inferior
13217 pointer. Change return type to bool.
13218 * tracefile.h (tracefile_target::has_execution): Change parameter
13219 type to inferior pointer.
13220
13221 2020-01-10 Pedro Alves <palves@redhat.com>
13222
13223 * exceptions.c (print_flush): Remove current_top_target() check.
13224
13225 2020-01-10 Pedro Alves <palves@redhat.com>
13226
13227 * remote.c (show_remote_exec_file): Show the current inferior's
13228 exec-file instead of the command variable's value.
13229
13230 2020-01-10 Pedro Alves <palves@redhat.com>
13231
13232 * record-full.c (record_full_resume_ptid): New global.
13233 (record_full_target::resume): Set it.
13234 (record_full_wait_1): Use record_full_resume_ptid instead of
13235 inferior_ptid.
13236
13237 2020-01-10 Pedro Alves <palves@redhat.com>
13238
13239 * gdbthread.h (scoped_restore_current_thread)
13240 <dont_restore, restore, m_dont_restore>: Declare.
13241 * thread.c (thread_alive): Add assertion. Return bool.
13242 (switch_to_thread_if_alive): New.
13243 (prune_threads): Switch inferior/thread.
13244 (print_thread_info_1): Switch thread before calling target methods.
13245 (scoped_restore_current_thread::restore): New, factored out from
13246 ...
13247 (scoped_restore_current_thread::~scoped_restore_current_thread):
13248 ... this.
13249 (scoped_restore_current_thread::scoped_restore_current_thread):
13250 Add assertion.
13251 (thread_apply_all_command, thread_select): Use
13252 switch_to_thread_if_alive.
13253
13254 2020-01-10 George Barrett <bob@bob131.so>
13255
13256 * stap-probe.c (stap_modify_semaphore): Don't check for null
13257 semaphores.
13258 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13259 for null semaphores.
13260
13261 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13262
13263 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13264 all source windows, and maintain horizontal scroll status while
13265 doing so.
13266
13267 2020-01-09 Tom Tromey <tom@tromey.com>
13268
13269 PR tui/18932:
13270 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13271 update_source_window, not print_source_lines.
13272
13273 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13274
13275 * tui/tui.c (tui_enable): Register tui hooks after calling
13276 tui_display_main.
13277
13278 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13279
13280 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13281
13282 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13283
13284 * thread.c (print_thread_info_1): Fix indentation.
13285
13286 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13287
13288 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13289 unique_xmalloc_ptr outside the if to always free the demangled name.
13290
13291 2020-01-08 Tom Tromey <tromey@adacore.com>
13292
13293 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13294 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13295 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13296 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13297 Remove.
13298 (section_offsets): New typedef.
13299 * symtab.c (fixup_section, get_msymbol_address): Update.
13300 * symmisc.c (dump_msymbols): Update.
13301 * symfile.h (relative_addr_info_to_section_offsets)
13302 (symfile_map_offsets_to_segments): Update.
13303 * symfile.c (build_section_addr_info_from_objfile)
13304 (init_objfile_sect_indices): Update.
13305 (struct place_section_arg): Change type of "offsets".
13306 (place_section): Update.
13307 (relative_addr_info_to_section_offsets): Change type of
13308 "section_offsets". Remove "num_sections" parameter.
13309 (default_symfile_offsets, syms_from_objfile_1)
13310 (set_objfile_default_section_offset): Update.
13311 (reread_symbols): No need to preserve section offsets by hand.
13312 (symfile_map_offsets_to_segments): Change type of "offsets".
13313 * stap-probe.c (relocate_address): Update.
13314 * stabsread.h (process_one_symbol): Update.
13315 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13316 (solib_target_relocate_section_addresses): Update.
13317 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13318 Update.
13319 * solib-frv.c (frv_relocate_main_executable): Update.
13320 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13321 * solib-aix.c (solib_aix_get_section_offsets): Change return
13322 type.
13323 (solib_aix_solib_create_inferior_hook): Update.
13324 * remote.c (remote_target::get_offsets): Update.
13325 * psymtab.c (find_pc_sect_psymtab): Update.
13326 * psympriv.h (struct partial_symbol) <address, text_low,
13327 text_high>: Update.
13328 * objfiles.h (obj_section_offset): Update.
13329 (struct objfile) <section_offsets>: Change type.
13330 <num_sections>: Remove.
13331 (objfile_relocate): Update.
13332 * objfiles.c (entry_point_address_query): Update
13333 (relocate_one_symbol): Change type of "section_offsets".
13334 (objfile_relocate1, objfile_relocate1): Change type of
13335 "new_offsets".
13336 (objfile_rebase1): Update.
13337 * mipsread.c (mipscoff_symfile_read): Update.
13338 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13339 parameter.
13340 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13341 (parse_external, psymtab_to_symtab_1): Update.
13342 * machoread.c (macho_symfile_offsets): Update.
13343 * ia64-tdep.c (ia64_find_unwind_table): Update.
13344 * hppa-tdep.c (read_unwind_info): Update.
13345 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13346 * dwarf2read.c (create_addrmap_from_index)
13347 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13348 (process_psymtab_comp_unit_reader, add_partial_symbol)
13349 (add_partial_subprogram, process_full_comp_unit)
13350 (read_file_scope, read_func_scope, read_lexical_block_scope)
13351 (read_call_site_scope, dwarf2_rnglists_process)
13352 (dwarf2_ranges_process, dwarf2_ranges_read)
13353 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13354 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13355 Update.
13356 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13357 Update.
13358 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13359 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13360 (process_one_symbol): Change type of "section_offsets".
13361 * ctfread.c (get_objfile_text_range): Update.
13362 * coffread.c (coff_symtab_read, enter_linenos)
13363 (process_coff_symbol): Update.
13364 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13365 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13366
13367 2020-01-08 Tom Tromey <tromey@adacore.com>
13368
13369 * dwarf2read.c (parse_macro_definition): Use std::string.
13370 (parse_macro_definition): Likewise.
13371
13372 2020-01-08 Tom Tromey <tromey@adacore.com>
13373
13374 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13375 (ATTR_ALLOC_CHUNK): Remove.
13376
13377 2020-01-08 Tom Tromey <tromey@adacore.com>
13378
13379 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13380
13381 2020-01-08 Tom Tromey <tromey@adacore.com>
13382
13383 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13384 (dwarf2_compute_name, open_dwo_file): Likewise.
13385 (process_enumeration_scope): Use std::vector.
13386 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13387 (partial_die_info::fixup, dwarf2_start_subfile)
13388 (guess_full_die_structure_name, dwarf2_name): Likewise.
13389 (determine_prefix): Update.
13390 (guess_full_die_structure_name): Make return type const.
13391 (partial_die_full_name): Return unique_xmalloc_ptr.
13392 (DW_FIELD_ALLOC_CHUNK): Remove.
13393
13394 2020-01-07 Tom Tromey <tromey@adacore.com>
13395
13396 PR build/24937:
13397 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13398
13399 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13400
13401 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13402
13403 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13404
13405 * stack.c (print_frame_info): Move disassemble_next_line code
13406 inside source_print block.
13407
13408 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13409
13410 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13411 gdb/signals.h, as we are now using native signal symbols.
13412
13413 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13414
13415 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13416 overflow by an early check of content vs threshold.
13417 * tui/tui-source.c (tui_source_window::line_is_displayed):
13418 Likewise.
13419
13420 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13421
13422 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13423
13424 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13425
13426 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13427 export table if no section contains it's RVA.
13428
13429 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13430
13431 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13432
13433 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13434
13435 * source.c (print_source_lines_base): Set last_line_listed.
13436
13437 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13438
13439 * tui/tui-disasm.c: Remove trailing spaces.
13440
13441 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13442 Pedro Alves <palves@redhat.com>
13443
13444 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13445 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13446 (windows_gdb_signal_to_target): New function, uses the above
13447 enumeration to convert GDB internal signal codes to equivalent
13448 Windows codes.
13449 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13450 * windows-nat.c: Include "gdb_wait.h".
13451 (get_windows_debug_event): Extract the fatal exception from the
13452 exit status and convert to the equivalent Posix signal number.
13453 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13454 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13455 * gdbsupport/gdb_wait.c: New file, implements
13456 windows_status_to_termsig.
13457 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13458 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13459
13460 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13461
13462 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13463 show_layout.
13464
13465 2020-01-05 Luis Machado <luis.machado@linaro.org>
13466
13467 * aarch64-linux-nat.c
13468 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13469 and bfd_mach_aarch64.
13470
13471 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13472
13473 * ui-file.c (stdio_file::can_emit_style_escape)
13474 (tee_file::can_emit_style_escape): Ensure style is used also on
13475 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13476 to gdb_stdout.
13477 * main.c (set_gdb_data_directory): Use file style to output the
13478 warning that the given pathname is not a directory.
13479 * top.c (show_history_filename, gdb_safe_append_history)
13480 (show_gdb_datadir): Use file style.
13481
13482 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13483
13484 * solib-target.c (struct lm_info_target):
13485 Change offsets to be a unique_xmalloc_ptr.
13486 (solib_target_relocate_section_addresses): Update.
13487
13488 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13489
13490 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13491
13492 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13493
13494 * MAINTAINERS (Write After Approval): Add myself.
13495
13496 2020-01-02 Luis Machado <luis.machado@linaro.org>
13497
13498 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13499 Cell BE architecture.
13500 * target.h (struct target_ops) <thread_architecture>: Likewise.
13501
13502 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13503
13504 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13505
13506 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13507
13508 * MAINTAINERS (Write After Approval): Add myself.
13509
13510 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13511
13512 * gdbarch.sh: Update copyright year range of generated files.
13513
13514 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13515
13516 Update copyright year range in all GDB files.
13517
13518 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13519
13520 * copyright.py: Convert to Python 3.
13521
13522 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13523
13524 * copyright.py: Adapt after move of gnulib directory from gdb
13525 directory to toplevel directory.
13526
13527 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13528
13529 * copyright.py (main): Exit if run from the wrong directory.
13530
13531 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13532
13533 * top.c (print_gdb_version): Change copyright year to 2020.
13534
13535 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13536
13537 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13538
13539 For older changes see ChangeLog-2019.
13540 \f
13541 Local Variables:
13542 mode: change-log
13543 left-margin: 8
13544 fill-column: 74
13545 version-control: never
13546 coding: utf-8
13547 End:
This page took 0.283394 seconds and 5 git commands to generate.