gdb: Move la_language into the language_defn class
[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_language initializer.
4 * c-lang.c (c_language_data): Likewise.
5 (cplus_language_data): Likewise.
6 (asm_language_data): Likewise.
7 (minimal_language_data): Likewise.
8 * d-lang.c (d_language_data): Likewise.
9 * f-lang.c (f_language_data): Likewise.
10 * go-lang.c (go_language_data): Likewise.
11 * language.c (unknown_language_data): Likewise.
12 (auto_language_data): Likewise.
13 * language.h (language_data): Remove la_language field.
14 (language_defn::language_defn): Initialise la_language field.
15 (language_defn::la_language): New member variable.
16 * m2-lang.c (m2_language_data): Remove la_language field.
17 * objc-lang.c (objc_language_data): Likewise.
18 * opencl-lang.c (opencl_language_data): Likewise.
19 * p-lang.c (pascal_language_data): Likewise.
20 * rust-lang.c (rust_language_data): Likewise.
21
22 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * ada-lang.c (ada_extensions): Delete, moved into
25 ada_language::filename_extensions.
26 (ada_language_data): Remove la_filename_extensions initializer.
27 (ada_language::filename_extensions): New member function.
28 * c-lang.c (c_extensions): Delete, moved into
29 c_language::filename_extensions.
30 (c_language_data): Remove la_filename_extensions initializer.
31 (c_language::filename_extensions): New member function.
32 (cplus_extensions): Delete, moved into
33 cplus_language::filename_extensions.
34 (cplus_language_data): Remove la_filename_extensions initializer.
35 (cplus_language::filename_extensions): New member function.
36 (asm_extensions): Delete, moved into
37 asm_language::filename_extensions.
38 (asm_language_data): Remove la_filename_extensions initializer.
39 (asm_language::filename_extensions): New member function.
40 (minimal_language_data): Remove la_filename_extensions
41 initializer.
42 * d-lang.c (d_extensions): Delete, moved into
43 d_language::filename_extensions.
44 (d_language_data): Remove la_filename_extensions initializer.
45 (d_language::filename_extensions): New member function.
46 * f-lang.c (f_extensions): Delete, moved into
47 f_language::filename_extensions.
48 (f_language_data): Remove la_filename_extensions initializer.
49 (f_language::filename_extensions): New member function.
50 * go-lang.c (go_language_data): Remove la_filename_extensions
51 initializer.
52 * language.c (add_set_language_command): Update now that
53 filename_extensions returns a vector.
54 (unknown_language_data): Remove la_filename_extensions
55 initializer.
56 (auto_language_data): Likewise.
57 * language.h (language_data): Remove la_filename_extensions field.
58 (language_defn::filename_extensions): New member function.
59 * m2-lang.c (m2_language_data): Remove la_filename_extensions
60 initializer.
61 * objc-lang.c (objc_extensions): Delete, moved into
62 objc_language::filename_extensions.
63 (objc_language_data): Remove la_filename_extensions initializer.
64 (objc_language::filename_extensions): New member function.
65 * opencl-lang.c (opencl_language_data): Remove
66 la_filename_extensions initializer.
67 * p-lang.c (pascal_extensions): Delete, moved into
68 pascal_language::filename_extensions.
69 (pascal_language_data): Remove la_filename_extensions initializer.
70 (pascal_language::filename_extensions): New member function.
71 * rust-lang.c (rust_extensions): Delete, moved into
72 rust_language::filename_extensions.
73 (rust_language_data): Remove la_filename_extensions initializer.
74 (rust_language::filename_extensions): New member function.
75 * symfile.c (add_filename_language): Add new assert.
76
77 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * ada-lang.c (ada_language_data): Remove la_name and
80 la_natural_name initializers.
81 (ada_language::name): New member function.
82 (ada_language::natural_name): New member function.
83 * c-lang.c (c_language_data): Remove la_name and
84 la_natural_name initializers.
85 (c_language::name): New member function.
86 (c_language::natural_name): New member function.
87 (cplus_language_data): Remove la_name and
88 la_natural_name initializers.
89 (cplus_language::name): New member function.
90 (cplus_language::natural_name): New member function.
91 (asm_language_data): Remove la_name and
92 la_natural_name initializers.
93 (asm_language::name): New member function.
94 (asm_language::natural_name): New member function.
95 (minimal_language_data): Remove la_name and
96 la_natural_name initializers.
97 (minimal_language::name): New member function.
98 (minimal_language::natural_name): New member function.
99 * compile/compile.c (compile_to_object): Update call to
100 lanugage_defn::name.
101 * d-lang.c (d_language_data): Remove la_name and
102 la_natural_name initializers.
103 (d_language::name): New member function.
104 (d_language::natural_name): New member function.
105 * expprint.c (print_subexp_standard): Update call to
106 language_defn::name.
107 (dump_raw_expression): Likewise
108 (dump_prefix_expression): Likewise.
109 * f-lang.c (f_language_data): Remove la_name and
110 la_natural_name initializers.
111 (f_language::name): New member function.
112 (f_language::natural_name): New member function.
113 * go-lang.c (go_language_data): Remove la_name and
114 la_natural_name initializers.
115 (go_language::name): New member function.
116 (go_language::natural_name): New member function.
117 * language.c (show_language_command): Update call to
118 language_defn::name.
119 (set_language_command): Likewise.
120 (language_enum): Likewise.
121 (language_str): Likewise.
122 (add_set_language_command): Likewise, use
123 language_defn::natural_name in the doc string.
124 (unknown_language_data): Remove la_name and
125 la_natural_name initializers.
126 (unknown_language::name): New member function.
127 (unknown_language::natural_name): New member function.
128 (auto_language_data): Remove la_name and
129 la_natural_name initializers.
130 (auto_language::name): New member function.
131 (auto_language::natural_name): New member function.
132 (language_lookup_primitive_type_as_symbol): Update call to
133 language_defn::name.
134 * language.h (language_data): Remove la_name and la_natural_name
135 member variables.
136 (language_defn::name): New member function.
137 (language_defn::natural_name): New member function.
138 * m2-lang.c (m2_language_data): Remove la_name and
139 la_natural_name initializers.
140 (m2_language::name): New member function.
141 (m2_language::natural_name): New member function.
142 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
143 language_defn::natural_name.
144 * objc-lang.c (objc_language_data): Remove la_name and
145 la_natural_name initializers.
146 (objc_language::name): New member function.
147 (objc_language::natural_name): New member function.
148 * opencl-lang.c (opencl_language_data): Remove la_name and
149 la_natural_name initializers.
150 (opencl_language::name): New member function.
151 (opencl_language::natural_name): New member function.
152 * p-lang.c (pascal_language_data): Remove la_name and
153 la_natural_name initializers.
154 (pascal_language::name): New member function.
155 (pascal_language::natural_name): New member function.
156 * rust-lang.c (rust_language_data): Remove la_name and
157 la_natural_name initializers.
158 (rust_language::name): New member function.
159 (rust_language::natural_name): New member function.
160 * symtab.c (lookup_language_this): Update call to
161 language_defn::name.
162
163 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
164
165 * ada-lang.c (ada_language_data): Remove la_name_of_this
166 initializer.
167 * ax-gdb.c (gen_expr): Update call to name_of_this.
168 * c-exp.y (classify_name): Likewise.
169 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
170 (cplus_language_data): Likewise.
171 (cplus_language::name_of_this): New member function.
172 (asm_language_data): Remove la_name_of_this initializer.
173 (minimal_language_data): Likewise.
174 * d-lang.c (d_language_data): Likewise.
175 (d_language::name_of_this): New member function.
176 * expprint.c (print_subexp_standard): Update call to name_of_this.
177 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
178 * go-lang.c (go_language_data): Likewise.
179 * language.c (unknown_language_data): Likewise.
180 (unknown_language::name_of_this): New member function.
181 (auto_language_data): Remove la_name_of_this initializer.
182 (auto_language::name_of_this): New member function.
183 * language.h (language_data): Delete la_name_of_this member
184 variable.
185 (language_defn::name_of_this): New member function.
186 * m2-lang.c (m2_language_data): Remove la_name_of_this
187 initializer.
188 * objc-lang.c (objc_language_data): Likewise.
189 (objc_language::name_of_this): New member function.
190 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
191 initializer.
192 * p-lang.c (pascal_language_data): Likewise.
193 (pascal_language::name_of_this): New member function.
194 * rust-lang.c (rust_language_data): Remove la_name_of_this
195 initializer.
196 * symtab.c (lookup_language_this): Update call to name_of_this.
197 (lookup_symbol_aux): Likewise.
198 * valops.c (value_of_this): Likewise.
199
200 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
201
202 * ada-lang.c (ada_language_data): Remove
203 la_struct_too_deep_ellipsis initializer.
204 (ada_language::struct_too_deep_ellipsis): New member function.
205 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
206 initializer.
207 (cplus_language_data): Likewise.
208 (asm_language_data): Likewise.
209 (minimal_language_data): Likewise.
210 * cp-valprint.c (cp_print_value): Update call to
211 struct_too_deep_ellipsis.
212 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
213 initializer.
214 * f-lang.c (f_language_data): Likewise.
215 (f_language::struct_too_deep_ellipsis): New member function.
216 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
217 initializer.
218 * language.c (unknown_language_data): Likewise.
219 (auto_language_data): Likewise.
220 * language.h (language_data): Delete la_struct_too_deep_ellipsis
221 member variable.
222 (language_defn::struct_too_deep_ellipsis): New member function.
223 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
224 initializer.Q
225 * objc-lang.c (objc_language_data): Likewise.
226 * opencl-lang.c (opencl_language_data): Likewise.
227 * p-lang.c (pascal_language_data): Likewise.
228 * rust-lang.c (rust_language_data): Likewise.
229 * valprint.c (val_print_check_max_depth): Update call to
230 struct_too_deep_ellipsis.
231
232 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
233
234 * MAINTAINERS (Write After Approval): Add myself.
235
236 2020-09-15 Tom Tromey <tom@tromey.com>
237
238 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
239 Remove.
240
241 2020-09-15 Tom Tromey <tom@tromey.com>
242
243 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
244 and TYPE_CODE_METHODPTR cases.
245 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
246 (c_value_print_inner): Update.
247 * valprint.c (generic_value_print_memberptr): New function, from
248 c_value_print_memberptr.
249 (generic_value_print): Use it. Call cplus_print_method_ptr.
250
251 2020-09-15 Tom Tromey <tromey@adacore.com>
252
253 * python/python-internal.h (PyInt_FromLong): Remove define.
254 * python/py-value.c (convert_value_from_python): Use
255 gdb_py_object_from_longest.
256 * python/py-type.c (typy_get_code): Use
257 gdb_py_object_from_longest.
258 * python/py-symtab.c (salpy_get_line): Use
259 gdb_py_object_from_longest.
260 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
261 gdb_py_object_from_longest.
262 * python/py-record.c (recpy_gap_reason_code): Use
263 gdb_py_object_from_longest.
264 * python/py-record-btrace.c (recpy_bt_insn_size)
265 (recpy_bt_func_level, btpy_list_count): Use
266 gdb_py_object_from_longest.
267 * python/py-infthread.c (gdbpy_create_ptid_object): Use
268 gdb_py_object_from_longest. Fix error handling.
269 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
270 gdb_py_object_from_longest.
271 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
272 gdb_py_object_from_longest.
273 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
274 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
275 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
276
277 2020-09-15 Tom Tromey <tromey@adacore.com>
278
279 * python/python.c (gdbpy_parameter_value): Use
280 gdb_py_object_from_ulongest.
281
282 2020-09-15 Tom Tromey <tromey@adacore.com>
283
284 * python/py-infevents.c (create_register_changed_event_object):
285 Use gdb_py_object_from_longest.
286 * python/py-exitedevent.c (create_exited_event_object): Use
287 gdb_py_object_from_longest.
288
289 2020-09-15 Tom Tromey <tromey@adacore.com>
290
291 * python/python.c (gdbpy_parameter_value): Use
292 gdb_py_object_from_longest.
293 * python/py-type.c (convert_field, typy_range): Use
294 gdb_py_object_from_longest.
295 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
296 gdb_py_object_from_longest.
297 * python/py-lazy-string.c (stpy_get_length): Use
298 gdb_py_object_from_longest.
299 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
300 gdb_py_object_from_longest.
301 * python/py-infevents.c (create_memory_changed_event_object): Use
302 gdb_py_object_from_longest.
303 * python/py-inferior.c (infpy_get_num): Use
304 gdb_py_object_from_longest.
305 (infpy_get_pid): Likewise.
306
307 2020-09-15 Tom Tromey <tromey@adacore.com>
308
309 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
310 defines.
311 * python/py-value.c (valpy_long): Use
312 gdb_py_object_from_ulongest.
313 * python/py-symtab.c (salpy_get_pc): Use
314 gdb_py_object_from_ulongest.
315 (salpy_get_last): Likewise.
316 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
317 gdb_py_object_from_ulongest.
318 * python/py-lazy-string.c (stpy_get_address): Use
319 gdb_py_object_from_ulongest.
320 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
321 * python/py-arch.c (archpy_disassemble): Use
322 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
323 error handling.
324
325 2020-09-15 Tom Tromey <tromey@adacore.com>
326
327 * python/python-internal.h (gdb_py_long_from_longest): Remove
328 defines.
329 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
330 * python/py-type.c (convert_field, typy_get_sizeof): Use
331 gdb_py_object_from_longest.
332 * python/py-record-btrace.c (btpy_list_index): Use
333 gdb_py_object_from_longest.
334
335 2020-09-15 Tom Tromey <tromey@adacore.com>
336
337 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
338 * python/py-record.c (recpy_element_number): Use
339 gdb_py_object_from_longest.
340 (recpy_gap_number): Likewise.
341
342 2020-09-15 Tom Tromey <tromey@adacore.com>
343
344 * top.c (ui::ui): Update.
345 (highest_ui_num): Remove.
346 * top.h (struct ui) <num>: Remove.
347
348 2020-09-15 Tom Tromey <tromey@adacore.com>
349
350 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
351 * ui-style.c (ansi_regex_text): Now array.
352 * rust-exp.y (number_regex_text): Now array.
353 * linespec.c (linespec_quote_characters): Now array.
354 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
355 Now arrays.
356
357 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * debuginfod-support.c (debuginfod_client_deleter): New.
360 (debuginfod_client_up): New.
361 (debuginfod_init): Return debuginfod_client_up.
362 (debuginfod_source_query): Adjust.
363 (debuginfod_debuginfo_query): Adjust.
364
365 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * debuginfod-support.c (debuginfod_source_query): Use
368 make_unique_xstrdup.
369
370 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
371
372 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
373 with `type::instance_flags`.
374
375 2020-09-14 Michael Mullin <masmullin@gmail.com>
376
377 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
378 Remove baton parameter.
379
380 2020-09-14 Pedro Alves <pedro@palves.net>
381
382 * Makefile.in (SELFTESTS_SRCS): Add
383 unittests/enum-flags-selftests.c.
384 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
385 btrace_function_flags instead of enum btrace_function_flag.
386 * compile/compile-c-types.c (convert_qualified): Use
387 enum_flags::raw.
388 * compile/compile-cplus-symbols.c (convert_one_symbol)
389 (convert_symbol_bmsym):
390 * compile/compile-cplus-types.c (compile_cplus_convert_method)
391 (compile_cplus_convert_struct_or_union_methods)
392 (compile_cplus_instance::convert_qualified_base):
393 * go-exp.y (parse_string_or_char): Add cast to int.
394 * unittests/enum-flags-selftests.c: New file.
395 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
396 type to btrace_thread_flags from btrace_thread_flag.
397 (record_btrace_cancel_resume, record_btrace_step_thread): Change
398 local's type to btrace_thread_flags from btrace_thread_flag. Add
399 cast in DEBUG call.
400
401 2020-09-14 Pedro Alves <pedro@palves.net>
402
403 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
404 * gdbtypes.c (address_space_name_to_int): Rename to ...
405 (address_space_name_to_type_instance_flags): ... this.
406 (address_space_int_to_name): Rename to ...
407 (address_space_type_instance_flags_to_name): ... this.
408 * gdbtypes.h (address_space_name_to_int): Rename to ...
409 (address_space_name_to_type_instance_flags): ... this.
410 (address_space_int_to_name): Rename to ...
411 (address_space_type_instance_flags_to_name): ... this.
412 * type-stack.c (type_stack::insert): Adjust to rename.
413 * type-stack.h (type_stack::insert): Likewise.
414
415 2020-09-14 Pedro Alves <pedro@palves.net>
416 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * avr-tdep.c (avr_address_class_type_flags): Return
419 type_instance_flags.
420 (avr_address_class_type_flags_to_name): Take a
421 type_instance_flags.
422 (avr_address_class_name_to_type_flags): Return bool and take a
423 type_instance_flags.
424 * d-lang.c (build_d_types): Use type::set_instance_flags.
425 * ft32-tdep.c (ft32_address_class_type_flags): Return
426 type_instance_flags.
427 (ft32_address_class_type_flags_to_name): Take a
428 type_instance_flags.
429 (ft32_address_class_name_to_type_flags): Return bool and take a
430 type_instance_flags.
431 (ft32_gdbarch_init): Use type::set_instance_flags.
432 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
433 * gdbarch.h, gdbarch.c: Regenerate.
434 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
435 (address_class_name_to_type_flags): Use type_instance_flags and
436 bool.
437 * gdbtypes.c (address_space_name_to_int)
438 (address_space_int_to_name, make_qualified_type): Use
439 type_instance_flags.
440 (make_qualified_type): Use type_instance_flags and
441 type::set_instance_flags.
442 (make_type_with_address_space, make_cv_type, make_vector_type)
443 (check_typedef): Use type_instance_flags.
444 (recursive_dump_type): Cast type_instance_flags to unsigned for
445 printing.
446 (copy_type_recursive): Use type::set_instance_flags.
447 (gdbtypes_post_init): Use type::set_instance_flags.
448 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
449 <m_instance_flags>: ... this.
450 <instance_flags, set_instance_flags>: New methods.
451 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
452 (SET_TYPE_INSTANCE_FLAGS): New.
453 (address_space_name_to_int, address_space_int_to_name)
454 (make_type_with_address_space): Pass flags using
455 type_instance_flags instead of int.
456 * stabsread.c (cleanup_undefined_types_noname): Use
457 type::set_instance_flags.
458 * s390-tdep.c (s390_address_class_type_flags): Return
459 type_instance_flags.
460 (s390_address_class_type_flags_to_name): Take a
461 type_instance_flags.
462 (s390_address_class_name_to_type_flags): Return bool and take a
463 type_instance_flags.
464 * type-stack.c (type_stack::follow_types): Use
465 type_instance_flags.
466 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
467
468 2020-09-14 Tom Tromey <tromey@adacore.com>
469
470 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
471 * x86-tdep.c (x86_is_thunk_register_name)
472 (x86_in_indirect_branch_thunk): Update.
473 * sparc64-tdep.c (sparc64_fpu_register_names)
474 (sparc64_cp0_register_names, sparc64_register_names)
475 (sparc64_pseudo_register_names): Now const.
476 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
477 cp0_registers_num>: Now const.
478 * sparc-tdep.c (sparc_core_register_names)
479 (sparc32_fpu_register_names, sparc32_cp0_register_names)
480 (sparc32_pseudo_register_names): Now const.
481 (validate_tdesc_registers): Update.
482 * rust-lang.c (rust_extensions): Now const.
483 * p-lang.c (p_extensions): Now const.
484 * objc-lang.c (objc_extensions): Now const.
485 * nto-tdep.c (nto_thread_state_str): Now const.
486 * moxie-tdep.c (moxie_register_names): Now const.
487 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
488 Now const.
489 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
490 (mips_linux_reg_names): Now const.
491 (mips_gdbarch_init): Update.
492 * microblaze-tdep.c (microblaze_register_names): Now const.
493 * m68k-tdep.c (m68k_register_names): Now const.
494 * m32r-tdep.c (m32r_register_names): Now const.
495 * ia64-tdep.c (ia64_register_names): Now const.
496 * i386-tdep.h (struct gdbarch_tdep) <register_names,
497 ymmh_register_names, ymm16h_regnum, mpx_register_names,
498 k_register_names, zmmh_register_names, xmm_avx512_register_names,
499 ymm_avx512_register_names, pkeys_register_names>: Now const.
500 * i386-tdep.c (i386_register_names, i386_zmm_names)
501 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
502 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
503 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
504 * f-lang.c (f_extensions): Now const.
505 * d-lang.c (d_extensions): Now const.
506 * csky-tdep.c (csky_register_names): Now const.
507 * charset.c (default_charset_names, charset_enum): Now const.
508 (_initialize_charset): Update.
509 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
510 const.
511 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
512 (bsd_uthread_solib_loaded): Update.
513 (bsd_uthread_state): Now const.
514 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
515 (amd64_ymm_avx512_names, amd64_ymmh_names)
516 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
517 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
518 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
519 (amd64_dword_names): Now const.
520 * agent.c (can_use_agent_enum): Now const.
521 * ada-tasks.c (task_states, long_task_states): Now const.
522 * ada-lang.c (known_runtime_file_name_patterns)
523 (known_auxiliary_function_name_patterns, attribute_names)
524 (standard_exc, ada_extensions): Now const.
525
526 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
527
528 * bcache.h (struct bcache) <bcache>: Remove constructor.
529 <m_hash_function, m_compare_function>: Remove.
530 <~bcache>: Make virtual.
531 <compare>: Remove static method, introduce virtual method.
532 <default_hash>: Remove.
533 <hash>: New virtual method.
534 * bcache.c (bcache::expand_hash_table): Update.
535 (bcache::insert): Update.
536 (bcache::hash): New.
537 (bcache::compare): Update comment and parameter names.
538 * gdbtypes.c (types_deeply_equal): Update.
539 * psymtab.h (struct psymbol_bcache): New struct.
540 (class psymtab_storage) <psymtab_storage>: Make default.
541 <psymbol_cache>: Change type to psymbol_bcache.
542 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
543 (psymbol_hash): Change to...
544 (psymbol_bcache::hash): ... this.
545 (psymbol_compare): Change to...
546 (psymbol_bcache::compare): ... this.
547
548 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
551 checking for initial lwp.
552
553 2020-09-14 Tom Tromey <tromey@adacore.com>
554
555 * m68k-tdep.c (m68k_extract_return_value): Use
556 pointer_result_regnum.
557 (m68k_store_return_value): Likewise.
558 (m68k_reg_struct_return_p): Handle vectors and arrays.
559 (m68k_return_value): Handle arrays.
560 (m68k_svr4_return_value): Fix single-element aggregate handling.
561 Handle long double. Adjust for embedded ABI.
562 (m68k_svr4_init_abi): Set pointer_result_regnum.
563 (m68k_embedded_init_abi): New function.
564 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
565 (m68k_osabi_sniffer): New function.
566 (_initialize_m68k_tdep): Register osabi sniffer.
567 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
568 member.
569
570 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
571
572 * xml-support.c (xml_fetch_content_from_file): Replace xfree
573 with gdb::unique_xmalloc_ptr<char>.
574
575 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * xml-support.h (xml_fetch_another): Change type to be a
578 function_view.
579 (xml_process_xincludes): Remove baton parameter.
580 (xml_fetch_content_from_file): Change baton parameter to
581 dirname.
582 * xml-support.c (struct xinclude_parsing_data)
583 <xinclude_parsing_data>: Remove baton parameter.
584 <fetcher_baton>: Remove.
585 (xinclude_start_include): Adjust.
586 (xml_process_xincludes): Adjust.
587 (xml_fetch_content_from_file): Replace baton parameter with
588 dirname.
589 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
590 (xml_init_syscalls_info): Use a lambda.
591 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
592 (file_read_description_xml): Use a lambda.
593 (fetch_available_features_from_target): Change baton parameter
594 to target_ops.
595 (target_read_description_xml): Use a lambda.
596 (target_fetch_description_xml): Use a lambda.
597 (string_read_description_xml): Update.
598
599 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
600
601 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
602 uses with type::endianity_is_not_default.
603
604 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
605
606 * gdbtypes.h (struct type) <endianity_is_not_default,
607 set_endianity_is_not_default>: New methods.
608 (TYPE_ENDIANITY_NOT_DEFAULT): Use
609 type::endianity_is_not_default, change all write call sites to
610 use type::set_endianity_is_not_default.
611
612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
613
614 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
615 uses with type::is_fixed_instance.
616
617 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
618
619 * gdbtypes.h (struct type) <is_fixed_instance,
620 set_is_fixed_instance>: New methods.
621 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
622 write call sites to use type::set_is_fixed_instance.
623
624 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
625
626 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
627 uses with type::is_gnu_ifunc.
628
629 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
630
631 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
632 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
633 use type::set_is_gnu_ifunc.
634
635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
636
637 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
638 uses with type::stub_is_supported.
639
640 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
641
642 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
643 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
644 use type::set_stub_is_supported.
645
646 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
647
648 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
649 uses with type::is_vector.
650
651 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
652
653 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
654 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
655 use type::set_is_vector.
656
657 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
658
659 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
660 uses with type::has_varargs.
661
662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
663
664 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
665 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
666 use type::set_has_varargs.
667
668 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
669
670 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
671 uses with type::is_prototyped.
672
673 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
674
675 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
676 New methods.
677 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
678 call sites to use type::set_is_prototyped.
679
680 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
681
682 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
683 uses with type::target_is_stub.
684
685 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
686
687 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
688 New methods.
689 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
690 sites to use type::set_target_is_stub.
691
692 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
693
694 * gdbtypes.h (TYPE_STUB): Remove, replace all
695 uses with type::is_stub.
696
697 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
698
699 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
700 (TYPE_STUB): Use type::is_stub, change all write call sites to
701 use type::set_is_stub.
702
703 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
704
705 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
706 type::has_no_signedness.
707
708 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
709
710 * gdbtypes.h (struct type) <has_no_signedness,
711 set_has_no_signedness>: New methods.
712 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
713 call sites to use type::set_has_no_signedness.
714
715 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
716
717 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
718 type::is_unsigned.
719
720 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
721
722 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
723 methods.
724 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
725 sites to use type::set_is_unsigned.
726
727 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
728 Adam Renquinha <arenquinha@cimeq.qc.ca>
729
730 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
731 pointer and stack frame offset when unwinding.
732
733 2020-09-13 Pedro Alves <pedro@palves.net>
734
735 * NEWS: Document "-break-insert --qualified".
736 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
737
738 2020-09-13 Pedro Alves <pedro@palves.net>
739
740 * linespec.c (classify_mtype, compare_msyms): Delete.
741 (search_minsyms_for_name): Remove classification logic. Instead
742 filter out trampoline symbols if we also found an external
743 function of the same name.
744
745 2020-09-13 Joel Brobecker <brobecker@adacore.com>
746
747 * NEWS: Create a new section for the next release branch.
748 Rename the section of the current branch, now that it has
749 been cut.
750
751 2020-09-13 Joel Brobecker <brobecker@adacore.com>
752
753 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
754 * version.in: Bump version to 11.0.50.DATE-git.
755
756 2020-09-12 Joel Brobecker <brobecker@adacore.com>
757
758 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
759
760 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
761 Felix Willgerodt <Felix.Willgerodt@intel.com>
762
763 * gdbarch.sh: Added bfloat16 type.
764 * gdbarch.c: Regenerated.
765 * gdbarch.h: Regenerated.
766 * gdbtypes.c (floatformats_bfloat16): New struct.
767 (gdbtypes_post_init): Add builtin_bfloat16.
768 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
769 (floatformats_bfloat16): New struct.
770 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
771 (i386_ymm_type): Add field "v16_bfloat16"
772 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
773 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
774 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
775 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
776 * features/i386/64bit-avx512.xml: Add bfloat16 type.
777 * features/i386/64bit-avx512.c: Regenerated.
778 * features/i386/64bit-sse.xml: Add bfloat16 type.
779 * features/i386/64bit-sse.c: Regenerated.
780
781 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
782
783 * i386-tdep.c (i386_zmm_type): Fix field names.
784 (i386_ymm_type): Fix field names.
785
786 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787
788 * breakpoint.c: Fix typo in the help message of the
789 "set breakpoint condition-evaluation" command.
790
791 2020-09-10 Kamil Rytarowski <n54@gmx.com>
792
793 * nbsd-nat.c: Include "nat/netbsd-nat.h".
794 * (nbsd_nat_target::pid_to_exec_file)
795 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
796 (nbsd_nat_target::post_startup_inferior)
797 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
798 (nbsd_add_threads): Switch local code to common gdb/nat functions.
799 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
800 * (nbsd_thread_lister): Remove.
801
802 2020-09-10 Kamil Rytarowski <n54@gmx.com>
803
804 * fork-inferior.c (startup_inferior): Avoid double free.
805
806 2020-09-10 Kamil Rytarowski <n54@gmx.com>
807
808 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
809 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
810
811 2020-09-10 Kamil Rytarowski <n54@gmx.com>
812
813 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
814 * netbsd-nat.c: Include <sys/ptrace.h>.
815 * (netbsd_nat::enable_proc_events): Add.
816
817 2020-09-10 Kamil Rytarowski <n54@gmx.com>
818
819 * netbsd-nat.h: Include "gdbsupport/function-view.h".
820 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
821 (netbsd_nat::for_each_thread): Add.
822 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
823 "gdbsupport/common-debug.h".
824 * (netbsd_nat::netbsd_thread_lister)
825 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
826 (netbsd_nat::for_each_thread): Add.
827
828 2020-09-10 Kamil Rytarowski <n54@gmx.com>
829
830 * netbsd-nat.h: Include <unistd.h>.
831 * (netbsd_nat::pid_to_exec_file): Add.
832 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
833 * (netbsd_nat::pid_to_exec_file) Add.
834
835 2020-09-10 Kamil Rytarowski <n54@gmx.com>
836
837 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
838
839 2020-09-10 Kamil Rytarowski <n54@gmx.com>
840
841 * netbsd-nat.h: New file.
842 * netbsd-nat.c: Likewise.
843
844 2020-09-09 Tom Tromey <tromey@adacore.com>
845
846 * ada-lang.c (remove_extra_symbols): Do not increment when
847 removing an element
848
849 2020-09-08 Tom Tromey <tromey@adacore.com>
850
851 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
852
853 2020-09-08 Tom Tromey <tromey@adacore.com>
854
855 PR win32/25302:
856 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
857 (gdb_bfd_init_data): New function.
858 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
859
860 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
861
862 * infrun.c (fetch_inferior_event): Use
863 `switch_to_target_no_thread` to switch the target.
864
865 2020-09-06 Tom Tromey <tom@tromey.com>
866
867 * symfile.h (dwarf2_free_objfile): Don't declare.
868
869 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
870
871 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
872 to match 16 byte real/complex type generated by Flang compiler.
873
874 2020-09-03 Tom de Vries <tdevries@suse.de>
875
876 PR breakpoint/26546
877 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
878 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
879
880 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
881
882 * maint.c (index_digits): New function.
883 (struct maint_print_section_data): Remove.
884 (print_bfd_section_info): Remove print_data parameter, add arg
885 and index_digits.
886 (print_objfile_section_info): Likewise.
887 (print_bfd_section_info_maybe_relocated): Likewise (plus
888 objfile).
889 (maintenance_info_sections): Adjust calls.
890
891 2020-09-02 Tom Tromey <tromey@adacore.com>
892
893 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
894 for null pointers.
895 (ada_varobj_adjust_for_child_access): Special-case null pointers.
896
897 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
898
899 * bcache.h (struct bcache) <insert>: Change type of `added` to
900 pointer to bool.
901 * bcache.c (bcache::insert): Likewise.
902 * gdbtypes.c (check_types_worklist): Adjust.
903 * psymtab.c (add_psymbol_to_bcache): Adjust.
904
905 2020-08-31 Kevin Buettner <kevinb@redhat.com>
906
907 * corelow.c (unordered_set): Include.
908 (class core_target): Add field 'm_core_unavailable_mappings'.
909 (core_target::build_file_mappings): Print only one warning
910 per inaccessible file. Add unavailable/broken mappings
911 to m_core_unavailable_mappings.
912 (core_target::xfer_partial): Call...
913 (core_target::xfer_memory_via_mappings): New method.
914
915 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
916
917 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
918 type to bool.
919
920 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * dwarf2/read.c (struct field_info): Fix indentation.
923
924 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
925
926 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
927 ordering in comment.
928 * frame.c (frame_id_eq): Fix indentation.
929
930 2020-08-31 Scott Linder <scott@scottlinder.com>
931 Simon Marchi <simon.marchi@efficios.com>
932
933 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
934 inline frame ids in outer frame.
935
936 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
937
938 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
939 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
940 (outer_frame_id): Use FID_STACK_OUTER instead of
941 FID_STACK_INVALID.
942 (frame_id_p): Don't check for outer_frame_id.
943
944 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
945
946 * frame-unwind.c (frame_unwind_got_optimized): Don't set
947 regnum/frame in value. Call allocate_value_lazy.
948 * frame.c (frame_unwind_register_value): Use
949 val_print_not_saved.
950
951 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
952
953 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
954
955 2020-08-29 Pedro Alves <pedro@palves.net>
956
957 * progspace.c (print_program_space): Use all_inferiors. Switch to
958 the inferior before calling target_pid_to_str.
959
960 2020-08-28 Tom Tromey <tom@tromey.com>
961
962 * xcoffread.c (xcoff_end_psymtab): Update comment.
963 * dbxread.c (dbx_end_psymtab): Update comment.
964
965 2020-08-28 Tom de Vries <tdevries@suse.de>
966
967 PR breakpoint/26544
968 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
969 event_location.
970 (create_breakpoint): Same.
971 (base_breakpoint_decode_location): Same.
972 (bkpt_create_sals_from_location): Same.
973 (bkpt_decode_location): Same.
974 (bkpt_probe_create_sals_from_location): Same.
975 (bkpt_probe_decode_location): Same.
976 (tracepoint_create_sals_from_location): Same.
977 (tracepoint_decode_location): Same.
978 (tracepoint_probe_decode_location): Same.
979 (strace_marker_create_sals_from_location): Same.
980 (strace_marker_decode_location): Same.
981 (create_sals_from_location_default): Same.
982 (decode_location_default): Same.
983 * breakpoint.h (struct breakpoint_ops): Same.
984 (create_breakpoint): Same.
985 * linespec.h (decode_line_full): Same.
986 * linespec.c (decode_line_full): Same. Throw error if
987 result.size () == 0.
988
989 2020-08-27 Pedro Alves <pedro@palves.net>
990
991 PR gdb/26524
992 * breakpoint.c (until_break_fsm) <location_breakpoint,
993 caller_breakpoint>: Delete fields.
994 <breakpoints>: New field.
995 <until_break_fsm>: Adjust to save a breakpoint vector instead of
996 two individual breakpoints.
997 (until_break_fsm::should_stop): Loop over breakpoints in the
998 breakpoint vector.
999 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1000 vector.
1001 (until_break_command): Handle location expanding into multiple
1002 sals.
1003
1004 2020-08-27 Pedro Alves <pedro@palves.net>
1005
1006 PR gdb/26523
1007 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1008 bp_until breakpoints user-specified locations. Update intro
1009 comment.
1010
1011 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1014 gdb_bfd_sections): New.
1015 * maint.c (print_bfd_section_info): Change param type to
1016 maint_print_section_data.
1017 (print_objfile_section_info): Likewise.
1018 (print_bfd_section_info_maybe_relocated): Likewise.
1019 (maintenance_info_sections): Use gdb_bfd_sections.
1020
1021 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1022
1023 * MAINTAINERS: Add ARC target and maintainer.
1024
1025 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1026
1027 * configure.tgt: ARC support for GNU/Linux.
1028 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1029 * arc-linux-tdep.c: New file.
1030 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1031 * arc-tdep.c (arc_write_pc): Use it.
1032
1033 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1034
1035 * arc-tdep.c (arc_check_for_hardware_loop): New.
1036 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1037
1038 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1039
1040 * arc-tdep.h: Include "gdbarch.h".
1041
1042 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1043
1044 * arch/arc.h
1045 (arc_gdbarch_features): New class to stir the selection of target XML.
1046 (arc_create_target_description): Use FEATURES to choose XML target.
1047 (arc_lookup_target_description): Use arc_create_target_description
1048 to create _new_ target descriptions or return the already created
1049 ones if the FEATURES is the same.
1050 * arch/arc.c: Implementation of prototypes described above.
1051 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1052 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1053 * arc-tdep.c (*_feature_name): Make feature names consistent.
1054 (arc_register_feature): A new struct to hold information about
1055 registers of a particular target/feature.
1056 (arc_check_tdesc_feature): Check if XML provides registers in
1057 compliance with ARC_REGISTER_FEATURE structs.
1058 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1059 (determine_*_reg_feature_set): Which feature name to look for.
1060 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1061 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1062 to expected ISA enums to be used in arc_gdbarch_features structs.
1063 * features/Makefile (FEATURE_XMLFILES): Add new files.
1064 * gdb/features/arc/v1-aux.c: New file.
1065 * gdb/features/arc/v1-aux.xml: Likewise.
1066 * gdb/features/arc/v1-core.c: Likewise.
1067 * gdb/features/arc/v1-core.xml: Likewise.
1068 * gdb/features/arc/v2-aux.c: Likewise.
1069 * gdb/features/arc/v2-aux.xml: Likewise.
1070 * gdb/features/arc/v2-core.c: Likewise.
1071 * gdb/features/arc/v2-core.xml: Likewise.
1072 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1073
1074 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1075 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 PR m2/26372
1078 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1079 an assert. Remove single element array indexing pattern as the
1080 MULTI_SUBSCRIPT support will handle this case too.
1081
1082 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * value.h (valprint_check_validity): Move declaration from
1085 here...
1086 * valprint.h (valprint_check_validity): ... to here.
1087
1088 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1089
1090 * debug.h: New file.
1091 * debug.c (debug_prefixed_vprintf): New function.
1092 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1093 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1094
1095 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1096
1097 * infrun.h (infrun_debug_printf_1): New function declaration.
1098 (infrun_debug_printf): New macro.
1099 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1100 throughout.
1101 (infrun_debug_printf): New function.
1102 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1103 (handle_jit_event): Likewise.
1104
1105 2020-08-21 Mark Wielaard <mark@klomp.org>
1106
1107 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1108
1109 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1110
1111 * frame.c (enum class frame_id_status): New.
1112 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1113 (fprintf_frame): Update.
1114 (compute_frame_id): Set frame id status to "computing" on entry.
1115 Set it back to "not_computed" on failure and to "computed" on
1116 success.
1117 (get_frame_id): Assert the frame id is not being computed.
1118 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1119 (create_new_frame): Likewise.
1120 (frame_cleanup_after_sniffer): Update assert.
1121
1122 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1123
1124 * regcache.c (pid_ptid_regcache_map): New type.
1125 (target_ptid_regcache_map): Remove.
1126 (target_pid_ptid_regcache_map): New type.
1127 (regcaches): Change type to target_pid_ptid_regcache_map.
1128 (get_thread_arch_aspace_regcache): Update.
1129 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1130 case.
1131 (regcaches_size): Update.
1132 (regcache_count): Update.
1133 (registers_changed_ptid_target_pid_test): New.
1134 (_initialize_regcache): Register new test.
1135
1136 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1137
1138 * regcache.c (regcache_count): New.
1139 (struct regcache_test_data): New.
1140 (regcache_test_data_up): New.
1141 (populate_regcaches_for_test): New.
1142 (regcaches_test): Remove.
1143 (get_thread_arch_aspace_regcache_test): New.
1144 (registers_changed_ptid_all_test): New.
1145 (registers_changed_ptid_target_test): New.
1146 (registers_changed_ptid_target_ptid_test): New.
1147 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1148 (_initialize_regcache): Register new tests.
1149
1150 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1151
1152 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1153 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1154 gdbarch and aspace parameter. Use current inferior's aspace.
1155 Validate regcache's arch value.
1156 (regcaches_test): Update.
1157
1158 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * regcache.c (regcaches_test): Call registers_changed.
1161
1162 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1163
1164 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1165
1166 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1167
1168 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1169 to find the end of prologue for flang compiled binaries.
1170 * arm-tdep.c (arm_skip_prologue): Likewise.
1171 * i386-tdep.c (i386_skip_prologue): Likewise.
1172 * producer.c (producer_is_llvm): New function.
1173 (producer_parsing_tests): Added new tests for clang/flang.
1174 * producer.h (producer_is_llvm): New declaration.
1175
1176 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1177
1178 * linux-nat.c (linux_nat_debug_printf): New function.
1179 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1180
1181 2020-08-18 Aaron Merey <amerey@redhat.com>
1182
1183 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1184 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1185 (CLIBS): Add DEBUGINFOD_LIBS.
1186
1187 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1188
1189 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1190 'gdbarch_num_regs'.
1191
1192 2020-08-17 Tom Tromey <tromey@adacore.com>
1193
1194 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1195 ada_get_decoded_value returns NULL.
1196
1197 2020-08-17 Tom Tromey <tromey@adacore.com>
1198
1199 * python/py-inferior.c (infpy_search_memory): Use
1200 gdb_py_object_from_ulongest.
1201 * python/py-infevents.c (create_inferior_call_event_object)
1202 (create_memory_changed_event_object): Use
1203 gdb_py_object_from_ulongest.
1204 * python/py-linetable.c (ltpy_entry_get_pc): Use
1205 gdb_py_object_from_ulongest.
1206
1207 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * loc.c (class symbol_needs_eval_context): Fix indentation.
1210
1211 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1214 bool.
1215
1216 2020-08-17 Tom de Vries <tdevries@suse.de>
1217
1218 PR gdb/26393
1219 * gdbtypes.c (dump_dynamic_prop): New function.
1220 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1221
1222 2020-08-15 Tom de Vries <tdevries@suse.de>
1223
1224 PR backtrace/26390
1225 * stack.c (print_frame_args): Temporarily set the selected
1226 frame to FRAME while printing the frame's arguments.
1227
1228 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1229
1230 PR breakpoints/26385
1231 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1232 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1233
1234 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1235
1236 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1237 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1238 and >= to check return value instead of == -1 and != -1.
1239
1240 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * utils.h (class gdb_argv) <as_array_view>: New method.
1243 * utils.c (gdb_argv_as_array_view_test): New.
1244 (_initialize_utils): Register selftest.
1245 * maint.c (maintenance_selftest): Use the new method.
1246
1247 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1248
1249 * target.h (supports_dumpcore, dumpcore): New
1250 function declarations.
1251 * target.c (supports_dumpcore, dumpcore): New
1252 functions.
1253 * target-delegates.c: Rebuild.
1254 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1255 and target_dumpcore ().
1256
1257 2020-08-13 Aaron Merey <amerey@redhat.com>
1258
1259 * debuginfod-support.c: Replace global variables with user_data.
1260
1261 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1262
1263 * maint.c (maintenance_selftest): Split args and pass array_view
1264 to run_tests.
1265
1266 2020-08-12 Luis Machado <luis.machado@linaro.org>
1267
1268 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1269 type's length.
1270 Use %s and pulongest to print the length.
1271
1272 2020-08-12 Pedro Alves <palves@redhat.com>
1273
1274 * NEWS: Move "Multi-target debugging support" item to the
1275 "Changes since GDB 9" section.
1276
1277 2020-08-12 Pedro Alves <palves@redhat.com>
1278
1279 PR gdb/26336
1280 * progspace.c (program_space::remove_objfile): Invalidate the
1281 frame cache.
1282
1283 2020-08-11 Tom de Vries <tdevries@suse.de>
1284
1285 * MAINTAINERS: Mark ms1 as deleted.
1286
1287 2020-08-10 Luis Machado <luis.machado@linaro.org>
1288
1289 PR gdb/26310
1290
1291 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1292 act accordingly.
1293 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1294 movz/str/stur/stp skipping behavior.
1295
1296 2020-08-10 Luis Machado <luis.machado@linaro.org>
1297
1298 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1299 struct user_sve_header instead of struct sve_context.
1300
1301 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1302
1303 * read.h (dwarf2_fetch_die_loc_sect_off,
1304 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1305 `void *` parameter with function_view.
1306 * read.c (dwarf2_fetch_die_loc_sect_off,
1307 dwarf2_fetch_die_loc_cu_off): Likewise.
1308 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1309 (per_cu_dwarf_call): Adjust.
1310 (get_frame_address_in_block_wrapper): Remove.
1311 (indirect_synthetic_pointer): Adjust.
1312 (get_ax_pc): Remove.
1313 (dwarf2_compile_expr_to_ax): Adjust.
1314
1315 2020-08-08 Tom de Vries <tdevries@suse.de>
1316
1317 PR build/26344
1318 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1319 constructor.
1320 * regcache.c (get_thread_arch_aspace_regcache): Same.
1321
1322 2020-08-07 Tom Tromey <tromey@adacore.com>
1323
1324 * ravenscar-thread.c
1325 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1326 New method.
1327 (ravenscar_thread_target::wait): Check
1328 runtime_initialized.
1329 (ravenscar_thread_target::prepare_to_store)
1330 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1331 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1332 (ravenscar_thread_target::stopped_by_watchpoint)
1333 (ravenscar_thread_target::stopped_data_address)
1334 (ravenscar_thread_target::core_of_thread): Use
1335 scoped_restore_current_thread and
1336 set_base_thread_from_ravenscar_task.
1337
1338 2020-08-07 Tom Tromey <tromey@adacore.com>
1339
1340 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1341
1342 2020-08-07 Tom Tromey <tromey@adacore.com>
1343
1344 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1345 update_inferior_ptid before update_thread_list.
1346 (temporarily_change_regcache_ptid): New class.
1347 (ravenscar_thread_target::fetch_registers)
1348 (ravenscar_thread_target::store_registers)
1349 (ravenscar_thread_target::prepare_to_store): Use base thread when
1350 forwarding operation.
1351
1352 2020-08-07 Tom Tromey <tromey@adacore.com>
1353
1354 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1355 "is_pid" case.
1356
1357 2020-08-07 Tom Tromey <tromey@adacore.com>
1358
1359 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1360 New methods.
1361 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1362 first.
1363 (ravenscar_thread_target::add_thread): Rename from
1364 ravenscar_add_thread.
1365 (ravenscar_thread_target::update_thread_list): Use a lambda.
1366 (ravenscar_thread_target::xfer_partial): New method.
1367
1368 2020-08-07 Tom Tromey <tromey@adacore.com>
1369
1370 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1371 gdb::function_view.
1372 (iterate_over_live_ada_tasks): Change type of argument.
1373 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1374 of argument.
1375
1376 2020-08-07 Tom Tromey <tromey@adacore.com>
1377
1378 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1379 Remove.
1380 (ravenscar_thread_target::extra_thread_info): Remove.
1381 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1382 defer to target beneath for non-Ravenscar threads.
1383
1384 2020-08-07 Tom Tromey <tromey@adacore.com>
1385
1386 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1387 get_base_thread_from_ravenscar_task>: Now methods.
1388 <m_cpu_map>: New member.
1389 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1390 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1391 (ravenscar_thread_target::task_is_currently_active): Update.
1392 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1393 Now a method.
1394 (ravenscar_thread_target::add_active_thread): Put initial thread
1395 into the m_cpu_map.
1396
1397 2020-08-07 Tom Tromey <tromey@adacore.com>
1398
1399 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1400 event_ptid.
1401
1402 2020-08-07 Tom Tromey <tromey@adacore.com>
1403
1404 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1405 runtime_initialized.
1406
1407 2020-08-07 Tom Tromey <tromey@adacore.com>
1408
1409 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1410 add_active_thread.
1411 (ravenscar_thread_target::add_active_thread): Now public.
1412 (ravenscar_inferior_created): Call add_active_thread after pushing
1413 the target.
1414
1415 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1416
1417 * regcache.c (ptid_regcache_map): New type.
1418 (target_ptid_regcache_map): New type.
1419 (regcaches): Change type to target_ptid_regcache_map.
1420 (get_thread_arch_aspace_regcache): Update to regcaches' new
1421 type.
1422 (regcache_thread_ptid_changed): Likewise.
1423 (registers_changed_ptid): Likewise.
1424 (regcaches_size): Likewise.
1425 (regcaches_test): Update.
1426 (regcache_thread_ptid_changed): Update.
1427 * regcache.h (regcache_up): New type.
1428 * gdbsupport/ptid.h (hash_ptid): New struct.
1429
1430 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1431
1432 * observable.h (thread_ptid_changed): Add parameter
1433 `process_stratum_target *`.
1434 * infrun.c (infrun_thread_ptid_changed): Add parameter
1435 `process_stratum_target *` and use it.
1436 (selftests): New namespace.
1437 (infrun_thread_ptid_changed): New function.
1438 (_initialize_infrun): Register selftest.
1439 * regcache.c (regcache_thread_ptid_changed): Add parameter
1440 `process_stratum_target *` and use it.
1441 (regcache_thread_ptid_changed): New function.
1442 (_initialize_regcache): Register selftest.
1443 * thread.c (thread_change_ptid): Pass target to
1444 thread_ptid_changed observable.
1445
1446 2020-08-06 Caroline Tice <cmtice@google.com>
1447
1448 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1449 (struct dwp_sections): Update field comments. Add loclists and
1450 rnglists fields.
1451 (struct virtual_v2_dwo_sections): Rename struct to
1452 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1453 size & offset fields for loclists and rnglists.
1454 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1455 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1456 skipping dummy type units.
1457 (create_dwp_hash_table): Update the large comment above the function to
1458 discuss Version 5 DWP files as well, with references. Update all the
1459 version checks in the function to check for version 5 as well. Add new
1460 section at the end to create dwp hash table for version 5.
1461 (create_dwp_v2_section): Rename function to
1462 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1463 Add V5 to error message text.
1464 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1465 into calls to create_dwp_v2_or_v5_section.
1466 (create_dwo_unit_in_dwp_v5): New function.
1467 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1468 check for version2; add else clause to handle version 5.
1469 (open_and_init_dwo_file): Add code to check dwarf version & only call
1470 create_debug_types_hash_table (with sections.types) if version is not 5;
1471 else call create_debug_type_hash_table, with sections.info.
1472 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1473 version 5.
1474 (dwarf2_locate_v5_dwp_sections): New function.
1475 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1476 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1477
1478 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * regcache.h (class regcache): Remove friend
1481 registers_changed_ptid.
1482 <regcache_thread_ptid_changed>: Remove.
1483 <regcaches>: Remove.
1484 * regcache.c (regcache::regcaches): Rename to...
1485 (regcaches): ... this. Make static.
1486 (get_thread_arch_aspace_regcache): Update.
1487 (regcache::regcache_thread_ptid_changed): Rename to...
1488 (regcache_thread_ptid_changed): ... this. Update.
1489 (class regcache_access): Remove.
1490 (regcaches_test): Update.
1491 (_initialize_regcache): Update.
1492 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1493 <forward_list>.
1494
1495 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1496
1497 * regcache.h (class regcache) <current_regcache>: Rename to...
1498 <regcaches>: ... this. Move doc here.
1499 * regcache.c (regcache::current_regcache) Rename to...
1500 (regcache::regcaches): ... this. Move doc to header.
1501 (get_thread_arch_aspace_regcache): Update.
1502 (regcache::regcache_thread_ptid_changed): Update.
1503 (registers_changed_ptid): Update.
1504 (class regcache_access) <current_regcache_size>: Rename to...
1505 <regcaches_size>: ... this.
1506 (current_regcache_test): Rename to...
1507 (regcaches_test): ... this.
1508 (_initialize_regcache): Update.
1509
1510 2020-08-06 Victor Collod <vcollod@nvidia.com>
1511
1512 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1513
1514 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1515
1516 * corelow.c (core_target::build_file_mappings): Don't output
1517 null pathname in warning.
1518
1519 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1522 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1523 gdb.dwarf2/dw2-single-line-discriminators.exp,
1524 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1525
1526 2020-08-05 Tom Tromey <tromey@adacore.com>
1527
1528 PR rust/26197:
1529 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1530 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1531 Fix off-by-one and type size errors in ordinary case.
1532
1533 2020-08-05 Tom de Vries <tdevries@suse.de>
1534
1535 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1536 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1537
1538 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * frame.h (frame_id_p): Return bool.
1541 (frame_id_artificial_p): Return bool.
1542 (frame_id_eq): Return bool.
1543 (has_stack_frames): Return bool.
1544 (get_selected_frame): Fix typo in comment.
1545 (get_frame_pc_if_available): Return bool.
1546 (get_frame_address_in_block_if_available): Return bool.
1547 (get_frame_func_if_available): Return bool.
1548 (read_frame_register_unsigned): Return bool.
1549 (get_frame_register_bytes): Return bool.
1550 (safe_frame_unwind_memory): Return bool.
1551 (deprecated_frame_register_read): Return bool.
1552 (frame_unwinder_is): Return bool.
1553 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1554 bool.
1555 <this_id::p>: Likewise.
1556 <prev_p>: Likewise.
1557 (frame_stash_add): Return bool.
1558 (get_frame_id): Use bool.
1559 (frame_id_build_special) Use bool.
1560 (frame_id_build_unavailable_stack): Use bool.
1561 (frame_id_build): Use bool.
1562 (frame_id_p): Return bool, use true/false instead of 1/0.
1563 (frame_id_artificial_p): Likewise.
1564 (frame_id_eq): Likewise.
1565 (frame_id_inner): Likewise.
1566 (get_frame_func_if_available): Likewise.
1567 (read_frame_register_unsigned): Likewise.
1568 (deprecated_frame_register_read): Likewise.
1569 (get_frame_register_bytes): Likewise.
1570 (has_stack_frames): Likewise.
1571 (inside_main_func): Likewise.
1572 (inside_entry_func): Likewise.
1573 (get_frame_pc_if_available): Likewise.
1574 (get_frame_address_in_block_if_available): Likewise.
1575 (frame_unwinder_is): Likewise.
1576 (safe_frame_unwind_memory): Likewise.
1577 (frame_unwind_arch): Likewise.
1578
1579 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1582 type to cached_copy_status.
1583 (fprintf_frame): Adjust.
1584 (get_frame_func_if_available): Adjust.
1585 (frame_cleanup_after_sniffer): Adjust.
1586
1587 2020-08-04 Mark Wielaard <mark@klomp.org>
1588
1589 * MAINTAINERS (Write After Approval): Update email address.
1590
1591 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1592
1593 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1594 dynamic_prop::const_val.
1595
1596 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1599 dynamic_prop::kind.
1600
1601 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1602
1603 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1604
1605 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1606
1607 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1608
1609 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1610 Jose E. Marchesi <jose.marchesi@oracle.com>
1611
1612 * configure.tgt: Add entry for bpf-*-*.
1613 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1614 (ALLDEPFILES): Add bpf-tdep.c.
1615 * bpf-tdep.c: New file.
1616 * MAINTAINERS: Add bpf target and maintainer.
1617 * NEWS: Mention the support for the new target.
1618
1619 2020-08-04 Tom de Vries <tdevries@suse.de>
1620
1621 PR symtab/23270
1622 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1623 Error.
1624
1625 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1626
1627 * syscalls/freebsd.xml: Regenerate.
1628
1629 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1630
1631 * syscalls/update-freebsd.sh: Fix usage and year range.
1632
1633 2020-08-03 Tom de Vries <tdevries@suse.de>
1634
1635 PR symtab/26333
1636 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1637 DW_LNE_lo_user/DW_LNE_hi_user range.
1638
1639 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1640
1641 PR ada/26318
1642 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1643 kind.
1644
1645 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1646
1647 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1648
1649 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1650
1651 * breakpoint.c (set_breakpoint_condition): Update the condition
1652 expressions after checking that the input condition string parses
1653 successfully and does not contain junk at the end.
1654
1655 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1656
1657 * breakpoint.c (set_breakpoint_condition): Update the
1658 condition string after parsing the new condition successfully.
1659
1660 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1661
1662 * proc-api.c (_STRUCTURED_PROC): Don't define.
1663 * proc-events.c: Likewise.
1664 * proc-flags.c: Likewise.
1665 * proc-why.c: Likewise.
1666 * procfs.c: Likewise.
1667
1668 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1669 * configure, config.in: Regenerate.
1670
1671 2020-07-30 Tom de Vries <tdevries@suse.de>
1672
1673 PR build/26320
1674 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1675 m_red/m_green/m_blue in a union.
1676
1677 2020-07-29 Tom de Vries <tdevries@suse.de>
1678
1679 PR tdep/26280
1680 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1681
1682 2020-07-28 Tom Tromey <tromey@adacore.com>
1683
1684 PR symtab/26270:
1685 * symtab.h (find_pc_partial_function_sym): Declare.
1686 * cli/cli-cmds.c (disassemble_command): Use
1687 find_pc_partial_function_sym. Check asm_demangle.
1688 * blockframe.c (cache_pc_function_sym): New global.
1689 (cache_pc_function_name): Remove.
1690 (clear_pc_function_cache): Update.
1691 (find_pc_partial_function_sym): New function, from
1692 find_pc_partial_function.
1693 (find_pc_partial_function): Rewrite using
1694 find_pc_partial_function_sym.
1695
1696 2020-07-28 Tom Tromey <tromey@adacore.com>
1697
1698 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1699 help. Add usage.
1700
1701 2020-07-28 Tom Tromey <tromey@adacore.com>
1702
1703 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1704 <DW_OP_GNU_variable_value>: Cast to address type.
1705
1706 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1707
1708 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1709 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1710 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1711 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1712 (nbsd_get_siginfo_type): New.
1713 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1714 (_initialize_nbsd_tdep): New.
1715
1716 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1717
1718 PR binutils/26301
1719 * configure: Regenerated.
1720
1721 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1722
1723 PR binutils/26301
1724 * configure: Regenerated.
1725
1726 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * python/py-frame.c: Remove 'user-regs.h' include.
1729 (frapy_read_register): Rewrite to make use of
1730 gdbpy_parse_register_id.
1731 * python/py-registers.c (gdbpy_parse_register_id): New function,
1732 moved here from python/py-unwind.c. Updated the return type, and
1733 also accepts register descriptor objects.
1734 * python/py-unwind.c: Remove 'user-regs.h' include.
1735 (pyuw_parse_register_id): Moved to python/py-registers.c.
1736 (unwind_infopy_add_saved_register): Update to use
1737 gdbpy_parse_register_id.
1738 (pending_framepy_read_register): Likewise.
1739 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1740
1741 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * python/py-registers.c: Add 'user-regs.h' include.
1744 (register_descriptor_iter_find): New function.
1745 (register_descriptor_iterator_object_methods): New static global
1746 methods array.
1747 (register_descriptor_iterator_object_type): Add pointer to methods
1748 array.
1749
1750 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1751
1752 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1753 for all architectures on FreeBSD 11.3 and later.
1754
1755 2020-07-27 Tom Tromey <tromey@adacore.com>
1756
1757 * gcore.h (load_corefile): Don't declare.
1758
1759 2020-07-27 Tom de Vries <tdevries@suse.de>
1760
1761 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1762 * config.in: Regenerate.
1763 * configure: Regenerate.
1764
1765 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1766
1767 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1768 ws2tcpip.h. When checking whether socklen_t type is defined, use
1769 ws2tcpip.h if it is available and sys/socket.h isn't.
1770 * configure: Regenerate.
1771 * config.in: Regenerate.
1772
1773 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 PR fortran/23051
1776 PR fortran/26139
1777 * valops.c (value_ind): Pass address to
1778 readjust_indirect_value_type.
1779 * value.c (readjust_indirect_value_type): Make parameter
1780 non-const, and add extra address parameter. Resolve original type
1781 before using it.
1782 * value.h (readjust_indirect_value_type): Update function
1783 signature and comment.
1784
1785 2020-07-25 Tom de Vries <tdevries@suse.de>
1786
1787 PR symtab/26243
1788 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1789 entries.
1790
1791 2020-07-24 Aaron Merey <amerey@redhat.com>
1792
1793 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1794 * configure: Rebuild.
1795
1796 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1797
1798 PR corefiles/26294
1799 * corelow.c (_initialize_corelow): Add period to help text
1800 for "maintenance print core-file-backed-mappings".
1801
1802 2020-07-23 Pedro Alves <pedro@palves.net>
1803
1804 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1805 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1806 meanwhile.
1807 * frame.c (frame_cache_generation, get_frame_cache_generation):
1808 New.
1809 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1810 (get_prev_frame_if_no_cycle): On exception, don't touch
1811 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1812 * frame.h (get_frame_cache_generation): Declare.
1813
1814 2020-07-23 Tom de Vries <tdevries@suse.de>
1815
1816 PR tui/26282
1817 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1818 New default constructor.
1819
1820 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1823 exclude non-statement entries.
1824
1825 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1826
1827 * NEWS (New commands): Mention new command
1828 "maintenance print core-file-backed-mappings".
1829
1830 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1831
1832 * corelow.c (gdbcmd.h): Include.
1833 (core_target::info_proc_mappings): New method.
1834 (get_current_core_target): New function.
1835 (maintenance_print_core_file_backed_mappings): New function.
1836 (_initialize_corelow): Add core-file-backed-mappings to
1837 "maint print" commands.
1838
1839 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1840
1841 * linux-tdep.c (dump_note_entry_p): New function.
1842 (linux_dump_mapping_p_ftype): New typedef.
1843 (linux_find_memory_regions_full): Add new parameter,
1844 should_dump_mapping_p.
1845 (linux_find_memory_regions): Adjust call to
1846 linux_find_memory_regions_full.
1847 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1848 call to linux_find_memory_regions_full.
1849
1850 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1851
1852 * corelow.c (solist.h, unordered_map): Include.
1853 (class core_target): Add field m_core_file_mappings and
1854 method build_file_mappings.
1855 (core_target::core_target): Call build_file_mappings.
1856 (core_target::~core_target): Free memory associated with
1857 m_core_file_mappings.
1858 (core_target::build_file_mappings): New method.
1859 (core_target::xfer_partial): Use m_core_file_mappings
1860 for memory transfers.
1861 * linux-tdep.c (linux_read_core_file_mappings): New
1862 function.
1863 (linux_core_info_proc_mappings): Rewrite to use
1864 linux_read_core_file_mappings.
1865 (linux_init_abi): Register linux_read_core_file_mappings.
1866
1867 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1868
1869 * arch-utils.c (default_read_core_file_mappings): New function.
1870 * arch-utils.c (default_read_core_file_mappings): Declare.
1871 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1872 * gdbarch.h, gdbarch.c: Regenerate.
1873
1874 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1875
1876 PR corefiles/25631
1877 * corelow.c (core_target:xfer_partial): Revise
1878 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1879 case after first checking the stratum beneath the core
1880 target.
1881 (has_all_memory): Return true.
1882 * target.c (raw_memory_xfer_partial): Revise comment
1883 regarding use of has_all_memory.
1884
1885 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1886
1887 * exec.h (section_table_xfer_memory): Revise declaration,
1888 replacing section name parameter with an optional callback
1889 predicate.
1890 * exec.c (section_table_xfer_memory): Likewise.
1891 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1892 of section_table_xfer_memory.
1893
1894 2020-07-22 Tom Tromey <tromey@adacore.com>
1895
1896 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1897 lookup_symbol_search_name.
1898
1899 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1902 redundant local variable.
1903 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1904 reference, not pointer, update code accordingly.
1905
1906 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1907 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1908
1909 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1910 * jit.c (jit_breakpoint_re_set_internal): Use the
1911 `skip_jit_symbol_lookup` field.
1912
1913 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1914 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1915
1916 * jit.c (jit_read_descriptor): Define the descriptor address once,
1917 use twice.
1918 (jit_breakpoint_deleted): Move the declaration of the loop variable
1919 `iter` into the loop header.
1920 (jit_breakpoint_re_set_internal): Move the declaration of the local
1921 variable `objf_data` to the first point of definition.
1922 (jit_event_handler): Move the declaration of local variables
1923 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1924 Rename `objf` to `jited`.
1925
1926 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1927
1928 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1929 Remove.
1930 * jit.c (get_jiter_objfile_data): Update.
1931
1932 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1933 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * jit.c (struct jit_program_space_data): Remove.
1936 (jit_program_space_key): Remove.
1937 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1938 stuff.
1939 (get_jit_program_space_data): Remove.
1940 (jit_breakpoint_deleted): Iterate on all of the program space's
1941 objfiles.
1942 (jit_inferior_init): Likewise.
1943 (jit_breakpoint_re_set_internal): Likewise. Also change return
1944 type to void.
1945 (jit_breakpoint_re_set): Pass current_program_space to
1946 jit_breakpoint_re_set_internal.
1947
1948 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1949
1950 * jit.h (struct jiter_objfile_data) <cached_code_address,
1951 jit_breakpoint>: Move to here from ...
1952 * jit.c (jit_program_space_data): ... here.
1953 (jiter_objfile_data::~jiter_objfile_data): Update.
1954 (jit_breakpoint_deleted): Update.
1955 (jit_breakpoint_re_set_internal): Update.
1956
1957 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1958
1959 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1960 checks.
1961 (jit_read_descriptor): Remove NULL check.
1962 (jit_event_handler): Add an assertion.
1963
1964 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * jit.h (struct jit_objfile_data): Split into...
1967 (struct jiter_objfile_data): ... this ...
1968 (struct jited_objfile_data): ... and this.
1969 * objfiles.h (struct objfile) <jit_data>: Remove.
1970 <jiter_data, jited_data>: New fields.
1971 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1972 (jiter_objfile_data::~jiter_objfile_data): ... this.
1973 (get_jit_objfile_data): Rename to ...
1974 (get_jiter_objfile_data): ... this.
1975 (add_objfile_entry): Update.
1976 (jit_read_descriptor): Use get_jiter_objfile_data.
1977 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1978 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1979 (jit_inferior_exit_hook): Use objfile's jited_data field.
1980
1981 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1982
1983 * jit.h: Forward-declare `struct minimal_symbol`.
1984 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1985 constructor, destructor, and an objfile* field.
1986 * jit.c (jit_objfile_data): Remove.
1987 (struct jit_objfile_data): Migrate from here to jit.h.
1988 (jit_objfile_data::~jit_objfile_data): New destructor
1989 implementation with code moved from free_objfile_data.
1990 (free_objfile_data): Delete.
1991 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1992 (jit_find_objf_with_entry_addr): Ditto.
1993 (jit_inferior_exit_hook): Ditto.
1994 (_initialize_jit): Remove the call to
1995 register_objfile_data_with_cleanup.
1996 * objfiles.h (struct objfile) <jit_data>: New field.
1997
1998 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1999
2000 * jit.h: Forward-declare `struct objfile`.
2001 (jit_event_handler): Add a second parameter, the JITer objfile.
2002 * jit.c (jit_read_descriptor): Change the signature to take the
2003 JITer objfile as an argument instead of the jit_program_space_data.
2004 (jit_inferior_init): Update the call to jit_read_descriptor.
2005 (jit_event_handler): Use the new JITer objfile argument when calling
2006 jit_read_descriptor.
2007 * breakpoint.c (handle_jit_event): Update the call to
2008 jit_event_handler to pass the JITer objfile.
2009
2010 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2011
2012 * gdbarch.c: Regenerate.
2013 * gdbarch.h: Regenerate.
2014 * gdbarch.sh (handle_segmentation_fault): Remove method.
2015 * infrun.c (handle_segmentation_fault): Remove.
2016 (print_signal_received_reason): Remove call to
2017 handle_segmentation_fault.
2018
2019 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2020
2021 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2022 Rename to sparc64_linux_report_signal_info and add siggnal
2023 argument.
2024 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2025 instead of sparc64_linux_handle_segmentation_fault.
2026
2027 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2028
2029 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2030 i386_linux_report_signal_info instead of
2031 i386_linux_handle_segmentation_fault.
2032 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2033 to i386_linux_report_signal_info and add siggnal argument.
2034 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2035 of i386_linux_handle_segmentation_fault.
2036 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2037 to i386_linux_report_signal_info and add siggnal argument.
2038
2039 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2040
2041 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2042 hook if present.
2043
2044 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2045
2046 * gdbarch.c: Regenerate.
2047 * gdbarch.h: Regenerate.
2048 * gdbarch.sh (report_signal_info): New method.
2049 * infrun.c (print_signal_received_reason): Invoke gdbarch
2050 report_signal_info hook if present.
2051
2052 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * python/py-registers.c : Add 'unordered_map' include.
2055 (gdbpy_new_reggroup): Renamed to...
2056 (gdbpy_get_reggroup): ...this. Update to only create register
2057 group descriptors when needed.
2058 (gdbpy_reggroup_iter_next): Update.
2059
2060 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * python/py-registers.c (gdbpy_register_object_data): New static
2063 global.
2064 (gdbpy_register_object_data_init): New function.
2065 (gdbpy_new_register_descriptor): Renamed to...
2066 (gdbpy_get_register_descriptor): ...this, and update to reuse
2067 existing register descriptors where possible.
2068 (gdbpy_register_descriptor_iter_next): Update.
2069 (gdbpy_initialize_registers): Register new gdbarch data.
2070
2071 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2072
2073 * linux-nat.c (stopped_pids): Make static.
2074
2075 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 PR ada/26235
2078 * gdbtypes.c (ada_discrete_type_low_bound,
2079 ada_discrete_type_high_bound): Handle undefined bounds.
2080
2081 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2082
2083 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2084 declaration.
2085 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2086 function.
2087
2088 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2089
2090 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2091 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2092 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2093 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2094 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2095 method.
2096
2097 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2098
2099 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2100 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2101 which are deprecated in Guile 3.0.
2102 * configure.ac (try_guile_versions): Add "guile-3.0".
2103 * configure (try_guile_versions): Regenerate.
2104 * NEWS: Update entry.
2105
2106 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2107 Doug Evans <dje@google.com>
2108
2109 PR gdb/21104
2110 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2111 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2112 USING_GUILE_BEFORE_2_2.
2113 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2114 Change type to 'scm_t_port_type *'.
2115 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2116 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2117 parameter and honor it. Update callers.
2118 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2119 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2120 functions.
2121 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2122 USING_GUILE_BEFORE_2_2.
2123 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2124 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2125 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2126 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2127 and 'SCM_PORT_TYPE'.
2128 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2129 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2130 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2131 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2132 [!USING_GUILE_BEFORE_2_2]: New functions.
2133 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2134 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2135 'gdbscm_memory_port_read'.
2136 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2137 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2138 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2139 function.
2140 (ioscm_init_memory_port): Remove.
2141 (ioscm_init_memory_port_stream): New function
2142 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2143 function.
2144 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2145 Return scm_from_uint (0).
2146 (gdbscm_set_memory_port_read_buffer_size_x)
2147 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2148 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2149 Return scm_from_uint (0).
2150 (gdbscm_set_memory_port_write_buffer_size_x)
2151 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2152 * configure.ac (try_guile_versions): Add "guile-2.2".
2153 * configure: Regenerate.
2154 * NEWS: Add entry.
2155
2156 2020-07-18 Tom Tromey <tom@tromey.com>
2157
2158 * linux-nat.c (linux_multi_process): Remove.
2159 (linux_nat_target::supports_multi_process): Return true.
2160
2161 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2164 (riscv_lookup_target_description): Return pointer out of
2165 unique_ptr.
2166 * target-descriptions.c (allocate_target_description): Add
2167 comment.
2168 (target_desc_deleter::operator()): Likewise.
2169 * target-descriptions.h (struct target_desc_deleter): Moved to
2170 gdbsupport/tdesc.h.
2171 (target_desc_up): Likewise.
2172
2173 2020-07-17 Tom Tromey <tromey@adacore.com>
2174
2175 * linux-nat.c (linux_nat_target::supports_non_stop)
2176 (linux_nat_target::always_non_stop_p): Use "true".
2177 (linux_nat_target::supports_disable_randomization): Use "true" and
2178 "false".
2179
2180 2020-07-16 Caroline Tice <cmtice@google.com>
2181
2182 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2183 (RNGLIST_HEADER_SIZE64): New constant definition.
2184 (struct dwop_section_names): Add rnglists_dwo.
2185 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2186 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2187 (struct dwo_sections): Add rnglists field.
2188 (read_attribut_reprocess): Add tag parameter.
2189 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2190 (cu_debug_rnglists_section): New function (decl & definition).
2191 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2192 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2193 die whose range is being checked; get rnglist section from
2194 cu_debug_rnglists_section, to get from either objfile or dwo file as
2195 appropriate. Add cases for DW_RLE_base_addressx,
2196 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2197 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2198 test inside if-condition and updating complaint message.
2199 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2200 dwarf2_rnglists_process.
2201 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2202 dwarf2_ranges_process.
2203 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2204 need_ranges_base and update comment appropriately. Also pass die tag
2205 to dwarf2_ranges_read.
2206 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2207 need_ranges_base and update comment appropriately. Also pass die tag
2208 to dwarf2_ranges_process.
2209 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2210 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2211 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2212 need_ranges_base and update comment appropriately. Also pass die tag
2213 to read_attribute_reprocess and dwarf2_ranges_read.
2214 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2215 and update function comment appropriately.
2216 (read_loclist_index): Call read_loclists_rnglists_header instead of
2217 read_loclist_header.
2218 (read_rnglist_index): New function.
2219 (read_attribute_reprocess): Add tag parameter. Add code for
2220 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2221 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2222
2223 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2226 being resolved.
2227
2228 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * arch-utils.c (show_architecture): Update formatting of messages.
2231
2232 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * gdbtypes.h (struct type) <bounds>: Handle array and string
2235 types.
2236 * ada-lang.c (assign_aggregate): Use type::bounds on
2237 array/string type.
2238 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2239 * c-varobj.c (c_number_of_children): Likewise.
2240 (c_describe_child): Likewise.
2241 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2242 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2243 (f_type_print_base): Likewise.
2244 * f-valprint.c (f77_array_offset_tbl): Likewise.
2245 (f77_get_upperbound): Likewise.
2246 (f77_print_array_1): Likewise.
2247 * guile/scm-type.c (gdbscm_type_range): Likewise.
2248 * m2-typeprint.c (m2_array): Likewise.
2249 (m2_is_long_set_of_type): Likewise.
2250 * m2-valprint.c (get_long_set_bounds): Likewise.
2251 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2252 * python/py-type.c (typy_range): Likewise.
2253 * rust-lang.c (rust_internal_print_type): Likewise.
2254 * type-stack.c (type_stack::follow_types): Likewise.
2255 * valarith.c (value_subscripted_rvalue): Likewise.
2256 * valops.c (value_cast): Likewise.
2257
2258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2259
2260 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2261 callers to use the equivalent accessor methods.
2262
2263 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2266 (struct type) <bit_stride>: New method.
2267 (TYPE_BIT_STRIDE): Remove.
2268 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2269
2270 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2271
2272 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2273 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2274 callers to use the equivalent accessor methods instead.
2275
2276 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2279 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2280 callers to use the equivalent accessor methods instead.
2281
2282 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2283
2284 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2285 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2286 to use dynamic_prop::kind.
2287
2288 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2289
2290 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2291 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2292 to get the bound property's kind and check against
2293 PROP_UNDEFINED.
2294
2295 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2296
2297 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2298 all callers to use type::range_bounds followed by
2299 dynamic_prop::{low,high}.
2300
2301 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2304 const_val, set_const_val, baton, set_locexpr, set_loclist,
2305 set_addr_offset, variant_parts, set_variant_parts,
2306 original_type, set_original_type>: New methods.
2307 <kind>: Rename to...
2308 <m_kind>: ... this. Update all users to use the new methods
2309 instead.
2310 <data>: Rename to...
2311 <m_data>: ... this. Update all users to use the new methods
2312 instead.
2313
2314 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * gdbtypes.c (get_discrete_bounds): Return failure if
2317 the range type's bounds are not both defined and constant
2318 values.
2319 (get_array_bounds): Update comment. Remove undefined bound check.
2320
2321 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2324 the type::bounds method directly.
2325
2326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2329 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2330 are used to set the range type's bounds to use set_bounds.
2331
2332 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2333
2334 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2335
2336 2020-07-10 Pedro Alves <pedro@palves.net>
2337
2338 * gdbthread.h (inferior_ref): Define.
2339 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2340 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2341 * thread.c
2342 (scoped_restore_current_thread::restore):
2343 Adjust to gdb::ref_ptr.
2344 (scoped_restore_current_thread::~scoped_restore_current_thread):
2345 Remove manual decref handling.
2346 (scoped_restore_current_thread::scoped_restore_current_thread):
2347 Adjust to use
2348 inferior_ref::new_reference/thread_info_ref::new_reference.
2349 Incref the thread before calling get_frame_id instead of after.
2350 Let TARGET_CLOSE_ERROR propagate.
2351
2352 2020-07-10 Pedro Alves <pedro@palves.net>
2353
2354 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2355 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2356 NOT_AVAILABLE_ERROR.
2357 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2358 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2359
2360 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2361 Pedro Alves <pedro@palves.net>
2362
2363 PR gdb/26199
2364 * infrun.c (threads_are_resumed_pending_p): Delete.
2365 (do_target_wait): Remove threads_are_executing and
2366 threads_are_resumed_pending_p checks from the inferior_matches
2367 lambda. Update comments.
2368
2369 2020-07-10 Pedro Alves <pedro@palves.net>
2370
2371 PR gdb/26199
2372 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2373 executing threads.
2374
2375 2020-07-10 Pedro Alves <pedro@palves.net>
2376
2377 PR gdb/26199
2378 * infrun.c (handle_no_resumed): Handle multiple targets.
2379
2380 2020-07-10 Pedro Alves <pedro@palves.net>
2381
2382 PR gdb/26199
2383 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2384 target_is_async_p.
2385
2386 2020-07-10 Pedro Alves <pedro@palves.net>
2387
2388 PR gdb/26199
2389 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2390 threads, not all threads.
2391
2392 2020-07-10 Pedro Alves <pedro@palves.net>
2393
2394 PR gdb/26199
2395 * remote.c (remote_target::open_1): Pass remote target pointer as
2396 data to create_async_event_handler.
2397 (remote_async_inferior_event_handler): Mark async event handler
2398 before returning if the remote target still has either pending
2399 events or unacknowledged notifications.
2400
2401 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2402
2403 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2404 declaration.
2405 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2406 function.
2407
2408 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2409
2410 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2411 inferior_ptid.
2412
2413 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2414
2415 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2416 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2417 AT_FREEBSD_PS_STRINGS.
2418
2419 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2420
2421 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2422 of debugfile path on Windows.
2423
2424 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2425
2426 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2427 argument to 'data'.
2428
2429 2020-07-08 Tom Tromey <tromey@adacore.com>
2430
2431 * ada-lang.c (ada_exception_message_1): Use read_memory.
2432
2433 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2434
2435 PR python/22748
2436 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2437 special handling for inline frames.
2438 * findvar.c (value_of_register_lazy): Skip inline frames when
2439 creating lazy register values.
2440 * frame.c (frame_id_computed_p): Delete definition.
2441 * frame.h (frame_id_computed_p): Delete declaration.
2442
2443 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2444
2445 * NEWS: Mention additions to Python API.
2446 * python/py-arch.c (archpy_register_groups): New function.
2447 (arch_object_methods): Add 'register_groups' method.
2448 * python/py-registers.c (reggroup_iterator_object): New struct.
2449 (reggroup_object): New struct.
2450 (gdbpy_new_reggroup): New function.
2451 (gdbpy_reggroup_to_string): New function.
2452 (gdbpy_reggroup_name): New function.
2453 (gdbpy_reggroup_iter): New function.
2454 (gdbpy_reggroup_iter_next): New function.
2455 (gdbpy_new_reggroup_iterator): New function
2456 (gdbpy_initialize_registers): Register new types.
2457 (reggroup_iterator_object_type): Define new Python type.
2458 (gdbpy_reggroup_getset): New static global.
2459 (reggroup_object_type): Define new Python type.
2460 * python/python-internal.h
2461
2462 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2465 * python/py-arch.c (archpy_registers): New function.
2466 (arch_object_methods): Add 'registers' method.
2467 * python/py-registers.c: New file.
2468 * python/python-internal.h
2469 (gdbpy_new_register_descriptor_iterator): Declare.
2470 (gdbpy_initialize_registers): Declare.
2471 * python/python.c (do_start_initialization): Call
2472 gdbpy_initialize_registers.
2473 * NEWS: Mention additions to the Python API.
2474
2475 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * NEWS: Mention new Python API method.
2478 * python/py-unwind.c (pending_framepy_architecture): New function.
2479 (pending_frame_object_methods): Add architecture method.
2480
2481 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * gdbarch.c: Regenerate.
2484 * gdbarch.h: Regenerate.
2485 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2486 (gdbarch_data): Use internal_error for the case where
2487 deprecated_set_gdbarch_data was originally needed.
2488 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2489 and use passed in obstack.
2490 (libunwind_frame_set_descr): Should no longer get back NULL from
2491 gdbarch_data.
2492 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2493 type.
2494 * user-regs.c (user_regs_init): Update parameters, and use passed
2495 in obstack.
2496 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2497 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2498
2499 2020-07-06 Tom de Vries <tdevries@suse.de>
2500
2501 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2502 End-Of-Sequence in lte_is_less_than.
2503 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2504 "gdb: Don't reorder line table entries too much when sorting".
2505
2506 2020-07-06 Tom de Vries <tdevries@suse.de>
2507
2508 PR tui/26205
2509 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2510
2511 2020-07-05 Tom de Vries <tdevries@suse.de>
2512
2513 PR build/26187
2514 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2515 std::uncaught_exceptions instead of deprecated
2516 std::uncaught_exception.
2517
2518 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2519
2520 * macroexp.h (macro_stringify): Return
2521 gdb::unique_xmalloc_ptr<char>.
2522 * macroexp.c (macro_stringify): Likewise.
2523 * macrotab.c (fixup_definition): Update.
2524
2525 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2528 (lex_one_token): Update.
2529 * macroexp.c (struct macro_buffer) <release>: Return
2530 gdb::unique_xmalloc_ptr<char>.
2531 (macro_stringify): Update.
2532 (macro_expand): Update.
2533 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2534 * macroexp.h (macro_expand_next): Likewise.
2535
2536 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2537
2538 * macroexp.h (macro_lookup_ftype): Remove.
2539 (macro_expand, macro_expand_once, macro_expand_next): Remove
2540 lookup function parameters, add scope parameter.
2541 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2542 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2543 * macroscope.h (standard_macro_lookup): Change parameter type
2544 to macro_scope.
2545 * macroscope.c (standard_macro_lookup): Likewise.
2546 * c-exp.y (lex_one_token): Update.
2547 * macrocmd.c (macro_expand_command): Likewise.
2548 (macro_expand_once_command): Likewise.
2549
2550 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * inf-loop.c (inferior_event_handler): Remove client_data param.
2553 * inf-loop.h (inferior_event_handler): Likewise.
2554 * infcmd.c (step_1): Adjust.
2555 * infrun.c (proceed): Adjust.
2556 (fetch_inferior_event): Remove client_data param.
2557 (infrun_async_inferior_event_handler): Adjust.
2558 * infrun.h (fetch_inferior_event): Remove `void *` param.
2559 * linux-nat.c (handle_target_event): Adjust.
2560 * record-btrace.c (record_btrace_handle_async_inferior_event):
2561 Adjust.
2562 * record-full.c (record_full_async_inferior_event_handler):
2563 Adjust.
2564 * remote.c (remote_async_inferior_event_handler): Adjust.
2565
2566 2020-07-01 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2569 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2570
2571 2020-07-01 Tom Tromey <tom@tromey.com>
2572
2573 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2574 tui_gen_win_info.
2575 (tui_win_info::make_window): Merge with
2576 tui_gen_win_info::make_window.
2577 (tui_win_info::make_visible): Move from tui_gen_win_info.
2578 * tui/tui-win.c (tui_win_info::max_width): Move from
2579 tui_gen_win_info.
2580 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2581 type.
2582 <window_factory>: Likewise.
2583 * tui/tui-layout.c (tui_win_info::resize): Move from
2584 tui_gen_win_info.
2585 (make_standard_window): Change return type.
2586 (get_locator_window, tui_get_window_by_name): Likewise.
2587 (tui_layout_window::apply): Remove a cast.
2588 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2589 (struct tui_win_info): Merge with tui_gen_win_info.
2590 (struct tui_gen_win_info): Remove.
2591
2592 2020-07-01 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-stack.h (struct tui_locator_window): Derive from
2595 tui_win_info.
2596 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2597 <can_box>: New method.
2598
2599 2020-07-01 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2602
2603 2020-07-01 Tom Tromey <tom@tromey.com>
2604
2605 * tui/tui-regs.c (tui_data_window::display_registers_from)
2606 (tui_data_window::display_registers_from)
2607 (tui_data_window::first_data_item_displayed)
2608 (tui_data_window::delete_data_content_windows): Update.
2609 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2610 Remove.
2611 (tui_data_window::check_register_values): Update.
2612 (tui_data_item_window::rerender): Add parameters. Update.
2613 (tui_data_item_window::refresh_window): Remove.
2614 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2615 virtual.
2616 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2617 tui_gen_win_info.
2618 <refresh_window, max_height, min_height>: Remove.
2619 <rerender>: Add parameters.
2620 <x, y, visible>: New members.
2621 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2622 <m_item_width>: New member.
2623
2624 2020-07-01 Tom Tromey <tom@tromey.com>
2625
2626 * tui/tui-regs.c (tui_data_window::show_register_group)
2627 (tui_data_window::check_register_values): Update.
2628 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2629 from item_no.
2630
2631 2020-07-01 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2634 useless "if".
2635
2636 2020-07-01 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2639 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2640
2641 2020-07-01 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2644 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2645 (struct tui_line_or_address): Move from tui-data.h.
2646 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2647 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2648 (tui_cmd_window, tui_source_window_base, tui_source_window)
2649 (tui_disasm_window): Don't declare.
2650 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2651 to tui-winsource.h.
2652 (SINGLE_KEY): Move to tui-stack.c.
2653
2654 2020-07-01 Tom Tromey <tom@tromey.com>
2655
2656 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2657 std::string.
2658 * tui/tui-regs.c (class tab_expansion_file): New.
2659 (tab_expansion_file::write): New method.
2660 (tui_register_format): Change return type. Use
2661 tab_expansion_file.
2662 (tui_get_register, tui_data_window::display_registers_from)
2663 (tui_data_item_window::rerender): Update.
2664 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2665 * tui/tui-io.c (tui_expand_tabs): Remove.
2666
2667 2020-07-01 Tom Tromey <tom@tromey.com>
2668
2669 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2670
2671 2020-07-01 Fangrui Song <maskray@google.com>
2672
2673 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2674
2675 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2676
2677 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2678 forms for DW_AT_associated and DW_AT_allocated attributes,
2679 which is already checked in function attr_to_dynamic_prop.
2680
2681 2020-06-30 Tom Tromey <tromey@adacore.com>
2682
2683 * dwarf2/read.c (quirk_rust_enum): Correctly call
2684 alloc_rust_variant for default-less enum.
2685
2686 2020-06-30 Tom Tromey <tromey@adacore.com>
2687
2688 PR build/26183:
2689 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2690 gdb::to_string.
2691
2692 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2693
2694 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2695 * gdbarch.h: Re-generate.
2696
2697 2020-06-28 Tom Tromey <tom@tromey.com>
2698
2699 * command.h (cmd_types): Remove.
2700 (cmd_type): Don't declare.
2701 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2702 typedef.
2703 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2704 * cli/cli-decode.c (cmd_type): Remove.
2705
2706 2020-06-27 Pedro Alves <palves@redhat.com>
2707
2708 * fork-child.c (prefork_hook): Adjust.
2709 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2710 Delete.
2711 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2712 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2713 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2714 Remove declarations.
2715 (struct inferior) <set_tty, tty>: New methods.
2716 (struct inferior) <terminal>: Rename to ...
2717 (struct inferior) <m_terminal>: ... this and make private.
2718 * main.c (captured_main_1): Adjust.
2719 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2720 (mi_cmd_inferior_tty_show): Adjust.
2721 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2722 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2723
2724 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2725
2726 * configure.ac: Add --enable-libctf: handle --disable-static
2727 properly.
2728 * acinclude.m4: sinclude ../config/enable.m4.
2729 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2730 (LIBCTF): Substitute in.
2731 (CTF_DEPS): New, likewise.
2732 (CLIBS): libctf needs symbols from libbfd: move earlier.
2733 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2734 flags.
2735 * ctfread.c: Surround in ENABLE_LIBCTF.
2736 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2737 * configure: Regenerate.
2738 * config.in: Likewise.
2739
2740 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2741
2742 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2743
2744 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * inferior.h (struct inferior) <terminal>: Change type to
2747 gdb::unique_xmalloc_ptr<char>.
2748 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2749 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2750 field, adjust to unique pointer.
2751 (get_inferior_io_terminal): Adjust to unique pointer.
2752
2753 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2754
2755 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2756 registers, not just the known core set of registers.
2757
2758 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2761 fflags, frm, and fcsr registers.
2762 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2763 restore groups.
2764 (riscv_tdesc_unknown_reg): New function.
2765 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2766 tdesc_use_registers.
2767 * riscv-tdep.h (struct gdbarch_tdep): Add
2768 unknown_csrs_first_regnum, unknown_csrs_count,
2769 duplicate_fflags_regnum, duplicate_frm_regnum, and
2770 duplicate_fcsr_regnum fields.
2771
2772 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2773
2774 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2775 callback, use the callback (when not null) to help number unknown
2776 registers.
2777 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2778 (tdesc_use_registers): Add extra parameter to declaration.
2779
2780 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2783 in the file.
2784 (class riscv_pending_register_alias): Likewise.
2785 (riscv_register_feature::register_info): Change 'required_p' field
2786 to 'required', and change its type. Add 'check' member function.
2787 (riscv_register_feature::register_info::check): Define new member
2788 function.
2789 (riscv_xreg_feature): Change initialisation of 'required' field.
2790 (riscv_freg_feature): Likewise.
2791 (riscv_virtual_feature): Likewise.
2792 (riscv_csr_feature): Likewise.
2793 (riscv_check_tdesc_feature): Take extra parameter, the csr
2794 tdesc_feature, rewrite the function to use the new
2795 riscv_register_feature::register_info::check function.
2796 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2797
2798 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2799
2800 * features/Makefile: Remove all references to the deleted files
2801 below.
2802 * features/riscv/32bit-csr.c: Deleted.
2803 * features/riscv/32bit-csr.xml: Deleted.
2804 * features/riscv/64bit-csr.c: Deleted.
2805 * features/riscv/64bit-csr.xml: Deleted.
2806 * features/riscv/rebuild-csr-xml.sh: Deleted.
2807
2808 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2809
2810 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2811 whitespace error for declaration of names member variable.
2812 (struct riscv_register_feature): Add new prefer_first_name member
2813 variable, and fix whitespace error in declaration of registers.
2814 (riscv_xreg_feature): Initialize prefer_first_name field.
2815 (riscv_freg_feature): Likewise.
2816 (riscv_virtual_feature): Likewise.
2817 (riscv_csr_feature): Likewise.
2818 (riscv_register_name): Expand on comments. Remove register name
2819 modifications for CSR and virtual registers.
2820
2821 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2824 errors.
2825
2826 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2827
2828 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2829 riscv-opc.h.
2830 (class riscv_pending_register_alias): New class.
2831 (riscv_check_tdesc_feature): Take vector of pending aliases and
2832 populate it as appropriate.
2833 (riscv_setup_register_aliases): Delete.
2834 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2835 to riscv_check_tdesc_feature in all cases. Use the vector to
2836 create the register aliases.
2837
2838 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2839
2840 * sol2-tdep.c (sol2_static_transform_name): Remove.
2841 (sol2_init_abi): Don't register it.
2842 * gdbarch.sh (static_transform_name): Remove.
2843 * gdbarch.c, gdbarch.h: Regenerate.
2844
2845 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2846 gdbarch_static_transform_name.
2847 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2848 * stabsread.c (define_symbol) <'X'>: Remove.
2849 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2850 handling.
2851 <'V'>: Likewise.
2852 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2853 <'S'>: Remove call to gdbarch_static_transform_name.
2854
2855 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2856
2857 * procfs.c (procfs_pre_trace): New function.
2858 (procfs_target::create_inferior): Pass it to fork_inferior.
2859
2860 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2861
2862 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2863 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2864 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2865 sol2-tdep.o, sparc-sol2-tdep.o.
2866 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2867 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2868 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2869 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2870
2871 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2872
2873 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2874 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2875 Call sol2_init_abi.
2876 Remove calls to set_gdbarch_skip_solib_resolver,
2877 set_gdbarch_core_pid_to_str.
2878 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2879 (i386_sol2_static_transform_name): Remove.
2880 (i386_sol2_init_abi): Call sol2_init_abi.
2881 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2882 set_gdbarch_static_transform_name,
2883 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2884 Use sol2_sigtramp_p.
2885 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2886 (sol2_sigtramp_p): New function.
2887 (sol2_static_transform_name): New function.
2888 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2889 (sol2_init_abi): New function.
2890 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2891 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2892 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2893 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2894 (sparc_sol2_static_transform_name): Remove.
2895 (sparc32_sol2_init_abi): Call sol2_init_abi.
2896 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2897 set_gdbarch_static_transform_name,
2898 set_gdbarch_skip_solib_resolver,
2899 set_gdbarch_core_pid_to_str.
2900 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2901 (sparc_sol2_static_transform_name): Remove
2902 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2903 call sol2_sigtramp_p.
2904 (sparc64_sol2_init_abi): Call sol2_init_abi.
2905 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2906 set_gdbarch_static_transform_name,
2907 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2908
2909 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2910
2911 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2912 * exec.c (validate_exec_file): If from_tty, set both
2913 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2914 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2915 and from_tty, unconditionally ask a confirmation.
2916
2917 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * target-descriptions.c (tdesc_architecture_name): Protect against
2920 NULL pointer dereference.
2921 (maint_print_xml_tdesc_cmd): New function.
2922 (_initialize_target_descriptions): Register new 'maint print
2923 xml-tdesc' command and give it the filename completer.
2924 * NEWS: Mention new 'maint print xml-tdesc' command.
2925
2926 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2927
2928 * target-descriptions.c (class tdesc_compatible_info): New class.
2929 (struct target_desc): Change type of compatible vector.
2930 (tdesc_compatible_p): Update for change in type of
2931 target_desc::compatible.
2932 (tdesc_compatible_info_list): New function.
2933 (tdesc_compatible_info_arch_name): New function.
2934 (tdesc_add_compatible): Update for change in type of
2935 target_desc::compatible.
2936 (print_c_tdesc::visit_pre): Likewise.
2937
2938 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2941 whitespace to underscore.
2942 (maint_print_c_tdesc_cmd): Use fake filename for target
2943 descriptions that came from the target.
2944 (_initialize_target_descriptions): Add filename command completion
2945 for 'maint print c-tdesc'.
2946
2947 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2948
2949 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2950 lines.
2951
2952 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2953
2954 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2955 lines.
2956 (dwarf2_find_location_expression): Likewise.
2957 (call_site_parameter_matches): Likewise.
2958 (dwarf2_compile_expr_to_ax): Likewise.
2959 (disassemble_dwarf_expression): Likewise.
2960 (loclist_describe_location): Likewise.
2961
2962 2020-06-23 Pedro Alves <palves@redhat.com>
2963
2964 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2965 progspace-and-thread.h. Include scoped-mock-context.h instead.
2966 (register_to_value_test): Use scoped_mock_context.
2967 * regcache.c: Include "scoped-mock-context.h".
2968 (cooked_read_test): Don't error out if a target is already pushed.
2969 Use scoped_mock_context. Adjust.
2970 * scoped-mock-context.h: New file.
2971
2972 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2975 initializer.
2976 (ada_language::is_string_type_p): New member function.
2977 * c-lang.c (c_language_data): Delete la_is_string_type_p
2978 initializer.
2979 (cplus_language_data): Likewise.
2980 (asm_language_data): Likewise.
2981 (minimal_language_data): Likewise.
2982 * d-lang.c (d_language_data): Likewise.
2983 * f-lang.c (f_is_string_type_p): Delete function, implementation
2984 moved to f_language::is_string_type_p.
2985 (f_language_data): Delete la_is_string_type_p initializer.
2986 (f_language::is_string_type_p): New member function,
2987 implementation from f_is_string_type_p.
2988 * go-lang.c (go_is_string_type_p): Delete function, implementation
2989 moved to go_language::is_string_type_p.
2990 (go_language_data): Delete la_is_string_type_p initializer.
2991 (go_language::is_string_type_p): New member function,
2992 implementation from go_is_string_type_p.
2993 * language.c (language_defn::is_string_type_p): Define new member
2994 function.
2995 (default_is_string_type_p): Make static, add comment copied from
2996 header file.
2997 (unknown_language_data): Delete la_is_string_type_p initializer.
2998 (unknown_language::is_string_type_p): New member function.
2999 (auto_language_data): Delete la_is_string_type_p initializer.
3000 (auto_language::is_string_type_p): New member function.
3001 * language.h (language_data): Delete la_is_string_type_p field.
3002 (language_defn::is_string_type_p): Declare new function.
3003 (default_is_string_type_p): Delete desclaration, move comment to
3004 definition.
3005 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3006 moved to m2_language::is_string_type_p.
3007 (m2_language_data): Delete la_is_string_type_p initializer.
3008 (m2_language::is_string_type_p): New member function,
3009 implementation from m2_is_string_type_p.
3010 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3011 initializer.
3012 * opencl-lang.c (opencl_language_data): Likewise.
3013 * p-lang.c (pascal_is_string_type_p): Delete function,
3014 implementation moved to pascal_language::is_string_type_p.
3015 (pascal_language_data): Delete la_is_string_type_p initializer.
3016 (pascal_language::is_string_type_p): New member function,
3017 implementation from pascal_is_string_type_p.
3018 * rust-lang.c (rust_is_string_type_p): Delete function,
3019 implementation moved to rust_language::is_string_type_p.
3020 (rust_language_data): Delete la_is_string_type_p initializer.
3021 (rust_language::is_string_type_p): New member function,
3022 implementation from rust_is_string_type_p.
3023 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3024 is_string_type_p.
3025
3026 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3027
3028 * ada-lang.c (ada_language_data): Delete la_print_typedef
3029 initializer.
3030 (ada_language::print_typedef): New member function.
3031 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3032 (cplus_language_data): Likewise.
3033 (asm_language_data): Likewise.
3034 (minimal_language_data): Likewise.
3035 * d-lang.c (d_language_data): Likewise.
3036 * f-lang.c (f_language_data): Likewise.
3037 (f_language::print_typedef): New member function.
3038 * go-lang.c (go_language_data): Delete la_print_typedef
3039 initializer.
3040 * language.c (language_defn::print_typedef): Define member
3041 function.
3042 (unknown_language_data): Delete la_print_typedef initializer.
3043 (unknown_language::print_typedef): New member function.
3044 (auto_language_data): Delete la_print_typedef initializer.
3045 (auto_language::print_typedef): New member function.
3046 * language.h (language_data): Delete la_print_typedef field.
3047 (language_defn::print_typedef): Declare new member function.
3048 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3049 (default_print_typedef): Delete declaration.
3050 * m2-lang.c (m2_language_data): Delete la_print_typedef
3051 initializer.
3052 (m2_language::print_typedef): New member function.
3053 * objc-lang.c (objc_language_data): Delete la_print_typedef
3054 initializer.
3055 * opencl-lang.c (opencl_language_data): Likewise.
3056 * p-lang.c (pascal_language_data): Likewise.
3057 (pascal_language::print_typedef): New member function.
3058 * rust-lang.c (rust_print_typedef): Delete function,
3059 implementation moved to rust_language::print_typedef.
3060 (rust_language): Delete la_print_typedef initializer.
3061 (rust_language::print_typedef): New member function,
3062 implementation from rust_print_typedef.
3063 * typeprint.c (default_print_typedef): Delete.
3064
3065 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3068 (ada_language::printstr): New member function.
3069 * c-lang.c (c_language_data): Delete la_printstr initializer.
3070 (cplus_language_data): Likewise.
3071 (asm_language_data): Likewise.
3072 (minimal_language_data): Likewise.
3073 * d-lang.c (d_language_data): Likewise.
3074 * f-lang.c (f_printstr): Rename to f_language::printstr.
3075 (f_language_data): Delete la_printstr initializer.
3076 (f_language::printstr): New member function, implementation from
3077 f_printstr.
3078 * go-lang.c (go_language_data): Delete la_printstr initializer.
3079 * language.c (language_defn::printstr): Define new member
3080 function.
3081 (unk_lang_printstr): Delete.
3082 (unknown_language_data): Delete la_printstr initializer.
3083 (unknown_language::printstr): New member function.
3084 (auto_language_data): Delete la_printstr initializer.
3085 (auto_language::printstr): New member function.
3086 * language.h (language_data): Delete la_printstr field.
3087 (language_defn::printstr): Declare new member function.
3088 (LA_PRINT_STRING): Update call to printstr.
3089 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3090 (m2_language_data): Delete la_printstr initializer.
3091 (m2_language::printstr): New member function, implementation from
3092 m2_printstr.
3093 * objc-lang.c (objc_language_data): Delete la_printstr
3094 initializer.
3095 * opencl-lang.c (opencl_language_data): Likewise.
3096 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3097 (pascal_language_data): Delete la_printstr initializer.
3098 (pascal_language::printstr): New member function, implementation
3099 from pascal_printstr.
3100 * p-lang.h (pascal_printstr): Delete declaration.
3101 * rust-lang.c (rust_printstr): Update header comment.
3102 (rust_language_data): Delete la_printstr initializer.
3103 (rust_language::printstr): New member function.
3104
3105 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3106
3107 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3108 (ada_language::printchar): New member function.
3109 * c-lang.c (c_language_data): Delete la_printchar initializer.
3110 (cplus_language_data): Likewise.
3111 (asm_language_data): Likewise.
3112 (minimal_language_data): Likewise.
3113 * d-lang.c (d_language_data): Likewise.
3114 * f-lang.c (f_printchar): Rename to f_language::printchar.
3115 (f_language_data): Delete la_printchar initializer.
3116 (f_language::printchar): New member function, implementation from
3117 f_printchar.
3118 * go-lang.c (go_language_data): Delete la_printchar initializer.
3119 * language.c (unk_lang_printchar): Delete.
3120 (language_defn::printchar): Define new member function.
3121 (unknown_language_data): Delete la_printchar initializer.
3122 (unknown_language::printchar): New member function.
3123 (auto_language_data): Delete la_printchar initializer.
3124 (auto_language::printchar): New member function.
3125 * language.h (language_data): Delete la_printchar field.
3126 (language_defn::printchar): Declare new member function.
3127 (LA_PRINT_CHAR): Update call to printchar.
3128 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3129 (m2_language::printchar): New member function.
3130 * objc-lang.c (objc_language_data): Delete la_printchar
3131 initializer.
3132 * opencl-lang.c (opencl_language_data): Likewise.
3133 * p-lang.c (pascal_language_data): Delete la_printchar
3134 initializer.
3135 (pascal_language::printchar): New member function.
3136 * rust-lang.c (rust_printchar): Rename to
3137 rust_language::printchar.
3138 (rust_language_data): Delete la_printchar initializer.
3139 (rust_language::printchar): New member function, implementation
3140 from rust_printchar.
3141
3142 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3143
3144 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3145 (ada_language_data): Delete la_emitchar initializer.
3146 (ada_language::emitchar): New member function, implementation from
3147 emit_char.
3148 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3149 (cplus_language_data): Likewise.
3150 (asm_language_data): Likewise.
3151 (minimal_language_data): Likewise.
3152 * d-lang.c (d_language_data): Likewise.
3153 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3154 (f_language_data): Delete la_emitchar initializer.
3155 (f_language::emitchar): New member function, implementation from
3156 f_emit_char.
3157 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3158 * language.c (unk_lang_emit_char): Delete.
3159 (language_defn::emitchar): New member function definition.
3160 (unknown_language_data): Delete la_emitchar initializer.
3161 (unknown_language::emitchar): New member function.
3162 (auto_language_data): Delete la_emitchar initializer.
3163 (auto_language::emitchar): New member function.
3164 * language.h (language_data): Delete la_emitchar field.
3165 (language_defn::emitchar): New member field declaration.
3166 (LA_EMIT_CHAR): Update call to emitchar.
3167 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3168 (m2_language_data): Delete la_emitchar initializer.
3169 (m2_language::emitchar): New member function, implementation from
3170 m2_emit_char.
3171 * objc-lang.c (objc_language_data): Delete la_emitchar
3172 initializer.
3173 * opencl-lang.c (opencl_language_data): Likewise.
3174 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3175 (pascal_language_data): Delete la_emitchar initializer.
3176 (pascal_language::emitchar): New member function, implementation
3177 from pascal_emit_char.
3178 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3179 (rust_language_data): Delete la_emitchar initializer.
3180 (rust_language::emitchar): New member function, implementation
3181 from rust_emitchar.
3182
3183 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3186 (ada_language_data): Delete la_post_parser initializer.
3187 (ada_language::post_parser): New member function.
3188 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3189 (cplus_language_data): Likewise.
3190 (asm_language_data): Likewise.
3191 (minimal_language_data): Likewise.
3192 * d-lang.c (d_language_data): Likewise.
3193 * f-lang.c (f_language_data): Likewise.
3194 * go-lang.c (go_language_data): Likewise.
3195 * language.c (unknown_language_data): Likewise.
3196 (auto_language_data): Likewise.
3197 * language.h (language_data): Delete la_post_parser field.
3198 (language_defn::post_parser): New member function.
3199 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3200 * objc-lang.c (objc_language_data): Likewise.
3201 * opencl-lang.c (opencl_language_data): Likewise.
3202 * p-lang.c (pascal_language_data): Likewise.
3203 * parse.c (parse_exp_in_context): Update call to post_parser.
3204 (null_post_parser): Delete definition.
3205 * parser-defs.h (null_post_parser): Delete declaration.
3206 * rust-lang.c (rust_language_data): Delete la_post_parser
3207 initializer.
3208
3209 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * ada-lang.c (parse): Rename to ada_language::parser.
3212 (ada_language_data): Delete la_parser initializer.
3213 (ada_language::parser): New member function, implementation from
3214 parse.
3215 * c-lang.c (c_language_data): Delete la_parser initializer.
3216 (cplus_language_data): Likewise.
3217 (asm_language_data): Likewise.
3218 (minimal_language_data): Likewise.
3219 * d-lang.c (d_language_data): Likewise.
3220 (d_language::parser): New member function.
3221 * f-lang.c (f_language_data): Delete la_parser initializer.
3222 (f_language::parser): New member function.
3223 * go-lang.c (go_language_data): Delete la_parser initializer.
3224 (go_language::parser): New member function.
3225 * language.c (unk_lang_parser): Delete.
3226 (language_defn::parser): Define new member function.
3227 (unknown_language_data): Delete la_parser initializer.
3228 (unknown_language::parser): New member function.
3229 (auto_language_data): Delete la_parser initializer.
3230 (auto_language::parser): New member function.
3231 * language.h (language_data): Delete la_parser field.
3232 (language_defn::parser): Declare new member function.
3233 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3234 (m2_language::parser): New member function.
3235 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3236 * opencl-lang.c (opencl_language_data): Likewise.
3237 * p-lang.c (pascal_language_data): Likewise.
3238 (pascal_language::parser): New member function.
3239 * parse.c (parse_exp_in_context): Update call to parser.
3240 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3241 (rust_language::parser): New member function.
3242
3243 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3244
3245 * top.c (print_gdb_configuration): Print --with-python-libdir
3246 configuration value.
3247
3248 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3249
3250 * NEWS: Mention change to the alias command.
3251
3252 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3253
3254 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3255 (alias_command_completer)
3256 (make_alias_options_def_group): New functions.
3257 (alias_opts, alias_option_defs): New struct and array.
3258 (alias_usage_error): Update usage.
3259 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3260 Use option framework.
3261 (_initialize_cli_cmds): Update alias command help.
3262 Update aliases command help.
3263 (show_user):
3264 Add NULL for new default_args lookup_cmd argument.
3265 (valid_command_p): Rename to validate_aliased_command.
3266 Add NULL for new default_args lookup_cmd argument. Verify that the
3267 aliased_command has no default args.
3268 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3269 (lookup_cmd_1, lookup_cmd): New argument default_args.
3270 (add_alias_cmd):
3271 Add NULL for new default_args lookup_cmd argument.
3272 (print_help_for_command): Show default args under the layout
3273 alias some_alias = some_aliased_cmd some_alias_default_arg.
3274 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3275 xfree default_args in destructor.
3276 * cli/cli-script.c (process_next_line, do_define_command):
3277 Add NULL for new default_args lookup_cmd argument.
3278 * command.h: Declare new default_args argument in lookup_cmd
3279 and lookup_cmd_1.
3280 * completer.c (complete_line_internal_1):
3281 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3282 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3283 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3284 Likewise.
3285 * infcmd.c (_initialize_infcmd): Likewise.
3286 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3287 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3288 * python/py-param.c (add_setshow_generic): Likewise.
3289 * remote.c (_initialize_remote): Likewise.
3290 * top.c (execute_command): Prepend default_args if command has some.
3291 (set_verbose):
3292 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3293 * tracepoint.c (validate_actionline, encode_actions_1):
3294 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3295
3296 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3297
3298 * jit.c (jit_read_descriptor): Use bool as the return type.
3299 (jit_breakpoint_re_set_internal): Use bool as the return type.
3300 Invert the return value logic; return true if the jit breakpoint
3301 has been successfully initialized.
3302 (jit_inferior_init): Update the call to
3303 jit_breakpoint_re_set_internal.
3304
3305 2020-06-22 Pedro Alves <palves@redhat.com>
3306
3307 PR gdb/25939
3308 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3309 Use the current inferior instead. Don't return
3310 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3311 wait again.
3312 * sol-thread.c (sol_thread_target::wait): Don't reference
3313 inferior_ptid.
3314 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3315 (sol_update_thread_list_callback): Use the current inferior's pid
3316 instead of inferior_ptid.
3317
3318 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3319
3320 * procfs.c: Cleanup many comments.
3321
3322 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3323 (AFTER_WATCHFLAG): Replace by value.
3324
3325 (MAIN_PROC_NAME_FORMAT): Inline ...
3326 (create_procinfo): ... here.
3327
3328 (procfs_debug_inferior): Remove SYS_exec handling.
3329 (syscall_is_exec): Likewise.
3330 (procfs_set_exec_trap): Likewise.
3331
3332 (syscall_is_lwp_exit): Inline in callers.
3333 (syscall_is_exit): Likewise.
3334 (syscall_is_exec): Likewise.
3335 (syscall_is_lwp_create): Likewise.
3336
3337 (invalidate_cache): Remove #if 0 code.
3338
3339 (make_signal_thread_runnable): Remove.
3340 (procfs_target::resume): Remove #if 0 code.
3341
3342 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3343
3344 PR gdb/25939
3345 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3346 call ...
3347 (procfs_target::create_inferior): ... here.
3348
3349 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3350
3351 * exec.c (validate_exec_file): Ensure the build-id is up to
3352 date by calling reopen_exec_file (that checks file timestamp
3353 to decide to re-read the file).
3354
3355 2020-06-18 Pedro Alves <palves@redhat.com>
3356
3357 PR gdb/25412
3358 * gdbthread.h (delete_thread, delete_thread_silent)
3359 (find_thread_ptid): Update comments.
3360 * thread.c (current_thread_): New global.
3361 (is_current_thread): Move higher, and reimplement.
3362 (inferior_thread): Reimplement.
3363 (set_thread_exited): Use bool. Add assertions.
3364 (add_thread_silent): Simplify thread-reuse handling by always
3365 calling delete_thread.
3366 (delete_thread): Remove intro comment.
3367 (find_thread_ptid): Skip exited threads.
3368 (switch_to_thread_no_regs): Write to current_thread_.
3369 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3370 INFERIOR_PTID. Clear current_thread_.
3371
3372 2020-06-18 Pedro Alves <palves@redhat.com>
3373
3374 * aix-thread.c (pd_update): Use switch_to_thread.
3375
3376 2020-06-18 Pedro Alves <palves@redhat.com>
3377
3378 * ravenscar-thread.c (ravenscar_thread_target): Update.
3379 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3380 (ravenscar_thread_target::add_active_thread): ... this. Don't
3381 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3382 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3383
3384 2020-06-18 Pedro Alves <palves@redhat.com>
3385
3386 * nat/windows-nat.c (current_windows_thread): Remove.
3387 * nat/windows-nat.h (current_windows_thread): Remove.
3388 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3389 Adjust.
3390 (display_selectors): Adjust to fetch the current
3391 windows_thread_info based on inferior_ptid.
3392 (fake_create_process): No longer write to current_windows_thread.
3393 (windows_nat_target::get_windows_debug_event):
3394 Don't set inferior_ptid or current_windows_thread.
3395 (windows_nat_target::wait): Adjust to not rely on
3396 current_windows_thread.
3397 (do_initial_windows_stuff): Now a method of windows_nat_target.
3398 Switch to the last_ptid thread.
3399 (windows_nat_target::attach): Adjust.
3400 (windows_nat_target::detach): Use switch_to_no_thread instead of
3401 writing to inferior_ptid directly.
3402 (windows_nat_target::create_inferior): Adjust.
3403
3404 2020-06-18 Pedro Alves <palves@redhat.com>
3405
3406 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3407
3408 2020-06-18 Pedro Alves <palves@redhat.com>
3409
3410 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3411 after creating it, instead of writing to inferior_ptid. Don't
3412 write to inferior_ptid.
3413
3414 2020-06-18 Pedro Alves <palves@redhat.com>
3415
3416 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3417
3418 2020-06-18 Pedro Alves <palves@redhat.com>
3419
3420 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3421 it, instead of writing to inferior_ptid.
3422
3423 2020-06-18 Pedro Alves <palves@redhat.com>
3424
3425 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3426 to inferior_ptid.
3427
3428 2020-06-18 Pedro Alves <palves@redhat.com>
3429
3430 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3431 instead of writing to inferior_ptid directly.
3432
3433 2020-06-18 Pedro Alves <palves@redhat.com>
3434
3435 * corelow.c (core_target::close): Use switch_to_no_thread instead
3436 of writing to inferior_ptid directly.
3437 (add_to_thread_list, core_target_open): Use switch_to_thread
3438 instead of writing to inferior_ptid directly.
3439
3440 2020-06-18 Pedro Alves <palves@redhat.com>
3441
3442 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3443 inferior_ptid.
3444 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3445 inferior_ptid.
3446 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3447 inferior_ptid directly.
3448 (darwin_nat_target::init_thread_list): Switch to thread, instead
3449 of writing to inferior_ptid.
3450 (darwin_nat_target::attach): Don't write to inferior_ptid.
3451 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3452
3453 2020-06-18 Pedro Alves <palves@redhat.com>
3454
3455 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3456 thread.
3457 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3458 Instead use switch_to_thread.
3459 (gnu_nat_target::detach): Use switch_to_no_thread
3460 instead of writing to inferior_ptid directly. Used passed-in
3461 inferior instead of looking up the inferior by pid.
3462
3463 2020-06-18 Pedro Alves <palves@redhat.com>
3464
3465 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3466 inferior_ptid.
3467
3468 2020-06-18 Pedro Alves <palves@redhat.com>
3469
3470 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3471 inferior_ptid.
3472 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3473 thread.
3474 (nto_procfs_target::detach): Avoid referencing
3475 inferior_ptid. Use switch_to_no_thread instead of writing to
3476 inferior_ptid directly.
3477 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3478 instead of writing to inferior_ptid directly.
3479 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3480 to thread.
3481
3482 2020-06-18 Pedro Alves <palves@redhat.com>
3483
3484 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3485 after creating it, instead of writing to inferior_ptid.
3486 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3487 to inferior_ptid directly.
3488 (gdbsim_target::wait): Don't write to inferior_ptid.
3489
3490 2020-06-18 Pedro Alves <palves@redhat.com>
3491
3492 * remote.c (remote_target::remote_notice_new_inferior): Use
3493 switch_to_thread instead of writing to inferior_ptid directly.
3494 (remote_target::add_current_inferior_and_thread): Use
3495 switch_to_no_thread instead of writing to inferior_ptid directly.
3496 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3497 and switch_to_thread instead of using set_current_inferior or
3498 writing to inferior_ptid directly.
3499
3500 2020-06-18 Pedro Alves <palves@redhat.com>
3501
3502 * tracectf.c (ctf_target_open): Switch to added thread instead of
3503 writing to inferior_ptid directly.
3504 (ctf_target::close): Use switch_to_no_thread instead of writing to
3505 inferior_ptid directly.
3506
3507 2020-06-18 Pedro Alves <palves@redhat.com>
3508
3509 * tracefile-tfile.c (tfile_target_open): Don't write to
3510 inferior_ptid directly, instead switch to added thread.
3511 (tfile_target::close): Use switch_to_no_thread instead of writing
3512 to inferior_ptid directly.
3513
3514 2020-06-18 Pedro Alves <palves@redhat.com>
3515
3516 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3517 (procfs_target::detach): Use switch_to_no_thread
3518 instead of writing to inferior_ptid directly.
3519 (do_attach): Change return type to void. Switch to the added
3520 thread.
3521 (procfs_target::create_inferior): Switch to the added thread.
3522 (procfs_do_thread_registers): Don't write to inferior_ptid.
3523
3524 2020-06-18 Pedro Alves <palves@redhat.com>
3525
3526 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3527 of writing to inferior_ptid.
3528 (scoped_restore_exited_inferior): Delete.
3529 (handle_vfork_child_exec_or_exit): Simplify using
3530 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3531 instead of writing to inferior_ptid.
3532 (THREAD_STOPPED_BY): Delete.
3533 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3534 (thread_stopped_by_hw_breakpoint): Delete.
3535 (save_waitstatus): Use
3536 scoped_restore_current_thread+switch_to_thread, and call
3537 target_stopped_by_watchpoint instead of
3538 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3539 instead of thread_stopped_by_sw_breakpoint, and
3540 target_stopped_by_hw_breakpoint instead of
3541 thread_stopped_by_hw_breakpoint.
3542 (handle_inferior_event)
3543 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3544 inferior_ptid directly, nor
3545 set_current_inferior/set_current_program_space. Use
3546 switch_to_thread / switch_to_inferior_no_thread instead.
3547
3548 2020-06-18 Pedro Alves <palves@redhat.com>
3549
3550 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3551 instead of writing to inferior_ptid.
3552
3553 2020-06-18 Pedro Alves <palves@redhat.com>
3554
3555 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3556 added thread.
3557 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3558 to the added thread.
3559 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3560 instead of writing to inferior_ptid.
3561
3562 2020-06-18 Pedro Alves <palves@redhat.com>
3563
3564 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3565 (register_to_value_test): Mock a program_space too. Heap-allocate
3566 the address space. Don't write to inferior_ptid. Use
3567 switch_to_thread instead.
3568
3569 2020-06-18 Pedro Alves <palves@redhat.com>
3570
3571 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3572 Delete.
3573 (find_signalled_thread()): New, factored out from
3574 linux_make_corefile_notes and adjusted to handle exited threads.
3575 (linux_make_corefile_notes): Adjust to use the new
3576 find_signalled_thread.
3577
3578 2020-06-18 Pedro Alves <palves@redhat.com>
3579
3580 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3581 of saving/restoring inferior_ptid.
3582
3583 2020-06-17 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3586 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3587 declare.
3588 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3589
3590 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3591
3592 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3593 of partial symtabs.
3594
3595 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * regformats/reg-arm.dat: Remove.
3598 * regformats/reg-bfin.dat: Remove.
3599 * regformats/reg-cris.dat: Remove.
3600 * regformats/reg-crisv32.dat: Remove.
3601 * regformats/reg-m32r.dat: Remove.
3602 * regformats/reg-tilegx.dat: Remove.
3603 * regformats/reg-tilegx32.dat: Remove.
3604
3605 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3606
3607 * features/Makefile (WHICH): Remove arm files.
3608 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3609 * regformats/arm/arm-with-neon.dat: Remove.
3610 * regformats/arm/arm-with-vfpv2.dat: Remove.
3611 * regformats/arm/arm-with-vfpv3.dat: Remove.
3612
3613 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * features/Makefile (XMLTOC): Remove rx.xml.
3616
3617 2020-06-17 Pedro Alves <palves@redhat.com>
3618
3619 * gdbthread.h (thread_control_state) <trap_expected> Update
3620 comments.
3621
3622 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3625 ada_language::lookup_symbol_nonlocal.
3626 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3627 (ada_language::lookup_symbol_nonlocal): New member function,
3628 implementation from ada_lookup_symbol_nonlocal.
3629 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3630 initializer.
3631 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3632 initializer.
3633 (cplus_language::lookup_symbol_nonlocal): New member function.
3634 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3635 (minimal_language_data) Likewise.
3636 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3637 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3638 initializer.
3639 (d_language::lookup_symbol_nonlocal): New member function.
3640 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3641 initializer.
3642 (f_language::lookup_symbol_nonlocal): New member function.
3643 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3644 initializer.
3645 * language.c (unknown_language_data): Likewise.
3646 (auto_language_data): Likewise.
3647 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3648 field.
3649 (language_defn::lookup_symbol_nonlocal): New member function.
3650 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3651 initializer.
3652 * objc-lang.c (objc_language_data): Likewise.
3653 * opencl-lang.c (opencl_language_data): Likewise.
3654 * p-lang.c (pascal_language_data): Likewise.
3655 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3656 rust_language::lookup_symbol_nonlocal.
3657 (rust_language_data): Delete la_lookup_symbol_nonlocal
3658 initializer.
3659 (rust_language::lookup_symbol_nonlocal): New member function,
3660 implementation from rust_lookup_symbol_nonlocal.
3661 * symtab.c (lookup_symbol_aux): Update call to
3662 lookup_symbol_nonlocal.
3663 (basic_lookup_symbol_nonlocal): Rename to...
3664 (language_defn::lookup_symbol_nonlocal): ...this, and update
3665 header comment. Remove language_defn parameter, and replace with
3666 uses of `this'.
3667 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3668
3669 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3672 initializer.
3673 (ada_language::value_print_inner): New member function.
3674 * c-lang.c (c_language_data): Delete la_value_print_inner
3675 initializer.
3676 (cplus_language_data): Likewise.
3677 (asm_language_data): Likewise.
3678 (minimal_language_data): Likewise.
3679 * d-lang.c (d_language_data): Likewise.
3680 (d_language::value_print_inner): New member function.
3681 * f-lang.c (f_language_data): Delete la_value_print_inner
3682 initializer.
3683 (f_language::value_print_inner): New member function.
3684 * f-lang.h (f_value_print_innner): Rename to...
3685 (f_value_print_inner): ...this (note spelling of 'inner').
3686 * f-valprint.c (f_value_print_innner): Rename to...
3687 (f_value_print_inner): ...this (note spelling of 'inner').
3688 * go-lang.c (go_language_data): Delete la_value_print_inner
3689 initializer.
3690 (go_language::value_print_inner): New member function.
3691 * language.c (language_defn::value_print_inner): Define new member
3692 function.
3693 (unk_lang_value_print_inner): Delete.
3694 (unknown_language_data): Delete la_value_print_inner initializer.
3695 (unknown_language::value_print_inner): New member function.
3696 (auto_language_data): Delete la_value_print_inner initializer.
3697 (auto_language::value_print_inner): New member function.
3698 * language.h (language_data): Delete la_value_print_inner field.
3699 (language_defn::value_print_inner): Delcare new member function.
3700 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3701 initializer.
3702 (m2_language::value_print_inner): New member function.
3703 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3704 initializer.
3705 * opencl-lang.c (opencl_language_data): Likewise.
3706 * p-lang.c (pascal_language_data): Likewise.
3707 (pascal_language::value_print_inner): New member function.
3708 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3709 initializer.
3710 (rust_language::value_print_inner): New member function.
3711 * valprint.c (do_val_print): Update call to value_print_inner.
3712
3713 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3714
3715 * ada-lang.c (ada_language_data): Delete la_value_print
3716 initializer.
3717 (ada_language::value_print): New member function.
3718 * c-lang.c (c_language_data): Delete la_value_print initializer.
3719 (cplus_language_data): Likewise.
3720 (asm_language_data): Likewise.
3721 (minimal_language_data): Likewise.
3722 * d-lang.c (d_language_data): Likewise.
3723 * f-lang.c (f_language_data): Likewise.
3724 * go-lang.c (go_language_data): Likewise.
3725 * language.c (unk_lang_value_print): Delete.
3726 (language_defn::value_print): Define new member function.
3727 (unknown_language_data): Delete la_value_print initializer.
3728 (unknown_language::value_print): New member function.
3729 (auto_language_data): Delete la_value_print initializer.
3730 (auto_language::value_print): New member function.
3731 * language.h (language_data): Delete la_value_print field.
3732 (language_defn::value_print): Declare new member function.
3733 (LA_VALUE_PRINT): Update call to value_print.
3734 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3735 * objc-lang.c (objc_language_data): Likewise.
3736 * opencl-lang.c (opencl_language_data): Likewise.
3737 * p-lang.c (pascal_language_data): Likewise.
3738 (pascal_language::value_print): New member function.
3739 * rust-lang.c (rust_language_data): Delete la_value_print
3740 initializer.
3741
3742 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3743
3744 * ada-lang.c (ada_watch_location_expression): Rename to
3745 ada_language::watch_location_expression.
3746 (ada_language_data): Delete la_watch_location_expression
3747 initializer.
3748 (ada_language::watch_location_expression): New member function,
3749 implementation from ada_watch_location_expression.
3750 * breakpoint.c (watch_command_1): Update call to
3751 watch_location_expression.
3752 * c-lang.c (c_watch_location_expression): Rename to
3753 language_defn::watch_location_expression.
3754 (c_language_data): Delete la_watch_location_expression
3755 initializer.
3756 (cplus_language_data): Likewise.
3757 (asm_language_data): Likewise.
3758 (minimal_language_data): Likewise.
3759 * c-lang.h (c_watch_location_expression): Delete declaration.
3760 * d-lang.c (d_language_data): Delete la_watch_location_expression
3761 initializer.
3762 * f-lang.c (f_language_data): Likewise.
3763 * go-lang.c (go_language_data): Likewise.
3764 * language.c (language_defn::watch_location_expression): Member
3765 function implementation from c_watch_location_expression.
3766 (unknown_language_data): Delete la_watch_location_expression
3767 initializer.
3768 (auto_language_data): Likewise.
3769 * language.h (language_data): Delete la_watch_location_expression
3770 field.
3771 (language_defn::watch_location_expression): Declare new member
3772 function.
3773 * m2-lang.c (m2_language_data): Delete
3774 la_watch_location_expression initializer.
3775 * objc-lang.c (objc_language_data): Likewise.
3776 * opencl-lang.c (opencl_language_data): Likewise.
3777 * p-lang.c (pascal_language_data): Likewise.
3778 * rust-lang.c (rust_watch_location_expression): Rename to
3779 rust_language::watch_location_expression.
3780 (rust_language_data): Delete la_watch_location_expression
3781 initializer.
3782 (rust_language::watch_location_expression): New member function,
3783 implementation from rust_watch_location_expression.
3784
3785 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3788 ada_language::collect_symbol_completion_matches.
3789 (ada_language_data): Delete la_collect_symbol_completion_matches
3790 initializer.
3791 (ada_language::collect_symbol_completion_matches): New member
3792 function, implementation from
3793 ada_collect_symbol_completion_matches.
3794 * c-lang.c (c_language_data): Delete
3795 la_collect_symbol_completion_matches initializer.
3796 (cplus_language_data): Likewise.
3797 (asm_language_data): Likewise.
3798 (minimal_language_data): Likewise.
3799 * d-lang.c (d_language_data): Likewise.
3800 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3801 f_language::collect_symbol_completion_matches.
3802 (f_language_data): Delete la_collect_symbol_completion_matches
3803 initializer.
3804 (f_language::collect_symbol_completion_matches) New member
3805 function, implementation from f_collect_symbol_completion_matches.
3806 * go-lang.c (go_language_data): Delete
3807 la_collect_symbol_completion_matches initializer.
3808 * language.c (unknown_language_data): Likewise.
3809 (auto_language_data): Likewise.
3810 * language.h (language_data): Delete
3811 la_collect_symbol_completion_matches field.
3812 (language_defn::collect_symbol_completion_matches): New member
3813 function.
3814 * m2-lang.c (m2_language_data): Delete
3815 la_collect_symbol_completion_matches initializer.
3816 * objc-lang.c (objc_language_data): Likewise.
3817 * opencl-lang.c (opencl_language_data): Likewise.
3818 * p-lang.c (pascal_language_data): Likewise.
3819 * rust-lang.c (rust_language_data): Likewise.
3820 * symtab.c (default_collect_symbol_completion_matches): Delete.
3821 (collect_symbol_completion_matches): Update call to
3822 collect_symbol_completion_matches.
3823 (collect_symbol_completion_matches_type): Likewise.
3824 * symtab.h (default_collect_symbol_completion_matches): Delete
3825 declaration.
3826
3827 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3830 (ada_language_data): Delete la_word_break_characters initializer.
3831 (ada_language::word_break_characters): New member function.
3832 * c-lang.c (c_language_data): Delete la_word_break_characters
3833 initializer.
3834 (cplus_language_data): Likewise.
3835 (asm_language_data): Likewise.
3836 (minimal_language_data): Likewise.
3837 * completer.c: Update global comment.
3838 (advance_to_expression_complete_word_point): Update call to
3839 word_break_characters.
3840 (complete_files_symbols): Likewise.
3841 (complete_line_internal_1): Likewise.
3842 (default_completer_handle_brkchars): Likewise.
3843 (skip_quoted_chars): Likewise.
3844 * d-lang.c (d_language_data): Delete la_word_break_characters
3845 initializer.
3846 * f-lang.c (f_word_break_characters): Delete.
3847 (f_language_data): Delete la_word_break_characters initializer.
3848 (f_language::word_break_characters): New member function.
3849 * go-lang.c (go_language_data): Delete la_word_break_characters
3850 initializer.
3851 * language.c (unknown_language_data): Likewise.
3852 (auto_language_data): Likewise.
3853 * language.h (default_word_break_characters): Move declaration to
3854 earlier in the file.
3855 (language_data): Delete la_word_break_characters field.
3856 (language_defn::word_break_characters): New member function.
3857 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3858 initializer.
3859 * objc-lang.c (objc_language_data): Likewise.
3860 * opencl-lang.c (opencl_language_data): Likewise.
3861 * p-lang.c (pascal_language_data): Likewise.
3862 * rust-lang.c (rust_language_data): Likewise.
3863
3864 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3867 (ada_language_data): Delete la_get_symbol_name_matcher
3868 initializer.
3869 (language_defn::get_symbol_name_matcher_inner): New member
3870 function.
3871 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3872 initializer.
3873 (cplus_language_data): Likewise.
3874 (cplus_language::get_symbol_name_matcher_inner): New member
3875 function.
3876 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3877 (minimal_language_data): Likewise.
3878 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3879 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3880 initializer.
3881 * dictionary.c (iter_match_first_hashed): Update call to
3882 get_symbol_name_matcher.
3883 (iter_match_next_hashed): Likewise.
3884 (iter_match_next_linear): Likewise.
3885 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3886 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3887 initializer.
3888 (f_language::get_symbol_name_matcher_inner): New member function.
3889 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3890 initializer.
3891 * language.c (default_symbol_name_matcher): Update header comment,
3892 make static.
3893 (language_defn::get_symbol_name_matcher): New definition.
3894 (language_defn::get_symbol_name_matcher_inner): Likewise.
3895 (get_symbol_name_matcher): Delete.
3896 (unknown_language_data): Delete la_get_symbol_name_matcher
3897 initializer.
3898 (auto_language_data): Likewise.
3899 * language.h (language_data): Delete la_get_symbol_name_matcher
3900 field.
3901 (language_defn::get_symbol_name_matcher): New member function.
3902 (language_defn::get_symbol_name_matcher_inner): Likewise.
3903 (default_symbol_name_matcher): Delete declaration.
3904 * linespec.c (find_methods): Update call to
3905 get_symbol_name_matcher.
3906 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3907 initializer.
3908 * minsyms.c (lookup_minimal_symbol): Update call to
3909 get_symbol_name_matcher.
3910 (iterate_over_minimal_symbols): Likewise.
3911 * objc-lang.c (objc_language_data): Delete
3912 la_get_symbol_name_matcher initializer.
3913 * opencl-lang.c (opencl_language_data): Likewise.
3914 * p-lang.c (pascal_language_data): Likewise.
3915 * psymtab.c (psymbol_name_matches): Update call to
3916 get_symbol_name_matcher.
3917 * rust-lang.c (rust_language_data): Delete
3918 la_get_symbol_name_matcher initializer.
3919 * symtab.c (symbol_matches_search_name): Update call to
3920 get_symbol_name_matcher.
3921 (compare_symbol_name): Likewise.
3922
3923 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3924
3925 * ada-lang.c (ada_language_data): Delete la_compute_program
3926 initializer.
3927 * c-lang.c (c_language_data): Likewise.
3928 (c_language::compute_program): New member function.
3929 (cplus_language_data): Delete la_compute_program initializer.
3930 (cplus_language::compute_program): New member function.
3931 (asm_language_data): Delete la_compute_program initializer.
3932 (minimal_language_data): Likewise.
3933 * c-lang.h (c_compute_program): Update comment.
3934 (cplus_compute_program): Likewise.
3935 * compile/compile-c-support.c (c_compute_program): Likewise.
3936 (cplus_compute_program): Likewise.
3937 * compile/compile.c (compile_to_object): Update call to
3938 la_compute_program.
3939 * d-lang.c (d_language_data): Delete la_compute_program
3940 initializer.
3941 * f-lang.c (f_language_data): Likewise.
3942 * go-lang.c (go_language_data): Likewise.
3943 * language.c (unknown_language_data): Likewise.
3944 (auto_language_data): Likewise.
3945 * language.h (language_data): Delete la_compute_program field.
3946 (language_defn::compute_program): New member function.
3947 * m2-lang.c (m2_language_data): Delete la_compute_program
3948 initializer.
3949 * objc-lang.c (objc_language_data): Likewise.
3950 * opencl-lang.c (opencl_language_data): Likewise.
3951 * p-lang.c (pascal_language_data): Likewise.
3952 * rust-lang.c (rust_language_data): Likewise.
3953
3954 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3955
3956 * ada-lang.c (ada_language_data) Delete
3957 la_class_name_from_physname initializer.
3958 * c-lang.c (c_language_data): Likewise.
3959 (cplus_language_data): Likewise.
3960 (cplus_language::class_name_from_physname): New member function.
3961 (asm_language_data): Delete la_class_name_from_physname
3962 initializer.
3963 (minimal_language_data): Likewise.
3964 * d-lang.c (d_language_data): Likewise.
3965 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3966 method on language_defn class.
3967 (guess_full_die_structure_name): Likewise.
3968 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3969 initializer.
3970 * go-lang.c (go_language_data): Likewise.
3971 * language.c (language_class_name_from_physname): Delete.
3972 (unk_lang_class_name): Delete.
3973 (unknown_language_data): Delete la_class_name_from_physname
3974 initializer.
3975 (auto_language_data): Likewise.
3976 * language.h (language_data): Delete la_class_name_from_physname
3977 field.
3978 (language_defn::class_name_from_physname): New function.
3979 (language_class_name_from_physname): Delete declaration.
3980 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3981 initializer.
3982 * objc-lang.c (objc_language_data): Likewise.
3983 * opencl-lang.c (opencl_language_data): Likewise.
3984 * p-lang.c (pascal_language_data): Likewise.
3985 * rust-lang.c (rust_language_data): Likewise.
3986
3987 2020-06-16 Tom Tromey <tom@tromey.com>
3988
3989 * tui/tui-data.h (STATUS_NAME): New macro.
3990 * tui/tui-layout.c (tui_remove_some_windows)
3991 (initialize_known_windows, tui_register_window)
3992 (tui_layout_split::remove_windows, initialize_layouts)
3993 (tui_new_layout_command): Don't use hard-coded window names.
3994
3995 2020-06-16 Tom Tromey <tom@tromey.com>
3996
3997 PR tui/25348:
3998 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3999 tui_initialize_readline. Only run once. Call rl_initialize.
4000 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4001 tui_initialize_readline.
4002 * tui/tui-io.c (tui_setup_io): Call
4003 tui_ensure_readline_initialized.
4004 * tui/tui-interp.c (tui_interp::init): Update.
4005
4006 2020-06-16 Tom Tromey <tom@tromey.com>
4007
4008 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4009 Also preserve the status window.
4010
4011 2020-06-16 Tom Tromey <tom@tromey.com>
4012
4013 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4014 where m_window==nullptr.
4015
4016 2020-06-15 Tom Tromey <tromey@adacore.com>
4017
4018 * windows-nat.c (windows_nat::handle_output_debug_string):
4019 Update.
4020 (windows_nat::handle_ms_vc_exception): Update.
4021 * target.h (target_read_string): Change API.
4022 * target.c (target_read_string): Change API.
4023 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4024 Update.
4025 * solib-frv.c (frv_current_sos): Update.
4026 * solib-dsbt.c (dsbt_current_sos): Update.
4027 * solib-darwin.c (darwin_current_sos): Update.
4028 * linux-thread-db.c (inferior_has_bug): Update.
4029 * expprint.c (print_subexp_standard): Update.
4030 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4031 (ada_exception_message_1): Update.
4032
4033 2020-06-15 Tom Tromey <tromey@adacore.com>
4034
4035 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4036
4037 2020-06-15 Tom Tromey <tromey@adacore.com>
4038
4039 * valprint.c (read_string): Update comment.
4040 * target.c (MIN): Remove.
4041 (target_read_string): Rewrite.
4042
4043 2020-06-15 Tom Tromey <tromey@adacore.com>
4044
4045 * corefile.c (read_memory_string): Remove.
4046 * ada-valprint.c (ada_value_print_ptr): Update.
4047 * ada-lang.h (ada_tag_name): Change return type.
4048 * ada-lang.c (type_from_tag): Update.
4049 (ada_tag_name_from_tsd): Change return type. Use
4050 target_read_string.
4051 (ada_tag_name): Likewise.
4052 * gdbcore.h (read_memory_string): Don't declare.
4053
4054 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4055
4056 * symtab.c (rbreak_command): Ignore Windows drive colon.
4057
4058 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * NEWS: Mention removed GDBserver host support.
4061
4062 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4063
4064 * features/riscv/rebuild-csr-xml.sh: Updated.
4065
4066 2020-06-11 Tom Tromey <tom@tromey.com>
4067
4068 PR gdb/18318:
4069 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4070
4071 2020-06-09 Jonny Grant <jg@jguk.org>
4072 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * main.c (captured_main_1): Don't print new line after help.
4075 (print_gdb_help): add mailing list and IRC channel information
4076 to --help. Add new lines between items in the footer. Remove
4077 quotes around bug url.
4078
4079 2020-06-11 Keith Seitz <keiths@redhat.com>
4080
4081 PR gdb/21356
4082 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4083 Resolve typedefs for type length calculations.
4084
4085 2020-06-10 Tom de Vries <tdevries@suse.de>
4086
4087 PR ada/24713
4088 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4089 (write_psymbols): Enable .gdb_index for ada.
4090 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4091 ada.
4092
4093 2020-06-10 Tom de Vries <tdevries@suse.de>
4094
4095 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4096 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4097 namei" instead of "const char *name" argument.
4098 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4099 dw2_symtab_iter_init.
4100
4101 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4104 to use type::field and field::type instead.
4105
4106 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4109 to use field::type instead.
4110
4111 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * gdbtypes.h (struct field) <type, set_type>: New methods.
4114 Rename `type` field to...
4115 <m_type>: ... this. Change references throughout to use type or
4116 set_type methods.
4117 (FIELD_TYPE): Use field::type. Change call sites that modify
4118 the field's type to use field::set_type instead.
4119
4120 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4123 to use type::index_type instead.
4124
4125 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4128 methods.
4129 (TYPE_INDEX_TYPE): Use type::index_type.
4130 * gdbtypes.c (create_array_type_with_stride): Likewise.
4131
4132 2020-06-07 Tom Tromey <tom@tromey.com>
4133
4134 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4135 parameter.
4136 (generic_value_print): Update.
4137
4138 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4139
4140 Revert commit 982a38f60b0.
4141 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4142
4143 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4144
4145 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4146 avoid use after free.
4147
4148 2020-06-05 Tom de Vries <tdevries@suse.de>
4149
4150 * NEWS: Fix typos.
4151
4152 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4155 the per_bfd object.
4156 (dwarf2_read_debug_names): Likewise.
4157 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4158 object when re-using a per_bfd object with an index.
4159
4160 2020-06-03 Tom de Vries <tdevries@suse.de>
4161
4162 PR symtab/26046
4163 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4164 children for C++.
4165 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4166 DW_TAG_subprogram.
4167
4168 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 * ada-lang.c (ada_language_data): Delete skip_trampoline
4171 initializer.
4172 * c-lang.c (c_language_data): Likewise.
4173 (cplus_language_data): Likewise.
4174 (cplus_language::skip_trampoline): New member function.
4175 (asm_language_data): Delete skip_trampoline initializer.
4176 (minimal_language_data): Likewise.
4177 * d-lang.c (d_language_data): Likewise.
4178 * f-lang.c (f_language_data): Likewise.
4179 * go-lang.c (go_language_data): Likewise.
4180 * language.c (unk_lang_trampoline): Delete function.
4181 (skip_language_trampoline): Update.
4182 (unknown_language_data): Delete skip_trampoline initializer.
4183 (auto_language_data): Likewise.
4184 * language.h (language_data): Delete skip_trampoline field.
4185 (language_defn::skip_trampoline): New function.
4186 * m2-lang.c (m2_language_data): Delete skip_trampoline
4187 initializer.
4188 * objc-lang.c (objc_skip_trampoline): Delete function, move
4189 implementation to objc_language::skip_trampoline.
4190 (objc_language_data): Delete skip_trampoline initializer.
4191 (objc_language::skip_trampoline): New member function with
4192 implementation from objc_skip_trampoline.
4193 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4194 initializer.
4195 * p-lang.c (pascal_language_data): Likewise.
4196 * rust-lang.c (rust_language_data): Likewise.
4197
4198 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4201 (ada_language::demangle): New member function.
4202 * c-lang.c (c_language_data): Delete la_demangle initializer.
4203 (cplus_language_data): Delete la_demangle initializer.
4204 (cplus_language::demangle): New member function.
4205 (asm_language_data): Delete la_demangle initializer.
4206 (minimal_language_data): Delete la_demangle initializer.
4207 * d-lang.c (d_language_data): Delete la_demangle initializer.
4208 (d_language::demangle): New member function.
4209 * f-lang.c (f_language_data): Delete la_demangle initializer.
4210 (f_language::demangle): New member function.
4211 * go-lang.c (go_language_data): Delete la_demangle initializer.
4212 (go_language::demangle): New member function.
4213 * language.c (language_demangle): Update.
4214 (unk_lang_demangle): Delete.
4215 (unknown_language_data): Delete la_demangle initializer.
4216 (unknown_language::demangle): New member function.
4217 (auto_language_data): Delete la_demangle initializer.
4218 (auto_language::demangle): New member function.
4219 * language.h (language_data): Delete la_demangle field.
4220 (language_defn::demangle): New function.
4221 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4222 * objc-lang.c (objc_language_data): Delete la_demangle
4223 initializer.
4224 (objc_language::demangle): New member function.
4225 * opencl-lang.c (opencl_language_data): Delete la_demangle
4226 initializer.
4227 * p-lang.c (pascal_language_data): Likewise.
4228 * rust-lang.c (rust_language_data): Likewise.
4229 (rust_language::demangle): New member function.
4230
4231 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * ada-lang.c (ada_language_data): Delete la_print_type
4234 initializer.
4235 (ada_language::print_type): New member function.
4236 * c-lang.c (c_language_data): Delete la_print_type initializer.
4237 (c_language::print_type): New member function.
4238 (cplus_language_data): Delete la_print_type initializer.
4239 (cplus_language::print_type): New member function.
4240 (asm_language_data): Delete la_print_type initializer.
4241 (asm_language::print_type): New member function.
4242 (minimal_language_data): Delete la_print_type initializer.
4243 (minimal_language::print_type): New member function.
4244 * d-lang.c (d_language_data): Delete la_print_type initializer.
4245 (d_language::print_type): New member function.
4246 * f-lang.c (f_language_data): Delete la_print_type initializer.
4247 (f_language::print_type): New member function.
4248 * go-lang.c (go_language_data): Delete la_print_type initializer.
4249 (go_language::print_type): New member function.
4250 * language.c (unk_lang_print_type): Delete.
4251 (unknown_language_data): Delete la_print_type initializer.
4252 (unknown_language::print_type): New member function.
4253 (auto_language_data): Delete la_print_type initializer.
4254 (auto_language::print_type): New member function.
4255 * language.h (language_data): Delete la_print_type field.
4256 (language_defn::print_type): New function.
4257 (LA_PRINT_TYPE): Update.
4258 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4259 (m2_language::print_type): New member function.
4260 * objc-lang.c (objc_language_data): Delete la_print_type
4261 initializer.
4262 (objc_language::print_type): New member function.
4263 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4264 to opencl_language::print_type.
4265 (opencl_language_data): Delete la_print_type initializer.
4266 (opencl_language::print_type): New member function, implementation
4267 from opencl_print_type.
4268 * p-lang.c (pascal_language_data): Delete la_print_type
4269 initializer.
4270 (pascal_language::print_type): New member function.
4271 * rust-lang.c (rust_print_type): Delete, implementation moved to
4272 rust_language::print_type.
4273 (rust_language_data): Delete la_print_type initializer.
4274 (rust_language::print_type): New member function, implementation
4275 from rust_print_type.
4276
4277 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4278
4279 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4280 implementation moves to...
4281 (ada_language::sniff_from_mangled_name): ...here. Update return
4282 type.
4283 (ada_language_data): Delete la_sniff_from_mangled_name
4284 initializer.
4285 * c-lang.c (c_language_data): Likewise.
4286 (cplus_language_data): Likewise.
4287 (cplus_language::sniff_from_mangled_name): New member function,
4288 implementation taken from gdb_sniff_from_mangled_name.
4289 (asm_language_data): Delete la_sniff_from_mangled_name
4290 initializer.
4291 (minimal_language_data): Likewise.
4292 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4293 implementation moves to cplus_language::sniff_from_mangled_name.
4294 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4295 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4296 moves to...
4297 (d_language::sniff_from_mangled_name): ...here.
4298 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4299 * f-lang.c (f_language_data): Likewise.
4300 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4301 moves to...
4302 (go_language::sniff_from_mangled_name): ...here.
4303 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4304 * language.c (language_sniff_from_mangled_name): Delete.
4305 (unknown_language_data): Delete la_sniff_from_mangled_name
4306 initializer.
4307 (auto_language_data): Likewise.
4308 * language.h (language_data): Delete la_sniff_from_mangled_name
4309 field.
4310 (language_defn::sniff_from_mangled_name): New function.
4311 (language_sniff_from_mangled_name): Delete declaration.
4312 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4313 field.
4314 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4315 implementation moves to...
4316 (objc_language::sniff_from_mangled_name): ...here.
4317 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4318 * opencl-lang.c (opencl_language_data): Likewise.
4319 * p-lang.c (pascal_language_data): Likewise.
4320 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4321 implementation moves to...
4322 (rust_language::sniff_from_mangled_name): ...here.
4323 (rust_language_data): Delete la_sniff_from_mangled_name
4324 initializer.
4325 * symtab.c (symbol_find_demangled_name): Call
4326 sniff_from_mangled_name member function.
4327
4328 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4329
4330 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4331 initializer.
4332 * c-lang.c (c_language_data): Likewise.
4333 (cplus_language_data): Likewise.
4334 (cplus_language::search_name_hash): New member function.
4335 (asm_language_data): Delete la_search_name_hash initializer.
4336 (minimal_language_data): Likewise.
4337 * d-lang.c (d_language_data): Likewise.
4338 * dictionary.c (default_search_name_hash): Rename to...
4339 (language_defn::search_name_hash): ...this.
4340 * f-lang.c (f_language_data): Likewise.
4341 (f_language::search_name_hash): New member function.
4342 * go-lang.c (go_language_data): Delete la_search_name_hash
4343 initializer.
4344 * language.c (unknown_language_data): Likewise.
4345 (auto_language_data): Likewise.
4346 * language.h (struct language_data): Delete la_search_name_hash
4347 field.
4348 (language_defn::search_name_hash): Declare new member function.
4349 (default_search_name_hash): Delete declaration.
4350 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4351 initializer.
4352 * objc-lang.c (objc_language_data): Likewise.
4353 * opencl-lang.c (opencl_language_data): Likewise.
4354 * p-lang.c (pascal_language_data): Likewise.
4355 * rust-lang.c (rust_language_data): Likewise.
4356 * symtab.c (search_name_hash): Update call.
4357
4358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4359
4360 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4361 initializer.
4362 * c-lang.c (class compile_instance): Declare.
4363 (c_language_data): Delete la_get_compile_instance initializer.
4364 (c_language::get_compile_instance): New member function.
4365 (cplus_language_data): Delete la_get_compile_instance initializer.
4366 (cplus_language::get_compile_instance): New member function.
4367 (asm_language_data): Delete la_get_compile_instance initializer.
4368 (minimal_language_data): Likewise.
4369 * c-lang.h (c_get_compile_context): Update comment.
4370 (cplus_get_compile_context): Update comment.
4371 * compile/compile.c (compile_to_object): Update calls, don't rely
4372 on function pointer being NULL.
4373 * d-lang.c (d_language_data): Delete la_get_compile_instance
4374 initializer.
4375 * f-lang.c (f_language_data): Likewise.
4376 * go-lang.c (go_language_data): Likewise.
4377 * language.c (unknown_language_data): Likewise.
4378 (auto_language_data): Likewise.
4379 * language.h (language_data): Delete la_get_compile_instance field.
4380 (language_defn::get_compile_instance): New member function.
4381 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4382 initializer.
4383 * objc-lang.c (objc_language_data): Likewise.
4384 * opencl-lang.c (opencl_language_data): Likewise.
4385 * p-lang.c (pascal_language_data): Likewise.
4386 * rust-lang.c (rust_language_data): Likewise.
4387
4388 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * ada-lang.c (ada_add_all_symbols): Update comment.
4391 (ada_iterate_over_symbols): Delete, move implementation to...
4392 (ada_language::iterate_over_symbols): ...here, a new member
4393 function, rewrite to use range based for loop.
4394 (ada_language_data): Delete la_iterate_over_symbols initializer.
4395 * c-lang.c (c_language_data): Likewise.
4396 (cplus_language_data): Likewise.
4397 (asm_language_data): Likewise.
4398 (minimal_language_data): Likewise.
4399 * d-lang.c (d_language_data): Likewise.
4400 * f-lang.c (f_language_data): Likewise.
4401 * go-lang.c (go_language_data): Likewise.
4402 * language.c (unknown_language_data): Likewise.
4403 (auto_language_data): Likewise.
4404 * language.h (language_data): Delete la_iterate_over_symbols field.
4405 (language_defn::iterate_over_symbols): New member function.
4406 (LA_ITERATE_OVER_SYMBOLS): Update.
4407 * linespec.c (iterate_over_all_matching_symtabs): Update.
4408 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4409 initializer.
4410 * objc-lang.c (objc_language_data): Likewise.
4411 * opencl-lang.c (opencl_language_data): Likewise.
4412 * p-lang.c (pascal_language_data): Likewise.
4413 * rust-lang.c (rust_language_data): Likewise.
4414
4415 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * ada-lang.c (ada_language_data): Delete
4418 la_lookup_transparent_type initializer.
4419 * c-lang.c (c_language_data): Likewise.
4420 (cplus_language_data): Likewise.
4421 (cplus_language::lookup_transparent_type): New member function.
4422 (asm_language_data): Delete la_lookup_transparent_type
4423 initializer.
4424 (minimal_language_data): Likewise.
4425 * d-lang.c (d_language_data): Likewise.
4426 * f-lang.c (f_language_data): Likewise.
4427 * go-lang.c (go_language_data): Likewise.
4428 * language.c (unknown_language_data): Likewise.
4429 (auto_language_data): Likewise.
4430 * language.h (struct language_data): Delete
4431 la_lookup_transparent_type field.
4432 (language_defn::lookup_transparent_type): New member function.
4433 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4434 initializer.
4435 * objc-lang.c (objc_language_data): Likewise.
4436 * opencl-lang.c (opencl_language_data): Likewise.
4437 * p-lang.c (pascal_language_data): Likewise.
4438 * rust-lang.c (rust_language_data): Likewise.
4439 * symtab.c (symbol_matches_domain): Update call.
4440
4441 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4442
4443 * ada-lang.c (ada_language_arch_info): Delete function, move
4444 implementation to...
4445 (ada_language::language_arch_info): ...here, a new member
4446 function.
4447 (ada_language_data): Delete la_language_arch_info.
4448 * c-lang.c (c_language_data): Likewise.
4449 (c_language::language_arch_info): New member function.
4450 (cplus_language_arch_info): Delete function, move
4451 implementation to...
4452 (cplus_language::language_arch_info): ...here, a new member
4453 function.
4454 (cplus_language_data): Delete la_language_arch_info.
4455 (asm_language_data): Likewise.
4456 (asm_language::language_arch_info): New member function.
4457 (minimal_language_data): Delete la_language_arch_info.
4458 (minimal_language::language_arch_info): New member function.
4459 * d-lang.c (d_language_arch_info): Delete function, move
4460 implementation to...
4461 (d_language::language_arch_info): ...here, a new member
4462 function.
4463 (d_language_data): Delete la_language_arch_info.
4464 * f-lang.c (f_language_arch_info): Delete function, move
4465 implementation to...
4466 (f_language::language_arch_info): ...here, a new member
4467 function.
4468 (f_language_data): Delete la_language_arch_info.
4469 * go-lang.c (go_language_arch_info): Delete function, move
4470 implementation to...
4471 (go_language::language_arch_info): ...here, a new member
4472 function.
4473 (go_language_data): Delete la_language_arch_info.
4474 * language.c (unknown_language_data): Likewise.
4475 (unknown_language::language_arch_info): New member function.
4476 (auto_language_data): Delete la_language_arch_info.
4477 (auto_language::language_arch_info): New member function.
4478 (language_gdbarch_post_init): Update call to
4479 la_language_arch_info.
4480 * language.h (language_data): Delete la_language_arch_info
4481 function pointer.
4482 (language_defn::language_arch_info): New function.
4483 * m2-lang.c (m2_language_arch_info): Delete function, move
4484 implementation to...
4485 (m2_language::language_arch_info): ...here, a new member
4486 function.
4487 (m2_language_data): Delete la_language_arch_info.
4488 * objc-lang.c (objc_language_arch_info): Delete function, move
4489 implementation to...
4490 (objc_language::language_arch_info): ...here, a new member
4491 function.
4492 (objc_language_data): Delete la_language_arch_info.
4493 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4494 implementation to...
4495 (opencl_language::language_arch_info): ...here, a new member
4496 function.
4497 (opencl_language_data): Delete la_language_arch_info.
4498 * p-lang.c (pascal_language_arch_info): Delete function, move
4499 implementation to...
4500 (pascal_language::language_arch_info): ...here, a new member
4501 function.
4502 (pascal_language_data): Delete la_language_arch_info.
4503 * rust-lang.c (rust_language_arch_info): Delete function, move
4504 implementation to...
4505 (rust_language::language_arch_info): ...here, a new member
4506 function.
4507 (rust_language_data): Delete la_language_arch_info.
4508
4509 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4512 initializer.
4513 * c-lang.c (c_language_data): Likewise.
4514 (cplus_language_data): Likewise.
4515 (cplus_language::pass_by_reference_info): New method.
4516 (asm_language_data): Delete la_pass_by_reference initializer.
4517 (minimal_language_data): Likewise.
4518 * cp-abi.c (cp_pass_by_reference): Remove use of
4519 default_pass_by_reference.
4520 * d-lang.c (d_language_data): Likewise.
4521 * f-lang.c (f_language_data): Likewise.
4522 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4523 default_pass_by_reference.
4524 * go-lang.c (go_language_data): Likewise.
4525 * language.c (language_pass_by_reference): Update.
4526 (default_pass_by_reference): Delete.
4527 (unknown_language_data): Delete la_pass_by_reference
4528 initializer.
4529 (auto_language_data): Likewise.
4530 * language.h (struct language_data): Delete la_pass_by_reference
4531 field.
4532 (language_defn::pass_by_reference_info): New member function.
4533 (default_pass_by_reference): Delete declaration.
4534 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4535 initializer.
4536 * objc-lang.c (objc_language_data): Likewise.
4537 * opencl-lang.c (opencl_language_data): Likewise.
4538 * p-lang.c (pascal_language_data): Likewise.
4539 * rust-lang.c (rust_language_data): Likewise.
4540
4541 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4542
4543 * ada-lang.c (ada_read_var_value): Delete function, move
4544 implementation to...
4545 (ada_language::read_var_value): ...here.
4546 (ada_language_data): Delete la_read_var_value initializer.
4547 * c-lang.c (c_language_data): Likewise.
4548 (cplus_language_data): Likewise.
4549 (minimal_language_data): Likewise.
4550 * d-lang.c (d_language_data): Likewise.
4551 * f-lang.c (f_language_data): Likewise.
4552 * findvar.c (default_read_var_value): Rename to...
4553 (language_defn::read_var_value): ...this.
4554 * findvar.c (read_var_value): Update header comment, and change to
4555 call member function instead of function pointer.
4556 * go-lang.c (go_language_data): Likewise.
4557 * language.c (unknown_language_data): Delete la_read_var_value
4558 initializer.
4559 (auto_language_data): Likewise.
4560 * language.h (struct language_data): Delete la_read_var_value
4561 field.
4562 (language_defn::read_var_value): New member function.
4563 (default_read_var_value): Delete declaration.
4564 * m2-lang.c (m2_language_data): Delete la_read_var_value
4565 initializer.
4566 * objc-lang.c (objc_language_data): Likewise.
4567 * opencl-lang.c (opencl_language_data): Likewise.
4568 * p-lang.c (pascal_language_data): Likewise.
4569 * rust-lang.c (rust_language_data): Likewise.
4570 * value.h (default_read_var_value): Delete declaration.
4571
4572 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 * ada-lang.c (ada_print_array_index): Delete function, move
4575 implementation to...
4576 (ada_language::print_array_index): ...here.
4577 (ada_language_data): Delete la_print_array_index initializer.
4578 * c-lang.c (c_language_data): Likewise.
4579 (cplus_language_data): Likewise.
4580 (minimal_language_data): Likewise.
4581 * d-lang.c (d_language_data): Likewise.
4582 * f-lang.c (f_language_data): Likewise.
4583 * go-lang.c (go_language_data): Likewise.
4584 * language.c (default_print_array_index): Delete function, move
4585 implementation to...
4586 (language_defn::print_array_index): ...here.
4587 (unknown_language_data): Delete la_print_array_index initializer.
4588 (auto_language_data): Likewise.
4589 * language.h (struct language_data): Delete la_print_array_index
4590 field.
4591 (language_defn::print_array_index): New member function.
4592 (LA_PRINT_ARRAY_INDEX): Update.
4593 (default_print_array_index): Delete declaration.
4594 * m2-lang.c (m2_language_data): Delete la_print_array_index
4595 initializer.
4596 * objc-lang.c (objc_language_data): Likewise.
4597 * opencl-lang.c (opencl_language_data): Likewise.
4598 * p-lang.c (pascal_language_data): Likewise.
4599 * rust-lang.c (rust_language_data): Likewise.
4600
4601 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4602
4603 * gdb/ada-lang.c (ada_language_defn): Convert to...
4604 (ada_language_data): ...this.
4605 (class ada_language): New class.
4606 (ada_language_defn): New static global.
4607 * gdb/c-lang.c (c_language_defn): Convert to...
4608 (c_language_data): ...this.
4609 (class c_language): New class.
4610 (c_language_defn): New static global.
4611 (cplus_language_defn): Convert to...
4612 (cplus_language_data): ...this.
4613 (class cplus_language): New class.
4614 (cplus_language_defn): New static global.
4615 (asm_language_defn): Convert to...
4616 (asm_language_data): ...this.
4617 (class asm_language): New class.
4618 (asm_language_defn): New static global.
4619 (minimal_language_defn): Convert to...
4620 (minimal_language_data): ...this.
4621 (class minimal_language): New class.
4622 (minimal_language_defn): New static global.
4623 * gdb/d-lang.c (d_language_defn): Convert to...
4624 (d_language_data): ...this.
4625 (class d_language): New class.
4626 (d_language_defn): New static global.
4627 * gdb/f-lang.c (f_language_defn): Convert to...
4628 (f_language_data): ...this.
4629 (class f_language): New class.
4630 (f_language_defn): New static global.
4631 * gdb/go-lang.c (go_language_defn): Convert to...
4632 (go_language_data): ...this.
4633 (class go_language): New class.
4634 (go_language_defn): New static global.
4635 * gdb/language.c (unknown_language_defn): Remove declaration.
4636 (current_language): Initialize to nullptr, real initialization is
4637 moved to _initialize_language.
4638 (languages): Delete global.
4639 (language_defn::languages): Define.
4640 (set_language_command): Use language_defn::languages.
4641 (set_language): Likewise.
4642 (range_error): Likewise.
4643 (language_enum): Likewise.
4644 (language_def): Likewise.
4645 (add_set_language_command): Use language_def::languages for the
4646 language list, and language_def to lookup language pointers.
4647 (skip_language_trampoline): Use language_defn::languages.
4648 (unknown_language_defn): Convert to...
4649 (unknown_language_data): ...this.
4650 (class unknown_language): New class.
4651 (unknown_language_defn): New static global.
4652 (auto_language_defn): Convert to...
4653 (auto_language_data): ...this.
4654 (class auto_language): New class.
4655 (auto_language_defn): New static global.
4656 (language_gdbarch_post_init): Use language_defn::languages.
4657 (_initialize_language): Initialize current_language.
4658 * gdb/language.h (struct language_defn): Rename to...
4659 (struct language_data): ...this.
4660 (struct language_defn): New.
4661 (auto_language_defn): Delete.
4662 (unknown_language_defn): Delete.
4663 (minimal_language_defn): Delete.
4664 (ada_language_defn): Delete.
4665 (asm_language_defn): Delete.
4666 (c_language_defn): Delete.
4667 (cplus_language_defn): Delete.
4668 (d_language_defn): Delete.
4669 (f_language_defn): Delete.
4670 (go_language_defn): Delete.
4671 (m2_language_defn): Delete.
4672 (objc_language_defn): Delete.
4673 (opencl_language_defn): Delete.
4674 (pascal_language_defn): Delete.
4675 (rust_language_defn): Delete.
4676 * gdb/m2-lang.c (m2_language_defn): Convert to...
4677 (m2_language_data): ...this.
4678 (class m2_language): New class.
4679 (m2_language_defn): New static global.
4680 * gdb/objc-lang.c (objc_language_defn): Convert to...
4681 (objc_language_data): ...this.
4682 (class objc_language): New class.
4683 (objc_language_defn): New static global.
4684 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4685 (opencl_language_data): ...this.
4686 (class opencl_language): New class.
4687 (opencl_language_defn): New static global.
4688 * gdb/p-lang.c (pascal_language_defn): Convert to...
4689 (pascal_language_data): ...this.
4690 (class pascal_language): New class.
4691 (pascal_language_defn): New static global.
4692 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4693 language pointer, update comment format.
4694 * gdb/rust-lang.c (rust_language_defn): Convert to...
4695 (rust_language_data): ...this.
4696 (class rust_language): New class.
4697 (rust_language_defn): New static global.
4698
4699 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4700
4701 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4702 member variable.
4703 <m_stmt_at_address>: New member variable.
4704 (lnp_state_machine::record_line): Don't record some lines, update
4705 tracking of is_stmt at the same address.
4706 (lnp_state_machine::lnp_state_machine): Initialise new member
4707 variables.
4708
4709 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4710
4711 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4712 "-include gnu-nat-mig.h".
4713 * gnu-nat-mig.h: New file.
4714 * gnu-nat.c: Include "gnu-nat-mig.h".
4715 (exc_server, msg_reply_server, notify_server,
4716 process_reply_server): Remove declarations.
4717
4718 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4719
4720 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4721 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4722 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4723 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4724 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4725 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4726 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4727 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4728 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4729 to gnu_nat_target class.
4730 * gnu-nat.c: Likewise.
4731 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4732 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4733 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4734 object.
4735 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4736 instead of `gnu_target'.
4737
4738 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4739
4740 * i386-gnu-tdep.c: Include "gdbcore.h"
4741 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4742 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4743 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4744 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4745 i386_gnu_sigcontext_addr): New functions
4746 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4747 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4748 tdep.
4749
4750 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4751
4752 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4753 before fork_inferior call. Avoid calling it if target_is_pushed returns
4754 true.
4755
4756 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4757
4758 * gnu-nat.h (gnu_target): New variable declaration.
4759 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4760 gnu_target.
4761 * gnu-nat.c (gnu_target): New variable.
4762 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4763 add_thread_silent, and add_thread calls.
4764 (gnu_nat_target::create_inferior): Pass gnu_target to
4765 add_thread_silent, thread_change_ptid call.
4766 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4767 call.
4768
4769 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4770
4771 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4772 (gnu_nat_target::find_memory_regions): Remove unused
4773 `old_address' variable.
4774
4775 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4776
4777 * gnu-nat.c: Include "gdbarch.h".
4778
4779 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4780
4781 * reply_mig_hack.awk (Error return): Cast function through
4782 void *, to bypass compiler function call check.
4783
4784 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4785
4786 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4787 $(srcdir)/reply_mig_hack.awk.
4788
4789 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4790
4791 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4792
4793 2020-05-30 Jonny Grant <jg@jguk.org>
4794
4795 * configure.ac (ACX_BUGURL): change bug URL to https.
4796
4797 2020-05-30 Pedro Alves <palves@redhat.com>
4798
4799 * cp-support.c (replace_typedefs_template): New.
4800 (replace_typedefs_qualified_name): Handle
4801 DEMANGLE_COMPONENT_TEMPLATE.
4802
4803 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4806 dwarf2/index-cache.h, dwarf2/index-write.c,
4807 dwarf2/index-write.h, dwarf2/line-header.c,
4808 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4809 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4810 variables and fields from `dwarf2_per_objfile` to just
4811 `per_objfile` throughout.
4812
4813 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4814
4815 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4816 <push_dwarf_reg_entry_value>: Add comment.
4817
4818 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4819 Keith Seitz <keiths@redhat.com>
4820
4821 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4822 instead of PyEval_ReleaseLock.
4823 (class gdbpy_gil): Move to earlier in file.
4824 (finalize_python): Set gdb_python_initialized.
4825 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4826 when not initialized.
4827
4828 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4829
4830 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4831 <push_dwarf_reg_entry_value>: Remove assert. Override
4832 per_objfile with caller_per_objfile.
4833
4834 2020-05-28 Tom de Vries <tdevries@suse.de>
4835
4836 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4837 PR gold/15646 workaround to symbol kind "type".
4838
4839 2020-05-27 Tom Tromey <tromey@adacore.com>
4840
4841 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4842
4843 2020-05-27 Tom Tromey <tromey@adacore.com>
4844
4845 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4846 Use htab_find_with_hash.
4847 <add_abbrev>: Remove "abbrev_number" parameter.
4848 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4849 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4850 (hash_abbrev): Add comment.
4851 (abbrev_table::lookup_abbrev): Move to header file.
4852 (abbrev_table::read): Update.
4853
4854 2020-05-27 Tom Tromey <tromey@adacore.com>
4855
4856 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4857 method.
4858 <canonical_name>: New member.
4859 <raw_name>: Rename from "name".
4860 (partial_die_info): Initialize canonical_name.
4861 (scan_partial_symbols): Check raw_name.
4862 (partial_die_parent_scope, partial_die_full_name)
4863 (add_partial_symbol, add_partial_subprogram)
4864 (add_partial_enumeration, load_partial_dies): Use "name" method.
4865 (partial_die_info::name): New method.
4866 (partial_die_info::read, guess_partial_die_structure_name)
4867 (partial_die_info::fixup): Update.
4868
4869 2020-05-27 Tom Tromey <tromey@adacore.com>
4870
4871 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4872 <get_ref_die_offset>: Inline.
4873 <get_ref_die_offset_complaint>: New method.
4874 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4875 (attribute::get_ref_die_offset_complaint): Rename from
4876 get_ref_die_offset. Just issue complaint.
4877
4878 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4879
4880 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4881
4882 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4883
4884 * exec.c (exec_file_attach): Use errno value of first openp failure.
4885
4886 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4887
4888 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4889 Don't close thread handle.
4890
4891 2020-05-27 Tom Tromey <tom@tromey.com>
4892 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4895 shared_ptr.
4896 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4897 member.
4898 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4899 dwarf2_per_bfd_objfile_data_key>: New globals.
4900 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4901 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4902 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4903 shared.
4904 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4905 short-circuit when sharing.
4906 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4907 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4908
4909 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4912 to...
4913 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4914 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4915
4916 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4919 build_name_components, find_name_components_bounds>:
4920 Add per_objfile parameter.
4921 (struct mapped_index) <symbol_name_at>: Likewise.
4922 (struct mapped_debug_names): Remove constructor.
4923 <dwarf2_per_objfile>: Remove field.
4924 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4925 (mapped_index_base::find_name_components_bounds,
4926 mapped_index_base::build_name_components,
4927 dw2_expand_symtabs_matching_symbol): Likewise.
4928 (class mock_mapped_index) <symbol_name_at>: Likewise.
4929 (check_match): Likewise.
4930 (check_find_bounds_finds): Likewise.
4931 (test_mapped_index_find_name_component_bounds): Update.
4932 (CHECK_MATCH): Update.
4933 (dw2_expand_symtabs_matching): Update.
4934 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4935 per_objfile parameter.
4936 <find_vec_in_debug_names>: Likewise.
4937 <m_per_objfile>: New field.
4938 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4939 parameter.
4940 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4941 (dw2_debug_names_iterator::next): Update.
4942 (dw2_debug_names_lookup_symbol): Update.
4943 (dw2_debug_names_expand_symtabs_for_function): Update.
4944 (dw2_debug_names_map_matching_symbols): Update.
4945 (dw2_debug_names_expand_symtabs_matching): Update.
4946 (dwarf2_read_debug_names): Update.
4947
4948 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4951 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4952 move to dwarf2_per_objfile.
4953 <read_in_chain>: Remove.
4954 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4955 remove_all_cus, age_comp_units>: New methods.
4956 <m_dwarf2_cus>: New member.
4957 (struct dwarf2_per_cu_data) <cu>: Remove.
4958 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4959 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4960 moved to methods of dwarf2_per_objfile.
4961 (dwarf2_clear_marks): Remove.
4962 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4963 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4964 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4965 (dwarf2_per_objfile::remove_all_cus): New.
4966 (class free_cached_comp_units) <~free_cached_comp_units>:
4967 Update.
4968 (load_cu): Update.
4969 (dw2_do_instantiate_symtab): Adjust.
4970 (fill_in_sig_entry_from_dwo_entry): Adjust.
4971 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4972 (cutu_reader::cutu_reader): Likewise.
4973 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4974 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4975 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4976 and dwarf2_per_objfile::age_comp_units.
4977 (load_partial_comp_unit): Update.
4978 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4979 (process_queue): Likewise.
4980 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4981 backlink.
4982 (dwarf2_read_addr_index): Likewise.
4983 (follow_die_offset): Likewise.
4984 (dwarf2_fetch_die_loc_sect_off): Likewise.
4985 (dwarf2_fetch_constant_bytes): Likewise.
4986 (dwarf2_fetch_die_type_sect_off): Likewise.
4987 (follow_die_sig_1): Likewise.
4988 (load_full_type_unit): Likewise.
4989 (read_signatured_type): Likewise.
4990 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4991 (dwarf2_cu::~dwarf2_cu): Remove.
4992 (dwarf2_per_objfile::get_cu): New.
4993 (dwarf2_per_objfile::set_cu): New.
4994 (age_cached_comp_units): Rename to...
4995 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4996 to std::unordered_map.
4997 (free_one_cached_comp_unit): Rename to...
4998 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4999 to std::unordered_map.
5000 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5001 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5002 a dwarf2_per_objfile in data.
5003 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5004 (dwarf2_clear_marks): Remove.
5005
5006 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5007
5008 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5009 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5010 (init_tu_and_read_dwo_dies): Likewise.
5011 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5012 (cutu_reader::cutu_reader): Likewise.
5013 (load_partial_comp_unit): Likewise.
5014 (process_psymtab_comp_unit): Update.
5015 (build_type_psymtabs_1): Update.
5016 (process_skeletonless_type_unit): Update.
5017 (load_full_comp_unit): Update.
5018 (find_partial_die): Update.
5019 (dwarf2_read_addr_index): Update.
5020 (read_signatured_type): Update.
5021
5022 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5025 m_header_read_in>: New fields.
5026 <get_header>: New method.
5027 * dwarf2/read.c (per_cu_header_read_in): Remove.
5028 (dwarf2_per_cu_data::get_header): New.
5029 (dwarf2_per_cu_data::addr_size): Update.
5030 (dwarf2_per_cu_data::offset_size): Update.
5031 (dwarf2_per_cu_data::ref_addr_size): Update.
5032
5033 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5034
5035 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5036 (dw2_do_instantiate_symtab): Update.
5037 (queue_and_load_all_dwo_tus): Change parameter from
5038 dwarf2_per_cu_data to dwarf2_cu.
5039 (dwarf2_fetch_die_loc_sect_off): Update.
5040 (dwarf2_fetch_constant_bytes): Update.
5041 (dwarf2_fetch_die_type_sect_off): Update.
5042
5043 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5044
5045 * dwarf2/read.c (process_full_comp_unit,
5046 process_full_type_unit): Remove per_cu, per_objfile paramters.
5047 Add dwarf2_cu parameter.
5048 (process_queue): Update.
5049
5050 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5051
5052 * dwarf2/read.c (create_cu_from_index_list): Replace
5053 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5054 (create_cus_from_index_list): Likewise.
5055 (create_cus_from_index): Likewise.
5056 (create_signatured_type_table_from_index): Likewise.
5057 (create_cus_from_debug_names_list): Likewise.
5058 (create_cus_from_debug_names): Likewise.
5059 (dwarf2_read_gdb_index): Update.
5060 (dwarf2_read_debug_names): Update.
5061
5062 2020-05-27 Tom Tromey <tom@tromey.com>
5063 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * dwarf2/read.h (struct dwarf2_per_objfile)
5066 <get_type_for_signatured_type, set_type_for_signatured_type>:
5067 New methods.
5068 <m_type_map>: New member.
5069 (struct signatured_type) <type>: Remove.
5070 * dwarf2/read.c
5071 (dwarf2_per_objfile::get_type_for_signatured_type,
5072 dwarf2_per_objfile::set_type_for_signatured_type): New.
5073 (get_signatured_type): Use new methods.
5074
5075 2020-05-27 Tom Tromey <tom@tromey.com>
5076 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5079 (struct dwarf2_per_objfile) <type_units>: New member.
5080 <get_type_unit_group_unshareable>: New method.
5081 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5082 num_symtabs, symtabs>: Remove; move to
5083 type_unit_group_unshareable.
5084 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5085 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5086 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5087
5088 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * dwarf2/read.h (struct dwarf2_per_cu_data):
5091 <dwarf2_per_objfile>: Remove.
5092 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5093 dwarf2_per_objfile.
5094 (create_signatured_type_table_from_index): Likewise.
5095 (create_signatured_type_table_from_debug_names): Likewise.
5096 (create_debug_type_hash_table): Likewise.
5097 (fill_in_sig_entry_from_dwo_entry): Likewise.
5098 (create_type_unit_group): Likewise.
5099 (read_comp_units_from_section): Likewise.
5100 (create_cus_hash_table): Likewise.
5101
5102 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5103
5104 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5105 dwarf2_per_cu_data::dwarf2_per_objfile.
5106 (compute_compunit_symtab_includes): Likewise.
5107 (dwarf2_cu::start_symtab): Likewise.
5108
5109 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5110
5111 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5112 parameter.
5113 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5114 (read_namespace_alias): Update.
5115 (lookup_die_type): Update.
5116 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5117 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5118 Update.
5119 (disassemble_dwarf_expression): Update.
5120
5121 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * dwarf2/read.h (struct dwarf2_queue_item): Add
5124 dwarf2_per_objfile parameter, assign new parameter.
5125 <per_objfile>: New field.
5126 * dwarf2/read.c (free_one_cached_comp_unit): Add
5127 dwarf2_per_objfile parameter.
5128 (queue_comp_unit): Likewise.
5129 (dw2_do_instantiate_symtab): Update.
5130 (process_psymtab_comp_unit): Update.
5131 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5132 (process_imported_unit_die): Update.
5133 (queue_and_load_dwo_tu): Update.
5134 (follow_die_offset): Update.
5135 (follow_die_sig_1): Update.
5136
5137 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5140 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5141 (read_call_site_scope): Assign per_objfile.
5142 (dwarf2_per_cu_data::objfile): Remove.
5143 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5144 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5145 dwarf2_per_objfile parameter.
5146 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5147 dwarf2_per_objfile parameter.
5148 (dwarf_expr_reg_to_entry_parameter): Add output
5149 dwarf2_per_objfile parameter.
5150 (locexpr_get_frame_base): Update.
5151 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5152 <push_dwarf_reg_entry_value>: Update.
5153 <call_site_to_target_addr>: Update.
5154 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5155 parameter.
5156 (value_of_dwarf_reg_entry): Update.
5157 (rw_pieced_value): Update.
5158 (indirect_synthetic_pointer): Update.
5159 (dwarf2_evaluate_property): Update.
5160 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5161 parameter.
5162 (locexpr_read_variable): Update.
5163 (locexpr_get_symbol_read_needs): Update.
5164 (loclist_read_variable): Update.
5165
5166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5167
5168 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5169 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5170 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5171 parameter.
5172 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5173 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5174 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5175 parameter.
5176 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5177 sect_variable_value): Add dwarf2_per_objfile parameter.
5178 (class dwarf_evaluate_loc_desc) <dwarf_call,
5179 dwarf_variable_value>: Update.
5180 (fetch_const_value_from_synthetic_pointer): Add
5181 dwarf2_per_objfile parameter.
5182 (fetch_const_value_from_synthetic_pointer): Update.
5183 (coerced_pieced_ref): Update.
5184 (class symbol_needs_eval_context) <dwarf_call,
5185 dwarf_variable_value>: Update.
5186 (dwarf2_compile_expr_to_ax): Update.
5187
5188 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5189
5190 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5191 parameter.
5192 (dwarf2_evaluate_loc_desc_full): Update.
5193
5194 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5197 parameter.
5198 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5199 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5200 dwarf2_per_objfile parameter.
5201 (decode_debug_loc_dwo_addresses): Likewise.
5202 (dwarf2_find_location_expression): Update.
5203 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5204 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5205 parameter.
5206 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5207 parameter.
5208 (locexpr_describe_location_1): Likewise.
5209 (locexpr_describe_location): Update.
5210
5211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5212
5213 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5214 Remove.
5215 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5216 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5217 (dwarf2_compile_property_to_c): Update.
5218 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5219 use text offset from objfile.
5220 (locexpr_tracepoint_var_ref): Update.
5221 (locexpr_generate_c_location): Update.
5222 (loclist_describe_location): Update.
5223 (loclist_tracepoint_var_ref): Update.
5224 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5225 dwarf2_per_objfile parameter.
5226 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5227 use text offset from objfile.
5228 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5229
5230 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * dwarf2/expr.h (struct dwarf_expr_context)
5233 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5234 <offset>: Remove.
5235 <per_objfile>: New member.
5236 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5237 dwarf2_per_objfile parameter. Don't set offset, set
5238 per_objfile.
5239 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5240 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5241 a dwarf2_per_objfile object instead of an offset.
5242 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5243 constructor.
5244 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5245 to dwarf2_expr_executor constructor. Don't set offset.
5246 (dwarf2_fetch_cfa_info): Update.
5247 (struct dwarf2_frame_cache) <text_offset>: Remove.
5248 <per_objfile>: New field.
5249 (dwarf2_frame_cache): Update.
5250 (dwarf2_frame_prev_register): Update.
5251 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5252 <dwarf_evaluate_loc_desc>: Add constructor.
5253 (dwarf2_evaluate_loc_desc_full): Update.
5254 (dwarf2_locexpr_baton_eval): Update.
5255 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5256 Add constructor.
5257 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5258
5259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5262 addr_sized_int_type>: Move to dwarf2_cu.
5263 <int_type>: Move to dwarf2_per_objfile.
5264 (struct dwarf2_per_objfile) <int_type>: Move here.
5265 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5266 addr_sized_int_type>: Move here.
5267 (read_func_scope): Update.
5268 (read_array_type): Update.
5269 (read_tag_string_type): Update.
5270 (attr_to_dynamic_prop): Update.
5271 (dwarf2_per_cu_data::int_type): Rename to...
5272 (dwarf2_per_objfile::int_type): ... this.
5273 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5274 (dwarf2_cu::addr_sized_int_type): ... this.
5275 (read_subrange_type): Update.
5276 (dwarf2_per_cu_data::addr_type): Rename to...
5277 (dwarf2_cu::addr_type): ... this.
5278 (set_die_type): Update.
5279
5280 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5283 data through per_cu->cu.
5284
5285 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5288 dwarf2_per_cu_data parameter fo dwarf2_cu.
5289 (lookup_dwo_type_unit): Likewise.
5290 (read_cutu_die_from_dwo): Likewise.
5291 (lookup_dwo_unit): Likewise.
5292 (open_and_init_dwo_file): Likewise.
5293 (lookup_dwo_cutu): Likewise.
5294 (lookup_dwo_comp_unit): Likewise.
5295 (lookup_dwo_type_unit): Likewise.
5296 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5297 (cutu_reader::cutu_reader): Update.
5298
5299 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5302 parameter.
5303 (process_full_type_unit): Likewise.
5304 (process_queue): Update.
5305
5306 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * dwarf2/read.c (recursively_compute_inclusions): Add
5309 dwarf2_per_objfile parameter.
5310 (compute_compunit_symtab_includes): Likewise.
5311 (process_cu_includes): Update.
5312
5313 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5314
5315 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5316 parameter.
5317 (create_type_unit_group): Update.
5318 (process_psymtab_comp_unit_reader): Update.
5319 (build_type_psymtabs_reader): Update.
5320
5321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5324 object through m_this_cu->cu.
5325
5326 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5329 the info parameter.
5330 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5331
5332 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5333
5334 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5335 per_objfile parameter.
5336 (load_full_type_unit): Add per_objfile parameter.
5337 (read_signatured_type): Likewise.
5338 (load_full_comp_unit): Likewise.
5339 (load_cu): Likewise.
5340 (dw2_do_instantiate_symtab): Likewise.
5341 (dw2_get_file_names): Likewise.
5342 (dw2_map_symtabs_matching_filename): Update.
5343 (dw_expand_symtabs_matching_file_matcher): Update.
5344 (dw2_map_symbol_filenames): Update.
5345 (process_psymtab_comp_unit): Add per_objfile parameter.
5346 (build_type_psymtabs_1): Update.
5347 (process_skeletonless_type_unit): Update.
5348 (dwarf2_build_psymtabs_hard): Update.
5349 (load_partial_comp_unit): Add per_objfile parameter.
5350 (scan_partial_symbols): Update.
5351 (load_full_comp_unit): Add per_objfile parameter.
5352 (process_imported_unit_die): Update.
5353 (create_cus_hash_table): Update.
5354 (find_partial_die): Update.
5355 (dwarf2_read_addr_index): Update.
5356 (follow_die_offset): Update.
5357 (dwarf2_fetch_die_loc_sect_off): Update.
5358 (dwarf2_fetch_constant_bytes): Update.
5359 (dwarf2_fetch_die_type_sect_off): Update.
5360 (follow_die_sig_1): Update.
5361 (load_full_type_unit): Add per_objfile parameter.
5362 (read_signatured_type): Likewise.
5363
5364 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5367 of objfile_name.
5368
5369 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5370
5371 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5372 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5373 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5374 field.
5375 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5376 (create_cus_from_index): Update.
5377 (dwarf2_read_gdb_index): Update.
5378 (create_cus_from_debug_names): Update.
5379 (dwarf2_read_debug_names): Update.
5380 (get_abbrev_section_for_cu): Update.
5381 (create_all_comp_units): Update.
5382 (read_attribute_value): Update.
5383 (get_debug_line_section): Update.
5384 * dwarf2/index-cache.c (index_cache::store): Update.
5385 * dwarf2/index-write.c (save_gdb_index_command): Update.
5386 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5387
5388 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5389
5390 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5391 member.
5392 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5393 dwarf2_per_cu_data::per_bfd.
5394 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5395 (create_type_unit_group): Likewise.
5396 (queue_comp_unit): Remove reference to
5397 per_cu->dwarf2_per_objfile.
5398 (maybe_queue_comp_unit): Likewise.
5399 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5400 (create_cus_hash_table): Assign new field.
5401
5402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5403
5404 * dwarf2/read.c: Replace
5405 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5406 dwarf2_cu->per_objfile throughout.
5407
5408 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5409
5410 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5411 parameter, don't use per_cu->dwarf2_per_objfile.
5412 (dw2_instantiate_symtab): Likewise.
5413 (dw2_find_last_source_symtab): Update.
5414 (dw2_map_expand_apply): Update.
5415 (dw2_lookup_symbol): Update.
5416 (dw2_expand_symtabs_for_function): Update.
5417 (dw2_expand_all_symtabs): Update.
5418 (dw2_expand_symtabs_with_fullname): Update.
5419 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5420 don't use per_cu->dwarf2_per_objfile.
5421 (dw2_expand_marked_cus): Update.
5422 (dw2_find_pc_sect_compunit_symtab): Update.
5423 (dw2_debug_names_lookup_symbol): Update.
5424 (dw2_debug_names_expand_symtabs_for_function): Update.
5425 (dw2_debug_names_map_matching_symbols): Update.
5426 (dwarf2_psymtab::expand_psymtab): Update.
5427
5428 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5429
5430 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5431 <per_objfile>: New member.
5432 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5433 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5434 call to dwarf2_cu.
5435 (cutu_reader::cutu_reader): Update.
5436 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5437
5438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5441 struct dwarf2_per_objfile.
5442 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5443 dwarf2_per_bfd.
5444 * dwarf2/read.c (set_die_type): Update.
5445 (get_die_type_at_offset): Update.
5446
5447 2020-05-27 Tom Tromey <tom@tromey.com>
5448 Simon Marchi <simon.marchi@efficios.com>
5449
5450 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5451 method.
5452 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5453 get_symtab, set_symtab>: New methods.
5454 <m_symtabs>: New field.
5455 (struct dwarf2_psymtab): Derive from partial_symtab.
5456 <readin_p, get_compunit_symtab>: Declare methods.
5457 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5458 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5459 New methods.
5460 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5461 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5462 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5463 (dw2_symtab_iter_next, dw2_print_stats)
5464 (dw2_expand_symtabs_with_fullname)
5465 (dw2_expand_symtabs_matching_one)
5466 (dw_expand_symtabs_matching_file_matcher)
5467 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5468 (dw2_debug_names_iterator::next)
5469 (dw2_debug_names_map_matching_symbols)
5470 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5471 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5472 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5473 New methods.
5474 (get_compunit_symtab, process_full_comp_unit)
5475 (process_full_type_unit): Update.
5476 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5477
5478 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5479
5480 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5481 then introduce a new dwarf2_per_objfile type.
5482 <read_line_string>: Move to the new dwarf2_per_objfile type.
5483 <objfile>: Likewise.
5484 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5485 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5486 dwarf2_per_objfile->per_bfd.
5487 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5488 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5489 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5490 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5491 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5492 (dwarf2_per_objfile::locate_sections): Rename to...
5493 (dwarf2_per_bfd::locate_sections): ... this.
5494 (dwarf2_per_objfile::get_cutu): Rename to...
5495 (dwarf2_per_bfd::get_cutu): ... this.
5496 (dwarf2_per_objfile::get_cu): Rename to...
5497 (dwarf2_per_bfd::get_cu): ... this.
5498 (dwarf2_per_objfile::get_tu): Rename to...
5499 (dwarf2_per_bfd::get_tu): ... this.
5500 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5501 (dwarf2_per_bfd::allocate_per_cu): ... this.
5502 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5503 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5504 (get_gdb_index_contents_ftype): Change parameter from
5505 dwarf2_per_objfile to dwarf2_per_bfd.
5506 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5507 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5508
5509 2020-05-27 Tom Tromey <tom@tromey.com>
5510 Simon Marchi <simon.marchi@efficios.com>
5511
5512 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5513 (allocate_piece_closure): Set "per_objfile" member.
5514 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5515 (locexpr_describe_location, loclist_describe_location): Use new
5516 member.
5517 * dwarf2/read.c (read_call_site_scope)
5518 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5519 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5520 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5521 handle_data_member_location): Set per_objfile member.
5522 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5523 member.
5524 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5525
5526 2020-05-27 Tom Tromey <tom@tromey.com>
5527
5528 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5529 allocate_signatured_type>: Declare new methods.
5530 <m_num_psymtabs>: New member.
5531 (struct dwarf2_per_cu_data) <index>: New member.
5532 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5533 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5534 (create_cu_from_index_list): Use allocate_per_cu.
5535 (create_signatured_type_table_from_index)
5536 (create_signatured_type_table_from_debug_names)
5537 (create_debug_type_hash_table, add_type_unit)
5538 (read_comp_units_from_section): Use allocate_signatured_type.
5539
5540 2020-05-27 Tom Tromey <tom@tromey.com>
5541
5542 * psymtab.c (partial_map_expand_apply)
5543 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5544 (psym_lookup_global_symbol_language)
5545 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5546 (psym_print_stats, psym_expand_symtabs_for_function)
5547 (psym_map_symbol_filenames, psym_map_matching_symbols)
5548 (psym_expand_symtabs_matching)
5549 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5550 (maintenance_check_psymtabs): Update.
5551 * psympriv.h (struct partial_symtab) <readin_p,
5552 get_compunit_symtab>: Add objfile parameter.
5553 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5554 Likewise.
5555 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5556 get_compunit_symtab>: Likewise.
5557 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5558
5559 2020-05-27 Tom Tromey <tom@tromey.com>
5560
5561 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5562 member.
5563 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5564 (create_cu_from_index_list)
5565 (create_signatured_type_table_from_index)
5566 (create_signatured_type_table_from_debug_names)
5567 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5568 (dwarf2_create_include_psymtab)
5569 (create_debug_type_hash_table, add_type_unit)
5570 (create_type_unit_group, read_comp_units_from_section)
5571 (dwarf2_compute_name, create_cus_hash_table)
5572 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5573 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5574 obstack.
5575 (dw2_get_real_path): Likewise. Change argument to
5576 dwarf2_per_objfile.
5577
5578 2020-05-27 Luis Machado <luis.machado@linaro.org>
5579
5580 PR tdep/26000
5581 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5582 for ldrd (immediate).
5583
5584 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5585
5586 * command.h: Add comment giving the name of class_tui.
5587 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5588 create the fake command for the help for class_tui.
5589
5590 2020-05-26 Tom Tromey <tromey@adacore.com>
5591
5592 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5593 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5594 (val_atr): New function.
5595 (value_val_atr): Use it.
5596 * ada-valprint.c (print_optional_low_bound): Change low bound
5597 handling for enums.
5598 (val_print_packed_array_elements): Don't call discrete_position.
5599 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5600 discrete_position for enum types.
5601 * language.c (default_print_array_index): Change type.
5602 * language.h (struct language_defn) <la_print_array_index>: Add
5603 index_type parameter, change type of index_value.
5604 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5605 (default_print_array_index): Update.
5606 * valprint.c (maybe_print_array_index): Don't call
5607 value_from_longest. Update.
5608 (value_print_array_elements): Don't call discrete_position.
5609
5610 2020-05-26 Tom Tromey <tromey@adacore.com>
5611
5612 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5613 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5614
5615 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5616
5617 PR gdb/13519
5618 * avr-tdep.c (avr_integer_to_address): Return data or code
5619 address accordingly to the second 'type' argument of the
5620 function.
5621
5622 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5623
5624 * infcmd.c, inferior.h: (construct_inferior_arguments):
5625 Moved function from here to gdbsupport/common-inferior.{h,cc}
5626
5627 2020-05-23 Tom Tromey <tom@tromey.com>
5628
5629 Revert commit eca1f90c:
5630 * NEWS: Remove entry for completion styling.
5631 * completer.c (_rl_completion_prefix_display_length): Move
5632 declaration later.
5633 (gdb_fnprint): Revert.
5634 (gdb_display_match_list_1): Likewise.
5635 * cli/cli-style.c (completion_prefix_style)
5636 (completion_difference_style, completion_suffix_style): Remove.
5637 (_initialize_cli_style): Revert.
5638 * cli/cli-style.h (completion_prefix_style)
5639 (completion_difference_style, completion_suffix_style): Don't
5640 declare.
5641
5642 2020-05-24 Pedro Alves <palves@redhat.com>
5643
5644 * symtab.c (completion_list_add_name): Return boolean indication
5645 of whether the symbol matched.
5646 (completion_list_add_symbol): Don't try to remove C++ aliases if
5647 the symbol didn't match in the first place.
5648 * symtab.h (completion_list_add_name): Return bool.
5649
5650 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5651
5652 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5653 type::field.
5654
5655 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5656
5657 GDB 9.2 released.
5658
5659 2020-05-23 Tom Tromey <tom@tromey.com>
5660
5661 * NEWS: Add entry for completion styling.
5662 * completer.c (_rl_completion_prefix_display_length): Move
5663 declaration earlier.
5664 (gdb_fnprint): Use completion_style.
5665 (gdb_display_match_list_1): Likewise.
5666 * cli/cli-style.c (completion_prefix_style)
5667 (completion_difference_style, completion_suffix_style): New
5668 globals.
5669 (_initialize_cli_style): Register new globals.
5670 * cli/cli-style.h (completion_prefix_style)
5671 (completion_difference_style, completion_suffix_style): Declare.
5672
5673 2020-05-23 Pedro Alves <palves@redhat.com>
5674
5675 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5676 (parse_escape): Use ISDIGIT instead of isdigit.
5677 (puts_debug): Use gdb_isprint instead of isprint.
5678 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5679 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5680 ISSPACE instead of isspace.
5681 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5682 instead of isspace.
5683 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5684 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5685 instead of isxdigit and ISDIGIT instead of isdigit.
5686
5687 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * gdbtypes.h (struct type) <field>: New method.
5690 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5691 or type::field.
5692
5693 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5696 (TYPE_FIELDS): Use type::fields. Change all call sites that
5697 modify the propery to use type::set_fields instead.
5698
5699 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5700
5701 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5702 type::num_fields instead.
5703
5704 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5707 methods.
5708 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5709 that modify the number of fields to use type::set_num_fields
5710 instead.
5711
5712 2020-05-22 Tom Tromey <tromey@adacore.com>
5713
5714 * compile/compile-object-load.h (munmap_list_free): Don't
5715 declare.
5716
5717 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5718
5719 * annotate.c (annotate_source_line): Update return type, add call
5720 to update current symtab and line.
5721 * annotate.h (annotate_source_line): Update return type, and
5722 extend header comment.
5723 * source.c (info_line_command): Check annotation_level before
5724 calling annotate_source_line.
5725 * stack.c (print_frame_info): If calling annotate_source_line
5726 returns true, then don't print any other source line information.
5727
5728 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5729
5730 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5731
5732 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * coffread.c (patch_type): Remove NULL check before xfree.
5735 * corefile.c (set_gnutarget): Likewise.
5736 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5737 * exec.c (build_section_table): Likewise.
5738 * remote.c (remote_target::pass_signals): Likewise.
5739 * utils.c (n_spaces): Likewise.
5740 * cli/cli-script.c (document_command): Likewise.
5741 * i386-windows-tdep.c (core_process_module_section): Likewise.
5742 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5743
5744 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5745
5746 * symfile.c (reread_symbols): Clear objfile's section_offsets
5747 vector and section indices, re-compute them by calling
5748 sym_offsets.
5749
5750 2020-05-20 Tom Tromey <tromey@adacore.com>
5751
5752 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5753 (desc_one_bound, desc_index_type): Compute field name.
5754
5755 2020-05-20 Tom de Vries <tdevries@suse.de>
5756
5757 PR symtab/25833
5758 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5759
5760 2020-05-20 Alan Modra <amodra@gmail.com>
5761
5762 PR 25993
5763 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5764 bfd_set_filename.
5765 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5766 passed to bfd_set_filename.
5767 * symfile-mem.c (add_vsyscall_page): Likewise for string
5768 passed to symbol_file_add_from_memory.
5769 (symbol_file_add_from_memory): Make name param a const char* and
5770 don't strdup.
5771
5772 2020-05-20 Alan Modra <amodra@gmail.com>
5773
5774 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5775 rather than accessing bfd->filename directly.
5776 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5777 and use bfd_section_name.
5778 * dwarf2/frame.c (decode_frame_entry): Likewise.
5779 * exec.c (exec_set_section_address): Likewise.
5780 * solib-aix.c (solib_aix_bfd_open): Likewise.
5781 * stap-probe.c (get_stap_base_address): Likewise.
5782 * symfile.c (reread_symbols): Likewise.
5783
5784 2020-05-19 Tom Tromey <tromey@adacore.com>
5785
5786 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5787
5788 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5791
5792 2020-05-19 Pedro Alves <palves@redhat.com>
5793
5794 * NEWS (set exec-file-mismatch): Adjust entry.
5795 * exec.c: Include "build-id.h".
5796 (validate_exec_file): Try to match build IDs instead of filenames.
5797 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5798 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5799 and pass down 'warn_if_slow'.
5800 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5801 gdb_bfd_open_closure to pass it down.
5802 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5803
5804 2020-05-19 Pedro Alves <palves@redhat.com>
5805
5806 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5807 * target.c (target_fileio_open_1): Rename to target_fileio_open
5808 and make extern. Use bool.
5809 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5810 (target_fileio_read_alloc_1): Adjust.
5811 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5812 (target_fileio_open_warn_if_slow): Delete declaration.
5813
5814 2020-05-19 Pedro Alves <palves@redhat.com>
5815
5816 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5817 Adjust all callers.
5818
5819 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5820
5821 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5822 whether disp is negative.
5823
5824 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5825
5826 * symfile.h (struct symfile_segment_data)
5827 <~symfile_segment_data>: Remove.
5828 <segment_info>: Change to std::vector.
5829 * symfile.c (default_symfile_segments): Update.
5830 * elfread.c (elf_symfile_segments): Update.
5831
5832 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5833
5834 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5835 <segments>: New.
5836 <segment_bases, segment_sizes>: Remove.
5837 * symfile.c (default_symfile_segments): Update.
5838 * elfread.c (elf_symfile_segments): Update.
5839 * remote.c (remote_target::get_offsets): Update.
5840 * solib-target.c (solib_target_relocate_section_addresses):
5841 Update.
5842
5843 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * symfile.h (struct symfile_segment_data): Initialize fields.
5846 <~symfile_segment_data>: Add.
5847 (symfile_segment_data_up): New.
5848 (struct sym_fns) <sym_segments>: Return a
5849 symfile_segment_data_up.
5850 (default_symfile_segments): Return a symfile_segment_data_up.
5851 (free_symfile_segment_data): Remove.
5852 (get_symfile_segment_data): Return a symfile_segment_data_up.
5853 * symfile.c (default_symfile_segments): Likewise.
5854 (get_symfile_segment_data): Likewise.
5855 (free_symfile_segment_data): Remove.
5856 (symfile_find_segment_sections): Update.
5857 * elfread.c (elf_symfile_segments): Return a
5858 symfile_segment_data_up.
5859 * remote.c (remote_target::get_offsets): Update.
5860 * solib-target.c (solib_target_relocate_section_addresses):
5861 Update.
5862 * symfile-debug.c (debug_sym_segments): Return a
5863 symfile_segment_data_up.
5864
5865 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5866
5867 PR build/25981
5868 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5869 Hardcode register numbers.
5870
5871 PR build/25981
5872 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5873 procfs_find_LDT_entry): Remove.
5874 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5875 procfs_find_LDT_entry): Remove.
5876 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5877 Remove.
5878
5879 2020-05-17 Pedro Alves <palves@redhat.com>
5880 Andrew Burgess <andrew.burgess@embecosm.com>
5881 Keno Fischer <keno@juliacomputing.com>
5882
5883 PR gdb/25741
5884 * breakpoint.c (build_target_condition_list): Update comments.
5885 (build_target_command_list): Update comments and skip matching
5886 locations.
5887 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5888 a separate function. Simplify "set breakpoint auto-hw off"
5889 handling.
5890 (insert_breakpoints): Update comment.
5891 (tracepoint_locations_match): New parameter. For breakpoints,
5892 compare location types too, if the caller wants to.
5893 (handle_automatic_hardware_breakpoints): New functions.
5894 (bp_location_is_less_than): Also sort by location type and
5895 hardware breakpoint length.
5896 (update_global_location_list): Handle "set breakpoint auto-hw on"
5897 here.
5898 (update_breakpoint_locations): Ask breakpoint_locations_match to
5899 ignore location types.
5900
5901 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5902
5903 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5904 type::name instead.
5905
5906 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5907
5908 * gdbtypes.h (struct type) <name, set_name>: New methods.
5909 (TYPE_CODE): Use type::name. Change all call sites used to set
5910 the name to use type::set_name instead.
5911
5912 2020-05-16 Tom Tromey <tom@tromey.com>
5913
5914 * top.c (quit_force): Update.
5915 * infrun.c (handle_no_resumed): Update.
5916 * top.h (all_uis): New function.
5917 (ALL_UIS): Remove.
5918
5919 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5922
5923 2020-05-16 Pedro Alves <palves@redhat.com>
5924
5925 * ia64-linux-nat.c
5926 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5927 Declare method.
5928 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5929
5930 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5933 (sparc64_adi_info): Likewise.
5934
5935 2020-05-15 Tom Tromey <tom@tromey.com>
5936
5937 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5938 block_objfile.
5939 (lookup_objfile_from_block): Remove.
5940 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5941 (lookup_global_symbol): Use block_objfile.
5942 * symtab.h (lookup_objfile_from_block): Don't declare.
5943 * printcmd.c (clear_dangling_display_expressions): Use
5944 block_objfile.
5945 * parse.c (operator_check_standard): Use block_objfile.
5946
5947 2020-05-15 Tom Tromey <tom@tromey.com>
5948
5949 * language.c (language_alloc_type_symbol): Set
5950 SYMBOL_SECTION.
5951 * symtab.c (initialize_objfile_symbol): Remove.
5952 (allocate_symbol): Remove.
5953 (allocate_template_symbol): Remove.
5954 * dwarf2/read.c (fixup_go_packaging): Use "new".
5955 (new_symbol): Use "new".
5956 (read_variable): Don't call initialize_objfile_symbol. Use
5957 "new".
5958 (read_func_scope): Use "new".
5959 * xcoffread.c (process_xcoff_symbol): Don't call
5960 initialize_objfile_symbol.
5961 (SYMBOL_DUP): Remove.
5962 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5963 "new".
5964 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5965 (allocate_template_symbol): Don't declare.
5966 (struct symbol): Add copy constructor. Change defaults.
5967 * jit.c (finalize_symtab): Use "new".
5968 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5969 Use "new".
5970 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5971 (common_block_end): Use "new".
5972 * mdebugread.c (parse_symbol): Use "new".
5973 (new_symbol): Likewise.
5974
5975 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5976
5977 * NEWS: Mention changes to help and apropos.
5978
5979 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5980
5981 * command.h (enum command_class): Improve comments, document
5982 that class_alias is for user-defined aliases, give the class
5983 name for each class, remove unused class_xdb.
5984 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5985 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5986 by a precise class.
5987 * infcmd.c (_initialize_infcmd): Likewise.
5988 * reverse.c (_initialize_reverse): Likewise.
5989 * stack.c (_initialize_stack): Likewise.
5990 * symfile.c (_initialize_symfile): Likewise.
5991 * tracepoint.c (_initialize_tracepoint): Likewise.
5992
5993 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5994
5995 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5996 when their aliased command is traversed.
5997 (help_cmd): Add fput_command_names_styled call to
5998 output command name and aliases when command has an alias.
5999
6000 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6001
6002 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6003 * cli/cli-decode.c (help_cmd_list): Declare as static,
6004 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6005 a command together with the command.
6006 (fput_command_name_styled, fput_command_names_styled): New functions.
6007 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6008 fput_command_name_styled.
6009 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6010 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6011
6012 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6013
6014 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6015 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6016 * command.h (cmd_show_list): Likewise.
6017 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6018 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6019
6020 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6021
6022 * unittests/command-def-selftests.c (traverse_command_structure):
6023 Verify all commands of a list have the same prefix command and
6024 that only the top cmdlist commands have a null prefix.
6025
6026 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6027
6028 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6029 as prefix, not one of its aliases.
6030 (set_cmd_prefix): Remove.
6031 (do_add_cmd): Centralize the setting of the prefix of a command, when
6032 command is defined after its full chain of prefix commands.
6033 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6034 (add_setshow_cmd_full): Likewise.
6035 (update_prefix_field_of_prefixed_commands): New function.
6036 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6037 update_prefix_field_of_prefixed_commands.
6038 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6039 addresses of remote_set_cmdlist and remote_show_cmdlist given
6040 as argument, not the address of an argument.
6041 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6042 * gdb/remote.c (_initialize_remote): Likewise.
6043
6044 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6045
6046 * cli/cli-cmds.c (alias_command): Check for an existing alias
6047 using lookup_cmd_composition, as valid_command_p is too strict
6048 and forbids aliases that are the prefix of an existing alias
6049 or command.
6050 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6051 command is properly recognised as a valid command.
6052
6053 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6054
6055 * unittests/help-doc-selftests.c: Rename to
6056 unittests/command-def-selftests.c
6057 * unittests/command-def-selftests.c (help_doc_tests): Update some
6058 comments.
6059 (command_structure_tests, traverse_command_structure): New namespace
6060 and function.
6061 (command_structure_invariants_tests): New function.
6062 (_initialize_command_def_selftests) Renamed from
6063 _initialize_help_doc_selftests, register command_structure_invariants
6064 selftest.
6065
6066 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6067
6068 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6069 an alias of 'show'.
6070
6071 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6072
6073 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6074 ada_is_fixed_point_type. Update all callers.
6075 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6076 all callers.
6077 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6078 Update all callers.
6079 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6080 print_fixed_point_type. Update all callers.
6081 * ada-valprint.c (ada_value_print_num): Replace call to
6082 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6083
6084 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6085
6086 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6087 processors.
6088 (cpu_supports_bts): Add CV_AMD case.
6089
6090 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6091 Simon Marchi <simon.marchi@efficios.com>
6092
6093 * infrun.c (stop_all_threads): Collect multiple wait events at
6094 each pass.
6095
6096 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6099 type::code instead.
6100
6101 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * gdbtypes.h (struct type) <code, set_code>: New methods.
6104 (TYPE_CODE): Use type::code. Change all call sites used to set
6105 the code to use type::set_code instead.
6106
6107 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6108 Tom de Vries <tdevries@suse.de>
6109 Pedro Alves <palves@redhat.com>
6110
6111 PR threads/25478
6112 * infrun.c (stop_all_threads): Do NOT ignore
6113 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6114 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6115 received.
6116 (handle_no_resumed): Remove code handling a live inferior with no
6117 threads.
6118 * remote.c (has_single_non_exited_thread): New.
6119 (remote_target::update_thread_list): Do not delete a thread if is
6120 the last thread of the process.
6121 * thread.c (thread_select): Call delete_exited_threads instead of
6122 prune_threads.
6123
6124 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6125
6126 * infrun.c (stop_all_threads): Enable/disable thread events of all
6127 targets. Move a debug message denoting the end of the function
6128 into the SCOPED_EXIT block.
6129
6130 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6131
6132 * process-stratum-target.h: Include <set>.
6133 (all_non_exited_process_targets, switch_to_target_no_thread): New
6134 function declarations.
6135 * process-stratum-target.c (all_non_exited_process_targets)
6136 (switch_to_target_no_thread): New function implementations.
6137
6138 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6139
6140 * infrun.c (handle_inferior_event): Extract out a piece of code
6141 into...
6142 (mark_non_executing_threads): ...this new function.
6143
6144 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6145
6146 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6147 use.
6148
6149 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6150
6151 * regcache.c (regcache_read_pc_protected): New function
6152 implementation that returns 0 if the PC cannot read via
6153 'regcache_read_pc'.
6154 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6155 instead of 'regcache_read_pc'.
6156 (keep_going_pass_signal): Ditto.
6157
6158 2020-05-13 Tom Tromey <tromey@adacore.com>
6159
6160 * ada-lang.c (align_value): Remove.
6161 (ada_template_to_fixed_record_type_1): Use align_up.
6162
6163 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6164
6165 * async-event.c: Update the copyright year.
6166 * async-event.h: Update the copyright year.
6167
6168 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6169
6170 * objfiles.h (is_addr_in_objfile,
6171 shared_objfile_contains_address_p): Return bool.
6172 * objfile.c (is_addr_in_objfile,
6173 shared_objfile_contains_address_p): Return bool.
6174
6175 2020-05-11 Tom Tromey <tromey@adacore.com>
6176
6177 * cli/cli-cmds.c (info_command): Restore.
6178 (_initialize_cli_cmds): Use add_prefix_command for "info".
6179 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6180
6181 2020-05-11 Tom Tromey <tromey@adacore.com>
6182
6183 * ada-lang.c (ada_value_primitive_field): Now public.
6184 * ada-lang.h (ada_value_primitive_field): Declare.
6185 * ada-valprint.c (print_field_values): Use
6186 ada_value_primitive_field for wrapper fields.
6187
6188 2020-05-11 Tom de Vries <tdevries@suse.de>
6189
6190 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6191 MODULE_DOMAIN.
6192
6193 2020-05-11 Tom de Vries <tdevries@suse.de>
6194
6195 PR symtab/25941
6196 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6197 with length 0, if not gdb-produced.
6198 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6199
6200 2020-05-09 Tom de Vries <tdevries@suse.de>
6201
6202 PR gdb/25955
6203 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6204 calculation.
6205
6206 2020-05-09 Tom Tromey <tom@tromey.com>
6207
6208 * top.c (server_command): Now bool.
6209 * top.h (server_command): Now bool.
6210
6211 2020-05-08 Tom Tromey <tromey@adacore.com>
6212
6213 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6214 already being processed.
6215
6216 2020-05-08 Tom Tromey <tom@tromey.com>
6217
6218 * printcmd.c (struct display) <next>: Remove.
6219 <display>: New constructor.
6220 <exp_string>: Now a std::string.
6221 <enabled_p>: Now a bool.
6222 (display_number): Move definition earlier.
6223 (displays): Rename from display_chain. Now a std::vector.
6224 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6225 (display_command): Update.
6226 (do_one_display, disable_display)
6227 (enable_disable_display_command, do_enable_disable_display):
6228 Update.
6229 (free_display): Remove.
6230 (clear_displays): Rewrite.
6231 (delete_display): Update.
6232 (map_display_numbers): Use function_view. Remove "data"
6233 parameter. Update.
6234 (do_delete_display): Remove.
6235 (undisplay_command): Update.
6236 (do_one_display, do_displays, disable_display)
6237 (info_display_command): Update.
6238 (do_enable_disable_display): Remove.
6239 (enable_disable_display_command)
6240 (clear_dangling_display_expressions): Update.
6241
6242 2020-05-08 Tom Tromey <tom@tromey.com>
6243
6244 * symtab.c (set_symbol_cache_size)
6245 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6246 (maintenance_print_symbol_cache_statistics): Update.
6247 * symmisc.c (print_symbol_bcache_statistics)
6248 (print_objfile_statistics, maintenance_print_objfiles)
6249 (maintenance_info_symtabs, maintenance_check_symtabs)
6250 (maintenance_expand_symtabs, maintenance_info_line_tables):
6251 Update.
6252 * symfile-debug.c (set_debug_symfile): Update.
6253 * source.c (forget_cached_source_info): Update.
6254 * python/python.c (gdbpy_progspaces): Update.
6255 * psymtab.c (maintenance_info_psymtabs): Update.
6256 * probe.c (parse_probes): Update.
6257 * linespec.c (iterate_over_all_matching_symtabs)
6258 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6259 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6260 * exec.c (exec_target::close): Update.
6261 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6262 * breakpoint.c (print_one_breakpoint_location)
6263 (create_longjmp_master_breakpoint)
6264 (create_std_terminate_master_breakpoint): Update.
6265 * progspace.c (program_spaces): Now a std::vector.
6266 (maybe_new_address_space): Update.
6267 (add_program_space): Remove.
6268 (program_space::program_space): Update.
6269 (remove_program_space): Update.
6270 (number_of_program_spaces): Remove.
6271 (print_program_space, update_address_spaces): Update.
6272 * progspace.h (program_spaces): Change type.
6273 (ALL_PSPACES): Remove.
6274 (number_of_program_spaces): Don't declare.
6275 (struct program_space) <next>: Remove.
6276
6277 2020-05-08 Tom Tromey <tom@tromey.com>
6278
6279 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6280 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6281 (enable_break): Update.
6282 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6283 (frv_fdpic_find_canonical_descriptor): Update.
6284 (frv_fetch_objfile_link_map): Update.
6285 * progspace.c (program_space::free_all_objfiles): Update.
6286 (program_space::solibs): New method.
6287 * progspace.h (struct program_space) <solibs>: New method.
6288 * solist.h (master_so_list): Don't declare.
6289 (ALL_SO_LIBS): Remove.
6290 * solib.h (so_list_head): Remove.
6291 (update_solib_list): Update comment.
6292 * solib.c (master_so_list): Remove.
6293 (solib_used, update_solib_list, solib_add)
6294 (info_sharedlibrary_command, clear_solib)
6295 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6296
6297 2020-05-08 Tom Tromey <tom@tromey.com>
6298
6299 * extension.c (extension_languages): Now a std::array.
6300 (ALL_EXTENSION_LANGUAGES): Remove.
6301 (get_ext_lang_defn, get_ext_lang_of_file)
6302 (eval_ext_lang_from_control_command): Update.
6303 (finish_ext_lang_initialization)
6304 (auto_load_ext_lang_scripts_for_objfile)
6305 (ext_lang_type_printers::ext_lang_type_printers)
6306 (apply_ext_lang_type_printers)
6307 (ext_lang_type_printers::~ext_lang_type_printers)
6308 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6309 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6310 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6311 (get_matching_xmethod_workers, ext_lang_colorize)
6312 (ext_lang_before_prompt): Update.
6313 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6314
6315 2020-05-08 Tom Tromey <tom@tromey.com>
6316
6317 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6318 overload.
6319 <swap_string, m_string>: Remove.
6320 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6321 Update.
6322 * stabsread.c (define_symbol, read_type): Update.
6323 * linespec.c (find_linespec_symbols): Update.
6324 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6325 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6326 * dbxread.c (read_dbx_symtab): Update.
6327 * cp-support.h (cp_canonicalize_string_full)
6328 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6329 Return unique_xmalloc_ptr.
6330 * cp-support.c (inspect_type): Update.
6331 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6332 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6333 Likewise.
6334 * c-typeprint.c (print_name_maybe_canonical): Update.
6335 * break-catch-throw.c (check_status_exception_catchpoint):
6336 Update.
6337
6338 2020-05-08 Tom de Vries <tdevries@suse.de>
6339
6340 * infrun.c (follow_fork): Copy current_line and current_symtab to
6341 child thread.
6342
6343 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6344
6345 * async-event.c (struct async_signal_handler, struct
6346 async_event_handler): Reformat, remove typedef.
6347
6348 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6349
6350 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6351 access thistype->main_type->dyn_prop_list directly.
6352
6353 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6354
6355 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6356 (remove_dyn_prop): Remove. Update all users to use
6357 type::remove_dyn_prop.
6358 * gdbtypes.c (remove_dyn_prop): Rename to...
6359 (type::remove_dyn_prop): ... this.
6360
6361 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6362
6363 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6364 (add_dyn_prop): Remove. Update all users to use
6365 type::add_dyn_prop.
6366 * gdbtypes.c (add_dyn_prop): Rename to...
6367 (type::add_dyn_prop): ... this.
6368
6369 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6370
6371 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6372 (get_dyn_prop): Remove. Update all users to use
6373 type::dyn_prop.
6374 * gdbtypes.c (get_dyn_prop): Rename to...
6375 (type::dyn_prop): ... this.
6376
6377 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6378
6379 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6380
6381 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6384 instruction, skip it if it's there.
6385
6386 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6389
6390 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6391
6392 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6393 * gdbtypes.c (recursive_dump_type): Remove use of
6394 TYPE_INCOMPLETE.
6395
6396 2020-05-03 Tom Tromey <tom@tromey.com>
6397
6398 * breakpoint.c (catch_command, tcatch_command): Remove.
6399 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6400 add_show_prefix_cmd.
6401 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6402 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6403 Remove.
6404 (add_internal_problem_command): Use add_basic_prefix_cmd,
6405 add_show_prefix_cmd.
6406 * mips-tdep.c (set_mipsfpu_command): Remove.
6407 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6408 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6409 (_initialize_index_cache): Use add_basic_prefix_cmd.
6410 * memattr.c (dummy_cmd): Remove.
6411 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6412 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6413 (_initialize_tui_win): Use add_basic_prefix_cmd,
6414 add_show_prefix_cmd.
6415 * cli/cli-logging.c (set_logging_command): Remove.
6416 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6417 add_show_prefix_cmd.
6418 (show_logging_command): Remove.
6419 * target.c (target_command): Remove.
6420 (add_target): Use add_basic_prefix_cmd.
6421
6422 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6423
6424 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6425
6426 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6427
6428 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6429 info_command.
6430
6431 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6432
6433 * nbsd-nat.c (nbsd_enable_proc_events)
6434 (nbsd_nat_target::post_startup_inferior): Add.
6435 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6436 (nbsd_nat_target::update_thread_list): Rewrite.
6437 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6438 "PTRACE_LWP_CREATE".
6439 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6440
6441 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6442
6443 * stack.c (_initialize_stack): Remove duplicated creation
6444 of "frame" command and "f" alias.
6445
6446 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6447
6448 PR gdb/18706
6449 * gdbtypes.c (check_typedef): Calculate size of array of
6450 stubbed type.
6451
6452 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6453
6454 PR gdb/15559
6455 * i386-tdep.c (i386_push_dummy_call): Call
6456 i386_thiscall_push_dummy_call.
6457 (i386_thiscall_push_dummy_call): New function.
6458 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6459 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6460 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6461
6462 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6463
6464 * gdbarch.sh (do_read): Add shellcheck disable directive for
6465 warning SC2162.
6466
6467 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6468
6469 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6470 "referenced but not assigned" warning.
6471
6472 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6473
6474 * gdbarch.sh: Remove code that sets fallbackdefault.
6475
6476 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6477
6478 * gdbarch.sh: Use shell operators && and || instead of
6479 -a and -o.
6480
6481 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6482
6483 * gdbarch.sh: Use $(...) instead of `...`.
6484
6485 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6486
6487 * gdbarch.sh: Use double quotes around variables.
6488
6489 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6490
6491 * gdbarch.sh: Use %s with printf, instead of variables in the
6492 format string.
6493
6494 2020-04-29 Tom Tromey <tromey@adacore.com>
6495
6496 PR ada/25875:
6497 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6498 type fields here.
6499 (read_enumeration_type): Call
6500 update_enumeration_type_from_children later. Update comments.
6501 (process_enumeration_scope): Don't create type fields.
6502
6503 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6504
6505 * nbsd-tdep.c: Include "xml-syscall.h".
6506 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6507
6508 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6509
6510 * nbsd-nat.c: Include "sys/wait.h".
6511 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6512 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6513 (nbsd_nat_target::remove_exec_catchpoint)
6514 (nbsd_nat_target::set_syscall_catchpoint): Add.
6515 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6516 (nbsd_nat_target::insert_exec_catchpoint)
6517 (nbsd_nat_target::remove_exec_catchpoint)
6518 (nbsd_nat_target::set_syscall_catchpoint): Add.
6519 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6520 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6521 `nbsd_get_syscall_number'.
6522
6523 2020-04-29 Tom Tromey <tom@tromey.com>
6524
6525 * stack.c (print_block_frame_labels): Remove.
6526
6527 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6528
6529 PR gdb/17320
6530 * ada-valprint.c (val_print_packed_array_elements): Move array
6531 end bracket to new line.
6532 (ada_val_print_string): Remove extra spaces before first array
6533 element.
6534 * c-valprint.c (c_value_print_array): Likewise.
6535 * m2-valprint.c (m2_print_array_contents): Likewise.
6536 (m2_value_print_inner): Likewise.
6537 * p-valprint.c (pascal_value_print_inner): Likewise.
6538 * valprint.c (generic_val_print_array): Likewise.
6539 (value_print_array_elements): Move first array element and array
6540 end bracket to new line.
6541
6542 2020-04-29 Tom de Vries <tdevries@suse.de>
6543
6544 PR symtab/25889
6545 * linespec.c (find_method): Fix ix calculation.
6546
6547 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6548
6549 * syscalls/update-netbsd.sh: New file.
6550 * syscalls/netbsd.xml: Regenerate.
6551 * data-directory/Makefile.in: Register `netbsd.xml' in
6552 `SYSCALLS_FILES'.
6553
6554 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6555
6556 * syscalls/update-freebsd.sh: Add double quotes.
6557
6558 2020-04-28 Tom Tromey <tom@tromey.com>
6559
6560 * NEWS: Update.
6561 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6562 (cmdpy_init): Allow class_tui.
6563
6564 2020-04-28 Mark Williams <mark@myosotissp.com>
6565
6566 PR gdb/24480
6567 * dwarf2read.c: Add missing assingments to list_in_scope when
6568 start_symtab was already called.
6569
6570 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6571
6572 PR gdb/25881
6573 * dwarf2/read.c (offset_map_type): Use
6574 gdb:hash_enum<sect_offset> as hash function.
6575
6576 2020-04-28 Tom de Vries <tdevries@suse.de>
6577
6578 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6579 with DW_AT_signature.
6580
6581 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6582
6583 * configure.ac: Remove check for fs_base/gs_base in
6584 user_regs_struct.
6585 * configure: Re-generate.
6586 * config.in: Re-generate.
6587 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6588 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6589 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6590
6591 2020-04-27 Luis Machado <luis.machado@linaro.org>
6592
6593 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6594 problematic inline frame unwinding situation.
6595 * frame.c (frame_id_computed_p): New function.
6596 * frame.h (frame_id_computed_p): New prototype.
6597
6598 2020-04-26 Tom Tromey <tom@tromey.com>
6599
6600 * command.h (enum command_class) <class_pseudo>: Remove.
6601
6602 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6603
6604 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6605 and whitespace.
6606
6607 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6608
6609 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6610 `PT_GET_PROCESS_STATE' block.
6611
6612 2020-04-24 Tom Tromey <tom@tromey.com>
6613
6614 * symtab.h (symbol_get_demangled_name): Don't declare.
6615 * symtab.c (symbol_get_demangled_name): Remove.
6616 (general_symbol_info::natural_name)
6617 (general_symbol_info::demangled_name): Update.
6618
6619 2020-04-24 Tom Tromey <tom@tromey.com>
6620
6621 PR rust/25025:
6622 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6623
6624 2020-04-24 Tom Tromey <tom@tromey.com>
6625
6626 PR symtab/12707:
6627 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6628 exists.
6629 (new_symbol): Likewise.
6630 * compile/compile-object-load.c (get_out_value_type): Use
6631 symbol_matches_search_name.
6632
6633 2020-04-24 Tom Tromey <tom@tromey.com>
6634
6635 * dwarf2/read.c (add_partial_symbol): Do not call
6636 compute_and_set_names.
6637
6638 2020-04-24 Tom Tromey <tom@tromey.com>
6639
6640 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6641 overload.
6642
6643 2020-04-24 Tom Tromey <tom@tromey.com>
6644
6645 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6646 (add_psymbol_to_list): New overload. Make old overload call new
6647 one.
6648 * psympriv.h (add_psymbol_to_list): New overload.
6649
6650 2020-04-24 Tom Tromey <tom@tromey.com>
6651
6652 * dwarf2/read.c (partial_die_info::read) <case
6653 DW_AT_linkage_name>: Use value_as_string.
6654 (dwarf2_string_attr): Use value_as_string.
6655 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6656 method.
6657 * dwarf2/attribute.c (attribute::value_as_string): New method.
6658
6659 2020-04-24 Tom Tromey <tom@tromey.com>
6660
6661 * symtab.c (general_symbol_info::natural_name)
6662 (general_symbol_info::demangled_name): Check for language_rust.
6663
6664 2020-04-24 Tom Tromey <tom@tromey.com>
6665
6666 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6667 (dwarf2_physname): ... from here.
6668 (partial_die_info::read): Add Rust "{" hack.
6669
6670 2020-04-24 Tom Tromey <tom@tromey.com>
6671
6672 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6673 method.
6674 (symbol_set_demangled_name): Don't declare.
6675 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6676 symbol_set_demangled_name.
6677 (general_symbol_info::set_language)
6678 (general_symbol_info::compute_and_set_names): Update.
6679 * minsyms.c (minimal_symbol_reader::install): Update.
6680 * dwarf2/read.c (new_symbol): Update.
6681
6682 2020-04-24 Tom Tromey <tromey@adacore.com>
6683
6684 PR python/23662:
6685 * python/py-type.c (convert_field): Handle
6686 FIELD_LOC_KIND_DWARF_BLOCK.
6687 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6688 (typy_get_dynamic): Nw function.
6689 (type_object_getset): Add "dynamic".
6690 * NEWS: Add entry.
6691
6692 2020-04-24 Tom Tromey <tromey@adacore.com>
6693
6694 * ada-typeprint.c (print_choices, print_variant_part)
6695 (print_record_field_types_dynamic): New functions.
6696 (print_record_field_types): Use print_record_field_types_dynamic.
6697
6698 2020-04-24 Tom Tromey <tromey@adacore.com>
6699
6700 * dwarf2/read.c (handle_data_member_location): New overload.
6701 (dwarf2_add_field): Use it.
6702 (decode_locdesc): Add "computed" parameter. Update comment.
6703 * gdbtypes.c (is_dynamic_type_internal): Also look for
6704 FIELD_LOC_KIND_DWARF_BLOCK.
6705 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6706 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6707 virtual base classes.
6708 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6709 FIELD_LOC_KIND_DWARF_BLOCK.
6710
6711 2020-04-24 Tom Tromey <tromey@adacore.com>
6712
6713 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6714 * gdbtypes.c (is_dynamic_type_internal): Check
6715 TYPE_HAS_DYNAMIC_LENGTH.
6716 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6717 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6718 New macros.
6719 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6720 constant.
6721
6722 2020-04-24 Tom Tromey <tromey@adacore.com>
6723
6724 * dwarf2/read.c (struct variant_field): Rewrite.
6725 (struct variant_part_builder): New.
6726 (struct nextfield): Remove "variant" field. Add "offset".
6727 (struct field_info): Add "current_variant_part" and
6728 "variant_parts".
6729 (alloc_discriminant_info): Remove.
6730 (alloc_rust_variant): New function.
6731 (quirk_rust_enum): Update.
6732 (dwarf2_add_field): Set "offset" member. Don't handle
6733 DW_TAG_variant_part.
6734 (offset_map_type): New typedef.
6735 (convert_variant_range, create_one_variant)
6736 (create_one_variant_part, create_variant_parts)
6737 (add_variant_property): New functions.
6738 (dwarf2_attach_fields_to_type): Call add_variant_property.
6739 (read_structure_type): Don't handle DW_TAG_variant_part.
6740 (handle_variant_part, handle_variant): New functions.
6741 (handle_struct_member_die): Use them.
6742 (process_structure_scope): Don't handle variant parts.
6743 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6744 (struct discriminant_info): Remove.
6745 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6746 (struct main_type) <flag_discriminated_union>: Remove.
6747 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6748 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6749 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6750 Update.
6751 * valops.c (value_union_variant): Remove.
6752 * value.h (value_union_variant): Don't declare.
6753
6754 2020-04-24 Tom Tromey <tromey@adacore.com>
6755
6756 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6757 (ada_value_primitive_packed_val): Update.
6758 * ada-valprint.c (ada_value_print_1): Update.
6759 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6760 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6761 just an address. Use evaluate_for_locexpr_baton.
6762 (dwarf2_evaluate_property): Update.
6763 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6764 array_view.
6765 * findvar.c (default_read_var_value): Update.
6766 * gdbtypes.c (compute_variant_fields_inner)
6767 (resolve_dynamic_type_internal): Update.
6768 (resolve_dynamic_type): Change type of valaddr parameter.
6769 * gdbtypes.h (resolve_dynamic_type): Update.
6770 * valarith.c (value_subscripted_rvalue): Update.
6771 * value.c (value_from_contents_and_address): Update.
6772
6773 2020-04-24 Tom Tromey <tromey@adacore.com>
6774
6775 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6776 "push_initial_value" parameter.
6777 (dwarf2_evaluate_property): Likewise.
6778 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6779
6780 2020-04-24 Tom Tromey <tromey@adacore.com>
6781
6782 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6783 (variant::matches, compute_variant_fields_recurse)
6784 (compute_variant_fields_inner, compute_variant_fields): New
6785 functions.
6786 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6787 Use resolved_type after type is made.
6788 (operator==): Add new cases.
6789 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6790 (struct discriminant_range, struct variant, struct variant_part):
6791 New.
6792 (union dynamic_prop_data) <variant_parts, original_type>: New
6793 members.
6794 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6795 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6796 constants.
6797 * value.c (unpack_bits_as_long): Now public.
6798 * value.h (unpack_bits_as_long): Declare.
6799
6800 2020-04-24 Tom Tromey <tromey@adacore.com>
6801
6802 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6803 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6804
6805 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6806
6807 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6808
6809 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6810
6811 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6812 (remove_fork_catchpoint, post_startup_inferior)
6813 (post_attach): Move...
6814 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6815 (remove_fork_catchpoint, post_startup_inferior)
6816 (post_attach): ...here.
6817 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6818 (remove_fork_catchpoint, post_startup_inferior)
6819 (post_attach): Move...
6820 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6821 (remove_fork_catchpoint, post_startup_inferior)
6822 (post_attach): ...here.
6823
6824 2020-04-24 Tom Tromey <tromey@adacore.com>
6825
6826 * nat/windows-nat.h (struct windows_thread_info)
6827 <pc_adjusted>: New member.
6828 * windows-nat.c (windows_fetch_one_register): Check
6829 pc_adjusted.
6830 (windows_nat_target::get_windows_debug_event)
6831 (windows_nat_target::wait): Set pc_adjusted.
6832
6833 2020-04-24 Tom de Vries <tdevries@suse.de>
6834
6835 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6836 Run gdb-add-index inside temp dir.
6837
6838 2020-04-23 Tom Tromey <tromey@adacore.com>
6839
6840 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6841 in loop.
6842
6843 2020-04-23 Luis Machado <luis.machado@linaro.org>
6844
6845 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6846 get_frame_register instead of gdbarch_unwind_pc.
6847
6848 2020-04-23 Tom de Vries <tdevries@suse.de>
6849
6850 * symtab.c (lookup_global_symbol): Prefer def over decl.
6851
6852 2020-04-23 Tom de Vries <tdevries@suse.de>
6853
6854 PR symtab/25807
6855 * block.c (best_symbol, better_symbol): Promote to external.
6856 * block.h (best_symbol, better_symbol): Declare.
6857 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6858 decl.
6859
6860 2020-04-23 Tom Tromey <tromey@adacore.com>
6861
6862 PR ada/25837:
6863 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6864 "const char *", not a "const std::string &".
6865 <name_and_matcher::operator==>: Update.
6866 * unittests/lookup_name_info-selftests.c: Change type of
6867 "result".
6868
6869 2020-04-23 Tom Tromey <tom@tromey.com>
6870
6871 * inferior.h (iterate_over_inferiors): Don't declare.
6872 * inferior.c (iterate_over_inferiors): Remove.
6873 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6874 Remove.
6875 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6876 use iterate_over_inferiors.
6877 (darwin_resume_inferior_it)
6878 (struct resume_inferior_threads_param)
6879 (darwin_resume_inferior_threads_it): Remove.
6880 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6881
6882 2020-04-23 Tom de Vries <tdevries@suse.de>
6883
6884 * blockframe.c (find_pc_partial_function): Use
6885 find_pc_sect_compunit_symtab rather than
6886 objfile->sf->qf->find_pc_sect_compunit_symtab.
6887
6888 2020-04-22 Tom de Vries <tdevries@suse.de>
6889
6890 PR symtab/25764
6891 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6892 in psymtabs.
6893
6894 2020-04-22 Tom de Vries <tdevries@suse.de>
6895
6896 PR symtab/25801
6897 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6898 symtabs.
6899
6900 2020-04-22 Tom de Vries <tdevries@suse.de>
6901
6902 PR symtab/25700
6903 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6904 CU if already created.
6905
6906 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6907
6908 * infrun.c (displaced_step_fixup): Switch to the event_thread
6909 before calling displaced_step_restore, not after.
6910
6911 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6912
6913 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6914 its inferior is not recorded by us.
6915 (record_btrace_target_open): Replace call to
6916 all_non_exited_threads () with call to current_inferior
6917 ()->non_exited_threads ().
6918 (record_btrace_target::stop_recording): Likewise.
6919 (record_btrace_target::close): Likewise.
6920 (record_btrace_target::wait): Likewise.
6921 (record_btrace_target::record_stop_replaying): Likewise.
6922
6923 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6924
6925 * btrace.c (btrace_enable): Throw an error on double enables and
6926 when enabling recording fails.
6927 (btrace_disable): Throw an error if the thread is not recorded.
6928
6929 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6930
6931 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6932 request if we do not have a thread_info.
6933
6934 2020-04-21 Tom de Vries <tdevries@suse.de>
6935
6936 PR gdb/25471
6937 * thread.c
6938 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6939 exception in get_frame_id.
6940
6941 2020-04-20 Tom Tromey <tromey@adacore.com>
6942
6943 * python/python.c (struct gdbpy_event): Mark move constructor as
6944 noexcept.
6945 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6946 constructor as noexcept.
6947 * completer.h (struct completion_result): Mark move constructor as
6948 noexcept.
6949 * completer.c (completion_result::completion_result): Use
6950 initialization style. Don't call reset_match_list.
6951
6952 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6953
6954 * MAINTAINERS (Write After Approval): Add myself.
6955
6956 2020-04-18 Tom Tromey <tom@tromey.com>
6957
6958 * windows-tdep.c (init_w32_command_list)
6959 (w32_prefix_command_valid): Restore.
6960 (_initialize_windows_tdep): Call init_w32_command_list.
6961
6962 2020-04-18 Tom Tromey <tom@tromey.com>
6963
6964 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6965 * value.c (value_fn_field): Update.
6966 * valops.c (find_function_in_inferior)
6967 (value_allocate_space_in_inferior): Update.
6968 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6969 Update.
6970 * tui/tui-source.c (tui_source_window::set_contents): Update.
6971 * symtab.c (lookup_global_or_static_symbol)
6972 (find_function_start_sal_1, skip_prologue_sal)
6973 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6974 * symmisc.c (dump_msymbols, dump_symtab_1)
6975 (maintenance_print_one_line_table): Update.
6976 * symfile.c (init_entry_point_info, section_is_mapped)
6977 (list_overlays_command, simple_read_overlay_table)
6978 (simple_overlay_update_1): Update.
6979 * stap-probe.c (handle_stap_probe): Update.
6980 * stabsread.c (dbx_init_float_type, define_symbol)
6981 (read_one_struct_field, read_enum_type, read_range_type): Update.
6982 * source.c (info_line_command): Update.
6983 * python/python.c (gdbpy_source_objfile_script)
6984 (gdbpy_execute_objfile_script): Update.
6985 * python/py-type.c (save_objfile_types): Update.
6986 * python/py-objfile.c (py_free_objfile): Update.
6987 * python/py-inferior.c (python_new_objfile): Update.
6988 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6989 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6990 (maintenance_check_psymtabs): Update.
6991 * printcmd.c (info_address_command): Update.
6992 * objfiles.h (struct objfile) <arch>: New method, from
6993 get_objfile_arch.
6994 (get_objfile_arch): Don't declare.
6995 * objfiles.c (get_objfile_arch): Remove.
6996 (filter_overlapping_sections): Update.
6997 * minsyms.c (msymbol_is_function): Update.
6998 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6999 (output_nondebug_symbol): Update.
7000 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7001 (mdebug_expand_psymtab): Update.
7002 * machoread.c (macho_add_oso_symfile): Update.
7003 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7004 Update.
7005 * linux-fork.c (checkpoint_command): Update.
7006 * linespec.c (convert_linespec_to_sals): Update.
7007 * jit.c (finalize_symtab): Update.
7008 * infrun.c (insert_exception_resume_from_probe): Update.
7009 * ia64-tdep.c (ia64_find_unwind_table): Update.
7010 * hppa-tdep.c (internalize_unwinds): Update.
7011 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7012 Update.
7013 * gcore.c (call_target_sbrk): Update.
7014 * elfread.c (record_minimal_symbol, elf_symtab_read)
7015 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7016 (elf_gnu_ifunc_resolve_by_got): Update.
7017 * dwarf2/read.c (create_addrmap_from_index)
7018 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7019 (read_debug_names_from_section)
7020 (process_psymtab_comp_unit_reader, add_partial_symbol)
7021 (add_partial_subprogram, process_full_comp_unit)
7022 (read_file_scope, read_func_scope, read_lexical_block_scope)
7023 (read_call_site_scope, dwarf2_ranges_read)
7024 (dwarf2_record_block_ranges, dwarf2_add_field)
7025 (mark_common_block_symbol_computed, read_tag_pointer_type)
7026 (read_tag_string_type, dwarf2_init_float_type)
7027 (dwarf2_init_complex_target_type, read_base_type)
7028 (partial_die_info::read, partial_die_info::read)
7029 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7030 (dwarf2_fetch_die_loc_sect_off): Update.
7031 * dwarf2/loc.c (dwarf2_find_location_expression)
7032 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7033 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7034 (dwarf2_loc_desc_get_symbol_read_needs)
7035 (locexpr_describe_location_piece, locexpr_describe_location_1)
7036 (loclist_describe_location): Update.
7037 * dwarf2/index-write.c (write_debug_names): Update.
7038 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7039 * dtrace-probe.c (dtrace_process_dof): Update.
7040 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7041 (process_one_symbol): Update.
7042 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7043 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7044 (coff_read_enum_type): Update.
7045 * cli/cli-cmds.c (edit_command, list_command): Update.
7046 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7047 * breakpoint.c (create_overlay_event_breakpoint)
7048 (create_longjmp_master_breakpoint)
7049 (create_std_terminate_master_breakpoint)
7050 (create_exception_master_breakpoint, get_sal_arch): Update.
7051 * block.c (block_gdbarch): Update.
7052 * annotate.c (annotate_source_line): Update.
7053
7054 2020-04-17 Tom Tromey <tromey@adacore.com>
7055
7056 * auto-load.c (show_auto_load_cmd): Remove.
7057 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7058 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7059 (maintenance_print_arc_command): Remove.
7060 * tui/tui-win.c (tui_command): Remove.
7061 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7062 * tui/tui-layout.c (tui_layout_command): Remove.
7063 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7064 * python/python.c (user_set_python, user_show_python): Remove.
7065 (_initialize_python): Use add_basic_prefix_cmd,
7066 add_show_prefix_cmd.
7067 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7068 (install_gdb_commands): Use add_basic_prefix_cmd,
7069 add_show_prefix_cmd.
7070 (info_guile_command): Remove.
7071 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7072 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7073 add_show_prefix_cmd.
7074 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7075 Remove do_set and do_show parameters.
7076 * cli/cli-style.c (set_style, show_style): Remove.
7077 (_initialize_cli_style): Use add_basic_prefix_cmd,
7078 add_show_prefix_cmd.
7079 (cli_style_option::add_setshow_commands): Remove do_set and
7080 do_show parameters.
7081 (cli_style_option::add_setshow_commands): Use
7082 add_basic_prefix_cmd, add_show_prefix_cmd.
7083 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7084 (set_style_name): Remove.
7085 * cli/cli-dump.c (dump_command, append_command): Remove.
7086 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7087 (tekhex_dump_command, binary_dump_command)
7088 (binary_append_command): Remove.
7089 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7090 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7091 (init_w32_command_list): Remove; move into ...
7092 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7093 * valprint.c (set_print, show_print, set_print_raw)
7094 (show_print_raw): Remove.
7095 (_initialize_valprint): Use add_basic_prefix_cmd,
7096 add_show_prefix_cmd.
7097 * typeprint.c (set_print_type, show_print_type): Remove.
7098 (_initialize_typeprint): Use add_basic_prefix_cmd,
7099 add_show_prefix_cmd.
7100 * record.c (set_record_command, show_record_command): Remove.
7101 (_initialize_record): Use add_basic_prefix_cmd,
7102 add_show_prefix_cmd.
7103 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7104 add_show_prefix_cmd.
7105 (info_command, show_command, set_debug, show_debug): Remove.
7106 * top.h (set_history, show_history): Don't declare.
7107 * top.c (set_history, show_history): Remove.
7108 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7109 (unset_tdesc_cmd): Remove.
7110 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7111 add_show_prefix_cmd.
7112 * symtab.c (info_module_command): Remove.
7113 (_initialize_symtab): Use add_basic_prefix_cmd.
7114 * symfile.c (overlay_command): Remove.
7115 (_initialize_symfile): Use add_basic_prefix_cmd.
7116 * sparc64-tdep.c (info_adi_command): Remove.
7117 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7118 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7119 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7120 add_show_prefix_cmd.
7121 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7122 (_initialize_serial): Use add_basic_prefix_cmd,
7123 add_show_prefix_cmd.
7124 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7125 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7126 add_show_prefix_cmd.
7127 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7128 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7129 add_show_prefix_cmd.
7130 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7131 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7132 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7133 add_show_prefix_cmd.
7134 * remote.c (remote_command, set_remote_cmd): Remove.
7135 (_initialize_remote): Use add_basic_prefix_cmd.
7136 * record-full.c (set_record_full_command)
7137 (show_record_full_command): Remove.
7138 (_initialize_record_full): Use add_basic_prefix_cmd,
7139 add_show_prefix_cmd.
7140 * record-btrace.c (cmd_set_record_btrace)
7141 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7142 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7143 (cmd_show_record_btrace_pt): Remove.
7144 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7145 add_show_prefix_cmd.
7146 * ravenscar-thread.c (set_ravenscar_command)
7147 (show_ravenscar_command): Remove.
7148 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7149 add_show_prefix_cmd.
7150 * mips-tdep.c (show_mips_command, set_mips_command)
7151 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7152 add_show_prefix_cmd.
7153 * maint.c (maintenance_command, maintenance_info_command)
7154 (maintenance_check_command, maintenance_print_command)
7155 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7156 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7157 add_show_prefix_cmd.
7158 (show_per_command_cmd): Remove.
7159 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7160 Remove.
7161 (maintenance_show_test_settings_cmd): Remove.
7162 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7163 add_show_prefix_cmd.
7164 * maint-test-options.c (maintenance_test_options_command):
7165 Remove.
7166 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7167 * macrocmd.c (macro_command): Remove
7168 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7169 * language.c (set_check, show_check): Remove.
7170 (_initialize_language): Use add_basic_prefix_cmd,
7171 add_show_prefix_cmd.
7172 * infcmd.c (unset_command): Remove.
7173 (_initialize_infcmd): Use add_basic_prefix_cmd.
7174 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7175 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7176 add_show_prefix_cmd.
7177 * go32-nat.c (go32_info_dos_command): Remove.
7178 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7179 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7180 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7181 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7182 (_initialize_frame): Use add_basic_prefix_cmd,
7183 add_show_prefix_cmd.
7184 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7185 (_initialize_dcache): Use add_basic_prefix_cmd,
7186 add_show_prefix_cmd.
7187 * cp-support.c (maint_cplus_command): Remove.
7188 (_initialize_cp_support): Use add_basic_prefix_cmd.
7189 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7190 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7191 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7192 add_basic_prefix_cmd, add_show_prefix_cmd.
7193 * breakpoint.c (save_command): Remove.
7194 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7195 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7196 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7197 add_show_prefix_cmd.
7198 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7199 (set_ada_command, show_ada_command): Remove.
7200 (_initialize_ada_language): Use add_basic_prefix_cmd,
7201 add_show_prefix_cmd.
7202 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7203
7204 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7205
7206 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7207 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7208
7209 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7210
7211 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7212 warning messages.
7213
7214 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7215
7216 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7217 import table is not at beginning of .idata section.
7218
7219 2020-04-16 Pedro Alves <palves@redhat.com>
7220
7221 * inferior.c (delete_inferior): Use delete operator directly
7222 instead of delete_program_space.
7223 * progspace.c (add_program_space): New, factored out from
7224 program_space::program_space.
7225 (remove_program_space): New, factored out from
7226 delete_program_space.
7227 (program_space::program_space): Remove intro comment. Rewrite.
7228 (program_space::~program_space): Remove intro comment. Call
7229 remove_program_space.
7230 (delete_program_space): Delete.
7231 * progspace.h (program_space::program_space): Make explicit. Move
7232 intro comment here, adjusted.
7233 (program_space::~program_space): Move intro comment here,
7234 adjusted.
7235 (delete_program_space): Remove.
7236
7237 2020-04-16 Tom Tromey <tromey@adacore.com>
7238
7239 * windows-nat.c (windows_nat::handle_access_violation): New
7240 function.
7241 * nat/windows-nat.h (handle_access_violation): Declare.
7242 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7243 windows-nat.c. Call handle_access_violation.
7244
7245 2020-04-16 Tom de Vries <tdevries@suse.de>
7246
7247 PR symtab/25791
7248 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7249 CUs without psymtab.
7250
7251 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7252
7253 * python/python.c (do_start_initialization): Don't call
7254 PyEval_InitThreads for Python 3.9 and beyond.
7255
7256 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7257
7258 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7259 thread functions.
7260 (obsd_nat_target::wait): Likewise.
7261
7262 2020-04-15 Tom Tromey <tromey@adacore.com>
7263
7264 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7265 (DEBUG_EXCEPT): Use debug_printf.
7266
7267 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * completer.c (class completion_tracker::completion_hash_entry)
7270 <hash_name>: New member function.
7271 (completion_tracker::discard_completions): New callback to hash a
7272 completion_hash_entry, pass this to htab_create_alloc.
7273
7274 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7275
7276 * windows-nat.c (windows_make_so): Warn rather than stopping with
7277 an error if realpath() fails.
7278
7279 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7280
7281 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7282 (nbsd_nat_target::info_proc): Add do_status.
7283
7284 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7285 Tom de Vries <tdevries@suse.de>
7286
7287 PR symtab/25718
7288 * psympriv.h (struct partial_symtab::read_symtab)
7289 (struct partial_symtab::expand_psymtab)
7290 (struct partial_symtab::read_dependencies): Update comments.
7291 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7292 read_symtab for includer.
7293 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7294 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7295 (struct dwarf2_include_psymtab::m_readin): Remove.
7296 (struct dwarf2_include_psymtab::includer): New member function.
7297 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7298
7299 2020-04-14 Tom de Vries <tdevries@suse.de>
7300
7301 PR symtab/25720
7302 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7303 with NULL symbol_matcher and lookup_name.
7304 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7305 and lookup_name.
7306 * dwarf2/read.c (dw2_expand_symtabs_matching)
7307 (dw2_debug_names_expand_symtabs_matching): Same.
7308 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7309 Make lookup_name a pointer. Update comment.
7310 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7311 lookup_name being a pointer.
7312 * symfile.c (expand_symtabs_matching): Same.
7313 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7314 * linespec.c (iterate_over_all_matching_symtabs): Same.
7315
7316 2020-04-13 Tom Tromey <tom@tromey.com>
7317
7318 * run-on-main-thread.c: Update include.
7319 * unittests/main-thread-selftests.c: Update include.
7320 * tui/tui-win.c: Update include.
7321 * tui/tui-io.c: Update include.
7322 * tui/tui-interp.c: Update include.
7323 * tui/tui-hooks.c: Update include.
7324 * top.h: Update include.
7325 * top.c: Update include.
7326 * ser-base.c: Update include.
7327 * remote.c: Update include.
7328 * remote-notif.c: Update include.
7329 * remote-fileio.c: Update include.
7330 * record-full.c: Update include.
7331 * record-btrace.c: Update include.
7332 * python/python.c: Update include.
7333 * posix-hdep.c: Update include.
7334 * mingw-hdep.c: Update include.
7335 * mi/mi-main.c: Update include.
7336 * mi/mi-interp.c: Update include.
7337 * main.c: Update include.
7338 * linux-nat.c: Update include.
7339 * interps.c: Update include.
7340 * infrun.c: Update include.
7341 * inf-loop.c: Update include.
7342 * event-top.c: Update include.
7343 * event-loop.c: Move to ../gdbsupport/.
7344 * event-loop.h: Move to ../gdbsupport/.
7345 * async-event.h: Update include.
7346 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7347
7348 2020-04-13 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-win.c: Include async-event.h.
7351 * remote.c: Include async-event.h.
7352 * remote-notif.c: Include async-event.h.
7353 * record-full.c: Include async-event.h.
7354 * record-btrace.c: Include async-event.h.
7355 * infrun.c: Include async-event.h.
7356 * event-top.c: Include async-event.h.
7357 * event-loop.h: Move some declarations to async-event.h.
7358 * event-loop.c: Don't include ser-event.h or top.h. Move some
7359 code to async-event.c.
7360 * async-event.h: New file.
7361 * async-event.c: New file.
7362 * Makefile.in (COMMON_SFILES): Add async-event.c.
7363 (HFILES_NO_SRCDIR): Add async-event.h.
7364
7365 2020-04-13 Tom Tromey <tom@tromey.com>
7366
7367 * utils.c (flush_streams): New function.
7368 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7369
7370 2020-04-13 Tom Tromey <tom@tromey.com>
7371
7372 * event-loop.c (handle_file_event): Use warning, not
7373 printf_unfiltered.
7374
7375 2020-04-13 Tom Tromey <tom@tromey.com>
7376
7377 * event-loop.c: Include <chrono>.
7378
7379 2020-04-13 Tom Tromey <tom@tromey.com>
7380
7381 * gdb_select.h: Move to ../gdbsupport/.
7382 * event-loop.c: Update include path.
7383 * top.c: Update include path.
7384 * ser-base.c: Update include path.
7385 * ui-file.c: Update include path.
7386 * ser-tcp.c: Update include path.
7387 * guile/scm-ports.c: Update include path.
7388 * posix-hdep.c: Update include path.
7389 * ser-unix.c: Update include path.
7390 * gdb_usleep.c: Update include path.
7391 * mingw-hdep.c: Update include path.
7392 * inflow.c: Update include path.
7393 * infrun.c: Update include path.
7394 * event-top.c: Update include path.
7395
7396 2020-04-13 Tom Tromey <tom@tromey.com>
7397
7398 * configure: Rebuild.
7399 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7400
7401 2020-04-13 Tom Tromey <tom@tromey.com>
7402
7403 * event-loop.h (start_event_loop): Don't declare.
7404 * event-loop.c (start_event_loop): Move...
7405 * main.c (start_event_loop): ...here. Now static.
7406
7407 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7408
7409 * MAINTAINERS: Update my email address.
7410
7411 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7412
7413 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7414 IP_ALL.
7415
7416 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7417
7418 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7419 (nbsd_nat_target::info_proc): Add do_cmdline.
7420
7421 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7422
7423 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7424 (nbsd_nat_target::info_proc): Add do_cwd.
7425
7426 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7427
7428 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7429
7430 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7431
7432 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7433 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7434 (nbsd_nat_target::info_proc): New functions.
7435 * nbsd-nat.c (kinfo_get_vmmap): New function.
7436 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7437 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7438 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7439 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7440 functions.
7441 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7442 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7443 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7444 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7445 (KINFO_VME_FLAG_GROWS_DOWN): New.
7446
7447 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7448
7449 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7450 bit shift.
7451
7452 2020-04-10 Tom Tromey <tromey@adacore.com>
7453
7454 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7455
7456 2020-04-10 Tom Tromey <tromey@adacore.com>
7457
7458 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7459 separate debug files.
7460
7461 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7462
7463 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7464 Move to...
7465 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7466 ... here.
7467 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7468 Check for STATUS_WX86_BREAKPOINT.
7469 (windows_nat_target::wait): Same.
7470
7471 2020-04-10 Tom de Vries <tdevries@suse.de>
7472
7473 PR cli/25808
7474 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7475
7476 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7477
7478 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7479 (Write After Approval): Remove Tom de Vries.
7480
7481 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7482
7483 revert partially:
7484 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7485
7486 * buildsym.c (record_line): Fix undefined behavior and preserve
7487 lines at eof.
7488
7489 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7490
7491 * auxv.h (svr4_auxv_parse): New.
7492 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7493 and generic_auxv_parse.
7494 (svr4_auxv_parse): Add.
7495 * obsd-tdep.c: Include "auxv.h".
7496 (obsd_auxv_parse): Remove.
7497 (obsd_init_abi): Remove comment.
7498 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7499 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7500 * nbsd-tdep.c: Include "auxv.h".
7501 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7502
7503 2020-04-08 Tom Tromey <tromey@adacore.com>
7504
7505 * nat/windows-nat.h (last_wait_event): Don't declare.
7506 (wait_for_debug_event): Update comment.
7507 * nat/windows-nat.c (last_wait_event): Now static.
7508
7509 2020-04-08 Tom Tromey <tromey@adacore.com>
7510
7511 * windows-nat.c (wait_for_debug_event): Move to
7512 nat/windows-nat.c.
7513 * nat/windows-nat.h (wait_for_debug_event): Declare.
7514 * nat/windows-nat.c (wait_for_debug_event): Move from
7515 windows-nat.c. No longer static.
7516
7517 2020-04-08 Tom Tromey <tromey@adacore.com>
7518
7519 * windows-nat.c (get_windows_debug_event): Use
7520 fetch_pending_stop.
7521 * nat/windows-nat.h (fetch_pending_stop): Declare.
7522 * nat/windows-nat.c (fetch_pending_stop): New function.
7523
7524 2020-04-08 Tom Tromey <tromey@adacore.com>
7525
7526 * windows-nat.c (windows_continue): Use matching_pending_stop and
7527 continue_last_debug_event.
7528 * nat/windows-nat.h (matching_pending_stop)
7529 (continue_last_debug_event): Declare.
7530 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7531 (matching_pending_stop, continue_last_debug_event): New
7532 functions.
7533
7534 2020-04-08 Tom Tromey <tromey@adacore.com>
7535
7536 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7537 (handle_exception_result): Move to nat/windows-nat.h.
7538 (DEBUG_EXCEPTION_SIMPLE): Remove.
7539 (windows_nat::handle_ms_vc_exception): New function.
7540 (handle_exception): Move to nat/windows-nat.c.
7541 (get_windows_debug_event): Update.
7542 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7543 nat/windows-nat.c.
7544 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7545 (handle_exception_result): Move from windows-nat.c.
7546 (handle_exception): Declare.
7547 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7548 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7549 windows-nat.c.
7550
7551 2020-04-08 Tom Tromey <tromey@adacore.com>
7552
7553 * windows-nat.c (exception_count, event_count): Remove.
7554 (handle_exception, get_windows_debug_event)
7555 (do_initial_windows_stuff): Update.
7556
7557 2020-04-08 Tom Tromey <tromey@adacore.com>
7558
7559 * windows-nat.c (windows_nat::handle_load_dll)
7560 (windows_nat::handle_unload_dll): Rename. No longer static.
7561 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7562 Declare.
7563
7564 2020-04-08 Tom Tromey <tromey@adacore.com>
7565
7566 * complaints.h (stop_whining): Declare at top-level.
7567 (complaint): Don't declare stop_whining.
7568
7569 2020-04-08 Tom Tromey <tromey@adacore.com>
7570
7571 * windows-nat.c (windows_nat::handle_output_debug_string):
7572 Rename. No longer static.
7573 * nat/windows-nat.h (handle_output_debug_string): Declare.
7574
7575 2020-04-08 Tom Tromey <tromey@adacore.com>
7576
7577 * windows-nat.c (current_process_handle, current_process_id)
7578 (main_thread_id, last_sig, current_event, last_wait_event)
7579 (current_windows_thread, desired_stop_thread_id, pending_stops)
7580 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7581 (display_selectors, fake_create_process)
7582 (get_windows_debug_event): Update.
7583 * nat/windows-nat.h (current_process_handle, current_process_id)
7584 (main_thread_id, last_sig, current_event, last_wait_event)
7585 (current_windows_thread, desired_stop_thread_id, pending_stops)
7586 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7587 * nat/windows-nat.c (current_process_handle, current_process_id)
7588 (main_thread_id, last_sig, current_event, last_wait_event)
7589 (current_windows_thread, desired_stop_thread_id, pending_stops)
7590 (siginfo_er): New globals. Move from windows-nat.c.
7591
7592 2020-04-08 Tom Tromey <tromey@adacore.com>
7593
7594 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7595 (handle_load_dll): Update.
7596 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7597
7598 2020-04-08 Tom Tromey <tromey@adacore.com>
7599
7600 * windows-nat.c (enum thread_disposition_type): Move to
7601 nat/windows-nat.h.
7602 (windows_nat::thread_rec): Rename from thread_rec. No longer
7603 static.
7604 (windows_add_thread, windows_nat_target::fetch_registers)
7605 (windows_nat_target::store_registers, handle_exception)
7606 (windows_nat_target::resume, get_windows_debug_event)
7607 (windows_nat_target::get_tib_address)
7608 (windows_nat_target::thread_name)
7609 (windows_nat_target::thread_alive): Update.
7610 * nat/windows-nat.h (enum thread_disposition_type): Move from
7611 windows-nat.c.
7612 (thread_rec): Declare.
7613
7614 2020-04-08 Tom Tromey <tromey@adacore.com>
7615
7616 * windows-nat.c: Add "using namespace".
7617 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7618 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7619
7620 2020-04-08 Tom Tromey <tromey@adacore.com>
7621
7622 * nat/windows-nat.h (struct windows_thread_info): Declare
7623 destructor.
7624 * nat/windows-nat.c (~windows_thread_info): New.
7625
7626 2020-04-08 Tom Tromey <tromey@adacore.com>
7627
7628 PR gdb/22992
7629 * windows-nat.c (current_event): Update comment.
7630 (last_wait_event, desired_stop_thread_id): New globals.
7631 (struct pending_stop): New.
7632 (pending_stops): New global.
7633 (windows_nat_target) <stopped_by_sw_breakpoint>
7634 <supports_stopped_by_sw_breakpoint>: New methods.
7635 (windows_fetch_one_register): Add assertions. Adjust PC.
7636 (windows_continue): Handle pending stops. Suspend other threads
7637 when stepping. Use last_wait_event
7638 (wait_for_debug_event): New function.
7639 (get_windows_debug_event): Use wait_for_debug_event. Handle
7640 pending stops. Queue spurious stops.
7641 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7642 (windows_nat_target::kill): Use wait_for_debug_event.
7643 * nat/windows-nat.h (struct windows_thread_info)
7644 <stopped_at_software_breakpoint>: New field.
7645 * nat/windows-nat.c (windows_thread_info::resume): Clear
7646 stopped_at_software_breakpoint.
7647
7648 2020-04-08 Tom Tromey <tromey@adacore.com>
7649
7650 * windows-nat.c (enum thread_disposition_type): New.
7651 (thread_rec): Replace "get_context" parameter with "disposition";
7652 change type.
7653 (windows_add_thread, windows_nat_target::fetch_registers)
7654 (windows_nat_target::store_registers, handle_exception)
7655 (windows_nat_target::resume, get_windows_debug_event)
7656 (windows_nat_target::get_tib_address)
7657 (windows_nat_target::thread_name)
7658 (windows_nat_target::thread_alive): Update.
7659
7660 2020-04-08 Tom Tromey <tromey@adacore.com>
7661
7662 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7663 (windows_continue): Use windows_continue::resume.
7664 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7665 resume>: Declare new methods.
7666 * nat/windows-nat.c: New file.
7667 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7668
7669 2020-04-08 Tom Tromey <tromey@adacore.com>
7670
7671 * windows-nat.c (windows_add_thread, windows_delete_thread)
7672 (windows_nat_target::fetch_registers)
7673 (windows_nat_target::store_registers, fake_create_process)
7674 (windows_nat_target::resume, windows_nat_target::resume)
7675 (get_windows_debug_event, windows_nat_target::wait)
7676 (windows_nat_target::pid_to_str)
7677 (windows_nat_target::get_tib_address)
7678 (windows_nat_target::get_ada_task_ptid)
7679 (windows_nat_target::thread_name)
7680 (windows_nat_target::thread_alive): Use lwp, not tid.
7681
7682 2020-04-08 Tom Tromey <tromey@adacore.com>
7683
7684 * windows-nat.c (handle_exception)
7685 (windows_nat_target::thread_name): Update.
7686 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7687 <name>: Now unique_xmalloc_ptr.
7688
7689 2020-04-08 Tom Tromey <tromey@adacore.com>
7690
7691 * windows-nat.c (thread_rec)
7692 (windows_nat_target::fetch_registers): Update.
7693 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7694 Update comment.
7695 <debug_registers_changed, reload_context>: Now bool.
7696
7697 2020-04-08 Tom Tromey <tromey@adacore.com>
7698
7699 * windows-nat.c (windows_add_thread): Use new.
7700 (windows_init_thread_list, windows_delete_thread): Use delete.
7701 (get_windows_debug_event): Update.
7702 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7703 destructor, and initializers.
7704
7705 2020-04-08 Tom Tromey <tromey@adacore.com>
7706
7707 * windows-nat.c (struct windows_thread_info): Remove.
7708 * nat/windows-nat.h: New file.
7709
7710 2020-04-08 Tom Tromey <tromey@adacore.com>
7711
7712 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7713 (thread_rec, windows_add_thread, windows_delete_thread)
7714 (windows_continue): Update.
7715
7716 2020-04-08 Tom Tromey <tromey@adacore.com>
7717
7718 * windows-nat.c (struct windows_thread_info): Remove typedef.
7719 (thread_head): Remove.
7720 (thread_list): New global.
7721 (thread_rec, windows_add_thread, windows_init_thread_list)
7722 (windows_delete_thread, windows_continue): Update.
7723
7724 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7725
7726 * windows-tdep.h (windows_init_abi): Add comment.
7727 (cygwin_init_abi): New declaration.
7728 * windows-tdep.c: Split signal enumeration in two, one for
7729 Windows and one for Cygwin.
7730 (windows_gdb_signal_to_target): Only deal with signal of the
7731 Windows OS ABI.
7732 (cygwin_gdb_signal_to_target): New function.
7733 (windows_init_abi): Rename to windows_init_abi_common, don't set
7734 gdb_signal_to_target gdbarch method. Add new new function with
7735 this name.
7736 (cygwin_init_abi): New function.
7737 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7738 comment. Don't call windows_init_abi.
7739 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7740 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7741 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7742 i386_windows_init_abi_common, don't call windows_init_abi. Add
7743 a new function of this name.
7744 (i386_cygwin_init_abi): New function.
7745 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7746 OS ABI Cygwin.
7747
7748 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7749
7750 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7751 parameter.c.
7752 (dwarf2_read_gdb_index): Update.
7753
7754 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7755
7756 * nbsd-tdep.c: Include "objfiles.h".
7757 (nbsd_skip_solib_resolver): New.
7758 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7759
7760 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7761
7762 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7763 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7764 with DW_LLE_base_addressx are being emitted in DWARFv5.
7765 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7766 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7767 unsigned integer.
7768
7769 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7770
7771 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7772 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7773 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7774 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7775 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7776 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7777 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7778
7779
7780 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7781
7782 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7783 (read_loclist_index): New function definition.
7784 (lookup_loclist_base): New function definition.
7785 (read_loclist_header): New function definition.
7786 (dwarf2_cu): Add loclist_base and loclist_header field.
7787 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7788 (read_full_die_1): Read the value of DW_AT_loclists_base.
7789 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7790 (read_attribute_value): Handle DW_FORM_loclistx.
7791 (skip_one_die): Handle DW_FORM_loclistx.
7792 (loclist_header): New structure declaration.
7793 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7794
7795 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7796
7797 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7798 constructor. Remove `addr` parameter from other constructor and
7799 add `per_cu` parameter.
7800 * dwarf2/read.c (create_partial_symtab): Update.
7801
7802 2020-04-07 Tom de Vries <tdevries@suse.de>
7803
7804 PR symtab/25796
7805 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7806 (partial_die_info::fixup): Inherit has_const_value.
7807
7808 2020-04-07 Tom de Vries <tdevries@suse.de>
7809
7810 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7811 symbols without address.
7812
7813 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7814
7815 * nbsd-nat.h (struct thread_info): Add forward declaration.
7816 (nbsd_nat_target::thread_alive): Add.
7817 (nbsd_nat_target::thread_name): Likewise.
7818 (nbsd_nat_target::update_thread_list): Likewise.
7819 (update_thread_list::post_attach): Likewise.
7820 (post_attach::pid_to_str): Likewise.
7821 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7822 (nbsd_thread_lister): Add.
7823 (nbsd_nat_target::thread_alive): Likewise.
7824 (nbsd_nat_target::thread_name): Likewise.
7825 (nbsd_add_threads): Likewise.
7826 (update_thread_list::post_attach): Likewise.
7827 (nbsd_nat_target::update_thread_list): Likewise.
7828 (post_attach::pid_to_str): Likewise.
7829
7830 2020-04-06 Tom Tromey <tromey@adacore.com>
7831
7832 * ada-valprint.c (print_variant_part): Extract the variant field.
7833 (print_field_values): Use the field as the outer value when
7834 recursing.
7835
7836 2020-04-06 Tom Tromey <tromey@adacore.com>
7837
7838 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7839 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7840 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7841 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7842 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7843
7844 2020-04-06 Tom Tromey <tromey@adacore.com>
7845
7846 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7847 TYPE_CODE_ERROR.
7848
7849 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7850
7851 * nbsd-tdep.c: Include "gdbarch.h".
7852 Define enum with NetBSD signal numbers.
7853 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7854 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7855 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7856 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7857 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7858 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7859 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7860 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7861 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7862 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7863 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7864 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7865
7866 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7867
7868 PR gdb/25325
7869 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7870
7871 2020-04-03 Tom Tromey <tromey@adacore.com>
7872
7873 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7874 Read constant block.
7875
7876 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7877
7878 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7879 (gdb_bfd_get_full_section_contents): New declaration.
7880 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7881 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7882 gdb_bfd_get_full_section_contents.
7883
7884 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7885
7886 * exec.c (build_section_table): Replace internal_error with
7887 gdb_assert.
7888 (section_table_xfer_memory_partial): Likewise.
7889 * mdebugread.c (parse_partial_symbols): Likewise.
7890 * psymtab.c (lookup_partial_symbol): Likewise.
7891 * utils.c (wrap_here): Likewise.
7892
7893 2020-04-02 Tom Tromey <tromey@adacore.com>
7894
7895 * f-lang.c (build_fortran_types): Use arch_type to initialize
7896 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7897
7898 2020-04-02 Tom Tromey <tromey@adacore.com>
7899
7900 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7901 of attributes.
7902
7903 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7904 Bernd Edlinger <bernd.edlinger@hotmail.de>
7905 Tom Tromey <tromey@adacore.com>
7906
7907 * buildsym.c (buildsym_compunit::record_line): Remove
7908 deduplication code.
7909
7910 2020-04-02 Tom de Vries <tdevries@suse.de>
7911
7912 PR ada/24671
7913 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7914
7915 2020-04-02 Tom de Vries <tdevries@suse.de>
7916
7917 * dwarf2/read.c (dwarf2_gdb_index_functions,
7918 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7919 NULL.
7920 * psymtab.c (psym_lookup_global_symbol_language): New function.
7921 (psym_functions): Init psym_lookup_global_symbol_language with
7922 psym_lookup_global_symbol_language.
7923 * symfile-debug.c (debug_sym_quick_functions): Init
7924 lookup_global_symbol_language with NULL.
7925 * symfile.c (set_initial_language): Remove fixme comment.
7926 * symfile.h (struct quick_symbol_functions): Add
7927 lookup_global_symbol_language.
7928 * symtab.c (find_quick_global_symbol_language): New function.
7929 (find_main_name): Use find_quick_global_symbol_language.
7930
7931 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7932
7933 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7934
7935 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7936
7937 * buildsym.c (record_line): Fix undefined behavior and preserve
7938 lines at eof.
7939
7940 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7941
7942 * buildsym.c (record_line): Fix the resizing condition.
7943
7944 2020-04-01 Tom Tromey <tom@tromey.com>
7945
7946 * value.h (value_literal_complex): Add comment.
7947 * valops.c (value_literal_complex): Refer to value.h.
7948
7949 2020-04-01 Tom Tromey <tom@tromey.com>
7950
7951 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7952 (scalar_type): New rule, from typebase.
7953 (typebase): Use scalar_type. Recognize complex types.
7954 (field_name): Handle FLOAT_KEYWORD.
7955 (ident_tokens): Add _Complex and __complex__.
7956
7957 2020-04-01 Tom Tromey <tom@tromey.com>
7958
7959 PR exp/25299:
7960 * valarith.c (promotion_type, complex_binop): New functions.
7961 (scalar_binop): Handle complex numbers. Use promotion_type.
7962 (value_pos, value_neg, value_complement): Handle complex numbers.
7963
7964 2020-04-01 Tom Tromey <tom@tromey.com>
7965
7966 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7967 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7968 (parse_number): Handle complex numbers.
7969
7970 2020-04-01 Tom Tromey <tom@tromey.com>
7971
7972 * c-valprint.c (c_decorations): Change complex suffix to "i".
7973
7974 2020-04-01 Tom Tromey <tom@tromey.com>
7975
7976 * valprint.c (generic_value_print_complex): Use accessors.
7977 * value.h (value_real_part, value_imaginary_part): Declare.
7978 * valops.c (value_real_part, value_imaginary_part): New
7979 functions.
7980 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7981
7982 2020-04-01 Tom Tromey <tom@tromey.com>
7983
7984 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7985 (read_range_type): Update.
7986 * mdebugread.c (basic_type): Update.
7987 * go-lang.c (build_go_types): Use init_complex_type.
7988 * gdbtypes.h (struct main_type) <complex_type>: New member.
7989 (init_complex_type): Update.
7990 (arch_complex_type): Don't declare.
7991 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7992 Make name if none given. Use alloc_type_copy. Look for cached
7993 complex type.
7994 (arch_complex_type): Remove.
7995 (gdbtypes_post_init): Use init_complex_type.
7996 * f-lang.c (build_fortran_types): Use init_complex_type.
7997 * dwarf2/read.c (read_base_type): Update.
7998 * d-lang.c (build_d_types): Use init_complex_type.
7999 * ctfread.c (read_base_type): Update.
8000
8001 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8002
8003 * infrun.c (stop_all_threads): Update assertion, plus when
8004 stopping threads, take into account that we might be trying
8005 to stop an all-stop target.
8006 (stop_waiting): Call 'stop_all_threads' if there exists a
8007 non-stop target.
8008
8009 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8010
8011 * target.h (exists_non_stop_target): New function declaration.
8012 * target.c (exists_non_stop_target): New function.
8013
8014 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8015
8016 PR gdb/24789
8017 * eval.c (is_integral_or_integral_reference): New function.
8018 (evaluate_subexp_standard): Allow integer references in
8019 pointer arithmetic.
8020
8021 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8022
8023 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8024 check for no ptid in the stop reply when the target is non-stop.
8025
8026 2020-04-01 Tom Tromey <tromey@adacore.com>
8027
8028 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8029 "name" parameter to rvalue reference. Initialize m_name_holder.
8030 <lookup_name_info>: New overloads.
8031 <name>: Return gdb::string_view.
8032 <c_str>: New method.
8033 <make_ignore_params>: Update.
8034 <search_name_hash>: Update.
8035 <language_lookup_name>: Return const char *.
8036 <m_name>: Change type.
8037 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8038 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8039 (lookup_name_info::match_any): Update.
8040 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8041 Update.
8042 * minsyms.c (linkage_name_str): Update.
8043 * language.c (default_symbol_name_matcher): Update.
8044 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8045 Update.
8046 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8047 (ada_lookup_name_info::ada_lookup_name_info): Update.
8048 (literal_symbol_name_matcher): Update.
8049
8050 2020-04-01 Tom Tromey <tromey@adacore.com>
8051
8052 * psymtab.c (psymtab_search_name): Remove function.
8053 (psym_lookup_symbol): Create search name and lookup name here.
8054 (lookup_partial_symbol): Remove "name" parameter; add
8055 lookup_name.
8056 (psym_expand_symtabs_for_function): Update.
8057
8058 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8059
8060 PR tui/25597:
8061 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8062
8063 2020-03-31 Tom Tromey <tromey@adacore.com>
8064
8065 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8066 memcpy.
8067
8068 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8069
8070 * features/riscv/32bit-csr.xml: Regenerated.
8071 * features/riscv/64bit-csr.xml: Regenerated.
8072
8073 2020-03-30 Tom Tromey <tromey@adacore.com>
8074
8075 * ada-valprint.c (print_variant_part): Update.
8076 * ada-lang.h (ada_which_variant_applies): Update.
8077 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8078 outer_valaddr parameters; replace with "outer" value parameter.
8079 (to_fixed_variant_branch_type): Update.
8080
8081 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8082
8083 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8084 <list>. Remove inclusion of observable.h.
8085 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8086 (struct arch_lwp_info): New struct.
8087 (class ppc_linux_dreg_interface): New class.
8088 (struct ppc_linux_process_info): New struct.
8089 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8090 <low_new_clone, low_forget_process, low_prepare_to_resume>
8091 <copy_thread_dreg_state, mark_thread_stale>
8092 <mark_debug_registers_changed, register_hw_breakpoint>
8093 <clear_hw_breakpoint, register_wp, clear_wp>
8094 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8095 <num_memory_accesses, get_trigger_type>
8096 <create_watchpoint_request, hwdebug_point_cmp>
8097 <init_arch_lwp_info, get_arch_lwp_info>
8098 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8099 methods.
8100 <struct ptid_hash>: New inner struct.
8101 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8102 members.
8103 (saved_dabr_value, hwdebug_info, max_slots_number)
8104 (struct hw_break_tuple, struct thread_points, ppc_threads)
8105 (have_ptrace_hwdebug_interface)
8106 (hwdebug_find_thread_points_by_tid)
8107 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8108 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8109 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8110 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8111 use m_dreg_interface.
8112 (hwdebug_point_cmp): Change to...
8113 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8114 reference arguments instead of pointers.
8115 (ppc_linux_nat_target::ranged_break_num_registers): Use
8116 m_dreg_interface.
8117 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8118 m_dreg_interface. Call register_hw_breakpoint.
8119 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8120 m_dreg_interface. Call clear_hw_breakpoint.
8121 (get_trigger_type): Change to...
8122 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8123 comment.
8124 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8125 use m_dreg_interface. Call register_hw_breakpoint.
8126 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8127 use m_dreg_interface. Call clear_hw_breakpoint.
8128 (can_use_watchpoint_cond_accel): Change to...
8129 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8130 method. Update comment, use m_dreg_interface and
8131 m_process_info.
8132 (calculate_dvc): Change to...
8133 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8134 m_dreg_interface.
8135 (num_memory_accesses): Change to...
8136 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8137 (check_condition): Change to...
8138 (ppc_linux_nat_target::check_condition): ...this method.
8139 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8140 comment, use m_dreg_interface.
8141 (create_watchpoint_request): Change to...
8142 (ppc_linux_nat_target::create_watchpoint_request): ...this
8143 method. Use m_dreg_interface.
8144 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8145 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8146 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8147 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8148 (ppc_linux_nat_target::low_forget_process)
8149 (ppc_linux_nat_target::low_new_fork)
8150 (ppc_linux_nat_target::low_new_clone)
8151 (ppc_linux_nat_target::low_delete_thread)
8152 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8153 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8154 only call mark_thread_stale.
8155 (ppc_linux_thread_exit): Remove.
8156 (ppc_linux_nat_target::stopped_data_address): Change to...
8157 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8158 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8159 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8160 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8161 comment. Call low_stopped_data_address.
8162 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8163 m_dreg_interface.
8164 (ppc_linux_nat_target::masked_watch_num_registers): Use
8165 m_dreg_interface.
8166 (ppc_linux_nat_target::copy_thread_dreg_state)
8167 (ppc_linux_nat_target::mark_thread_stale)
8168 (ppc_linux_nat_target::mark_debug_registers_changed)
8169 (ppc_linux_nat_target::register_hw_breakpoint)
8170 (ppc_linux_nat_target::clear_hw_breakpoint)
8171 (ppc_linux_nat_target::register_wp)
8172 (ppc_linux_nat_target::clear_wp)
8173 (ppc_linux_nat_target::init_arch_lwp_info)
8174 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8175 (_initialize_ppc_linux_nat): Remove observer callback.
8176
8177 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8178
8179 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8180 (ppc_linux_nat_target::auxv_parse)
8181 (ppc_linux_nat_target::read_description)
8182 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8183 Move up.
8184
8185 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8186
8187 * linux-nat.h (low_new_clone): New method.
8188 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8189
8190 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8191
8192 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8193 (dbx_expand_psymtab): ... this.
8194 (start_psymtab): Update.
8195 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8196 (mdebug_expand_psymtab): ... this.
8197 (parse_partial_symbols): Update.
8198 (new_psymtab): Update.
8199 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8200 (xcoff_expand_psymtab): ... this.
8201 (xcoff_start_psymtab): Update.
8202
8203 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8204
8205 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8206 <expand_dependencies>: ... this.
8207 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8208 (partial_symtab::expand_dependencies): ... this.
8209 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8210 Update.
8211 (dwarf2_psymtab::expand_psymtab): Update.
8212 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8213 * mdebugread.c (psymtab_to_symtab_1): Update.
8214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8215
8216 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8217
8218 * psympriv.h (discard_psymtab): Remove.
8219 * dbxread.c (dbx_end_psymtab): Update.
8220 * xcoffread.c (xcoff_end_psymtab): Update.
8221
8222 2020-03-28 Tom Tromey <tom@tromey.com>
8223
8224 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8225 comment.
8226
8227 2020-03-28 Tom Tromey <tom@tromey.com>
8228
8229 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8230
8231 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8232
8233 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8234
8235 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8236
8237 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8238
8239 2020-03-26 Tom Tromey <tom@tromey.com>
8240
8241 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8242 (mark_common_block_symbol_computed, read_tag_string_type)
8243 (attr_to_dynamic_prop, read_subrange_type): Update.
8244 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8245 to be methods on struct attribute.
8246 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8247 (read_call_site_scope, partial_die_info::read)
8248 (partial_die_info::read, lookup_die_type, follow_die_ref):
8249 Update.
8250 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8251 from dwarf2_get_ref_die_offset.
8252 (attribute::constant_value): New method, from
8253 dwarf2_get_attr_constant_value.
8254 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8255 Declare method.
8256 <constant_value>: New method.
8257
8258 2020-03-26 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8261 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8262 (dwarf_type_encoding_name): Move to stringify.c.
8263 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8264 * dwarf2/stringify.c: New file.
8265 * dwarf2/stringify.h: New file.
8266
8267 2020-03-26 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8270 Rewrite.
8271
8272 2020-03-26 Tom Tromey <tom@tromey.com>
8273
8274 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8275 methods.
8276 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8277 (lookup_ranges_base): Likewise.
8278 (read_cutu_die_from_dwo, read_full_die_1): Update.
8279
8280 2020-03-26 Tom Tromey <tom@tromey.com>
8281
8282 * dwarf2/read.c (read_import_statement, read_file_scope)
8283 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8284 (read_lexical_block_scope, read_call_site_scope)
8285 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8286 (handle_struct_member_die, process_structure_scope)
8287 (update_enumeration_type_from_children)
8288 (process_enumeration_scope, read_array_type, read_common_block)
8289 (read_namespace, read_module, read_subroutine_type): Update.
8290 (sibling_die): Remove.
8291
8292 2020-03-26 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8295 (build_type_psymtabs_reader, read_structure_type)
8296 (read_enumeration_type, read_full_die_1): Update.
8297 (dwarf2_attr_no_follow): Move to die.h.
8298 * dwarf2/die.h (struct die_info) <attr>: New method.
8299
8300 2020-03-26 Tom Tromey <tom@tromey.com>
8301
8302 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8303 <base_address>: Now an optional.
8304 (dwarf2_find_base_address, dwarf2_rnglists_process)
8305 (dwarf2_ranges_process, fill_in_loclist_baton)
8306 (dwarf2_symbol_mark_computed): Update.
8307
8308 2020-03-26 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.c (struct die_info): Move to die.h.
8311 * dwarf2/die.h: New file.
8312
8313 2020-03-26 Tom Tromey <tom@tromey.com>
8314
8315 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8316 * dwarf2/read.c
8317 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8318 Move to line-header.c.
8319 (read_checked_initial_length_and_offset, read_formatted_entries):
8320 Likewise.
8321 (dwarf_decode_line_header): Split into two.
8322 * dwarf2/line-header.c
8323 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8324 Move from read.c.
8325 (read_checked_initial_length_and_offset, read_formatted_entries):
8326 Likewise.
8327 (dwarf_decode_line_header): New function, split from read.c.
8328
8329 2020-03-26 Tom Tromey <tom@tromey.com>
8330
8331 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8332 Declare method.
8333 * dwarf2/read.c (read_attribute_value): Update.
8334 (dwarf2_per_objfile::read_line_string): Rename from
8335 read_indirect_line_string.
8336 (read_formatted_entries): Update.
8337
8338 2020-03-26 Tom Tromey <tom@tromey.com>
8339
8340 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8341 variable.
8342
8343 2020-03-26 Tom Tromey <tom@tromey.com>
8344
8345 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8346 const.
8347 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8348 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8349 parameter const.
8350
8351 2020-03-26 Tom Tromey <tom@tromey.com>
8352
8353 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8354 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8355 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8356 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8357
8358 2020-03-26 Tom Tromey <tom@tromey.com>
8359
8360 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8361 file_names_size, file_full_name, file_file_name>: Use const.
8362 <file_name_at, file_names>: Add const overload.
8363 * dwarf2/line-header.c (line_header::file_file_name)
8364 (line_header::file_full_name): Update.
8365
8366 2020-03-26 Tom Tromey <tom@tromey.com>
8367
8368 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8369 (macro_start_file, consume_improper_spaces)
8370 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8371 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8372 (dwarf_decode_macros): Move to macro.c.
8373 * dwarf2/macro.c: New file.
8374 * dwarf2/macro.h: New file.
8375 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8376
8377 2020-03-26 Tom Tromey <tom@tromey.com>
8378
8379 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8380 method.
8381 * dwarf2/section.c: New method. From
8382 read_indirect_string_at_offset_from.
8383 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8384 (read_indirect_string_at_offset_from): Move to section.c.
8385 (read_indirect_string_at_offset): Rewrite.
8386 (read_indirect_line_string_at_offset): Remove.
8387 (read_indirect_string, read_indirect_line_string)
8388 (dwarf_decode_macro_bytes): Update.
8389
8390 2020-03-26 Tom Tromey <tom@tromey.com>
8391
8392 * dwarf2/section.h (struct dwarf2_section_info)
8393 <overload_complaint>: Declare.
8394 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8395 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8396 Rename from dwarf2_section_buffer_overflow_complaint.
8397 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8398 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8399
8400 2020-03-26 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8403 Declare.
8404 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8405 Move from read.c.
8406 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8407 to section.c.
8408
8409 2020-03-26 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8412
8413 2020-03-26 Tom Tromey <tom@tromey.com>
8414
8415 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8416 "builder".
8417 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8418 parameter.
8419 (dwarf_decode_macros): Update.
8420
8421 2020-03-26 Tom Tromey <tom@tromey.com>
8422
8423 * dwarf2/read.c (read_attribute_value): Update.
8424 (read_indirect_string_from_dwz): Move to dwz.c; change into
8425 method.
8426 (dwarf_decode_macro_bytes): Update.
8427 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8428 * dwarf2/dwz.c: New file.
8429 * Makefile.in (COMMON_SFILES): Add dwz.c.
8430
8431 2020-03-26 Tom Tromey <tom@tromey.com>
8432
8433 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8434 * dwarf2/read.c: Add include.
8435 * dwarf2/index-write.c: Add include.
8436 * dwarf2/index-cache.c: Add include.
8437 * dwarf2/dwz.h: New file.
8438
8439 2020-03-25 Tom Tromey <tom@tromey.com>
8440
8441 * compile/compile-object-load.c (get_out_value_type): Mention
8442 correct symbol name in error message.
8443
8444 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8445
8446 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8447
8448 2020-03-25 Tom de Vries <tdevries@suse.de>
8449
8450 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8451 * symmisc.c (dump_symtab_1): Print user and includes fields.
8452 (maintenance_info_symtabs): Same.
8453
8454 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8455
8456 PR gdb/25534
8457 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8458 (riscv_regcache_cooked_write): New function.
8459 (riscv_push_dummy_call): Use new function.
8460 (riscv_return_value): Likewise.
8461
8462 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8463
8464 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8465 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8466 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8467 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8468 * infrun.c (follow_fork): Likewise.
8469 (follow_fork_inferior): Likewise.
8470 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8471 * linux-nat.h (class linux_nat_target): Likewise.
8472 * remote.c (class remote_target) <follow_fork>: Likewise.
8473 (remote_target::follow_fork): Likewise.
8474 * target-delegates.c: Re-generate.
8475 * target.c (default_follow_fork): Likewise.
8476 (target_follow_fork): Likewise.
8477 * target.h (struct target_ops) <follow_fork>: Likewise.
8478 (target_follow_fork): Likewise.
8479
8480 2020-03-24 Tom de Vries <tdevries@suse.de>
8481
8482 * psymtab.c (maintenance_info_psymtabs): Print user field.
8483
8484 2020-03-20 Tom Tromey <tromey@adacore.com>
8485
8486 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8487 const.
8488 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8489 const.
8490
8491 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8492
8493 * ptrace.m4: Don't check for ptrace declaration.
8494 * config.in: Re-generate.
8495 * configure: Re-generate.
8496 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8497 not defined.
8498
8499 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8500
8501 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8502 `PTRACE_TYPE_RET'.
8503 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8504 * sparc-nat.c (gdb_ptrace): Likewise.
8505 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8506
8507 2020-03-20 Tom Tromey <tromey@adacore.com>
8508
8509 * c-exp.y (lex_one_token): Fix assert.
8510
8511 2020-03-20 Tom Tromey <tromey@adacore.com>
8512
8513 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8514 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8515 strncpy call.
8516
8517 2020-03-20 Tom Tromey <tromey@adacore.com>
8518
8519 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8520
8521 2020-03-20 Tom Tromey <tromey@adacore.com>
8522
8523 * ada-valprint.c (print_variant_part): Remove parameters; switch
8524 to value-based API.
8525 (print_field_values): Likewise.
8526 (ada_val_print_struct_union): Likewise.
8527 (ada_value_print_1): Update.
8528
8529 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8530
8531 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8532 nbsd_nat_target instead of inf_ptrace_target.
8533 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8534 nbsd_nat_target.
8535
8536 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8537
8538 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8539 it to the ptrace call.
8540 * (store_registers): Likewise.
8541
8542 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8543
8544 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8545 it to the ptrace call.
8546 * (store_registers): Likewise.
8547
8548 2020-03-19 Luis Machado <luis.machado@linaro.org>
8549
8550 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8551 valid, fetch vg value from ptrace.
8552
8553 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8554 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8555 * inf-ptrace.c: Likewise.
8556 * (gdb_ptrace): Add.
8557 * (inf_ptrace_target::resume): Update.
8558 * (inf_ptrace_target::xfer_partial): Likewise.
8559 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8560 * (inf_ptrace_peek_poke): Update.
8561
8562 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8563
8564 * x86-bsd-nat.c (gdb_ptrace): New.
8565 * (x86bsd_dr_set): Add new argument `ptid'.
8566 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8567 x86bsd_dr_set_addr): Update.
8568
8569 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8570
8571 * remote.c (remote_target::process_stop_reply): Handle events for
8572 all threads differently.
8573
8574 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8575
8576 * completer.c (completion_tracker::remove_completion): Define new
8577 function.
8578 * completer.h (completion_tracker::remove_completion): Declare new
8579 function.
8580 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8581 when adding a C++ function symbol.
8582
8583 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8584
8585 * completer.c (completion_tracker::completion_hash_entry): Define
8586 new class.
8587 (advance_to_filename_complete_word_point): Call
8588 recompute_lowest_common_denominator.
8589 (completion_tracker::completion_tracker): Call discard_completions
8590 to setup the hash table.
8591 (completion_tracker::discard_completions): Allow for being called
8592 from the constructor, pass new equal function, and element deleter
8593 when constructing the hash table. Initialise new class member
8594 variables.
8595 (completion_tracker::maybe_add_completion): Remove use of
8596 m_entries_vec, and store more information into m_entries_hash.
8597 (completion_tracker::recompute_lcd_visitor): New function, most
8598 content taken from...
8599 (completion_tracker::recompute_lowest_common_denominator):
8600 ...here, this now just visits each item in the hash calling the
8601 above visitor.
8602 (completion_tracker::build_completion_result): Remove use of
8603 m_entries_vec, call recompute_lowest_common_denominator.
8604 * completer.h (completion_tracker::have_completions): Remove use
8605 of m_entries_vec.
8606 (completion_tracker::completion_hash_entry): Declare new class.
8607 (completion_tracker::recompute_lowest_common_denominator): Change
8608 function signature.
8609 (completion_tracker::recompute_lcd_visitor): Declare new function.
8610 (completion_tracker::m_entries_vec): Delete.
8611 (completion_tracker::m_entries_hash): Initialize to NULL.
8612 (completion_tracker::m_lowest_common_denominator_valid): New
8613 member variable.
8614 (completion_tracker::m_lowest_common_denominator_max_length): New
8615 member variable.
8616
8617 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8618
8619 * regformats/regdef.h: Put reg in gdb namespace.
8620
8621 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8622
8623 * i386-bsd-nat.c (gdb_ptrace): New.
8624 * (i386bsd_fetch_inferior_registers,
8625 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8626 * (i386bsd_fetch_inferior_registers,
8627 i386bsd_store_inferior_registers) Use gdb_ptrace.
8628
8629 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8630
8631 * amd64-bsd-nat.c (gdb_ptrace): New.
8632 * (amd64bsd_fetch_inferior_registers,
8633 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8634 * (amd64bsd_fetch_inferior_registers,
8635 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8636
8637 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8638
8639 * user-regs.c (user_reg::read): Rename to...
8640 (user_reg::xread): ...this.
8641 * (append_user_reg): Rename argument `read' to `xread'.
8642 * (user_reg_add_builtin): Likewise.
8643 * (user_reg_add): Likewise.
8644 * (value_of_user_reg): Likewise.
8645
8646 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8647
8648 * sparc-nat.c (gdb_ptrace): New.
8649 * sparc-nat.c (sparc_fetch_inferior_registers)
8650 (sparc_store_inferior_registers) Remove obsolete comment.
8651 * sparc-nat.c (sparc_fetch_inferior_registers)
8652 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8653 * sparc-nat.c (sparc_fetch_inferior_registers)
8654 (sparc_store_inferior_registers) Use gdb_ptrace.
8655
8656 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8657
8658 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8659 it to the ptrace call.
8660 * sh-nbsd-nat.c (store_registers): Likewise.
8661
8662 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8663
8664 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8665 nbsd_nat_target instead of inf_ptrace_target.
8666 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8667 nbsd_nat_target.
8668
8669 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8670
8671 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8672
8673 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8674
8675 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8676 <sys/sysctl.h>.
8677 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8678
8679 2020-03-17 Tom de Vries <tdevries@suse.de>
8680
8681 PR gdb/23710
8682 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8683 fields.
8684 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8685 fields.
8686 (process_imported_unit_die): Skip import of c++ CUs.
8687
8688 2020-03-16 Tom Tromey <tom@tromey.com>
8689
8690 * p-valprint.c (pascal_object_print_value): Initialize
8691 base_value.
8692
8693 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8694 Shahab Vahedi <shahab@synopsys.com>
8695
8696 * Makefile.in: Add arch/arc.o
8697 * configure.tgt: Likewise.
8698 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8699 (_initialize_arc_tdep): Don't initialize old target descriptions.
8700 (arc_read_description): New function to cache target descriptions.
8701 * arc-tdep.h (arc_read_description): Add proto type.
8702 * arch/arc.c: New file.
8703 * arch/arc.h: Likewise.
8704 * features/Makefile: Replace old target descriptions with new.
8705 * features/arc-arcompact.c: Remove.
8706 * features/arc-arcompact.xml: Likewise.
8707 * features/arc-v2.c: Likewise
8708 * features/arc-v2.xml: Likewise
8709 * features/arc/aux-arcompact.xml: New file.
8710 * features/arc/aux-v2.xml: Likewise.
8711 * features/arc/core-arcompact.xml: Likewise.
8712 * features/arc/core-v2.xml: Likewise.
8713 * features/arc/aux-arcompact.c: Generate.
8714 * features/arc/aux-v2.c: Likewise.
8715 * features/arc/core-arcompact.c: Likewise.
8716 * features/arc/core-v2.c: Likewise.
8717 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8718
8719 2020-03-16 Tom Tromey <tromey@adacore.com>
8720
8721 PR gdb/25663:
8722 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8723 putting value into bcache.
8724
8725 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8726
8727 PR gdb/21500
8728 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8729 to...
8730 (amd64_windows_init_abi_common): ... this. Don't set size of
8731 long type.
8732 (amd64_windows_init_abi): New function.
8733 (amd64_cygwin_init_abi): New function.
8734 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8735 the Cygwin OS ABI.
8736 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8737 comment.
8738
8739 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8740
8741 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8742 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8743 (pe_import_directory_entry): New struct type.
8744 (is_linked_with_cygwin_dll): New function.
8745 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8746 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8747 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8748
8749 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8750
8751 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8752 i386_cygwin_core_osabi_sniffer.
8753
8754 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8755
8756 * i386-cygwin-tdep.c: Rename to...
8757 * i386-windows-tdep.c: ... this.
8758 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8759 i386-windows-tdep.c.
8760 * configure.tgt: Likewise.
8761
8762 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8765 * osabi.c (gdb_osabi_names): Add "Windows".
8766 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8767 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8768 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8769 i386_cygwin_osabi_sniffer.
8770 (_initialize_i386_cygwin_tdep): Register OS ABI
8771 GDB_OSABI_WINDOWS for i386.
8772 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8773 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8774 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8775 for x86-64.
8776 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8777 when the target matches '*-*-mingw*'.
8778
8779 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8780
8781 * defs.h (enum gdb_osabi): Move to...
8782 * osabi.h (enum gdb_osabi): ... here.
8783 * gdbarch.sh: Include osabi.h in gdbarch.h.
8784 * gdbarch.h: Re-generate.
8785
8786 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8789 function.
8790 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8791
8792 2020-03-14 Tom Tromey <tom@tromey.com>
8793
8794 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8795 for C++.
8796 (c_type_print_modifier): Likewise. Add "language" parameter.
8797 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8798 (c_type_print_base_1): Update.
8799 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8800 constants.
8801 * type-stack.c (type_stack::insert): Handle tp_atomic and
8802 tp_restrict.
8803 (type_stack::follow_type_instance_flags): Likewise.
8804 (type_stack::follow_types): Likewise. Merge type-following code.
8805 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8806 (space_identifier, cv_with_space_id)
8807 (const_or_volatile_or_space_identifier_noopt)
8808 (const_or_volatile_or_space_identifier): Remove.
8809 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8810 rules.
8811 (ptr_operator, typebase): Update.
8812 (enum token_flag) <FLAG_C>: New constant.
8813 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8814 "_Atomic".
8815 (lex_one_token): Handle FLAG_C.
8816
8817 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8818
8819 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8820 it to the ptrace call.
8821 * m68k-bsd-nat.c (store_registers): Likewise.
8822
8823 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8824
8825 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8826 gdb_byte *.
8827 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8828 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8829 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8830
8831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8832
8833 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8834 nbsd_nat_target instead of inf_ptrace_target.
8835 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8836 nbsd_nat_target.
8837
8838 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8839
8840 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8841 register_t.
8842
8843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8844
8845 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8846 it to the ptrace call.
8847 * alpha-bsd-nat.c (store_registers): Likewise.
8848
8849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8850
8851 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8852 includes.
8853 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8854 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8855 fill_fpregset): Likewise.
8856
8857 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8858
8859 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8860 nbsd_nat_target instead of inf_ptrace_target.
8861 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8862 nbsd_nat_target.
8863
8864 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8865
8866 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8867 register_t.
8868
8869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8870
8871 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8872 it to the ptrace call.
8873 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8874 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8875 * arm-nbsd-nat.c (store_register): Likewise.
8876 * arm-nbsd-nat.c (store_regs): Likewise.
8877 * arm-nbsd-nat.c (store_fp_register): Likewise.
8878 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8879
8880 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8881
8882 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8883 nbsd_nat_target instead of inf_ptrace_target.
8884 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8885 nbsd_nat_target.
8886
8887 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8888
8889 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8890 it to the ptrace call.
8891 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8892
8893 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8894
8895 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8896 it to the ptrace call.
8897 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8898
8899 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8900
8901 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8902 gdb_byte *.
8903 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8904
8905 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8906
8907 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8908 instead of inf_ptrace_target.
8909 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8910 nbsd_nat_target.
8911
8912 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8913
8914 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8915 register_t.
8916
8917 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8918
8919 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8920 register_t.
8921
8922 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8923
8924 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8925 register_t.
8926
8927 2020-03-13 Tom Tromey <tom@tromey.com>
8928
8929 * value.h (val_print): Don't declare.
8930 * valprint.h (val_print_array_elements)
8931 (val_print_scalar_formatted, generic_val_print): Don't declare.
8932 * valprint.c (generic_val_print_array): Take a struct value.
8933 (generic_val_print_ptr, generic_val_print_memberptr)
8934 (generic_val_print_bool, generic_val_print_int)
8935 (generic_val_print_char, generic_val_print_complex)
8936 (generic_val_print): Remove.
8937 (generic_value_print): Update.
8938 (do_val_print): Remove unused parameters. Don't call
8939 la_val_print.
8940 (val_print): Remove.
8941 (common_val_print): Update. Don't call value_check_printable.
8942 (val_print_scalar_formatted, val_print_array_elements): Remove.
8943 * rust-lang.c (rust_val_print): Remove.
8944 (rust_language_defn): Update.
8945 * p-valprint.c (pascal_val_print): Remove.
8946 (pascal_value_print_inner): Update.
8947 (pascal_object_print_val_fields, pascal_object_print_val):
8948 Remove.
8949 (pascal_object_print_static_field): Update.
8950 * p-lang.h (pascal_val_print): Don't declare.
8951 * p-lang.c (pascal_language_defn): Update.
8952 * opencl-lang.c (opencl_language_defn): Update.
8953 * objc-lang.c (objc_language_defn): Update.
8954 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8955 * m2-lang.h (m2_val_print): Don't declare.
8956 * m2-lang.c (m2_language_defn): Update.
8957 * language.h (struct language_defn) <la_val_print>: Remove.
8958 * language.c (unk_lang_value_print_inner): Rename. Change
8959 argument types.
8960 (unknown_language_defn, auto_language_defn): Update.
8961 * go-valprint.c (go_val_print): Remove.
8962 * go-lang.h (go_val_print): Don't declare.
8963 * go-lang.c (go_language_defn): Update.
8964 * f-valprint.c (f_val_print): Remove.
8965 * f-lang.h (f_value_print): Don't declare.
8966 * f-lang.c (f_language_defn): Update.
8967 * d-valprint.c (d_val_print): Remove.
8968 * d-lang.h (d_value_print): Don't declare.
8969 * d-lang.c (d_language_defn): Update.
8970 * cp-valprint.c (cp_print_value_fields)
8971 (cp_print_value_fields_rtti, cp_print_value): Remove.
8972 (cp_print_static_field): Update.
8973 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8974 (c_val_print_struct, c_val_print_union, c_val_print_int)
8975 (c_val_print_memberptr, c_val_print): Remove.
8976 * c-lang.h (c_val_print_array, cp_print_value_fields)
8977 (cp_print_value_fields_rtti): Don't declare.
8978 * c-lang.c (c_language_defn, cplus_language_defn)
8979 (asm_language_defn, minimal_language_defn): Update.
8980 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8981 (ada_val_print_enum): Take a struct value.
8982 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8983 (ada_val_print): Remove.
8984 (ada_value_print_1): Update.
8985 (printable_val_type): Remove.
8986 * ada-lang.h (ada_val_print): Don't declare.
8987 * ada-lang.c (ada_language_defn): Update.
8988
8989 2020-03-13 Tom Tromey <tom@tromey.com>
8990
8991 * valprint.c (do_val_print): Update.
8992 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8993 a struct value.
8994 (value_to_value_object_no_release): Declare.
8995 * python/py-value.c (value_to_value_object_no_release): New
8996 function.
8997 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8998 struct value.
8999 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9000 function.
9001 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9002 a struct value.
9003 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9004 Declare.
9005 (gdbscm_apply_val_pretty_printer): Take a struct value.
9006 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9007 value.
9008 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9009 value.
9010 * extension-priv.h (struct extension_language_ops)
9011 <apply_val_pretty_printer>: Take a struct value.
9012 * cp-valprint.c (cp_print_value): Create a struct value.
9013 (cp_print_value): Update.
9014
9015 2020-03-13 Tom Tromey <tom@tromey.com>
9016
9017 * ada-valprint.c (print_field_values): Call common_val_print.
9018
9019 2020-03-13 Tom Tromey <tom@tromey.com>
9020
9021 * ada-valprint.c (val_print_packed_array_elements): Remove
9022 bitoffset and val parameters. Call common_val_print.
9023 (ada_val_print_string): Remove offset, address, and original_value
9024 parameters.
9025 (ada_val_print_array): Update.
9026 (ada_value_print_array): New function.
9027 (ada_value_print_1): Call it.
9028
9029 2020-03-13 Tom Tromey <tom@tromey.com>
9030
9031 * ada-valprint.c (ada_value_print): Use common_val_print.
9032
9033 2020-03-13 Tom Tromey <tom@tromey.com>
9034
9035 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9036
9037 2020-03-13 Tom Tromey <tom@tromey.com>
9038
9039 * ada-valprint.c (ada_value_print_num): New function.
9040 (ada_value_print_1): Use it.
9041
9042 2020-03-13 Tom Tromey <tom@tromey.com>
9043
9044 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9045
9046 2020-03-13 Tom Tromey <tom@tromey.com>
9047
9048 * ada-valprint.c (ada_value_print_ptr): New function.
9049 (ada_value_print_1): Use it.
9050
9051 2020-03-13 Tom Tromey <tom@tromey.com>
9052
9053 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9054 call common_val_print.
9055 (ada_val_print_1): Update.
9056 (ada_value_print_1): New function.
9057 (ada_value_print_inner): Rewrite.
9058
9059 2020-03-13 Tom Tromey <tom@tromey.com>
9060
9061 * cp-valprint.c (cp_print_value_fields): Update.
9062 (cp_print_value): New function.
9063
9064 2020-03-13 Tom Tromey <tom@tromey.com>
9065
9066 * m2-valprint.c (m2_value_print_inner): Use
9067 cp_print_value_fields.
9068 * cp-valprint.c (cp_print_value_fields): New function.
9069 * c-valprint.c (c_value_print_struct): New function.
9070 (c_value_print_inner): Use c_value_print_struct.
9071 * c-lang.h (cp_print_value_fields): Declare.
9072
9073 2020-03-13 Tom Tromey <tom@tromey.com>
9074
9075 * c-valprint.c (c_value_print_array): New function.
9076 (c_value_print_inner): Use it.
9077
9078 2020-03-13 Tom Tromey <tom@tromey.com>
9079
9080 * c-valprint.c (c_value_print_memberptr): New function.
9081 (c_value_print_inner): Use it.
9082
9083 2020-03-13 Tom Tromey <tom@tromey.com>
9084
9085 * c-valprint.c (c_value_print_int): New function.
9086 (c_value_print_inner): Use it.
9087
9088 2020-03-13 Tom Tromey <tom@tromey.com>
9089
9090 * c-valprint.c (c_value_print_ptr): New function.
9091 (c_value_print_inner): Use it.
9092
9093 2020-03-13 Tom Tromey <tom@tromey.com>
9094
9095 * c-valprint.c (c_value_print_inner): Rewrite.
9096
9097 2020-03-13 Tom Tromey <tom@tromey.com>
9098
9099 * valprint.c (generic_value_print_complex): New function.
9100 (generic_value_print): Use it.
9101
9102 2020-03-13 Tom Tromey <tom@tromey.com>
9103
9104 * valprint.c (generic_val_print_float): Don't call
9105 val_print_scalar_formatted.
9106 (generic_val_print, generic_value_print): Update.
9107
9108 2020-03-13 Tom Tromey <tom@tromey.com>
9109
9110 * valprint.c (generic_value_print_char): New function
9111 (generic_value_print): Use it.
9112
9113 2020-03-13 Tom Tromey <tom@tromey.com>
9114
9115 * valprint.c (generic_value_print_int): New function.
9116 (generic_value_print): Use it.
9117
9118 2020-03-13 Tom Tromey <tom@tromey.com>
9119
9120 * valprint.c (generic_value_print_bool): New function.
9121 (generic_value_print): Use it.
9122
9123 2020-03-13 Tom Tromey <tom@tromey.com>
9124
9125 * valprint.c (generic_val_print_func): Simplify.
9126 (generic_val_print, generic_value_print): Update.
9127
9128 2020-03-13 Tom Tromey <tom@tromey.com>
9129
9130 * valprint.c (generic_val_print_flags): Remove.
9131 (generic_val_print, generic_value_print): Update.
9132 (val_print_type_code_flags): Add original_value parameter.
9133
9134 2020-03-13 Tom Tromey <tom@tromey.com>
9135
9136 * valprint.c (generic_val_print): Update.
9137 (generic_value_print): Update.
9138 * valprint.c (generic_val_print_enum): Don't call
9139 val_print_scalar_formatted.
9140
9141 2020-03-13 Tom Tromey <tom@tromey.com>
9142
9143 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9144 * valprint.c (generic_value_print_ptr): New function.
9145
9146 2020-03-13 Tom Tromey <tom@tromey.com>
9147
9148 * valprint.c (generic_value_print): Rewrite.
9149
9150 2020-03-13 Tom Tromey <tom@tromey.com>
9151
9152 * p-valprint.c (pascal_object_print_value_fields)
9153 (pascal_object_print_value): New functions.
9154
9155 2020-03-13 Tom Tromey <tom@tromey.com>
9156
9157 * p-valprint.c (pascal_value_print_inner): Rewrite.
9158
9159 2020-03-13 Tom Tromey <tom@tromey.com>
9160
9161 * f-valprint.c (f_value_print_innner): Rewrite.
9162
9163 2020-03-13 Tom Tromey <tom@tromey.com>
9164
9165 * m2-valprint.c (m2_print_unbounded_array): New overload.
9166 (m2_print_unbounded_array): Update.
9167 (m2_print_array_contents): Take a struct value.
9168 (m2_value_print_inner): Rewrite.
9169
9170 2020-03-13 Tom Tromey <tom@tromey.com>
9171
9172 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9173 (d_value_print_inner): New function.
9174 * d-lang.h (d_value_print_inner): Declare.
9175 * d-lang.c (d_language_defn): Use d_value_print_inner.
9176
9177 2020-03-13 Tom Tromey <tom@tromey.com>
9178
9179 * go-valprint.c (go_value_print_inner): New function.
9180 * go-lang.h (go_value_print_inner): Declare.
9181 * go-lang.c (go_language_defn): Use go_value_print_inner.
9182
9183 2020-03-13 Tom Tromey <tom@tromey.com>
9184
9185 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9186 API.
9187 (rust_val_print): Rewrite.
9188 (rust_value_print_inner): New function, from rust_val_print.
9189 (rust_language_defn): Use rust_value_print_inner.
9190
9191 2020-03-13 Tom Tromey <tom@tromey.com>
9192
9193 * ada-valprint.c (ada_value_print_inner): New function.
9194 * ada-lang.h (ada_value_print_inner): Declare.
9195 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9196
9197 2020-03-13 Tom Tromey <tom@tromey.com>
9198
9199 * f-valprint.c (f_value_print_innner): New function.
9200 * f-lang.h (f_value_print_innner): Declare.
9201 * f-lang.c (f_language_defn): Use f_value_print_innner.
9202
9203 2020-03-13 Tom Tromey <tom@tromey.com>
9204
9205 * p-valprint.c (pascal_value_print_inner): New function.
9206 * p-lang.h (pascal_value_print_inner): Declare.
9207 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9208
9209 2020-03-13 Tom Tromey <tom@tromey.com>
9210
9211 * m2-valprint.c (m2_value_print_inner): New function.
9212 * m2-lang.h (m2_value_print_inner): Declare.
9213 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9214
9215 2020-03-13 Tom Tromey <tom@tromey.com>
9216
9217 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9218 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9219 * c-valprint.c (c_value_print_inner): New function.
9220 * c-lang.h (c_value_print_inner): Declare.
9221 * c-lang.c (c_language_defn, cplus_language_defn)
9222 (asm_language_defn, minimal_language_defn): Use
9223 c_value_print_inner.
9224
9225 2020-03-13 Tom Tromey <tom@tromey.com>
9226
9227 * p-valprint.c (pascal_object_print_value_fields): Now static.
9228 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9229
9230 2020-03-13 Tom Tromey <tom@tromey.com>
9231
9232 * c-valprint.c (c_val_print_array): Simplify.
9233
9234 2020-03-13 Tom Tromey <tom@tromey.com>
9235
9236 * valprint.c (value_print_array_elements): New function.
9237 * valprint.h (value_print_array_elements): Declare.
9238
9239 2020-03-13 Tom Tromey <tom@tromey.com>
9240
9241 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9242 * mips-tdep.c (mips_print_register): Use
9243 value_print_scalar_formatted.
9244
9245 2020-03-13 Tom Tromey <tom@tromey.com>
9246
9247 * valprint.h (value_print_scalar_formatted): Declare.
9248 * valprint.c (value_print_scalar_formatted): New function.
9249
9250 2020-03-13 Tom Tromey <tom@tromey.com>
9251
9252 * valprint.h (generic_value_print): Declare.
9253 * valprint.c (generic_value_print): New function.
9254
9255 2020-03-13 Tom Tromey <tom@tromey.com>
9256
9257 * valprint.c (do_val_print): Call la_value_print_inner, if
9258 available.
9259 * rust-lang.c (rust_language_defn): Update.
9260 * p-lang.c (pascal_language_defn): Update.
9261 * opencl-lang.c (opencl_language_defn): Update.
9262 * objc-lang.c (objc_language_defn): Update.
9263 * m2-lang.c (m2_language_defn): Update.
9264 * language.h (struct language_defn) <la_value_print_inner>: New
9265 member.
9266 * language.c (unknown_language_defn, auto_language_defn): Update.
9267 * go-lang.c (go_language_defn): Update.
9268 * f-lang.c (f_language_defn): Update.
9269 * d-lang.c (d_language_defn): Update.
9270 * c-lang.c (c_language_defn, cplus_language_defn)
9271 (asm_language_defn, minimal_language_defn): Update.
9272 * ada-lang.c (ada_language_defn): Update.
9273
9274 2020-03-13 Tom Tromey <tom@tromey.com>
9275
9276 * c-valprint.c (c_value_print): Use common_val_print.
9277
9278 2020-03-13 Tom Tromey <tom@tromey.com>
9279
9280 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9281
9282 2020-03-13 Tom Tromey <tom@tromey.com>
9283
9284 * f-valprint.c (f77_print_array_1, f_val_print): Use
9285 common_val_print.
9286
9287 2020-03-13 Tom Tromey <tom@tromey.com>
9288
9289 * riscv-tdep.c (riscv_print_one_register_info): Use
9290 common_val_print.
9291
9292 2020-03-13 Tom Tromey <tom@tromey.com>
9293
9294 * mi/mi-main.c (output_register): Use common_val_print.
9295
9296 2020-03-13 Tom Tromey <tom@tromey.com>
9297
9298 * infcmd.c (default_print_one_register_info): Use
9299 common_val_print.
9300
9301 2020-03-13 Tom Tromey <tom@tromey.com>
9302
9303 * valprint.h (common_val_print_checked): Declare.
9304 * valprint.c (common_val_print_checked): New function.
9305 * stack.c (print_frame_arg): Use common_val_print_checked.
9306
9307 2020-03-13 Tom Tromey <tom@tromey.com>
9308
9309 * valprint.c (do_val_print): New function, from val_print.
9310 (val_print): Use do_val_print.
9311 (common_val_print): Use do_val_print.
9312
9313 2020-03-13 Tom Tromey <tom@tromey.com>
9314
9315 * valprint.c (value_print): Use scoped_value_mark.
9316
9317 2020-03-13 Tom de Vries <tdevries@suse.de>
9318
9319 PR symtab/25646
9320 * psymtab.c (partial_symtab::partial_symtab): Don't set
9321 globals_offset and statics_offset. Push element onto
9322 current_global_psymbols and current_static_psymbols stacks.
9323 (concat): New function.
9324 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9325 element from current_global_psymbols and current_static_psymbols
9326 stacks. Concat popped elements to global_psymbols and
9327 static_symbols.
9328 (add_psymbol_to_list): Use current_global_psymbols and
9329 current_static_psymbols stacks.
9330 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9331 current_static_psymbols fields.
9332
9333 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9334
9335 * corelow.c (sniff_core_bfd): Remove.
9336 (class core_target) <m_core_vec>: Remove.
9337 (core_target::core_target): Update.
9338 (core_file_fns): Remove.
9339 (deprecated_add_core_fns): Remove.
9340 (default_core_sniffer): Remove.
9341 (sniff_core_bfd): Remove.
9342 (default_check_format): Remove.
9343 (gdb_check_format): Remove.
9344 (core_target_open): Update.
9345 (core_target::get_core_register_section): Update.
9346 (get_core_registers_cb): Update.
9347 (core_target::fetch_registers): Update.
9348 * gdbcore.h (struct core_fns): Remove.
9349 (deprecated_add_core_fns): Remove.
9350 (default_core_sniffer): Remove.
9351 (default_check_format): Remove.
9352
9353 2020-03-12 Tom Tromey <tom@tromey.com>
9354
9355 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9356 CORE_ADDR.
9357 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9358
9359 2020-03-12 Tom Tromey <tom@tromey.com>
9360
9361 * remote.c (remote_target::download_tracepoint)
9362 (remote_target::enable_tracepoint)
9363 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9364 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9365 sprintf_vma.
9366
9367 2020-03-12 Tom Tromey <tom@tromey.com>
9368
9369 * symfile-mem.c: Update CORE_ADDR size assert.
9370
9371 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9372
9373 * selftest.m4: Move to gdbsupport/.
9374 * acinclude.m4: Update path to selftest.m4.
9375
9376 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9379 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9380 gdbarch-selfselftests.c and selftest-arch.c.
9381 (SUBDIR_UNITTESTS_OBS): Rename to...
9382 (SELFTESTS_OBS): ... this.
9383 (COMMON_SFILES): Remove disasm-selftests.c and
9384 gdbarch-selftests.c.
9385 * configure.ac: Don't add selftest-arch.{c,o} to
9386 CONFIG_{SRCS,OBS}.
9387 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9388 preprocessor conditions.
9389
9390 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9391
9392 * configure.ac: Don't source bfd/development.sh.
9393 * selftest.m4: Modify comment.
9394 * configure: Re-generate.
9395
9396 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9397
9398 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9399 not "true" or "false".
9400 * configure: Re-generate.
9401
9402 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9403
9404 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9405 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9406 renamed to arm_nbsd_supply_gregset.
9407 (fetch_register): Update to call arm_nbsd_supply_gregset.
9408 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9409 (arm_netbsd_nat_target::fetch_registers): Update.
9410 (fetch_elfcore_registers): Removed.
9411 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9412 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9413 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9414 not require NetBSD system headers.
9415 (arm_nbsd_regset): New struct.
9416 (arm_nbsd_iterate_over_regset_sections): New function.
9417 (arm_netbsd_init_abi_common): Updated to call
9418 set_gdbarch_iterate_over_regset_sections.
9419 * arm-nbsd-tdep.h: New file.
9420
9421 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9422
9423 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9424 recursion.
9425
9426 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * configure: Re-generate.
9429
9430 2020-03-11 Tom Tromey <tromey@adacore.com>
9431
9432 * ada-typeprint.c (print_choices): Fix comment.
9433
9434 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9435
9436 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9437 previous item in the list, when the list has no items.
9438
9439 2020-03-11 Tom de Vries <tdevries@suse.de>
9440
9441 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9442 PROP_LOCLIST handling code.
9443
9444 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9445
9446 * buildsym-legacy.c (record_line): Pass extra parameter to
9447 record_line.
9448 * buildsym.c (buildsym_compunit::record_line): Take an extra
9449 parameter, reduce duplication in the line table, and record the
9450 is_stmt flag in the line table.
9451 * buildsym.h (buildsym_compunit::record_line): Add extra
9452 parameter.
9453 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9454 non-statement lines.
9455 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9456 this to the symtab builder.
9457 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9458 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9459 through to dwarf_record_line_1.
9460 * infrun.c (process_event_stop_test): When stepping, don't stop at
9461 a non-statement instruction, and only refresh the step info when
9462 we land in the middle of a line's range. Also add an extra
9463 comment.
9464 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9465 field.
9466 * record-btrace.c (btrace_find_line_range): Only record lines
9467 marked as is-statement.
9468 * stack.c (frame_show_address): Show the frame address if we are
9469 in a non-statement sal.
9470 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9471 (maintenance_print_one_line_table): Print a header for the is_stmt
9472 column, and include is_stmt information in the output.
9473 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9474 preference to non-statements.
9475 (find_pcs_for_symtab_line): Prefer is-statement entries.
9476 (find_line_common): Likewise.
9477 * symtab.h (struct linetable_entry): Add is_stmt field.
9478 (struct symtab_and_line): Likewise.
9479 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9480 arranging the line table.
9481
9482 2020-03-07 Tom de Vries <tdevries@suse.de>
9483
9484 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9485 DIE.
9486
9487 2020-03-07 Tom Tromey <tom@tromey.com>
9488
9489 * valops.c (value_literal_complex): Remove obsolete comment.
9490 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9491 comment.
9492
9493 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9494
9495 * infrun.h: Forward-declare thread_info.
9496 (set_step_info): Add thread_info parameter, add doc.
9497 * infrun.c (set_step_info): Add thread_info parameter, move doc
9498 to header.
9499 * infrun.c (process_event_stop_test): Pass thread to
9500 set_step_info call.
9501 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9502 set_step_info.
9503 (prepare_one_step): Add thread_info parameter, pass it to
9504 set_step_frame and prepare_one_step (recursive) call.
9505 (step_1): Pass thread to prepare_one_step call.
9506 (step_command_fsm::should_stop): Pass thread to
9507 prepare_one_step.
9508 (until_next_fsm): Pass thread to set_step_frame call.
9509 (finish_command): Pass thread to set_step_info call.
9510
9511 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9512
9513 * windows-tdep.c (windows_solib_create_inferior_hook):
9514 Check if inferior is running.
9515
9516 2020-03-06 Tom de Vries <tdevries@suse.de>
9517
9518 * NEWS: Fix "the the".
9519 * ctfread.c: Same.
9520
9521 2020-03-06 Tom de Vries <tdevries@suse.de>
9522
9523 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9524
9525 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9526
9527 * .dir-locals.el: Add a comment referencing the other copies of
9528 this file.
9529
9530 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9531
9532 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9533 psargs.
9534
9535 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9536
9537 * .gitattributes: New file.
9538
9539 2020-03-04 Tom Tromey <tom@tromey.com>
9540
9541 * symmisc.c (print_symbol_bcache_statistics)
9542 (print_objfile_statistics): Update.
9543 * symfile.c (allocate_symtab): Use intern.
9544 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9545 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9546 macro_cache>: Remove.
9547 <string_cache>: New member.
9548 (struct objfile) <intern>: New methods.
9549 * elfread.c (elf_symtab_read): Use intern.
9550 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9551 (dwarf2_compute_name, dwarf2_physname)
9552 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9553 names.
9554 (guess_partial_die_structure_name): Update.
9555 (partial_die_info::fixup): Intern name.
9556 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9557 name.
9558 (dwarf2_name): Intern name. Update.
9559 * buildsym.c (buildsym_compunit::get_macro_table): Use
9560 string_cache.
9561
9562 2020-03-04 Tom Tromey <tom@tromey.com>
9563
9564 * jit.c (bfd_open_from_target_memory): Make "target" const.
9565 * corefile.c (gnutarget): Now const.
9566 * gdbcore.h (gnutarget): Now const.
9567
9568 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9569
9570 * NEWS: Mention support for WOW64 processes.
9571 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9572 (amd64_windows_segment_register_p): Remove static.
9573 (_initialize_amd64_windows_nat): Update.
9574 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9575 * i386-windows-nat.c (context_offset): Update.
9576 (i386_mappings): Rename and remove static.
9577 (i386_windows_segment_register_p): Remove static.
9578 (_initialize_i386_windows_nat): Update.
9579 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9580 (STATUS_WX86_SINGLE_STEP): New macro.
9581 (EnumProcessModulesEx): New macro.
9582 (Wow64SuspendThread): New macro.
9583 (Wow64GetThreadContext): New macro.
9584 (Wow64SetThreadContext): New macro.
9585 (Wow64GetThreadSelectorEntry): New macro.
9586 (windows_set_context_register_offsets): Add static.
9587 (windows_set_segment_register_p): Likewise.
9588 (windows_add_thread): Adapt for WOW64 processes.
9589 (windows_fetch_one_register): Likewise.
9590 (windows_nat_target::fetch_registers): Likewise.
9591 (windows_store_one_register): Likewise.
9592 (display_selector): Likewise.
9593 (display_selectors): Likewise.
9594 (handle_exception): Likewise.
9595 (windows_continue): Likewise.
9596 (windows_nat_target::resume): Likewise.
9597 (windows_add_all_dlls): Likewise.
9598 (do_initial_windows_stuff): Likewise.
9599 (windows_nat_target::attach): Likewise.
9600 (windows_get_exec_module_filename): Likewise.
9601 (windows_nat_target::create_inferior): Likewise.
9602 (windows_xfer_siginfo): Likewise.
9603 (_initialize_loadable): Initialize Wow64SuspendThread,
9604 Wow64GetThreadContext, Wow64SetThreadContext,
9605 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9606 * windows-nat.h (windows_set_context_register_offsets):
9607 Remove declaration.
9608 (windows_set_segment_register_p): Likewise.
9609 (i386_windows_segment_register_p): Add declaration.
9610 (amd64_windows_segment_register_p): Likewise.
9611
9612 2020-03-04 Luis Machado <luis.machado@linaro.org>
9613
9614 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9615 in "info registers" for AArch64/ARM.
9616
9617 The change caused "info registers" to not print GPR's.
9618
9619 gdb/ChangeLog:
9620
9621 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9622
9623 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9624 when reg->group is empty and reggroup is not.
9625
9626 2020-03-03 Tom Tromey <tromey@adacore.com>
9627
9628 * dwarf2/frame.c (struct dwarf2_frame_cache)
9629 <checked_tailcall_bottom, entry_cfa_sp_offset,
9630 entry_cfa_sp_offset_p>: Remove members.
9631 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9632 (dwarf2_frame_prev_register): Don't call
9633 dwarf2_tailcall_sniffer_first.
9634 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9635 * frame-unwind.c (add_unwinder): New fuction.
9636 (frame_unwind_init): Use it. Add tailcall unwinder.
9637
9638 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9639 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9640
9641 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9642 value should be printed as true.
9643
9644 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9645
9646 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9647 (windows_init_abi): Set and use windows_so_ops.
9648
9649 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9650
9651 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9652 when verifying if dealing with a convenience variable.
9653
9654 2020-03-03 Luis Machado <luis.machado@linaro.org>
9655
9656 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9657
9658 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9659
9660 * infrun.c (gdbarch_supports_displaced_stepping): New.
9661 (use_displaced_stepping): Break up conditions in smaller pieces.
9662 Use gdbarch_supports_displaced_stepping.
9663 (displaced_step_prepare_throw): Use
9664 gdbarch_supports_displaced_stepping.
9665
9666 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9667
9668 * NEWS: Mention new behaviour of the history filename.
9669 * top.c (write_history_p): Add comment.
9670 (show_write_history_p): Add header comment, give a different
9671 message when history writing is on, but the history filename is
9672 empty.
9673 (history_filename): Add comment.
9674 (history_filename_empty): New function.
9675 (show_history_filename): Add header comment, give a different
9676 message when the filename is empty.
9677 (init_history): Compare history_filename against nullptr, and only
9678 read history if the filename is not empty.
9679 (set_history_filename): Add header comment, and only make
9680 non-empty filenames absolute.
9681 (init_main): Make the filename argument to 'set history filename'
9682 optional.
9683
9684 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9685
9686 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9687 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9688 (fetch_fp_register): Update.
9689 (fetch_fp_regs): Update.
9690 (store_fp_register): Update.
9691 (store_fp_regs): Update.
9692 (arm_netbsd_nat_target::read_description): New function.
9693 (fetch_elfcore_registers): Update.
9694
9695 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9696
9697 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9698 general_thread if the stop reply is missing a thread-id.
9699 (remote_target::process_stop_reply): Use the first non-exited
9700 thread if the target didn't pass a thread-id.
9701 * infrun.c (do_target_wait): Move call to
9702 switch_to_inferior_no_thread to ....
9703 (do_target_wait_1): ... here.
9704
9705 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9706
9707 * debuginfod-support.c: Include defs.h first.
9708
9709 2020-02-28 Tom de Vries <tdevries@suse.de>
9710
9711 * symfile.c (set_initial_language): Use default language for lookup.
9712
9713 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9714
9715 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9716 reader variable, pass `this` to read_cutu_die_from_dwo.
9717
9718 2020-02-27 Aaron Merey <amerey@redhat.com>
9719
9720 * source.c (open_source_file): Check for nullptr when computing
9721 srcpath.
9722
9723 2020-02-27 Tom Tromey <tromey@adacore.com>
9724
9725 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9726 member.
9727 (dwarf2_add_field): Don't update nfields.
9728 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9729
9730 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9731
9732 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9733 abs.
9734
9735 2020-02-26 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9738 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9739 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9740 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9741 per_cu_data.
9742
9743 2020-02-26 Tom Tromey <tom@tromey.com>
9744
9745 * dwarf2/index-write.c (psym_index_map): Change type.
9746 (add_address_entry_worker, write_one_signatured_type)
9747 (recursively_count_psymbols, recursively_write_psymbols)
9748 (class debug_names, psyms_seen_size, write_gdbindex)
9749 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9750
9751 2020-02-26 Aaron Merey <amerey@redhat.com>
9752
9753 * Makefile.in: Handle optional debuginfod support.
9754 * NEWS: Update.
9755 * README: Add --with-debuginfod summary.
9756 * config.in: Regenerate.
9757 * configure: Regenerate.
9758 * configure.ac: Handle optional debuginfod support.
9759 * debuginfod-support.c: debuginfod helper functions.
9760 * debuginfod-support.h: Ditto.
9761 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9762 summary.
9763 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9764 when a dwz file cannot be found.
9765 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9766 debuginfo file cannot be found.
9767 * source.c (open_source_file): Query debuginfod servers when a
9768 source file cannot be found.
9769 * top.c (print_gdb_configuration): Include
9770 --{with,without}-debuginfod in the output.
9771
9772 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9773
9774 * thread.c (thr_try_catch_cmd): Print thread name.
9775
9776 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9779 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9780 dwarf2_fetch_die_type_sect_off): Move to...
9781 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9782 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9783 dwarf2_fetch_die_type_sect_off): ... here.
9784 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9785 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9786 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9787
9788 2020-02-26 Tom de Vries <tdevries@suse.de>
9789
9790 PR gdb/25603
9791 * symfile.c (set_initial_language): Exit-early if
9792 language_mode == language_mode_manual.
9793
9794 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9795
9796 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9797 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9798 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9799
9800 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9801
9802 * gdbtypes.c (create_array_type_with_stride): Handle negative
9803 array strides.
9804 * valarith.c (value_subscripted_rvalue): Likewise.
9805
9806 2020-02-25 Luis Machado <luis.machado@linaro.org>
9807
9808 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9809
9810 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9811
9812 * loc.h (dwarf2_get_die_type): Move to...
9813 * read.h (dwarf2_get_die_type): ... here.
9814 * read.c (dwarf2_get_die_type): Move doc to header.
9815
9816 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9817
9818 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9819 'gnulib/Makefile.in' to the list.
9820
9821 2020-02-24 Tom Tromey <tom@tromey.com>
9822
9823 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9824 Remove.
9825 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9826 XOBNEWVEC.
9827
9828 2020-02-24 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9831 New method.
9832 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9833 (dw2_do_instantiate_symtab, dw2_get_file_names)
9834 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9835
9836 2020-02-24 Tom Tromey <tom@tromey.com>
9837
9838 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9839 make_scoped_restore.
9840 (dwarf2_psymtab::read_symtab): Don't clear
9841 reading_partial_symbols.
9842
9843 2020-02-24 Tom de Vries <tdevries@suse.de>
9844
9845 PR gdb/25592
9846 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9847
9848 2020-02-24 Tom de Vries <tdevries@suse.de>
9849
9850 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9851 commands layout next/prev/regs.
9852
9853 2020-02-22 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9856 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9857
9858 2020-02-22 Tom Tromey <tom@tromey.com>
9859
9860 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9861
9862 2020-02-22 Tom Tromey <tom@tromey.com>
9863
9864 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9865 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9866 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9867 * tui/tui.c (_initialize_tui): Add usage text.
9868
9869 2020-02-22 Tom Tromey <tom@tromey.com>
9870
9871 * tui/tui-win.c (tui_set_focus_command)
9872 (tui_set_win_height_command): Use error_no_arg.
9873 (_initialize_tui_win): Update help text.
9874 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9875
9876 2020-02-22 Tom Tromey <tom@tromey.com>
9877
9878 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9879 * tui/tui-disasm.h (struct tui_disasm_window)
9880 <display_start_addr>: Declare.
9881 * tui/tui-source.h (struct tui_source_window)
9882 <display_start_addr>: Declare.
9883 * tui/tui-winsource.h (struct tui_source_window_base)
9884 <show_source_line, display_start_addr>: New methods.
9885 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9886 Rename and move to protected section.
9887 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9888 (tui_source_window_base::do_erase_source_content): Update.
9889 (tui_source_window_base::show_source_line): Now a method.
9890 (tui_source_window_base::show_source_content)
9891 (tui_source_window_base::tui_source_window_base)
9892 (tui_source_window_base::rerender)
9893 (tui_source_window_base::refill)
9894 (tui_source_window_base::do_scroll_horizontal)
9895 (tui_source_window_base::set_is_exec_point_at)
9896 (tui_source_window_base::update_breakpoint_info)
9897 (tui_source_window_base::update_exec_info): Update.
9898 * tui/tui-source.c (tui_source_window::set_contents)
9899 (tui_source_window::showing_source_p)
9900 (tui_source_window::do_scroll_vertical)
9901 (tui_source_window::location_matches_p)
9902 (tui_source_window::line_is_displayed): Update.
9903 (tui_source_window::display_start_addr): New method.
9904 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9905 (tui_disasm_window::do_scroll_vertical)
9906 (tui_disasm_window::location_matches_p): Update.
9907 (tui_disasm_window::display_start_addr): New method.
9908
9909 2020-02-22 Tom Tromey <tom@tromey.com>
9910
9911 * NEWS: Add entry for gdb.register_window_type.
9912 * tui/tui-layout.h (window_factory): New typedef.
9913 (tui_register_window): Declare.
9914 * tui/tui-layout.c (saved_tui_windows): New global.
9915 (tui_apply_current_layout): Use it.
9916 (tui_register_window): New function.
9917 * python/python.c (do_start_initialization): Call
9918 gdbpy_initialize_tui.
9919 (python_GdbMethods): Add "register_window_type" function.
9920 * python/python-internal.h (gdbpy_register_tui_window)
9921 (gdbpy_initialize_tui): Declare.
9922 * python/py-tui.c: New file.
9923 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9924
9925 2020-02-22 Tom Tromey <tom@tromey.com>
9926
9927 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9928
9929 2020-02-22 Tom Tromey <tom@tromey.com>
9930
9931 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9932 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9933 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9934 (tui_set_win_focus_to): Move from tui-win.c.
9935
9936 2020-02-22 Tom Tromey <tom@tromey.com>
9937
9938 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9939 functions.
9940 (known_window_types): New global.
9941 (tui_get_window_by_name): Reimplement.
9942 (initialize_known_windows): New function.
9943 (validate_window_name): Rewrite.
9944 (_initialize_tui_layout): Call initialize_known_windows.
9945
9946 2020-02-22 Tom Tromey <tom@tromey.com>
9947
9948 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9949 Remove constants.
9950 * tui/tui-winsource.h (struct tui_source_window_base)
9951 <tui_source_window_base>: Remove parameter.
9952 * tui/tui-winsource.c
9953 (tui_source_window_base::tui_source_window_base): Remove
9954 parameter.
9955 (tui_source_window_base::refill): Update.
9956 * tui/tui-stack.h (struct tui_locator_window)
9957 <tui_locator_window>: Update.
9958 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9959 Default the constructor.
9960 * tui/tui-regs.h (struct tui_data_item_window)
9961 <tui_data_item_window>: Default the constructor.
9962 (struct tui_data_window) <tui_data_window>: Likewise.
9963 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9964 Default the constructor.
9965 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9966 Default the constructor.
9967 <type>: Remove.
9968 (struct tui_win_info) <tui_win_info>: Default the constructor.
9969 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9970 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9971 Default the constructor.
9972
9973 2020-02-22 Tom Tromey <tom@tromey.com>
9974
9975 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9976 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9977 * tui/tui-win.c (tui_resize_all): Don't call
9978 tui_delete_invisible_windows.
9979 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9980 done.
9981 (tui_set_layout): Update.
9982 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9983 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9984 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9985
9986 2020-02-22 Tom Tromey <tom@tromey.com>
9987
9988 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9989 correctly.
9990
9991 2020-02-22 Tom Tromey <tom@tromey.com>
9992
9993 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9994
9995 2020-02-22 Tom Tromey <tom@tromey.com>
9996
9997 * tui/tui-winsource.h (struct tui_source_window_iterator)
9998 <inner_iterator>: New etytypedef.
9999 <tui_source_window_iterator>: Take "end" parameter.
10000 <tui_source_window_iterator>: Take iterator.
10001 <operator*, advance>: Update.
10002 <m_iter>: Change type.
10003 <m_end>: New field.
10004 (struct tui_source_windows) <begin, end>: Update.
10005 * tui/tui-layout.c (tui_windows): New global.
10006 (tui_apply_current_layout): Clear tui_windows.
10007 (tui_layout_window::apply): Update tui_windows.
10008 * tui/tui-data.h (tui_windows): Declare.
10009 (all_tui_windows): Now inline function.
10010 (class tui_window_iterator, struct all_tui_windows): Remove.
10011
10012 2020-02-22 Tom Tromey <tom@tromey.com>
10013
10014 PR tui/17850:
10015 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10016 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10017 "height" argument.
10018 (class tui_layout_window) <get_sizes>: Likewise.
10019 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10020 argument.
10021 <get_sizes>: Add "height" argument.
10022 <m_vertical>: New field.
10023 * tui/tui-layout.c (tui_layout_split::clone): Update.
10024 (tui_layout_split::get_sizes): Add "height" argument.
10025 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10026 (tui_new_layout_command): Parse "-horizontal".
10027 (_initialize_tui_layout): Update help string.
10028 (tui_layout_split::specification): Add "-horizontal" when needed.
10029 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10030 argument.
10031 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10032 New methods.
10033
10034 2020-02-22 Tom Tromey <tom@tromey.com>
10035
10036 * tui/tui-layout.h (enum tui_adjust_result): New.
10037 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10038 (class tui_layout_window) <adjust_size>: Return
10039 tui_adjust_result. Rewrite.
10040 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10041 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10042
10043 2020-02-22 Tom Tromey <tom@tromey.com>
10044
10045 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10046 parameter and return types.
10047 (class tui_layout_base) <specification>: Add "depth".
10048 (class tui_layout_window) <specification>: Add "depth".
10049 (class tui_layout_split) <specification>: Add "depth".
10050 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10051 and return types.
10052 (tui_new_layout_command): Parse sub-layouts.
10053 (_initialize_tui_layout): Update help string.
10054 (tui_layout_window::specification): Add "depth".
10055 (add_layout_command): Update.
10056
10057 2020-02-22 Tom Tromey <tom@tromey.com>
10058
10059 * NEWS: Add "tui new-layout" item.
10060 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10061 Add new-layout command to help text.
10062 (validate_window_name): New function.
10063 (tui_new_layout_command): New function.
10064 (_initialize_tui_layout): Register "new-layout".
10065 (tui_layout_window::specification): New method.
10066 (tui_layout_window::specification): New method.
10067 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10068 method.
10069 (class tui_layout_window) <specification>: New method.
10070 (class tui_layout_split) <specification>: New method.
10071
10072 2020-02-22 Tom Tromey <tom@tromey.com>
10073
10074 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10075 * tui/tui-win.c (window_name_completer): Update comment.
10076 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10077 Declare method.
10078 (class tui_layout_window) <replace_window>: Likewise.
10079 (class tui_layout_split) <replace_window>: Likewise.
10080 (tui_set_layout): Don't declare.
10081 (tui_set_initial_layout): Declare function.
10082 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10083 (asm_regs_layout): New globals.
10084 (tui_current_layout, show_layout): Remove.
10085 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10086 (find_layout, tui_apply_layout): New function.
10087 (layout_completer): Remove.
10088 (tui_next_layout): Reimplement.
10089 (tui_next_layout_command): New function.
10090 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10091 (tui_regs_layout): Reimplement.
10092 (tui_regs_layout_command): New function.
10093 (extract_display_start_addr): Rewrite.
10094 (next_layout, prev_layout): Remove.
10095 (tui_layout_window::replace_window): New method.
10096 (tui_layout_split::replace_window): New method.
10097 (destroy_layout): New function.
10098 (layout_list): New global.
10099 (add_layout_command): New function.
10100 (initialize_layouts): Update.
10101 (tui_layout_command): New function.
10102 (_initialize_tui_layout): Install "layout" commands.
10103 * tui/tui-data.h (enum tui_layout_type): Remove.
10104 (tui_current_layout): Don't declare.
10105
10106 2020-02-22 Tom Tromey <tom@tromey.com>
10107
10108 * tui/tui-regs.c (tui_reg_layout): Remove.
10109 (tui_reg_command): Use tui_regs_layout.
10110 * tui/tui-layout.h (tui_reg_command): Declare.
10111 * tui/tui-layout.c (tui_reg_command): New function.
10112
10113 2020-02-22 Tom Tromey <tom@tromey.com>
10114
10115 * tui/tui.c (tui_rl_delete_other_windows): Call
10116 tui_remove_some_windows.
10117 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10118 Declare method.
10119 (class tui_layout_window) <remove_windows>: New method.
10120 (class tui_layout_split) <remove_windows>: Declare.
10121 (tui_remove_some_windows): Declare.
10122 * tui/tui-layout.c (tui_remove_some_windows): New function.
10123 (tui_layout_split::remove_windows): New method.
10124
10125 2020-02-22 Tom Tromey <tom@tromey.com>
10126
10127 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10128 * tui/tui-layout.h (tui_next_layout): Declare.
10129 * tui/tui-layout.c (tui_next_layout): New function.
10130
10131 2020-02-22 Tom Tromey <tom@tromey.com>
10132
10133 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10134 correct coordinates.
10135
10136 2020-02-22 Tom Tromey <tom@tromey.com>
10137
10138 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10139 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10140 DATA_WIN case.
10141
10142 2020-02-22 Tom Tromey <tom@tromey.com>
10143
10144 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10145 TUI_DISASM_WIN, not tui_win_list.
10146
10147 2020-02-22 Tom Tromey <tom@tromey.com>
10148
10149 * valprint.c (generic_val_print_enum_1)
10150 (val_print_type_code_flags): Style member names.
10151 * rust-lang.c (val_print_struct, rust_print_enum)
10152 (rust_print_struct_def, rust_internal_print_type): Style member
10153 names.
10154 * p-valprint.c (pascal_object_print_value_fields): Style member
10155 names. Only call fprintf_symbol_filtered for static members.
10156 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10157 * f-valprint.c (f_val_print): Style member names.
10158 * f-typeprint.c (f_type_print_base): Style member names.
10159 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10160 call fprintf_symbol_filtered for static members.
10161 (cp_print_class_member): Style member names.
10162 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10163 member names.
10164 * ada-valprint.c (ada_print_scalar): Style enum names.
10165 (ada_val_print_enum): Likewise.
10166 * ada-typeprint.c (print_enum_type): Style enum names.
10167
10168 2020-02-21 Tom Tromey <tom@tromey.com>
10169
10170 * psympriv.h (struct partial_symtab): Update comment.
10171
10172 2020-02-21 Tom Tromey <tromey@adacore.com>
10173
10174 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10175 type is CORE_ADDR.
10176
10177 2020-02-21 Tom de Vries <tdevries@suse.de>
10178
10179 PR gdb/25534
10180 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10181 if dependencies[i]->user != NULL.
10182
10183 2020-02-21 Ali Tamur <tamur@google.com>
10184
10185 * dwarf2/read.c (dwarf2_name): Add null check.
10186
10187 2020-02-20 Tom Tromey <tom@tromey.com>
10188
10189 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10190 ">=", in binary search.
10191 (dwarf2_find_containing_comp_unit): New overload.
10192 (run_test): New self-test.
10193 (_initialize_dwarf2_read): Register new test.
10194
10195 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10196
10197 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10198 * riscv-tdep.h: Likewise.
10199 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10200 rv32-only CSR.
10201 * features/riscv/64bit-csr.xml: Regenerated.
10202
10203 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10204 Tom Tromey <tom@tromey.com>
10205
10206 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10207 of 'fputc_unfiltered'.
10208 (putchar_unfiltered): Call 'fputc_unfiltered'.
10209 (fputc_unfiltered): Call 'fputs_unfiltered'.
10210
10211 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10212
10213 * config.in: Regenerate.
10214 * configure: Regenerate.
10215 * configure.ac: Add --with-python-libdir option.
10216 * main.c: Use WITH_PYTHON_LIBDIR.
10217
10218 2020-02-19 Tom Tromey <tom@tromey.com>
10219
10220 * symtab.c (general_symbol_info::compute_and_set_names): Use
10221 obstack_strndup. Simplify call to symbol_set_demangled_name.
10222
10223 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10224
10225 * dwarf2/read.c (allocate_signatured_type_table,
10226 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10227 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10228 Remove objfile parameter, update all callers.
10229
10230 2020-02-19 Doug Evans <dje@google.com>
10231
10232 PR rust/25535
10233 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10234 rust_enum_variant calculation.
10235
10236 2020-02-19 Tom Tromey <tromey@adacore.com>
10237
10238 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10239
10240 2020-02-19 Tom Tromey <tromey@adacore.com>
10241
10242 * ada-lang.c (cache_symbol): Use obstack_strdup.
10243
10244 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * configure: Regenerate.
10247
10248 2020-02-19 Tom Tromey <tromey@adacore.com>
10249
10250 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10251 NULL check.
10252
10253 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10254
10255 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10256
10257 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10260 if GDBSERVER is not defined.
10261 (riscv_tdesc_cache): Likewise, also store const target_desc.
10262 (STATIC_IN_GDB): Define.
10263 (riscv_create_target_description): Update declaration with
10264 STATIC_IN_GDB.
10265 (riscv_lookup_target_description): New function, only define if
10266 GDBSERVER is not defined.
10267 * arch/riscv.h (riscv_create_target_description): Declare only
10268 when GDBSERVER is defined.
10269 (riscv_lookup_target_description): New declaration when GDBSERVER
10270 is not defined.
10271 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10272 (riscv_linux_read_features): ...this, and return
10273 riscv_gdbarch_features instead of target_desc.
10274 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10275 (riscv_linux_read_description): Rename to...
10276 (riscv_linux_read_features): ...this.
10277 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10278 Update to use riscv_gdbarch_features and
10279 riscv_lookup_target_description.
10280 * riscv-tdep.c (riscv_find_default_target_description): Use
10281 riscv_lookup_target_description instead of
10282 riscv_create_target_description.
10283
10284 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10285
10286 * valprint.c (generic_val_print_enum_1): When printing a flag
10287 enum with value 0 and there is no enumerator with value 0, print
10288 just "0" instead of "(unknown: 0x0)".
10289
10290 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * valprint.c (generic_val_print_enum_1): Print unknown part of
10293 flag enum in hex.
10294
10295 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10298 flag enums to contain duplicate enumerators.
10299 * valprint.c (generic_val_print_enum_1): Update comment.
10300
10301 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10302
10303 * dwarf2/read.c: Include "count-one-bits.h".
10304 (update_enumeration_type_from_children): If an enumerator has
10305 multiple bits set, don't treat the enumeration as a "flag enum".
10306 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10307 of flag enums have 0 or 1 bit set.
10308
10309 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10310
10311 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10312 conversion.
10313 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10314 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10315 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10316 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10317 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10318
10319 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10322
10323 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10326 displaced_step_closure_up.
10327 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10328 (struct displaced_step_closure_up):
10329 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10330 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10331 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10332 Likewise.
10333 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10334 * gdbarch.c, gdbarch.h: Re-generate.
10335 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10336 displaced_step_closure_up.
10337 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10338 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10339 * infrun.h (displaced_step_closure_up): New type alias.
10340 (struct displaced_step_inferior_state) <step_closure>: Change
10341 type to displaced_step_closure_up.
10342 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10343 displaced_step_closure_up.
10344 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10345
10346 2020-02-14 Tom Tromey <tom@tromey.com>
10347
10348 * minidebug.c (gnu_debug_key): New global.
10349 (find_separate_debug_file_in_section): Use it.
10350
10351 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10354 std::unique_ptr.
10355 * gdbarch.c: Re-generate.
10356 * gdbarch.h: Re-generate.
10357 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10358 change.
10359 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10360 type to std::unique_ptr.
10361 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10362 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10363 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10364 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10365 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10366 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10367 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10368 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10369 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10370
10371 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10372
10373 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10374 std::unique_ptr.
10375 (displaced_step_clear): Rename to...
10376 (displaced_step_reset): ... this. Just call displaced->reset ().
10377 (displaced_step_clear_cleanup): Rename to...
10378 (displaced_step_reset_cleanup): ... this.
10379 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10380 (displaced_step_fixup): Likewise.
10381 (resume_1): Likewise.
10382 (handle_inferior_event): Restore child's memory before calling
10383 displaced_step_fixup on the parent.
10384 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10385 to std::unique_ptr.
10386 <step_closure>: Change type to std::unique_ptr.
10387
10388 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10389
10390 * arm-tdep.c: Include count-one-bits.h.
10391 (cleanup_block_store_pc): Use count_one_bits.
10392 (cleanup_block_load_pc): Use count_one_bits.
10393 (arm_copy_block_xfer): Use count_one_bits.
10394 (thumb2_copy_block_xfer): Use count_one_bits.
10395 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10396 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10397 (thumb_get_next_pcs_raw): Use count_one_bits.
10398 (arm_get_next_pcs_raw): Use count_one_bits_l.
10399 * arch/arm.c (bitcount): Remove.
10400 * arch/arm.h (bitcount): Remove.
10401
10402 2020-02-14 Tom Tromey <tromey@adacore.com>
10403
10404 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10405 Update.
10406 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10407 * dwarf2/loc.c (call_site_find_chain_1): Return
10408 unique_xmalloc_ptr.
10409 (call_site_find_chain): Likewise.
10410
10411 2020-02-14 Richard Biener <rguenther@suse.de>
10412
10413 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10414 on expression with division operators.
10415
10416 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10417
10418 * MAINTAINERS (Write After Approval): Adding myself.
10419
10420 2020-02-12 Tom Tromey <tom@tromey.com>
10421
10422 * event-loop.c (event_data, gdb_event, event_handler_func):
10423 Remove.
10424
10425 2020-02-12 Tom Tromey <tom@tromey.com>
10426
10427 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10428 (dwarf2_frame_objfile_data): Add comment.
10429 (find_comp_unit, set_comp_unit): New functions.
10430 (dwarf2_frame_find_fde): Use find_comp_unit.
10431 (dwarf2_build_frame_info): Use set_comp_unit.
10432
10433 2020-02-12 Tom Tromey <tom@tromey.com>
10434
10435 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10436 (comp_unit): Don't initialize objfile.
10437 (execute_cfa_program): Add text_offset parameter.
10438 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10439 (dwarf2_frame_cache): Update.
10440 (dwarf2_build_frame_info): Don't set "objfile" member.
10441
10442 2020-02-12 Tom Tromey <tom@tromey.com>
10443
10444 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10445 (decode_frame_entry): Likewise.
10446 (dwarf2_build_frame_info): Update.
10447
10448 2020-02-12 Tom Tromey <tom@tromey.com>
10449
10450 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10451 (decode_frame_entry_1): Use the comp_unit obstack.
10452
10453 2020-02-12 Tom Tromey <tom@tromey.com>
10454
10455 * dwarf2/frame.c (struct comp_unit): Add initializers and
10456 constructor.
10457 (dwarf2_frame_objfile_data): Store a comp_unit.
10458 (dwarf2_frame_find_fde): Update.
10459 (dwarf2_build_frame_info): Use "new".
10460
10461 2020-02-12 Tom Tromey <tom@tromey.com>
10462
10463 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10464 (dwarf2_fde_table): Typedef for std::vector.
10465 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10466 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10467 (decode_frame_entry): Update.
10468 (dwarf2_build_frame_info): Use "new".
10469
10470 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10471
10472 * arm-tdep.c (arm_gdbarch_init): Update.
10473 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10474 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10475 have_neon, is_m>: Change to bool.
10476
10477 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10478
10479 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10480
10481 2020-02-12 Tom Tromey <tom@tromey.com>
10482
10483 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10484
10485 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10486
10487 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10488 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10489
10490 2020-02-11 Tom Tromey <tom@tromey.com>
10491
10492 * psymtab.h: Update comment.
10493
10494 2020-02-11 Tom Tromey <tom@tromey.com>
10495
10496 * gdb_obstack.h (struct auto_obstack): Use
10497 DISABLE_COPY_AND_ASSIGN.
10498
10499 2020-02-11 Tom Tromey <tom@tromey.com>
10500
10501 * dwarf2/frame.h (struct objfile): Don't forward declare.
10502
10503 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10504
10505 * cris-tdep.c (cris_supply_gregset): Change signature to match
10506 what struct regset expects.
10507 (cris_regset): New struct.
10508 (fetch_core_registers): Remove.
10509 (cris_iterate_over_regset_sections): New function.
10510 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10511 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10512
10513 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10514
10515 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10516 registers.
10517
10518 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10519
10520 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10521
10522 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10523
10524 * configure: Re-generate.
10525
10526 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10527
10528 * configure: Re-generate.
10529
10530 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * acinclude: Update warning.m4 path.
10533 * warning.m4: Move to gdbsupport.
10534
10535 2020-02-11 Tom Tromey <tromey@adacore.com>
10536
10537 * remote.c (remote_console_output): Update.
10538 * printcmd.c (printf_command): Update.
10539 * event-loop.c (gdb_wait_for_event): Update.
10540 * linux-nat.c (sigchld_handler): Update.
10541 * remote-sim.c (gdb_os_write_stdout): Update.
10542 (gdb_os_flush_stdout): Update.
10543 (gdb_os_flush_stderr): Update.
10544 (gdb_os_write_stderr): Update.
10545 * exceptions.c (print_exception): Update.
10546 * remote-fileio.c (remote_fileio_func_read): Update.
10547 (remote_fileio_func_write): Update.
10548 * tui/tui.c (tui_enable): Update.
10549 * tui/tui-interp.c (tui_interp::init): Update.
10550 * utils.c (init_page_info): Update.
10551 (putchar_unfiltered, fputc_unfiltered): Update.
10552 (gdb_flush): Update.
10553 (emit_style_escape): Update.
10554 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10555 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10556 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10557 (stderr_file::write): Update.
10558 (stderr_file::puts): Update.
10559 * ui-file.h (ui_file_isatty, ui_file_write)
10560 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10561 (ui_file_puts): Don't declare.
10562
10563 2020-02-10 Tom de Vries <tdevries@suse.de>
10564
10565 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10566 sentinel to char *.
10567
10568 2020-02-09 Tom de Vries <tdevries@suse.de>
10569
10570 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10571 filename if it matches "<artificial>".
10572
10573 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10574
10575 * windows-tdep.c (struct enum_value_name): New struct.
10576 (create_enum): New function.
10577 (windows_get_siginfo_type): Create and use enum types.
10578
10579 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10580
10581 * NEWS: Mention $_siginfo support for Windows.
10582 * windows-nat.c (handle_exception): Set siginfo_er.
10583 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10584 (windows_xfer_siginfo): New function.
10585 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10586 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10587 (init_windows_gdbarch_data): New function.
10588 (get_windows_gdbarch_data): New function.
10589 (windows_get_siginfo_type): New function.
10590 (windows_init_abi): Register windows_get_siginfo_type.
10591 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10592
10593 2020-02-08 Tom Tromey <tom@tromey.com>
10594
10595 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10596 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10597 <keep>: Declare method.
10598 <m_keep>: Remove member.
10599 <~cutu_reader>: Remove.
10600 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10601 (cutu_reader::cutu_reader): Update.
10602 (cutu_reader::keep): Rename from ~cutu_reader.
10603 (process_psymtab_comp_unit, build_type_psymtabs_1)
10604 (process_skeletonless_type_unit, load_partial_comp_unit)
10605 (load_full_comp_unit, dwarf2_read_addr_index)
10606 (read_signatured_type): Update.
10607
10608 2020-02-08 Tom Tromey <tom@tromey.com>
10609
10610 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10611 "want_partial_unit" parameter.
10612 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10613 Inline check for DW_TAG_partial_unit.
10614 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10615
10616 2020-02-08 Tom Tromey <tom@tromey.com>
10617
10618 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10619 read.c.
10620 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10621 read.c.
10622
10623 2020-02-08 Tom Tromey <tom@tromey.com>
10624
10625 * dwarf2/read.c (read_address): Move to comp-unit.c.
10626 (dwarf2_rnglists_process, dwarf2_ranges_process)
10627 (read_attribute_value, dwarf_decode_lines_1)
10628 (var_decode_location, decode_locdesc): Update.
10629 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10630 read.c. Remove "cu" parameter.
10631 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10632 method.
10633
10634 2020-02-08 Tom Tromey <tom@tromey.com>
10635
10636 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10637 (read_indirect_line_string): Update.
10638 * dwarf2/comp-unit.c (read_offset): Remove.
10639 (read_comp_unit_head): Update.
10640 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10641 method.
10642 (read_offset): Don't declare.
10643
10644 2020-02-08 Tom Tromey <tom@tromey.com>
10645
10646 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10647 * dwarf2/read.c (struct comp_unit_head): Move to
10648 dwarf2/comp-unit.h.
10649 (enum class rcuh_kind): Move to comp-unit.h.
10650 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10651 (read_comp_unit_head, error_check_comp_unit_head)
10652 (read_and_check_comp_unit_head): Move to comp-unit.c.
10653 (read_offset, dwarf_unit_type_name): Likewise.
10654 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10655 (cutu_reader::cutu_reader, read_call_site_scope)
10656 (find_partial_die, follow_die_offset): Update.
10657 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10658
10659 2020-02-08 Tom Tromey <tom@tromey.com>
10660
10661 * dwarf2/read.c (read_offset_1): Move to leb.c.
10662 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10663 (dwarf_decode_macro_bytes): Update.
10664 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10665 * dwarf2/leb.h (read_offset): Declare.
10666
10667 2020-02-08 Tom Tromey <tom@tromey.com>
10668
10669 * dwarf2/read.c (dwarf2_section_size): Remove.
10670 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10671 Update.
10672 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10673
10674 2020-02-08 Tom Tromey <tom@tromey.com>
10675
10676 * dwarf2/read.c (read_initial_length): Move to leb.c.
10677 * dwarf2/leb.h (read_initial_length): Declare.
10678 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10679 handle_nonstd parameter.
10680 * dwarf2/frame.c (read_initial_length): Remove.
10681 (decode_frame_entry_1): Update.
10682
10683 2020-02-08 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2/loc.c (dwarf2_find_location_expression)
10686 (dwarf_evaluate_loc_desc::get_tls_address)
10687 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10688 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10689 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10690 (dwarf2_compile_property_to_c)
10691 (dwarf2_loc_desc_get_symbol_read_needs)
10692 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10693 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10694 (loclist_describe_location, loclist_tracepoint_var_ref)
10695 (loclist_generate_c_location): Update.
10696 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10697 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10698 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10699 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10700 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10701 (dwarf2_per_cu_data::addr_size)
10702 (dwarf2_per_cu_data::ref_addr_size)
10703 (dwarf2_per_cu_data::text_offset)
10704 (dwarf2_per_cu_data::addr_type): Now methods.
10705 (per_cu_header_read_in): Make per_cu "const".
10706 (dwarf2_version): Remove.
10707 (dwarf2_per_cu_data::int_type): Now a method.
10708 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10709 (set_die_type, read_array_type, read_subrange_index_type)
10710 (read_tag_string_type, read_subrange_type): Update.
10711 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10712 offset_size, ref_addr_size, text_offset, addr_type, version,
10713 objfile, int_type, addr_sized_int_type>: Declare methods.
10714
10715 2020-02-08 Tom Tromey <tom@tromey.com>
10716
10717 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10718 Move earlier.
10719
10720 2020-02-08 Tom Tromey <tom@tromey.com>
10721
10722 * dwarf2/read.h (dwarf_line_debug): Declare.
10723 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10724 * dwarf2/read.c: Move line_header code to new files.
10725 (dwarf_line_debug): No longer static.
10726 * dwarf2/line-header.c: New file.
10727 * dwarf2/line-header.h: New file.
10728
10729 2020-02-08 Tom Tromey <tom@tromey.com>
10730
10731 * dwarf2/read.c (struct line_header) <file_full_name,
10732 file_file_name>: Return unique_xmalloc_ptr.
10733 (line_header::file_file_name): Update.
10734 (line_header::file_full_name): Update.
10735 (dw2_get_file_names_reader): Update.
10736 (macro_start_file): Update.
10737
10738 2020-02-08 Tom Tromey <tom@tromey.com>
10739
10740 * dwarf2/read.c (struct line_header) <file_full_name,
10741 file_file_name>: Declare methods.
10742 (dw2_get_file_names_reader): Update.
10743 (file_file_name): Now a method.
10744 (file_full_name): Likewise.
10745 (macro_start_file): Update.
10746
10747 2020-02-08 Tom Tromey <tom@tromey.com>
10748
10749 * dwarf2/read.c (dwarf_always_disassemble)
10750 (show_dwarf_always_disassemble): Move to loc.c.
10751 (_initialize_dwarf2_read): Move "always-disassemble" registration
10752 to loc.c.
10753 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10754 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10755 static.
10756 (show_dwarf_always_disassemble): Move from read.c.
10757 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10758
10759 2020-02-08 Tom Tromey <tom@tromey.com>
10760
10761 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10762 (create_quick_file_names_table): Return htab_up.
10763 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10764 Update.
10765 * dwarf2/read.h (struct dwarf2_per_objfile)
10766 <quick_file_names_table>: Now htab_up.
10767
10768 2020-02-08 Tom Tromey <tom@tromey.com>
10769
10770 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10771
10772 2020-02-08 Tom Tromey <tom@tromey.com>
10773
10774 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10775 Rewrite.
10776 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10777 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10778 (abbrev_table::abbrev_table): No longer inline.
10779 (ABBREV_HASH_SIZE): Remove.
10780 (abbrev_table::m_abbrevs): Now an htab_up.
10781
10782 2020-02-08 Tom Tromey <tom@tromey.com>
10783
10784 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10785 (cutu_reader): Update.
10786 (build_type_psymtabs_1): Update.
10787 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10788 (abbrev_table::alloc_abbrev): Update.
10789 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10790 (abbrev_table::read): New static method, renamed from
10791 abbrev_table_read_table.
10792 (abbrev_table::alloc_abbrev)
10793 (abbrev_table::add_abbrev): Now private.
10794 (abbrev_table::abbrev_table): Now private.
10795 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10796
10797 2020-02-08 Tom Tromey <tom@tromey.com>
10798
10799 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10800 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10801 htab_up.
10802
10803 2020-02-08 Tom Tromey <tom@tromey.com>
10804
10805 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10806 htab_up.
10807 (lookup_dwo_unit_in_dwp): Update.
10808 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10809 on obstack.
10810
10811 2020-02-08 Tom Tromey <tom@tromey.com>
10812
10813 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10814 obstack.
10815
10816 2020-02-08 Tom Tromey <tom@tromey.com>
10817
10818 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10819 line_header_hash.
10820 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10821 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10822 Change type to htab_up.
10823
10824 2020-02-08 Tom Tromey <tom@tromey.com>
10825
10826 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10827 htab_up. Don't allocate on obstack.
10828 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10829 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10830 Change type to htab_up.
10831
10832 2020-02-08 Tom Tromey <tom@tromey.com>
10833
10834 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10835 Change type to htab_up.
10836 * dwarf2/read.c (create_signatured_type_table_from_index)
10837 (create_signatured_type_table_from_debug_names)
10838 (create_all_type_units, add_type_unit)
10839 (lookup_dwo_signatured_type, lookup_signatured_type)
10840 (process_skeletonless_type_unit): Update.
10841 (create_debug_type_hash_table, create_debug_types_hash_table):
10842 Change type of types_htab.
10843 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10844 htab_up. Don't allocate on obstack.
10845 (create_cus_hash_table): Change type of cus_htab parameter.
10846 (struct dwo_file) <cus, tus>: Now htab_up.
10847 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10848 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10849 (queue_and_load_all_dwo_tus): Update.
10850 * dwarf2/index-write.c (write_gdbindex): Update.
10851 (write_debug_names): Update.
10852
10853 2020-02-08 Tom Tromey <tom@tromey.com>
10854
10855 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10856 dwarf2/read.c. Remove "next" member. Add constructor ntad
10857 destructor.
10858 (struct dwarf2_per_objfile) <queue>: New member.
10859 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10860 dwarf2/read.h.
10861 (dwarf2_queue, dwarf2_queue_tail): Remove.
10862 (class dwarf2_queue_guard): Add parameter to constructor. Use
10863 DISABLE_COPY_AND_ASSIGN.
10864 <m_per_objfile>: New member.
10865 <~dwarf2_queue_guard>: Rewrite.
10866 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10867 Update.
10868 (~dwarf2_queue_item): New.
10869
10870 2020-02-08 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2/read.c (struct die_info) <has_children>: New member.
10873 (dw2_get_file_names_reader): Remove has_children.
10874 (dw2_get_file_names): Update.
10875 (read_cutu_die_from_dwo): Remove has_children.
10876 (cutu_reader::init_tu_and_read_dwo_dies)
10877 (cutu_reader::cutu_reader): Update.
10878 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10879 Remove has_children.
10880 (build_type_psymtabs_1, process_skeletonless_type_unit)
10881 (load_partial_comp_unit, load_full_comp_unit): Update.
10882 (create_dwo_cu_reader): Remove has_children.
10883 (create_cus_hash_table, read_die_and_children): Update.
10884 (read_full_die_1,read_full_die): Remove has_children.
10885 (read_signatured_type): Update.
10886 (class cutu_reader) <has_children>: Remove.
10887
10888 2020-02-08 Tom Tromey <tom@tromey.com>
10889
10890 * dwarf2/expr.c: Rename from dwarf2expr.c.
10891 * dwarf2/expr.h: Rename from dwarf2expr.h.
10892 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10893 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10894 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10895 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10896 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10897 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10898 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10899 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10900 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10901 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10902 * dwarf2/loc.c: Rename from dwarf2loc.c.
10903 * dwarf2/loc.h: Rename from dwarf2loc.h.
10904 * dwarf2/read.c: Rename from dwarf2read.c.
10905 * dwarf2/read.h: Rename from dwarf2read.h.
10906 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10907 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10908 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10909 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10910 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10911 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10912 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10913 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10914 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10915 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10916 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10917 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10918 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10919 Update.
10920 * Makefile.in (COMMON_SFILES): Update.
10921 (HFILES_NO_SRCDIR): Update.
10922
10923 2020-02-08 Tom Tromey <tom@tromey.com>
10924
10925 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10926 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10927
10928 2020-02-08 Tom Tromey <tom@tromey.com>
10929
10930 * dwarf2read.h (struct die_info): Don't declare.
10931
10932 2020-02-08 Tom Tromey <tom@tromey.com>
10933
10934 * dwarf2read.h (die_info_ptr): Remove typedef.
10935
10936 2020-02-08 Tom Tromey <tom@tromey.com>
10937
10938 * dwarf2read.c (read_call_site_scope)
10939 (handle_data_member_location, dwarf2_add_member_fn)
10940 (mark_common_block_symbol_computed, read_common_block)
10941 (attr_to_dynamic_prop, partial_die_info::read)
10942 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10943 (dwarf2_symbol_mark_computed, set_die_type): Update.
10944 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10945 method.
10946 (attr_form_is_block): Don't declare.
10947 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10948
10949 2020-02-08 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2read.c (dwarf2_find_base_address, )
10952 (read_call_site_scope, rust_containing_type)
10953 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10954 (handle_data_member_location, dwarf2_add_member_fn)
10955 (get_alignment, read_structure_type, process_structure_scope)
10956 (mark_common_block_symbol_computed, read_common_block)
10957 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10958 (partial_die_info::read, read_attribute_value, new_symbol)
10959 (lookup_die_type, dwarf2_get_ref_die_offset)
10960 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10961 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10962 (dwarf2_symbol_mark_computed): Update.
10963 * dwarf2/attribute.h (struct attribute) <value_as_address,
10964 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10965 methods.
10966 (value_as_address, attr_form_is_section_offset)
10967 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10968 * dwarf2/attribute.c (attribute::value_as_address)
10969 (attribute::form_is_section_offset, attribute::form_is_constant)
10970 (attribute::form_is_ref): Now methods.
10971
10972 2020-02-08 Tom Tromey <tom@tromey.com>
10973
10974 * dwarf2read.c (struct attribute, DW_STRING)
10975 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10976 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10977 (attr_form_is_block, attr_form_is_section_offset)
10978 (attr_form_is_constant, attr_form_is_ref): Move.
10979 * dwarf2/attribute.h: New file.
10980 * dwarf2/attribute.c: New file, from dwarf2read.c.
10981 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10982
10983 2020-02-08 Tom Tromey <tom@tromey.com>
10984
10985 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10986 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10987 Move.
10988 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10989 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10990 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10991 abbrev.c.
10992 * dwarf2/abbrev.h: New file.
10993 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10994 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10995
10996 2020-02-08 Tom Tromey <tom@tromey.com>
10997
10998 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10999 (dwarf2_section_size, dwarf2_get_section_info)
11000 (create_signatured_type_table_from_debug_names)
11001 (create_addrmap_from_aranges, read_debug_names_from_section)
11002 (get_gdb_index_contents_from_section, read_comp_unit_head)
11003 (error_check_comp_unit_head, read_abbrev_offset)
11004 (create_debug_type_hash_table, init_cu_die_reader)
11005 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11006 (read_comp_units_from_section, create_cus_hash_table)
11007 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11008 (create_dwp_v2_section, dwarf2_rnglists_process)
11009 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11010 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11011 (read_indirect_string_from_dwz, read_addr_index_1)
11012 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11013 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11014 (fill_in_loclist_baton): Update.
11015 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11016 get_containing_section, get_bfd_owner, get_bfd_section,
11017 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11018 (dwarf2_read_section, get_section_name, get_section_file_name)
11019 (get_containing_section, get_section_bfd_owner)
11020 (get_section_bfd_section, get_section_name, get_section_file_name)
11021 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11022 declare.
11023 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11024 (dwarf2_section_info::get_bfd_owner)
11025 (dwarf2_section_info::get_bfd_section)
11026 (dwarf2_section_info::get_name)
11027 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11028 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11029 (dwarf2_section_info::read): Now methods.
11030 * dwarf-index-write.c (class debug_names): Update.
11031
11032 2020-02-08 Tom Tromey <tom@tromey.com>
11033
11034 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11035 Move to dwarf2/section.h.
11036 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11037 (get_section_bfd_section, get_section_name)
11038 (get_section_file_name, get_section_id, get_section_flags)
11039 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11040 dwarf2/section.c.
11041 * dwarf2/section.h: New file.
11042 * dwarf2/section.c: New file, from dwarf2read.c.
11043 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11044
11045 2020-02-08 Tom Tromey <tom@tromey.com>
11046
11047 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11048 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11049 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11050 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11051 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11052 * dwarf2/leb.h: New file, from dwarf2read.c.
11053 * dwarf2/leb.c: New file, from dwarf2read.c.
11054 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11055 Remove.
11056 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11057 (COMMON_SFILES): Add dwarf2/leb.c.
11058
11059 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11060
11061 GDB 9.1 released.
11062
11063 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11064
11065 PR gdb/25190:
11066 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11067 * gdb/remote.c (remote_console_output): Update.
11068 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11069 (ui_file_puts): ...this.
11070 * gdb/ui-file.h (ui_file_puts): Add declaration.
11071 * gdb/utils.c (emit_style_escape): Update.
11072 (flush_wrap_buffer): Update.
11073 (fputs_maybe_filtered): Update.
11074 (fputs_unfiltered): Add function.
11075
11076 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11077
11078 * gdb/event-loop.c (gdb_wait_for_event): Update.
11079 * gdb/printcmd.c (printf_command): Update.
11080 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11081 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11082 (gdb_os_flush_stderr): Update.
11083 * gdb/remote.c (remote_console_output): Update.
11084 * gdb/ui-file.c (gdb_flush): Rename to...
11085 (ui_file_flush): ...this.
11086 (stderr_file::write): Update.
11087 (stderr_file::puts): Update.
11088 * gdb/ui-file.h (gdb_flush): Rename to...
11089 (ui_file_flush): ...this.
11090 * gdb/utils.c (gdb_flush): Add function.
11091 * gdb/utils.h (gdb_flush): Add declaration.
11092
11093 2020-02-07 Tom Tromey <tromey@adacore.com>
11094
11095 PR breakpoints/24915:
11096 * source.c (find_and_open_source): Do not check basenames_may_differ.
11097
11098 2020-02-07 Tom Tromey <tom@tromey.com>
11099
11100 * README: Update gdbserver documentation.
11101 * gdbserver: Move to top level.
11102 * configure.tgt (build_gdbserver): Remove.
11103 * configure.ac: Remove --enable-gdbserver.
11104 * configure: Rebuild.
11105 * Makefile.in (distclean): Don't mention gdbserver.
11106
11107 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11108
11109 * source-cache.c (source_cache::ensure): Surround
11110 get_plain_source_lines with a try/catch.
11111 (source_cache::get_line_charpos): Get rid of try/catch
11112 and only check for the return value of "ensure".
11113 * tui/tui-source.c (tui_source_window::set_contents):
11114 Simplify "nlines" calculation.
11115
11116 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11117
11118 * MAINTAINERS (Write After Approval): Add myself.
11119
11120 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11121
11122 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11123 function call.
11124
11125 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11126
11127 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11128
11129 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11130
11131 * nat/riscv-linux-tdesc.h: New file.
11132 * nat/riscv-linux-tdesc.c: New file, taking code from...
11133 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11134 ... here.
11135 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11136 NATDEPFILES.
11137
11138 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11139
11140 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11141 we don't set the fake simulator ptid to the null_ptid.
11142
11143 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11144
11145 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11146 * gdbthread.h (class thread_info) <resumed>: Likewise.
11147 * infrun.c (resume_1): Likewise.
11148 (proceed): Likewise.
11149 (infrun_thread_stop_requested): Likewise.
11150 (stop_all_threads): Likewise.
11151 (handle_inferior_event): Likewise.
11152 (restart_threads): Likewise.
11153 (finish_step_over): Likewise.
11154 (keep_going_stepped_thread): Likewise.
11155 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11156 (linux_handle_extended_wait): Likewise.
11157 * record-btrace.c (get_thread_current_frame_id): Likewise.
11158 * record-full.c (record_full_wait_1): Likewise.
11159 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11160 * target.c (target_resume): Likewise.
11161 * thread.c (set_running_thread): Likewise.
11162
11163 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11164
11165 * f-valprint.c (f77_print_array_1): Changed datatype of index
11166 variable to LONGEST from int to enable it to contain bound
11167 values correctly.
11168
11169 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11170
11171 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11172 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11173 offsets according to FLEN determined.
11174 (riscv_linux_nat_target::read_description): Determine FLEN
11175 dynamically.
11176 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11177 according to FLEN determined.
11178 (riscv_linux_nat_target::store_registers): Likewise.
11179
11180 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11181
11182 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11183 when reg->group is empty and reggroup is not.
11184
11185 2020-01-31 Tom Tromey <tromey@adacore.com>
11186
11187 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11188 Call beneath target's mourn_inferior after unpushing.
11189
11190 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11191
11192 PR tui/9765
11193 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11194 have enough lines to fill the screen, still return the lowest
11195 address we found.
11196
11197 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11198
11199 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11200 '-', '<', and '>' commands.
11201
11202 2020-01-29 Pedro Alves <palves@redhat.com>
11203 Sergio Durigan Junior <sergiodj@redhat.com>
11204
11205 * infcmd.c (construct_inferior_arguments): Assert that
11206 'argc' is greater than 0.
11207
11208 2020-01-29 Luis Machado <luis.machado@linaro.org>
11209
11210 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11211 (BRK_INSN_MASK): Define to 0xd4200000.
11212 (aarch64_program_breakpoint_here_p): New function.
11213 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11214 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11215 breakpoint.c.
11216 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11217 breakpoint.h
11218 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11219 call gdbarch_program_breakpoint_here_p.
11220 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11221 default_program_breakpoint_here_p, changed return type to bool and
11222 simplified.
11223 * breakpoint.h (program_breakpoint_here): Moved prototype to
11224 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11225 return type to bool.
11226 * gdbarch.c: Regenerate.
11227 * gdbarch.h: Regenerate.
11228 * gdbarch.sh (program_breakpoint_here_p): New method.
11229 * infrun.c (handle_signal_stop): Call
11230 gdbarch_program_breakpoint_here_p.
11231
11232 2020-01-26 Tom Tromey <tom@tromey.com>
11233
11234 * ctfread.c (struct ctf_fp_info): Reindent.
11235 (_initialize_ctfread): Remove.
11236
11237 2020-01-26 Tom Tromey <tom@tromey.com>
11238
11239 * psymtab.c (partial_map_expand_apply)
11240 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11241 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11242 (psym_print_stats, psym_expand_symtabs_for_function)
11243 (psym_map_symbol_filenames, psym_map_matching_symbols)
11244 (psym_expand_symtabs_matching)
11245 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11246 (maintenance_check_psymtabs): Use new methods.
11247 * psympriv.h (struct partial_symtab) <readin_p,
11248 get_compunit_symtab>: New methods.
11249 <readin, compunit_symtab>: Remove members.
11250 (struct standard_psymtab): New.
11251 (struct legacy_psymtab): Derive from standard_psymtab.
11252 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11253 standard_psymtab.
11254 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11255
11256 2020-01-26 Tom Tromey <tom@tromey.com>
11257
11258 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11259 read_dependencies. Add assert.
11260 * psymtab.c (partial_symtab::read_dependencies): New method.
11261 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11262 method.
11263 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11264 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11265 read_dependencies.
11266 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11267 Add assert.
11268
11269 2020-01-26 Tom Tromey <tom@tromey.com>
11270
11271 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11272 Call expand_psymtab.
11273 (xcoff_read_symtab): Call expand_psymtab.
11274 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11275 legacy_expand_psymtab.
11276 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11277 method.
11278 (struct legacy_psymtab) <expand_psymtab>: Implement.
11279 <legacy_expand_psymtab>: New member.
11280 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11281 (parse_partial_symbols): Set legacy_expand_psymtab.
11282 (psymtab_to_symtab_1): Change argument order. Call
11283 expand_psymtab.
11284 (new_psymtab): Set legacy_expand_psymtab.
11285 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11286 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11287 expand_psymtab.
11288 (dwarf2_psymtab::expand_psymtab): Rename from
11289 psymtab_to_symtab_1. Call expand_psymtab.
11290 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11291 (dbx_end_psymtab): Likewise.
11292 (dbx_psymtab_to_symtab_1): Change argument order. Call
11293 expand_psymtab.
11294 (dbx_read_symtab): Call expand_psymtab.
11295 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11296 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11297 (ctf_psymtab::read_symtab): Call expand_psymtab.
11298
11299 2020-01-26 Tom Tromey <tom@tromey.com>
11300
11301 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11302 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11303 messages.
11304 * mdebugread.c (mdebug_read_symtab): Remove prints.
11305 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11306 assert.
11307 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11308
11309 2020-01-26 Tom Tromey <tom@tromey.com>
11310
11311 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11312 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11313 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11314 legacy_symtab.
11315 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11316 * psymtab.c (psymtab_to_symtab): Call method.
11317 (dump_psymtab): Update.
11318 * psympriv.h (struct partial_symtab): Add virtual destructor.
11319 <read_symtab>: New method.
11320 (struct legacy_symtab): New.
11321 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11322 (struct pst_map) <pst>: Now a legacy_psymtab.
11323 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11324 (new_psymtab): Use legacy_psymtab.
11325 * dwarf2read.h (struct dwarf2_psymtab): New.
11326 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11327 * dwarf2read.c (dwarf2_create_include_psymtab)
11328 (dwarf2_build_include_psymtabs, create_type_unit_group)
11329 (create_partial_symtab, process_psymtab_comp_unit_reader)
11330 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11331 (set_partial_user): Use dwarf2_psymtab.
11332 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11333 (psymtab_to_symtab_1, process_full_comp_unit)
11334 (process_full_type_unit, dwarf2_ranges_read)
11335 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11336 (dwarf_decode_lines): Use dwarf2_psymtab.
11337 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11338 (add_address_entry_worker, write_one_signatured_type)
11339 (recursively_count_psymbols, recursively_write_psymbols)
11340 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11341 (write_debug_names): Likewise.
11342 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11343 <pst>: Now a legacy_psymtab.
11344 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11345 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11346 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11347 * ctfread.c (struct ctf_psymtab): New.
11348 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11349 ctf_psymtab.
11350 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11351 (create_partial_symtab): Return a ctf_psymtab.
11352 (scan_partial_symbols): Update.
11353
11354 2020-01-26 Tom Tromey <tom@tromey.com>
11355
11356 * xcoffread.c (xcoff_start_psymtab): Use new.
11357 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11358 renamed from start_psymtab_common.
11359 * psympriv.h (struct partial_symtab): Add new constructor.
11360 (start_psymtab_common): Don't declare.
11361 * mdebugread.c (parse_partial_symbols): Use new.
11362 * dwarf2read.c (create_partial_symtab): Use new.
11363 * dbxread.c (start_psymtab): Use new.
11364 * ctfread.c (create_partial_symtab): Use new.
11365
11366 2020-01-26 Tom Tromey <tom@tromey.com>
11367
11368 * xcoffread.c (xcoff_end_psymtab): Use new.
11369 * psymtab.c (start_psymtab_common): Use new.
11370 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11371 Update.
11372 * psympriv.h (struct partial_symtab): Add parameters to
11373 constructor. Don't inline.
11374 (allocate_psymtab): Don't declare.
11375 * mdebugread.c (new_psymtab): Use new.
11376 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11377 * dbxread.c (dbx_end_psymtab): Use new.
11378
11379 2020-01-26 Tom Tromey <tom@tromey.com>
11380
11381 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11382 allocate_psymtab. Update documentation.
11383 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11384 allocate_psymtab. Do not use new.
11385 (allocate_psymtab): Use new. Update.
11386
11387 2020-01-26 Tom Tromey <tom@tromey.com>
11388
11389 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11390 * psymtab.c (psym_print_stats): Update.
11391 * psympriv.h (struct partial_symtab) <readin,
11392 psymtabs_addrmap_supported, anonymous>: Now bool.
11393 * mdebugread.c (psymtab_to_symtab_1): Update.
11394 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11395 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11396 (process_full_comp_unit, process_full_type_unit): Update.
11397 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11398 * ctfread.c (psymtab_to_symtab): Update.
11399
11400 2020-01-26 Tom Tromey <tom@tromey.com>
11401
11402 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11403 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11404 * psymtab.c (psymtab_storage): Delete psymtabs.
11405 (psymtab_storage::allocate_psymtab): Use new.
11406 (psymtab_storage::discard_psymtab): Use delete.
11407 * psympriv.h (struct partial_symtab): Add constructor and
11408 initializers.
11409
11410 2020-01-26 Tom Tromey <tom@tromey.com>
11411
11412 * machoread.c: Do not include psympriv.h.
11413
11414 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11415
11416 * NEWS: Mention the new option and the set/show commands.
11417
11418 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11419
11420 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11421 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11422 (validate_exec_file): New variables, enums, functions.
11423 (exec_file_locate_attach, print_section_info): Style the filenames.
11424 (_initialize_exec): Install show_exec_file_mismatch_command and
11425 set_exec_file_mismatch_command.
11426 * gdbcore.h (validate_exec_file): Declare.
11427 * infcmd.c (attach_command): Call validate_exec_file.
11428 * remote.c ( remote_target::remote_add_inferior): Likewise.
11429
11430 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11431
11432 * frame.c (find_frame_sal): Move call to get_next_frame into more
11433 inner scope.
11434 * inline-frame.c (inilne_state) <inline_state>: Update argument
11435 types.
11436 (inilne_state) <skipped_symbol>: Rename to...
11437 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11438 (skip_inline_frames): Build vector of skipped symbols and use this
11439 to reate the inline_state.
11440 (inline_skipped_symbol): Add a comment and some assertions, fetch
11441 skipped symbol from the list.
11442
11443 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11444
11445 * buildsym.c (lte_is_less_than): Delete.
11446 (buildsym_compunit::end_symtab_with_blockvector): Create local
11447 lambda function to sort line table entries, and use
11448 std::stable_sort instead of std::sort.
11449 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11450 markers when looking for a previous line.
11451
11452 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11453
11454 * dwarf2read.c (lnp_state_machine::record_line): Include
11455 end_sequence parameter in debug print out. Record the line if we
11456 are at an end_sequence marker even if it's not the start of a
11457 statement.
11458 * symmisc.c (maintenance_print_one_line_table): Print end of
11459 sequence markers with 'END' not '0'.
11460
11461 2020-01-24 Pedro Alves <palves@redhat.com>
11462
11463 PR gdb/25410
11464 * thread.c (scoped_restore_current_thread::restore): Use
11465 switch_to_inferior_no_thread.
11466 * exec.c: Include "progspace-and-thread.h".
11467 (add_target_sections, remove_target_sections):
11468 scoped_restore_current_pspace_and_thread instead of
11469 scoped_restore_current_thread.
11470 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11471 and aspace to the inferior before calling clone_program_space.
11472 Remove stale comment.
11473
11474 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11475
11476 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11477 (arm_netbsd_nat_target::fetch_registers): ...this.
11478 (arm_nbsd_nat_target::store_registers): Rename to...
11479 (arm_netbsd_nat_target::store_registers): ...this.
11480
11481 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11482
11483 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11484 register_t.
11485
11486 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11487
11488 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11489 Update comment.
11490 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11491 Likewise.
11492 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11493 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11494 the correct replacement (iterate_over_regset_sections).
11495 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11496 Update comment.
11497
11498 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11499
11500 PR gdb/23718
11501 * gdb/python/python.c (execute_gdb_command): Call
11502 async_enable_stdin in catch block.
11503
11504 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11505
11506 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11507 SWITCH_THRU_ALL_UIS.
11508
11509 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11510
11511 PR tui/9765
11512 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11513 comment, add extra parameter, and update to store previous symbol
11514 when appropriate.
11515 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11516 add extra parameter.
11517 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11518 remove unneeded parameter, add try/catch around gdb_print_insn,
11519 rewrite to add items to asm_lines vector.
11520 (tui_find_backward_disassembly_start_address): New function.
11521 (tui_find_disassembly_address): Updated throughout.
11522 (tui_disasm_window::set_contents): Update for changes to
11523 tui_disassemble.
11524 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11525 number of lines to scroll.
11526
11527 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11528
11529 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11530 (SECT_OFF_DATA): Likewise.
11531 (SECT_OFF_RODATA): Likewise.
11532 (SECT_OFF_TEXT): Likewise.
11533 (SECT_OFF_BSS): Likewise.
11534 (struct objfile) <text_section_offset, data_section_offset>: New
11535 methods.
11536 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11537 objfile::text_section_offset.
11538 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11539 * coffread.c (coff_symtab_read): Likewise.
11540 (enter_linenos): Likewise.
11541 (process_coff_symbol): Likewise.
11542 * ctfread.c (get_objfile_text_range): Likewise.
11543 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11544 Use objfile::data_section_offset.
11545 * dwarf2-frame.c (execute_cfa_program): Use
11546 objfile::text_section_offset.
11547 (dwarf2_frame_find_fde): Likewise.
11548 * dwarf2read.c (create_addrmap_from_index): Likewise.
11549 (create_addrmap_from_aranges): Likewise.
11550 (dw2_find_pc_sect_compunit_symtab): Likewise.
11551 (process_psymtab_comp_unit_reader): Likewise.
11552 (add_partial_symbol): Likewise.
11553 (add_partial_subprogram): Likewise.
11554 (process_full_comp_unit): Likewise.
11555 (read_file_scope): Likewise.
11556 (read_func_scope): Likewise.
11557 (read_lexical_block_scope): Likewise.
11558 (read_call_site_scope): Likewise.
11559 (dwarf2_rnglists_process): Likewise.
11560 (dwarf2_ranges_process): Likewise.
11561 (dwarf2_ranges_read): Likewise.
11562 (dwarf_decode_lines_1): Likewise.
11563 (new_symbol): Likewise.
11564 (dwarf2_fetch_die_loc_sect_off): Likewise.
11565 (dwarf2_per_cu_text_offset): Likewise.
11566 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11567 * hppa-tdep.c (read_unwind_info): Likewise.
11568 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11569 * psympriv.h (struct partial_symtab): Likewise.
11570 * psymtab.c (find_pc_sect_psymtab): Likewise.
11571 * solib-svr4.c (enable_break): Likewise.
11572 * stap-probe.c (relocate_address): Use
11573 objfile::data_section_offset.
11574 * xcoffread.c (enter_line_range): Use
11575 objfile::text_section_offset.
11576 (read_xcoff_symtab): Likewise.
11577
11578 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11579
11580 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11581 declaration to narrower scopes.
11582
11583 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11584
11585 * darwin-nat.h (struct darwin_exception_msg, enum
11586 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11587 Move up.
11588 (class darwin_nat_target) <wait_1, check_new_threads,
11589 decode_exception_message, decode_message, stop_inferior,
11590 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11591 * darwin-nat.c (darwin_check_new_threads): Rename to...
11592 (darwin_nat_target::check_new_threads): ... this.
11593 (darwin_suspend_inferior_it): Remove.
11594 (darwin_decode_exception_message): Rename to...
11595 (darwin_nat_target::decode_exception_message): ... this.
11596 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11597 (darwin_decode_message): Rename to...
11598 (darwin_nat_target::decode_message): ... this.
11599 (cancel_breakpoint): Rename to...
11600 (darwin_nat_target::cancel_breakpoint): ... this.
11601 (darwin_wait): Rename to...
11602 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11603 instead of iterate_over_inferiors.
11604 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11605 (darwin_stop_inferior): Rename to...
11606 (darwin_nat_target::stop_inferior): ... this.
11607 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11608 (darwin_init_thread_list): Rename to...
11609 (darwin_nat_target::init_thread_list): ... this.
11610 (darwin_ptrace_him): Rename to...
11611 (darwin_nat_target::ptrace_him): ... this.
11612 (darwin_nat_target::create_inferior): Pass lambda function to
11613 fork_inferior.
11614 (darwin_nat_target::detach): Call stop_inferior instead of
11615 darwin_stop_inferior.
11616 * fork-inferior.h (fork_inferior): Change init_trace_fun
11617 parameter to gdb::function_view.
11618 * fork-inferior.c (fork_inferior): Likewise.
11619
11620 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11621
11622 * i386-cygwin-tdep.c (core_process_module_section): Update.
11623 * windows-nat.c (struct lm_info_windows): Add text_offset.
11624 (windows_xfer_shared_libraries): Update.
11625 * windows-tdep.c (windows_xfer_shared_library):
11626 Add text_offset_cached argument.
11627 * windows-tdep.h (windows_xfer_shared_library): Update.
11628
11629 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11630
11631 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11632
11633 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11634
11635 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11636 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11637 replace with range-based for.
11638 (gdbsim_interrupt_inferior): Remove.
11639 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11640 with a range-based for. Inline code from
11641 gdbsim_interrupt_inferior.
11642
11643 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11644
11645 * infrun.c (proceed): Fix indentation.
11646
11647 2020-01-21 Tom Tromey <tromey@adacore.com>
11648
11649 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11650 * python/python.c (python_extension_ops): Update.
11651 (gdbpy_colorize): New function.
11652 * python/lib/gdb/__init__.py (colorize): New function.
11653 * extension.h (ext_lang_colorize): Declare.
11654 * extension.c (ext_lang_colorize): New function.
11655 * extension-priv.h (struct extension_language_ops) <colorize>: New
11656 member.
11657 * cli/cli-style.c (_initialize_cli_style): Update help text.
11658
11659 2020-01-21 Luis Machado <luis.machado@linaro.org>
11660
11661 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11662 <cond>: Change type to bool.
11663 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11664 (aarch64_displaced_step_cb): Likewise.
11665 (aarch64_displaced_step_tb): Likewise.
11666
11667 2020-01-21 Luis Machado <luis.machado@linaro.org>
11668
11669 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11670 output.
11671
11672 2020-01-21 Luis Machado <luis.machado@linaro.org>
11673
11674 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11675 <pc_adjust>: Adjust the documentation.
11676 (aarch64_displaced_step_fixup): Check if PC really moved before
11677 adjusting it.
11678
11679 2020-01-19 Tom Tromey <tom@tromey.com>
11680
11681 * disasm.c (~gdb_disassembler): New destructor.
11682 (gdb_buffered_insn_length): Call disassemble_free_target.
11683 * disasm.h (class gdb_disassembler): Declare destructor. Use
11684 DISABLE_COPY_AND_ASSIGN.
11685
11686 2020-01-19 Tom Tromey <tom@tromey.com>
11687
11688 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11689 (die_reader_func_ftype): Remove.
11690 (cutu_reader): New class.
11691 (dw2_get_file_names_reader): Remove "data" parameter.
11692 (dw2_get_file_names): Use cutu_reader.
11693 (create_debug_type_hash_table): Update.
11694 (read_cutu_die_from_dwo): Update comment.
11695 (lookup_dwo_unit): Add dwo_name parameter.
11696 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11697 die_reader_func_ftype and data parameters.
11698 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11699 Remove die_reader_func_ftype and data parameters.
11700 (~cutu_reader): New; from init_cutu_and_read_dies.
11701 (cutu_reader::cutu_reader): Rename from
11702 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11703 and data parameters.
11704 (init_cutu_and_read_dies_simple): Remove.
11705 (struct process_psymtab_comp_unit_data): Remove.
11706 (process_psymtab_comp_unit_reader): Remove data parameter; add
11707 want_partial_unit and pretend_language parameters.
11708 (process_psymtab_comp_unit): Use cutu_reader.
11709 (build_type_psymtabs_reader): Remove data parameter.
11710 (build_type_psymtabs_1): Use cutu_reader.
11711 (process_skeletonless_type_unit): Likewise.
11712 (load_partial_comp_unit_reader): Remove.
11713 (load_partial_comp_unit): Use cutu_reader.
11714 (load_full_comp_unit_reader): Remove.
11715 (load_full_comp_unit): Use cutu_reader.
11716 (struct create_dwo_cu_data): Remove.
11717 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11718 dwo_unit parameters.
11719 (create_cus_hash_table): Use cutu_reader.
11720 (struct dwarf2_read_addr_index_data): Remove.
11721 (dwarf2_read_addr_index_reader): Remove.
11722 (dwarf2_read_addr_index): Use cutu_reader.
11723 (read_signatured_type_reader): Remove.
11724 (read_signatured_type): Use cutu_reader.
11725
11726 2020-01-19 Tom Tromey <tom@tromey.com>
11727
11728 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11729 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11730 (tui_wrefresh): Declare.
11731 * tui/tui-wingeneral.c (suppress_output): New global.
11732 (tui_suppress_output, ~tui_suppress_output): New constructor and
11733 destructor.
11734 (tui_wrefresh): New function.
11735 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11736 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11737 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11738 method.
11739 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11740 tui_wrefresh.
11741 (tui_data_window::no_refresh): New method.
11742 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11743 (tui_reg_command): Use tui_suppress_output
11744 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11745 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11746 method.
11747 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11748
11749 2020-01-19 Tom Tromey <tom@tromey.com>
11750
11751 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11752 Handle case where symtab is null.
11753
11754 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11755
11756 * linux-fork.c (one_fork_p): Simplify.
11757
11758 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11759
11760 * top.c (struct qt_args): Remove.
11761 (kill_or_detach): Change return type to void, replace `void *`
11762 parameter with a proper one.
11763 (print_inferior_quit_action): Likewise.
11764 (quit_confirm): Use range-based for loop to iterate over inferiors.
11765 (quit_force): Likewise.
11766
11767 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11768
11769 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11770 `void *` parameter with proper parameters.
11771 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11772 (print_one_inferior): Change return type to void, replace `void *`
11773 parameter with proper parameters.
11774 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11775 inferiors.
11776 (get_other_inferior): Remove.
11777 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11778 inferiors.
11779
11780 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11781
11782 * mi/mi-interp.c (report_initial_inferior): Remove.
11783 (mi_interp::init): Use range-based for to iterate over inferiors.
11784
11785 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11786
11787 * python/py-inferior.c (build_inferior_list): Remove.
11788 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11789
11790 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11791
11792 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11793 (btrace_stitch_trace): Likewise.
11794 * charset.c (intermediate_encoding): Likewise (vaild).
11795 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11796 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11797 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11798
11799 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11800
11801 * windows-tdep.c (windows_get_tlb_type):
11802 Add rtl_user_process_parameters type.
11803
11804 2020-01-16 Pedro Alves <palves@redhat.com>
11805 Norbert Lange <nolange79@gmail.com>
11806
11807 PR build/24805
11808 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11809 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11810 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11811 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11812 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11813 (ps_plog): Redeclare exported functions with default visibility.
11814
11815 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11816
11817 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11818 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11819
11820 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11821
11822 * infcmd.c (post_create_inferior): Use get_thread_regcache
11823 instead of get_current_regcache.
11824
11825 2020-01-14 Tom Tromey <tom@tromey.com>
11826
11827 PR symtab/12535:
11828 * python/python.c (gdbpy_decode_line): Treat empty string the same
11829 as no argument.
11830
11831 2020-01-14 Tom Tromey <tom@tromey.com>
11832
11833 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11834
11835 2020-01-14 Tom Tromey <tom@tromey.com>
11836
11837 * nat/linux-btrace.c: Don't include <config.h>.
11838 * nat/linux-ptrace.c: Don't include <config.h>.
11839 * nat/x86-linux-dregs.c: Don't include <config.h>.
11840
11841 2020-01-14 Tom Tromey <tom@tromey.com>
11842
11843 * configure: Rebuild.
11844 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11845
11846 2020-01-14 Tom Tromey <tom@tromey.com>
11847
11848 * nat/x86-linux-dregs.c: Include configh.h.
11849 * nat/linux-ptrace.c: Include configh.h.
11850 * nat/linux-btrace.c: Include configh.h.
11851 * defs.h: Include config.h, bfd.h.
11852 * configure.ac: Don't source common.host.
11853 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11854 * configure: Rebuild.
11855 * acinclude.m4: Update path.
11856 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11857 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11858 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11859 (CLIBS): Add LIBSUPPORT.
11860 (CDEPS): Likewise.
11861 (COMMON_SFILES): Remove gdbsupport files.
11862 (HFILES_NO_SRCDIR): Likewise.
11863 (stamp-version): Update path to create-version.sh.
11864 (ALLDEPFILES): Remove gdbsupport files.
11865
11866 2020-01-14 Tom Tromey <tom@tromey.com>
11867
11868 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11869 USE_WIN32API when needed.
11870 * configure.ac (USE_WIN32API): Don't define.
11871 (WIN32LIBS): Use WIN32APILIBS.
11872 * configure: Rebuild.
11873
11874 2020-01-14 Tom Tromey <tom@tromey.com>
11875
11876 * configure: Rebuild.
11877 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11878
11879 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11880
11881 * skip.c (skip_function_command): Make skip w/o arguments use the
11882 name of the inlined function if pc is inside any inlined function.
11883
11884 2020-01-14 Luis Machado <luis.machado@linaro.org>
11885
11886 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11887 * infrun.c (resume_1): Likewise.
11888 (handle_inferior_event): Remove stale comment.
11889 * linux-nat.c (linux_nat_target::resume): Update comments.
11890 (save_stop_reason): Likewise.
11891 (linux_nat_filter_event): Likewise.
11892 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11893
11894 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11895
11896 * elfread.c (record_minimal_symbol): Set section index to 0 for
11897 non-allocatable sections.
11898
11899
11900 2020-01-13 Ali Tamur <tamur@google.com>
11901
11902 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11903 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11904 to gdb::optional. Update comments.
11905 (dwo_file): Update comments.
11906 (read_attribute): Update API to take an additional out parameter,
11907 need_reprocess. This is used to mark attributes that need other
11908 attributes (e.g. str_offsets_base) for correct computation which may not
11909 have been read yet.
11910 (read_attribute_reprocess): New function declaration.
11911 (read_addr_index): Likewise.
11912 (read_dwo_str_index): Likewise.
11913 (read_stub_str_index): Likewise.
11914 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11915 (lookup_addr_base): New function definition.
11916 (lookup_ranges_base): Likewise.
11917 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11918 lookup_ranges_base.
11919 (init_cutu_and_read_dies): Update comments.
11920 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11921 unit. This is used to inherit parent's str_offsets_base and addr_base.
11922 Update comments.
11923 (init_cutu_and_read_dies_simple): Reflect API changes.
11924 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11925 (create_cus_hash_table): Change API to take parent compile unit.
11926 Reflect API changes.
11927 (open_and_init_dwo_file): Reflect API changes.
11928 (dwarf2_get_pc_bounds): Update comments.
11929 (dwarf2_record_block_ranges): Likewise.
11930 (read_full_die_1): Change implementation to reprocess attributes that
11931 need str_offsets_base and addr_base.
11932 (partial_die_info::read): Likewise.
11933 (read_attribute_reprocess): New function definition.
11934 (read_attribute_value): Change API to take an additional out parameter,
11935 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11936 when a non-dwo compile unit has index based attributes.
11937 (read_attribute): Reflect API changes.
11938 (read_addr_index_1): Reflect API changes. Update comments.
11939 (dwarf2_read_addr_index_data): Reflect API changes.
11940 (dwarf2_read_addr_index): Likewise.
11941 (read_str_index): Change API and implementation. This becomes a helper
11942 to be used by the new string index related methods. Update error
11943 message and comments.
11944 (read_dwo_str_index): New function definition.
11945 (read_stub_str_index): Likewise.
11946 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11947 * symfile.h (dwarf2_debug_sections): Likewise.
11948 * xcoffread.c (dwarf2_debug_sections): Likewise.
11949
11950 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11951
11952 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11953 core_reg_sect type to gdb_byte *.
11954 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11955 * cris-tdep.c (fetch_core_registers): Likewise.
11956 * corelow.c (core_target::get_core_register_section): Change
11957 type of `contents` to gdb::byte_vector.
11958
11959 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11960
11961 * tui/tui-wingeneral.c (box_win): Position the title in the center
11962 of the border.
11963
11964 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11965
11966 * corelow.c (core_target::get_core_register_section): Use
11967 std::vector instead of alloca.
11968
11969 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11970
11971 * warning.m4: Add -Wmissing-declarations to build_warnings.
11972 * configure: Re-generate.
11973
11974 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11975
11976 * python/python.c (init__gdb_module): Add declaration.
11977
11978 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11979
11980 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11981 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11982 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11983 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11984 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11985 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11986 * ada-exp.y (_initialize_ada_exp): Add declaration.
11987 * ada-lang.c (_initialize_ada_language): Add declaration.
11988 * ada-tasks.c (_initialize_tasks): Add declaration.
11989 * agent.c (_initialize_agent): Add declaration.
11990 * aix-thread.c (_initialize_aix_thread): Add declaration.
11991 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11992 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11993 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11994 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11995 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11996 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11997 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11998 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11999 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12000 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12001 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12002 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12003 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12004 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12005 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12006 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12007 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12008 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12009 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12010 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12011 * annotate.c (_initialize_annotate): Add declaration.
12012 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12013 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12014 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12015 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12016 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12017 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12018 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12019 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12020 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12021 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12022 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12023 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12024 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12025 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12026 * auto-load.c (_initialize_auto_load): Add declaration.
12027 * auxv.c (_initialize_auxv): Add declaration.
12028 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12029 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12030 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12031 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12032 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12033 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12034 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12035 * breakpoint.c (_initialize_breakpoint): Add declaration.
12036 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12037 * btrace.c (_initialize_btrace): Add declaration.
12038 * charset.c (_initialize_charset): Add declaration.
12039 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12040 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12041 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12042 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12043 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12044 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12045 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12046 * coffread.c (_initialize_coffread): Add declaration.
12047 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12048 * compile/compile.c (_initialize_compile): Add declaration.
12049 * complaints.c (_initialize_complaints): Add declaration.
12050 * completer.c (_initialize_completer): Add declaration.
12051 * copying.c (_initialize_copying): Add declaration.
12052 * corefile.c (_initialize_core): Add declaration.
12053 * corelow.c (_initialize_corelow): Add declaration.
12054 * cp-abi.c (_initialize_cp_abi): Add declaration.
12055 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12056 * cp-support.c (_initialize_cp_support): Add declaration.
12057 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12058 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12059 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12060 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12061 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12062 * ctfread.c (_initialize_ctfread): Add declaration.
12063 * d-lang.c (_initialize_d_language): Add declaration.
12064 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12065 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12066 * dbxread.c (_initialize_dbxread): Add declaration.
12067 * dcache.c (_initialize_dcache): Add declaration.
12068 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12069 * disasm.c (_initialize_disasm): Add declaration.
12070 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12071 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12072 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12073 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12074 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12075 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12076 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12077 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12078 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12079 * elfread.c (_initialize_elfread): Add declaration.
12080 * exec.c (_initialize_exec): Add declaration.
12081 * extension.c (_initialize_extension): Add declaration.
12082 * f-lang.c (_initialize_f_language): Add declaration.
12083 * f-valprint.c (_initialize_f_valprint): Add declaration.
12084 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12085 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12086 * filesystem.c (_initialize_filesystem): Add declaration.
12087 * findcmd.c (_initialize_mem_search): Add declaration.
12088 * findvar.c (_initialize_findvar): Add declaration.
12089 * fork-child.c (_initialize_fork_child): Add declaration.
12090 * frame-base.c (_initialize_frame_base): Add declaration.
12091 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12092 * frame.c (_initialize_frame): Add declaration.
12093 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12094 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12095 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12096 * gcore.c (_initialize_gcore): Add declaration.
12097 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12098 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12099 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12100 * gdbarch.c (_initialize_gdbarch): Add declaration.
12101 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12102 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12103 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12104 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12105 * go-lang.c (_initialize_go_language): Add declaration.
12106 * go32-nat.c (_initialize_go32_nat): Add declaration.
12107 * guile/guile.c (_initialize_guile): Add declaration.
12108 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12109 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12110 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12111 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12112 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12113 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12114 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12115 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12116 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12117 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12118 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12119 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12120 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12121 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12122 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12123 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12124 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12125 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12126 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12127 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12128 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12129 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12130 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12131 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12132 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12133 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12134 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12135 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12136 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12137 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12138 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12139 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12140 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12141 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12142 * infcall.c (_initialize_infcall): Add declaration.
12143 * infcmd.c (_initialize_infcmd): Add declaration.
12144 * inflow.c (_initialize_inflow): Add declaration.
12145 * infrun.c (_initialize_infrun): Add declaration.
12146 * interps.c (_initialize_interpreter): Add declaration.
12147 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12148 * jit.c (_initialize_jit): Add declaration.
12149 * language.c (_initialize_language): Add declaration.
12150 * linux-fork.c (_initialize_linux_fork): Add declaration.
12151 * linux-nat.c (_initialize_linux_nat): Add declaration.
12152 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12153 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12154 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12155 * m2-lang.c (_initialize_m2_language): Add declaration.
12156 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12157 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12158 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12159 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12160 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12161 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12162 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12163 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12164 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12165 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12166 * machoread.c (_initialize_machoread): Add declaration.
12167 * macrocmd.c (_initialize_macrocmd): Add declaration.
12168 * macroscope.c (_initialize_macroscope): Add declaration.
12169 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12170 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12171 * maint.c (_initialize_maint_cmds): Add declaration.
12172 * mdebugread.c (_initialize_mdebugread): Add declaration.
12173 * memattr.c (_initialize_mem): Add declaration.
12174 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12175 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12176 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12177 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12178 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12179 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12180 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12181 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12182 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12183 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12184 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12185 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12186 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12187 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12188 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12189 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12190 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12191 * mipsread.c (_initialize_mipsread): Add declaration.
12192 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12193 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12194 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12195 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12196 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12197 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12198 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12199 * nto-procfs.c (_initialize_procfs): Add declaration.
12200 * objc-lang.c (_initialize_objc_language): Add declaration.
12201 * observable.c (_initialize_observer): Add declaration.
12202 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12203 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12204 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12205 * osabi.c (_initialize_gdb_osabi): Add declaration.
12206 * osdata.c (_initialize_osdata): Add declaration.
12207 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12208 * parse.c (_initialize_parse): Add declaration.
12209 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12210 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12211 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12212 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12213 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12214 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12215 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12216 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12217 * printcmd.c (_initialize_printcmd): Add declaration.
12218 * probe.c (_initialize_probe): Add declaration.
12219 * proc-api.c (_initialize_proc_api): Add declaration.
12220 * proc-events.c (_initialize_proc_events): Add declaration.
12221 * proc-service.c (_initialize_proc_service): Add declaration.
12222 * procfs.c (_initialize_procfs): Add declaration.
12223 * producer.c (_initialize_producer): Add declaration.
12224 * psymtab.c (_initialize_psymtab): Add declaration.
12225 * python/python.c (_initialize_python): Add declaration.
12226 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12227 * record-btrace.c (_initialize_record_btrace): Add declaration.
12228 * record-full.c (_initialize_record_full): Add declaration.
12229 * record.c (_initialize_record): Add declaration.
12230 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12231 * regcache.c (_initialize_regcache): Add declaration.
12232 * reggroups.c (_initialize_reggroup): Add declaration.
12233 * remote-notif.c (_initialize_notif): Add declaration.
12234 * remote-sim.c (_initialize_remote_sim): Add declaration.
12235 * remote.c (_initialize_remote): Add declaration.
12236 * reverse.c (_initialize_reverse): Add declaration.
12237 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12238 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12239 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12240 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12241 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12242 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12243 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12244 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12245 Add declaration.
12246 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12247 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12248 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12249 * rust-exp.y (_initialize_rust_exp): Add declaration.
12250 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12251 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12252 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12253 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12254 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12255 * score-tdep.c (_initialize_score_tdep): Add declaration.
12256 * ser-go32.c (_initialize_ser_dos): Add declaration.
12257 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12258 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12259 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12260 * ser-uds.c (_initialize_ser_socket): Add declaration.
12261 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12262 * serial.c (_initialize_serial): Add declaration.
12263 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12264 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12265 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12266 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12267 * skip.c (_initialize_step_skip): Add declaration.
12268 * sol-thread.c (_initialize_sol_thread): Add declaration.
12269 * solib-aix.c (_initialize_solib_aix): Add declaration.
12270 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12271 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12272 * solib-frv.c (_initialize_frv_solib): Add declaration.
12273 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12274 * solib-target.c (_initialize_solib_target): Add declaration.
12275 * solib.c (_initialize_solib): Add declaration.
12276 * source-cache.c (_initialize_source_cache): Add declaration.
12277 * source.c (_initialize_source): Add declaration.
12278 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12279 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12280 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12281 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12282 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12283 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12284 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12285 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12286 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12287 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12288 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12289 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12290 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12291 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12292 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12293 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12294 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12295 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12296 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12297 * stabsread.c (_initialize_stabsread): Add declaration.
12298 * stack.c (_initialize_stack): Add declaration.
12299 * stap-probe.c (_initialize_stap_probe): Add declaration.
12300 * std-regs.c (_initialize_frame_reg): Add declaration.
12301 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12302 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12303 * symfile.c (_initialize_symfile): Add declaration.
12304 * symmisc.c (_initialize_symmisc): Add declaration.
12305 * symtab.c (_initialize_symtab): Add declaration.
12306 * target.c (_initialize_target): Add declaration.
12307 * target-connection.c (_initialize_target_connection): Add
12308 declaration.
12309 * target-dcache.c (_initialize_target_dcache): Add declaration.
12310 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12311 * thread.c (_initialize_thread): Add declaration.
12312 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12313 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12314 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12315 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12316 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12317 * tracectf.c (_initialize_ctf): Add declaration.
12318 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12319 * tracefile.c (_initialize_tracefile): Add declaration.
12320 * tracepoint.c (_initialize_tracepoint): Add declaration.
12321 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12322 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12323 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12324 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12325 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12326 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12327 * tui/tui.c (_initialize_tui): Add declaration.
12328 * typeprint.c (_initialize_typeprint): Add declaration.
12329 * ui-style.c (_initialize_ui_style): Add declaration.
12330 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12331 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12332 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12333 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12334 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12335 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12336 * unittests/filtered_iterator-selftests.c
12337 (_initialize_filtered_iterator_selftests): Add declaration.
12338 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12339 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12340 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12341 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12342 * unittests/main-thread-selftests.c
12343 (_initialize_main_thread_selftests): Add declaration.
12344 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12345 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12346 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12347 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12348 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12349 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12350 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12351 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12352 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12353 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12354 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12355 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12356 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12357 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12358 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12359 declaration.
12360 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12361 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12362 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12363 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12364 * user-regs.c (_initialize_user_regs): Add declaration.
12365 * utils.c (_initialize_utils): Add declaration.
12366 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12367 * valops.c (_initialize_valops): Add declaration.
12368 * valprint.c (_initialize_valprint): Add declaration.
12369 * value.c (_initialize_values): Add declaration.
12370 * varobj.c (_initialize_varobj): Add declaration.
12371 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12372 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12373 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12374 * windows-nat.c (_initialize_windows_nat): Add declaration.
12375 (_initialize_check_for_gdb_ini): Add declaration.
12376 (_initialize_loadable): Add declaration.
12377 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12378 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12379 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12380 * xcoffread.c (_initialize_xcoffread): Add declaration.
12381 * xml-support.c (_initialize_xml_support): Add declaration.
12382 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12383 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12384 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12385 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12386
12387 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12388
12389 * regformats/regdat.sh: Generate declaration for init function.
12390
12391 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12392
12393 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12394 up.
12395 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12396 close_one_inferior>: New methods.
12397 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12398 pass down target to find_inferior_pid.
12399 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12400 Pass down target to find_inferior_ptid.
12401 (gdbsim_target::create_inferior): Pass down target to
12402 add_thread_silent.
12403 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12404 target down to find_inferior_ptid and switch_to_thread.
12405 (gdbsim_target::close): Update to call close_one_inferior.
12406 (struct resume_data): Remove.
12407 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12408 directly, rather than through a void pointer.
12409 (gdbsim_target::resume): Update to call resume_one_inferior.
12410
12411 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12412
12413 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12414
12415 2020-01-12 Pedro Alves <palves@redhat.com>
12416
12417 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12418 directly for the current inferior instead of
12419 discard_all_inferiors.
12420 (discard_all_inferiors): Delete.
12421
12422 2020-01-11 Tom Tromey <tom@tromey.com>
12423
12424 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12425 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12426 deprecated_safe_get_selected_frame.
12427
12428 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12429
12430 * inferior.c (print_inferior): Switch inferior before printing it.
12431
12432 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12433 Pedro Alves <palves@redhat.com>
12434
12435 * progspace-and-thread.c (switch_to_program_space_and_thread):
12436 Assert there's an inferior for PSPACE. Use
12437 switch_to_inferior_no_thread to switch the inferior too.
12438 * progspace.c (program_space::~program_space): Call
12439 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12440 (program_space::free_all_objfiles): Don't call clear_symtab_users
12441 here.
12442 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12443
12444 2020-01-10 Pedro Alves <palves@redhat.com>
12445
12446 * NEWS: Mention multi-target debugging, "info connections", and
12447 "add-inferior -no-connection".
12448
12449 2020-01-10 Pedro Alves <palves@redhat.com>
12450
12451 * infrun.c: Include "target-connection.h".
12452 (check_multi_target_resumption): New.
12453 (proceed): Call it.
12454 * target-connection.c (make_target_connection_string): Make
12455 extern.
12456 * target-connection.h (make_target_connection_string): Declare.
12457
12458 2020-01-10 Pedro Alves <palves@redhat.com>
12459
12460 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12461 * inferior.c (uiout_field_connection): New function.
12462 (print_inferior): Add new "connection-id" column.
12463 (add_inferior_command): Show connection number/string of added
12464 inferior.
12465 * process-stratum-target.h
12466 (process_stratum_target::connection_string): New virtual method.
12467 (process_stratum_target::connection_number): New field.
12468 * remote.c (remote_target::connection_string): New override.
12469 * target-connection.c: New file.
12470 * target-connection.h: New file.
12471 * target.c (decref_target): Remove process_stratum targets from
12472 the connection list.
12473 (target_stack::push): Add process_stratum targets to the
12474 connection list.
12475
12476 2020-01-10 Pedro Alves <palves@redhat.com>
12477
12478 Revert:
12479 2016-04-12 Pedro Alves <palves@redhat.com>
12480 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12481 Remove references to name.
12482 * serial.h (struct serial) <name>: Delete.
12483
12484 2020-01-10 Pedro Alves <palves@redhat.com>
12485
12486 * gdbarch-selftests.c (register_to_value_test): Remove "target
12487 already pushed" check.
12488
12489 2020-01-10 Pedro Alves <palves@redhat.com>
12490 John Baldwin <jhb@FreeBSD.org>
12491
12492 * aarch64-linux-nat.c
12493 (aarch64_linux_nat_target::thread_architecture): Adjust.
12494 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12495 (task_command_1): Likewise.
12496 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12497 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12498 (aix_thread_target::store_registers)
12499 (aix_thread_target::thread_alive): Adjust.
12500 * amd64-fbsd-tdep.c: Include "inferior.h".
12501 (amd64fbsd_get_thread_local_address): Pass down target.
12502 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12503 thread's gdbarch instead of target_gdbarch.
12504 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12505 get_last_target_status.
12506 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12507 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12508 inferiors.
12509 (update_inserted_breakpoint_locations): Skip if inferiors with no
12510 execution.
12511 (update_global_location_list): When handling moribund locations,
12512 find representative inferior for location's pspace, and use thread
12513 count of its process_stratum target.
12514 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12515 * bsd-uthread.c (bsd_uthread_target::wait): Use
12516 as_process_stratum_target and adjust thread_change_ptid and
12517 add_thread calls.
12518 (bsd_uthread_target::update_thread_list): Use
12519 as_process_stratum_target and adjust find_thread_ptid,
12520 thread_change_ptid and add_thread calls.
12521 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12522 find_thread_ptid call.
12523 * corelow.c (add_to_thread_list): Adjust add_thread call.
12524 (core_target_open): Adjust add_thread_silent and thread_count
12525 calls.
12526 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12527 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12528 * event-top.c (async_disconnect): Pop targets from all inferiors.
12529 * exec.c (add_target_sections): Push exec target on all inferiors
12530 sharing the program space.
12531 (remove_target_sections): Remove the exec target from all
12532 inferiors sharing the program space.
12533 (exec_on_vfork): New.
12534 * exec.h (exec_on_vfork): Declare.
12535 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12536 Pass it down.
12537 (fbsd_nat_target::update_thread_list): Adjust.
12538 (fbsd_nat_target::resume): Adjust.
12539 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12540 down.
12541 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12542 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12543 get_thread_arch_regcache call.
12544 * fork-child.c (gdb_startup_inferior): Pass target down to
12545 startup_inferior and set_executing.
12546 * gdbthread.h (struct process_stratum_target): Forward declare.
12547 (add_thread, add_thread_silent, add_thread_with_info)
12548 (in_thread_list): Add process_stratum_target parameter.
12549 (find_thread_ptid(inferior*, ptid_t)): New overload.
12550 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12551 parameter.
12552 (all_threads()): Delete overload.
12553 (all_threads, all_non_exited_threads): Add process_stratum_target
12554 parameter.
12555 (all_threads_safe): Use brace initialization.
12556 (thread_count): Add process_stratum_target parameter.
12557 (set_resumed, set_running, set_stop_requested, set_executing)
12558 (threads_are_executing, finish_thread_state): Add
12559 process_stratum_target parameter.
12560 (switch_to_thread): Use is_current_thread.
12561 * i386-fbsd-tdep.c: Include "inferior.h".
12562 (i386fbsd_get_thread_local_address): Pass down target.
12563 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12564 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12565 have_inferiors check.
12566 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12567 (inf_ptrace_target::attach): Adjust.
12568 * infcall.c (run_inferior_call): Adjust.
12569 * infcmd.c (run_command_1): Pass target to
12570 scoped_finish_thread_state.
12571 (proceed_thread_callback): Skip inferiors with no execution.
12572 (continue_command): Rename 'all_threads' local to avoid hiding
12573 'all_threads' function. Adjust get_last_target_status call.
12574 (prepare_one_step): Adjust set_running call.
12575 (signal_command): Use user_visible_resume_target. Compare thread
12576 pointers instead of inferior_ptid.
12577 (info_program_command): Adjust to pass down target.
12578 (attach_command): Mark target's 'thread_executing' flag.
12579 (stop_current_target_threads_ns): New, factored out from ...
12580 (interrupt_target_1): ... this. Switch inferior before making
12581 target calls.
12582 * inferior-iter.h
12583 (struct all_inferiors_iterator, struct all_inferiors_range)
12584 (struct all_inferiors_safe_range)
12585 (struct all_non_exited_inferiors_range): Filter on
12586 process_stratum_target too. Remove explicit.
12587 * inferior.c (inferior::inferior): Push dummy target on target
12588 stack.
12589 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12590 Add process_stratum_target parameter, and pass it down.
12591 (have_live_inferiors): Adjust.
12592 (switch_to_inferior_and_push_target): New.
12593 (add_inferior_command, clone_inferior_command): Handle
12594 "-no-connection" parameter. Use
12595 switch_to_inferior_and_push_target.
12596 (_initialize_inferior): Mention "-no-connection" option in
12597 the help of "add-inferior" and "clone-inferior" commands.
12598 * inferior.h: Include "process-stratum-target.h".
12599 (interrupt_target_1): Use bool.
12600 (struct inferior) <push_target, unpush_target, target_is_pushed,
12601 find_target_beneath, top_target, process_target, target_at,
12602 m_stack>: New.
12603 (discard_all_inferiors): Delete.
12604 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12605 (all_inferiors, all_non_exited_inferiors): Add
12606 process_stratum_target parameter.
12607 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12608 (target_last_proc_target): New global.
12609 (follow_fork_inferior): Push target on new inferior. Pass target
12610 to add_thread_silent. Call exec_on_vfork. Handle target's
12611 reference count.
12612 (follow_fork): Adjust get_last_target_status call. Also consider
12613 target.
12614 (follow_exec): Push target on new inferior.
12615 (struct execution_control_state) <target>: New field.
12616 (user_visible_resume_target): New.
12617 (do_target_resume): Call target_async.
12618 (resume_1): Set target's threads_executing flag. Consider resume
12619 target.
12620 (commit_resume_all_targets): New.
12621 (proceed): Also consider resume target. Skip threads of inferiors
12622 with no execution. Commit resumtion in all targets.
12623 (start_remote): Pass current inferior to wait_for_inferior.
12624 (infrun_thread_stop_requested): Consider target as well. Pass
12625 thread_info pointer to clear_inline_frame_state instead of ptid.
12626 (infrun_thread_thread_exit): Consider target as well.
12627 (random_pending_event_thread): New inferior parameter. Use it.
12628 (do_target_wait): Rename to ...
12629 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12630 down.
12631 (threads_are_resumed_pending_p, do_target_wait): New.
12632 (prepare_for_detach): Adjust calls.
12633 (wait_for_inferior): New inferior parameter. Handle it. Use
12634 do_target_wait_1 instead of do_target_wait.
12635 (fetch_inferior_event): Adjust. Switch to representative
12636 inferior. Pass target down.
12637 (set_last_target_status): Add process_stratum_target parameter.
12638 Save target in global.
12639 (get_last_target_status): Add process_stratum_target parameter and
12640 handle it.
12641 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12642 (context_switch): Check inferior_ptid == null_ptid before calling
12643 inferior_thread().
12644 (get_inferior_stop_soon): Pass down target.
12645 (wait_one): Rename to ...
12646 (poll_one_curr_target): ... this.
12647 (struct wait_one_event): New.
12648 (wait_one): New.
12649 (stop_all_threads): Adjust.
12650 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12651 event's target.
12652 (switch_back_to_stepped_thread): Also consider target.
12653 (print_stop_event): Update.
12654 (normal_stop): Update. Also consider the resume target.
12655 * infrun.h (wait_for_inferior): Remove declaration.
12656 (user_visible_resume_target): New declaration.
12657 (get_last_target_status, set_last_target_status): New
12658 process_stratum_target parameter.
12659 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12660 process_stratum_target parameter, and use it.
12661 (clear_inline_frame_state (thread_info*)): New.
12662 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12663 process_stratum_target parameter.
12664 (clear_inline_frame_state (thread_info*)): Declare.
12665 * linux-fork.c (delete_checkpoint_command): Pass target down to
12666 find_thread_ptid.
12667 (checkpoint_command): Adjust.
12668 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12669 instead of just tweaking inferior_ptid.
12670 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12671 (exit_lwp): Pass target down to find_thread_ptid.
12672 (attach_proc_task_lwp_callback): Pass target down to
12673 add_thread/set_running/set_executing.
12674 (linux_nat_target::attach): Pass target down to
12675 thread_change_ptid.
12676 (get_detach_signal): Pass target down to find_thread_ptid.
12677 Consider last target status's target.
12678 (linux_resume_one_lwp_throw, resume_lwp)
12679 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12680 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12681 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12682 (linux_nat_target::async_wait_fd): New.
12683 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12684 target down.
12685 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12686 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12687 * linux-thread-db.c (struct thread_db_info::process_target): New
12688 field.
12689 (add_thread_db_info): Save target.
12690 (get_thread_db_info): New process_stratum_target parameter. Also
12691 match target.
12692 (delete_thread_db_info): New process_stratum_target parameter.
12693 Also match target.
12694 (thread_from_lwp): Adjust to pass down target.
12695 (thread_db_notice_clone): Pass down target.
12696 (check_thread_db_callback): Pass down target.
12697 (try_thread_db_load_1): Always push the thread_db target.
12698 (try_thread_db_load, record_thread): Pass target down.
12699 (thread_db_target::detach): Pass target down. Always unpush the
12700 thread_db target.
12701 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12702 target down. Always unpush the thread_db target.
12703 (find_new_threads_callback, thread_db_find_new_threads_2)
12704 (thread_db_target::update_thread_list): Pass target down.
12705 (thread_db_target::pid_to_str): Pass current inferior down.
12706 (thread_db_target::get_thread_local_address): Pass target down.
12707 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12708 target down.
12709 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12710 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12711 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12712 (procfs_init_inferior): Rename to ...
12713 (procfs_target::procfs_init_inferior): ... this and adjust.
12714 (procfs_target::create_inferior, procfs_notice_thread)
12715 (procfs_do_thread_registers): Adjust.
12716 * ppc-fbsd-tdep.c: Include "inferior.h".
12717 (ppcfbsd_get_thread_local_address): Pass down target.
12718 * proc-service.c (ps_xfer_memory): Switch current inferior and
12719 program space as well.
12720 (get_ps_regcache): Pass target down.
12721 * process-stratum-target.c
12722 (process_stratum_target::thread_address_space)
12723 (process_stratum_target::thread_architecture): Pass target down.
12724 * process-stratum-target.h
12725 (process_stratum_target::threads_executing): New field.
12726 (as_process_stratum_target): New.
12727 * ravenscar-thread.c
12728 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12729 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12730 down.
12731 * record-btrace.c (record_btrace_target::info_record): Adjust.
12732 (record_btrace_target::record_method)
12733 (record_btrace_target::record_is_replaying)
12734 (record_btrace_target::fetch_registers)
12735 (get_thread_current_frame_id, record_btrace_target::resume)
12736 (record_btrace_target::wait, record_btrace_target::stop): Pass
12737 target down.
12738 * record-full.c (record_full_wait_1): Switch to event thread.
12739 Pass target down.
12740 * regcache.c (regcache::regcache)
12741 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12742 process_stratum_target parameter and handle it.
12743 (current_thread_target): New global.
12744 (get_thread_regcache): Add process_stratum_target parameter and
12745 handle it. Switch inferior before calling target method.
12746 (get_thread_regcache): Pass target down.
12747 (get_thread_regcache_for_ptid): Pass target down.
12748 (registers_changed_ptid): Add process_stratum_target parameter and
12749 handle it.
12750 (registers_changed_thread, registers_changed): Pass target down.
12751 (test_get_thread_arch_aspace_regcache): New.
12752 (current_regcache_test): Define a couple local test_target_ops
12753 instances and use them for testing.
12754 (readwrite_regcache): Pass process_stratum_target parameter.
12755 (cooked_read_test, cooked_write_test): Pass mock_target down.
12756 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12757 (get_thread_arch_aspace_regcache): Add process_stratum_target
12758 parameter.
12759 (regcache::target): New method.
12760 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12761 (regcache::registers_changed_ptid): Add process_stratum_target
12762 parameter.
12763 (regcache::m_target): New field.
12764 (registers_changed_ptid): Add process_stratum_target parameter.
12765 * remote.c (remote_state::supports_vCont_probed): New field.
12766 (remote_target::async_wait_fd): New method.
12767 (remote_unpush_and_throw): Add remote_target parameter.
12768 (get_current_remote_target): Adjust.
12769 (remote_target::remote_add_inferior): Push target.
12770 (remote_target::remote_add_thread)
12771 (remote_target::remote_notice_new_inferior)
12772 (get_remote_thread_info): Pass target down.
12773 (remote_target::update_thread_list): Skip threads of inferiors
12774 bound to other targets. (remote_target::close): Don't discard
12775 inferiors. (remote_target::add_current_inferior_and_thread)
12776 (remote_target::process_initial_stop_replies)
12777 (remote_target::start_remote)
12778 (remote_target::remote_serial_quit_handler): Pass down target.
12779 (remote_target::remote_unpush_target): New remote_target
12780 parameter. Unpush the target from all inferiors.
12781 (remote_target::remote_unpush_and_throw): New remote_target
12782 parameter. Pass it down.
12783 (remote_target::open_1): Check whether the current inferior has
12784 execution instead of checking whether any inferior is live. Pass
12785 target down.
12786 (remote_target::remote_detach_1): Pass down target. Use
12787 remote_unpush_target.
12788 (extended_remote_target::attach): Pass down target.
12789 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12790 (remote_target::append_resumption): Pass down target.
12791 (remote_target::append_pending_thread_resumptions)
12792 (remote_target::remote_resume_with_hc, remote_target::resume)
12793 (remote_target::commit_resume): Pass down target.
12794 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12795 (remote_target::interrupt_query)
12796 (remote_target::remove_new_fork_children)
12797 (remote_target::check_pending_events_prevent_wildcard_vcont)
12798 (remote_target::remote_parse_stop_reply)
12799 (remote_target::process_stop_reply): Pass down target.
12800 (first_remote_resumed_thread): New remote_target parameter. Pass
12801 it down.
12802 (remote_target::wait_as): Pass down target.
12803 (unpush_and_perror): New remote_target parameter. Pass it down.
12804 (remote_target::readchar, remote_target::remote_serial_write)
12805 (remote_target::getpkt_or_notif_sane_1)
12806 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12807 down target.
12808 (remote_target::mourn_inferior): Pass down target. Use
12809 remote_unpush_target.
12810 (remote_target::core_of_thread)
12811 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12812 (remote_target::pid_to_exec_file)
12813 (remote_target::thread_handle_to_thread_info): Pass down target.
12814 (remote_target::async_wait_fd): New.
12815 * riscv-fbsd-tdep.c: Include "inferior.h".
12816 (riscv_fbsd_get_thread_local_address): Pass down target.
12817 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12818 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12819 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12820 Adjust.
12821 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12822 * solib-svr4.c (enable_break): Pass down target.
12823 * spu-multiarch.c (parse_spufs_run): Pass down target.
12824 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12825 * target-delegates.c: Regenerate.
12826 * target.c (g_target_stack): Delete.
12827 (current_top_target): Return the current inferior's top target.
12828 (target_has_execution_1): Refer to the passed-in inferior's top
12829 target.
12830 (target_supports_terminal_ours): Check whether the initial
12831 inferior was already created.
12832 (decref_target): New.
12833 (target_stack::push): Incref/decref the target.
12834 (push_target, push_target, unpush_target): Adjust.
12835 (target_stack::unpush): Defref target.
12836 (target_is_pushed): Return bool. Adjust to refer to the current
12837 inferior's target stack.
12838 (dispose_inferior): Delete, and inline parts ...
12839 (target_preopen): ... here. Only dispose of the current inferior.
12840 (target_detach): Hold strong target reference while detaching.
12841 Pass target down.
12842 (target_thread_name): Add assertion.
12843 (target_resume): Pass down target.
12844 (target_ops::beneath, find_target_at): Adjust to refer to the
12845 current inferior's target stack.
12846 (get_dummy_target): New.
12847 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12848 has a thread running.
12849 (initialize_targets): Rename to ...
12850 (_initialize_target): ... this.
12851 * target.h: Include "gdbsupport/refcounted-object.h".
12852 (struct target_ops): Inherit refcounted_object.
12853 (target_ops::shortname, target_ops::longname): Make const.
12854 (target_ops::async_wait_fd): New method.
12855 (decref_target): Declare.
12856 (struct target_ops_ref_policy): New.
12857 (target_ops_ref): New typedef.
12858 (get_dummy_target): Declare function.
12859 (target_is_pushed): Return bool.
12860 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12861 (all_matching_threads_iterator::all_matching_threads_iterator):
12862 Handle filter target.
12863 * thread-iter.h (struct all_matching_threads_iterator, struct
12864 all_matching_threads_range, class all_non_exited_threads_range):
12865 Filter by target too. Remove explicit.
12866 * thread.c (threads_executing): Delete.
12867 (inferior_thread): Pass down current inferior.
12868 (clear_thread_inferior_resources): Pass down thread pointer
12869 instead of ptid_t.
12870 (add_thread_silent, add_thread_with_info, add_thread): Add
12871 process_stratum_target parameter. Use it for thread and inferior
12872 searches.
12873 (is_current_thread): New.
12874 (thread_info::deletable): Use it.
12875 (find_thread_ptid, thread_count, in_thread_list)
12876 (thread_change_ptid, set_resumed, set_running): New
12877 process_stratum_target parameter. Pass it down.
12878 (set_executing): New process_stratum_target parameter. Pass it
12879 down. Adjust reference to 'threads_executing'.
12880 (threads_are_executing): New process_stratum_target parameter.
12881 Adjust reference to 'threads_executing'.
12882 (set_stop_requested, finish_thread_state): New
12883 process_stratum_target parameter. Pass it down.
12884 (switch_to_thread): Also match inferior.
12885 (switch_to_thread): New process_stratum_target parameter. Pass it
12886 down.
12887 (update_threads_executing): Reimplement.
12888 * top.c (quit_force): Pop targets from all inferior.
12889 (gdb_init): Don't call initialize_targets.
12890 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12891 Declare.
12892 (windows_add_thread, windows_delete_thread): Adjust.
12893 (get_windows_debug_event): Rename to ...
12894 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12895 * tracefile-tfile.c (tfile_target_open): Pass down target.
12896 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12897 Forward declare.
12898 (switch_to_thread): Add process_stratum_target parameter.
12899 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12900 parameter. Use it.
12901 (mi_on_resume): Pass target down.
12902 * nat/fork-inferior.c (startup_inferior): Add
12903 process_stratum_target parameter. Pass it down.
12904 * nat/fork-inferior.h (startup_inferior): Add
12905 process_stratum_target parameter.
12906 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12907
12908 2020-01-10 Pedro Alves <palves@redhat.com>
12909
12910 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12911 directly. Instead find the first thread in the thread list and
12912 use switch_to_thread.
12913
12914 2020-01-10 Pedro Alves <palves@redhat.com>
12915
12916 * remote.c (remote_target::remote_add_inferior): Don't bind a
12917 process to the current inferior if the current inferior is already
12918 bound to a process.
12919
12920 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12921 Pedro Alves <palves@redhat.com>
12922
12923 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12924 If no process is specified, return null_ptid instead of
12925 inferior_ptid.
12926 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12927 TARGET_WAITKIND_SIGNALLED with no pid.
12928
12929 2020-01-10 Pedro Alves <palves@redhat.com>
12930
12931 * remote.c (first_remote_resumed_thread): New.
12932 (remote_target::wait_as): Use it as default event_ptid instead of
12933 inferior_ptid.
12934
12935 2020-01-10 Pedro Alves <palves@redhat.com>
12936
12937 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12938
12939 2020-01-10 Pedro Alves <palves@redhat.com>
12940
12941 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12942 not -1.
12943
12944 2020-01-10 Pedro Alves <palves@redhat.com>
12945
12946 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12947 ptid to get_last_target_status.
12948 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12949 ptid to get_last_target_status.
12950 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12951 get_last_target_status.
12952 (info_program_command): Don't pass a target_waitstatus to
12953 get_last_target_status.
12954 * infrun.c (init_wait_for_inferior): Use
12955 nullify_last_target_wait_ptid.
12956 (get_last_target_status): Handle nullptr arguments.
12957 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12958 (print_stop_event): Don't pass a ptid to get_last_target_status.
12959 (normal_stop): Don't pass a ptid to get_last_target_status.
12960 * infrun.h (get_last_target_status, set_last_target_status): Move
12961 comments here and update.
12962 (nullify_last_target_wait_ptid): Declare.
12963 * linux-fork.c (fork_load_infrun_state): Remove local extern
12964 declaration of nullify_last_target_wait_ptid.
12965 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12966 to get_last_target_status.
12967
12968 2020-01-10 Pedro Alves <palves@redhat.com>
12969
12970 * gdbthread.h (scoped_restore_current_thread)
12971 <dont_restore, restore, m_dont_restore>: Declare.
12972 * thread.c (thread_alive): Add assertion. Return bool.
12973 (switch_to_thread_if_alive): New.
12974 (prune_threads): Switch inferior/thread.
12975 (print_thread_info_1): Switch thread before calling target methods.
12976 (scoped_restore_current_thread::restore): New, factored out from
12977 ...
12978 (scoped_restore_current_thread::~scoped_restore_current_thread):
12979 ... this.
12980 (scoped_restore_current_thread::scoped_restore_current_thread):
12981 Add assertion.
12982 (thread_apply_all_command, thread_select): Use
12983 switch_to_thread_if_alive.
12984 * infrun.c (proceed, restart_threads, handle_signal_stop)
12985 (switch_back_to_stepped_thread): Switch current thread before
12986 calling target methods.
12987
12988 2020-01-10 Pedro Alves <palves@redhat.com>
12989
12990 * inferior.c (switch_to_inferior_no_thread): New function,
12991 factored out from ...
12992 (inferior_command): ... here.
12993 * inferior.h (switch_to_inferior_no_thread): Declare.
12994 * mi/mi-main.c (run_one_inferior): Use
12995 switch_to_inferior_no_thread.
12996
12997 2020-01-10 Pedro Alves <palves@redhat.com>
12998
12999 * infcmd.c (kill_command): Remove dead code.
13000
13001 2020-01-10 Pedro Alves <palves@redhat.com>
13002
13003 * remote.c (remote_target::mourn_inferior): No longer check
13004 whether the target is running.
13005
13006 2020-01-10 Pedro Alves <palves@redhat.com>
13007
13008 * corelow.c (core_target::has_execution): Change parameter type to
13009 inferior pointer.
13010 * inferior.c (number_of_live_inferiors): Use
13011 inferior::has_execution instead of target_has_execution_1.
13012 * inferior.h (inferior::has_execution): New.
13013 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13014 inferior::has_execution instead of target_has_execution_1.
13015 * process-stratum-target.c
13016 (process_stratum_target::has_execution): Change parameter type to
13017 inferior pointer. Check the inferior's PID instead of
13018 inferior_ptid.
13019 * process-stratum-target.h
13020 (process_stratum_target::has_execution): Change parameter type to
13021 inferior pointer.
13022 * record-full.c (record_full_core_target::has_execution): Change
13023 parameter type to inferior pointer.
13024 * target.c (target_has_execution_1): Change parameter type to
13025 inferior pointer.
13026 (target_has_execution_current): Adjust.
13027 * target.h (target_ops::has_execution): Change parameter type to
13028 inferior pointer.
13029 (target_has_execution_1): Change parameter type to inferior
13030 pointer. Change return type to bool.
13031 * tracefile.h (tracefile_target::has_execution): Change parameter
13032 type to inferior pointer.
13033
13034 2020-01-10 Pedro Alves <palves@redhat.com>
13035
13036 * exceptions.c (print_flush): Remove current_top_target() check.
13037
13038 2020-01-10 Pedro Alves <palves@redhat.com>
13039
13040 * remote.c (show_remote_exec_file): Show the current inferior's
13041 exec-file instead of the command variable's value.
13042
13043 2020-01-10 Pedro Alves <palves@redhat.com>
13044
13045 * record-full.c (record_full_resume_ptid): New global.
13046 (record_full_target::resume): Set it.
13047 (record_full_wait_1): Use record_full_resume_ptid instead of
13048 inferior_ptid.
13049
13050 2020-01-10 Pedro Alves <palves@redhat.com>
13051
13052 * gdbthread.h (scoped_restore_current_thread)
13053 <dont_restore, restore, m_dont_restore>: Declare.
13054 * thread.c (thread_alive): Add assertion. Return bool.
13055 (switch_to_thread_if_alive): New.
13056 (prune_threads): Switch inferior/thread.
13057 (print_thread_info_1): Switch thread before calling target methods.
13058 (scoped_restore_current_thread::restore): New, factored out from
13059 ...
13060 (scoped_restore_current_thread::~scoped_restore_current_thread):
13061 ... this.
13062 (scoped_restore_current_thread::scoped_restore_current_thread):
13063 Add assertion.
13064 (thread_apply_all_command, thread_select): Use
13065 switch_to_thread_if_alive.
13066
13067 2020-01-10 George Barrett <bob@bob131.so>
13068
13069 * stap-probe.c (stap_modify_semaphore): Don't check for null
13070 semaphores.
13071 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13072 for null semaphores.
13073
13074 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13075
13076 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13077 all source windows, and maintain horizontal scroll status while
13078 doing so.
13079
13080 2020-01-09 Tom Tromey <tom@tromey.com>
13081
13082 PR tui/18932:
13083 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13084 update_source_window, not print_source_lines.
13085
13086 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13087
13088 * tui/tui.c (tui_enable): Register tui hooks after calling
13089 tui_display_main.
13090
13091 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13092
13093 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13094
13095 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13096
13097 * thread.c (print_thread_info_1): Fix indentation.
13098
13099 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13100
13101 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13102 unique_xmalloc_ptr outside the if to always free the demangled name.
13103
13104 2020-01-08 Tom Tromey <tromey@adacore.com>
13105
13106 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13107 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13108 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13109 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13110 Remove.
13111 (section_offsets): New typedef.
13112 * symtab.c (fixup_section, get_msymbol_address): Update.
13113 * symmisc.c (dump_msymbols): Update.
13114 * symfile.h (relative_addr_info_to_section_offsets)
13115 (symfile_map_offsets_to_segments): Update.
13116 * symfile.c (build_section_addr_info_from_objfile)
13117 (init_objfile_sect_indices): Update.
13118 (struct place_section_arg): Change type of "offsets".
13119 (place_section): Update.
13120 (relative_addr_info_to_section_offsets): Change type of
13121 "section_offsets". Remove "num_sections" parameter.
13122 (default_symfile_offsets, syms_from_objfile_1)
13123 (set_objfile_default_section_offset): Update.
13124 (reread_symbols): No need to preserve section offsets by hand.
13125 (symfile_map_offsets_to_segments): Change type of "offsets".
13126 * stap-probe.c (relocate_address): Update.
13127 * stabsread.h (process_one_symbol): Update.
13128 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13129 (solib_target_relocate_section_addresses): Update.
13130 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13131 Update.
13132 * solib-frv.c (frv_relocate_main_executable): Update.
13133 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13134 * solib-aix.c (solib_aix_get_section_offsets): Change return
13135 type.
13136 (solib_aix_solib_create_inferior_hook): Update.
13137 * remote.c (remote_target::get_offsets): Update.
13138 * psymtab.c (find_pc_sect_psymtab): Update.
13139 * psympriv.h (struct partial_symbol) <address, text_low,
13140 text_high>: Update.
13141 * objfiles.h (obj_section_offset): Update.
13142 (struct objfile) <section_offsets>: Change type.
13143 <num_sections>: Remove.
13144 (objfile_relocate): Update.
13145 * objfiles.c (entry_point_address_query): Update
13146 (relocate_one_symbol): Change type of "section_offsets".
13147 (objfile_relocate1, objfile_relocate1): Change type of
13148 "new_offsets".
13149 (objfile_rebase1): Update.
13150 * mipsread.c (mipscoff_symfile_read): Update.
13151 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13152 parameter.
13153 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13154 (parse_external, psymtab_to_symtab_1): Update.
13155 * machoread.c (macho_symfile_offsets): Update.
13156 * ia64-tdep.c (ia64_find_unwind_table): Update.
13157 * hppa-tdep.c (read_unwind_info): Update.
13158 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13159 * dwarf2read.c (create_addrmap_from_index)
13160 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13161 (process_psymtab_comp_unit_reader, add_partial_symbol)
13162 (add_partial_subprogram, process_full_comp_unit)
13163 (read_file_scope, read_func_scope, read_lexical_block_scope)
13164 (read_call_site_scope, dwarf2_rnglists_process)
13165 (dwarf2_ranges_process, dwarf2_ranges_read)
13166 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13167 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13168 Update.
13169 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13170 Update.
13171 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13172 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13173 (process_one_symbol): Change type of "section_offsets".
13174 * ctfread.c (get_objfile_text_range): Update.
13175 * coffread.c (coff_symtab_read, enter_linenos)
13176 (process_coff_symbol): Update.
13177 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13178 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13179
13180 2020-01-08 Tom Tromey <tromey@adacore.com>
13181
13182 * dwarf2read.c (parse_macro_definition): Use std::string.
13183 (parse_macro_definition): Likewise.
13184
13185 2020-01-08 Tom Tromey <tromey@adacore.com>
13186
13187 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13188 (ATTR_ALLOC_CHUNK): Remove.
13189
13190 2020-01-08 Tom Tromey <tromey@adacore.com>
13191
13192 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13193
13194 2020-01-08 Tom Tromey <tromey@adacore.com>
13195
13196 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13197 (dwarf2_compute_name, open_dwo_file): Likewise.
13198 (process_enumeration_scope): Use std::vector.
13199 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13200 (partial_die_info::fixup, dwarf2_start_subfile)
13201 (guess_full_die_structure_name, dwarf2_name): Likewise.
13202 (determine_prefix): Update.
13203 (guess_full_die_structure_name): Make return type const.
13204 (partial_die_full_name): Return unique_xmalloc_ptr.
13205 (DW_FIELD_ALLOC_CHUNK): Remove.
13206
13207 2020-01-07 Tom Tromey <tromey@adacore.com>
13208
13209 PR build/24937:
13210 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13211
13212 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13213
13214 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13215
13216 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13217
13218 * stack.c (print_frame_info): Move disassemble_next_line code
13219 inside source_print block.
13220
13221 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13222
13223 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13224 gdb/signals.h, as we are now using native signal symbols.
13225
13226 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13227
13228 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13229 overflow by an early check of content vs threshold.
13230 * tui/tui-source.c (tui_source_window::line_is_displayed):
13231 Likewise.
13232
13233 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13234
13235 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13236
13237 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13238
13239 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13240 export table if no section contains it's RVA.
13241
13242 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13243
13244 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13245
13246 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13247
13248 * source.c (print_source_lines_base): Set last_line_listed.
13249
13250 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13251
13252 * tui/tui-disasm.c: Remove trailing spaces.
13253
13254 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13255 Pedro Alves <palves@redhat.com>
13256
13257 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13258 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13259 (windows_gdb_signal_to_target): New function, uses the above
13260 enumeration to convert GDB internal signal codes to equivalent
13261 Windows codes.
13262 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13263 * windows-nat.c: Include "gdb_wait.h".
13264 (get_windows_debug_event): Extract the fatal exception from the
13265 exit status and convert to the equivalent Posix signal number.
13266 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13267 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13268 * gdbsupport/gdb_wait.c: New file, implements
13269 windows_status_to_termsig.
13270 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13271 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13272
13273 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13274
13275 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13276 show_layout.
13277
13278 2020-01-05 Luis Machado <luis.machado@linaro.org>
13279
13280 * aarch64-linux-nat.c
13281 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13282 and bfd_mach_aarch64.
13283
13284 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13285
13286 * ui-file.c (stdio_file::can_emit_style_escape)
13287 (tee_file::can_emit_style_escape): Ensure style is used also on
13288 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13289 to gdb_stdout.
13290 * main.c (set_gdb_data_directory): Use file style to output the
13291 warning that the given pathname is not a directory.
13292 * top.c (show_history_filename, gdb_safe_append_history)
13293 (show_gdb_datadir): Use file style.
13294
13295 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13296
13297 * solib-target.c (struct lm_info_target):
13298 Change offsets to be a unique_xmalloc_ptr.
13299 (solib_target_relocate_section_addresses): Update.
13300
13301 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13302
13303 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13304
13305 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13306
13307 * MAINTAINERS (Write After Approval): Add myself.
13308
13309 2020-01-02 Luis Machado <luis.machado@linaro.org>
13310
13311 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13312 Cell BE architecture.
13313 * target.h (struct target_ops) <thread_architecture>: Likewise.
13314
13315 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13316
13317 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13318
13319 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13320
13321 * MAINTAINERS (Write After Approval): Add myself.
13322
13323 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13324
13325 * gdbarch.sh: Update copyright year range of generated files.
13326
13327 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13328
13329 Update copyright year range in all GDB files.
13330
13331 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13332
13333 * copyright.py: Convert to Python 3.
13334
13335 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13336
13337 * copyright.py: Adapt after move of gnulib directory from gdb
13338 directory to toplevel directory.
13339
13340 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13341
13342 * copyright.py (main): Exit if run from the wrong directory.
13343
13344 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13345
13346 * top.c (print_gdb_version): Change copyright year to 2020.
13347
13348 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13349
13350 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13351
13352 For older changes see ChangeLog-2019.
13353 \f
13354 Local Variables:
13355 mode: change-log
13356 left-margin: 8
13357 fill-column: 74
13358 version-control: never
13359 coding: utf-8
13360 End:
This page took 0.346276 seconds and 4 git commands to generate.