gdb: Convert la_name and la_natural_name to methods
[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_name and
4 la_natural_name initializers.
5 (ada_language::name): New member function.
6 (ada_language::natural_name): New member function.
7 * c-lang.c (c_language_data): Remove la_name and
8 la_natural_name initializers.
9 (c_language::name): New member function.
10 (c_language::natural_name): New member function.
11 (cplus_language_data): Remove la_name and
12 la_natural_name initializers.
13 (cplus_language::name): New member function.
14 (cplus_language::natural_name): New member function.
15 (asm_language_data): Remove la_name and
16 la_natural_name initializers.
17 (asm_language::name): New member function.
18 (asm_language::natural_name): New member function.
19 (minimal_language_data): Remove la_name and
20 la_natural_name initializers.
21 (minimal_language::name): New member function.
22 (minimal_language::natural_name): New member function.
23 * compile/compile.c (compile_to_object): Update call to
24 lanugage_defn::name.
25 * d-lang.c (d_language_data): Remove la_name and
26 la_natural_name initializers.
27 (d_language::name): New member function.
28 (d_language::natural_name): New member function.
29 * expprint.c (print_subexp_standard): Update call to
30 language_defn::name.
31 (dump_raw_expression): Likewise
32 (dump_prefix_expression): Likewise.
33 * f-lang.c (f_language_data): Remove la_name and
34 la_natural_name initializers.
35 (f_language::name): New member function.
36 (f_language::natural_name): New member function.
37 * go-lang.c (go_language_data): Remove la_name and
38 la_natural_name initializers.
39 (go_language::name): New member function.
40 (go_language::natural_name): New member function.
41 * language.c (show_language_command): Update call to
42 language_defn::name.
43 (set_language_command): Likewise.
44 (language_enum): Likewise.
45 (language_str): Likewise.
46 (add_set_language_command): Likewise, use
47 language_defn::natural_name in the doc string.
48 (unknown_language_data): Remove la_name and
49 la_natural_name initializers.
50 (unknown_language::name): New member function.
51 (unknown_language::natural_name): New member function.
52 (auto_language_data): Remove la_name and
53 la_natural_name initializers.
54 (auto_language::name): New member function.
55 (auto_language::natural_name): New member function.
56 (language_lookup_primitive_type_as_symbol): Update call to
57 language_defn::name.
58 * language.h (language_data): Remove la_name and la_natural_name
59 member variables.
60 (language_defn::name): New member function.
61 (language_defn::natural_name): New member function.
62 * m2-lang.c (m2_language_data): Remove la_name and
63 la_natural_name initializers.
64 (m2_language::name): New member function.
65 (m2_language::natural_name): New member function.
66 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
67 language_defn::natural_name.
68 * objc-lang.c (objc_language_data): Remove la_name and
69 la_natural_name initializers.
70 (objc_language::name): New member function.
71 (objc_language::natural_name): New member function.
72 * opencl-lang.c (opencl_language_data): Remove la_name and
73 la_natural_name initializers.
74 (opencl_language::name): New member function.
75 (opencl_language::natural_name): New member function.
76 * p-lang.c (pascal_language_data): Remove la_name and
77 la_natural_name initializers.
78 (pascal_language::name): New member function.
79 (pascal_language::natural_name): New member function.
80 * rust-lang.c (rust_language_data): Remove la_name and
81 la_natural_name initializers.
82 (rust_language::name): New member function.
83 (rust_language::natural_name): New member function.
84 * symtab.c (lookup_language_this): Update call to
85 language_defn::name.
86
87 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 * ada-lang.c (ada_language_data): Remove la_name_of_this
90 initializer.
91 * ax-gdb.c (gen_expr): Update call to name_of_this.
92 * c-exp.y (classify_name): Likewise.
93 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
94 (cplus_language_data): Likewise.
95 (cplus_language::name_of_this): New member function.
96 (asm_language_data): Remove la_name_of_this initializer.
97 (minimal_language_data): Likewise.
98 * d-lang.c (d_language_data): Likewise.
99 (d_language::name_of_this): New member function.
100 * expprint.c (print_subexp_standard): Update call to name_of_this.
101 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
102 * go-lang.c (go_language_data): Likewise.
103 * language.c (unknown_language_data): Likewise.
104 (unknown_language::name_of_this): New member function.
105 (auto_language_data): Remove la_name_of_this initializer.
106 (auto_language::name_of_this): New member function.
107 * language.h (language_data): Delete la_name_of_this member
108 variable.
109 (language_defn::name_of_this): New member function.
110 * m2-lang.c (m2_language_data): Remove la_name_of_this
111 initializer.
112 * objc-lang.c (objc_language_data): Likewise.
113 (objc_language::name_of_this): New member function.
114 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
115 initializer.
116 * p-lang.c (pascal_language_data): Likewise.
117 (pascal_language::name_of_this): New member function.
118 * rust-lang.c (rust_language_data): Remove la_name_of_this
119 initializer.
120 * symtab.c (lookup_language_this): Update call to name_of_this.
121 (lookup_symbol_aux): Likewise.
122 * valops.c (value_of_this): Likewise.
123
124 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 * ada-lang.c (ada_language_data): Remove
127 la_struct_too_deep_ellipsis initializer.
128 (ada_language::struct_too_deep_ellipsis): New member function.
129 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
130 initializer.
131 (cplus_language_data): Likewise.
132 (asm_language_data): Likewise.
133 (minimal_language_data): Likewise.
134 * cp-valprint.c (cp_print_value): Update call to
135 struct_too_deep_ellipsis.
136 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
137 initializer.
138 * f-lang.c (f_language_data): Likewise.
139 (f_language::struct_too_deep_ellipsis): New member function.
140 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
141 initializer.
142 * language.c (unknown_language_data): Likewise.
143 (auto_language_data): Likewise.
144 * language.h (language_data): Delete la_struct_too_deep_ellipsis
145 member variable.
146 (language_defn::struct_too_deep_ellipsis): New member function.
147 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
148 initializer.Q
149 * objc-lang.c (objc_language_data): Likewise.
150 * opencl-lang.c (opencl_language_data): Likewise.
151 * p-lang.c (pascal_language_data): Likewise.
152 * rust-lang.c (rust_language_data): Likewise.
153 * valprint.c (val_print_check_max_depth): Update call to
154 struct_too_deep_ellipsis.
155
156 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
157
158 * MAINTAINERS (Write After Approval): Add myself.
159
160 2020-09-15 Tom Tromey <tom@tromey.com>
161
162 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
163 Remove.
164
165 2020-09-15 Tom Tromey <tom@tromey.com>
166
167 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
168 and TYPE_CODE_METHODPTR cases.
169 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
170 (c_value_print_inner): Update.
171 * valprint.c (generic_value_print_memberptr): New function, from
172 c_value_print_memberptr.
173 (generic_value_print): Use it. Call cplus_print_method_ptr.
174
175 2020-09-15 Tom Tromey <tromey@adacore.com>
176
177 * python/python-internal.h (PyInt_FromLong): Remove define.
178 * python/py-value.c (convert_value_from_python): Use
179 gdb_py_object_from_longest.
180 * python/py-type.c (typy_get_code): Use
181 gdb_py_object_from_longest.
182 * python/py-symtab.c (salpy_get_line): Use
183 gdb_py_object_from_longest.
184 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
185 gdb_py_object_from_longest.
186 * python/py-record.c (recpy_gap_reason_code): Use
187 gdb_py_object_from_longest.
188 * python/py-record-btrace.c (recpy_bt_insn_size)
189 (recpy_bt_func_level, btpy_list_count): Use
190 gdb_py_object_from_longest.
191 * python/py-infthread.c (gdbpy_create_ptid_object): Use
192 gdb_py_object_from_longest. Fix error handling.
193 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
194 gdb_py_object_from_longest.
195 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
196 gdb_py_object_from_longest.
197 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
198 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
199 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
200
201 2020-09-15 Tom Tromey <tromey@adacore.com>
202
203 * python/python.c (gdbpy_parameter_value): Use
204 gdb_py_object_from_ulongest.
205
206 2020-09-15 Tom Tromey <tromey@adacore.com>
207
208 * python/py-infevents.c (create_register_changed_event_object):
209 Use gdb_py_object_from_longest.
210 * python/py-exitedevent.c (create_exited_event_object): Use
211 gdb_py_object_from_longest.
212
213 2020-09-15 Tom Tromey <tromey@adacore.com>
214
215 * python/python.c (gdbpy_parameter_value): Use
216 gdb_py_object_from_longest.
217 * python/py-type.c (convert_field, typy_range): Use
218 gdb_py_object_from_longest.
219 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
220 gdb_py_object_from_longest.
221 * python/py-lazy-string.c (stpy_get_length): Use
222 gdb_py_object_from_longest.
223 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
224 gdb_py_object_from_longest.
225 * python/py-infevents.c (create_memory_changed_event_object): Use
226 gdb_py_object_from_longest.
227 * python/py-inferior.c (infpy_get_num): Use
228 gdb_py_object_from_longest.
229 (infpy_get_pid): Likewise.
230
231 2020-09-15 Tom Tromey <tromey@adacore.com>
232
233 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
234 defines.
235 * python/py-value.c (valpy_long): Use
236 gdb_py_object_from_ulongest.
237 * python/py-symtab.c (salpy_get_pc): Use
238 gdb_py_object_from_ulongest.
239 (salpy_get_last): Likewise.
240 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
241 gdb_py_object_from_ulongest.
242 * python/py-lazy-string.c (stpy_get_address): Use
243 gdb_py_object_from_ulongest.
244 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
245 * python/py-arch.c (archpy_disassemble): Use
246 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
247 error handling.
248
249 2020-09-15 Tom Tromey <tromey@adacore.com>
250
251 * python/python-internal.h (gdb_py_long_from_longest): Remove
252 defines.
253 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
254 * python/py-type.c (convert_field, typy_get_sizeof): Use
255 gdb_py_object_from_longest.
256 * python/py-record-btrace.c (btpy_list_index): Use
257 gdb_py_object_from_longest.
258
259 2020-09-15 Tom Tromey <tromey@adacore.com>
260
261 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
262 * python/py-record.c (recpy_element_number): Use
263 gdb_py_object_from_longest.
264 (recpy_gap_number): Likewise.
265
266 2020-09-15 Tom Tromey <tromey@adacore.com>
267
268 * top.c (ui::ui): Update.
269 (highest_ui_num): Remove.
270 * top.h (struct ui) <num>: Remove.
271
272 2020-09-15 Tom Tromey <tromey@adacore.com>
273
274 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
275 * ui-style.c (ansi_regex_text): Now array.
276 * rust-exp.y (number_regex_text): Now array.
277 * linespec.c (linespec_quote_characters): Now array.
278 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
279 Now arrays.
280
281 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * debuginfod-support.c (debuginfod_client_deleter): New.
284 (debuginfod_client_up): New.
285 (debuginfod_init): Return debuginfod_client_up.
286 (debuginfod_source_query): Adjust.
287 (debuginfod_debuginfo_query): Adjust.
288
289 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
290
291 * debuginfod-support.c (debuginfod_source_query): Use
292 make_unique_xstrdup.
293
294 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
295
296 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
297 with `type::instance_flags`.
298
299 2020-09-14 Michael Mullin <masmullin@gmail.com>
300
301 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
302 Remove baton parameter.
303
304 2020-09-14 Pedro Alves <pedro@palves.net>
305
306 * Makefile.in (SELFTESTS_SRCS): Add
307 unittests/enum-flags-selftests.c.
308 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
309 btrace_function_flags instead of enum btrace_function_flag.
310 * compile/compile-c-types.c (convert_qualified): Use
311 enum_flags::raw.
312 * compile/compile-cplus-symbols.c (convert_one_symbol)
313 (convert_symbol_bmsym):
314 * compile/compile-cplus-types.c (compile_cplus_convert_method)
315 (compile_cplus_convert_struct_or_union_methods)
316 (compile_cplus_instance::convert_qualified_base):
317 * go-exp.y (parse_string_or_char): Add cast to int.
318 * unittests/enum-flags-selftests.c: New file.
319 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
320 type to btrace_thread_flags from btrace_thread_flag.
321 (record_btrace_cancel_resume, record_btrace_step_thread): Change
322 local's type to btrace_thread_flags from btrace_thread_flag. Add
323 cast in DEBUG call.
324
325 2020-09-14 Pedro Alves <pedro@palves.net>
326
327 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
328 * gdbtypes.c (address_space_name_to_int): Rename to ...
329 (address_space_name_to_type_instance_flags): ... this.
330 (address_space_int_to_name): Rename to ...
331 (address_space_type_instance_flags_to_name): ... this.
332 * gdbtypes.h (address_space_name_to_int): Rename to ...
333 (address_space_name_to_type_instance_flags): ... this.
334 (address_space_int_to_name): Rename to ...
335 (address_space_type_instance_flags_to_name): ... this.
336 * type-stack.c (type_stack::insert): Adjust to rename.
337 * type-stack.h (type_stack::insert): Likewise.
338
339 2020-09-14 Pedro Alves <pedro@palves.net>
340 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * avr-tdep.c (avr_address_class_type_flags): Return
343 type_instance_flags.
344 (avr_address_class_type_flags_to_name): Take a
345 type_instance_flags.
346 (avr_address_class_name_to_type_flags): Return bool and take a
347 type_instance_flags.
348 * d-lang.c (build_d_types): Use type::set_instance_flags.
349 * ft32-tdep.c (ft32_address_class_type_flags): Return
350 type_instance_flags.
351 (ft32_address_class_type_flags_to_name): Take a
352 type_instance_flags.
353 (ft32_address_class_name_to_type_flags): Return bool and take a
354 type_instance_flags.
355 (ft32_gdbarch_init): Use type::set_instance_flags.
356 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
357 * gdbarch.h, gdbarch.c: Regenerate.
358 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
359 (address_class_name_to_type_flags): Use type_instance_flags and
360 bool.
361 * gdbtypes.c (address_space_name_to_int)
362 (address_space_int_to_name, make_qualified_type): Use
363 type_instance_flags.
364 (make_qualified_type): Use type_instance_flags and
365 type::set_instance_flags.
366 (make_type_with_address_space, make_cv_type, make_vector_type)
367 (check_typedef): Use type_instance_flags.
368 (recursive_dump_type): Cast type_instance_flags to unsigned for
369 printing.
370 (copy_type_recursive): Use type::set_instance_flags.
371 (gdbtypes_post_init): Use type::set_instance_flags.
372 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
373 <m_instance_flags>: ... this.
374 <instance_flags, set_instance_flags>: New methods.
375 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
376 (SET_TYPE_INSTANCE_FLAGS): New.
377 (address_space_name_to_int, address_space_int_to_name)
378 (make_type_with_address_space): Pass flags using
379 type_instance_flags instead of int.
380 * stabsread.c (cleanup_undefined_types_noname): Use
381 type::set_instance_flags.
382 * s390-tdep.c (s390_address_class_type_flags): Return
383 type_instance_flags.
384 (s390_address_class_type_flags_to_name): Take a
385 type_instance_flags.
386 (s390_address_class_name_to_type_flags): Return bool and take a
387 type_instance_flags.
388 * type-stack.c (type_stack::follow_types): Use
389 type_instance_flags.
390 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
391
392 2020-09-14 Tom Tromey <tromey@adacore.com>
393
394 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
395 * x86-tdep.c (x86_is_thunk_register_name)
396 (x86_in_indirect_branch_thunk): Update.
397 * sparc64-tdep.c (sparc64_fpu_register_names)
398 (sparc64_cp0_register_names, sparc64_register_names)
399 (sparc64_pseudo_register_names): Now const.
400 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
401 cp0_registers_num>: Now const.
402 * sparc-tdep.c (sparc_core_register_names)
403 (sparc32_fpu_register_names, sparc32_cp0_register_names)
404 (sparc32_pseudo_register_names): Now const.
405 (validate_tdesc_registers): Update.
406 * rust-lang.c (rust_extensions): Now const.
407 * p-lang.c (p_extensions): Now const.
408 * objc-lang.c (objc_extensions): Now const.
409 * nto-tdep.c (nto_thread_state_str): Now const.
410 * moxie-tdep.c (moxie_register_names): Now const.
411 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
412 Now const.
413 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
414 (mips_linux_reg_names): Now const.
415 (mips_gdbarch_init): Update.
416 * microblaze-tdep.c (microblaze_register_names): Now const.
417 * m68k-tdep.c (m68k_register_names): Now const.
418 * m32r-tdep.c (m32r_register_names): Now const.
419 * ia64-tdep.c (ia64_register_names): Now const.
420 * i386-tdep.h (struct gdbarch_tdep) <register_names,
421 ymmh_register_names, ymm16h_regnum, mpx_register_names,
422 k_register_names, zmmh_register_names, xmm_avx512_register_names,
423 ymm_avx512_register_names, pkeys_register_names>: Now const.
424 * i386-tdep.c (i386_register_names, i386_zmm_names)
425 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
426 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
427 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
428 * f-lang.c (f_extensions): Now const.
429 * d-lang.c (d_extensions): Now const.
430 * csky-tdep.c (csky_register_names): Now const.
431 * charset.c (default_charset_names, charset_enum): Now const.
432 (_initialize_charset): Update.
433 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
434 const.
435 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
436 (bsd_uthread_solib_loaded): Update.
437 (bsd_uthread_state): Now const.
438 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
439 (amd64_ymm_avx512_names, amd64_ymmh_names)
440 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
441 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
442 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
443 (amd64_dword_names): Now const.
444 * agent.c (can_use_agent_enum): Now const.
445 * ada-tasks.c (task_states, long_task_states): Now const.
446 * ada-lang.c (known_runtime_file_name_patterns)
447 (known_auxiliary_function_name_patterns, attribute_names)
448 (standard_exc, ada_extensions): Now const.
449
450 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
451
452 * bcache.h (struct bcache) <bcache>: Remove constructor.
453 <m_hash_function, m_compare_function>: Remove.
454 <~bcache>: Make virtual.
455 <compare>: Remove static method, introduce virtual method.
456 <default_hash>: Remove.
457 <hash>: New virtual method.
458 * bcache.c (bcache::expand_hash_table): Update.
459 (bcache::insert): Update.
460 (bcache::hash): New.
461 (bcache::compare): Update comment and parameter names.
462 * gdbtypes.c (types_deeply_equal): Update.
463 * psymtab.h (struct psymbol_bcache): New struct.
464 (class psymtab_storage) <psymtab_storage>: Make default.
465 <psymbol_cache>: Change type to psymbol_bcache.
466 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
467 (psymbol_hash): Change to...
468 (psymbol_bcache::hash): ... this.
469 (psymbol_compare): Change to...
470 (psymbol_bcache::compare): ... this.
471
472 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
475 checking for initial lwp.
476
477 2020-09-14 Tom Tromey <tromey@adacore.com>
478
479 * m68k-tdep.c (m68k_extract_return_value): Use
480 pointer_result_regnum.
481 (m68k_store_return_value): Likewise.
482 (m68k_reg_struct_return_p): Handle vectors and arrays.
483 (m68k_return_value): Handle arrays.
484 (m68k_svr4_return_value): Fix single-element aggregate handling.
485 Handle long double. Adjust for embedded ABI.
486 (m68k_svr4_init_abi): Set pointer_result_regnum.
487 (m68k_embedded_init_abi): New function.
488 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
489 (m68k_osabi_sniffer): New function.
490 (_initialize_m68k_tdep): Register osabi sniffer.
491 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
492 member.
493
494 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * xml-support.c (xml_fetch_content_from_file): Replace xfree
497 with gdb::unique_xmalloc_ptr<char>.
498
499 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * xml-support.h (xml_fetch_another): Change type to be a
502 function_view.
503 (xml_process_xincludes): Remove baton parameter.
504 (xml_fetch_content_from_file): Change baton parameter to
505 dirname.
506 * xml-support.c (struct xinclude_parsing_data)
507 <xinclude_parsing_data>: Remove baton parameter.
508 <fetcher_baton>: Remove.
509 (xinclude_start_include): Adjust.
510 (xml_process_xincludes): Adjust.
511 (xml_fetch_content_from_file): Replace baton parameter with
512 dirname.
513 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
514 (xml_init_syscalls_info): Use a lambda.
515 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
516 (file_read_description_xml): Use a lambda.
517 (fetch_available_features_from_target): Change baton parameter
518 to target_ops.
519 (target_read_description_xml): Use a lambda.
520 (target_fetch_description_xml): Use a lambda.
521 (string_read_description_xml): Update.
522
523 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
524
525 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
526 uses with type::endianity_is_not_default.
527
528 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
529
530 * gdbtypes.h (struct type) <endianity_is_not_default,
531 set_endianity_is_not_default>: New methods.
532 (TYPE_ENDIANITY_NOT_DEFAULT): Use
533 type::endianity_is_not_default, change all write call sites to
534 use type::set_endianity_is_not_default.
535
536 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
537
538 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
539 uses with type::is_fixed_instance.
540
541 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
542
543 * gdbtypes.h (struct type) <is_fixed_instance,
544 set_is_fixed_instance>: New methods.
545 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
546 write call sites to use type::set_is_fixed_instance.
547
548 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
549
550 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
551 uses with type::is_gnu_ifunc.
552
553 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
554
555 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
556 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
557 use type::set_is_gnu_ifunc.
558
559 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
560
561 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
562 uses with type::stub_is_supported.
563
564 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
565
566 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
567 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
568 use type::set_stub_is_supported.
569
570 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
571
572 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
573 uses with type::is_vector.
574
575 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
576
577 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
578 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
579 use type::set_is_vector.
580
581 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
582
583 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
584 uses with type::has_varargs.
585
586 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
587
588 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
589 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
590 use type::set_has_varargs.
591
592 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
593
594 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
595 uses with type::is_prototyped.
596
597 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
598
599 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
600 New methods.
601 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
602 call sites to use type::set_is_prototyped.
603
604 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
605
606 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
607 uses with type::target_is_stub.
608
609 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
610
611 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
612 New methods.
613 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
614 sites to use type::set_target_is_stub.
615
616 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
617
618 * gdbtypes.h (TYPE_STUB): Remove, replace all
619 uses with type::is_stub.
620
621 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
622
623 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
624 (TYPE_STUB): Use type::is_stub, change all write call sites to
625 use type::set_is_stub.
626
627 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
628
629 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
630 type::has_no_signedness.
631
632 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
633
634 * gdbtypes.h (struct type) <has_no_signedness,
635 set_has_no_signedness>: New methods.
636 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
637 call sites to use type::set_has_no_signedness.
638
639 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
640
641 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
642 type::is_unsigned.
643
644 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
645
646 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
647 methods.
648 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
649 sites to use type::set_is_unsigned.
650
651 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
652 Adam Renquinha <arenquinha@cimeq.qc.ca>
653
654 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
655 pointer and stack frame offset when unwinding.
656
657 2020-09-13 Pedro Alves <pedro@palves.net>
658
659 * NEWS: Document "-break-insert --qualified".
660 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
661
662 2020-09-13 Pedro Alves <pedro@palves.net>
663
664 * linespec.c (classify_mtype, compare_msyms): Delete.
665 (search_minsyms_for_name): Remove classification logic. Instead
666 filter out trampoline symbols if we also found an external
667 function of the same name.
668
669 2020-09-13 Joel Brobecker <brobecker@adacore.com>
670
671 * NEWS: Create a new section for the next release branch.
672 Rename the section of the current branch, now that it has
673 been cut.
674
675 2020-09-13 Joel Brobecker <brobecker@adacore.com>
676
677 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
678 * version.in: Bump version to 11.0.50.DATE-git.
679
680 2020-09-12 Joel Brobecker <brobecker@adacore.com>
681
682 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
683
684 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
685 Felix Willgerodt <Felix.Willgerodt@intel.com>
686
687 * gdbarch.sh: Added bfloat16 type.
688 * gdbarch.c: Regenerated.
689 * gdbarch.h: Regenerated.
690 * gdbtypes.c (floatformats_bfloat16): New struct.
691 (gdbtypes_post_init): Add builtin_bfloat16.
692 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
693 (floatformats_bfloat16): New struct.
694 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
695 (i386_ymm_type): Add field "v16_bfloat16"
696 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
697 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
698 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
699 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
700 * features/i386/64bit-avx512.xml: Add bfloat16 type.
701 * features/i386/64bit-avx512.c: Regenerated.
702 * features/i386/64bit-sse.xml: Add bfloat16 type.
703 * features/i386/64bit-sse.c: Regenerated.
704
705 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
706
707 * i386-tdep.c (i386_zmm_type): Fix field names.
708 (i386_ymm_type): Fix field names.
709
710 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
711
712 * breakpoint.c: Fix typo in the help message of the
713 "set breakpoint condition-evaluation" command.
714
715 2020-09-10 Kamil Rytarowski <n54@gmx.com>
716
717 * nbsd-nat.c: Include "nat/netbsd-nat.h".
718 * (nbsd_nat_target::pid_to_exec_file)
719 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
720 (nbsd_nat_target::post_startup_inferior)
721 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
722 (nbsd_add_threads): Switch local code to common gdb/nat functions.
723 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
724 * (nbsd_thread_lister): Remove.
725
726 2020-09-10 Kamil Rytarowski <n54@gmx.com>
727
728 * fork-inferior.c (startup_inferior): Avoid double free.
729
730 2020-09-10 Kamil Rytarowski <n54@gmx.com>
731
732 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
733 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
734
735 2020-09-10 Kamil Rytarowski <n54@gmx.com>
736
737 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
738 * netbsd-nat.c: Include <sys/ptrace.h>.
739 * (netbsd_nat::enable_proc_events): Add.
740
741 2020-09-10 Kamil Rytarowski <n54@gmx.com>
742
743 * netbsd-nat.h: Include "gdbsupport/function-view.h".
744 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
745 (netbsd_nat::for_each_thread): Add.
746 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
747 "gdbsupport/common-debug.h".
748 * (netbsd_nat::netbsd_thread_lister)
749 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
750 (netbsd_nat::for_each_thread): Add.
751
752 2020-09-10 Kamil Rytarowski <n54@gmx.com>
753
754 * netbsd-nat.h: Include <unistd.h>.
755 * (netbsd_nat::pid_to_exec_file): Add.
756 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
757 * (netbsd_nat::pid_to_exec_file) Add.
758
759 2020-09-10 Kamil Rytarowski <n54@gmx.com>
760
761 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
762
763 2020-09-10 Kamil Rytarowski <n54@gmx.com>
764
765 * netbsd-nat.h: New file.
766 * netbsd-nat.c: Likewise.
767
768 2020-09-09 Tom Tromey <tromey@adacore.com>
769
770 * ada-lang.c (remove_extra_symbols): Do not increment when
771 removing an element
772
773 2020-09-08 Tom Tromey <tromey@adacore.com>
774
775 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
776
777 2020-09-08 Tom Tromey <tromey@adacore.com>
778
779 PR win32/25302:
780 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
781 (gdb_bfd_init_data): New function.
782 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
783
784 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
785
786 * infrun.c (fetch_inferior_event): Use
787 `switch_to_target_no_thread` to switch the target.
788
789 2020-09-06 Tom Tromey <tom@tromey.com>
790
791 * symfile.h (dwarf2_free_objfile): Don't declare.
792
793 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
794
795 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
796 to match 16 byte real/complex type generated by Flang compiler.
797
798 2020-09-03 Tom de Vries <tdevries@suse.de>
799
800 PR breakpoint/26546
801 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
802 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
803
804 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * maint.c (index_digits): New function.
807 (struct maint_print_section_data): Remove.
808 (print_bfd_section_info): Remove print_data parameter, add arg
809 and index_digits.
810 (print_objfile_section_info): Likewise.
811 (print_bfd_section_info_maybe_relocated): Likewise (plus
812 objfile).
813 (maintenance_info_sections): Adjust calls.
814
815 2020-09-02 Tom Tromey <tromey@adacore.com>
816
817 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
818 for null pointers.
819 (ada_varobj_adjust_for_child_access): Special-case null pointers.
820
821 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
822
823 * bcache.h (struct bcache) <insert>: Change type of `added` to
824 pointer to bool.
825 * bcache.c (bcache::insert): Likewise.
826 * gdbtypes.c (check_types_worklist): Adjust.
827 * psymtab.c (add_psymbol_to_bcache): Adjust.
828
829 2020-08-31 Kevin Buettner <kevinb@redhat.com>
830
831 * corelow.c (unordered_set): Include.
832 (class core_target): Add field 'm_core_unavailable_mappings'.
833 (core_target::build_file_mappings): Print only one warning
834 per inaccessible file. Add unavailable/broken mappings
835 to m_core_unavailable_mappings.
836 (core_target::xfer_partial): Call...
837 (core_target::xfer_memory_via_mappings): New method.
838
839 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
840
841 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
842 type to bool.
843
844 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * dwarf2/read.c (struct field_info): Fix indentation.
847
848 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
849
850 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
851 ordering in comment.
852 * frame.c (frame_id_eq): Fix indentation.
853
854 2020-08-31 Scott Linder <scott@scottlinder.com>
855 Simon Marchi <simon.marchi@efficios.com>
856
857 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
858 inline frame ids in outer frame.
859
860 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
861
862 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
863 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
864 (outer_frame_id): Use FID_STACK_OUTER instead of
865 FID_STACK_INVALID.
866 (frame_id_p): Don't check for outer_frame_id.
867
868 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
869
870 * frame-unwind.c (frame_unwind_got_optimized): Don't set
871 regnum/frame in value. Call allocate_value_lazy.
872 * frame.c (frame_unwind_register_value): Use
873 val_print_not_saved.
874
875 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
876
877 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
878
879 2020-08-29 Pedro Alves <pedro@palves.net>
880
881 * progspace.c (print_program_space): Use all_inferiors. Switch to
882 the inferior before calling target_pid_to_str.
883
884 2020-08-28 Tom Tromey <tom@tromey.com>
885
886 * xcoffread.c (xcoff_end_psymtab): Update comment.
887 * dbxread.c (dbx_end_psymtab): Update comment.
888
889 2020-08-28 Tom de Vries <tdevries@suse.de>
890
891 PR breakpoint/26544
892 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
893 event_location.
894 (create_breakpoint): Same.
895 (base_breakpoint_decode_location): Same.
896 (bkpt_create_sals_from_location): Same.
897 (bkpt_decode_location): Same.
898 (bkpt_probe_create_sals_from_location): Same.
899 (bkpt_probe_decode_location): Same.
900 (tracepoint_create_sals_from_location): Same.
901 (tracepoint_decode_location): Same.
902 (tracepoint_probe_decode_location): Same.
903 (strace_marker_create_sals_from_location): Same.
904 (strace_marker_decode_location): Same.
905 (create_sals_from_location_default): Same.
906 (decode_location_default): Same.
907 * breakpoint.h (struct breakpoint_ops): Same.
908 (create_breakpoint): Same.
909 * linespec.h (decode_line_full): Same.
910 * linespec.c (decode_line_full): Same. Throw error if
911 result.size () == 0.
912
913 2020-08-27 Pedro Alves <pedro@palves.net>
914
915 PR gdb/26524
916 * breakpoint.c (until_break_fsm) <location_breakpoint,
917 caller_breakpoint>: Delete fields.
918 <breakpoints>: New field.
919 <until_break_fsm>: Adjust to save a breakpoint vector instead of
920 two individual breakpoints.
921 (until_break_fsm::should_stop): Loop over breakpoints in the
922 breakpoint vector.
923 (until_break_fsm::clean_up): Adjust to clear the breakpoints
924 vector.
925 (until_break_command): Handle location expanding into multiple
926 sals.
927
928 2020-08-27 Pedro Alves <pedro@palves.net>
929
930 PR gdb/26523
931 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
932 bp_until breakpoints user-specified locations. Update intro
933 comment.
934
935 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
938 gdb_bfd_sections): New.
939 * maint.c (print_bfd_section_info): Change param type to
940 maint_print_section_data.
941 (print_objfile_section_info): Likewise.
942 (print_bfd_section_info_maybe_relocated): Likewise.
943 (maintenance_info_sections): Use gdb_bfd_sections.
944
945 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
946
947 * MAINTAINERS: Add ARC target and maintainer.
948
949 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
950
951 * configure.tgt: ARC support for GNU/Linux.
952 * Makefile.in (ALL_TARGET_OBJS): Likewise.
953 * arc-linux-tdep.c: New file.
954 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
955 * arc-tdep.c (arc_write_pc): Use it.
956
957 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
958
959 * arc-tdep.c (arc_check_for_hardware_loop): New.
960 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
961
962 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
963
964 * arc-tdep.h: Include "gdbarch.h".
965
966 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
967
968 * arch/arc.h
969 (arc_gdbarch_features): New class to stir the selection of target XML.
970 (arc_create_target_description): Use FEATURES to choose XML target.
971 (arc_lookup_target_description): Use arc_create_target_description
972 to create _new_ target descriptions or return the already created
973 ones if the FEATURES is the same.
974 * arch/arc.c: Implementation of prototypes described above.
975 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
976 (arc_gdbarch_features_init): Initialize the FEATURES struct.
977 * arc-tdep.c (*_feature_name): Make feature names consistent.
978 (arc_register_feature): A new struct to hold information about
979 registers of a particular target/feature.
980 (arc_check_tdesc_feature): Check if XML provides registers in
981 compliance with ARC_REGISTER_FEATURE structs.
982 (arc_update_acc_reg_names): Add aliases for r58 and r59.
983 (determine_*_reg_feature_set): Which feature name to look for.
984 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
985 (mach_type_to_arc_isa): Convert from a set of binutils machine types
986 to expected ISA enums to be used in arc_gdbarch_features structs.
987 * features/Makefile (FEATURE_XMLFILES): Add new files.
988 * gdb/features/arc/v1-aux.c: New file.
989 * gdb/features/arc/v1-aux.xml: Likewise.
990 * gdb/features/arc/v1-core.c: Likewise.
991 * gdb/features/arc/v1-core.xml: Likewise.
992 * gdb/features/arc/v2-aux.c: Likewise.
993 * gdb/features/arc/v2-aux.xml: Likewise.
994 * gdb/features/arc/v2-core.c: Likewise.
995 * gdb/features/arc/v2-core.xml: Likewise.
996 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
997
998 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
999 Andrew Burgess <andrew.burgess@embecosm.com>
1000
1001 PR m2/26372
1002 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1003 an assert. Remove single element array indexing pattern as the
1004 MULTI_SUBSCRIPT support will handle this case too.
1005
1006 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1007
1008 * value.h (valprint_check_validity): Move declaration from
1009 here...
1010 * valprint.h (valprint_check_validity): ... to here.
1011
1012 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1013
1014 * debug.h: New file.
1015 * debug.c (debug_prefixed_vprintf): New function.
1016 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1017 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1018
1019 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1020
1021 * infrun.h (infrun_debug_printf_1): New function declaration.
1022 (infrun_debug_printf): New macro.
1023 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1024 throughout.
1025 (infrun_debug_printf): New function.
1026 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1027 (handle_jit_event): Likewise.
1028
1029 2020-08-21 Mark Wielaard <mark@klomp.org>
1030
1031 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1032
1033 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1034
1035 * frame.c (enum class frame_id_status): New.
1036 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1037 (fprintf_frame): Update.
1038 (compute_frame_id): Set frame id status to "computing" on entry.
1039 Set it back to "not_computed" on failure and to "computed" on
1040 success.
1041 (get_frame_id): Assert the frame id is not being computed.
1042 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1043 (create_new_frame): Likewise.
1044 (frame_cleanup_after_sniffer): Update assert.
1045
1046 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * regcache.c (pid_ptid_regcache_map): New type.
1049 (target_ptid_regcache_map): Remove.
1050 (target_pid_ptid_regcache_map): New type.
1051 (regcaches): Change type to target_pid_ptid_regcache_map.
1052 (get_thread_arch_aspace_regcache): Update.
1053 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1054 case.
1055 (regcaches_size): Update.
1056 (regcache_count): Update.
1057 (registers_changed_ptid_target_pid_test): New.
1058 (_initialize_regcache): Register new test.
1059
1060 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * regcache.c (regcache_count): New.
1063 (struct regcache_test_data): New.
1064 (regcache_test_data_up): New.
1065 (populate_regcaches_for_test): New.
1066 (regcaches_test): Remove.
1067 (get_thread_arch_aspace_regcache_test): New.
1068 (registers_changed_ptid_all_test): New.
1069 (registers_changed_ptid_target_test): New.
1070 (registers_changed_ptid_target_ptid_test): New.
1071 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1072 (_initialize_regcache): Register new tests.
1073
1074 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1077 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1078 gdbarch and aspace parameter. Use current inferior's aspace.
1079 Validate regcache's arch value.
1080 (regcaches_test): Update.
1081
1082 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * regcache.c (regcaches_test): Call registers_changed.
1085
1086 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087
1088 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1089
1090 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1091
1092 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1093 to find the end of prologue for flang compiled binaries.
1094 * arm-tdep.c (arm_skip_prologue): Likewise.
1095 * i386-tdep.c (i386_skip_prologue): Likewise.
1096 * producer.c (producer_is_llvm): New function.
1097 (producer_parsing_tests): Added new tests for clang/flang.
1098 * producer.h (producer_is_llvm): New declaration.
1099
1100 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1101
1102 * linux-nat.c (linux_nat_debug_printf): New function.
1103 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1104
1105 2020-08-18 Aaron Merey <amerey@redhat.com>
1106
1107 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1108 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1109 (CLIBS): Add DEBUGINFOD_LIBS.
1110
1111 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1112
1113 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1114 'gdbarch_num_regs'.
1115
1116 2020-08-17 Tom Tromey <tromey@adacore.com>
1117
1118 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1119 ada_get_decoded_value returns NULL.
1120
1121 2020-08-17 Tom Tromey <tromey@adacore.com>
1122
1123 * python/py-inferior.c (infpy_search_memory): Use
1124 gdb_py_object_from_ulongest.
1125 * python/py-infevents.c (create_inferior_call_event_object)
1126 (create_memory_changed_event_object): Use
1127 gdb_py_object_from_ulongest.
1128 * python/py-linetable.c (ltpy_entry_get_pc): Use
1129 gdb_py_object_from_ulongest.
1130
1131 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1132
1133 * loc.c (class symbol_needs_eval_context): Fix indentation.
1134
1135 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1138 bool.
1139
1140 2020-08-17 Tom de Vries <tdevries@suse.de>
1141
1142 PR gdb/26393
1143 * gdbtypes.c (dump_dynamic_prop): New function.
1144 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1145
1146 2020-08-15 Tom de Vries <tdevries@suse.de>
1147
1148 PR backtrace/26390
1149 * stack.c (print_frame_args): Temporarily set the selected
1150 frame to FRAME while printing the frame's arguments.
1151
1152 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1153
1154 PR breakpoints/26385
1155 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1156 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1157
1158 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1159
1160 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1161 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1162 and >= to check return value instead of == -1 and != -1.
1163
1164 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1165
1166 * utils.h (class gdb_argv) <as_array_view>: New method.
1167 * utils.c (gdb_argv_as_array_view_test): New.
1168 (_initialize_utils): Register selftest.
1169 * maint.c (maintenance_selftest): Use the new method.
1170
1171 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1172
1173 * target.h (supports_dumpcore, dumpcore): New
1174 function declarations.
1175 * target.c (supports_dumpcore, dumpcore): New
1176 functions.
1177 * target-delegates.c: Rebuild.
1178 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1179 and target_dumpcore ().
1180
1181 2020-08-13 Aaron Merey <amerey@redhat.com>
1182
1183 * debuginfod-support.c: Replace global variables with user_data.
1184
1185 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * maint.c (maintenance_selftest): Split args and pass array_view
1188 to run_tests.
1189
1190 2020-08-12 Luis Machado <luis.machado@linaro.org>
1191
1192 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1193 type's length.
1194 Use %s and pulongest to print the length.
1195
1196 2020-08-12 Pedro Alves <palves@redhat.com>
1197
1198 * NEWS: Move "Multi-target debugging support" item to the
1199 "Changes since GDB 9" section.
1200
1201 2020-08-12 Pedro Alves <palves@redhat.com>
1202
1203 PR gdb/26336
1204 * progspace.c (program_space::remove_objfile): Invalidate the
1205 frame cache.
1206
1207 2020-08-11 Tom de Vries <tdevries@suse.de>
1208
1209 * MAINTAINERS: Mark ms1 as deleted.
1210
1211 2020-08-10 Luis Machado <luis.machado@linaro.org>
1212
1213 PR gdb/26310
1214
1215 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1216 act accordingly.
1217 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1218 movz/str/stur/stp skipping behavior.
1219
1220 2020-08-10 Luis Machado <luis.machado@linaro.org>
1221
1222 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1223 struct user_sve_header instead of struct sve_context.
1224
1225 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * read.h (dwarf2_fetch_die_loc_sect_off,
1228 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1229 `void *` parameter with function_view.
1230 * read.c (dwarf2_fetch_die_loc_sect_off,
1231 dwarf2_fetch_die_loc_cu_off): Likewise.
1232 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1233 (per_cu_dwarf_call): Adjust.
1234 (get_frame_address_in_block_wrapper): Remove.
1235 (indirect_synthetic_pointer): Adjust.
1236 (get_ax_pc): Remove.
1237 (dwarf2_compile_expr_to_ax): Adjust.
1238
1239 2020-08-08 Tom de Vries <tdevries@suse.de>
1240
1241 PR build/26344
1242 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1243 constructor.
1244 * regcache.c (get_thread_arch_aspace_regcache): Same.
1245
1246 2020-08-07 Tom Tromey <tromey@adacore.com>
1247
1248 * ravenscar-thread.c
1249 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1250 New method.
1251 (ravenscar_thread_target::wait): Check
1252 runtime_initialized.
1253 (ravenscar_thread_target::prepare_to_store)
1254 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1255 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1256 (ravenscar_thread_target::stopped_by_watchpoint)
1257 (ravenscar_thread_target::stopped_data_address)
1258 (ravenscar_thread_target::core_of_thread): Use
1259 scoped_restore_current_thread and
1260 set_base_thread_from_ravenscar_task.
1261
1262 2020-08-07 Tom Tromey <tromey@adacore.com>
1263
1264 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1265
1266 2020-08-07 Tom Tromey <tromey@adacore.com>
1267
1268 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1269 update_inferior_ptid before update_thread_list.
1270 (temporarily_change_regcache_ptid): New class.
1271 (ravenscar_thread_target::fetch_registers)
1272 (ravenscar_thread_target::store_registers)
1273 (ravenscar_thread_target::prepare_to_store): Use base thread when
1274 forwarding operation.
1275
1276 2020-08-07 Tom Tromey <tromey@adacore.com>
1277
1278 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1279 "is_pid" case.
1280
1281 2020-08-07 Tom Tromey <tromey@adacore.com>
1282
1283 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1284 New methods.
1285 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1286 first.
1287 (ravenscar_thread_target::add_thread): Rename from
1288 ravenscar_add_thread.
1289 (ravenscar_thread_target::update_thread_list): Use a lambda.
1290 (ravenscar_thread_target::xfer_partial): New method.
1291
1292 2020-08-07 Tom Tromey <tromey@adacore.com>
1293
1294 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1295 gdb::function_view.
1296 (iterate_over_live_ada_tasks): Change type of argument.
1297 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1298 of argument.
1299
1300 2020-08-07 Tom Tromey <tromey@adacore.com>
1301
1302 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1303 Remove.
1304 (ravenscar_thread_target::extra_thread_info): Remove.
1305 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1306 defer to target beneath for non-Ravenscar threads.
1307
1308 2020-08-07 Tom Tromey <tromey@adacore.com>
1309
1310 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1311 get_base_thread_from_ravenscar_task>: Now methods.
1312 <m_cpu_map>: New member.
1313 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1314 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1315 (ravenscar_thread_target::task_is_currently_active): Update.
1316 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1317 Now a method.
1318 (ravenscar_thread_target::add_active_thread): Put initial thread
1319 into the m_cpu_map.
1320
1321 2020-08-07 Tom Tromey <tromey@adacore.com>
1322
1323 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1324 event_ptid.
1325
1326 2020-08-07 Tom Tromey <tromey@adacore.com>
1327
1328 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1329 runtime_initialized.
1330
1331 2020-08-07 Tom Tromey <tromey@adacore.com>
1332
1333 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1334 add_active_thread.
1335 (ravenscar_thread_target::add_active_thread): Now public.
1336 (ravenscar_inferior_created): Call add_active_thread after pushing
1337 the target.
1338
1339 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * regcache.c (ptid_regcache_map): New type.
1342 (target_ptid_regcache_map): New type.
1343 (regcaches): Change type to target_ptid_regcache_map.
1344 (get_thread_arch_aspace_regcache): Update to regcaches' new
1345 type.
1346 (regcache_thread_ptid_changed): Likewise.
1347 (registers_changed_ptid): Likewise.
1348 (regcaches_size): Likewise.
1349 (regcaches_test): Update.
1350 (regcache_thread_ptid_changed): Update.
1351 * regcache.h (regcache_up): New type.
1352 * gdbsupport/ptid.h (hash_ptid): New struct.
1353
1354 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1355
1356 * observable.h (thread_ptid_changed): Add parameter
1357 `process_stratum_target *`.
1358 * infrun.c (infrun_thread_ptid_changed): Add parameter
1359 `process_stratum_target *` and use it.
1360 (selftests): New namespace.
1361 (infrun_thread_ptid_changed): New function.
1362 (_initialize_infrun): Register selftest.
1363 * regcache.c (regcache_thread_ptid_changed): Add parameter
1364 `process_stratum_target *` and use it.
1365 (regcache_thread_ptid_changed): New function.
1366 (_initialize_regcache): Register selftest.
1367 * thread.c (thread_change_ptid): Pass target to
1368 thread_ptid_changed observable.
1369
1370 2020-08-06 Caroline Tice <cmtice@google.com>
1371
1372 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1373 (struct dwp_sections): Update field comments. Add loclists and
1374 rnglists fields.
1375 (struct virtual_v2_dwo_sections): Rename struct to
1376 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1377 size & offset fields for loclists and rnglists.
1378 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1379 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1380 skipping dummy type units.
1381 (create_dwp_hash_table): Update the large comment above the function to
1382 discuss Version 5 DWP files as well, with references. Update all the
1383 version checks in the function to check for version 5 as well. Add new
1384 section at the end to create dwp hash table for version 5.
1385 (create_dwp_v2_section): Rename function to
1386 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1387 Add V5 to error message text.
1388 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1389 into calls to create_dwp_v2_or_v5_section.
1390 (create_dwo_unit_in_dwp_v5): New function.
1391 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1392 check for version2; add else clause to handle version 5.
1393 (open_and_init_dwo_file): Add code to check dwarf version & only call
1394 create_debug_types_hash_table (with sections.types) if version is not 5;
1395 else call create_debug_type_hash_table, with sections.info.
1396 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1397 version 5.
1398 (dwarf2_locate_v5_dwp_sections): New function.
1399 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1400 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1401
1402 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1403
1404 * regcache.h (class regcache): Remove friend
1405 registers_changed_ptid.
1406 <regcache_thread_ptid_changed>: Remove.
1407 <regcaches>: Remove.
1408 * regcache.c (regcache::regcaches): Rename to...
1409 (regcaches): ... this. Make static.
1410 (get_thread_arch_aspace_regcache): Update.
1411 (regcache::regcache_thread_ptid_changed): Rename to...
1412 (regcache_thread_ptid_changed): ... this. Update.
1413 (class regcache_access): Remove.
1414 (regcaches_test): Update.
1415 (_initialize_regcache): Update.
1416 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1417 <forward_list>.
1418
1419 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1420
1421 * regcache.h (class regcache) <current_regcache>: Rename to...
1422 <regcaches>: ... this. Move doc here.
1423 * regcache.c (regcache::current_regcache) Rename to...
1424 (regcache::regcaches): ... this. Move doc to header.
1425 (get_thread_arch_aspace_regcache): Update.
1426 (regcache::regcache_thread_ptid_changed): Update.
1427 (registers_changed_ptid): Update.
1428 (class regcache_access) <current_regcache_size>: Rename to...
1429 <regcaches_size>: ... this.
1430 (current_regcache_test): Rename to...
1431 (regcaches_test): ... this.
1432 (_initialize_regcache): Update.
1433
1434 2020-08-06 Victor Collod <vcollod@nvidia.com>
1435
1436 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1437
1438 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1439
1440 * corelow.c (core_target::build_file_mappings): Don't output
1441 null pathname in warning.
1442
1443 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1446 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1447 gdb.dwarf2/dw2-single-line-discriminators.exp,
1448 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1449
1450 2020-08-05 Tom Tromey <tromey@adacore.com>
1451
1452 PR rust/26197:
1453 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1454 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1455 Fix off-by-one and type size errors in ordinary case.
1456
1457 2020-08-05 Tom de Vries <tdevries@suse.de>
1458
1459 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1460 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1461
1462 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * frame.h (frame_id_p): Return bool.
1465 (frame_id_artificial_p): Return bool.
1466 (frame_id_eq): Return bool.
1467 (has_stack_frames): Return bool.
1468 (get_selected_frame): Fix typo in comment.
1469 (get_frame_pc_if_available): Return bool.
1470 (get_frame_address_in_block_if_available): Return bool.
1471 (get_frame_func_if_available): Return bool.
1472 (read_frame_register_unsigned): Return bool.
1473 (get_frame_register_bytes): Return bool.
1474 (safe_frame_unwind_memory): Return bool.
1475 (deprecated_frame_register_read): Return bool.
1476 (frame_unwinder_is): Return bool.
1477 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1478 bool.
1479 <this_id::p>: Likewise.
1480 <prev_p>: Likewise.
1481 (frame_stash_add): Return bool.
1482 (get_frame_id): Use bool.
1483 (frame_id_build_special) Use bool.
1484 (frame_id_build_unavailable_stack): Use bool.
1485 (frame_id_build): Use bool.
1486 (frame_id_p): Return bool, use true/false instead of 1/0.
1487 (frame_id_artificial_p): Likewise.
1488 (frame_id_eq): Likewise.
1489 (frame_id_inner): Likewise.
1490 (get_frame_func_if_available): Likewise.
1491 (read_frame_register_unsigned): Likewise.
1492 (deprecated_frame_register_read): Likewise.
1493 (get_frame_register_bytes): Likewise.
1494 (has_stack_frames): Likewise.
1495 (inside_main_func): Likewise.
1496 (inside_entry_func): Likewise.
1497 (get_frame_pc_if_available): Likewise.
1498 (get_frame_address_in_block_if_available): Likewise.
1499 (frame_unwinder_is): Likewise.
1500 (safe_frame_unwind_memory): Likewise.
1501 (frame_unwind_arch): Likewise.
1502
1503 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1506 type to cached_copy_status.
1507 (fprintf_frame): Adjust.
1508 (get_frame_func_if_available): Adjust.
1509 (frame_cleanup_after_sniffer): Adjust.
1510
1511 2020-08-04 Mark Wielaard <mark@klomp.org>
1512
1513 * MAINTAINERS (Write After Approval): Update email address.
1514
1515 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1518 dynamic_prop::const_val.
1519
1520 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1521
1522 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1523 dynamic_prop::kind.
1524
1525 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1528
1529 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1530
1531 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1532
1533 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1534 Jose E. Marchesi <jose.marchesi@oracle.com>
1535
1536 * configure.tgt: Add entry for bpf-*-*.
1537 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1538 (ALLDEPFILES): Add bpf-tdep.c.
1539 * bpf-tdep.c: New file.
1540 * MAINTAINERS: Add bpf target and maintainer.
1541 * NEWS: Mention the support for the new target.
1542
1543 2020-08-04 Tom de Vries <tdevries@suse.de>
1544
1545 PR symtab/23270
1546 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1547 Error.
1548
1549 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1550
1551 * syscalls/freebsd.xml: Regenerate.
1552
1553 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1554
1555 * syscalls/update-freebsd.sh: Fix usage and year range.
1556
1557 2020-08-03 Tom de Vries <tdevries@suse.de>
1558
1559 PR symtab/26333
1560 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1561 DW_LNE_lo_user/DW_LNE_hi_user range.
1562
1563 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 PR ada/26318
1566 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1567 kind.
1568
1569 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1570
1571 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1572
1573 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1574
1575 * breakpoint.c (set_breakpoint_condition): Update the condition
1576 expressions after checking that the input condition string parses
1577 successfully and does not contain junk at the end.
1578
1579 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1580
1581 * breakpoint.c (set_breakpoint_condition): Update the
1582 condition string after parsing the new condition successfully.
1583
1584 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1585
1586 * proc-api.c (_STRUCTURED_PROC): Don't define.
1587 * proc-events.c: Likewise.
1588 * proc-flags.c: Likewise.
1589 * proc-why.c: Likewise.
1590 * procfs.c: Likewise.
1591
1592 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1593 * configure, config.in: Regenerate.
1594
1595 2020-07-30 Tom de Vries <tdevries@suse.de>
1596
1597 PR build/26320
1598 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1599 m_red/m_green/m_blue in a union.
1600
1601 2020-07-29 Tom de Vries <tdevries@suse.de>
1602
1603 PR tdep/26280
1604 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1605
1606 2020-07-28 Tom Tromey <tromey@adacore.com>
1607
1608 PR symtab/26270:
1609 * symtab.h (find_pc_partial_function_sym): Declare.
1610 * cli/cli-cmds.c (disassemble_command): Use
1611 find_pc_partial_function_sym. Check asm_demangle.
1612 * blockframe.c (cache_pc_function_sym): New global.
1613 (cache_pc_function_name): Remove.
1614 (clear_pc_function_cache): Update.
1615 (find_pc_partial_function_sym): New function, from
1616 find_pc_partial_function.
1617 (find_pc_partial_function): Rewrite using
1618 find_pc_partial_function_sym.
1619
1620 2020-07-28 Tom Tromey <tromey@adacore.com>
1621
1622 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1623 help. Add usage.
1624
1625 2020-07-28 Tom Tromey <tromey@adacore.com>
1626
1627 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1628 <DW_OP_GNU_variable_value>: Cast to address type.
1629
1630 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1631
1632 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1633 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1634 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1635 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1636 (nbsd_get_siginfo_type): New.
1637 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1638 (_initialize_nbsd_tdep): New.
1639
1640 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1641
1642 PR binutils/26301
1643 * configure: Regenerated.
1644
1645 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1646
1647 PR binutils/26301
1648 * configure: Regenerated.
1649
1650 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * python/py-frame.c: Remove 'user-regs.h' include.
1653 (frapy_read_register): Rewrite to make use of
1654 gdbpy_parse_register_id.
1655 * python/py-registers.c (gdbpy_parse_register_id): New function,
1656 moved here from python/py-unwind.c. Updated the return type, and
1657 also accepts register descriptor objects.
1658 * python/py-unwind.c: Remove 'user-regs.h' include.
1659 (pyuw_parse_register_id): Moved to python/py-registers.c.
1660 (unwind_infopy_add_saved_register): Update to use
1661 gdbpy_parse_register_id.
1662 (pending_framepy_read_register): Likewise.
1663 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1664
1665 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * python/py-registers.c: Add 'user-regs.h' include.
1668 (register_descriptor_iter_find): New function.
1669 (register_descriptor_iterator_object_methods): New static global
1670 methods array.
1671 (register_descriptor_iterator_object_type): Add pointer to methods
1672 array.
1673
1674 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1675
1676 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1677 for all architectures on FreeBSD 11.3 and later.
1678
1679 2020-07-27 Tom Tromey <tromey@adacore.com>
1680
1681 * gcore.h (load_corefile): Don't declare.
1682
1683 2020-07-27 Tom de Vries <tdevries@suse.de>
1684
1685 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1686 * config.in: Regenerate.
1687 * configure: Regenerate.
1688
1689 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1690
1691 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1692 ws2tcpip.h. When checking whether socklen_t type is defined, use
1693 ws2tcpip.h if it is available and sys/socket.h isn't.
1694 * configure: Regenerate.
1695 * config.in: Regenerate.
1696
1697 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 PR fortran/23051
1700 PR fortran/26139
1701 * valops.c (value_ind): Pass address to
1702 readjust_indirect_value_type.
1703 * value.c (readjust_indirect_value_type): Make parameter
1704 non-const, and add extra address parameter. Resolve original type
1705 before using it.
1706 * value.h (readjust_indirect_value_type): Update function
1707 signature and comment.
1708
1709 2020-07-25 Tom de Vries <tdevries@suse.de>
1710
1711 PR symtab/26243
1712 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1713 entries.
1714
1715 2020-07-24 Aaron Merey <amerey@redhat.com>
1716
1717 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1718 * configure: Rebuild.
1719
1720 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1721
1722 PR corefiles/26294
1723 * corelow.c (_initialize_corelow): Add period to help text
1724 for "maintenance print core-file-backed-mappings".
1725
1726 2020-07-23 Pedro Alves <pedro@palves.net>
1727
1728 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1729 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1730 meanwhile.
1731 * frame.c (frame_cache_generation, get_frame_cache_generation):
1732 New.
1733 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1734 (get_prev_frame_if_no_cycle): On exception, don't touch
1735 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1736 * frame.h (get_frame_cache_generation): Declare.
1737
1738 2020-07-23 Tom de Vries <tdevries@suse.de>
1739
1740 PR tui/26282
1741 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1742 New default constructor.
1743
1744 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1747 exclude non-statement entries.
1748
1749 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1750
1751 * NEWS (New commands): Mention new command
1752 "maintenance print core-file-backed-mappings".
1753
1754 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1755
1756 * corelow.c (gdbcmd.h): Include.
1757 (core_target::info_proc_mappings): New method.
1758 (get_current_core_target): New function.
1759 (maintenance_print_core_file_backed_mappings): New function.
1760 (_initialize_corelow): Add core-file-backed-mappings to
1761 "maint print" commands.
1762
1763 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1764
1765 * linux-tdep.c (dump_note_entry_p): New function.
1766 (linux_dump_mapping_p_ftype): New typedef.
1767 (linux_find_memory_regions_full): Add new parameter,
1768 should_dump_mapping_p.
1769 (linux_find_memory_regions): Adjust call to
1770 linux_find_memory_regions_full.
1771 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1772 call to linux_find_memory_regions_full.
1773
1774 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1775
1776 * corelow.c (solist.h, unordered_map): Include.
1777 (class core_target): Add field m_core_file_mappings and
1778 method build_file_mappings.
1779 (core_target::core_target): Call build_file_mappings.
1780 (core_target::~core_target): Free memory associated with
1781 m_core_file_mappings.
1782 (core_target::build_file_mappings): New method.
1783 (core_target::xfer_partial): Use m_core_file_mappings
1784 for memory transfers.
1785 * linux-tdep.c (linux_read_core_file_mappings): New
1786 function.
1787 (linux_core_info_proc_mappings): Rewrite to use
1788 linux_read_core_file_mappings.
1789 (linux_init_abi): Register linux_read_core_file_mappings.
1790
1791 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1792
1793 * arch-utils.c (default_read_core_file_mappings): New function.
1794 * arch-utils.c (default_read_core_file_mappings): Declare.
1795 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1796 * gdbarch.h, gdbarch.c: Regenerate.
1797
1798 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1799
1800 PR corefiles/25631
1801 * corelow.c (core_target:xfer_partial): Revise
1802 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1803 case after first checking the stratum beneath the core
1804 target.
1805 (has_all_memory): Return true.
1806 * target.c (raw_memory_xfer_partial): Revise comment
1807 regarding use of has_all_memory.
1808
1809 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1810
1811 * exec.h (section_table_xfer_memory): Revise declaration,
1812 replacing section name parameter with an optional callback
1813 predicate.
1814 * exec.c (section_table_xfer_memory): Likewise.
1815 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1816 of section_table_xfer_memory.
1817
1818 2020-07-22 Tom Tromey <tromey@adacore.com>
1819
1820 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1821 lookup_symbol_search_name.
1822
1823 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1826 redundant local variable.
1827 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1828 reference, not pointer, update code accordingly.
1829
1830 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1831 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1832
1833 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1834 * jit.c (jit_breakpoint_re_set_internal): Use the
1835 `skip_jit_symbol_lookup` field.
1836
1837 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1838 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1839
1840 * jit.c (jit_read_descriptor): Define the descriptor address once,
1841 use twice.
1842 (jit_breakpoint_deleted): Move the declaration of the loop variable
1843 `iter` into the loop header.
1844 (jit_breakpoint_re_set_internal): Move the declaration of the local
1845 variable `objf_data` to the first point of definition.
1846 (jit_event_handler): Move the declaration of local variables
1847 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1848 Rename `objf` to `jited`.
1849
1850 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1853 Remove.
1854 * jit.c (get_jiter_objfile_data): Update.
1855
1856 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1857 Simon Marchi <simon.marchi@polymtl.ca>
1858
1859 * jit.c (struct jit_program_space_data): Remove.
1860 (jit_program_space_key): Remove.
1861 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1862 stuff.
1863 (get_jit_program_space_data): Remove.
1864 (jit_breakpoint_deleted): Iterate on all of the program space's
1865 objfiles.
1866 (jit_inferior_init): Likewise.
1867 (jit_breakpoint_re_set_internal): Likewise. Also change return
1868 type to void.
1869 (jit_breakpoint_re_set): Pass current_program_space to
1870 jit_breakpoint_re_set_internal.
1871
1872 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1873
1874 * jit.h (struct jiter_objfile_data) <cached_code_address,
1875 jit_breakpoint>: Move to here from ...
1876 * jit.c (jit_program_space_data): ... here.
1877 (jiter_objfile_data::~jiter_objfile_data): Update.
1878 (jit_breakpoint_deleted): Update.
1879 (jit_breakpoint_re_set_internal): Update.
1880
1881 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1882
1883 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1884 checks.
1885 (jit_read_descriptor): Remove NULL check.
1886 (jit_event_handler): Add an assertion.
1887
1888 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1889
1890 * jit.h (struct jit_objfile_data): Split into...
1891 (struct jiter_objfile_data): ... this ...
1892 (struct jited_objfile_data): ... and this.
1893 * objfiles.h (struct objfile) <jit_data>: Remove.
1894 <jiter_data, jited_data>: New fields.
1895 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1896 (jiter_objfile_data::~jiter_objfile_data): ... this.
1897 (get_jit_objfile_data): Rename to ...
1898 (get_jiter_objfile_data): ... this.
1899 (add_objfile_entry): Update.
1900 (jit_read_descriptor): Use get_jiter_objfile_data.
1901 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1902 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1903 (jit_inferior_exit_hook): Use objfile's jited_data field.
1904
1905 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1906
1907 * jit.h: Forward-declare `struct minimal_symbol`.
1908 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1909 constructor, destructor, and an objfile* field.
1910 * jit.c (jit_objfile_data): Remove.
1911 (struct jit_objfile_data): Migrate from here to jit.h.
1912 (jit_objfile_data::~jit_objfile_data): New destructor
1913 implementation with code moved from free_objfile_data.
1914 (free_objfile_data): Delete.
1915 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1916 (jit_find_objf_with_entry_addr): Ditto.
1917 (jit_inferior_exit_hook): Ditto.
1918 (_initialize_jit): Remove the call to
1919 register_objfile_data_with_cleanup.
1920 * objfiles.h (struct objfile) <jit_data>: New field.
1921
1922 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1923
1924 * jit.h: Forward-declare `struct objfile`.
1925 (jit_event_handler): Add a second parameter, the JITer objfile.
1926 * jit.c (jit_read_descriptor): Change the signature to take the
1927 JITer objfile as an argument instead of the jit_program_space_data.
1928 (jit_inferior_init): Update the call to jit_read_descriptor.
1929 (jit_event_handler): Use the new JITer objfile argument when calling
1930 jit_read_descriptor.
1931 * breakpoint.c (handle_jit_event): Update the call to
1932 jit_event_handler to pass the JITer objfile.
1933
1934 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1935
1936 * gdbarch.c: Regenerate.
1937 * gdbarch.h: Regenerate.
1938 * gdbarch.sh (handle_segmentation_fault): Remove method.
1939 * infrun.c (handle_segmentation_fault): Remove.
1940 (print_signal_received_reason): Remove call to
1941 handle_segmentation_fault.
1942
1943 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1944
1945 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1946 Rename to sparc64_linux_report_signal_info and add siggnal
1947 argument.
1948 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1949 instead of sparc64_linux_handle_segmentation_fault.
1950
1951 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1952
1953 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1954 i386_linux_report_signal_info instead of
1955 i386_linux_handle_segmentation_fault.
1956 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1957 to i386_linux_report_signal_info and add siggnal argument.
1958 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1959 of i386_linux_handle_segmentation_fault.
1960 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1961 to i386_linux_report_signal_info and add siggnal argument.
1962
1963 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1964
1965 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1966 hook if present.
1967
1968 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1969
1970 * gdbarch.c: Regenerate.
1971 * gdbarch.h: Regenerate.
1972 * gdbarch.sh (report_signal_info): New method.
1973 * infrun.c (print_signal_received_reason): Invoke gdbarch
1974 report_signal_info hook if present.
1975
1976 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * python/py-registers.c : Add 'unordered_map' include.
1979 (gdbpy_new_reggroup): Renamed to...
1980 (gdbpy_get_reggroup): ...this. Update to only create register
1981 group descriptors when needed.
1982 (gdbpy_reggroup_iter_next): Update.
1983
1984 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * python/py-registers.c (gdbpy_register_object_data): New static
1987 global.
1988 (gdbpy_register_object_data_init): New function.
1989 (gdbpy_new_register_descriptor): Renamed to...
1990 (gdbpy_get_register_descriptor): ...this, and update to reuse
1991 existing register descriptors where possible.
1992 (gdbpy_register_descriptor_iter_next): Update.
1993 (gdbpy_initialize_registers): Register new gdbarch data.
1994
1995 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1996
1997 * linux-nat.c (stopped_pids): Make static.
1998
1999 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2000
2001 PR ada/26235
2002 * gdbtypes.c (ada_discrete_type_low_bound,
2003 ada_discrete_type_high_bound): Handle undefined bounds.
2004
2005 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2006
2007 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2008 declaration.
2009 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2010 function.
2011
2012 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2013
2014 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2015 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2016 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2017 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2018 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2019 method.
2020
2021 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2022
2023 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2024 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2025 which are deprecated in Guile 3.0.
2026 * configure.ac (try_guile_versions): Add "guile-3.0".
2027 * configure (try_guile_versions): Regenerate.
2028 * NEWS: Update entry.
2029
2030 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2031 Doug Evans <dje@google.com>
2032
2033 PR gdb/21104
2034 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2035 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2036 USING_GUILE_BEFORE_2_2.
2037 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2038 Change type to 'scm_t_port_type *'.
2039 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2040 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2041 parameter and honor it. Update callers.
2042 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2043 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2044 functions.
2045 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2046 USING_GUILE_BEFORE_2_2.
2047 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2048 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2049 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2050 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2051 and 'SCM_PORT_TYPE'.
2052 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2053 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2054 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2055 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2056 [!USING_GUILE_BEFORE_2_2]: New functions.
2057 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2058 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2059 'gdbscm_memory_port_read'.
2060 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2061 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2062 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2063 function.
2064 (ioscm_init_memory_port): Remove.
2065 (ioscm_init_memory_port_stream): New function
2066 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2067 function.
2068 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2069 Return scm_from_uint (0).
2070 (gdbscm_set_memory_port_read_buffer_size_x)
2071 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2072 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2073 Return scm_from_uint (0).
2074 (gdbscm_set_memory_port_write_buffer_size_x)
2075 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2076 * configure.ac (try_guile_versions): Add "guile-2.2".
2077 * configure: Regenerate.
2078 * NEWS: Add entry.
2079
2080 2020-07-18 Tom Tromey <tom@tromey.com>
2081
2082 * linux-nat.c (linux_multi_process): Remove.
2083 (linux_nat_target::supports_multi_process): Return true.
2084
2085 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2088 (riscv_lookup_target_description): Return pointer out of
2089 unique_ptr.
2090 * target-descriptions.c (allocate_target_description): Add
2091 comment.
2092 (target_desc_deleter::operator()): Likewise.
2093 * target-descriptions.h (struct target_desc_deleter): Moved to
2094 gdbsupport/tdesc.h.
2095 (target_desc_up): Likewise.
2096
2097 2020-07-17 Tom Tromey <tromey@adacore.com>
2098
2099 * linux-nat.c (linux_nat_target::supports_non_stop)
2100 (linux_nat_target::always_non_stop_p): Use "true".
2101 (linux_nat_target::supports_disable_randomization): Use "true" and
2102 "false".
2103
2104 2020-07-16 Caroline Tice <cmtice@google.com>
2105
2106 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2107 (RNGLIST_HEADER_SIZE64): New constant definition.
2108 (struct dwop_section_names): Add rnglists_dwo.
2109 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2110 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2111 (struct dwo_sections): Add rnglists field.
2112 (read_attribut_reprocess): Add tag parameter.
2113 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2114 (cu_debug_rnglists_section): New function (decl & definition).
2115 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2116 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2117 die whose range is being checked; get rnglist section from
2118 cu_debug_rnglists_section, to get from either objfile or dwo file as
2119 appropriate. Add cases for DW_RLE_base_addressx,
2120 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2121 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2122 test inside if-condition and updating complaint message.
2123 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2124 dwarf2_rnglists_process.
2125 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2126 dwarf2_ranges_process.
2127 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2128 need_ranges_base and update comment appropriately. Also pass die tag
2129 to dwarf2_ranges_read.
2130 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2131 need_ranges_base and update comment appropriately. Also pass die tag
2132 to dwarf2_ranges_process.
2133 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2134 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2135 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2136 need_ranges_base and update comment appropriately. Also pass die tag
2137 to read_attribute_reprocess and dwarf2_ranges_read.
2138 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2139 and update function comment appropriately.
2140 (read_loclist_index): Call read_loclists_rnglists_header instead of
2141 read_loclist_header.
2142 (read_rnglist_index): New function.
2143 (read_attribute_reprocess): Add tag parameter. Add code for
2144 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2145 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2146
2147 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2150 being resolved.
2151
2152 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * arch-utils.c (show_architecture): Update formatting of messages.
2155
2156 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2157
2158 * gdbtypes.h (struct type) <bounds>: Handle array and string
2159 types.
2160 * ada-lang.c (assign_aggregate): Use type::bounds on
2161 array/string type.
2162 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2163 * c-varobj.c (c_number_of_children): Likewise.
2164 (c_describe_child): Likewise.
2165 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2166 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2167 (f_type_print_base): Likewise.
2168 * f-valprint.c (f77_array_offset_tbl): Likewise.
2169 (f77_get_upperbound): Likewise.
2170 (f77_print_array_1): Likewise.
2171 * guile/scm-type.c (gdbscm_type_range): Likewise.
2172 * m2-typeprint.c (m2_array): Likewise.
2173 (m2_is_long_set_of_type): Likewise.
2174 * m2-valprint.c (get_long_set_bounds): Likewise.
2175 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2176 * python/py-type.c (typy_range): Likewise.
2177 * rust-lang.c (rust_internal_print_type): Likewise.
2178 * type-stack.c (type_stack::follow_types): Likewise.
2179 * valarith.c (value_subscripted_rvalue): Likewise.
2180 * valops.c (value_cast): Likewise.
2181
2182 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2183
2184 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2185 callers to use the equivalent accessor methods.
2186
2187 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2188
2189 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2190 (struct type) <bit_stride>: New method.
2191 (TYPE_BIT_STRIDE): Remove.
2192 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2193
2194 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2195
2196 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2197 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2198 callers to use the equivalent accessor methods instead.
2199
2200 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2201
2202 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2203 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2204 callers to use the equivalent accessor methods instead.
2205
2206 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2207
2208 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2209 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2210 to use dynamic_prop::kind.
2211
2212 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2213
2214 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2215 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2216 to get the bound property's kind and check against
2217 PROP_UNDEFINED.
2218
2219 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2220
2221 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2222 all callers to use type::range_bounds followed by
2223 dynamic_prop::{low,high}.
2224
2225 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2228 const_val, set_const_val, baton, set_locexpr, set_loclist,
2229 set_addr_offset, variant_parts, set_variant_parts,
2230 original_type, set_original_type>: New methods.
2231 <kind>: Rename to...
2232 <m_kind>: ... this. Update all users to use the new methods
2233 instead.
2234 <data>: Rename to...
2235 <m_data>: ... this. Update all users to use the new methods
2236 instead.
2237
2238 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * gdbtypes.c (get_discrete_bounds): Return failure if
2241 the range type's bounds are not both defined and constant
2242 values.
2243 (get_array_bounds): Update comment. Remove undefined bound check.
2244
2245 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2248 the type::bounds method directly.
2249
2250 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2251
2252 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2253 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2254 are used to set the range type's bounds to use set_bounds.
2255
2256 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2257
2258 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2259
2260 2020-07-10 Pedro Alves <pedro@palves.net>
2261
2262 * gdbthread.h (inferior_ref): Define.
2263 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2264 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2265 * thread.c
2266 (scoped_restore_current_thread::restore):
2267 Adjust to gdb::ref_ptr.
2268 (scoped_restore_current_thread::~scoped_restore_current_thread):
2269 Remove manual decref handling.
2270 (scoped_restore_current_thread::scoped_restore_current_thread):
2271 Adjust to use
2272 inferior_ref::new_reference/thread_info_ref::new_reference.
2273 Incref the thread before calling get_frame_id instead of after.
2274 Let TARGET_CLOSE_ERROR propagate.
2275
2276 2020-07-10 Pedro Alves <pedro@palves.net>
2277
2278 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2279 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2280 NOT_AVAILABLE_ERROR.
2281 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2282 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2283
2284 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2285 Pedro Alves <pedro@palves.net>
2286
2287 PR gdb/26199
2288 * infrun.c (threads_are_resumed_pending_p): Delete.
2289 (do_target_wait): Remove threads_are_executing and
2290 threads_are_resumed_pending_p checks from the inferior_matches
2291 lambda. Update comments.
2292
2293 2020-07-10 Pedro Alves <pedro@palves.net>
2294
2295 PR gdb/26199
2296 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2297 executing threads.
2298
2299 2020-07-10 Pedro Alves <pedro@palves.net>
2300
2301 PR gdb/26199
2302 * infrun.c (handle_no_resumed): Handle multiple targets.
2303
2304 2020-07-10 Pedro Alves <pedro@palves.net>
2305
2306 PR gdb/26199
2307 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2308 target_is_async_p.
2309
2310 2020-07-10 Pedro Alves <pedro@palves.net>
2311
2312 PR gdb/26199
2313 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2314 threads, not all threads.
2315
2316 2020-07-10 Pedro Alves <pedro@palves.net>
2317
2318 PR gdb/26199
2319 * remote.c (remote_target::open_1): Pass remote target pointer as
2320 data to create_async_event_handler.
2321 (remote_async_inferior_event_handler): Mark async event handler
2322 before returning if the remote target still has either pending
2323 events or unacknowledged notifications.
2324
2325 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2326
2327 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2328 declaration.
2329 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2330 function.
2331
2332 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2333
2334 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2335 inferior_ptid.
2336
2337 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2338
2339 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2340 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2341 AT_FREEBSD_PS_STRINGS.
2342
2343 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2344
2345 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2346 of debugfile path on Windows.
2347
2348 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2349
2350 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2351 argument to 'data'.
2352
2353 2020-07-08 Tom Tromey <tromey@adacore.com>
2354
2355 * ada-lang.c (ada_exception_message_1): Use read_memory.
2356
2357 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 PR python/22748
2360 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2361 special handling for inline frames.
2362 * findvar.c (value_of_register_lazy): Skip inline frames when
2363 creating lazy register values.
2364 * frame.c (frame_id_computed_p): Delete definition.
2365 * frame.h (frame_id_computed_p): Delete declaration.
2366
2367 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * NEWS: Mention additions to Python API.
2370 * python/py-arch.c (archpy_register_groups): New function.
2371 (arch_object_methods): Add 'register_groups' method.
2372 * python/py-registers.c (reggroup_iterator_object): New struct.
2373 (reggroup_object): New struct.
2374 (gdbpy_new_reggroup): New function.
2375 (gdbpy_reggroup_to_string): New function.
2376 (gdbpy_reggroup_name): New function.
2377 (gdbpy_reggroup_iter): New function.
2378 (gdbpy_reggroup_iter_next): New function.
2379 (gdbpy_new_reggroup_iterator): New function
2380 (gdbpy_initialize_registers): Register new types.
2381 (reggroup_iterator_object_type): Define new Python type.
2382 (gdbpy_reggroup_getset): New static global.
2383 (reggroup_object_type): Define new Python type.
2384 * python/python-internal.h
2385
2386 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2389 * python/py-arch.c (archpy_registers): New function.
2390 (arch_object_methods): Add 'registers' method.
2391 * python/py-registers.c: New file.
2392 * python/python-internal.h
2393 (gdbpy_new_register_descriptor_iterator): Declare.
2394 (gdbpy_initialize_registers): Declare.
2395 * python/python.c (do_start_initialization): Call
2396 gdbpy_initialize_registers.
2397 * NEWS: Mention additions to the Python API.
2398
2399 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * NEWS: Mention new Python API method.
2402 * python/py-unwind.c (pending_framepy_architecture): New function.
2403 (pending_frame_object_methods): Add architecture method.
2404
2405 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2406
2407 * gdbarch.c: Regenerate.
2408 * gdbarch.h: Regenerate.
2409 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2410 (gdbarch_data): Use internal_error for the case where
2411 deprecated_set_gdbarch_data was originally needed.
2412 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2413 and use passed in obstack.
2414 (libunwind_frame_set_descr): Should no longer get back NULL from
2415 gdbarch_data.
2416 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2417 type.
2418 * user-regs.c (user_regs_init): Update parameters, and use passed
2419 in obstack.
2420 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2421 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2422
2423 2020-07-06 Tom de Vries <tdevries@suse.de>
2424
2425 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2426 End-Of-Sequence in lte_is_less_than.
2427 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2428 "gdb: Don't reorder line table entries too much when sorting".
2429
2430 2020-07-06 Tom de Vries <tdevries@suse.de>
2431
2432 PR tui/26205
2433 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2434
2435 2020-07-05 Tom de Vries <tdevries@suse.de>
2436
2437 PR build/26187
2438 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2439 std::uncaught_exceptions instead of deprecated
2440 std::uncaught_exception.
2441
2442 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2443
2444 * macroexp.h (macro_stringify): Return
2445 gdb::unique_xmalloc_ptr<char>.
2446 * macroexp.c (macro_stringify): Likewise.
2447 * macrotab.c (fixup_definition): Update.
2448
2449 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2452 (lex_one_token): Update.
2453 * macroexp.c (struct macro_buffer) <release>: Return
2454 gdb::unique_xmalloc_ptr<char>.
2455 (macro_stringify): Update.
2456 (macro_expand): Update.
2457 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2458 * macroexp.h (macro_expand_next): Likewise.
2459
2460 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2461
2462 * macroexp.h (macro_lookup_ftype): Remove.
2463 (macro_expand, macro_expand_once, macro_expand_next): Remove
2464 lookup function parameters, add scope parameter.
2465 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2466 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2467 * macroscope.h (standard_macro_lookup): Change parameter type
2468 to macro_scope.
2469 * macroscope.c (standard_macro_lookup): Likewise.
2470 * c-exp.y (lex_one_token): Update.
2471 * macrocmd.c (macro_expand_command): Likewise.
2472 (macro_expand_once_command): Likewise.
2473
2474 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2475
2476 * inf-loop.c (inferior_event_handler): Remove client_data param.
2477 * inf-loop.h (inferior_event_handler): Likewise.
2478 * infcmd.c (step_1): Adjust.
2479 * infrun.c (proceed): Adjust.
2480 (fetch_inferior_event): Remove client_data param.
2481 (infrun_async_inferior_event_handler): Adjust.
2482 * infrun.h (fetch_inferior_event): Remove `void *` param.
2483 * linux-nat.c (handle_target_event): Adjust.
2484 * record-btrace.c (record_btrace_handle_async_inferior_event):
2485 Adjust.
2486 * record-full.c (record_full_async_inferior_event_handler):
2487 Adjust.
2488 * remote.c (remote_async_inferior_event_handler): Adjust.
2489
2490 2020-07-01 Tom Tromey <tom@tromey.com>
2491
2492 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2493 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2494
2495 2020-07-01 Tom Tromey <tom@tromey.com>
2496
2497 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2498 tui_gen_win_info.
2499 (tui_win_info::make_window): Merge with
2500 tui_gen_win_info::make_window.
2501 (tui_win_info::make_visible): Move from tui_gen_win_info.
2502 * tui/tui-win.c (tui_win_info::max_width): Move from
2503 tui_gen_win_info.
2504 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2505 type.
2506 <window_factory>: Likewise.
2507 * tui/tui-layout.c (tui_win_info::resize): Move from
2508 tui_gen_win_info.
2509 (make_standard_window): Change return type.
2510 (get_locator_window, tui_get_window_by_name): Likewise.
2511 (tui_layout_window::apply): Remove a cast.
2512 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2513 (struct tui_win_info): Merge with tui_gen_win_info.
2514 (struct tui_gen_win_info): Remove.
2515
2516 2020-07-01 Tom Tromey <tom@tromey.com>
2517
2518 * tui/tui-stack.h (struct tui_locator_window): Derive from
2519 tui_win_info.
2520 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2521 <can_box>: New method.
2522
2523 2020-07-01 Tom Tromey <tom@tromey.com>
2524
2525 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2526
2527 2020-07-01 Tom Tromey <tom@tromey.com>
2528
2529 * tui/tui-regs.c (tui_data_window::display_registers_from)
2530 (tui_data_window::display_registers_from)
2531 (tui_data_window::first_data_item_displayed)
2532 (tui_data_window::delete_data_content_windows): Update.
2533 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2534 Remove.
2535 (tui_data_window::check_register_values): Update.
2536 (tui_data_item_window::rerender): Add parameters. Update.
2537 (tui_data_item_window::refresh_window): Remove.
2538 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2539 virtual.
2540 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2541 tui_gen_win_info.
2542 <refresh_window, max_height, min_height>: Remove.
2543 <rerender>: Add parameters.
2544 <x, y, visible>: New members.
2545 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2546 <m_item_width>: New member.
2547
2548 2020-07-01 Tom Tromey <tom@tromey.com>
2549
2550 * tui/tui-regs.c (tui_data_window::show_register_group)
2551 (tui_data_window::check_register_values): Update.
2552 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2553 from item_no.
2554
2555 2020-07-01 Tom Tromey <tom@tromey.com>
2556
2557 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2558 useless "if".
2559
2560 2020-07-01 Tom Tromey <tom@tromey.com>
2561
2562 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2563 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2564
2565 2020-07-01 Tom Tromey <tom@tromey.com>
2566
2567 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2568 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2569 (struct tui_line_or_address): Move from tui-data.h.
2570 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2571 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2572 (tui_cmd_window, tui_source_window_base, tui_source_window)
2573 (tui_disasm_window): Don't declare.
2574 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2575 to tui-winsource.h.
2576 (SINGLE_KEY): Move to tui-stack.c.
2577
2578 2020-07-01 Tom Tromey <tom@tromey.com>
2579
2580 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2581 std::string.
2582 * tui/tui-regs.c (class tab_expansion_file): New.
2583 (tab_expansion_file::write): New method.
2584 (tui_register_format): Change return type. Use
2585 tab_expansion_file.
2586 (tui_get_register, tui_data_window::display_registers_from)
2587 (tui_data_item_window::rerender): Update.
2588 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2589 * tui/tui-io.c (tui_expand_tabs): Remove.
2590
2591 2020-07-01 Tom Tromey <tom@tromey.com>
2592
2593 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2594
2595 2020-07-01 Fangrui Song <maskray@google.com>
2596
2597 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2598
2599 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2600
2601 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2602 forms for DW_AT_associated and DW_AT_allocated attributes,
2603 which is already checked in function attr_to_dynamic_prop.
2604
2605 2020-06-30 Tom Tromey <tromey@adacore.com>
2606
2607 * dwarf2/read.c (quirk_rust_enum): Correctly call
2608 alloc_rust_variant for default-less enum.
2609
2610 2020-06-30 Tom Tromey <tromey@adacore.com>
2611
2612 PR build/26183:
2613 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2614 gdb::to_string.
2615
2616 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2617
2618 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2619 * gdbarch.h: Re-generate.
2620
2621 2020-06-28 Tom Tromey <tom@tromey.com>
2622
2623 * command.h (cmd_types): Remove.
2624 (cmd_type): Don't declare.
2625 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2626 typedef.
2627 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2628 * cli/cli-decode.c (cmd_type): Remove.
2629
2630 2020-06-27 Pedro Alves <palves@redhat.com>
2631
2632 * fork-child.c (prefork_hook): Adjust.
2633 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2634 Delete.
2635 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2636 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2637 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2638 Remove declarations.
2639 (struct inferior) <set_tty, tty>: New methods.
2640 (struct inferior) <terminal>: Rename to ...
2641 (struct inferior) <m_terminal>: ... this and make private.
2642 * main.c (captured_main_1): Adjust.
2643 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2644 (mi_cmd_inferior_tty_show): Adjust.
2645 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2646 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2647
2648 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2649
2650 * configure.ac: Add --enable-libctf: handle --disable-static
2651 properly.
2652 * acinclude.m4: sinclude ../config/enable.m4.
2653 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2654 (LIBCTF): Substitute in.
2655 (CTF_DEPS): New, likewise.
2656 (CLIBS): libctf needs symbols from libbfd: move earlier.
2657 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2658 flags.
2659 * ctfread.c: Surround in ENABLE_LIBCTF.
2660 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2661 * configure: Regenerate.
2662 * config.in: Likewise.
2663
2664 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2665
2666 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2667
2668 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2669
2670 * inferior.h (struct inferior) <terminal>: Change type to
2671 gdb::unique_xmalloc_ptr<char>.
2672 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2673 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2674 field, adjust to unique pointer.
2675 (get_inferior_io_terminal): Adjust to unique pointer.
2676
2677 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2680 registers, not just the known core set of registers.
2681
2682 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2685 fflags, frm, and fcsr registers.
2686 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2687 restore groups.
2688 (riscv_tdesc_unknown_reg): New function.
2689 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2690 tdesc_use_registers.
2691 * riscv-tdep.h (struct gdbarch_tdep): Add
2692 unknown_csrs_first_regnum, unknown_csrs_count,
2693 duplicate_fflags_regnum, duplicate_frm_regnum, and
2694 duplicate_fcsr_regnum fields.
2695
2696 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2699 callback, use the callback (when not null) to help number unknown
2700 registers.
2701 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2702 (tdesc_use_registers): Add extra parameter to declaration.
2703
2704 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2707 in the file.
2708 (class riscv_pending_register_alias): Likewise.
2709 (riscv_register_feature::register_info): Change 'required_p' field
2710 to 'required', and change its type. Add 'check' member function.
2711 (riscv_register_feature::register_info::check): Define new member
2712 function.
2713 (riscv_xreg_feature): Change initialisation of 'required' field.
2714 (riscv_freg_feature): Likewise.
2715 (riscv_virtual_feature): Likewise.
2716 (riscv_csr_feature): Likewise.
2717 (riscv_check_tdesc_feature): Take extra parameter, the csr
2718 tdesc_feature, rewrite the function to use the new
2719 riscv_register_feature::register_info::check function.
2720 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2721
2722 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * features/Makefile: Remove all references to the deleted files
2725 below.
2726 * features/riscv/32bit-csr.c: Deleted.
2727 * features/riscv/32bit-csr.xml: Deleted.
2728 * features/riscv/64bit-csr.c: Deleted.
2729 * features/riscv/64bit-csr.xml: Deleted.
2730 * features/riscv/rebuild-csr-xml.sh: Deleted.
2731
2732 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2735 whitespace error for declaration of names member variable.
2736 (struct riscv_register_feature): Add new prefer_first_name member
2737 variable, and fix whitespace error in declaration of registers.
2738 (riscv_xreg_feature): Initialize prefer_first_name field.
2739 (riscv_freg_feature): Likewise.
2740 (riscv_virtual_feature): Likewise.
2741 (riscv_csr_feature): Likewise.
2742 (riscv_register_name): Expand on comments. Remove register name
2743 modifications for CSR and virtual registers.
2744
2745 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2748 errors.
2749
2750 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2753 riscv-opc.h.
2754 (class riscv_pending_register_alias): New class.
2755 (riscv_check_tdesc_feature): Take vector of pending aliases and
2756 populate it as appropriate.
2757 (riscv_setup_register_aliases): Delete.
2758 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2759 to riscv_check_tdesc_feature in all cases. Use the vector to
2760 create the register aliases.
2761
2762 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2763
2764 * sol2-tdep.c (sol2_static_transform_name): Remove.
2765 (sol2_init_abi): Don't register it.
2766 * gdbarch.sh (static_transform_name): Remove.
2767 * gdbarch.c, gdbarch.h: Regenerate.
2768
2769 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2770 gdbarch_static_transform_name.
2771 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2772 * stabsread.c (define_symbol) <'X'>: Remove.
2773 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2774 handling.
2775 <'V'>: Likewise.
2776 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2777 <'S'>: Remove call to gdbarch_static_transform_name.
2778
2779 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2780
2781 * procfs.c (procfs_pre_trace): New function.
2782 (procfs_target::create_inferior): Pass it to fork_inferior.
2783
2784 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2785
2786 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2787 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2788 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2789 sol2-tdep.o, sparc-sol2-tdep.o.
2790 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2791 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2792 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2793 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2794
2795 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2796
2797 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2798 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2799 Call sol2_init_abi.
2800 Remove calls to set_gdbarch_skip_solib_resolver,
2801 set_gdbarch_core_pid_to_str.
2802 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2803 (i386_sol2_static_transform_name): Remove.
2804 (i386_sol2_init_abi): Call sol2_init_abi.
2805 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2806 set_gdbarch_static_transform_name,
2807 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2808 Use sol2_sigtramp_p.
2809 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2810 (sol2_sigtramp_p): New function.
2811 (sol2_static_transform_name): New function.
2812 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2813 (sol2_init_abi): New function.
2814 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2815 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2816 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2817 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2818 (sparc_sol2_static_transform_name): Remove.
2819 (sparc32_sol2_init_abi): Call sol2_init_abi.
2820 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2821 set_gdbarch_static_transform_name,
2822 set_gdbarch_skip_solib_resolver,
2823 set_gdbarch_core_pid_to_str.
2824 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2825 (sparc_sol2_static_transform_name): Remove
2826 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2827 call sol2_sigtramp_p.
2828 (sparc64_sol2_init_abi): Call sol2_init_abi.
2829 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2830 set_gdbarch_static_transform_name,
2831 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2832
2833 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2834
2835 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2836 * exec.c (validate_exec_file): If from_tty, set both
2837 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2838 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2839 and from_tty, unconditionally ask a confirmation.
2840
2841 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2842
2843 * target-descriptions.c (tdesc_architecture_name): Protect against
2844 NULL pointer dereference.
2845 (maint_print_xml_tdesc_cmd): New function.
2846 (_initialize_target_descriptions): Register new 'maint print
2847 xml-tdesc' command and give it the filename completer.
2848 * NEWS: Mention new 'maint print xml-tdesc' command.
2849
2850 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * target-descriptions.c (class tdesc_compatible_info): New class.
2853 (struct target_desc): Change type of compatible vector.
2854 (tdesc_compatible_p): Update for change in type of
2855 target_desc::compatible.
2856 (tdesc_compatible_info_list): New function.
2857 (tdesc_compatible_info_arch_name): New function.
2858 (tdesc_add_compatible): Update for change in type of
2859 target_desc::compatible.
2860 (print_c_tdesc::visit_pre): Likewise.
2861
2862 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2863
2864 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2865 whitespace to underscore.
2866 (maint_print_c_tdesc_cmd): Use fake filename for target
2867 descriptions that came from the target.
2868 (_initialize_target_descriptions): Add filename command completion
2869 for 'maint print c-tdesc'.
2870
2871 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2874 lines.
2875
2876 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2879 lines.
2880 (dwarf2_find_location_expression): Likewise.
2881 (call_site_parameter_matches): Likewise.
2882 (dwarf2_compile_expr_to_ax): Likewise.
2883 (disassemble_dwarf_expression): Likewise.
2884 (loclist_describe_location): Likewise.
2885
2886 2020-06-23 Pedro Alves <palves@redhat.com>
2887
2888 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2889 progspace-and-thread.h. Include scoped-mock-context.h instead.
2890 (register_to_value_test): Use scoped_mock_context.
2891 * regcache.c: Include "scoped-mock-context.h".
2892 (cooked_read_test): Don't error out if a target is already pushed.
2893 Use scoped_mock_context. Adjust.
2894 * scoped-mock-context.h: New file.
2895
2896 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2897
2898 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2899 initializer.
2900 (ada_language::is_string_type_p): New member function.
2901 * c-lang.c (c_language_data): Delete la_is_string_type_p
2902 initializer.
2903 (cplus_language_data): Likewise.
2904 (asm_language_data): Likewise.
2905 (minimal_language_data): Likewise.
2906 * d-lang.c (d_language_data): Likewise.
2907 * f-lang.c (f_is_string_type_p): Delete function, implementation
2908 moved to f_language::is_string_type_p.
2909 (f_language_data): Delete la_is_string_type_p initializer.
2910 (f_language::is_string_type_p): New member function,
2911 implementation from f_is_string_type_p.
2912 * go-lang.c (go_is_string_type_p): Delete function, implementation
2913 moved to go_language::is_string_type_p.
2914 (go_language_data): Delete la_is_string_type_p initializer.
2915 (go_language::is_string_type_p): New member function,
2916 implementation from go_is_string_type_p.
2917 * language.c (language_defn::is_string_type_p): Define new member
2918 function.
2919 (default_is_string_type_p): Make static, add comment copied from
2920 header file.
2921 (unknown_language_data): Delete la_is_string_type_p initializer.
2922 (unknown_language::is_string_type_p): New member function.
2923 (auto_language_data): Delete la_is_string_type_p initializer.
2924 (auto_language::is_string_type_p): New member function.
2925 * language.h (language_data): Delete la_is_string_type_p field.
2926 (language_defn::is_string_type_p): Declare new function.
2927 (default_is_string_type_p): Delete desclaration, move comment to
2928 definition.
2929 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2930 moved to m2_language::is_string_type_p.
2931 (m2_language_data): Delete la_is_string_type_p initializer.
2932 (m2_language::is_string_type_p): New member function,
2933 implementation from m2_is_string_type_p.
2934 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2935 initializer.
2936 * opencl-lang.c (opencl_language_data): Likewise.
2937 * p-lang.c (pascal_is_string_type_p): Delete function,
2938 implementation moved to pascal_language::is_string_type_p.
2939 (pascal_language_data): Delete la_is_string_type_p initializer.
2940 (pascal_language::is_string_type_p): New member function,
2941 implementation from pascal_is_string_type_p.
2942 * rust-lang.c (rust_is_string_type_p): Delete function,
2943 implementation moved to rust_language::is_string_type_p.
2944 (rust_language_data): Delete la_is_string_type_p initializer.
2945 (rust_language::is_string_type_p): New member function,
2946 implementation from rust_is_string_type_p.
2947 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2948 is_string_type_p.
2949
2950 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * ada-lang.c (ada_language_data): Delete la_print_typedef
2953 initializer.
2954 (ada_language::print_typedef): New member function.
2955 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2956 (cplus_language_data): Likewise.
2957 (asm_language_data): Likewise.
2958 (minimal_language_data): Likewise.
2959 * d-lang.c (d_language_data): Likewise.
2960 * f-lang.c (f_language_data): Likewise.
2961 (f_language::print_typedef): New member function.
2962 * go-lang.c (go_language_data): Delete la_print_typedef
2963 initializer.
2964 * language.c (language_defn::print_typedef): Define member
2965 function.
2966 (unknown_language_data): Delete la_print_typedef initializer.
2967 (unknown_language::print_typedef): New member function.
2968 (auto_language_data): Delete la_print_typedef initializer.
2969 (auto_language::print_typedef): New member function.
2970 * language.h (language_data): Delete la_print_typedef field.
2971 (language_defn::print_typedef): Declare new member function.
2972 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2973 (default_print_typedef): Delete declaration.
2974 * m2-lang.c (m2_language_data): Delete la_print_typedef
2975 initializer.
2976 (m2_language::print_typedef): New member function.
2977 * objc-lang.c (objc_language_data): Delete la_print_typedef
2978 initializer.
2979 * opencl-lang.c (opencl_language_data): Likewise.
2980 * p-lang.c (pascal_language_data): Likewise.
2981 (pascal_language::print_typedef): New member function.
2982 * rust-lang.c (rust_print_typedef): Delete function,
2983 implementation moved to rust_language::print_typedef.
2984 (rust_language): Delete la_print_typedef initializer.
2985 (rust_language::print_typedef): New member function,
2986 implementation from rust_print_typedef.
2987 * typeprint.c (default_print_typedef): Delete.
2988
2989 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2990
2991 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2992 (ada_language::printstr): New member function.
2993 * c-lang.c (c_language_data): Delete la_printstr initializer.
2994 (cplus_language_data): Likewise.
2995 (asm_language_data): Likewise.
2996 (minimal_language_data): Likewise.
2997 * d-lang.c (d_language_data): Likewise.
2998 * f-lang.c (f_printstr): Rename to f_language::printstr.
2999 (f_language_data): Delete la_printstr initializer.
3000 (f_language::printstr): New member function, implementation from
3001 f_printstr.
3002 * go-lang.c (go_language_data): Delete la_printstr initializer.
3003 * language.c (language_defn::printstr): Define new member
3004 function.
3005 (unk_lang_printstr): Delete.
3006 (unknown_language_data): Delete la_printstr initializer.
3007 (unknown_language::printstr): New member function.
3008 (auto_language_data): Delete la_printstr initializer.
3009 (auto_language::printstr): New member function.
3010 * language.h (language_data): Delete la_printstr field.
3011 (language_defn::printstr): Declare new member function.
3012 (LA_PRINT_STRING): Update call to printstr.
3013 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3014 (m2_language_data): Delete la_printstr initializer.
3015 (m2_language::printstr): New member function, implementation from
3016 m2_printstr.
3017 * objc-lang.c (objc_language_data): Delete la_printstr
3018 initializer.
3019 * opencl-lang.c (opencl_language_data): Likewise.
3020 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3021 (pascal_language_data): Delete la_printstr initializer.
3022 (pascal_language::printstr): New member function, implementation
3023 from pascal_printstr.
3024 * p-lang.h (pascal_printstr): Delete declaration.
3025 * rust-lang.c (rust_printstr): Update header comment.
3026 (rust_language_data): Delete la_printstr initializer.
3027 (rust_language::printstr): New member function.
3028
3029 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3030
3031 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3032 (ada_language::printchar): New member function.
3033 * c-lang.c (c_language_data): Delete la_printchar initializer.
3034 (cplus_language_data): Likewise.
3035 (asm_language_data): Likewise.
3036 (minimal_language_data): Likewise.
3037 * d-lang.c (d_language_data): Likewise.
3038 * f-lang.c (f_printchar): Rename to f_language::printchar.
3039 (f_language_data): Delete la_printchar initializer.
3040 (f_language::printchar): New member function, implementation from
3041 f_printchar.
3042 * go-lang.c (go_language_data): Delete la_printchar initializer.
3043 * language.c (unk_lang_printchar): Delete.
3044 (language_defn::printchar): Define new member function.
3045 (unknown_language_data): Delete la_printchar initializer.
3046 (unknown_language::printchar): New member function.
3047 (auto_language_data): Delete la_printchar initializer.
3048 (auto_language::printchar): New member function.
3049 * language.h (language_data): Delete la_printchar field.
3050 (language_defn::printchar): Declare new member function.
3051 (LA_PRINT_CHAR): Update call to printchar.
3052 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3053 (m2_language::printchar): New member function.
3054 * objc-lang.c (objc_language_data): Delete la_printchar
3055 initializer.
3056 * opencl-lang.c (opencl_language_data): Likewise.
3057 * p-lang.c (pascal_language_data): Delete la_printchar
3058 initializer.
3059 (pascal_language::printchar): New member function.
3060 * rust-lang.c (rust_printchar): Rename to
3061 rust_language::printchar.
3062 (rust_language_data): Delete la_printchar initializer.
3063 (rust_language::printchar): New member function, implementation
3064 from rust_printchar.
3065
3066 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3069 (ada_language_data): Delete la_emitchar initializer.
3070 (ada_language::emitchar): New member function, implementation from
3071 emit_char.
3072 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3073 (cplus_language_data): Likewise.
3074 (asm_language_data): Likewise.
3075 (minimal_language_data): Likewise.
3076 * d-lang.c (d_language_data): Likewise.
3077 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3078 (f_language_data): Delete la_emitchar initializer.
3079 (f_language::emitchar): New member function, implementation from
3080 f_emit_char.
3081 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3082 * language.c (unk_lang_emit_char): Delete.
3083 (language_defn::emitchar): New member function definition.
3084 (unknown_language_data): Delete la_emitchar initializer.
3085 (unknown_language::emitchar): New member function.
3086 (auto_language_data): Delete la_emitchar initializer.
3087 (auto_language::emitchar): New member function.
3088 * language.h (language_data): Delete la_emitchar field.
3089 (language_defn::emitchar): New member field declaration.
3090 (LA_EMIT_CHAR): Update call to emitchar.
3091 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3092 (m2_language_data): Delete la_emitchar initializer.
3093 (m2_language::emitchar): New member function, implementation from
3094 m2_emit_char.
3095 * objc-lang.c (objc_language_data): Delete la_emitchar
3096 initializer.
3097 * opencl-lang.c (opencl_language_data): Likewise.
3098 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3099 (pascal_language_data): Delete la_emitchar initializer.
3100 (pascal_language::emitchar): New member function, implementation
3101 from pascal_emit_char.
3102 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3103 (rust_language_data): Delete la_emitchar initializer.
3104 (rust_language::emitchar): New member function, implementation
3105 from rust_emitchar.
3106
3107 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3110 (ada_language_data): Delete la_post_parser initializer.
3111 (ada_language::post_parser): New member function.
3112 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3113 (cplus_language_data): Likewise.
3114 (asm_language_data): Likewise.
3115 (minimal_language_data): Likewise.
3116 * d-lang.c (d_language_data): Likewise.
3117 * f-lang.c (f_language_data): Likewise.
3118 * go-lang.c (go_language_data): Likewise.
3119 * language.c (unknown_language_data): Likewise.
3120 (auto_language_data): Likewise.
3121 * language.h (language_data): Delete la_post_parser field.
3122 (language_defn::post_parser): New member function.
3123 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3124 * objc-lang.c (objc_language_data): Likewise.
3125 * opencl-lang.c (opencl_language_data): Likewise.
3126 * p-lang.c (pascal_language_data): Likewise.
3127 * parse.c (parse_exp_in_context): Update call to post_parser.
3128 (null_post_parser): Delete definition.
3129 * parser-defs.h (null_post_parser): Delete declaration.
3130 * rust-lang.c (rust_language_data): Delete la_post_parser
3131 initializer.
3132
3133 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3134
3135 * ada-lang.c (parse): Rename to ada_language::parser.
3136 (ada_language_data): Delete la_parser initializer.
3137 (ada_language::parser): New member function, implementation from
3138 parse.
3139 * c-lang.c (c_language_data): Delete la_parser initializer.
3140 (cplus_language_data): Likewise.
3141 (asm_language_data): Likewise.
3142 (minimal_language_data): Likewise.
3143 * d-lang.c (d_language_data): Likewise.
3144 (d_language::parser): New member function.
3145 * f-lang.c (f_language_data): Delete la_parser initializer.
3146 (f_language::parser): New member function.
3147 * go-lang.c (go_language_data): Delete la_parser initializer.
3148 (go_language::parser): New member function.
3149 * language.c (unk_lang_parser): Delete.
3150 (language_defn::parser): Define new member function.
3151 (unknown_language_data): Delete la_parser initializer.
3152 (unknown_language::parser): New member function.
3153 (auto_language_data): Delete la_parser initializer.
3154 (auto_language::parser): New member function.
3155 * language.h (language_data): Delete la_parser field.
3156 (language_defn::parser): Declare new member function.
3157 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3158 (m2_language::parser): New member function.
3159 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3160 * opencl-lang.c (opencl_language_data): Likewise.
3161 * p-lang.c (pascal_language_data): Likewise.
3162 (pascal_language::parser): New member function.
3163 * parse.c (parse_exp_in_context): Update call to parser.
3164 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3165 (rust_language::parser): New member function.
3166
3167 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3168
3169 * top.c (print_gdb_configuration): Print --with-python-libdir
3170 configuration value.
3171
3172 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3173
3174 * NEWS: Mention change to the alias command.
3175
3176 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3177
3178 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3179 (alias_command_completer)
3180 (make_alias_options_def_group): New functions.
3181 (alias_opts, alias_option_defs): New struct and array.
3182 (alias_usage_error): Update usage.
3183 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3184 Use option framework.
3185 (_initialize_cli_cmds): Update alias command help.
3186 Update aliases command help.
3187 (show_user):
3188 Add NULL for new default_args lookup_cmd argument.
3189 (valid_command_p): Rename to validate_aliased_command.
3190 Add NULL for new default_args lookup_cmd argument. Verify that the
3191 aliased_command has no default args.
3192 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3193 (lookup_cmd_1, lookup_cmd): New argument default_args.
3194 (add_alias_cmd):
3195 Add NULL for new default_args lookup_cmd argument.
3196 (print_help_for_command): Show default args under the layout
3197 alias some_alias = some_aliased_cmd some_alias_default_arg.
3198 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3199 xfree default_args in destructor.
3200 * cli/cli-script.c (process_next_line, do_define_command):
3201 Add NULL for new default_args lookup_cmd argument.
3202 * command.h: Declare new default_args argument in lookup_cmd
3203 and lookup_cmd_1.
3204 * completer.c (complete_line_internal_1):
3205 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3206 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3207 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3208 Likewise.
3209 * infcmd.c (_initialize_infcmd): Likewise.
3210 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3211 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3212 * python/py-param.c (add_setshow_generic): Likewise.
3213 * remote.c (_initialize_remote): Likewise.
3214 * top.c (execute_command): Prepend default_args if command has some.
3215 (set_verbose):
3216 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3217 * tracepoint.c (validate_actionline, encode_actions_1):
3218 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3219
3220 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3221
3222 * jit.c (jit_read_descriptor): Use bool as the return type.
3223 (jit_breakpoint_re_set_internal): Use bool as the return type.
3224 Invert the return value logic; return true if the jit breakpoint
3225 has been successfully initialized.
3226 (jit_inferior_init): Update the call to
3227 jit_breakpoint_re_set_internal.
3228
3229 2020-06-22 Pedro Alves <palves@redhat.com>
3230
3231 PR gdb/25939
3232 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3233 Use the current inferior instead. Don't return
3234 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3235 wait again.
3236 * sol-thread.c (sol_thread_target::wait): Don't reference
3237 inferior_ptid.
3238 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3239 (sol_update_thread_list_callback): Use the current inferior's pid
3240 instead of inferior_ptid.
3241
3242 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3243
3244 * procfs.c: Cleanup many comments.
3245
3246 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3247 (AFTER_WATCHFLAG): Replace by value.
3248
3249 (MAIN_PROC_NAME_FORMAT): Inline ...
3250 (create_procinfo): ... here.
3251
3252 (procfs_debug_inferior): Remove SYS_exec handling.
3253 (syscall_is_exec): Likewise.
3254 (procfs_set_exec_trap): Likewise.
3255
3256 (syscall_is_lwp_exit): Inline in callers.
3257 (syscall_is_exit): Likewise.
3258 (syscall_is_exec): Likewise.
3259 (syscall_is_lwp_create): Likewise.
3260
3261 (invalidate_cache): Remove #if 0 code.
3262
3263 (make_signal_thread_runnable): Remove.
3264 (procfs_target::resume): Remove #if 0 code.
3265
3266 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3267
3268 PR gdb/25939
3269 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3270 call ...
3271 (procfs_target::create_inferior): ... here.
3272
3273 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3274
3275 * exec.c (validate_exec_file): Ensure the build-id is up to
3276 date by calling reopen_exec_file (that checks file timestamp
3277 to decide to re-read the file).
3278
3279 2020-06-18 Pedro Alves <palves@redhat.com>
3280
3281 PR gdb/25412
3282 * gdbthread.h (delete_thread, delete_thread_silent)
3283 (find_thread_ptid): Update comments.
3284 * thread.c (current_thread_): New global.
3285 (is_current_thread): Move higher, and reimplement.
3286 (inferior_thread): Reimplement.
3287 (set_thread_exited): Use bool. Add assertions.
3288 (add_thread_silent): Simplify thread-reuse handling by always
3289 calling delete_thread.
3290 (delete_thread): Remove intro comment.
3291 (find_thread_ptid): Skip exited threads.
3292 (switch_to_thread_no_regs): Write to current_thread_.
3293 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3294 INFERIOR_PTID. Clear current_thread_.
3295
3296 2020-06-18 Pedro Alves <palves@redhat.com>
3297
3298 * aix-thread.c (pd_update): Use switch_to_thread.
3299
3300 2020-06-18 Pedro Alves <palves@redhat.com>
3301
3302 * ravenscar-thread.c (ravenscar_thread_target): Update.
3303 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3304 (ravenscar_thread_target::add_active_thread): ... this. Don't
3305 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3306 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3307
3308 2020-06-18 Pedro Alves <palves@redhat.com>
3309
3310 * nat/windows-nat.c (current_windows_thread): Remove.
3311 * nat/windows-nat.h (current_windows_thread): Remove.
3312 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3313 Adjust.
3314 (display_selectors): Adjust to fetch the current
3315 windows_thread_info based on inferior_ptid.
3316 (fake_create_process): No longer write to current_windows_thread.
3317 (windows_nat_target::get_windows_debug_event):
3318 Don't set inferior_ptid or current_windows_thread.
3319 (windows_nat_target::wait): Adjust to not rely on
3320 current_windows_thread.
3321 (do_initial_windows_stuff): Now a method of windows_nat_target.
3322 Switch to the last_ptid thread.
3323 (windows_nat_target::attach): Adjust.
3324 (windows_nat_target::detach): Use switch_to_no_thread instead of
3325 writing to inferior_ptid directly.
3326 (windows_nat_target::create_inferior): Adjust.
3327
3328 2020-06-18 Pedro Alves <palves@redhat.com>
3329
3330 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3331
3332 2020-06-18 Pedro Alves <palves@redhat.com>
3333
3334 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3335 after creating it, instead of writing to inferior_ptid. Don't
3336 write to inferior_ptid.
3337
3338 2020-06-18 Pedro Alves <palves@redhat.com>
3339
3340 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3341
3342 2020-06-18 Pedro Alves <palves@redhat.com>
3343
3344 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3345 it, instead of writing to inferior_ptid.
3346
3347 2020-06-18 Pedro Alves <palves@redhat.com>
3348
3349 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3350 to inferior_ptid.
3351
3352 2020-06-18 Pedro Alves <palves@redhat.com>
3353
3354 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3355 instead of writing to inferior_ptid directly.
3356
3357 2020-06-18 Pedro Alves <palves@redhat.com>
3358
3359 * corelow.c (core_target::close): Use switch_to_no_thread instead
3360 of writing to inferior_ptid directly.
3361 (add_to_thread_list, core_target_open): Use switch_to_thread
3362 instead of writing to inferior_ptid directly.
3363
3364 2020-06-18 Pedro Alves <palves@redhat.com>
3365
3366 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3367 inferior_ptid.
3368 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3369 inferior_ptid.
3370 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3371 inferior_ptid directly.
3372 (darwin_nat_target::init_thread_list): Switch to thread, instead
3373 of writing to inferior_ptid.
3374 (darwin_nat_target::attach): Don't write to inferior_ptid.
3375 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3376
3377 2020-06-18 Pedro Alves <palves@redhat.com>
3378
3379 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3380 thread.
3381 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3382 Instead use switch_to_thread.
3383 (gnu_nat_target::detach): Use switch_to_no_thread
3384 instead of writing to inferior_ptid directly. Used passed-in
3385 inferior instead of looking up the inferior by pid.
3386
3387 2020-06-18 Pedro Alves <palves@redhat.com>
3388
3389 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3390 inferior_ptid.
3391
3392 2020-06-18 Pedro Alves <palves@redhat.com>
3393
3394 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3395 inferior_ptid.
3396 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3397 thread.
3398 (nto_procfs_target::detach): Avoid referencing
3399 inferior_ptid. Use switch_to_no_thread instead of writing to
3400 inferior_ptid directly.
3401 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3402 instead of writing to inferior_ptid directly.
3403 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3404 to thread.
3405
3406 2020-06-18 Pedro Alves <palves@redhat.com>
3407
3408 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3409 after creating it, instead of writing to inferior_ptid.
3410 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3411 to inferior_ptid directly.
3412 (gdbsim_target::wait): Don't write to inferior_ptid.
3413
3414 2020-06-18 Pedro Alves <palves@redhat.com>
3415
3416 * remote.c (remote_target::remote_notice_new_inferior): Use
3417 switch_to_thread instead of writing to inferior_ptid directly.
3418 (remote_target::add_current_inferior_and_thread): Use
3419 switch_to_no_thread instead of writing to inferior_ptid directly.
3420 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3421 and switch_to_thread instead of using set_current_inferior or
3422 writing to inferior_ptid directly.
3423
3424 2020-06-18 Pedro Alves <palves@redhat.com>
3425
3426 * tracectf.c (ctf_target_open): Switch to added thread instead of
3427 writing to inferior_ptid directly.
3428 (ctf_target::close): Use switch_to_no_thread instead of writing to
3429 inferior_ptid directly.
3430
3431 2020-06-18 Pedro Alves <palves@redhat.com>
3432
3433 * tracefile-tfile.c (tfile_target_open): Don't write to
3434 inferior_ptid directly, instead switch to added thread.
3435 (tfile_target::close): Use switch_to_no_thread instead of writing
3436 to inferior_ptid directly.
3437
3438 2020-06-18 Pedro Alves <palves@redhat.com>
3439
3440 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3441 (procfs_target::detach): Use switch_to_no_thread
3442 instead of writing to inferior_ptid directly.
3443 (do_attach): Change return type to void. Switch to the added
3444 thread.
3445 (procfs_target::create_inferior): Switch to the added thread.
3446 (procfs_do_thread_registers): Don't write to inferior_ptid.
3447
3448 2020-06-18 Pedro Alves <palves@redhat.com>
3449
3450 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3451 of writing to inferior_ptid.
3452 (scoped_restore_exited_inferior): Delete.
3453 (handle_vfork_child_exec_or_exit): Simplify using
3454 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3455 instead of writing to inferior_ptid.
3456 (THREAD_STOPPED_BY): Delete.
3457 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3458 (thread_stopped_by_hw_breakpoint): Delete.
3459 (save_waitstatus): Use
3460 scoped_restore_current_thread+switch_to_thread, and call
3461 target_stopped_by_watchpoint instead of
3462 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3463 instead of thread_stopped_by_sw_breakpoint, and
3464 target_stopped_by_hw_breakpoint instead of
3465 thread_stopped_by_hw_breakpoint.
3466 (handle_inferior_event)
3467 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3468 inferior_ptid directly, nor
3469 set_current_inferior/set_current_program_space. Use
3470 switch_to_thread / switch_to_inferior_no_thread instead.
3471
3472 2020-06-18 Pedro Alves <palves@redhat.com>
3473
3474 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3475 instead of writing to inferior_ptid.
3476
3477 2020-06-18 Pedro Alves <palves@redhat.com>
3478
3479 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3480 added thread.
3481 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3482 to the added thread.
3483 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3484 instead of writing to inferior_ptid.
3485
3486 2020-06-18 Pedro Alves <palves@redhat.com>
3487
3488 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3489 (register_to_value_test): Mock a program_space too. Heap-allocate
3490 the address space. Don't write to inferior_ptid. Use
3491 switch_to_thread instead.
3492
3493 2020-06-18 Pedro Alves <palves@redhat.com>
3494
3495 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3496 Delete.
3497 (find_signalled_thread()): New, factored out from
3498 linux_make_corefile_notes and adjusted to handle exited threads.
3499 (linux_make_corefile_notes): Adjust to use the new
3500 find_signalled_thread.
3501
3502 2020-06-18 Pedro Alves <palves@redhat.com>
3503
3504 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3505 of saving/restoring inferior_ptid.
3506
3507 2020-06-17 Tom Tromey <tom@tromey.com>
3508
3509 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3510 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3511 declare.
3512 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3513
3514 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3517 of partial symtabs.
3518
3519 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * regformats/reg-arm.dat: Remove.
3522 * regformats/reg-bfin.dat: Remove.
3523 * regformats/reg-cris.dat: Remove.
3524 * regformats/reg-crisv32.dat: Remove.
3525 * regformats/reg-m32r.dat: Remove.
3526 * regformats/reg-tilegx.dat: Remove.
3527 * regformats/reg-tilegx32.dat: Remove.
3528
3529 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * features/Makefile (WHICH): Remove arm files.
3532 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3533 * regformats/arm/arm-with-neon.dat: Remove.
3534 * regformats/arm/arm-with-vfpv2.dat: Remove.
3535 * regformats/arm/arm-with-vfpv3.dat: Remove.
3536
3537 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * features/Makefile (XMLTOC): Remove rx.xml.
3540
3541 2020-06-17 Pedro Alves <palves@redhat.com>
3542
3543 * gdbthread.h (thread_control_state) <trap_expected> Update
3544 comments.
3545
3546 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3547
3548 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3549 ada_language::lookup_symbol_nonlocal.
3550 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3551 (ada_language::lookup_symbol_nonlocal): New member function,
3552 implementation from ada_lookup_symbol_nonlocal.
3553 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3554 initializer.
3555 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3556 initializer.
3557 (cplus_language::lookup_symbol_nonlocal): New member function.
3558 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3559 (minimal_language_data) Likewise.
3560 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3561 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3562 initializer.
3563 (d_language::lookup_symbol_nonlocal): New member function.
3564 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3565 initializer.
3566 (f_language::lookup_symbol_nonlocal): New member function.
3567 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3568 initializer.
3569 * language.c (unknown_language_data): Likewise.
3570 (auto_language_data): Likewise.
3571 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3572 field.
3573 (language_defn::lookup_symbol_nonlocal): New member function.
3574 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3575 initializer.
3576 * objc-lang.c (objc_language_data): Likewise.
3577 * opencl-lang.c (opencl_language_data): Likewise.
3578 * p-lang.c (pascal_language_data): Likewise.
3579 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3580 rust_language::lookup_symbol_nonlocal.
3581 (rust_language_data): Delete la_lookup_symbol_nonlocal
3582 initializer.
3583 (rust_language::lookup_symbol_nonlocal): New member function,
3584 implementation from rust_lookup_symbol_nonlocal.
3585 * symtab.c (lookup_symbol_aux): Update call to
3586 lookup_symbol_nonlocal.
3587 (basic_lookup_symbol_nonlocal): Rename to...
3588 (language_defn::lookup_symbol_nonlocal): ...this, and update
3589 header comment. Remove language_defn parameter, and replace with
3590 uses of `this'.
3591 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3592
3593 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3594
3595 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3596 initializer.
3597 (ada_language::value_print_inner): New member function.
3598 * c-lang.c (c_language_data): Delete la_value_print_inner
3599 initializer.
3600 (cplus_language_data): Likewise.
3601 (asm_language_data): Likewise.
3602 (minimal_language_data): Likewise.
3603 * d-lang.c (d_language_data): Likewise.
3604 (d_language::value_print_inner): New member function.
3605 * f-lang.c (f_language_data): Delete la_value_print_inner
3606 initializer.
3607 (f_language::value_print_inner): New member function.
3608 * f-lang.h (f_value_print_innner): Rename to...
3609 (f_value_print_inner): ...this (note spelling of 'inner').
3610 * f-valprint.c (f_value_print_innner): Rename to...
3611 (f_value_print_inner): ...this (note spelling of 'inner').
3612 * go-lang.c (go_language_data): Delete la_value_print_inner
3613 initializer.
3614 (go_language::value_print_inner): New member function.
3615 * language.c (language_defn::value_print_inner): Define new member
3616 function.
3617 (unk_lang_value_print_inner): Delete.
3618 (unknown_language_data): Delete la_value_print_inner initializer.
3619 (unknown_language::value_print_inner): New member function.
3620 (auto_language_data): Delete la_value_print_inner initializer.
3621 (auto_language::value_print_inner): New member function.
3622 * language.h (language_data): Delete la_value_print_inner field.
3623 (language_defn::value_print_inner): Delcare new member function.
3624 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3625 initializer.
3626 (m2_language::value_print_inner): New member function.
3627 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3628 initializer.
3629 * opencl-lang.c (opencl_language_data): Likewise.
3630 * p-lang.c (pascal_language_data): Likewise.
3631 (pascal_language::value_print_inner): New member function.
3632 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3633 initializer.
3634 (rust_language::value_print_inner): New member function.
3635 * valprint.c (do_val_print): Update call to value_print_inner.
3636
3637 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3638
3639 * ada-lang.c (ada_language_data): Delete la_value_print
3640 initializer.
3641 (ada_language::value_print): New member function.
3642 * c-lang.c (c_language_data): Delete la_value_print initializer.
3643 (cplus_language_data): Likewise.
3644 (asm_language_data): Likewise.
3645 (minimal_language_data): Likewise.
3646 * d-lang.c (d_language_data): Likewise.
3647 * f-lang.c (f_language_data): Likewise.
3648 * go-lang.c (go_language_data): Likewise.
3649 * language.c (unk_lang_value_print): Delete.
3650 (language_defn::value_print): Define new member function.
3651 (unknown_language_data): Delete la_value_print initializer.
3652 (unknown_language::value_print): New member function.
3653 (auto_language_data): Delete la_value_print initializer.
3654 (auto_language::value_print): New member function.
3655 * language.h (language_data): Delete la_value_print field.
3656 (language_defn::value_print): Declare new member function.
3657 (LA_VALUE_PRINT): Update call to value_print.
3658 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3659 * objc-lang.c (objc_language_data): Likewise.
3660 * opencl-lang.c (opencl_language_data): Likewise.
3661 * p-lang.c (pascal_language_data): Likewise.
3662 (pascal_language::value_print): New member function.
3663 * rust-lang.c (rust_language_data): Delete la_value_print
3664 initializer.
3665
3666 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3667
3668 * ada-lang.c (ada_watch_location_expression): Rename to
3669 ada_language::watch_location_expression.
3670 (ada_language_data): Delete la_watch_location_expression
3671 initializer.
3672 (ada_language::watch_location_expression): New member function,
3673 implementation from ada_watch_location_expression.
3674 * breakpoint.c (watch_command_1): Update call to
3675 watch_location_expression.
3676 * c-lang.c (c_watch_location_expression): Rename to
3677 language_defn::watch_location_expression.
3678 (c_language_data): Delete la_watch_location_expression
3679 initializer.
3680 (cplus_language_data): Likewise.
3681 (asm_language_data): Likewise.
3682 (minimal_language_data): Likewise.
3683 * c-lang.h (c_watch_location_expression): Delete declaration.
3684 * d-lang.c (d_language_data): Delete la_watch_location_expression
3685 initializer.
3686 * f-lang.c (f_language_data): Likewise.
3687 * go-lang.c (go_language_data): Likewise.
3688 * language.c (language_defn::watch_location_expression): Member
3689 function implementation from c_watch_location_expression.
3690 (unknown_language_data): Delete la_watch_location_expression
3691 initializer.
3692 (auto_language_data): Likewise.
3693 * language.h (language_data): Delete la_watch_location_expression
3694 field.
3695 (language_defn::watch_location_expression): Declare new member
3696 function.
3697 * m2-lang.c (m2_language_data): Delete
3698 la_watch_location_expression initializer.
3699 * objc-lang.c (objc_language_data): Likewise.
3700 * opencl-lang.c (opencl_language_data): Likewise.
3701 * p-lang.c (pascal_language_data): Likewise.
3702 * rust-lang.c (rust_watch_location_expression): Rename to
3703 rust_language::watch_location_expression.
3704 (rust_language_data): Delete la_watch_location_expression
3705 initializer.
3706 (rust_language::watch_location_expression): New member function,
3707 implementation from rust_watch_location_expression.
3708
3709 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3712 ada_language::collect_symbol_completion_matches.
3713 (ada_language_data): Delete la_collect_symbol_completion_matches
3714 initializer.
3715 (ada_language::collect_symbol_completion_matches): New member
3716 function, implementation from
3717 ada_collect_symbol_completion_matches.
3718 * c-lang.c (c_language_data): Delete
3719 la_collect_symbol_completion_matches initializer.
3720 (cplus_language_data): Likewise.
3721 (asm_language_data): Likewise.
3722 (minimal_language_data): Likewise.
3723 * d-lang.c (d_language_data): Likewise.
3724 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3725 f_language::collect_symbol_completion_matches.
3726 (f_language_data): Delete la_collect_symbol_completion_matches
3727 initializer.
3728 (f_language::collect_symbol_completion_matches) New member
3729 function, implementation from f_collect_symbol_completion_matches.
3730 * go-lang.c (go_language_data): Delete
3731 la_collect_symbol_completion_matches initializer.
3732 * language.c (unknown_language_data): Likewise.
3733 (auto_language_data): Likewise.
3734 * language.h (language_data): Delete
3735 la_collect_symbol_completion_matches field.
3736 (language_defn::collect_symbol_completion_matches): New member
3737 function.
3738 * m2-lang.c (m2_language_data): Delete
3739 la_collect_symbol_completion_matches initializer.
3740 * objc-lang.c (objc_language_data): Likewise.
3741 * opencl-lang.c (opencl_language_data): Likewise.
3742 * p-lang.c (pascal_language_data): Likewise.
3743 * rust-lang.c (rust_language_data): Likewise.
3744 * symtab.c (default_collect_symbol_completion_matches): Delete.
3745 (collect_symbol_completion_matches): Update call to
3746 collect_symbol_completion_matches.
3747 (collect_symbol_completion_matches_type): Likewise.
3748 * symtab.h (default_collect_symbol_completion_matches): Delete
3749 declaration.
3750
3751 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3752
3753 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3754 (ada_language_data): Delete la_word_break_characters initializer.
3755 (ada_language::word_break_characters): New member function.
3756 * c-lang.c (c_language_data): Delete la_word_break_characters
3757 initializer.
3758 (cplus_language_data): Likewise.
3759 (asm_language_data): Likewise.
3760 (minimal_language_data): Likewise.
3761 * completer.c: Update global comment.
3762 (advance_to_expression_complete_word_point): Update call to
3763 word_break_characters.
3764 (complete_files_symbols): Likewise.
3765 (complete_line_internal_1): Likewise.
3766 (default_completer_handle_brkchars): Likewise.
3767 (skip_quoted_chars): Likewise.
3768 * d-lang.c (d_language_data): Delete la_word_break_characters
3769 initializer.
3770 * f-lang.c (f_word_break_characters): Delete.
3771 (f_language_data): Delete la_word_break_characters initializer.
3772 (f_language::word_break_characters): New member function.
3773 * go-lang.c (go_language_data): Delete la_word_break_characters
3774 initializer.
3775 * language.c (unknown_language_data): Likewise.
3776 (auto_language_data): Likewise.
3777 * language.h (default_word_break_characters): Move declaration to
3778 earlier in the file.
3779 (language_data): Delete la_word_break_characters field.
3780 (language_defn::word_break_characters): New member function.
3781 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3782 initializer.
3783 * objc-lang.c (objc_language_data): Likewise.
3784 * opencl-lang.c (opencl_language_data): Likewise.
3785 * p-lang.c (pascal_language_data): Likewise.
3786 * rust-lang.c (rust_language_data): Likewise.
3787
3788 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3789
3790 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3791 (ada_language_data): Delete la_get_symbol_name_matcher
3792 initializer.
3793 (language_defn::get_symbol_name_matcher_inner): New member
3794 function.
3795 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3796 initializer.
3797 (cplus_language_data): Likewise.
3798 (cplus_language::get_symbol_name_matcher_inner): New member
3799 function.
3800 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3801 (minimal_language_data): Likewise.
3802 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3803 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3804 initializer.
3805 * dictionary.c (iter_match_first_hashed): Update call to
3806 get_symbol_name_matcher.
3807 (iter_match_next_hashed): Likewise.
3808 (iter_match_next_linear): Likewise.
3809 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3810 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3811 initializer.
3812 (f_language::get_symbol_name_matcher_inner): New member function.
3813 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3814 initializer.
3815 * language.c (default_symbol_name_matcher): Update header comment,
3816 make static.
3817 (language_defn::get_symbol_name_matcher): New definition.
3818 (language_defn::get_symbol_name_matcher_inner): Likewise.
3819 (get_symbol_name_matcher): Delete.
3820 (unknown_language_data): Delete la_get_symbol_name_matcher
3821 initializer.
3822 (auto_language_data): Likewise.
3823 * language.h (language_data): Delete la_get_symbol_name_matcher
3824 field.
3825 (language_defn::get_symbol_name_matcher): New member function.
3826 (language_defn::get_symbol_name_matcher_inner): Likewise.
3827 (default_symbol_name_matcher): Delete declaration.
3828 * linespec.c (find_methods): Update call to
3829 get_symbol_name_matcher.
3830 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3831 initializer.
3832 * minsyms.c (lookup_minimal_symbol): Update call to
3833 get_symbol_name_matcher.
3834 (iterate_over_minimal_symbols): Likewise.
3835 * objc-lang.c (objc_language_data): Delete
3836 la_get_symbol_name_matcher initializer.
3837 * opencl-lang.c (opencl_language_data): Likewise.
3838 * p-lang.c (pascal_language_data): Likewise.
3839 * psymtab.c (psymbol_name_matches): Update call to
3840 get_symbol_name_matcher.
3841 * rust-lang.c (rust_language_data): Delete
3842 la_get_symbol_name_matcher initializer.
3843 * symtab.c (symbol_matches_search_name): Update call to
3844 get_symbol_name_matcher.
3845 (compare_symbol_name): Likewise.
3846
3847 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3848
3849 * ada-lang.c (ada_language_data): Delete la_compute_program
3850 initializer.
3851 * c-lang.c (c_language_data): Likewise.
3852 (c_language::compute_program): New member function.
3853 (cplus_language_data): Delete la_compute_program initializer.
3854 (cplus_language::compute_program): New member function.
3855 (asm_language_data): Delete la_compute_program initializer.
3856 (minimal_language_data): Likewise.
3857 * c-lang.h (c_compute_program): Update comment.
3858 (cplus_compute_program): Likewise.
3859 * compile/compile-c-support.c (c_compute_program): Likewise.
3860 (cplus_compute_program): Likewise.
3861 * compile/compile.c (compile_to_object): Update call to
3862 la_compute_program.
3863 * d-lang.c (d_language_data): Delete la_compute_program
3864 initializer.
3865 * f-lang.c (f_language_data): Likewise.
3866 * go-lang.c (go_language_data): Likewise.
3867 * language.c (unknown_language_data): Likewise.
3868 (auto_language_data): Likewise.
3869 * language.h (language_data): Delete la_compute_program field.
3870 (language_defn::compute_program): New member function.
3871 * m2-lang.c (m2_language_data): Delete la_compute_program
3872 initializer.
3873 * objc-lang.c (objc_language_data): Likewise.
3874 * opencl-lang.c (opencl_language_data): Likewise.
3875 * p-lang.c (pascal_language_data): Likewise.
3876 * rust-lang.c (rust_language_data): Likewise.
3877
3878 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3879
3880 * ada-lang.c (ada_language_data) Delete
3881 la_class_name_from_physname initializer.
3882 * c-lang.c (c_language_data): Likewise.
3883 (cplus_language_data): Likewise.
3884 (cplus_language::class_name_from_physname): New member function.
3885 (asm_language_data): Delete la_class_name_from_physname
3886 initializer.
3887 (minimal_language_data): Likewise.
3888 * d-lang.c (d_language_data): Likewise.
3889 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3890 method on language_defn class.
3891 (guess_full_die_structure_name): Likewise.
3892 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3893 initializer.
3894 * go-lang.c (go_language_data): Likewise.
3895 * language.c (language_class_name_from_physname): Delete.
3896 (unk_lang_class_name): Delete.
3897 (unknown_language_data): Delete la_class_name_from_physname
3898 initializer.
3899 (auto_language_data): Likewise.
3900 * language.h (language_data): Delete la_class_name_from_physname
3901 field.
3902 (language_defn::class_name_from_physname): New function.
3903 (language_class_name_from_physname): Delete declaration.
3904 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3905 initializer.
3906 * objc-lang.c (objc_language_data): Likewise.
3907 * opencl-lang.c (opencl_language_data): Likewise.
3908 * p-lang.c (pascal_language_data): Likewise.
3909 * rust-lang.c (rust_language_data): Likewise.
3910
3911 2020-06-16 Tom Tromey <tom@tromey.com>
3912
3913 * tui/tui-data.h (STATUS_NAME): New macro.
3914 * tui/tui-layout.c (tui_remove_some_windows)
3915 (initialize_known_windows, tui_register_window)
3916 (tui_layout_split::remove_windows, initialize_layouts)
3917 (tui_new_layout_command): Don't use hard-coded window names.
3918
3919 2020-06-16 Tom Tromey <tom@tromey.com>
3920
3921 PR tui/25348:
3922 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3923 tui_initialize_readline. Only run once. Call rl_initialize.
3924 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3925 tui_initialize_readline.
3926 * tui/tui-io.c (tui_setup_io): Call
3927 tui_ensure_readline_initialized.
3928 * tui/tui-interp.c (tui_interp::init): Update.
3929
3930 2020-06-16 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3933 Also preserve the status window.
3934
3935 2020-06-16 Tom Tromey <tom@tromey.com>
3936
3937 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3938 where m_window==nullptr.
3939
3940 2020-06-15 Tom Tromey <tromey@adacore.com>
3941
3942 * windows-nat.c (windows_nat::handle_output_debug_string):
3943 Update.
3944 (windows_nat::handle_ms_vc_exception): Update.
3945 * target.h (target_read_string): Change API.
3946 * target.c (target_read_string): Change API.
3947 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3948 Update.
3949 * solib-frv.c (frv_current_sos): Update.
3950 * solib-dsbt.c (dsbt_current_sos): Update.
3951 * solib-darwin.c (darwin_current_sos): Update.
3952 * linux-thread-db.c (inferior_has_bug): Update.
3953 * expprint.c (print_subexp_standard): Update.
3954 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3955 (ada_exception_message_1): Update.
3956
3957 2020-06-15 Tom Tromey <tromey@adacore.com>
3958
3959 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3960
3961 2020-06-15 Tom Tromey <tromey@adacore.com>
3962
3963 * valprint.c (read_string): Update comment.
3964 * target.c (MIN): Remove.
3965 (target_read_string): Rewrite.
3966
3967 2020-06-15 Tom Tromey <tromey@adacore.com>
3968
3969 * corefile.c (read_memory_string): Remove.
3970 * ada-valprint.c (ada_value_print_ptr): Update.
3971 * ada-lang.h (ada_tag_name): Change return type.
3972 * ada-lang.c (type_from_tag): Update.
3973 (ada_tag_name_from_tsd): Change return type. Use
3974 target_read_string.
3975 (ada_tag_name): Likewise.
3976 * gdbcore.h (read_memory_string): Don't declare.
3977
3978 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3979
3980 * symtab.c (rbreak_command): Ignore Windows drive colon.
3981
3982 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3983
3984 * NEWS: Mention removed GDBserver host support.
3985
3986 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3987
3988 * features/riscv/rebuild-csr-xml.sh: Updated.
3989
3990 2020-06-11 Tom Tromey <tom@tromey.com>
3991
3992 PR gdb/18318:
3993 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3994
3995 2020-06-09 Jonny Grant <jg@jguk.org>
3996 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3997
3998 * main.c (captured_main_1): Don't print new line after help.
3999 (print_gdb_help): add mailing list and IRC channel information
4000 to --help. Add new lines between items in the footer. Remove
4001 quotes around bug url.
4002
4003 2020-06-11 Keith Seitz <keiths@redhat.com>
4004
4005 PR gdb/21356
4006 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4007 Resolve typedefs for type length calculations.
4008
4009 2020-06-10 Tom de Vries <tdevries@suse.de>
4010
4011 PR ada/24713
4012 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4013 (write_psymbols): Enable .gdb_index for ada.
4014 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4015 ada.
4016
4017 2020-06-10 Tom de Vries <tdevries@suse.de>
4018
4019 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4020 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4021 namei" instead of "const char *name" argument.
4022 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4023 dw2_symtab_iter_init.
4024
4025 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4028 to use type::field and field::type instead.
4029
4030 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4033 to use field::type instead.
4034
4035 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * gdbtypes.h (struct field) <type, set_type>: New methods.
4038 Rename `type` field to...
4039 <m_type>: ... this. Change references throughout to use type or
4040 set_type methods.
4041 (FIELD_TYPE): Use field::type. Change call sites that modify
4042 the field's type to use field::set_type instead.
4043
4044 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4047 to use type::index_type instead.
4048
4049 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4052 methods.
4053 (TYPE_INDEX_TYPE): Use type::index_type.
4054 * gdbtypes.c (create_array_type_with_stride): Likewise.
4055
4056 2020-06-07 Tom Tromey <tom@tromey.com>
4057
4058 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4059 parameter.
4060 (generic_value_print): Update.
4061
4062 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 Revert commit 982a38f60b0.
4065 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4066
4067 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4070 avoid use after free.
4071
4072 2020-06-05 Tom de Vries <tdevries@suse.de>
4073
4074 * NEWS: Fix typos.
4075
4076 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4079 the per_bfd object.
4080 (dwarf2_read_debug_names): Likewise.
4081 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4082 object when re-using a per_bfd object with an index.
4083
4084 2020-06-03 Tom de Vries <tdevries@suse.de>
4085
4086 PR symtab/26046
4087 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4088 children for C++.
4089 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4090 DW_TAG_subprogram.
4091
4092 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * ada-lang.c (ada_language_data): Delete skip_trampoline
4095 initializer.
4096 * c-lang.c (c_language_data): Likewise.
4097 (cplus_language_data): Likewise.
4098 (cplus_language::skip_trampoline): New member function.
4099 (asm_language_data): Delete skip_trampoline initializer.
4100 (minimal_language_data): Likewise.
4101 * d-lang.c (d_language_data): Likewise.
4102 * f-lang.c (f_language_data): Likewise.
4103 * go-lang.c (go_language_data): Likewise.
4104 * language.c (unk_lang_trampoline): Delete function.
4105 (skip_language_trampoline): Update.
4106 (unknown_language_data): Delete skip_trampoline initializer.
4107 (auto_language_data): Likewise.
4108 * language.h (language_data): Delete skip_trampoline field.
4109 (language_defn::skip_trampoline): New function.
4110 * m2-lang.c (m2_language_data): Delete skip_trampoline
4111 initializer.
4112 * objc-lang.c (objc_skip_trampoline): Delete function, move
4113 implementation to objc_language::skip_trampoline.
4114 (objc_language_data): Delete skip_trampoline initializer.
4115 (objc_language::skip_trampoline): New member function with
4116 implementation from objc_skip_trampoline.
4117 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4118 initializer.
4119 * p-lang.c (pascal_language_data): Likewise.
4120 * rust-lang.c (rust_language_data): Likewise.
4121
4122 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4125 (ada_language::demangle): New member function.
4126 * c-lang.c (c_language_data): Delete la_demangle initializer.
4127 (cplus_language_data): Delete la_demangle initializer.
4128 (cplus_language::demangle): New member function.
4129 (asm_language_data): Delete la_demangle initializer.
4130 (minimal_language_data): Delete la_demangle initializer.
4131 * d-lang.c (d_language_data): Delete la_demangle initializer.
4132 (d_language::demangle): New member function.
4133 * f-lang.c (f_language_data): Delete la_demangle initializer.
4134 (f_language::demangle): New member function.
4135 * go-lang.c (go_language_data): Delete la_demangle initializer.
4136 (go_language::demangle): New member function.
4137 * language.c (language_demangle): Update.
4138 (unk_lang_demangle): Delete.
4139 (unknown_language_data): Delete la_demangle initializer.
4140 (unknown_language::demangle): New member function.
4141 (auto_language_data): Delete la_demangle initializer.
4142 (auto_language::demangle): New member function.
4143 * language.h (language_data): Delete la_demangle field.
4144 (language_defn::demangle): New function.
4145 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4146 * objc-lang.c (objc_language_data): Delete la_demangle
4147 initializer.
4148 (objc_language::demangle): New member function.
4149 * opencl-lang.c (opencl_language_data): Delete la_demangle
4150 initializer.
4151 * p-lang.c (pascal_language_data): Likewise.
4152 * rust-lang.c (rust_language_data): Likewise.
4153 (rust_language::demangle): New member function.
4154
4155 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4156
4157 * ada-lang.c (ada_language_data): Delete la_print_type
4158 initializer.
4159 (ada_language::print_type): New member function.
4160 * c-lang.c (c_language_data): Delete la_print_type initializer.
4161 (c_language::print_type): New member function.
4162 (cplus_language_data): Delete la_print_type initializer.
4163 (cplus_language::print_type): New member function.
4164 (asm_language_data): Delete la_print_type initializer.
4165 (asm_language::print_type): New member function.
4166 (minimal_language_data): Delete la_print_type initializer.
4167 (minimal_language::print_type): New member function.
4168 * d-lang.c (d_language_data): Delete la_print_type initializer.
4169 (d_language::print_type): New member function.
4170 * f-lang.c (f_language_data): Delete la_print_type initializer.
4171 (f_language::print_type): New member function.
4172 * go-lang.c (go_language_data): Delete la_print_type initializer.
4173 (go_language::print_type): New member function.
4174 * language.c (unk_lang_print_type): Delete.
4175 (unknown_language_data): Delete la_print_type initializer.
4176 (unknown_language::print_type): New member function.
4177 (auto_language_data): Delete la_print_type initializer.
4178 (auto_language::print_type): New member function.
4179 * language.h (language_data): Delete la_print_type field.
4180 (language_defn::print_type): New function.
4181 (LA_PRINT_TYPE): Update.
4182 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4183 (m2_language::print_type): New member function.
4184 * objc-lang.c (objc_language_data): Delete la_print_type
4185 initializer.
4186 (objc_language::print_type): New member function.
4187 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4188 to opencl_language::print_type.
4189 (opencl_language_data): Delete la_print_type initializer.
4190 (opencl_language::print_type): New member function, implementation
4191 from opencl_print_type.
4192 * p-lang.c (pascal_language_data): Delete la_print_type
4193 initializer.
4194 (pascal_language::print_type): New member function.
4195 * rust-lang.c (rust_print_type): Delete, implementation moved to
4196 rust_language::print_type.
4197 (rust_language_data): Delete la_print_type initializer.
4198 (rust_language::print_type): New member function, implementation
4199 from rust_print_type.
4200
4201 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4204 implementation moves to...
4205 (ada_language::sniff_from_mangled_name): ...here. Update return
4206 type.
4207 (ada_language_data): Delete la_sniff_from_mangled_name
4208 initializer.
4209 * c-lang.c (c_language_data): Likewise.
4210 (cplus_language_data): Likewise.
4211 (cplus_language::sniff_from_mangled_name): New member function,
4212 implementation taken from gdb_sniff_from_mangled_name.
4213 (asm_language_data): Delete la_sniff_from_mangled_name
4214 initializer.
4215 (minimal_language_data): Likewise.
4216 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4217 implementation moves to cplus_language::sniff_from_mangled_name.
4218 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4219 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4220 moves to...
4221 (d_language::sniff_from_mangled_name): ...here.
4222 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4223 * f-lang.c (f_language_data): Likewise.
4224 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4225 moves to...
4226 (go_language::sniff_from_mangled_name): ...here.
4227 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4228 * language.c (language_sniff_from_mangled_name): Delete.
4229 (unknown_language_data): Delete la_sniff_from_mangled_name
4230 initializer.
4231 (auto_language_data): Likewise.
4232 * language.h (language_data): Delete la_sniff_from_mangled_name
4233 field.
4234 (language_defn::sniff_from_mangled_name): New function.
4235 (language_sniff_from_mangled_name): Delete declaration.
4236 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4237 field.
4238 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4239 implementation moves to...
4240 (objc_language::sniff_from_mangled_name): ...here.
4241 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4242 * opencl-lang.c (opencl_language_data): Likewise.
4243 * p-lang.c (pascal_language_data): Likewise.
4244 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4245 implementation moves to...
4246 (rust_language::sniff_from_mangled_name): ...here.
4247 (rust_language_data): Delete la_sniff_from_mangled_name
4248 initializer.
4249 * symtab.c (symbol_find_demangled_name): Call
4250 sniff_from_mangled_name member function.
4251
4252 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4253
4254 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4255 initializer.
4256 * c-lang.c (c_language_data): Likewise.
4257 (cplus_language_data): Likewise.
4258 (cplus_language::search_name_hash): New member function.
4259 (asm_language_data): Delete la_search_name_hash initializer.
4260 (minimal_language_data): Likewise.
4261 * d-lang.c (d_language_data): Likewise.
4262 * dictionary.c (default_search_name_hash): Rename to...
4263 (language_defn::search_name_hash): ...this.
4264 * f-lang.c (f_language_data): Likewise.
4265 (f_language::search_name_hash): New member function.
4266 * go-lang.c (go_language_data): Delete la_search_name_hash
4267 initializer.
4268 * language.c (unknown_language_data): Likewise.
4269 (auto_language_data): Likewise.
4270 * language.h (struct language_data): Delete la_search_name_hash
4271 field.
4272 (language_defn::search_name_hash): Declare new member function.
4273 (default_search_name_hash): Delete declaration.
4274 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4275 initializer.
4276 * objc-lang.c (objc_language_data): Likewise.
4277 * opencl-lang.c (opencl_language_data): Likewise.
4278 * p-lang.c (pascal_language_data): Likewise.
4279 * rust-lang.c (rust_language_data): Likewise.
4280 * symtab.c (search_name_hash): Update call.
4281
4282 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4283
4284 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4285 initializer.
4286 * c-lang.c (class compile_instance): Declare.
4287 (c_language_data): Delete la_get_compile_instance initializer.
4288 (c_language::get_compile_instance): New member function.
4289 (cplus_language_data): Delete la_get_compile_instance initializer.
4290 (cplus_language::get_compile_instance): New member function.
4291 (asm_language_data): Delete la_get_compile_instance initializer.
4292 (minimal_language_data): Likewise.
4293 * c-lang.h (c_get_compile_context): Update comment.
4294 (cplus_get_compile_context): Update comment.
4295 * compile/compile.c (compile_to_object): Update calls, don't rely
4296 on function pointer being NULL.
4297 * d-lang.c (d_language_data): Delete la_get_compile_instance
4298 initializer.
4299 * f-lang.c (f_language_data): Likewise.
4300 * go-lang.c (go_language_data): Likewise.
4301 * language.c (unknown_language_data): Likewise.
4302 (auto_language_data): Likewise.
4303 * language.h (language_data): Delete la_get_compile_instance field.
4304 (language_defn::get_compile_instance): New member function.
4305 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4306 initializer.
4307 * objc-lang.c (objc_language_data): Likewise.
4308 * opencl-lang.c (opencl_language_data): Likewise.
4309 * p-lang.c (pascal_language_data): Likewise.
4310 * rust-lang.c (rust_language_data): Likewise.
4311
4312 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4313
4314 * ada-lang.c (ada_add_all_symbols): Update comment.
4315 (ada_iterate_over_symbols): Delete, move implementation to...
4316 (ada_language::iterate_over_symbols): ...here, a new member
4317 function, rewrite to use range based for loop.
4318 (ada_language_data): Delete la_iterate_over_symbols initializer.
4319 * c-lang.c (c_language_data): Likewise.
4320 (cplus_language_data): Likewise.
4321 (asm_language_data): Likewise.
4322 (minimal_language_data): Likewise.
4323 * d-lang.c (d_language_data): Likewise.
4324 * f-lang.c (f_language_data): Likewise.
4325 * go-lang.c (go_language_data): Likewise.
4326 * language.c (unknown_language_data): Likewise.
4327 (auto_language_data): Likewise.
4328 * language.h (language_data): Delete la_iterate_over_symbols field.
4329 (language_defn::iterate_over_symbols): New member function.
4330 (LA_ITERATE_OVER_SYMBOLS): Update.
4331 * linespec.c (iterate_over_all_matching_symtabs): Update.
4332 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4333 initializer.
4334 * objc-lang.c (objc_language_data): Likewise.
4335 * opencl-lang.c (opencl_language_data): Likewise.
4336 * p-lang.c (pascal_language_data): Likewise.
4337 * rust-lang.c (rust_language_data): Likewise.
4338
4339 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4340
4341 * ada-lang.c (ada_language_data): Delete
4342 la_lookup_transparent_type initializer.
4343 * c-lang.c (c_language_data): Likewise.
4344 (cplus_language_data): Likewise.
4345 (cplus_language::lookup_transparent_type): New member function.
4346 (asm_language_data): Delete la_lookup_transparent_type
4347 initializer.
4348 (minimal_language_data): Likewise.
4349 * d-lang.c (d_language_data): Likewise.
4350 * f-lang.c (f_language_data): Likewise.
4351 * go-lang.c (go_language_data): Likewise.
4352 * language.c (unknown_language_data): Likewise.
4353 (auto_language_data): Likewise.
4354 * language.h (struct language_data): Delete
4355 la_lookup_transparent_type field.
4356 (language_defn::lookup_transparent_type): New member function.
4357 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4358 initializer.
4359 * objc-lang.c (objc_language_data): Likewise.
4360 * opencl-lang.c (opencl_language_data): Likewise.
4361 * p-lang.c (pascal_language_data): Likewise.
4362 * rust-lang.c (rust_language_data): Likewise.
4363 * symtab.c (symbol_matches_domain): Update call.
4364
4365 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4366
4367 * ada-lang.c (ada_language_arch_info): Delete function, move
4368 implementation to...
4369 (ada_language::language_arch_info): ...here, a new member
4370 function.
4371 (ada_language_data): Delete la_language_arch_info.
4372 * c-lang.c (c_language_data): Likewise.
4373 (c_language::language_arch_info): New member function.
4374 (cplus_language_arch_info): Delete function, move
4375 implementation to...
4376 (cplus_language::language_arch_info): ...here, a new member
4377 function.
4378 (cplus_language_data): Delete la_language_arch_info.
4379 (asm_language_data): Likewise.
4380 (asm_language::language_arch_info): New member function.
4381 (minimal_language_data): Delete la_language_arch_info.
4382 (minimal_language::language_arch_info): New member function.
4383 * d-lang.c (d_language_arch_info): Delete function, move
4384 implementation to...
4385 (d_language::language_arch_info): ...here, a new member
4386 function.
4387 (d_language_data): Delete la_language_arch_info.
4388 * f-lang.c (f_language_arch_info): Delete function, move
4389 implementation to...
4390 (f_language::language_arch_info): ...here, a new member
4391 function.
4392 (f_language_data): Delete la_language_arch_info.
4393 * go-lang.c (go_language_arch_info): Delete function, move
4394 implementation to...
4395 (go_language::language_arch_info): ...here, a new member
4396 function.
4397 (go_language_data): Delete la_language_arch_info.
4398 * language.c (unknown_language_data): Likewise.
4399 (unknown_language::language_arch_info): New member function.
4400 (auto_language_data): Delete la_language_arch_info.
4401 (auto_language::language_arch_info): New member function.
4402 (language_gdbarch_post_init): Update call to
4403 la_language_arch_info.
4404 * language.h (language_data): Delete la_language_arch_info
4405 function pointer.
4406 (language_defn::language_arch_info): New function.
4407 * m2-lang.c (m2_language_arch_info): Delete function, move
4408 implementation to...
4409 (m2_language::language_arch_info): ...here, a new member
4410 function.
4411 (m2_language_data): Delete la_language_arch_info.
4412 * objc-lang.c (objc_language_arch_info): Delete function, move
4413 implementation to...
4414 (objc_language::language_arch_info): ...here, a new member
4415 function.
4416 (objc_language_data): Delete la_language_arch_info.
4417 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4418 implementation to...
4419 (opencl_language::language_arch_info): ...here, a new member
4420 function.
4421 (opencl_language_data): Delete la_language_arch_info.
4422 * p-lang.c (pascal_language_arch_info): Delete function, move
4423 implementation to...
4424 (pascal_language::language_arch_info): ...here, a new member
4425 function.
4426 (pascal_language_data): Delete la_language_arch_info.
4427 * rust-lang.c (rust_language_arch_info): Delete function, move
4428 implementation to...
4429 (rust_language::language_arch_info): ...here, a new member
4430 function.
4431 (rust_language_data): Delete la_language_arch_info.
4432
4433 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4436 initializer.
4437 * c-lang.c (c_language_data): Likewise.
4438 (cplus_language_data): Likewise.
4439 (cplus_language::pass_by_reference_info): New method.
4440 (asm_language_data): Delete la_pass_by_reference initializer.
4441 (minimal_language_data): Likewise.
4442 * cp-abi.c (cp_pass_by_reference): Remove use of
4443 default_pass_by_reference.
4444 * d-lang.c (d_language_data): Likewise.
4445 * f-lang.c (f_language_data): Likewise.
4446 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4447 default_pass_by_reference.
4448 * go-lang.c (go_language_data): Likewise.
4449 * language.c (language_pass_by_reference): Update.
4450 (default_pass_by_reference): Delete.
4451 (unknown_language_data): Delete la_pass_by_reference
4452 initializer.
4453 (auto_language_data): Likewise.
4454 * language.h (struct language_data): Delete la_pass_by_reference
4455 field.
4456 (language_defn::pass_by_reference_info): New member function.
4457 (default_pass_by_reference): Delete declaration.
4458 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4459 initializer.
4460 * objc-lang.c (objc_language_data): Likewise.
4461 * opencl-lang.c (opencl_language_data): Likewise.
4462 * p-lang.c (pascal_language_data): Likewise.
4463 * rust-lang.c (rust_language_data): Likewise.
4464
4465 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4466
4467 * ada-lang.c (ada_read_var_value): Delete function, move
4468 implementation to...
4469 (ada_language::read_var_value): ...here.
4470 (ada_language_data): Delete la_read_var_value initializer.
4471 * c-lang.c (c_language_data): Likewise.
4472 (cplus_language_data): Likewise.
4473 (minimal_language_data): Likewise.
4474 * d-lang.c (d_language_data): Likewise.
4475 * f-lang.c (f_language_data): Likewise.
4476 * findvar.c (default_read_var_value): Rename to...
4477 (language_defn::read_var_value): ...this.
4478 * findvar.c (read_var_value): Update header comment, and change to
4479 call member function instead of function pointer.
4480 * go-lang.c (go_language_data): Likewise.
4481 * language.c (unknown_language_data): Delete la_read_var_value
4482 initializer.
4483 (auto_language_data): Likewise.
4484 * language.h (struct language_data): Delete la_read_var_value
4485 field.
4486 (language_defn::read_var_value): New member function.
4487 (default_read_var_value): Delete declaration.
4488 * m2-lang.c (m2_language_data): Delete la_read_var_value
4489 initializer.
4490 * objc-lang.c (objc_language_data): Likewise.
4491 * opencl-lang.c (opencl_language_data): Likewise.
4492 * p-lang.c (pascal_language_data): Likewise.
4493 * rust-lang.c (rust_language_data): Likewise.
4494 * value.h (default_read_var_value): Delete declaration.
4495
4496 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * ada-lang.c (ada_print_array_index): Delete function, move
4499 implementation to...
4500 (ada_language::print_array_index): ...here.
4501 (ada_language_data): Delete la_print_array_index initializer.
4502 * c-lang.c (c_language_data): Likewise.
4503 (cplus_language_data): Likewise.
4504 (minimal_language_data): Likewise.
4505 * d-lang.c (d_language_data): Likewise.
4506 * f-lang.c (f_language_data): Likewise.
4507 * go-lang.c (go_language_data): Likewise.
4508 * language.c (default_print_array_index): Delete function, move
4509 implementation to...
4510 (language_defn::print_array_index): ...here.
4511 (unknown_language_data): Delete la_print_array_index initializer.
4512 (auto_language_data): Likewise.
4513 * language.h (struct language_data): Delete la_print_array_index
4514 field.
4515 (language_defn::print_array_index): New member function.
4516 (LA_PRINT_ARRAY_INDEX): Update.
4517 (default_print_array_index): Delete declaration.
4518 * m2-lang.c (m2_language_data): Delete la_print_array_index
4519 initializer.
4520 * objc-lang.c (objc_language_data): Likewise.
4521 * opencl-lang.c (opencl_language_data): Likewise.
4522 * p-lang.c (pascal_language_data): Likewise.
4523 * rust-lang.c (rust_language_data): Likewise.
4524
4525 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4526
4527 * gdb/ada-lang.c (ada_language_defn): Convert to...
4528 (ada_language_data): ...this.
4529 (class ada_language): New class.
4530 (ada_language_defn): New static global.
4531 * gdb/c-lang.c (c_language_defn): Convert to...
4532 (c_language_data): ...this.
4533 (class c_language): New class.
4534 (c_language_defn): New static global.
4535 (cplus_language_defn): Convert to...
4536 (cplus_language_data): ...this.
4537 (class cplus_language): New class.
4538 (cplus_language_defn): New static global.
4539 (asm_language_defn): Convert to...
4540 (asm_language_data): ...this.
4541 (class asm_language): New class.
4542 (asm_language_defn): New static global.
4543 (minimal_language_defn): Convert to...
4544 (minimal_language_data): ...this.
4545 (class minimal_language): New class.
4546 (minimal_language_defn): New static global.
4547 * gdb/d-lang.c (d_language_defn): Convert to...
4548 (d_language_data): ...this.
4549 (class d_language): New class.
4550 (d_language_defn): New static global.
4551 * gdb/f-lang.c (f_language_defn): Convert to...
4552 (f_language_data): ...this.
4553 (class f_language): New class.
4554 (f_language_defn): New static global.
4555 * gdb/go-lang.c (go_language_defn): Convert to...
4556 (go_language_data): ...this.
4557 (class go_language): New class.
4558 (go_language_defn): New static global.
4559 * gdb/language.c (unknown_language_defn): Remove declaration.
4560 (current_language): Initialize to nullptr, real initialization is
4561 moved to _initialize_language.
4562 (languages): Delete global.
4563 (language_defn::languages): Define.
4564 (set_language_command): Use language_defn::languages.
4565 (set_language): Likewise.
4566 (range_error): Likewise.
4567 (language_enum): Likewise.
4568 (language_def): Likewise.
4569 (add_set_language_command): Use language_def::languages for the
4570 language list, and language_def to lookup language pointers.
4571 (skip_language_trampoline): Use language_defn::languages.
4572 (unknown_language_defn): Convert to...
4573 (unknown_language_data): ...this.
4574 (class unknown_language): New class.
4575 (unknown_language_defn): New static global.
4576 (auto_language_defn): Convert to...
4577 (auto_language_data): ...this.
4578 (class auto_language): New class.
4579 (auto_language_defn): New static global.
4580 (language_gdbarch_post_init): Use language_defn::languages.
4581 (_initialize_language): Initialize current_language.
4582 * gdb/language.h (struct language_defn): Rename to...
4583 (struct language_data): ...this.
4584 (struct language_defn): New.
4585 (auto_language_defn): Delete.
4586 (unknown_language_defn): Delete.
4587 (minimal_language_defn): Delete.
4588 (ada_language_defn): Delete.
4589 (asm_language_defn): Delete.
4590 (c_language_defn): Delete.
4591 (cplus_language_defn): Delete.
4592 (d_language_defn): Delete.
4593 (f_language_defn): Delete.
4594 (go_language_defn): Delete.
4595 (m2_language_defn): Delete.
4596 (objc_language_defn): Delete.
4597 (opencl_language_defn): Delete.
4598 (pascal_language_defn): Delete.
4599 (rust_language_defn): Delete.
4600 * gdb/m2-lang.c (m2_language_defn): Convert to...
4601 (m2_language_data): ...this.
4602 (class m2_language): New class.
4603 (m2_language_defn): New static global.
4604 * gdb/objc-lang.c (objc_language_defn): Convert to...
4605 (objc_language_data): ...this.
4606 (class objc_language): New class.
4607 (objc_language_defn): New static global.
4608 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4609 (opencl_language_data): ...this.
4610 (class opencl_language): New class.
4611 (opencl_language_defn): New static global.
4612 * gdb/p-lang.c (pascal_language_defn): Convert to...
4613 (pascal_language_data): ...this.
4614 (class pascal_language): New class.
4615 (pascal_language_defn): New static global.
4616 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4617 language pointer, update comment format.
4618 * gdb/rust-lang.c (rust_language_defn): Convert to...
4619 (rust_language_data): ...this.
4620 (class rust_language): New class.
4621 (rust_language_defn): New static global.
4622
4623 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4626 member variable.
4627 <m_stmt_at_address>: New member variable.
4628 (lnp_state_machine::record_line): Don't record some lines, update
4629 tracking of is_stmt at the same address.
4630 (lnp_state_machine::lnp_state_machine): Initialise new member
4631 variables.
4632
4633 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4634
4635 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4636 "-include gnu-nat-mig.h".
4637 * gnu-nat-mig.h: New file.
4638 * gnu-nat.c: Include "gnu-nat-mig.h".
4639 (exc_server, msg_reply_server, notify_server,
4640 process_reply_server): Remove declarations.
4641
4642 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4643
4644 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4645 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4646 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4647 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4648 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4649 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4650 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4651 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4652 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4653 to gnu_nat_target class.
4654 * gnu-nat.c: Likewise.
4655 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4656 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4657 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4658 object.
4659 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4660 instead of `gnu_target'.
4661
4662 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4663
4664 * i386-gnu-tdep.c: Include "gdbcore.h"
4665 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4666 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4667 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4668 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4669 i386_gnu_sigcontext_addr): New functions
4670 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4671 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4672 tdep.
4673
4674 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4675
4676 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4677 before fork_inferior call. Avoid calling it if target_is_pushed returns
4678 true.
4679
4680 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4681
4682 * gnu-nat.h (gnu_target): New variable declaration.
4683 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4684 gnu_target.
4685 * gnu-nat.c (gnu_target): New variable.
4686 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4687 add_thread_silent, and add_thread calls.
4688 (gnu_nat_target::create_inferior): Pass gnu_target to
4689 add_thread_silent, thread_change_ptid call.
4690 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4691 call.
4692
4693 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4694
4695 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4696 (gnu_nat_target::find_memory_regions): Remove unused
4697 `old_address' variable.
4698
4699 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4700
4701 * gnu-nat.c: Include "gdbarch.h".
4702
4703 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4704
4705 * reply_mig_hack.awk (Error return): Cast function through
4706 void *, to bypass compiler function call check.
4707
4708 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4709
4710 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4711 $(srcdir)/reply_mig_hack.awk.
4712
4713 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4714
4715 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4716
4717 2020-05-30 Jonny Grant <jg@jguk.org>
4718
4719 * configure.ac (ACX_BUGURL): change bug URL to https.
4720
4721 2020-05-30 Pedro Alves <palves@redhat.com>
4722
4723 * cp-support.c (replace_typedefs_template): New.
4724 (replace_typedefs_qualified_name): Handle
4725 DEMANGLE_COMPONENT_TEMPLATE.
4726
4727 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4730 dwarf2/index-cache.h, dwarf2/index-write.c,
4731 dwarf2/index-write.h, dwarf2/line-header.c,
4732 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4733 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4734 variables and fields from `dwarf2_per_objfile` to just
4735 `per_objfile` throughout.
4736
4737 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4738
4739 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4740 <push_dwarf_reg_entry_value>: Add comment.
4741
4742 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4743 Keith Seitz <keiths@redhat.com>
4744
4745 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4746 instead of PyEval_ReleaseLock.
4747 (class gdbpy_gil): Move to earlier in file.
4748 (finalize_python): Set gdb_python_initialized.
4749 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4750 when not initialized.
4751
4752 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4755 <push_dwarf_reg_entry_value>: Remove assert. Override
4756 per_objfile with caller_per_objfile.
4757
4758 2020-05-28 Tom de Vries <tdevries@suse.de>
4759
4760 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4761 PR gold/15646 workaround to symbol kind "type".
4762
4763 2020-05-27 Tom Tromey <tromey@adacore.com>
4764
4765 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4766
4767 2020-05-27 Tom Tromey <tromey@adacore.com>
4768
4769 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4770 Use htab_find_with_hash.
4771 <add_abbrev>: Remove "abbrev_number" parameter.
4772 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4773 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4774 (hash_abbrev): Add comment.
4775 (abbrev_table::lookup_abbrev): Move to header file.
4776 (abbrev_table::read): Update.
4777
4778 2020-05-27 Tom Tromey <tromey@adacore.com>
4779
4780 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4781 method.
4782 <canonical_name>: New member.
4783 <raw_name>: Rename from "name".
4784 (partial_die_info): Initialize canonical_name.
4785 (scan_partial_symbols): Check raw_name.
4786 (partial_die_parent_scope, partial_die_full_name)
4787 (add_partial_symbol, add_partial_subprogram)
4788 (add_partial_enumeration, load_partial_dies): Use "name" method.
4789 (partial_die_info::name): New method.
4790 (partial_die_info::read, guess_partial_die_structure_name)
4791 (partial_die_info::fixup): Update.
4792
4793 2020-05-27 Tom Tromey <tromey@adacore.com>
4794
4795 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4796 <get_ref_die_offset>: Inline.
4797 <get_ref_die_offset_complaint>: New method.
4798 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4799 (attribute::get_ref_die_offset_complaint): Rename from
4800 get_ref_die_offset. Just issue complaint.
4801
4802 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4803
4804 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4805
4806 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4807
4808 * exec.c (exec_file_attach): Use errno value of first openp failure.
4809
4810 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4811
4812 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4813 Don't close thread handle.
4814
4815 2020-05-27 Tom Tromey <tom@tromey.com>
4816 Simon Marchi <simon.marchi@efficios.com>
4817
4818 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4819 shared_ptr.
4820 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4821 member.
4822 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4823 dwarf2_per_bfd_objfile_data_key>: New globals.
4824 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4825 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4826 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4827 shared.
4828 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4829 short-circuit when sharing.
4830 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4831 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4832
4833 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4836 to...
4837 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4838 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4839
4840 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4843 build_name_components, find_name_components_bounds>:
4844 Add per_objfile parameter.
4845 (struct mapped_index) <symbol_name_at>: Likewise.
4846 (struct mapped_debug_names): Remove constructor.
4847 <dwarf2_per_objfile>: Remove field.
4848 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4849 (mapped_index_base::find_name_components_bounds,
4850 mapped_index_base::build_name_components,
4851 dw2_expand_symtabs_matching_symbol): Likewise.
4852 (class mock_mapped_index) <symbol_name_at>: Likewise.
4853 (check_match): Likewise.
4854 (check_find_bounds_finds): Likewise.
4855 (test_mapped_index_find_name_component_bounds): Update.
4856 (CHECK_MATCH): Update.
4857 (dw2_expand_symtabs_matching): Update.
4858 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4859 per_objfile parameter.
4860 <find_vec_in_debug_names>: Likewise.
4861 <m_per_objfile>: New field.
4862 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4863 parameter.
4864 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4865 (dw2_debug_names_iterator::next): Update.
4866 (dw2_debug_names_lookup_symbol): Update.
4867 (dw2_debug_names_expand_symtabs_for_function): Update.
4868 (dw2_debug_names_map_matching_symbols): Update.
4869 (dw2_debug_names_expand_symtabs_matching): Update.
4870 (dwarf2_read_debug_names): Update.
4871
4872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4875 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4876 move to dwarf2_per_objfile.
4877 <read_in_chain>: Remove.
4878 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4879 remove_all_cus, age_comp_units>: New methods.
4880 <m_dwarf2_cus>: New member.
4881 (struct dwarf2_per_cu_data) <cu>: Remove.
4882 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4883 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4884 moved to methods of dwarf2_per_objfile.
4885 (dwarf2_clear_marks): Remove.
4886 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4887 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4888 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4889 (dwarf2_per_objfile::remove_all_cus): New.
4890 (class free_cached_comp_units) <~free_cached_comp_units>:
4891 Update.
4892 (load_cu): Update.
4893 (dw2_do_instantiate_symtab): Adjust.
4894 (fill_in_sig_entry_from_dwo_entry): Adjust.
4895 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4896 (cutu_reader::cutu_reader): Likewise.
4897 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4898 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4899 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4900 and dwarf2_per_objfile::age_comp_units.
4901 (load_partial_comp_unit): Update.
4902 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4903 (process_queue): Likewise.
4904 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4905 backlink.
4906 (dwarf2_read_addr_index): Likewise.
4907 (follow_die_offset): Likewise.
4908 (dwarf2_fetch_die_loc_sect_off): Likewise.
4909 (dwarf2_fetch_constant_bytes): Likewise.
4910 (dwarf2_fetch_die_type_sect_off): Likewise.
4911 (follow_die_sig_1): Likewise.
4912 (load_full_type_unit): Likewise.
4913 (read_signatured_type): Likewise.
4914 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4915 (dwarf2_cu::~dwarf2_cu): Remove.
4916 (dwarf2_per_objfile::get_cu): New.
4917 (dwarf2_per_objfile::set_cu): New.
4918 (age_cached_comp_units): Rename to...
4919 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4920 to std::unordered_map.
4921 (free_one_cached_comp_unit): Rename to...
4922 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4923 to std::unordered_map.
4924 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4925 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4926 a dwarf2_per_objfile in data.
4927 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4928 (dwarf2_clear_marks): Remove.
4929
4930 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4933 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4934 (init_tu_and_read_dwo_dies): Likewise.
4935 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4936 (cutu_reader::cutu_reader): Likewise.
4937 (load_partial_comp_unit): Likewise.
4938 (process_psymtab_comp_unit): Update.
4939 (build_type_psymtabs_1): Update.
4940 (process_skeletonless_type_unit): Update.
4941 (load_full_comp_unit): Update.
4942 (find_partial_die): Update.
4943 (dwarf2_read_addr_index): Update.
4944 (read_signatured_type): Update.
4945
4946 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4947
4948 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4949 m_header_read_in>: New fields.
4950 <get_header>: New method.
4951 * dwarf2/read.c (per_cu_header_read_in): Remove.
4952 (dwarf2_per_cu_data::get_header): New.
4953 (dwarf2_per_cu_data::addr_size): Update.
4954 (dwarf2_per_cu_data::offset_size): Update.
4955 (dwarf2_per_cu_data::ref_addr_size): Update.
4956
4957 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4960 (dw2_do_instantiate_symtab): Update.
4961 (queue_and_load_all_dwo_tus): Change parameter from
4962 dwarf2_per_cu_data to dwarf2_cu.
4963 (dwarf2_fetch_die_loc_sect_off): Update.
4964 (dwarf2_fetch_constant_bytes): Update.
4965 (dwarf2_fetch_die_type_sect_off): Update.
4966
4967 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4968
4969 * dwarf2/read.c (process_full_comp_unit,
4970 process_full_type_unit): Remove per_cu, per_objfile paramters.
4971 Add dwarf2_cu parameter.
4972 (process_queue): Update.
4973
4974 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4975
4976 * dwarf2/read.c (create_cu_from_index_list): Replace
4977 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4978 (create_cus_from_index_list): Likewise.
4979 (create_cus_from_index): Likewise.
4980 (create_signatured_type_table_from_index): Likewise.
4981 (create_cus_from_debug_names_list): Likewise.
4982 (create_cus_from_debug_names): Likewise.
4983 (dwarf2_read_gdb_index): Update.
4984 (dwarf2_read_debug_names): Update.
4985
4986 2020-05-27 Tom Tromey <tom@tromey.com>
4987 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * dwarf2/read.h (struct dwarf2_per_objfile)
4990 <get_type_for_signatured_type, set_type_for_signatured_type>:
4991 New methods.
4992 <m_type_map>: New member.
4993 (struct signatured_type) <type>: Remove.
4994 * dwarf2/read.c
4995 (dwarf2_per_objfile::get_type_for_signatured_type,
4996 dwarf2_per_objfile::set_type_for_signatured_type): New.
4997 (get_signatured_type): Use new methods.
4998
4999 2020-05-27 Tom Tromey <tom@tromey.com>
5000 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5003 (struct dwarf2_per_objfile) <type_units>: New member.
5004 <get_type_unit_group_unshareable>: New method.
5005 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5006 num_symtabs, symtabs>: Remove; move to
5007 type_unit_group_unshareable.
5008 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5009 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5010 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5011
5012 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * dwarf2/read.h (struct dwarf2_per_cu_data):
5015 <dwarf2_per_objfile>: Remove.
5016 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5017 dwarf2_per_objfile.
5018 (create_signatured_type_table_from_index): Likewise.
5019 (create_signatured_type_table_from_debug_names): Likewise.
5020 (create_debug_type_hash_table): Likewise.
5021 (fill_in_sig_entry_from_dwo_entry): Likewise.
5022 (create_type_unit_group): Likewise.
5023 (read_comp_units_from_section): Likewise.
5024 (create_cus_hash_table): Likewise.
5025
5026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5029 dwarf2_per_cu_data::dwarf2_per_objfile.
5030 (compute_compunit_symtab_includes): Likewise.
5031 (dwarf2_cu::start_symtab): Likewise.
5032
5033 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5034
5035 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5036 parameter.
5037 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5038 (read_namespace_alias): Update.
5039 (lookup_die_type): Update.
5040 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5041 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5042 Update.
5043 (disassemble_dwarf_expression): Update.
5044
5045 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * dwarf2/read.h (struct dwarf2_queue_item): Add
5048 dwarf2_per_objfile parameter, assign new parameter.
5049 <per_objfile>: New field.
5050 * dwarf2/read.c (free_one_cached_comp_unit): Add
5051 dwarf2_per_objfile parameter.
5052 (queue_comp_unit): Likewise.
5053 (dw2_do_instantiate_symtab): Update.
5054 (process_psymtab_comp_unit): Update.
5055 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5056 (process_imported_unit_die): Update.
5057 (queue_and_load_dwo_tu): Update.
5058 (follow_die_offset): Update.
5059 (follow_die_sig_1): Update.
5060
5061 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5062
5063 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5064 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5065 (read_call_site_scope): Assign per_objfile.
5066 (dwarf2_per_cu_data::objfile): Remove.
5067 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5068 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5069 dwarf2_per_objfile parameter.
5070 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5071 dwarf2_per_objfile parameter.
5072 (dwarf_expr_reg_to_entry_parameter): Add output
5073 dwarf2_per_objfile parameter.
5074 (locexpr_get_frame_base): Update.
5075 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5076 <push_dwarf_reg_entry_value>: Update.
5077 <call_site_to_target_addr>: Update.
5078 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5079 parameter.
5080 (value_of_dwarf_reg_entry): Update.
5081 (rw_pieced_value): Update.
5082 (indirect_synthetic_pointer): Update.
5083 (dwarf2_evaluate_property): Update.
5084 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5085 parameter.
5086 (locexpr_read_variable): Update.
5087 (locexpr_get_symbol_read_needs): Update.
5088 (loclist_read_variable): Update.
5089
5090 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5093 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5094 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5095 parameter.
5096 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5097 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5098 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5099 parameter.
5100 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5101 sect_variable_value): Add dwarf2_per_objfile parameter.
5102 (class dwarf_evaluate_loc_desc) <dwarf_call,
5103 dwarf_variable_value>: Update.
5104 (fetch_const_value_from_synthetic_pointer): Add
5105 dwarf2_per_objfile parameter.
5106 (fetch_const_value_from_synthetic_pointer): Update.
5107 (coerced_pieced_ref): Update.
5108 (class symbol_needs_eval_context) <dwarf_call,
5109 dwarf_variable_value>: Update.
5110 (dwarf2_compile_expr_to_ax): Update.
5111
5112 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5113
5114 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5115 parameter.
5116 (dwarf2_evaluate_loc_desc_full): Update.
5117
5118 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5121 parameter.
5122 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5123 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5124 dwarf2_per_objfile parameter.
5125 (decode_debug_loc_dwo_addresses): Likewise.
5126 (dwarf2_find_location_expression): Update.
5127 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5128 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5129 parameter.
5130 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5131 parameter.
5132 (locexpr_describe_location_1): Likewise.
5133 (locexpr_describe_location): Update.
5134
5135 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5138 Remove.
5139 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5140 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5141 (dwarf2_compile_property_to_c): Update.
5142 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5143 use text offset from objfile.
5144 (locexpr_tracepoint_var_ref): Update.
5145 (locexpr_generate_c_location): Update.
5146 (loclist_describe_location): Update.
5147 (loclist_tracepoint_var_ref): Update.
5148 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5149 dwarf2_per_objfile parameter.
5150 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5151 use text offset from objfile.
5152 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5153
5154 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * dwarf2/expr.h (struct dwarf_expr_context)
5157 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5158 <offset>: Remove.
5159 <per_objfile>: New member.
5160 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5161 dwarf2_per_objfile parameter. Don't set offset, set
5162 per_objfile.
5163 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5164 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5165 a dwarf2_per_objfile object instead of an offset.
5166 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5167 constructor.
5168 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5169 to dwarf2_expr_executor constructor. Don't set offset.
5170 (dwarf2_fetch_cfa_info): Update.
5171 (struct dwarf2_frame_cache) <text_offset>: Remove.
5172 <per_objfile>: New field.
5173 (dwarf2_frame_cache): Update.
5174 (dwarf2_frame_prev_register): Update.
5175 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5176 <dwarf_evaluate_loc_desc>: Add constructor.
5177 (dwarf2_evaluate_loc_desc_full): Update.
5178 (dwarf2_locexpr_baton_eval): Update.
5179 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5180 Add constructor.
5181 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5182
5183 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5184
5185 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5186 addr_sized_int_type>: Move to dwarf2_cu.
5187 <int_type>: Move to dwarf2_per_objfile.
5188 (struct dwarf2_per_objfile) <int_type>: Move here.
5189 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5190 addr_sized_int_type>: Move here.
5191 (read_func_scope): Update.
5192 (read_array_type): Update.
5193 (read_tag_string_type): Update.
5194 (attr_to_dynamic_prop): Update.
5195 (dwarf2_per_cu_data::int_type): Rename to...
5196 (dwarf2_per_objfile::int_type): ... this.
5197 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5198 (dwarf2_cu::addr_sized_int_type): ... this.
5199 (read_subrange_type): Update.
5200 (dwarf2_per_cu_data::addr_type): Rename to...
5201 (dwarf2_cu::addr_type): ... this.
5202 (set_die_type): Update.
5203
5204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5207 data through per_cu->cu.
5208
5209 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5212 dwarf2_per_cu_data parameter fo dwarf2_cu.
5213 (lookup_dwo_type_unit): Likewise.
5214 (read_cutu_die_from_dwo): Likewise.
5215 (lookup_dwo_unit): Likewise.
5216 (open_and_init_dwo_file): Likewise.
5217 (lookup_dwo_cutu): Likewise.
5218 (lookup_dwo_comp_unit): Likewise.
5219 (lookup_dwo_type_unit): Likewise.
5220 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5221 (cutu_reader::cutu_reader): Update.
5222
5223 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5226 parameter.
5227 (process_full_type_unit): Likewise.
5228 (process_queue): Update.
5229
5230 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * dwarf2/read.c (recursively_compute_inclusions): Add
5233 dwarf2_per_objfile parameter.
5234 (compute_compunit_symtab_includes): Likewise.
5235 (process_cu_includes): Update.
5236
5237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5238
5239 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5240 parameter.
5241 (create_type_unit_group): Update.
5242 (process_psymtab_comp_unit_reader): Update.
5243 (build_type_psymtabs_reader): Update.
5244
5245 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5248 object through m_this_cu->cu.
5249
5250 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5253 the info parameter.
5254 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5255
5256 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5257
5258 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5259 per_objfile parameter.
5260 (load_full_type_unit): Add per_objfile parameter.
5261 (read_signatured_type): Likewise.
5262 (load_full_comp_unit): Likewise.
5263 (load_cu): Likewise.
5264 (dw2_do_instantiate_symtab): Likewise.
5265 (dw2_get_file_names): Likewise.
5266 (dw2_map_symtabs_matching_filename): Update.
5267 (dw_expand_symtabs_matching_file_matcher): Update.
5268 (dw2_map_symbol_filenames): Update.
5269 (process_psymtab_comp_unit): Add per_objfile parameter.
5270 (build_type_psymtabs_1): Update.
5271 (process_skeletonless_type_unit): Update.
5272 (dwarf2_build_psymtabs_hard): Update.
5273 (load_partial_comp_unit): Add per_objfile parameter.
5274 (scan_partial_symbols): Update.
5275 (load_full_comp_unit): Add per_objfile parameter.
5276 (process_imported_unit_die): Update.
5277 (create_cus_hash_table): Update.
5278 (find_partial_die): Update.
5279 (dwarf2_read_addr_index): Update.
5280 (follow_die_offset): Update.
5281 (dwarf2_fetch_die_loc_sect_off): Update.
5282 (dwarf2_fetch_constant_bytes): Update.
5283 (dwarf2_fetch_die_type_sect_off): Update.
5284 (follow_die_sig_1): Update.
5285 (load_full_type_unit): Add per_objfile parameter.
5286 (read_signatured_type): Likewise.
5287
5288 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5289
5290 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5291 of objfile_name.
5292
5293 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5294
5295 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5296 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5297 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5298 field.
5299 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5300 (create_cus_from_index): Update.
5301 (dwarf2_read_gdb_index): Update.
5302 (create_cus_from_debug_names): Update.
5303 (dwarf2_read_debug_names): Update.
5304 (get_abbrev_section_for_cu): Update.
5305 (create_all_comp_units): Update.
5306 (read_attribute_value): Update.
5307 (get_debug_line_section): Update.
5308 * dwarf2/index-cache.c (index_cache::store): Update.
5309 * dwarf2/index-write.c (save_gdb_index_command): Update.
5310 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5311
5312 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5313
5314 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5315 member.
5316 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5317 dwarf2_per_cu_data::per_bfd.
5318 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5319 (create_type_unit_group): Likewise.
5320 (queue_comp_unit): Remove reference to
5321 per_cu->dwarf2_per_objfile.
5322 (maybe_queue_comp_unit): Likewise.
5323 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5324 (create_cus_hash_table): Assign new field.
5325
5326 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * dwarf2/read.c: Replace
5329 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5330 dwarf2_cu->per_objfile throughout.
5331
5332 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5335 parameter, don't use per_cu->dwarf2_per_objfile.
5336 (dw2_instantiate_symtab): Likewise.
5337 (dw2_find_last_source_symtab): Update.
5338 (dw2_map_expand_apply): Update.
5339 (dw2_lookup_symbol): Update.
5340 (dw2_expand_symtabs_for_function): Update.
5341 (dw2_expand_all_symtabs): Update.
5342 (dw2_expand_symtabs_with_fullname): Update.
5343 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5344 don't use per_cu->dwarf2_per_objfile.
5345 (dw2_expand_marked_cus): Update.
5346 (dw2_find_pc_sect_compunit_symtab): Update.
5347 (dw2_debug_names_lookup_symbol): Update.
5348 (dw2_debug_names_expand_symtabs_for_function): Update.
5349 (dw2_debug_names_map_matching_symbols): Update.
5350 (dwarf2_psymtab::expand_psymtab): Update.
5351
5352 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5353
5354 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5355 <per_objfile>: New member.
5356 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5357 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5358 call to dwarf2_cu.
5359 (cutu_reader::cutu_reader): Update.
5360 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5361
5362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5363
5364 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5365 struct dwarf2_per_objfile.
5366 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5367 dwarf2_per_bfd.
5368 * dwarf2/read.c (set_die_type): Update.
5369 (get_die_type_at_offset): Update.
5370
5371 2020-05-27 Tom Tromey <tom@tromey.com>
5372 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5375 method.
5376 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5377 get_symtab, set_symtab>: New methods.
5378 <m_symtabs>: New field.
5379 (struct dwarf2_psymtab): Derive from partial_symtab.
5380 <readin_p, get_compunit_symtab>: Declare methods.
5381 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5382 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5383 New methods.
5384 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5385 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5386 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5387 (dw2_symtab_iter_next, dw2_print_stats)
5388 (dw2_expand_symtabs_with_fullname)
5389 (dw2_expand_symtabs_matching_one)
5390 (dw_expand_symtabs_matching_file_matcher)
5391 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5392 (dw2_debug_names_iterator::next)
5393 (dw2_debug_names_map_matching_symbols)
5394 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5395 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5396 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5397 New methods.
5398 (get_compunit_symtab, process_full_comp_unit)
5399 (process_full_type_unit): Update.
5400 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5401
5402 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5403
5404 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5405 then introduce a new dwarf2_per_objfile type.
5406 <read_line_string>: Move to the new dwarf2_per_objfile type.
5407 <objfile>: Likewise.
5408 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5409 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5410 dwarf2_per_objfile->per_bfd.
5411 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5412 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5413 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5414 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5415 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5416 (dwarf2_per_objfile::locate_sections): Rename to...
5417 (dwarf2_per_bfd::locate_sections): ... this.
5418 (dwarf2_per_objfile::get_cutu): Rename to...
5419 (dwarf2_per_bfd::get_cutu): ... this.
5420 (dwarf2_per_objfile::get_cu): Rename to...
5421 (dwarf2_per_bfd::get_cu): ... this.
5422 (dwarf2_per_objfile::get_tu): Rename to...
5423 (dwarf2_per_bfd::get_tu): ... this.
5424 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5425 (dwarf2_per_bfd::allocate_per_cu): ... this.
5426 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5427 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5428 (get_gdb_index_contents_ftype): Change parameter from
5429 dwarf2_per_objfile to dwarf2_per_bfd.
5430 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5431 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5432
5433 2020-05-27 Tom Tromey <tom@tromey.com>
5434 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5437 (allocate_piece_closure): Set "per_objfile" member.
5438 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5439 (locexpr_describe_location, loclist_describe_location): Use new
5440 member.
5441 * dwarf2/read.c (read_call_site_scope)
5442 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5443 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5444 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5445 handle_data_member_location): Set per_objfile member.
5446 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5447 member.
5448 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5449
5450 2020-05-27 Tom Tromey <tom@tromey.com>
5451
5452 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5453 allocate_signatured_type>: Declare new methods.
5454 <m_num_psymtabs>: New member.
5455 (struct dwarf2_per_cu_data) <index>: New member.
5456 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5457 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5458 (create_cu_from_index_list): Use allocate_per_cu.
5459 (create_signatured_type_table_from_index)
5460 (create_signatured_type_table_from_debug_names)
5461 (create_debug_type_hash_table, add_type_unit)
5462 (read_comp_units_from_section): Use allocate_signatured_type.
5463
5464 2020-05-27 Tom Tromey <tom@tromey.com>
5465
5466 * psymtab.c (partial_map_expand_apply)
5467 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5468 (psym_lookup_global_symbol_language)
5469 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5470 (psym_print_stats, psym_expand_symtabs_for_function)
5471 (psym_map_symbol_filenames, psym_map_matching_symbols)
5472 (psym_expand_symtabs_matching)
5473 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5474 (maintenance_check_psymtabs): Update.
5475 * psympriv.h (struct partial_symtab) <readin_p,
5476 get_compunit_symtab>: Add objfile parameter.
5477 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5478 Likewise.
5479 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5480 get_compunit_symtab>: Likewise.
5481 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5482
5483 2020-05-27 Tom Tromey <tom@tromey.com>
5484
5485 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5486 member.
5487 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5488 (create_cu_from_index_list)
5489 (create_signatured_type_table_from_index)
5490 (create_signatured_type_table_from_debug_names)
5491 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5492 (dwarf2_create_include_psymtab)
5493 (create_debug_type_hash_table, add_type_unit)
5494 (create_type_unit_group, read_comp_units_from_section)
5495 (dwarf2_compute_name, create_cus_hash_table)
5496 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5497 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5498 obstack.
5499 (dw2_get_real_path): Likewise. Change argument to
5500 dwarf2_per_objfile.
5501
5502 2020-05-27 Luis Machado <luis.machado@linaro.org>
5503
5504 PR tdep/26000
5505 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5506 for ldrd (immediate).
5507
5508 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5509
5510 * command.h: Add comment giving the name of class_tui.
5511 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5512 create the fake command for the help for class_tui.
5513
5514 2020-05-26 Tom Tromey <tromey@adacore.com>
5515
5516 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5517 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5518 (val_atr): New function.
5519 (value_val_atr): Use it.
5520 * ada-valprint.c (print_optional_low_bound): Change low bound
5521 handling for enums.
5522 (val_print_packed_array_elements): Don't call discrete_position.
5523 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5524 discrete_position for enum types.
5525 * language.c (default_print_array_index): Change type.
5526 * language.h (struct language_defn) <la_print_array_index>: Add
5527 index_type parameter, change type of index_value.
5528 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5529 (default_print_array_index): Update.
5530 * valprint.c (maybe_print_array_index): Don't call
5531 value_from_longest. Update.
5532 (value_print_array_elements): Don't call discrete_position.
5533
5534 2020-05-26 Tom Tromey <tromey@adacore.com>
5535
5536 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5537 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5538
5539 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5540
5541 PR gdb/13519
5542 * avr-tdep.c (avr_integer_to_address): Return data or code
5543 address accordingly to the second 'type' argument of the
5544 function.
5545
5546 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5547
5548 * infcmd.c, inferior.h: (construct_inferior_arguments):
5549 Moved function from here to gdbsupport/common-inferior.{h,cc}
5550
5551 2020-05-23 Tom Tromey <tom@tromey.com>
5552
5553 Revert commit eca1f90c:
5554 * NEWS: Remove entry for completion styling.
5555 * completer.c (_rl_completion_prefix_display_length): Move
5556 declaration later.
5557 (gdb_fnprint): Revert.
5558 (gdb_display_match_list_1): Likewise.
5559 * cli/cli-style.c (completion_prefix_style)
5560 (completion_difference_style, completion_suffix_style): Remove.
5561 (_initialize_cli_style): Revert.
5562 * cli/cli-style.h (completion_prefix_style)
5563 (completion_difference_style, completion_suffix_style): Don't
5564 declare.
5565
5566 2020-05-24 Pedro Alves <palves@redhat.com>
5567
5568 * symtab.c (completion_list_add_name): Return boolean indication
5569 of whether the symbol matched.
5570 (completion_list_add_symbol): Don't try to remove C++ aliases if
5571 the symbol didn't match in the first place.
5572 * symtab.h (completion_list_add_name): Return bool.
5573
5574 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5575
5576 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5577 type::field.
5578
5579 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5580
5581 GDB 9.2 released.
5582
5583 2020-05-23 Tom Tromey <tom@tromey.com>
5584
5585 * NEWS: Add entry for completion styling.
5586 * completer.c (_rl_completion_prefix_display_length): Move
5587 declaration earlier.
5588 (gdb_fnprint): Use completion_style.
5589 (gdb_display_match_list_1): Likewise.
5590 * cli/cli-style.c (completion_prefix_style)
5591 (completion_difference_style, completion_suffix_style): New
5592 globals.
5593 (_initialize_cli_style): Register new globals.
5594 * cli/cli-style.h (completion_prefix_style)
5595 (completion_difference_style, completion_suffix_style): Declare.
5596
5597 2020-05-23 Pedro Alves <palves@redhat.com>
5598
5599 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5600 (parse_escape): Use ISDIGIT instead of isdigit.
5601 (puts_debug): Use gdb_isprint instead of isprint.
5602 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5603 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5604 ISSPACE instead of isspace.
5605 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5606 instead of isspace.
5607 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5608 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5609 instead of isxdigit and ISDIGIT instead of isdigit.
5610
5611 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * gdbtypes.h (struct type) <field>: New method.
5614 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5615 or type::field.
5616
5617 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5620 (TYPE_FIELDS): Use type::fields. Change all call sites that
5621 modify the propery to use type::set_fields instead.
5622
5623 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5626 type::num_fields instead.
5627
5628 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5631 methods.
5632 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5633 that modify the number of fields to use type::set_num_fields
5634 instead.
5635
5636 2020-05-22 Tom Tromey <tromey@adacore.com>
5637
5638 * compile/compile-object-load.h (munmap_list_free): Don't
5639 declare.
5640
5641 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5642
5643 * annotate.c (annotate_source_line): Update return type, add call
5644 to update current symtab and line.
5645 * annotate.h (annotate_source_line): Update return type, and
5646 extend header comment.
5647 * source.c (info_line_command): Check annotation_level before
5648 calling annotate_source_line.
5649 * stack.c (print_frame_info): If calling annotate_source_line
5650 returns true, then don't print any other source line information.
5651
5652 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5655
5656 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5657
5658 * coffread.c (patch_type): Remove NULL check before xfree.
5659 * corefile.c (set_gnutarget): Likewise.
5660 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5661 * exec.c (build_section_table): Likewise.
5662 * remote.c (remote_target::pass_signals): Likewise.
5663 * utils.c (n_spaces): Likewise.
5664 * cli/cli-script.c (document_command): Likewise.
5665 * i386-windows-tdep.c (core_process_module_section): Likewise.
5666 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5667
5668 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * symfile.c (reread_symbols): Clear objfile's section_offsets
5671 vector and section indices, re-compute them by calling
5672 sym_offsets.
5673
5674 2020-05-20 Tom Tromey <tromey@adacore.com>
5675
5676 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5677 (desc_one_bound, desc_index_type): Compute field name.
5678
5679 2020-05-20 Tom de Vries <tdevries@suse.de>
5680
5681 PR symtab/25833
5682 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5683
5684 2020-05-20 Alan Modra <amodra@gmail.com>
5685
5686 PR 25993
5687 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5688 bfd_set_filename.
5689 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5690 passed to bfd_set_filename.
5691 * symfile-mem.c (add_vsyscall_page): Likewise for string
5692 passed to symbol_file_add_from_memory.
5693 (symbol_file_add_from_memory): Make name param a const char* and
5694 don't strdup.
5695
5696 2020-05-20 Alan Modra <amodra@gmail.com>
5697
5698 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5699 rather than accessing bfd->filename directly.
5700 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5701 and use bfd_section_name.
5702 * dwarf2/frame.c (decode_frame_entry): Likewise.
5703 * exec.c (exec_set_section_address): Likewise.
5704 * solib-aix.c (solib_aix_bfd_open): Likewise.
5705 * stap-probe.c (get_stap_base_address): Likewise.
5706 * symfile.c (reread_symbols): Likewise.
5707
5708 2020-05-19 Tom Tromey <tromey@adacore.com>
5709
5710 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5711
5712 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5713
5714 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5715
5716 2020-05-19 Pedro Alves <palves@redhat.com>
5717
5718 * NEWS (set exec-file-mismatch): Adjust entry.
5719 * exec.c: Include "build-id.h".
5720 (validate_exec_file): Try to match build IDs instead of filenames.
5721 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5722 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5723 and pass down 'warn_if_slow'.
5724 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5725 gdb_bfd_open_closure to pass it down.
5726 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5727
5728 2020-05-19 Pedro Alves <palves@redhat.com>
5729
5730 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5731 * target.c (target_fileio_open_1): Rename to target_fileio_open
5732 and make extern. Use bool.
5733 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5734 (target_fileio_read_alloc_1): Adjust.
5735 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5736 (target_fileio_open_warn_if_slow): Delete declaration.
5737
5738 2020-05-19 Pedro Alves <palves@redhat.com>
5739
5740 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5741 Adjust all callers.
5742
5743 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5744
5745 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5746 whether disp is negative.
5747
5748 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * symfile.h (struct symfile_segment_data)
5751 <~symfile_segment_data>: Remove.
5752 <segment_info>: Change to std::vector.
5753 * symfile.c (default_symfile_segments): Update.
5754 * elfread.c (elf_symfile_segments): Update.
5755
5756 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5757
5758 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5759 <segments>: New.
5760 <segment_bases, segment_sizes>: Remove.
5761 * symfile.c (default_symfile_segments): Update.
5762 * elfread.c (elf_symfile_segments): Update.
5763 * remote.c (remote_target::get_offsets): Update.
5764 * solib-target.c (solib_target_relocate_section_addresses):
5765 Update.
5766
5767 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * symfile.h (struct symfile_segment_data): Initialize fields.
5770 <~symfile_segment_data>: Add.
5771 (symfile_segment_data_up): New.
5772 (struct sym_fns) <sym_segments>: Return a
5773 symfile_segment_data_up.
5774 (default_symfile_segments): Return a symfile_segment_data_up.
5775 (free_symfile_segment_data): Remove.
5776 (get_symfile_segment_data): Return a symfile_segment_data_up.
5777 * symfile.c (default_symfile_segments): Likewise.
5778 (get_symfile_segment_data): Likewise.
5779 (free_symfile_segment_data): Remove.
5780 (symfile_find_segment_sections): Update.
5781 * elfread.c (elf_symfile_segments): Return a
5782 symfile_segment_data_up.
5783 * remote.c (remote_target::get_offsets): Update.
5784 * solib-target.c (solib_target_relocate_section_addresses):
5785 Update.
5786 * symfile-debug.c (debug_sym_segments): Return a
5787 symfile_segment_data_up.
5788
5789 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5790
5791 PR build/25981
5792 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5793 Hardcode register numbers.
5794
5795 PR build/25981
5796 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5797 procfs_find_LDT_entry): Remove.
5798 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5799 procfs_find_LDT_entry): Remove.
5800 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5801 Remove.
5802
5803 2020-05-17 Pedro Alves <palves@redhat.com>
5804 Andrew Burgess <andrew.burgess@embecosm.com>
5805 Keno Fischer <keno@juliacomputing.com>
5806
5807 PR gdb/25741
5808 * breakpoint.c (build_target_condition_list): Update comments.
5809 (build_target_command_list): Update comments and skip matching
5810 locations.
5811 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5812 a separate function. Simplify "set breakpoint auto-hw off"
5813 handling.
5814 (insert_breakpoints): Update comment.
5815 (tracepoint_locations_match): New parameter. For breakpoints,
5816 compare location types too, if the caller wants to.
5817 (handle_automatic_hardware_breakpoints): New functions.
5818 (bp_location_is_less_than): Also sort by location type and
5819 hardware breakpoint length.
5820 (update_global_location_list): Handle "set breakpoint auto-hw on"
5821 here.
5822 (update_breakpoint_locations): Ask breakpoint_locations_match to
5823 ignore location types.
5824
5825 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5828 type::name instead.
5829
5830 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * gdbtypes.h (struct type) <name, set_name>: New methods.
5833 (TYPE_CODE): Use type::name. Change all call sites used to set
5834 the name to use type::set_name instead.
5835
5836 2020-05-16 Tom Tromey <tom@tromey.com>
5837
5838 * top.c (quit_force): Update.
5839 * infrun.c (handle_no_resumed): Update.
5840 * top.h (all_uis): New function.
5841 (ALL_UIS): Remove.
5842
5843 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5846
5847 2020-05-16 Pedro Alves <palves@redhat.com>
5848
5849 * ia64-linux-nat.c
5850 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5851 Declare method.
5852 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5853
5854 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5855
5856 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5857 (sparc64_adi_info): Likewise.
5858
5859 2020-05-15 Tom Tromey <tom@tromey.com>
5860
5861 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5862 block_objfile.
5863 (lookup_objfile_from_block): Remove.
5864 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5865 (lookup_global_symbol): Use block_objfile.
5866 * symtab.h (lookup_objfile_from_block): Don't declare.
5867 * printcmd.c (clear_dangling_display_expressions): Use
5868 block_objfile.
5869 * parse.c (operator_check_standard): Use block_objfile.
5870
5871 2020-05-15 Tom Tromey <tom@tromey.com>
5872
5873 * language.c (language_alloc_type_symbol): Set
5874 SYMBOL_SECTION.
5875 * symtab.c (initialize_objfile_symbol): Remove.
5876 (allocate_symbol): Remove.
5877 (allocate_template_symbol): Remove.
5878 * dwarf2/read.c (fixup_go_packaging): Use "new".
5879 (new_symbol): Use "new".
5880 (read_variable): Don't call initialize_objfile_symbol. Use
5881 "new".
5882 (read_func_scope): Use "new".
5883 * xcoffread.c (process_xcoff_symbol): Don't call
5884 initialize_objfile_symbol.
5885 (SYMBOL_DUP): Remove.
5886 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5887 "new".
5888 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5889 (allocate_template_symbol): Don't declare.
5890 (struct symbol): Add copy constructor. Change defaults.
5891 * jit.c (finalize_symtab): Use "new".
5892 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5893 Use "new".
5894 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5895 (common_block_end): Use "new".
5896 * mdebugread.c (parse_symbol): Use "new".
5897 (new_symbol): Likewise.
5898
5899 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5900
5901 * NEWS: Mention changes to help and apropos.
5902
5903 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5904
5905 * command.h (enum command_class): Improve comments, document
5906 that class_alias is for user-defined aliases, give the class
5907 name for each class, remove unused class_xdb.
5908 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5909 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5910 by a precise class.
5911 * infcmd.c (_initialize_infcmd): Likewise.
5912 * reverse.c (_initialize_reverse): Likewise.
5913 * stack.c (_initialize_stack): Likewise.
5914 * symfile.c (_initialize_symfile): Likewise.
5915 * tracepoint.c (_initialize_tracepoint): Likewise.
5916
5917 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5918
5919 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5920 when their aliased command is traversed.
5921 (help_cmd): Add fput_command_names_styled call to
5922 output command name and aliases when command has an alias.
5923
5924 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5925
5926 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5927 * cli/cli-decode.c (help_cmd_list): Declare as static,
5928 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5929 a command together with the command.
5930 (fput_command_name_styled, fput_command_names_styled): New functions.
5931 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5932 fput_command_name_styled.
5933 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5934 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5935
5936 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5937
5938 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5939 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5940 * command.h (cmd_show_list): Likewise.
5941 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5942 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5943
5944 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5945
5946 * unittests/command-def-selftests.c (traverse_command_structure):
5947 Verify all commands of a list have the same prefix command and
5948 that only the top cmdlist commands have a null prefix.
5949
5950 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5951
5952 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5953 as prefix, not one of its aliases.
5954 (set_cmd_prefix): Remove.
5955 (do_add_cmd): Centralize the setting of the prefix of a command, when
5956 command is defined after its full chain of prefix commands.
5957 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5958 (add_setshow_cmd_full): Likewise.
5959 (update_prefix_field_of_prefixed_commands): New function.
5960 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5961 update_prefix_field_of_prefixed_commands.
5962 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5963 addresses of remote_set_cmdlist and remote_show_cmdlist given
5964 as argument, not the address of an argument.
5965 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5966 * gdb/remote.c (_initialize_remote): Likewise.
5967
5968 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5969
5970 * cli/cli-cmds.c (alias_command): Check for an existing alias
5971 using lookup_cmd_composition, as valid_command_p is too strict
5972 and forbids aliases that are the prefix of an existing alias
5973 or command.
5974 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5975 command is properly recognised as a valid command.
5976
5977 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5978
5979 * unittests/help-doc-selftests.c: Rename to
5980 unittests/command-def-selftests.c
5981 * unittests/command-def-selftests.c (help_doc_tests): Update some
5982 comments.
5983 (command_structure_tests, traverse_command_structure): New namespace
5984 and function.
5985 (command_structure_invariants_tests): New function.
5986 (_initialize_command_def_selftests) Renamed from
5987 _initialize_help_doc_selftests, register command_structure_invariants
5988 selftest.
5989
5990 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5991
5992 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5993 an alias of 'show'.
5994
5995 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5996
5997 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5998 ada_is_fixed_point_type. Update all callers.
5999 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6000 all callers.
6001 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6002 Update all callers.
6003 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6004 print_fixed_point_type. Update all callers.
6005 * ada-valprint.c (ada_value_print_num): Replace call to
6006 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6007
6008 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6009
6010 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6011 processors.
6012 (cpu_supports_bts): Add CV_AMD case.
6013
6014 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6015 Simon Marchi <simon.marchi@efficios.com>
6016
6017 * infrun.c (stop_all_threads): Collect multiple wait events at
6018 each pass.
6019
6020 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6021
6022 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6023 type::code instead.
6024
6025 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6026
6027 * gdbtypes.h (struct type) <code, set_code>: New methods.
6028 (TYPE_CODE): Use type::code. Change all call sites used to set
6029 the code to use type::set_code instead.
6030
6031 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6032 Tom de Vries <tdevries@suse.de>
6033 Pedro Alves <palves@redhat.com>
6034
6035 PR threads/25478
6036 * infrun.c (stop_all_threads): Do NOT ignore
6037 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6038 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6039 received.
6040 (handle_no_resumed): Remove code handling a live inferior with no
6041 threads.
6042 * remote.c (has_single_non_exited_thread): New.
6043 (remote_target::update_thread_list): Do not delete a thread if is
6044 the last thread of the process.
6045 * thread.c (thread_select): Call delete_exited_threads instead of
6046 prune_threads.
6047
6048 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6049
6050 * infrun.c (stop_all_threads): Enable/disable thread events of all
6051 targets. Move a debug message denoting the end of the function
6052 into the SCOPED_EXIT block.
6053
6054 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6055
6056 * process-stratum-target.h: Include <set>.
6057 (all_non_exited_process_targets, switch_to_target_no_thread): New
6058 function declarations.
6059 * process-stratum-target.c (all_non_exited_process_targets)
6060 (switch_to_target_no_thread): New function implementations.
6061
6062 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6063
6064 * infrun.c (handle_inferior_event): Extract out a piece of code
6065 into...
6066 (mark_non_executing_threads): ...this new function.
6067
6068 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6069
6070 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6071 use.
6072
6073 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6074
6075 * regcache.c (regcache_read_pc_protected): New function
6076 implementation that returns 0 if the PC cannot read via
6077 'regcache_read_pc'.
6078 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6079 instead of 'regcache_read_pc'.
6080 (keep_going_pass_signal): Ditto.
6081
6082 2020-05-13 Tom Tromey <tromey@adacore.com>
6083
6084 * ada-lang.c (align_value): Remove.
6085 (ada_template_to_fixed_record_type_1): Use align_up.
6086
6087 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6088
6089 * async-event.c: Update the copyright year.
6090 * async-event.h: Update the copyright year.
6091
6092 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * objfiles.h (is_addr_in_objfile,
6095 shared_objfile_contains_address_p): Return bool.
6096 * objfile.c (is_addr_in_objfile,
6097 shared_objfile_contains_address_p): Return bool.
6098
6099 2020-05-11 Tom Tromey <tromey@adacore.com>
6100
6101 * cli/cli-cmds.c (info_command): Restore.
6102 (_initialize_cli_cmds): Use add_prefix_command for "info".
6103 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6104
6105 2020-05-11 Tom Tromey <tromey@adacore.com>
6106
6107 * ada-lang.c (ada_value_primitive_field): Now public.
6108 * ada-lang.h (ada_value_primitive_field): Declare.
6109 * ada-valprint.c (print_field_values): Use
6110 ada_value_primitive_field for wrapper fields.
6111
6112 2020-05-11 Tom de Vries <tdevries@suse.de>
6113
6114 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6115 MODULE_DOMAIN.
6116
6117 2020-05-11 Tom de Vries <tdevries@suse.de>
6118
6119 PR symtab/25941
6120 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6121 with length 0, if not gdb-produced.
6122 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6123
6124 2020-05-09 Tom de Vries <tdevries@suse.de>
6125
6126 PR gdb/25955
6127 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6128 calculation.
6129
6130 2020-05-09 Tom Tromey <tom@tromey.com>
6131
6132 * top.c (server_command): Now bool.
6133 * top.h (server_command): Now bool.
6134
6135 2020-05-08 Tom Tromey <tromey@adacore.com>
6136
6137 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6138 already being processed.
6139
6140 2020-05-08 Tom Tromey <tom@tromey.com>
6141
6142 * printcmd.c (struct display) <next>: Remove.
6143 <display>: New constructor.
6144 <exp_string>: Now a std::string.
6145 <enabled_p>: Now a bool.
6146 (display_number): Move definition earlier.
6147 (displays): Rename from display_chain. Now a std::vector.
6148 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6149 (display_command): Update.
6150 (do_one_display, disable_display)
6151 (enable_disable_display_command, do_enable_disable_display):
6152 Update.
6153 (free_display): Remove.
6154 (clear_displays): Rewrite.
6155 (delete_display): Update.
6156 (map_display_numbers): Use function_view. Remove "data"
6157 parameter. Update.
6158 (do_delete_display): Remove.
6159 (undisplay_command): Update.
6160 (do_one_display, do_displays, disable_display)
6161 (info_display_command): Update.
6162 (do_enable_disable_display): Remove.
6163 (enable_disable_display_command)
6164 (clear_dangling_display_expressions): Update.
6165
6166 2020-05-08 Tom Tromey <tom@tromey.com>
6167
6168 * symtab.c (set_symbol_cache_size)
6169 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6170 (maintenance_print_symbol_cache_statistics): Update.
6171 * symmisc.c (print_symbol_bcache_statistics)
6172 (print_objfile_statistics, maintenance_print_objfiles)
6173 (maintenance_info_symtabs, maintenance_check_symtabs)
6174 (maintenance_expand_symtabs, maintenance_info_line_tables):
6175 Update.
6176 * symfile-debug.c (set_debug_symfile): Update.
6177 * source.c (forget_cached_source_info): Update.
6178 * python/python.c (gdbpy_progspaces): Update.
6179 * psymtab.c (maintenance_info_psymtabs): Update.
6180 * probe.c (parse_probes): Update.
6181 * linespec.c (iterate_over_all_matching_symtabs)
6182 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6183 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6184 * exec.c (exec_target::close): Update.
6185 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6186 * breakpoint.c (print_one_breakpoint_location)
6187 (create_longjmp_master_breakpoint)
6188 (create_std_terminate_master_breakpoint): Update.
6189 * progspace.c (program_spaces): Now a std::vector.
6190 (maybe_new_address_space): Update.
6191 (add_program_space): Remove.
6192 (program_space::program_space): Update.
6193 (remove_program_space): Update.
6194 (number_of_program_spaces): Remove.
6195 (print_program_space, update_address_spaces): Update.
6196 * progspace.h (program_spaces): Change type.
6197 (ALL_PSPACES): Remove.
6198 (number_of_program_spaces): Don't declare.
6199 (struct program_space) <next>: Remove.
6200
6201 2020-05-08 Tom Tromey <tom@tromey.com>
6202
6203 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6204 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6205 (enable_break): Update.
6206 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6207 (frv_fdpic_find_canonical_descriptor): Update.
6208 (frv_fetch_objfile_link_map): Update.
6209 * progspace.c (program_space::free_all_objfiles): Update.
6210 (program_space::solibs): New method.
6211 * progspace.h (struct program_space) <solibs>: New method.
6212 * solist.h (master_so_list): Don't declare.
6213 (ALL_SO_LIBS): Remove.
6214 * solib.h (so_list_head): Remove.
6215 (update_solib_list): Update comment.
6216 * solib.c (master_so_list): Remove.
6217 (solib_used, update_solib_list, solib_add)
6218 (info_sharedlibrary_command, clear_solib)
6219 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6220
6221 2020-05-08 Tom Tromey <tom@tromey.com>
6222
6223 * extension.c (extension_languages): Now a std::array.
6224 (ALL_EXTENSION_LANGUAGES): Remove.
6225 (get_ext_lang_defn, get_ext_lang_of_file)
6226 (eval_ext_lang_from_control_command): Update.
6227 (finish_ext_lang_initialization)
6228 (auto_load_ext_lang_scripts_for_objfile)
6229 (ext_lang_type_printers::ext_lang_type_printers)
6230 (apply_ext_lang_type_printers)
6231 (ext_lang_type_printers::~ext_lang_type_printers)
6232 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6233 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6234 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6235 (get_matching_xmethod_workers, ext_lang_colorize)
6236 (ext_lang_before_prompt): Update.
6237 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6238
6239 2020-05-08 Tom Tromey <tom@tromey.com>
6240
6241 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6242 overload.
6243 <swap_string, m_string>: Remove.
6244 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6245 Update.
6246 * stabsread.c (define_symbol, read_type): Update.
6247 * linespec.c (find_linespec_symbols): Update.
6248 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6249 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6250 * dbxread.c (read_dbx_symtab): Update.
6251 * cp-support.h (cp_canonicalize_string_full)
6252 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6253 Return unique_xmalloc_ptr.
6254 * cp-support.c (inspect_type): Update.
6255 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6256 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6257 Likewise.
6258 * c-typeprint.c (print_name_maybe_canonical): Update.
6259 * break-catch-throw.c (check_status_exception_catchpoint):
6260 Update.
6261
6262 2020-05-08 Tom de Vries <tdevries@suse.de>
6263
6264 * infrun.c (follow_fork): Copy current_line and current_symtab to
6265 child thread.
6266
6267 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * async-event.c (struct async_signal_handler, struct
6270 async_event_handler): Reformat, remove typedef.
6271
6272 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6275 access thistype->main_type->dyn_prop_list directly.
6276
6277 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6278
6279 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6280 (remove_dyn_prop): Remove. Update all users to use
6281 type::remove_dyn_prop.
6282 * gdbtypes.c (remove_dyn_prop): Rename to...
6283 (type::remove_dyn_prop): ... this.
6284
6285 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6286
6287 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6288 (add_dyn_prop): Remove. Update all users to use
6289 type::add_dyn_prop.
6290 * gdbtypes.c (add_dyn_prop): Rename to...
6291 (type::add_dyn_prop): ... this.
6292
6293 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6296 (get_dyn_prop): Remove. Update all users to use
6297 type::dyn_prop.
6298 * gdbtypes.c (get_dyn_prop): Rename to...
6299 (type::dyn_prop): ... this.
6300
6301 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6302
6303 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6304
6305 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6308 instruction, skip it if it's there.
6309
6310 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6311
6312 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6313
6314 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6315
6316 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6317 * gdbtypes.c (recursive_dump_type): Remove use of
6318 TYPE_INCOMPLETE.
6319
6320 2020-05-03 Tom Tromey <tom@tromey.com>
6321
6322 * breakpoint.c (catch_command, tcatch_command): Remove.
6323 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6324 add_show_prefix_cmd.
6325 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6326 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6327 Remove.
6328 (add_internal_problem_command): Use add_basic_prefix_cmd,
6329 add_show_prefix_cmd.
6330 * mips-tdep.c (set_mipsfpu_command): Remove.
6331 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6332 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6333 (_initialize_index_cache): Use add_basic_prefix_cmd.
6334 * memattr.c (dummy_cmd): Remove.
6335 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6336 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6337 (_initialize_tui_win): Use add_basic_prefix_cmd,
6338 add_show_prefix_cmd.
6339 * cli/cli-logging.c (set_logging_command): Remove.
6340 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6341 add_show_prefix_cmd.
6342 (show_logging_command): Remove.
6343 * target.c (target_command): Remove.
6344 (add_target): Use add_basic_prefix_cmd.
6345
6346 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6347
6348 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6349
6350 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6351
6352 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6353 info_command.
6354
6355 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6356
6357 * nbsd-nat.c (nbsd_enable_proc_events)
6358 (nbsd_nat_target::post_startup_inferior): Add.
6359 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6360 (nbsd_nat_target::update_thread_list): Rewrite.
6361 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6362 "PTRACE_LWP_CREATE".
6363 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6364
6365 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6366
6367 * stack.c (_initialize_stack): Remove duplicated creation
6368 of "frame" command and "f" alias.
6369
6370 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6371
6372 PR gdb/18706
6373 * gdbtypes.c (check_typedef): Calculate size of array of
6374 stubbed type.
6375
6376 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6377
6378 PR gdb/15559
6379 * i386-tdep.c (i386_push_dummy_call): Call
6380 i386_thiscall_push_dummy_call.
6381 (i386_thiscall_push_dummy_call): New function.
6382 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6383 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6384 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6385
6386 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * gdbarch.sh (do_read): Add shellcheck disable directive for
6389 warning SC2162.
6390
6391 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6392
6393 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6394 "referenced but not assigned" warning.
6395
6396 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6397
6398 * gdbarch.sh: Remove code that sets fallbackdefault.
6399
6400 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * gdbarch.sh: Use shell operators && and || instead of
6403 -a and -o.
6404
6405 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6406
6407 * gdbarch.sh: Use $(...) instead of `...`.
6408
6409 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6410
6411 * gdbarch.sh: Use double quotes around variables.
6412
6413 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6414
6415 * gdbarch.sh: Use %s with printf, instead of variables in the
6416 format string.
6417
6418 2020-04-29 Tom Tromey <tromey@adacore.com>
6419
6420 PR ada/25875:
6421 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6422 type fields here.
6423 (read_enumeration_type): Call
6424 update_enumeration_type_from_children later. Update comments.
6425 (process_enumeration_scope): Don't create type fields.
6426
6427 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6428
6429 * nbsd-tdep.c: Include "xml-syscall.h".
6430 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6431
6432 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6433
6434 * nbsd-nat.c: Include "sys/wait.h".
6435 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6436 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6437 (nbsd_nat_target::remove_exec_catchpoint)
6438 (nbsd_nat_target::set_syscall_catchpoint): Add.
6439 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6440 (nbsd_nat_target::insert_exec_catchpoint)
6441 (nbsd_nat_target::remove_exec_catchpoint)
6442 (nbsd_nat_target::set_syscall_catchpoint): Add.
6443 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6444 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6445 `nbsd_get_syscall_number'.
6446
6447 2020-04-29 Tom Tromey <tom@tromey.com>
6448
6449 * stack.c (print_block_frame_labels): Remove.
6450
6451 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6452
6453 PR gdb/17320
6454 * ada-valprint.c (val_print_packed_array_elements): Move array
6455 end bracket to new line.
6456 (ada_val_print_string): Remove extra spaces before first array
6457 element.
6458 * c-valprint.c (c_value_print_array): Likewise.
6459 * m2-valprint.c (m2_print_array_contents): Likewise.
6460 (m2_value_print_inner): Likewise.
6461 * p-valprint.c (pascal_value_print_inner): Likewise.
6462 * valprint.c (generic_val_print_array): Likewise.
6463 (value_print_array_elements): Move first array element and array
6464 end bracket to new line.
6465
6466 2020-04-29 Tom de Vries <tdevries@suse.de>
6467
6468 PR symtab/25889
6469 * linespec.c (find_method): Fix ix calculation.
6470
6471 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6472
6473 * syscalls/update-netbsd.sh: New file.
6474 * syscalls/netbsd.xml: Regenerate.
6475 * data-directory/Makefile.in: Register `netbsd.xml' in
6476 `SYSCALLS_FILES'.
6477
6478 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6479
6480 * syscalls/update-freebsd.sh: Add double quotes.
6481
6482 2020-04-28 Tom Tromey <tom@tromey.com>
6483
6484 * NEWS: Update.
6485 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6486 (cmdpy_init): Allow class_tui.
6487
6488 2020-04-28 Mark Williams <mark@myosotissp.com>
6489
6490 PR gdb/24480
6491 * dwarf2read.c: Add missing assingments to list_in_scope when
6492 start_symtab was already called.
6493
6494 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6495
6496 PR gdb/25881
6497 * dwarf2/read.c (offset_map_type): Use
6498 gdb:hash_enum<sect_offset> as hash function.
6499
6500 2020-04-28 Tom de Vries <tdevries@suse.de>
6501
6502 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6503 with DW_AT_signature.
6504
6505 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6506
6507 * configure.ac: Remove check for fs_base/gs_base in
6508 user_regs_struct.
6509 * configure: Re-generate.
6510 * config.in: Re-generate.
6511 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6512 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6513 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6514
6515 2020-04-27 Luis Machado <luis.machado@linaro.org>
6516
6517 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6518 problematic inline frame unwinding situation.
6519 * frame.c (frame_id_computed_p): New function.
6520 * frame.h (frame_id_computed_p): New prototype.
6521
6522 2020-04-26 Tom Tromey <tom@tromey.com>
6523
6524 * command.h (enum command_class) <class_pseudo>: Remove.
6525
6526 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6527
6528 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6529 and whitespace.
6530
6531 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6532
6533 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6534 `PT_GET_PROCESS_STATE' block.
6535
6536 2020-04-24 Tom Tromey <tom@tromey.com>
6537
6538 * symtab.h (symbol_get_demangled_name): Don't declare.
6539 * symtab.c (symbol_get_demangled_name): Remove.
6540 (general_symbol_info::natural_name)
6541 (general_symbol_info::demangled_name): Update.
6542
6543 2020-04-24 Tom Tromey <tom@tromey.com>
6544
6545 PR rust/25025:
6546 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6547
6548 2020-04-24 Tom Tromey <tom@tromey.com>
6549
6550 PR symtab/12707:
6551 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6552 exists.
6553 (new_symbol): Likewise.
6554 * compile/compile-object-load.c (get_out_value_type): Use
6555 symbol_matches_search_name.
6556
6557 2020-04-24 Tom Tromey <tom@tromey.com>
6558
6559 * dwarf2/read.c (add_partial_symbol): Do not call
6560 compute_and_set_names.
6561
6562 2020-04-24 Tom Tromey <tom@tromey.com>
6563
6564 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6565 overload.
6566
6567 2020-04-24 Tom Tromey <tom@tromey.com>
6568
6569 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6570 (add_psymbol_to_list): New overload. Make old overload call new
6571 one.
6572 * psympriv.h (add_psymbol_to_list): New overload.
6573
6574 2020-04-24 Tom Tromey <tom@tromey.com>
6575
6576 * dwarf2/read.c (partial_die_info::read) <case
6577 DW_AT_linkage_name>: Use value_as_string.
6578 (dwarf2_string_attr): Use value_as_string.
6579 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6580 method.
6581 * dwarf2/attribute.c (attribute::value_as_string): New method.
6582
6583 2020-04-24 Tom Tromey <tom@tromey.com>
6584
6585 * symtab.c (general_symbol_info::natural_name)
6586 (general_symbol_info::demangled_name): Check for language_rust.
6587
6588 2020-04-24 Tom Tromey <tom@tromey.com>
6589
6590 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6591 (dwarf2_physname): ... from here.
6592 (partial_die_info::read): Add Rust "{" hack.
6593
6594 2020-04-24 Tom Tromey <tom@tromey.com>
6595
6596 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6597 method.
6598 (symbol_set_demangled_name): Don't declare.
6599 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6600 symbol_set_demangled_name.
6601 (general_symbol_info::set_language)
6602 (general_symbol_info::compute_and_set_names): Update.
6603 * minsyms.c (minimal_symbol_reader::install): Update.
6604 * dwarf2/read.c (new_symbol): Update.
6605
6606 2020-04-24 Tom Tromey <tromey@adacore.com>
6607
6608 PR python/23662:
6609 * python/py-type.c (convert_field): Handle
6610 FIELD_LOC_KIND_DWARF_BLOCK.
6611 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6612 (typy_get_dynamic): Nw function.
6613 (type_object_getset): Add "dynamic".
6614 * NEWS: Add entry.
6615
6616 2020-04-24 Tom Tromey <tromey@adacore.com>
6617
6618 * ada-typeprint.c (print_choices, print_variant_part)
6619 (print_record_field_types_dynamic): New functions.
6620 (print_record_field_types): Use print_record_field_types_dynamic.
6621
6622 2020-04-24 Tom Tromey <tromey@adacore.com>
6623
6624 * dwarf2/read.c (handle_data_member_location): New overload.
6625 (dwarf2_add_field): Use it.
6626 (decode_locdesc): Add "computed" parameter. Update comment.
6627 * gdbtypes.c (is_dynamic_type_internal): Also look for
6628 FIELD_LOC_KIND_DWARF_BLOCK.
6629 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6630 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6631 virtual base classes.
6632 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6633 FIELD_LOC_KIND_DWARF_BLOCK.
6634
6635 2020-04-24 Tom Tromey <tromey@adacore.com>
6636
6637 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6638 * gdbtypes.c (is_dynamic_type_internal): Check
6639 TYPE_HAS_DYNAMIC_LENGTH.
6640 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6641 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6642 New macros.
6643 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6644 constant.
6645
6646 2020-04-24 Tom Tromey <tromey@adacore.com>
6647
6648 * dwarf2/read.c (struct variant_field): Rewrite.
6649 (struct variant_part_builder): New.
6650 (struct nextfield): Remove "variant" field. Add "offset".
6651 (struct field_info): Add "current_variant_part" and
6652 "variant_parts".
6653 (alloc_discriminant_info): Remove.
6654 (alloc_rust_variant): New function.
6655 (quirk_rust_enum): Update.
6656 (dwarf2_add_field): Set "offset" member. Don't handle
6657 DW_TAG_variant_part.
6658 (offset_map_type): New typedef.
6659 (convert_variant_range, create_one_variant)
6660 (create_one_variant_part, create_variant_parts)
6661 (add_variant_property): New functions.
6662 (dwarf2_attach_fields_to_type): Call add_variant_property.
6663 (read_structure_type): Don't handle DW_TAG_variant_part.
6664 (handle_variant_part, handle_variant): New functions.
6665 (handle_struct_member_die): Use them.
6666 (process_structure_scope): Don't handle variant parts.
6667 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6668 (struct discriminant_info): Remove.
6669 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6670 (struct main_type) <flag_discriminated_union>: Remove.
6671 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6672 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6673 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6674 Update.
6675 * valops.c (value_union_variant): Remove.
6676 * value.h (value_union_variant): Don't declare.
6677
6678 2020-04-24 Tom Tromey <tromey@adacore.com>
6679
6680 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6681 (ada_value_primitive_packed_val): Update.
6682 * ada-valprint.c (ada_value_print_1): Update.
6683 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6684 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6685 just an address. Use evaluate_for_locexpr_baton.
6686 (dwarf2_evaluate_property): Update.
6687 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6688 array_view.
6689 * findvar.c (default_read_var_value): Update.
6690 * gdbtypes.c (compute_variant_fields_inner)
6691 (resolve_dynamic_type_internal): Update.
6692 (resolve_dynamic_type): Change type of valaddr parameter.
6693 * gdbtypes.h (resolve_dynamic_type): Update.
6694 * valarith.c (value_subscripted_rvalue): Update.
6695 * value.c (value_from_contents_and_address): Update.
6696
6697 2020-04-24 Tom Tromey <tromey@adacore.com>
6698
6699 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6700 "push_initial_value" parameter.
6701 (dwarf2_evaluate_property): Likewise.
6702 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6703
6704 2020-04-24 Tom Tromey <tromey@adacore.com>
6705
6706 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6707 (variant::matches, compute_variant_fields_recurse)
6708 (compute_variant_fields_inner, compute_variant_fields): New
6709 functions.
6710 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6711 Use resolved_type after type is made.
6712 (operator==): Add new cases.
6713 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6714 (struct discriminant_range, struct variant, struct variant_part):
6715 New.
6716 (union dynamic_prop_data) <variant_parts, original_type>: New
6717 members.
6718 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6719 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6720 constants.
6721 * value.c (unpack_bits_as_long): Now public.
6722 * value.h (unpack_bits_as_long): Declare.
6723
6724 2020-04-24 Tom Tromey <tromey@adacore.com>
6725
6726 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6727 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6728
6729 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6730
6731 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6732
6733 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6734
6735 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6736 (remove_fork_catchpoint, post_startup_inferior)
6737 (post_attach): Move...
6738 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6739 (remove_fork_catchpoint, post_startup_inferior)
6740 (post_attach): ...here.
6741 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6742 (remove_fork_catchpoint, post_startup_inferior)
6743 (post_attach): Move...
6744 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6745 (remove_fork_catchpoint, post_startup_inferior)
6746 (post_attach): ...here.
6747
6748 2020-04-24 Tom Tromey <tromey@adacore.com>
6749
6750 * nat/windows-nat.h (struct windows_thread_info)
6751 <pc_adjusted>: New member.
6752 * windows-nat.c (windows_fetch_one_register): Check
6753 pc_adjusted.
6754 (windows_nat_target::get_windows_debug_event)
6755 (windows_nat_target::wait): Set pc_adjusted.
6756
6757 2020-04-24 Tom de Vries <tdevries@suse.de>
6758
6759 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6760 Run gdb-add-index inside temp dir.
6761
6762 2020-04-23 Tom Tromey <tromey@adacore.com>
6763
6764 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6765 in loop.
6766
6767 2020-04-23 Luis Machado <luis.machado@linaro.org>
6768
6769 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6770 get_frame_register instead of gdbarch_unwind_pc.
6771
6772 2020-04-23 Tom de Vries <tdevries@suse.de>
6773
6774 * symtab.c (lookup_global_symbol): Prefer def over decl.
6775
6776 2020-04-23 Tom de Vries <tdevries@suse.de>
6777
6778 PR symtab/25807
6779 * block.c (best_symbol, better_symbol): Promote to external.
6780 * block.h (best_symbol, better_symbol): Declare.
6781 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6782 decl.
6783
6784 2020-04-23 Tom Tromey <tromey@adacore.com>
6785
6786 PR ada/25837:
6787 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6788 "const char *", not a "const std::string &".
6789 <name_and_matcher::operator==>: Update.
6790 * unittests/lookup_name_info-selftests.c: Change type of
6791 "result".
6792
6793 2020-04-23 Tom Tromey <tom@tromey.com>
6794
6795 * inferior.h (iterate_over_inferiors): Don't declare.
6796 * inferior.c (iterate_over_inferiors): Remove.
6797 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6798 Remove.
6799 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6800 use iterate_over_inferiors.
6801 (darwin_resume_inferior_it)
6802 (struct resume_inferior_threads_param)
6803 (darwin_resume_inferior_threads_it): Remove.
6804 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6805
6806 2020-04-23 Tom de Vries <tdevries@suse.de>
6807
6808 * blockframe.c (find_pc_partial_function): Use
6809 find_pc_sect_compunit_symtab rather than
6810 objfile->sf->qf->find_pc_sect_compunit_symtab.
6811
6812 2020-04-22 Tom de Vries <tdevries@suse.de>
6813
6814 PR symtab/25764
6815 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6816 in psymtabs.
6817
6818 2020-04-22 Tom de Vries <tdevries@suse.de>
6819
6820 PR symtab/25801
6821 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6822 symtabs.
6823
6824 2020-04-22 Tom de Vries <tdevries@suse.de>
6825
6826 PR symtab/25700
6827 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6828 CU if already created.
6829
6830 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6831
6832 * infrun.c (displaced_step_fixup): Switch to the event_thread
6833 before calling displaced_step_restore, not after.
6834
6835 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6836
6837 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6838 its inferior is not recorded by us.
6839 (record_btrace_target_open): Replace call to
6840 all_non_exited_threads () with call to current_inferior
6841 ()->non_exited_threads ().
6842 (record_btrace_target::stop_recording): Likewise.
6843 (record_btrace_target::close): Likewise.
6844 (record_btrace_target::wait): Likewise.
6845 (record_btrace_target::record_stop_replaying): Likewise.
6846
6847 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6848
6849 * btrace.c (btrace_enable): Throw an error on double enables and
6850 when enabling recording fails.
6851 (btrace_disable): Throw an error if the thread is not recorded.
6852
6853 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6854
6855 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6856 request if we do not have a thread_info.
6857
6858 2020-04-21 Tom de Vries <tdevries@suse.de>
6859
6860 PR gdb/25471
6861 * thread.c
6862 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6863 exception in get_frame_id.
6864
6865 2020-04-20 Tom Tromey <tromey@adacore.com>
6866
6867 * python/python.c (struct gdbpy_event): Mark move constructor as
6868 noexcept.
6869 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6870 constructor as noexcept.
6871 * completer.h (struct completion_result): Mark move constructor as
6872 noexcept.
6873 * completer.c (completion_result::completion_result): Use
6874 initialization style. Don't call reset_match_list.
6875
6876 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6877
6878 * MAINTAINERS (Write After Approval): Add myself.
6879
6880 2020-04-18 Tom Tromey <tom@tromey.com>
6881
6882 * windows-tdep.c (init_w32_command_list)
6883 (w32_prefix_command_valid): Restore.
6884 (_initialize_windows_tdep): Call init_w32_command_list.
6885
6886 2020-04-18 Tom Tromey <tom@tromey.com>
6887
6888 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6889 * value.c (value_fn_field): Update.
6890 * valops.c (find_function_in_inferior)
6891 (value_allocate_space_in_inferior): Update.
6892 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6893 Update.
6894 * tui/tui-source.c (tui_source_window::set_contents): Update.
6895 * symtab.c (lookup_global_or_static_symbol)
6896 (find_function_start_sal_1, skip_prologue_sal)
6897 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6898 * symmisc.c (dump_msymbols, dump_symtab_1)
6899 (maintenance_print_one_line_table): Update.
6900 * symfile.c (init_entry_point_info, section_is_mapped)
6901 (list_overlays_command, simple_read_overlay_table)
6902 (simple_overlay_update_1): Update.
6903 * stap-probe.c (handle_stap_probe): Update.
6904 * stabsread.c (dbx_init_float_type, define_symbol)
6905 (read_one_struct_field, read_enum_type, read_range_type): Update.
6906 * source.c (info_line_command): Update.
6907 * python/python.c (gdbpy_source_objfile_script)
6908 (gdbpy_execute_objfile_script): Update.
6909 * python/py-type.c (save_objfile_types): Update.
6910 * python/py-objfile.c (py_free_objfile): Update.
6911 * python/py-inferior.c (python_new_objfile): Update.
6912 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6913 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6914 (maintenance_check_psymtabs): Update.
6915 * printcmd.c (info_address_command): Update.
6916 * objfiles.h (struct objfile) <arch>: New method, from
6917 get_objfile_arch.
6918 (get_objfile_arch): Don't declare.
6919 * objfiles.c (get_objfile_arch): Remove.
6920 (filter_overlapping_sections): Update.
6921 * minsyms.c (msymbol_is_function): Update.
6922 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6923 (output_nondebug_symbol): Update.
6924 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6925 (mdebug_expand_psymtab): Update.
6926 * machoread.c (macho_add_oso_symfile): Update.
6927 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6928 Update.
6929 * linux-fork.c (checkpoint_command): Update.
6930 * linespec.c (convert_linespec_to_sals): Update.
6931 * jit.c (finalize_symtab): Update.
6932 * infrun.c (insert_exception_resume_from_probe): Update.
6933 * ia64-tdep.c (ia64_find_unwind_table): Update.
6934 * hppa-tdep.c (internalize_unwinds): Update.
6935 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6936 Update.
6937 * gcore.c (call_target_sbrk): Update.
6938 * elfread.c (record_minimal_symbol, elf_symtab_read)
6939 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6940 (elf_gnu_ifunc_resolve_by_got): Update.
6941 * dwarf2/read.c (create_addrmap_from_index)
6942 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6943 (read_debug_names_from_section)
6944 (process_psymtab_comp_unit_reader, add_partial_symbol)
6945 (add_partial_subprogram, process_full_comp_unit)
6946 (read_file_scope, read_func_scope, read_lexical_block_scope)
6947 (read_call_site_scope, dwarf2_ranges_read)
6948 (dwarf2_record_block_ranges, dwarf2_add_field)
6949 (mark_common_block_symbol_computed, read_tag_pointer_type)
6950 (read_tag_string_type, dwarf2_init_float_type)
6951 (dwarf2_init_complex_target_type, read_base_type)
6952 (partial_die_info::read, partial_die_info::read)
6953 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6954 (dwarf2_fetch_die_loc_sect_off): Update.
6955 * dwarf2/loc.c (dwarf2_find_location_expression)
6956 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6957 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6958 (dwarf2_loc_desc_get_symbol_read_needs)
6959 (locexpr_describe_location_piece, locexpr_describe_location_1)
6960 (loclist_describe_location): Update.
6961 * dwarf2/index-write.c (write_debug_names): Update.
6962 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6963 * dtrace-probe.c (dtrace_process_dof): Update.
6964 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6965 (process_one_symbol): Update.
6966 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6967 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6968 (coff_read_enum_type): Update.
6969 * cli/cli-cmds.c (edit_command, list_command): Update.
6970 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6971 * breakpoint.c (create_overlay_event_breakpoint)
6972 (create_longjmp_master_breakpoint)
6973 (create_std_terminate_master_breakpoint)
6974 (create_exception_master_breakpoint, get_sal_arch): Update.
6975 * block.c (block_gdbarch): Update.
6976 * annotate.c (annotate_source_line): Update.
6977
6978 2020-04-17 Tom Tromey <tromey@adacore.com>
6979
6980 * auto-load.c (show_auto_load_cmd): Remove.
6981 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6982 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6983 (maintenance_print_arc_command): Remove.
6984 * tui/tui-win.c (tui_command): Remove.
6985 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6986 * tui/tui-layout.c (tui_layout_command): Remove.
6987 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6988 * python/python.c (user_set_python, user_show_python): Remove.
6989 (_initialize_python): Use add_basic_prefix_cmd,
6990 add_show_prefix_cmd.
6991 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6992 (install_gdb_commands): Use add_basic_prefix_cmd,
6993 add_show_prefix_cmd.
6994 (info_guile_command): Remove.
6995 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6996 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6997 add_show_prefix_cmd.
6998 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6999 Remove do_set and do_show parameters.
7000 * cli/cli-style.c (set_style, show_style): Remove.
7001 (_initialize_cli_style): Use add_basic_prefix_cmd,
7002 add_show_prefix_cmd.
7003 (cli_style_option::add_setshow_commands): Remove do_set and
7004 do_show parameters.
7005 (cli_style_option::add_setshow_commands): Use
7006 add_basic_prefix_cmd, add_show_prefix_cmd.
7007 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7008 (set_style_name): Remove.
7009 * cli/cli-dump.c (dump_command, append_command): Remove.
7010 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7011 (tekhex_dump_command, binary_dump_command)
7012 (binary_append_command): Remove.
7013 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7014 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7015 (init_w32_command_list): Remove; move into ...
7016 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7017 * valprint.c (set_print, show_print, set_print_raw)
7018 (show_print_raw): Remove.
7019 (_initialize_valprint): Use add_basic_prefix_cmd,
7020 add_show_prefix_cmd.
7021 * typeprint.c (set_print_type, show_print_type): Remove.
7022 (_initialize_typeprint): Use add_basic_prefix_cmd,
7023 add_show_prefix_cmd.
7024 * record.c (set_record_command, show_record_command): Remove.
7025 (_initialize_record): Use add_basic_prefix_cmd,
7026 add_show_prefix_cmd.
7027 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7028 add_show_prefix_cmd.
7029 (info_command, show_command, set_debug, show_debug): Remove.
7030 * top.h (set_history, show_history): Don't declare.
7031 * top.c (set_history, show_history): Remove.
7032 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7033 (unset_tdesc_cmd): Remove.
7034 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7035 add_show_prefix_cmd.
7036 * symtab.c (info_module_command): Remove.
7037 (_initialize_symtab): Use add_basic_prefix_cmd.
7038 * symfile.c (overlay_command): Remove.
7039 (_initialize_symfile): Use add_basic_prefix_cmd.
7040 * sparc64-tdep.c (info_adi_command): Remove.
7041 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7042 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7043 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7044 add_show_prefix_cmd.
7045 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7046 (_initialize_serial): Use add_basic_prefix_cmd,
7047 add_show_prefix_cmd.
7048 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7049 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7050 add_show_prefix_cmd.
7051 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7052 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7053 add_show_prefix_cmd.
7054 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7055 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7056 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7057 add_show_prefix_cmd.
7058 * remote.c (remote_command, set_remote_cmd): Remove.
7059 (_initialize_remote): Use add_basic_prefix_cmd.
7060 * record-full.c (set_record_full_command)
7061 (show_record_full_command): Remove.
7062 (_initialize_record_full): Use add_basic_prefix_cmd,
7063 add_show_prefix_cmd.
7064 * record-btrace.c (cmd_set_record_btrace)
7065 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7066 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7067 (cmd_show_record_btrace_pt): Remove.
7068 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7069 add_show_prefix_cmd.
7070 * ravenscar-thread.c (set_ravenscar_command)
7071 (show_ravenscar_command): Remove.
7072 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7073 add_show_prefix_cmd.
7074 * mips-tdep.c (show_mips_command, set_mips_command)
7075 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7076 add_show_prefix_cmd.
7077 * maint.c (maintenance_command, maintenance_info_command)
7078 (maintenance_check_command, maintenance_print_command)
7079 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7080 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7081 add_show_prefix_cmd.
7082 (show_per_command_cmd): Remove.
7083 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7084 Remove.
7085 (maintenance_show_test_settings_cmd): Remove.
7086 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7087 add_show_prefix_cmd.
7088 * maint-test-options.c (maintenance_test_options_command):
7089 Remove.
7090 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7091 * macrocmd.c (macro_command): Remove
7092 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7093 * language.c (set_check, show_check): Remove.
7094 (_initialize_language): Use add_basic_prefix_cmd,
7095 add_show_prefix_cmd.
7096 * infcmd.c (unset_command): Remove.
7097 (_initialize_infcmd): Use add_basic_prefix_cmd.
7098 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7099 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7100 add_show_prefix_cmd.
7101 * go32-nat.c (go32_info_dos_command): Remove.
7102 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7103 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7104 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7105 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7106 (_initialize_frame): Use add_basic_prefix_cmd,
7107 add_show_prefix_cmd.
7108 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7109 (_initialize_dcache): Use add_basic_prefix_cmd,
7110 add_show_prefix_cmd.
7111 * cp-support.c (maint_cplus_command): Remove.
7112 (_initialize_cp_support): Use add_basic_prefix_cmd.
7113 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7114 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7115 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7116 add_basic_prefix_cmd, add_show_prefix_cmd.
7117 * breakpoint.c (save_command): Remove.
7118 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7119 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7120 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7121 add_show_prefix_cmd.
7122 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7123 (set_ada_command, show_ada_command): Remove.
7124 (_initialize_ada_language): Use add_basic_prefix_cmd,
7125 add_show_prefix_cmd.
7126 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7127
7128 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7129
7130 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7131 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7132
7133 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7134
7135 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7136 warning messages.
7137
7138 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7139
7140 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7141 import table is not at beginning of .idata section.
7142
7143 2020-04-16 Pedro Alves <palves@redhat.com>
7144
7145 * inferior.c (delete_inferior): Use delete operator directly
7146 instead of delete_program_space.
7147 * progspace.c (add_program_space): New, factored out from
7148 program_space::program_space.
7149 (remove_program_space): New, factored out from
7150 delete_program_space.
7151 (program_space::program_space): Remove intro comment. Rewrite.
7152 (program_space::~program_space): Remove intro comment. Call
7153 remove_program_space.
7154 (delete_program_space): Delete.
7155 * progspace.h (program_space::program_space): Make explicit. Move
7156 intro comment here, adjusted.
7157 (program_space::~program_space): Move intro comment here,
7158 adjusted.
7159 (delete_program_space): Remove.
7160
7161 2020-04-16 Tom Tromey <tromey@adacore.com>
7162
7163 * windows-nat.c (windows_nat::handle_access_violation): New
7164 function.
7165 * nat/windows-nat.h (handle_access_violation): Declare.
7166 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7167 windows-nat.c. Call handle_access_violation.
7168
7169 2020-04-16 Tom de Vries <tdevries@suse.de>
7170
7171 PR symtab/25791
7172 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7173 CUs without psymtab.
7174
7175 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7176
7177 * python/python.c (do_start_initialization): Don't call
7178 PyEval_InitThreads for Python 3.9 and beyond.
7179
7180 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7181
7182 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7183 thread functions.
7184 (obsd_nat_target::wait): Likewise.
7185
7186 2020-04-15 Tom Tromey <tromey@adacore.com>
7187
7188 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7189 (DEBUG_EXCEPT): Use debug_printf.
7190
7191 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7192
7193 * completer.c (class completion_tracker::completion_hash_entry)
7194 <hash_name>: New member function.
7195 (completion_tracker::discard_completions): New callback to hash a
7196 completion_hash_entry, pass this to htab_create_alloc.
7197
7198 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7199
7200 * windows-nat.c (windows_make_so): Warn rather than stopping with
7201 an error if realpath() fails.
7202
7203 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7204
7205 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7206 (nbsd_nat_target::info_proc): Add do_status.
7207
7208 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7209 Tom de Vries <tdevries@suse.de>
7210
7211 PR symtab/25718
7212 * psympriv.h (struct partial_symtab::read_symtab)
7213 (struct partial_symtab::expand_psymtab)
7214 (struct partial_symtab::read_dependencies): Update comments.
7215 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7216 read_symtab for includer.
7217 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7218 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7219 (struct dwarf2_include_psymtab::m_readin): Remove.
7220 (struct dwarf2_include_psymtab::includer): New member function.
7221 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7222
7223 2020-04-14 Tom de Vries <tdevries@suse.de>
7224
7225 PR symtab/25720
7226 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7227 with NULL symbol_matcher and lookup_name.
7228 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7229 and lookup_name.
7230 * dwarf2/read.c (dw2_expand_symtabs_matching)
7231 (dw2_debug_names_expand_symtabs_matching): Same.
7232 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7233 Make lookup_name a pointer. Update comment.
7234 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7235 lookup_name being a pointer.
7236 * symfile.c (expand_symtabs_matching): Same.
7237 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7238 * linespec.c (iterate_over_all_matching_symtabs): Same.
7239
7240 2020-04-13 Tom Tromey <tom@tromey.com>
7241
7242 * run-on-main-thread.c: Update include.
7243 * unittests/main-thread-selftests.c: Update include.
7244 * tui/tui-win.c: Update include.
7245 * tui/tui-io.c: Update include.
7246 * tui/tui-interp.c: Update include.
7247 * tui/tui-hooks.c: Update include.
7248 * top.h: Update include.
7249 * top.c: Update include.
7250 * ser-base.c: Update include.
7251 * remote.c: Update include.
7252 * remote-notif.c: Update include.
7253 * remote-fileio.c: Update include.
7254 * record-full.c: Update include.
7255 * record-btrace.c: Update include.
7256 * python/python.c: Update include.
7257 * posix-hdep.c: Update include.
7258 * mingw-hdep.c: Update include.
7259 * mi/mi-main.c: Update include.
7260 * mi/mi-interp.c: Update include.
7261 * main.c: Update include.
7262 * linux-nat.c: Update include.
7263 * interps.c: Update include.
7264 * infrun.c: Update include.
7265 * inf-loop.c: Update include.
7266 * event-top.c: Update include.
7267 * event-loop.c: Move to ../gdbsupport/.
7268 * event-loop.h: Move to ../gdbsupport/.
7269 * async-event.h: Update include.
7270 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7271
7272 2020-04-13 Tom Tromey <tom@tromey.com>
7273
7274 * tui/tui-win.c: Include async-event.h.
7275 * remote.c: Include async-event.h.
7276 * remote-notif.c: Include async-event.h.
7277 * record-full.c: Include async-event.h.
7278 * record-btrace.c: Include async-event.h.
7279 * infrun.c: Include async-event.h.
7280 * event-top.c: Include async-event.h.
7281 * event-loop.h: Move some declarations to async-event.h.
7282 * event-loop.c: Don't include ser-event.h or top.h. Move some
7283 code to async-event.c.
7284 * async-event.h: New file.
7285 * async-event.c: New file.
7286 * Makefile.in (COMMON_SFILES): Add async-event.c.
7287 (HFILES_NO_SRCDIR): Add async-event.h.
7288
7289 2020-04-13 Tom Tromey <tom@tromey.com>
7290
7291 * utils.c (flush_streams): New function.
7292 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7293
7294 2020-04-13 Tom Tromey <tom@tromey.com>
7295
7296 * event-loop.c (handle_file_event): Use warning, not
7297 printf_unfiltered.
7298
7299 2020-04-13 Tom Tromey <tom@tromey.com>
7300
7301 * event-loop.c: Include <chrono>.
7302
7303 2020-04-13 Tom Tromey <tom@tromey.com>
7304
7305 * gdb_select.h: Move to ../gdbsupport/.
7306 * event-loop.c: Update include path.
7307 * top.c: Update include path.
7308 * ser-base.c: Update include path.
7309 * ui-file.c: Update include path.
7310 * ser-tcp.c: Update include path.
7311 * guile/scm-ports.c: Update include path.
7312 * posix-hdep.c: Update include path.
7313 * ser-unix.c: Update include path.
7314 * gdb_usleep.c: Update include path.
7315 * mingw-hdep.c: Update include path.
7316 * inflow.c: Update include path.
7317 * infrun.c: Update include path.
7318 * event-top.c: Update include path.
7319
7320 2020-04-13 Tom Tromey <tom@tromey.com>
7321
7322 * configure: Rebuild.
7323 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7324
7325 2020-04-13 Tom Tromey <tom@tromey.com>
7326
7327 * event-loop.h (start_event_loop): Don't declare.
7328 * event-loop.c (start_event_loop): Move...
7329 * main.c (start_event_loop): ...here. Now static.
7330
7331 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7332
7333 * MAINTAINERS: Update my email address.
7334
7335 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7336
7337 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7338 IP_ALL.
7339
7340 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7341
7342 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7343 (nbsd_nat_target::info_proc): Add do_cmdline.
7344
7345 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7346
7347 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7348 (nbsd_nat_target::info_proc): Add do_cwd.
7349
7350 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7351
7352 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7353
7354 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7355
7356 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7357 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7358 (nbsd_nat_target::info_proc): New functions.
7359 * nbsd-nat.c (kinfo_get_vmmap): New function.
7360 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7361 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7362 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7363 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7364 functions.
7365 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7366 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7367 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7368 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7369 (KINFO_VME_FLAG_GROWS_DOWN): New.
7370
7371 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7372
7373 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7374 bit shift.
7375
7376 2020-04-10 Tom Tromey <tromey@adacore.com>
7377
7378 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7379
7380 2020-04-10 Tom Tromey <tromey@adacore.com>
7381
7382 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7383 separate debug files.
7384
7385 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7386
7387 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7388 Move to...
7389 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7390 ... here.
7391 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7392 Check for STATUS_WX86_BREAKPOINT.
7393 (windows_nat_target::wait): Same.
7394
7395 2020-04-10 Tom de Vries <tdevries@suse.de>
7396
7397 PR cli/25808
7398 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7399
7400 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7401
7402 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7403 (Write After Approval): Remove Tom de Vries.
7404
7405 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7406
7407 revert partially:
7408 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7409
7410 * buildsym.c (record_line): Fix undefined behavior and preserve
7411 lines at eof.
7412
7413 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7414
7415 * auxv.h (svr4_auxv_parse): New.
7416 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7417 and generic_auxv_parse.
7418 (svr4_auxv_parse): Add.
7419 * obsd-tdep.c: Include "auxv.h".
7420 (obsd_auxv_parse): Remove.
7421 (obsd_init_abi): Remove comment.
7422 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7423 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7424 * nbsd-tdep.c: Include "auxv.h".
7425 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7426
7427 2020-04-08 Tom Tromey <tromey@adacore.com>
7428
7429 * nat/windows-nat.h (last_wait_event): Don't declare.
7430 (wait_for_debug_event): Update comment.
7431 * nat/windows-nat.c (last_wait_event): Now static.
7432
7433 2020-04-08 Tom Tromey <tromey@adacore.com>
7434
7435 * windows-nat.c (wait_for_debug_event): Move to
7436 nat/windows-nat.c.
7437 * nat/windows-nat.h (wait_for_debug_event): Declare.
7438 * nat/windows-nat.c (wait_for_debug_event): Move from
7439 windows-nat.c. No longer static.
7440
7441 2020-04-08 Tom Tromey <tromey@adacore.com>
7442
7443 * windows-nat.c (get_windows_debug_event): Use
7444 fetch_pending_stop.
7445 * nat/windows-nat.h (fetch_pending_stop): Declare.
7446 * nat/windows-nat.c (fetch_pending_stop): New function.
7447
7448 2020-04-08 Tom Tromey <tromey@adacore.com>
7449
7450 * windows-nat.c (windows_continue): Use matching_pending_stop and
7451 continue_last_debug_event.
7452 * nat/windows-nat.h (matching_pending_stop)
7453 (continue_last_debug_event): Declare.
7454 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7455 (matching_pending_stop, continue_last_debug_event): New
7456 functions.
7457
7458 2020-04-08 Tom Tromey <tromey@adacore.com>
7459
7460 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7461 (handle_exception_result): Move to nat/windows-nat.h.
7462 (DEBUG_EXCEPTION_SIMPLE): Remove.
7463 (windows_nat::handle_ms_vc_exception): New function.
7464 (handle_exception): Move to nat/windows-nat.c.
7465 (get_windows_debug_event): Update.
7466 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7467 nat/windows-nat.c.
7468 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7469 (handle_exception_result): Move from windows-nat.c.
7470 (handle_exception): Declare.
7471 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7472 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7473 windows-nat.c.
7474
7475 2020-04-08 Tom Tromey <tromey@adacore.com>
7476
7477 * windows-nat.c (exception_count, event_count): Remove.
7478 (handle_exception, get_windows_debug_event)
7479 (do_initial_windows_stuff): Update.
7480
7481 2020-04-08 Tom Tromey <tromey@adacore.com>
7482
7483 * windows-nat.c (windows_nat::handle_load_dll)
7484 (windows_nat::handle_unload_dll): Rename. No longer static.
7485 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7486 Declare.
7487
7488 2020-04-08 Tom Tromey <tromey@adacore.com>
7489
7490 * complaints.h (stop_whining): Declare at top-level.
7491 (complaint): Don't declare stop_whining.
7492
7493 2020-04-08 Tom Tromey <tromey@adacore.com>
7494
7495 * windows-nat.c (windows_nat::handle_output_debug_string):
7496 Rename. No longer static.
7497 * nat/windows-nat.h (handle_output_debug_string): Declare.
7498
7499 2020-04-08 Tom Tromey <tromey@adacore.com>
7500
7501 * windows-nat.c (current_process_handle, current_process_id)
7502 (main_thread_id, last_sig, current_event, last_wait_event)
7503 (current_windows_thread, desired_stop_thread_id, pending_stops)
7504 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7505 (display_selectors, fake_create_process)
7506 (get_windows_debug_event): Update.
7507 * nat/windows-nat.h (current_process_handle, current_process_id)
7508 (main_thread_id, last_sig, current_event, last_wait_event)
7509 (current_windows_thread, desired_stop_thread_id, pending_stops)
7510 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7511 * nat/windows-nat.c (current_process_handle, current_process_id)
7512 (main_thread_id, last_sig, current_event, last_wait_event)
7513 (current_windows_thread, desired_stop_thread_id, pending_stops)
7514 (siginfo_er): New globals. Move from windows-nat.c.
7515
7516 2020-04-08 Tom Tromey <tromey@adacore.com>
7517
7518 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7519 (handle_load_dll): Update.
7520 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7521
7522 2020-04-08 Tom Tromey <tromey@adacore.com>
7523
7524 * windows-nat.c (enum thread_disposition_type): Move to
7525 nat/windows-nat.h.
7526 (windows_nat::thread_rec): Rename from thread_rec. No longer
7527 static.
7528 (windows_add_thread, windows_nat_target::fetch_registers)
7529 (windows_nat_target::store_registers, handle_exception)
7530 (windows_nat_target::resume, get_windows_debug_event)
7531 (windows_nat_target::get_tib_address)
7532 (windows_nat_target::thread_name)
7533 (windows_nat_target::thread_alive): Update.
7534 * nat/windows-nat.h (enum thread_disposition_type): Move from
7535 windows-nat.c.
7536 (thread_rec): Declare.
7537
7538 2020-04-08 Tom Tromey <tromey@adacore.com>
7539
7540 * windows-nat.c: Add "using namespace".
7541 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7542 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7543
7544 2020-04-08 Tom Tromey <tromey@adacore.com>
7545
7546 * nat/windows-nat.h (struct windows_thread_info): Declare
7547 destructor.
7548 * nat/windows-nat.c (~windows_thread_info): New.
7549
7550 2020-04-08 Tom Tromey <tromey@adacore.com>
7551
7552 PR gdb/22992
7553 * windows-nat.c (current_event): Update comment.
7554 (last_wait_event, desired_stop_thread_id): New globals.
7555 (struct pending_stop): New.
7556 (pending_stops): New global.
7557 (windows_nat_target) <stopped_by_sw_breakpoint>
7558 <supports_stopped_by_sw_breakpoint>: New methods.
7559 (windows_fetch_one_register): Add assertions. Adjust PC.
7560 (windows_continue): Handle pending stops. Suspend other threads
7561 when stepping. Use last_wait_event
7562 (wait_for_debug_event): New function.
7563 (get_windows_debug_event): Use wait_for_debug_event. Handle
7564 pending stops. Queue spurious stops.
7565 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7566 (windows_nat_target::kill): Use wait_for_debug_event.
7567 * nat/windows-nat.h (struct windows_thread_info)
7568 <stopped_at_software_breakpoint>: New field.
7569 * nat/windows-nat.c (windows_thread_info::resume): Clear
7570 stopped_at_software_breakpoint.
7571
7572 2020-04-08 Tom Tromey <tromey@adacore.com>
7573
7574 * windows-nat.c (enum thread_disposition_type): New.
7575 (thread_rec): Replace "get_context" parameter with "disposition";
7576 change type.
7577 (windows_add_thread, windows_nat_target::fetch_registers)
7578 (windows_nat_target::store_registers, handle_exception)
7579 (windows_nat_target::resume, get_windows_debug_event)
7580 (windows_nat_target::get_tib_address)
7581 (windows_nat_target::thread_name)
7582 (windows_nat_target::thread_alive): Update.
7583
7584 2020-04-08 Tom Tromey <tromey@adacore.com>
7585
7586 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7587 (windows_continue): Use windows_continue::resume.
7588 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7589 resume>: Declare new methods.
7590 * nat/windows-nat.c: New file.
7591 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7592
7593 2020-04-08 Tom Tromey <tromey@adacore.com>
7594
7595 * windows-nat.c (windows_add_thread, windows_delete_thread)
7596 (windows_nat_target::fetch_registers)
7597 (windows_nat_target::store_registers, fake_create_process)
7598 (windows_nat_target::resume, windows_nat_target::resume)
7599 (get_windows_debug_event, windows_nat_target::wait)
7600 (windows_nat_target::pid_to_str)
7601 (windows_nat_target::get_tib_address)
7602 (windows_nat_target::get_ada_task_ptid)
7603 (windows_nat_target::thread_name)
7604 (windows_nat_target::thread_alive): Use lwp, not tid.
7605
7606 2020-04-08 Tom Tromey <tromey@adacore.com>
7607
7608 * windows-nat.c (handle_exception)
7609 (windows_nat_target::thread_name): Update.
7610 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7611 <name>: Now unique_xmalloc_ptr.
7612
7613 2020-04-08 Tom Tromey <tromey@adacore.com>
7614
7615 * windows-nat.c (thread_rec)
7616 (windows_nat_target::fetch_registers): Update.
7617 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7618 Update comment.
7619 <debug_registers_changed, reload_context>: Now bool.
7620
7621 2020-04-08 Tom Tromey <tromey@adacore.com>
7622
7623 * windows-nat.c (windows_add_thread): Use new.
7624 (windows_init_thread_list, windows_delete_thread): Use delete.
7625 (get_windows_debug_event): Update.
7626 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7627 destructor, and initializers.
7628
7629 2020-04-08 Tom Tromey <tromey@adacore.com>
7630
7631 * windows-nat.c (struct windows_thread_info): Remove.
7632 * nat/windows-nat.h: New file.
7633
7634 2020-04-08 Tom Tromey <tromey@adacore.com>
7635
7636 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7637 (thread_rec, windows_add_thread, windows_delete_thread)
7638 (windows_continue): Update.
7639
7640 2020-04-08 Tom Tromey <tromey@adacore.com>
7641
7642 * windows-nat.c (struct windows_thread_info): Remove typedef.
7643 (thread_head): Remove.
7644 (thread_list): New global.
7645 (thread_rec, windows_add_thread, windows_init_thread_list)
7646 (windows_delete_thread, windows_continue): Update.
7647
7648 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7649
7650 * windows-tdep.h (windows_init_abi): Add comment.
7651 (cygwin_init_abi): New declaration.
7652 * windows-tdep.c: Split signal enumeration in two, one for
7653 Windows and one for Cygwin.
7654 (windows_gdb_signal_to_target): Only deal with signal of the
7655 Windows OS ABI.
7656 (cygwin_gdb_signal_to_target): New function.
7657 (windows_init_abi): Rename to windows_init_abi_common, don't set
7658 gdb_signal_to_target gdbarch method. Add new new function with
7659 this name.
7660 (cygwin_init_abi): New function.
7661 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7662 comment. Don't call windows_init_abi.
7663 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7664 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7665 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7666 i386_windows_init_abi_common, don't call windows_init_abi. Add
7667 a new function of this name.
7668 (i386_cygwin_init_abi): New function.
7669 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7670 OS ABI Cygwin.
7671
7672 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7673
7674 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7675 parameter.c.
7676 (dwarf2_read_gdb_index): Update.
7677
7678 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7679
7680 * nbsd-tdep.c: Include "objfiles.h".
7681 (nbsd_skip_solib_resolver): New.
7682 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7683
7684 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7685
7686 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7687 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7688 with DW_LLE_base_addressx are being emitted in DWARFv5.
7689 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7690 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7691 unsigned integer.
7692
7693 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7694
7695 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7696 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7697 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7698 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7699 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7700 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7701 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7702
7703
7704 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7705
7706 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7707 (read_loclist_index): New function definition.
7708 (lookup_loclist_base): New function definition.
7709 (read_loclist_header): New function definition.
7710 (dwarf2_cu): Add loclist_base and loclist_header field.
7711 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7712 (read_full_die_1): Read the value of DW_AT_loclists_base.
7713 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7714 (read_attribute_value): Handle DW_FORM_loclistx.
7715 (skip_one_die): Handle DW_FORM_loclistx.
7716 (loclist_header): New structure declaration.
7717 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7718
7719 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7720
7721 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7722 constructor. Remove `addr` parameter from other constructor and
7723 add `per_cu` parameter.
7724 * dwarf2/read.c (create_partial_symtab): Update.
7725
7726 2020-04-07 Tom de Vries <tdevries@suse.de>
7727
7728 PR symtab/25796
7729 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7730 (partial_die_info::fixup): Inherit has_const_value.
7731
7732 2020-04-07 Tom de Vries <tdevries@suse.de>
7733
7734 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7735 symbols without address.
7736
7737 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7738
7739 * nbsd-nat.h (struct thread_info): Add forward declaration.
7740 (nbsd_nat_target::thread_alive): Add.
7741 (nbsd_nat_target::thread_name): Likewise.
7742 (nbsd_nat_target::update_thread_list): Likewise.
7743 (update_thread_list::post_attach): Likewise.
7744 (post_attach::pid_to_str): Likewise.
7745 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7746 (nbsd_thread_lister): Add.
7747 (nbsd_nat_target::thread_alive): Likewise.
7748 (nbsd_nat_target::thread_name): Likewise.
7749 (nbsd_add_threads): Likewise.
7750 (update_thread_list::post_attach): Likewise.
7751 (nbsd_nat_target::update_thread_list): Likewise.
7752 (post_attach::pid_to_str): Likewise.
7753
7754 2020-04-06 Tom Tromey <tromey@adacore.com>
7755
7756 * ada-valprint.c (print_variant_part): Extract the variant field.
7757 (print_field_values): Use the field as the outer value when
7758 recursing.
7759
7760 2020-04-06 Tom Tromey <tromey@adacore.com>
7761
7762 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7763 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7764 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7765 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7766 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7767
7768 2020-04-06 Tom Tromey <tromey@adacore.com>
7769
7770 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7771 TYPE_CODE_ERROR.
7772
7773 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7774
7775 * nbsd-tdep.c: Include "gdbarch.h".
7776 Define enum with NetBSD signal numbers.
7777 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7778 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7779 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7780 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7781 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7782 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7783 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7784 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7785 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7786 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7787 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7788 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7789
7790 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7791
7792 PR gdb/25325
7793 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7794
7795 2020-04-03 Tom Tromey <tromey@adacore.com>
7796
7797 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7798 Read constant block.
7799
7800 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7801
7802 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7803 (gdb_bfd_get_full_section_contents): New declaration.
7804 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7805 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7806 gdb_bfd_get_full_section_contents.
7807
7808 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7809
7810 * exec.c (build_section_table): Replace internal_error with
7811 gdb_assert.
7812 (section_table_xfer_memory_partial): Likewise.
7813 * mdebugread.c (parse_partial_symbols): Likewise.
7814 * psymtab.c (lookup_partial_symbol): Likewise.
7815 * utils.c (wrap_here): Likewise.
7816
7817 2020-04-02 Tom Tromey <tromey@adacore.com>
7818
7819 * f-lang.c (build_fortran_types): Use arch_type to initialize
7820 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7821
7822 2020-04-02 Tom Tromey <tromey@adacore.com>
7823
7824 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7825 of attributes.
7826
7827 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7828 Bernd Edlinger <bernd.edlinger@hotmail.de>
7829 Tom Tromey <tromey@adacore.com>
7830
7831 * buildsym.c (buildsym_compunit::record_line): Remove
7832 deduplication code.
7833
7834 2020-04-02 Tom de Vries <tdevries@suse.de>
7835
7836 PR ada/24671
7837 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7838
7839 2020-04-02 Tom de Vries <tdevries@suse.de>
7840
7841 * dwarf2/read.c (dwarf2_gdb_index_functions,
7842 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7843 NULL.
7844 * psymtab.c (psym_lookup_global_symbol_language): New function.
7845 (psym_functions): Init psym_lookup_global_symbol_language with
7846 psym_lookup_global_symbol_language.
7847 * symfile-debug.c (debug_sym_quick_functions): Init
7848 lookup_global_symbol_language with NULL.
7849 * symfile.c (set_initial_language): Remove fixme comment.
7850 * symfile.h (struct quick_symbol_functions): Add
7851 lookup_global_symbol_language.
7852 * symtab.c (find_quick_global_symbol_language): New function.
7853 (find_main_name): Use find_quick_global_symbol_language.
7854
7855 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7856
7857 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7858
7859 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7860
7861 * buildsym.c (record_line): Fix undefined behavior and preserve
7862 lines at eof.
7863
7864 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7865
7866 * buildsym.c (record_line): Fix the resizing condition.
7867
7868 2020-04-01 Tom Tromey <tom@tromey.com>
7869
7870 * value.h (value_literal_complex): Add comment.
7871 * valops.c (value_literal_complex): Refer to value.h.
7872
7873 2020-04-01 Tom Tromey <tom@tromey.com>
7874
7875 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7876 (scalar_type): New rule, from typebase.
7877 (typebase): Use scalar_type. Recognize complex types.
7878 (field_name): Handle FLOAT_KEYWORD.
7879 (ident_tokens): Add _Complex and __complex__.
7880
7881 2020-04-01 Tom Tromey <tom@tromey.com>
7882
7883 PR exp/25299:
7884 * valarith.c (promotion_type, complex_binop): New functions.
7885 (scalar_binop): Handle complex numbers. Use promotion_type.
7886 (value_pos, value_neg, value_complement): Handle complex numbers.
7887
7888 2020-04-01 Tom Tromey <tom@tromey.com>
7889
7890 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7891 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7892 (parse_number): Handle complex numbers.
7893
7894 2020-04-01 Tom Tromey <tom@tromey.com>
7895
7896 * c-valprint.c (c_decorations): Change complex suffix to "i".
7897
7898 2020-04-01 Tom Tromey <tom@tromey.com>
7899
7900 * valprint.c (generic_value_print_complex): Use accessors.
7901 * value.h (value_real_part, value_imaginary_part): Declare.
7902 * valops.c (value_real_part, value_imaginary_part): New
7903 functions.
7904 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7905
7906 2020-04-01 Tom Tromey <tom@tromey.com>
7907
7908 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7909 (read_range_type): Update.
7910 * mdebugread.c (basic_type): Update.
7911 * go-lang.c (build_go_types): Use init_complex_type.
7912 * gdbtypes.h (struct main_type) <complex_type>: New member.
7913 (init_complex_type): Update.
7914 (arch_complex_type): Don't declare.
7915 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7916 Make name if none given. Use alloc_type_copy. Look for cached
7917 complex type.
7918 (arch_complex_type): Remove.
7919 (gdbtypes_post_init): Use init_complex_type.
7920 * f-lang.c (build_fortran_types): Use init_complex_type.
7921 * dwarf2/read.c (read_base_type): Update.
7922 * d-lang.c (build_d_types): Use init_complex_type.
7923 * ctfread.c (read_base_type): Update.
7924
7925 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7926
7927 * infrun.c (stop_all_threads): Update assertion, plus when
7928 stopping threads, take into account that we might be trying
7929 to stop an all-stop target.
7930 (stop_waiting): Call 'stop_all_threads' if there exists a
7931 non-stop target.
7932
7933 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7934
7935 * target.h (exists_non_stop_target): New function declaration.
7936 * target.c (exists_non_stop_target): New function.
7937
7938 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7939
7940 PR gdb/24789
7941 * eval.c (is_integral_or_integral_reference): New function.
7942 (evaluate_subexp_standard): Allow integer references in
7943 pointer arithmetic.
7944
7945 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7946
7947 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7948 check for no ptid in the stop reply when the target is non-stop.
7949
7950 2020-04-01 Tom Tromey <tromey@adacore.com>
7951
7952 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7953 "name" parameter to rvalue reference. Initialize m_name_holder.
7954 <lookup_name_info>: New overloads.
7955 <name>: Return gdb::string_view.
7956 <c_str>: New method.
7957 <make_ignore_params>: Update.
7958 <search_name_hash>: Update.
7959 <language_lookup_name>: Return const char *.
7960 <m_name>: Change type.
7961 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7962 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7963 (lookup_name_info::match_any): Update.
7964 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7965 Update.
7966 * minsyms.c (linkage_name_str): Update.
7967 * language.c (default_symbol_name_matcher): Update.
7968 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7969 Update.
7970 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7971 (ada_lookup_name_info::ada_lookup_name_info): Update.
7972 (literal_symbol_name_matcher): Update.
7973
7974 2020-04-01 Tom Tromey <tromey@adacore.com>
7975
7976 * psymtab.c (psymtab_search_name): Remove function.
7977 (psym_lookup_symbol): Create search name and lookup name here.
7978 (lookup_partial_symbol): Remove "name" parameter; add
7979 lookup_name.
7980 (psym_expand_symtabs_for_function): Update.
7981
7982 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7983
7984 PR tui/25597:
7985 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7986
7987 2020-03-31 Tom Tromey <tromey@adacore.com>
7988
7989 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7990 memcpy.
7991
7992 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7993
7994 * features/riscv/32bit-csr.xml: Regenerated.
7995 * features/riscv/64bit-csr.xml: Regenerated.
7996
7997 2020-03-30 Tom Tromey <tromey@adacore.com>
7998
7999 * ada-valprint.c (print_variant_part): Update.
8000 * ada-lang.h (ada_which_variant_applies): Update.
8001 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8002 outer_valaddr parameters; replace with "outer" value parameter.
8003 (to_fixed_variant_branch_type): Update.
8004
8005 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8006
8007 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8008 <list>. Remove inclusion of observable.h.
8009 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8010 (struct arch_lwp_info): New struct.
8011 (class ppc_linux_dreg_interface): New class.
8012 (struct ppc_linux_process_info): New struct.
8013 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8014 <low_new_clone, low_forget_process, low_prepare_to_resume>
8015 <copy_thread_dreg_state, mark_thread_stale>
8016 <mark_debug_registers_changed, register_hw_breakpoint>
8017 <clear_hw_breakpoint, register_wp, clear_wp>
8018 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8019 <num_memory_accesses, get_trigger_type>
8020 <create_watchpoint_request, hwdebug_point_cmp>
8021 <init_arch_lwp_info, get_arch_lwp_info>
8022 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8023 methods.
8024 <struct ptid_hash>: New inner struct.
8025 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8026 members.
8027 (saved_dabr_value, hwdebug_info, max_slots_number)
8028 (struct hw_break_tuple, struct thread_points, ppc_threads)
8029 (have_ptrace_hwdebug_interface)
8030 (hwdebug_find_thread_points_by_tid)
8031 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8032 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8033 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8034 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8035 use m_dreg_interface.
8036 (hwdebug_point_cmp): Change to...
8037 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8038 reference arguments instead of pointers.
8039 (ppc_linux_nat_target::ranged_break_num_registers): Use
8040 m_dreg_interface.
8041 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8042 m_dreg_interface. Call register_hw_breakpoint.
8043 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8044 m_dreg_interface. Call clear_hw_breakpoint.
8045 (get_trigger_type): Change to...
8046 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8047 comment.
8048 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8049 use m_dreg_interface. Call register_hw_breakpoint.
8050 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8051 use m_dreg_interface. Call clear_hw_breakpoint.
8052 (can_use_watchpoint_cond_accel): Change to...
8053 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8054 method. Update comment, use m_dreg_interface and
8055 m_process_info.
8056 (calculate_dvc): Change to...
8057 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8058 m_dreg_interface.
8059 (num_memory_accesses): Change to...
8060 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8061 (check_condition): Change to...
8062 (ppc_linux_nat_target::check_condition): ...this method.
8063 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8064 comment, use m_dreg_interface.
8065 (create_watchpoint_request): Change to...
8066 (ppc_linux_nat_target::create_watchpoint_request): ...this
8067 method. Use m_dreg_interface.
8068 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8069 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8070 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8071 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8072 (ppc_linux_nat_target::low_forget_process)
8073 (ppc_linux_nat_target::low_new_fork)
8074 (ppc_linux_nat_target::low_new_clone)
8075 (ppc_linux_nat_target::low_delete_thread)
8076 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8077 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8078 only call mark_thread_stale.
8079 (ppc_linux_thread_exit): Remove.
8080 (ppc_linux_nat_target::stopped_data_address): Change to...
8081 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8082 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8083 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8084 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8085 comment. Call low_stopped_data_address.
8086 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8087 m_dreg_interface.
8088 (ppc_linux_nat_target::masked_watch_num_registers): Use
8089 m_dreg_interface.
8090 (ppc_linux_nat_target::copy_thread_dreg_state)
8091 (ppc_linux_nat_target::mark_thread_stale)
8092 (ppc_linux_nat_target::mark_debug_registers_changed)
8093 (ppc_linux_nat_target::register_hw_breakpoint)
8094 (ppc_linux_nat_target::clear_hw_breakpoint)
8095 (ppc_linux_nat_target::register_wp)
8096 (ppc_linux_nat_target::clear_wp)
8097 (ppc_linux_nat_target::init_arch_lwp_info)
8098 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8099 (_initialize_ppc_linux_nat): Remove observer callback.
8100
8101 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8102
8103 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8104 (ppc_linux_nat_target::auxv_parse)
8105 (ppc_linux_nat_target::read_description)
8106 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8107 Move up.
8108
8109 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8110
8111 * linux-nat.h (low_new_clone): New method.
8112 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8113
8114 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8115
8116 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8117 (dbx_expand_psymtab): ... this.
8118 (start_psymtab): Update.
8119 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8120 (mdebug_expand_psymtab): ... this.
8121 (parse_partial_symbols): Update.
8122 (new_psymtab): Update.
8123 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8124 (xcoff_expand_psymtab): ... this.
8125 (xcoff_start_psymtab): Update.
8126
8127 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8128
8129 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8130 <expand_dependencies>: ... this.
8131 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8132 (partial_symtab::expand_dependencies): ... this.
8133 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8134 Update.
8135 (dwarf2_psymtab::expand_psymtab): Update.
8136 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8137 * mdebugread.c (psymtab_to_symtab_1): Update.
8138 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8139
8140 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8141
8142 * psympriv.h (discard_psymtab): Remove.
8143 * dbxread.c (dbx_end_psymtab): Update.
8144 * xcoffread.c (xcoff_end_psymtab): Update.
8145
8146 2020-03-28 Tom Tromey <tom@tromey.com>
8147
8148 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8149 comment.
8150
8151 2020-03-28 Tom Tromey <tom@tromey.com>
8152
8153 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8154
8155 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8156
8157 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8158
8159 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8160
8161 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8162
8163 2020-03-26 Tom Tromey <tom@tromey.com>
8164
8165 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8166 (mark_common_block_symbol_computed, read_tag_string_type)
8167 (attr_to_dynamic_prop, read_subrange_type): Update.
8168 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8169 to be methods on struct attribute.
8170 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8171 (read_call_site_scope, partial_die_info::read)
8172 (partial_die_info::read, lookup_die_type, follow_die_ref):
8173 Update.
8174 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8175 from dwarf2_get_ref_die_offset.
8176 (attribute::constant_value): New method, from
8177 dwarf2_get_attr_constant_value.
8178 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8179 Declare method.
8180 <constant_value>: New method.
8181
8182 2020-03-26 Tom Tromey <tom@tromey.com>
8183
8184 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8185 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8186 (dwarf_type_encoding_name): Move to stringify.c.
8187 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8188 * dwarf2/stringify.c: New file.
8189 * dwarf2/stringify.h: New file.
8190
8191 2020-03-26 Tom Tromey <tom@tromey.com>
8192
8193 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8194 Rewrite.
8195
8196 2020-03-26 Tom Tromey <tom@tromey.com>
8197
8198 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8199 methods.
8200 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8201 (lookup_ranges_base): Likewise.
8202 (read_cutu_die_from_dwo, read_full_die_1): Update.
8203
8204 2020-03-26 Tom Tromey <tom@tromey.com>
8205
8206 * dwarf2/read.c (read_import_statement, read_file_scope)
8207 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8208 (read_lexical_block_scope, read_call_site_scope)
8209 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8210 (handle_struct_member_die, process_structure_scope)
8211 (update_enumeration_type_from_children)
8212 (process_enumeration_scope, read_array_type, read_common_block)
8213 (read_namespace, read_module, read_subroutine_type): Update.
8214 (sibling_die): Remove.
8215
8216 2020-03-26 Tom Tromey <tom@tromey.com>
8217
8218 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8219 (build_type_psymtabs_reader, read_structure_type)
8220 (read_enumeration_type, read_full_die_1): Update.
8221 (dwarf2_attr_no_follow): Move to die.h.
8222 * dwarf2/die.h (struct die_info) <attr>: New method.
8223
8224 2020-03-26 Tom Tromey <tom@tromey.com>
8225
8226 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8227 <base_address>: Now an optional.
8228 (dwarf2_find_base_address, dwarf2_rnglists_process)
8229 (dwarf2_ranges_process, fill_in_loclist_baton)
8230 (dwarf2_symbol_mark_computed): Update.
8231
8232 2020-03-26 Tom Tromey <tom@tromey.com>
8233
8234 * dwarf2/read.c (struct die_info): Move to die.h.
8235 * dwarf2/die.h: New file.
8236
8237 2020-03-26 Tom Tromey <tom@tromey.com>
8238
8239 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8240 * dwarf2/read.c
8241 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8242 Move to line-header.c.
8243 (read_checked_initial_length_and_offset, read_formatted_entries):
8244 Likewise.
8245 (dwarf_decode_line_header): Split into two.
8246 * dwarf2/line-header.c
8247 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8248 Move from read.c.
8249 (read_checked_initial_length_and_offset, read_formatted_entries):
8250 Likewise.
8251 (dwarf_decode_line_header): New function, split from read.c.
8252
8253 2020-03-26 Tom Tromey <tom@tromey.com>
8254
8255 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8256 Declare method.
8257 * dwarf2/read.c (read_attribute_value): Update.
8258 (dwarf2_per_objfile::read_line_string): Rename from
8259 read_indirect_line_string.
8260 (read_formatted_entries): Update.
8261
8262 2020-03-26 Tom Tromey <tom@tromey.com>
8263
8264 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8265 variable.
8266
8267 2020-03-26 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8270 const.
8271 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8272 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8273 parameter const.
8274
8275 2020-03-26 Tom Tromey <tom@tromey.com>
8276
8277 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8278 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8279 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8280 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8281
8282 2020-03-26 Tom Tromey <tom@tromey.com>
8283
8284 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8285 file_names_size, file_full_name, file_file_name>: Use const.
8286 <file_name_at, file_names>: Add const overload.
8287 * dwarf2/line-header.c (line_header::file_file_name)
8288 (line_header::file_full_name): Update.
8289
8290 2020-03-26 Tom Tromey <tom@tromey.com>
8291
8292 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8293 (macro_start_file, consume_improper_spaces)
8294 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8295 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8296 (dwarf_decode_macros): Move to macro.c.
8297 * dwarf2/macro.c: New file.
8298 * dwarf2/macro.h: New file.
8299 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8300
8301 2020-03-26 Tom Tromey <tom@tromey.com>
8302
8303 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8304 method.
8305 * dwarf2/section.c: New method. From
8306 read_indirect_string_at_offset_from.
8307 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8308 (read_indirect_string_at_offset_from): Move to section.c.
8309 (read_indirect_string_at_offset): Rewrite.
8310 (read_indirect_line_string_at_offset): Remove.
8311 (read_indirect_string, read_indirect_line_string)
8312 (dwarf_decode_macro_bytes): Update.
8313
8314 2020-03-26 Tom Tromey <tom@tromey.com>
8315
8316 * dwarf2/section.h (struct dwarf2_section_info)
8317 <overload_complaint>: Declare.
8318 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8319 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8320 Rename from dwarf2_section_buffer_overflow_complaint.
8321 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8322 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8323
8324 2020-03-26 Tom Tromey <tom@tromey.com>
8325
8326 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8327 Declare.
8328 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8329 Move from read.c.
8330 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8331 to section.c.
8332
8333 2020-03-26 Tom Tromey <tom@tromey.com>
8334
8335 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8336
8337 2020-03-26 Tom Tromey <tom@tromey.com>
8338
8339 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8340 "builder".
8341 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8342 parameter.
8343 (dwarf_decode_macros): Update.
8344
8345 2020-03-26 Tom Tromey <tom@tromey.com>
8346
8347 * dwarf2/read.c (read_attribute_value): Update.
8348 (read_indirect_string_from_dwz): Move to dwz.c; change into
8349 method.
8350 (dwarf_decode_macro_bytes): Update.
8351 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8352 * dwarf2/dwz.c: New file.
8353 * Makefile.in (COMMON_SFILES): Add dwz.c.
8354
8355 2020-03-26 Tom Tromey <tom@tromey.com>
8356
8357 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8358 * dwarf2/read.c: Add include.
8359 * dwarf2/index-write.c: Add include.
8360 * dwarf2/index-cache.c: Add include.
8361 * dwarf2/dwz.h: New file.
8362
8363 2020-03-25 Tom Tromey <tom@tromey.com>
8364
8365 * compile/compile-object-load.c (get_out_value_type): Mention
8366 correct symbol name in error message.
8367
8368 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8369
8370 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8371
8372 2020-03-25 Tom de Vries <tdevries@suse.de>
8373
8374 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8375 * symmisc.c (dump_symtab_1): Print user and includes fields.
8376 (maintenance_info_symtabs): Same.
8377
8378 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 PR gdb/25534
8381 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8382 (riscv_regcache_cooked_write): New function.
8383 (riscv_push_dummy_call): Use new function.
8384 (riscv_return_value): Likewise.
8385
8386 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8387
8388 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8389 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8390 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8391 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8392 * infrun.c (follow_fork): Likewise.
8393 (follow_fork_inferior): Likewise.
8394 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8395 * linux-nat.h (class linux_nat_target): Likewise.
8396 * remote.c (class remote_target) <follow_fork>: Likewise.
8397 (remote_target::follow_fork): Likewise.
8398 * target-delegates.c: Re-generate.
8399 * target.c (default_follow_fork): Likewise.
8400 (target_follow_fork): Likewise.
8401 * target.h (struct target_ops) <follow_fork>: Likewise.
8402 (target_follow_fork): Likewise.
8403
8404 2020-03-24 Tom de Vries <tdevries@suse.de>
8405
8406 * psymtab.c (maintenance_info_psymtabs): Print user field.
8407
8408 2020-03-20 Tom Tromey <tromey@adacore.com>
8409
8410 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8411 const.
8412 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8413 const.
8414
8415 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * ptrace.m4: Don't check for ptrace declaration.
8418 * config.in: Re-generate.
8419 * configure: Re-generate.
8420 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8421 not defined.
8422
8423 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8424
8425 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8426 `PTRACE_TYPE_RET'.
8427 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8428 * sparc-nat.c (gdb_ptrace): Likewise.
8429 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8430
8431 2020-03-20 Tom Tromey <tromey@adacore.com>
8432
8433 * c-exp.y (lex_one_token): Fix assert.
8434
8435 2020-03-20 Tom Tromey <tromey@adacore.com>
8436
8437 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8438 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8439 strncpy call.
8440
8441 2020-03-20 Tom Tromey <tromey@adacore.com>
8442
8443 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8444
8445 2020-03-20 Tom Tromey <tromey@adacore.com>
8446
8447 * ada-valprint.c (print_variant_part): Remove parameters; switch
8448 to value-based API.
8449 (print_field_values): Likewise.
8450 (ada_val_print_struct_union): Likewise.
8451 (ada_value_print_1): Update.
8452
8453 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8454
8455 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8456 nbsd_nat_target instead of inf_ptrace_target.
8457 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8458 nbsd_nat_target.
8459
8460 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8461
8462 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8463 it to the ptrace call.
8464 * (store_registers): Likewise.
8465
8466 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8467
8468 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8469 it to the ptrace call.
8470 * (store_registers): Likewise.
8471
8472 2020-03-19 Luis Machado <luis.machado@linaro.org>
8473
8474 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8475 valid, fetch vg value from ptrace.
8476
8477 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8478 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8479 * inf-ptrace.c: Likewise.
8480 * (gdb_ptrace): Add.
8481 * (inf_ptrace_target::resume): Update.
8482 * (inf_ptrace_target::xfer_partial): Likewise.
8483 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8484 * (inf_ptrace_peek_poke): Update.
8485
8486 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8487
8488 * x86-bsd-nat.c (gdb_ptrace): New.
8489 * (x86bsd_dr_set): Add new argument `ptid'.
8490 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8491 x86bsd_dr_set_addr): Update.
8492
8493 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * remote.c (remote_target::process_stop_reply): Handle events for
8496 all threads differently.
8497
8498 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8499
8500 * completer.c (completion_tracker::remove_completion): Define new
8501 function.
8502 * completer.h (completion_tracker::remove_completion): Declare new
8503 function.
8504 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8505 when adding a C++ function symbol.
8506
8507 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8508
8509 * completer.c (completion_tracker::completion_hash_entry): Define
8510 new class.
8511 (advance_to_filename_complete_word_point): Call
8512 recompute_lowest_common_denominator.
8513 (completion_tracker::completion_tracker): Call discard_completions
8514 to setup the hash table.
8515 (completion_tracker::discard_completions): Allow for being called
8516 from the constructor, pass new equal function, and element deleter
8517 when constructing the hash table. Initialise new class member
8518 variables.
8519 (completion_tracker::maybe_add_completion): Remove use of
8520 m_entries_vec, and store more information into m_entries_hash.
8521 (completion_tracker::recompute_lcd_visitor): New function, most
8522 content taken from...
8523 (completion_tracker::recompute_lowest_common_denominator):
8524 ...here, this now just visits each item in the hash calling the
8525 above visitor.
8526 (completion_tracker::build_completion_result): Remove use of
8527 m_entries_vec, call recompute_lowest_common_denominator.
8528 * completer.h (completion_tracker::have_completions): Remove use
8529 of m_entries_vec.
8530 (completion_tracker::completion_hash_entry): Declare new class.
8531 (completion_tracker::recompute_lowest_common_denominator): Change
8532 function signature.
8533 (completion_tracker::recompute_lcd_visitor): Declare new function.
8534 (completion_tracker::m_entries_vec): Delete.
8535 (completion_tracker::m_entries_hash): Initialize to NULL.
8536 (completion_tracker::m_lowest_common_denominator_valid): New
8537 member variable.
8538 (completion_tracker::m_lowest_common_denominator_max_length): New
8539 member variable.
8540
8541 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8542
8543 * regformats/regdef.h: Put reg in gdb namespace.
8544
8545 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8546
8547 * i386-bsd-nat.c (gdb_ptrace): New.
8548 * (i386bsd_fetch_inferior_registers,
8549 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8550 * (i386bsd_fetch_inferior_registers,
8551 i386bsd_store_inferior_registers) Use gdb_ptrace.
8552
8553 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8554
8555 * amd64-bsd-nat.c (gdb_ptrace): New.
8556 * (amd64bsd_fetch_inferior_registers,
8557 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8558 * (amd64bsd_fetch_inferior_registers,
8559 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8560
8561 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8562
8563 * user-regs.c (user_reg::read): Rename to...
8564 (user_reg::xread): ...this.
8565 * (append_user_reg): Rename argument `read' to `xread'.
8566 * (user_reg_add_builtin): Likewise.
8567 * (user_reg_add): Likewise.
8568 * (value_of_user_reg): Likewise.
8569
8570 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8571
8572 * sparc-nat.c (gdb_ptrace): New.
8573 * sparc-nat.c (sparc_fetch_inferior_registers)
8574 (sparc_store_inferior_registers) Remove obsolete comment.
8575 * sparc-nat.c (sparc_fetch_inferior_registers)
8576 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8577 * sparc-nat.c (sparc_fetch_inferior_registers)
8578 (sparc_store_inferior_registers) Use gdb_ptrace.
8579
8580 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8581
8582 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8583 it to the ptrace call.
8584 * sh-nbsd-nat.c (store_registers): Likewise.
8585
8586 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8587
8588 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8589 nbsd_nat_target instead of inf_ptrace_target.
8590 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8591 nbsd_nat_target.
8592
8593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8594
8595 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8596
8597 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8598
8599 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8600 <sys/sysctl.h>.
8601 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8602
8603 2020-03-17 Tom de Vries <tdevries@suse.de>
8604
8605 PR gdb/23710
8606 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8607 fields.
8608 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8609 fields.
8610 (process_imported_unit_die): Skip import of c++ CUs.
8611
8612 2020-03-16 Tom Tromey <tom@tromey.com>
8613
8614 * p-valprint.c (pascal_object_print_value): Initialize
8615 base_value.
8616
8617 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8618 Shahab Vahedi <shahab@synopsys.com>
8619
8620 * Makefile.in: Add arch/arc.o
8621 * configure.tgt: Likewise.
8622 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8623 (_initialize_arc_tdep): Don't initialize old target descriptions.
8624 (arc_read_description): New function to cache target descriptions.
8625 * arc-tdep.h (arc_read_description): Add proto type.
8626 * arch/arc.c: New file.
8627 * arch/arc.h: Likewise.
8628 * features/Makefile: Replace old target descriptions with new.
8629 * features/arc-arcompact.c: Remove.
8630 * features/arc-arcompact.xml: Likewise.
8631 * features/arc-v2.c: Likewise
8632 * features/arc-v2.xml: Likewise
8633 * features/arc/aux-arcompact.xml: New file.
8634 * features/arc/aux-v2.xml: Likewise.
8635 * features/arc/core-arcompact.xml: Likewise.
8636 * features/arc/core-v2.xml: Likewise.
8637 * features/arc/aux-arcompact.c: Generate.
8638 * features/arc/aux-v2.c: Likewise.
8639 * features/arc/core-arcompact.c: Likewise.
8640 * features/arc/core-v2.c: Likewise.
8641 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8642
8643 2020-03-16 Tom Tromey <tromey@adacore.com>
8644
8645 PR gdb/25663:
8646 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8647 putting value into bcache.
8648
8649 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8650
8651 PR gdb/21500
8652 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8653 to...
8654 (amd64_windows_init_abi_common): ... this. Don't set size of
8655 long type.
8656 (amd64_windows_init_abi): New function.
8657 (amd64_cygwin_init_abi): New function.
8658 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8659 the Cygwin OS ABI.
8660 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8661 comment.
8662
8663 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8664
8665 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8666 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8667 (pe_import_directory_entry): New struct type.
8668 (is_linked_with_cygwin_dll): New function.
8669 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8670 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8671 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8672
8673 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8674
8675 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8676 i386_cygwin_core_osabi_sniffer.
8677
8678 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8679
8680 * i386-cygwin-tdep.c: Rename to...
8681 * i386-windows-tdep.c: ... this.
8682 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8683 i386-windows-tdep.c.
8684 * configure.tgt: Likewise.
8685
8686 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8689 * osabi.c (gdb_osabi_names): Add "Windows".
8690 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8691 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8692 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8693 i386_cygwin_osabi_sniffer.
8694 (_initialize_i386_cygwin_tdep): Register OS ABI
8695 GDB_OSABI_WINDOWS for i386.
8696 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8697 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8698 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8699 for x86-64.
8700 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8701 when the target matches '*-*-mingw*'.
8702
8703 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * defs.h (enum gdb_osabi): Move to...
8706 * osabi.h (enum gdb_osabi): ... here.
8707 * gdbarch.sh: Include osabi.h in gdbarch.h.
8708 * gdbarch.h: Re-generate.
8709
8710 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8713 function.
8714 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8715
8716 2020-03-14 Tom Tromey <tom@tromey.com>
8717
8718 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8719 for C++.
8720 (c_type_print_modifier): Likewise. Add "language" parameter.
8721 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8722 (c_type_print_base_1): Update.
8723 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8724 constants.
8725 * type-stack.c (type_stack::insert): Handle tp_atomic and
8726 tp_restrict.
8727 (type_stack::follow_type_instance_flags): Likewise.
8728 (type_stack::follow_types): Likewise. Merge type-following code.
8729 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8730 (space_identifier, cv_with_space_id)
8731 (const_or_volatile_or_space_identifier_noopt)
8732 (const_or_volatile_or_space_identifier): Remove.
8733 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8734 rules.
8735 (ptr_operator, typebase): Update.
8736 (enum token_flag) <FLAG_C>: New constant.
8737 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8738 "_Atomic".
8739 (lex_one_token): Handle FLAG_C.
8740
8741 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8742
8743 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8744 it to the ptrace call.
8745 * m68k-bsd-nat.c (store_registers): Likewise.
8746
8747 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8748
8749 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8750 gdb_byte *.
8751 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8752 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8753 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8754
8755 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8756
8757 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8758 nbsd_nat_target instead of inf_ptrace_target.
8759 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8760 nbsd_nat_target.
8761
8762 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8763
8764 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8765 register_t.
8766
8767 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8768
8769 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8770 it to the ptrace call.
8771 * alpha-bsd-nat.c (store_registers): Likewise.
8772
8773 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8774
8775 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8776 includes.
8777 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8778 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8779 fill_fpregset): Likewise.
8780
8781 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8782
8783 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8784 nbsd_nat_target instead of inf_ptrace_target.
8785 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8786 nbsd_nat_target.
8787
8788 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8789
8790 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8791 register_t.
8792
8793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8794
8795 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8796 it to the ptrace call.
8797 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8798 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8799 * arm-nbsd-nat.c (store_register): Likewise.
8800 * arm-nbsd-nat.c (store_regs): Likewise.
8801 * arm-nbsd-nat.c (store_fp_register): Likewise.
8802 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8803
8804 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8805
8806 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8807 nbsd_nat_target instead of inf_ptrace_target.
8808 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8809 nbsd_nat_target.
8810
8811 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8812
8813 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8814 it to the ptrace call.
8815 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8816
8817 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8818
8819 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8820 it to the ptrace call.
8821 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8822
8823 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8824
8825 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8826 gdb_byte *.
8827 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8828
8829 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8830
8831 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8832 instead of inf_ptrace_target.
8833 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8834 nbsd_nat_target.
8835
8836 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8837
8838 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8839 register_t.
8840
8841 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8842
8843 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8844 register_t.
8845
8846 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8847
8848 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8849 register_t.
8850
8851 2020-03-13 Tom Tromey <tom@tromey.com>
8852
8853 * value.h (val_print): Don't declare.
8854 * valprint.h (val_print_array_elements)
8855 (val_print_scalar_formatted, generic_val_print): Don't declare.
8856 * valprint.c (generic_val_print_array): Take a struct value.
8857 (generic_val_print_ptr, generic_val_print_memberptr)
8858 (generic_val_print_bool, generic_val_print_int)
8859 (generic_val_print_char, generic_val_print_complex)
8860 (generic_val_print): Remove.
8861 (generic_value_print): Update.
8862 (do_val_print): Remove unused parameters. Don't call
8863 la_val_print.
8864 (val_print): Remove.
8865 (common_val_print): Update. Don't call value_check_printable.
8866 (val_print_scalar_formatted, val_print_array_elements): Remove.
8867 * rust-lang.c (rust_val_print): Remove.
8868 (rust_language_defn): Update.
8869 * p-valprint.c (pascal_val_print): Remove.
8870 (pascal_value_print_inner): Update.
8871 (pascal_object_print_val_fields, pascal_object_print_val):
8872 Remove.
8873 (pascal_object_print_static_field): Update.
8874 * p-lang.h (pascal_val_print): Don't declare.
8875 * p-lang.c (pascal_language_defn): Update.
8876 * opencl-lang.c (opencl_language_defn): Update.
8877 * objc-lang.c (objc_language_defn): Update.
8878 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8879 * m2-lang.h (m2_val_print): Don't declare.
8880 * m2-lang.c (m2_language_defn): Update.
8881 * language.h (struct language_defn) <la_val_print>: Remove.
8882 * language.c (unk_lang_value_print_inner): Rename. Change
8883 argument types.
8884 (unknown_language_defn, auto_language_defn): Update.
8885 * go-valprint.c (go_val_print): Remove.
8886 * go-lang.h (go_val_print): Don't declare.
8887 * go-lang.c (go_language_defn): Update.
8888 * f-valprint.c (f_val_print): Remove.
8889 * f-lang.h (f_value_print): Don't declare.
8890 * f-lang.c (f_language_defn): Update.
8891 * d-valprint.c (d_val_print): Remove.
8892 * d-lang.h (d_value_print): Don't declare.
8893 * d-lang.c (d_language_defn): Update.
8894 * cp-valprint.c (cp_print_value_fields)
8895 (cp_print_value_fields_rtti, cp_print_value): Remove.
8896 (cp_print_static_field): Update.
8897 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8898 (c_val_print_struct, c_val_print_union, c_val_print_int)
8899 (c_val_print_memberptr, c_val_print): Remove.
8900 * c-lang.h (c_val_print_array, cp_print_value_fields)
8901 (cp_print_value_fields_rtti): Don't declare.
8902 * c-lang.c (c_language_defn, cplus_language_defn)
8903 (asm_language_defn, minimal_language_defn): Update.
8904 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8905 (ada_val_print_enum): Take a struct value.
8906 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8907 (ada_val_print): Remove.
8908 (ada_value_print_1): Update.
8909 (printable_val_type): Remove.
8910 * ada-lang.h (ada_val_print): Don't declare.
8911 * ada-lang.c (ada_language_defn): Update.
8912
8913 2020-03-13 Tom Tromey <tom@tromey.com>
8914
8915 * valprint.c (do_val_print): Update.
8916 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8917 a struct value.
8918 (value_to_value_object_no_release): Declare.
8919 * python/py-value.c (value_to_value_object_no_release): New
8920 function.
8921 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8922 struct value.
8923 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8924 function.
8925 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8926 a struct value.
8927 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8928 Declare.
8929 (gdbscm_apply_val_pretty_printer): Take a struct value.
8930 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8931 value.
8932 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8933 value.
8934 * extension-priv.h (struct extension_language_ops)
8935 <apply_val_pretty_printer>: Take a struct value.
8936 * cp-valprint.c (cp_print_value): Create a struct value.
8937 (cp_print_value): Update.
8938
8939 2020-03-13 Tom Tromey <tom@tromey.com>
8940
8941 * ada-valprint.c (print_field_values): Call common_val_print.
8942
8943 2020-03-13 Tom Tromey <tom@tromey.com>
8944
8945 * ada-valprint.c (val_print_packed_array_elements): Remove
8946 bitoffset and val parameters. Call common_val_print.
8947 (ada_val_print_string): Remove offset, address, and original_value
8948 parameters.
8949 (ada_val_print_array): Update.
8950 (ada_value_print_array): New function.
8951 (ada_value_print_1): Call it.
8952
8953 2020-03-13 Tom Tromey <tom@tromey.com>
8954
8955 * ada-valprint.c (ada_value_print): Use common_val_print.
8956
8957 2020-03-13 Tom Tromey <tom@tromey.com>
8958
8959 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8960
8961 2020-03-13 Tom Tromey <tom@tromey.com>
8962
8963 * ada-valprint.c (ada_value_print_num): New function.
8964 (ada_value_print_1): Use it.
8965
8966 2020-03-13 Tom Tromey <tom@tromey.com>
8967
8968 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8969
8970 2020-03-13 Tom Tromey <tom@tromey.com>
8971
8972 * ada-valprint.c (ada_value_print_ptr): New function.
8973 (ada_value_print_1): Use it.
8974
8975 2020-03-13 Tom Tromey <tom@tromey.com>
8976
8977 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8978 call common_val_print.
8979 (ada_val_print_1): Update.
8980 (ada_value_print_1): New function.
8981 (ada_value_print_inner): Rewrite.
8982
8983 2020-03-13 Tom Tromey <tom@tromey.com>
8984
8985 * cp-valprint.c (cp_print_value_fields): Update.
8986 (cp_print_value): New function.
8987
8988 2020-03-13 Tom Tromey <tom@tromey.com>
8989
8990 * m2-valprint.c (m2_value_print_inner): Use
8991 cp_print_value_fields.
8992 * cp-valprint.c (cp_print_value_fields): New function.
8993 * c-valprint.c (c_value_print_struct): New function.
8994 (c_value_print_inner): Use c_value_print_struct.
8995 * c-lang.h (cp_print_value_fields): Declare.
8996
8997 2020-03-13 Tom Tromey <tom@tromey.com>
8998
8999 * c-valprint.c (c_value_print_array): New function.
9000 (c_value_print_inner): Use it.
9001
9002 2020-03-13 Tom Tromey <tom@tromey.com>
9003
9004 * c-valprint.c (c_value_print_memberptr): New function.
9005 (c_value_print_inner): Use it.
9006
9007 2020-03-13 Tom Tromey <tom@tromey.com>
9008
9009 * c-valprint.c (c_value_print_int): New function.
9010 (c_value_print_inner): Use it.
9011
9012 2020-03-13 Tom Tromey <tom@tromey.com>
9013
9014 * c-valprint.c (c_value_print_ptr): New function.
9015 (c_value_print_inner): Use it.
9016
9017 2020-03-13 Tom Tromey <tom@tromey.com>
9018
9019 * c-valprint.c (c_value_print_inner): Rewrite.
9020
9021 2020-03-13 Tom Tromey <tom@tromey.com>
9022
9023 * valprint.c (generic_value_print_complex): New function.
9024 (generic_value_print): Use it.
9025
9026 2020-03-13 Tom Tromey <tom@tromey.com>
9027
9028 * valprint.c (generic_val_print_float): Don't call
9029 val_print_scalar_formatted.
9030 (generic_val_print, generic_value_print): Update.
9031
9032 2020-03-13 Tom Tromey <tom@tromey.com>
9033
9034 * valprint.c (generic_value_print_char): New function
9035 (generic_value_print): Use it.
9036
9037 2020-03-13 Tom Tromey <tom@tromey.com>
9038
9039 * valprint.c (generic_value_print_int): New function.
9040 (generic_value_print): Use it.
9041
9042 2020-03-13 Tom Tromey <tom@tromey.com>
9043
9044 * valprint.c (generic_value_print_bool): New function.
9045 (generic_value_print): Use it.
9046
9047 2020-03-13 Tom Tromey <tom@tromey.com>
9048
9049 * valprint.c (generic_val_print_func): Simplify.
9050 (generic_val_print, generic_value_print): Update.
9051
9052 2020-03-13 Tom Tromey <tom@tromey.com>
9053
9054 * valprint.c (generic_val_print_flags): Remove.
9055 (generic_val_print, generic_value_print): Update.
9056 (val_print_type_code_flags): Add original_value parameter.
9057
9058 2020-03-13 Tom Tromey <tom@tromey.com>
9059
9060 * valprint.c (generic_val_print): Update.
9061 (generic_value_print): Update.
9062 * valprint.c (generic_val_print_enum): Don't call
9063 val_print_scalar_formatted.
9064
9065 2020-03-13 Tom Tromey <tom@tromey.com>
9066
9067 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9068 * valprint.c (generic_value_print_ptr): New function.
9069
9070 2020-03-13 Tom Tromey <tom@tromey.com>
9071
9072 * valprint.c (generic_value_print): Rewrite.
9073
9074 2020-03-13 Tom Tromey <tom@tromey.com>
9075
9076 * p-valprint.c (pascal_object_print_value_fields)
9077 (pascal_object_print_value): New functions.
9078
9079 2020-03-13 Tom Tromey <tom@tromey.com>
9080
9081 * p-valprint.c (pascal_value_print_inner): Rewrite.
9082
9083 2020-03-13 Tom Tromey <tom@tromey.com>
9084
9085 * f-valprint.c (f_value_print_innner): Rewrite.
9086
9087 2020-03-13 Tom Tromey <tom@tromey.com>
9088
9089 * m2-valprint.c (m2_print_unbounded_array): New overload.
9090 (m2_print_unbounded_array): Update.
9091 (m2_print_array_contents): Take a struct value.
9092 (m2_value_print_inner): Rewrite.
9093
9094 2020-03-13 Tom Tromey <tom@tromey.com>
9095
9096 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9097 (d_value_print_inner): New function.
9098 * d-lang.h (d_value_print_inner): Declare.
9099 * d-lang.c (d_language_defn): Use d_value_print_inner.
9100
9101 2020-03-13 Tom Tromey <tom@tromey.com>
9102
9103 * go-valprint.c (go_value_print_inner): New function.
9104 * go-lang.h (go_value_print_inner): Declare.
9105 * go-lang.c (go_language_defn): Use go_value_print_inner.
9106
9107 2020-03-13 Tom Tromey <tom@tromey.com>
9108
9109 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9110 API.
9111 (rust_val_print): Rewrite.
9112 (rust_value_print_inner): New function, from rust_val_print.
9113 (rust_language_defn): Use rust_value_print_inner.
9114
9115 2020-03-13 Tom Tromey <tom@tromey.com>
9116
9117 * ada-valprint.c (ada_value_print_inner): New function.
9118 * ada-lang.h (ada_value_print_inner): Declare.
9119 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9120
9121 2020-03-13 Tom Tromey <tom@tromey.com>
9122
9123 * f-valprint.c (f_value_print_innner): New function.
9124 * f-lang.h (f_value_print_innner): Declare.
9125 * f-lang.c (f_language_defn): Use f_value_print_innner.
9126
9127 2020-03-13 Tom Tromey <tom@tromey.com>
9128
9129 * p-valprint.c (pascal_value_print_inner): New function.
9130 * p-lang.h (pascal_value_print_inner): Declare.
9131 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9132
9133 2020-03-13 Tom Tromey <tom@tromey.com>
9134
9135 * m2-valprint.c (m2_value_print_inner): New function.
9136 * m2-lang.h (m2_value_print_inner): Declare.
9137 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9138
9139 2020-03-13 Tom Tromey <tom@tromey.com>
9140
9141 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9142 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9143 * c-valprint.c (c_value_print_inner): New function.
9144 * c-lang.h (c_value_print_inner): Declare.
9145 * c-lang.c (c_language_defn, cplus_language_defn)
9146 (asm_language_defn, minimal_language_defn): Use
9147 c_value_print_inner.
9148
9149 2020-03-13 Tom Tromey <tom@tromey.com>
9150
9151 * p-valprint.c (pascal_object_print_value_fields): Now static.
9152 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9153
9154 2020-03-13 Tom Tromey <tom@tromey.com>
9155
9156 * c-valprint.c (c_val_print_array): Simplify.
9157
9158 2020-03-13 Tom Tromey <tom@tromey.com>
9159
9160 * valprint.c (value_print_array_elements): New function.
9161 * valprint.h (value_print_array_elements): Declare.
9162
9163 2020-03-13 Tom Tromey <tom@tromey.com>
9164
9165 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9166 * mips-tdep.c (mips_print_register): Use
9167 value_print_scalar_formatted.
9168
9169 2020-03-13 Tom Tromey <tom@tromey.com>
9170
9171 * valprint.h (value_print_scalar_formatted): Declare.
9172 * valprint.c (value_print_scalar_formatted): New function.
9173
9174 2020-03-13 Tom Tromey <tom@tromey.com>
9175
9176 * valprint.h (generic_value_print): Declare.
9177 * valprint.c (generic_value_print): New function.
9178
9179 2020-03-13 Tom Tromey <tom@tromey.com>
9180
9181 * valprint.c (do_val_print): Call la_value_print_inner, if
9182 available.
9183 * rust-lang.c (rust_language_defn): Update.
9184 * p-lang.c (pascal_language_defn): Update.
9185 * opencl-lang.c (opencl_language_defn): Update.
9186 * objc-lang.c (objc_language_defn): Update.
9187 * m2-lang.c (m2_language_defn): Update.
9188 * language.h (struct language_defn) <la_value_print_inner>: New
9189 member.
9190 * language.c (unknown_language_defn, auto_language_defn): Update.
9191 * go-lang.c (go_language_defn): Update.
9192 * f-lang.c (f_language_defn): Update.
9193 * d-lang.c (d_language_defn): Update.
9194 * c-lang.c (c_language_defn, cplus_language_defn)
9195 (asm_language_defn, minimal_language_defn): Update.
9196 * ada-lang.c (ada_language_defn): Update.
9197
9198 2020-03-13 Tom Tromey <tom@tromey.com>
9199
9200 * c-valprint.c (c_value_print): Use common_val_print.
9201
9202 2020-03-13 Tom Tromey <tom@tromey.com>
9203
9204 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9205
9206 2020-03-13 Tom Tromey <tom@tromey.com>
9207
9208 * f-valprint.c (f77_print_array_1, f_val_print): Use
9209 common_val_print.
9210
9211 2020-03-13 Tom Tromey <tom@tromey.com>
9212
9213 * riscv-tdep.c (riscv_print_one_register_info): Use
9214 common_val_print.
9215
9216 2020-03-13 Tom Tromey <tom@tromey.com>
9217
9218 * mi/mi-main.c (output_register): Use common_val_print.
9219
9220 2020-03-13 Tom Tromey <tom@tromey.com>
9221
9222 * infcmd.c (default_print_one_register_info): Use
9223 common_val_print.
9224
9225 2020-03-13 Tom Tromey <tom@tromey.com>
9226
9227 * valprint.h (common_val_print_checked): Declare.
9228 * valprint.c (common_val_print_checked): New function.
9229 * stack.c (print_frame_arg): Use common_val_print_checked.
9230
9231 2020-03-13 Tom Tromey <tom@tromey.com>
9232
9233 * valprint.c (do_val_print): New function, from val_print.
9234 (val_print): Use do_val_print.
9235 (common_val_print): Use do_val_print.
9236
9237 2020-03-13 Tom Tromey <tom@tromey.com>
9238
9239 * valprint.c (value_print): Use scoped_value_mark.
9240
9241 2020-03-13 Tom de Vries <tdevries@suse.de>
9242
9243 PR symtab/25646
9244 * psymtab.c (partial_symtab::partial_symtab): Don't set
9245 globals_offset and statics_offset. Push element onto
9246 current_global_psymbols and current_static_psymbols stacks.
9247 (concat): New function.
9248 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9249 element from current_global_psymbols and current_static_psymbols
9250 stacks. Concat popped elements to global_psymbols and
9251 static_symbols.
9252 (add_psymbol_to_list): Use current_global_psymbols and
9253 current_static_psymbols stacks.
9254 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9255 current_static_psymbols fields.
9256
9257 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9258
9259 * corelow.c (sniff_core_bfd): Remove.
9260 (class core_target) <m_core_vec>: Remove.
9261 (core_target::core_target): Update.
9262 (core_file_fns): Remove.
9263 (deprecated_add_core_fns): Remove.
9264 (default_core_sniffer): Remove.
9265 (sniff_core_bfd): Remove.
9266 (default_check_format): Remove.
9267 (gdb_check_format): Remove.
9268 (core_target_open): Update.
9269 (core_target::get_core_register_section): Update.
9270 (get_core_registers_cb): Update.
9271 (core_target::fetch_registers): Update.
9272 * gdbcore.h (struct core_fns): Remove.
9273 (deprecated_add_core_fns): Remove.
9274 (default_core_sniffer): Remove.
9275 (default_check_format): Remove.
9276
9277 2020-03-12 Tom Tromey <tom@tromey.com>
9278
9279 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9280 CORE_ADDR.
9281 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9282
9283 2020-03-12 Tom Tromey <tom@tromey.com>
9284
9285 * remote.c (remote_target::download_tracepoint)
9286 (remote_target::enable_tracepoint)
9287 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9288 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9289 sprintf_vma.
9290
9291 2020-03-12 Tom Tromey <tom@tromey.com>
9292
9293 * symfile-mem.c: Update CORE_ADDR size assert.
9294
9295 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * selftest.m4: Move to gdbsupport/.
9298 * acinclude.m4: Update path to selftest.m4.
9299
9300 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9301
9302 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9303 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9304 gdbarch-selfselftests.c and selftest-arch.c.
9305 (SUBDIR_UNITTESTS_OBS): Rename to...
9306 (SELFTESTS_OBS): ... this.
9307 (COMMON_SFILES): Remove disasm-selftests.c and
9308 gdbarch-selftests.c.
9309 * configure.ac: Don't add selftest-arch.{c,o} to
9310 CONFIG_{SRCS,OBS}.
9311 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9312 preprocessor conditions.
9313
9314 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9315
9316 * configure.ac: Don't source bfd/development.sh.
9317 * selftest.m4: Modify comment.
9318 * configure: Re-generate.
9319
9320 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9323 not "true" or "false".
9324 * configure: Re-generate.
9325
9326 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9327
9328 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9329 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9330 renamed to arm_nbsd_supply_gregset.
9331 (fetch_register): Update to call arm_nbsd_supply_gregset.
9332 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9333 (arm_netbsd_nat_target::fetch_registers): Update.
9334 (fetch_elfcore_registers): Removed.
9335 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9336 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9337 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9338 not require NetBSD system headers.
9339 (arm_nbsd_regset): New struct.
9340 (arm_nbsd_iterate_over_regset_sections): New function.
9341 (arm_netbsd_init_abi_common): Updated to call
9342 set_gdbarch_iterate_over_regset_sections.
9343 * arm-nbsd-tdep.h: New file.
9344
9345 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9346
9347 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9348 recursion.
9349
9350 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * configure: Re-generate.
9353
9354 2020-03-11 Tom Tromey <tromey@adacore.com>
9355
9356 * ada-typeprint.c (print_choices): Fix comment.
9357
9358 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9359
9360 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9361 previous item in the list, when the list has no items.
9362
9363 2020-03-11 Tom de Vries <tdevries@suse.de>
9364
9365 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9366 PROP_LOCLIST handling code.
9367
9368 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9369
9370 * buildsym-legacy.c (record_line): Pass extra parameter to
9371 record_line.
9372 * buildsym.c (buildsym_compunit::record_line): Take an extra
9373 parameter, reduce duplication in the line table, and record the
9374 is_stmt flag in the line table.
9375 * buildsym.h (buildsym_compunit::record_line): Add extra
9376 parameter.
9377 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9378 non-statement lines.
9379 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9380 this to the symtab builder.
9381 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9382 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9383 through to dwarf_record_line_1.
9384 * infrun.c (process_event_stop_test): When stepping, don't stop at
9385 a non-statement instruction, and only refresh the step info when
9386 we land in the middle of a line's range. Also add an extra
9387 comment.
9388 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9389 field.
9390 * record-btrace.c (btrace_find_line_range): Only record lines
9391 marked as is-statement.
9392 * stack.c (frame_show_address): Show the frame address if we are
9393 in a non-statement sal.
9394 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9395 (maintenance_print_one_line_table): Print a header for the is_stmt
9396 column, and include is_stmt information in the output.
9397 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9398 preference to non-statements.
9399 (find_pcs_for_symtab_line): Prefer is-statement entries.
9400 (find_line_common): Likewise.
9401 * symtab.h (struct linetable_entry): Add is_stmt field.
9402 (struct symtab_and_line): Likewise.
9403 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9404 arranging the line table.
9405
9406 2020-03-07 Tom de Vries <tdevries@suse.de>
9407
9408 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9409 DIE.
9410
9411 2020-03-07 Tom Tromey <tom@tromey.com>
9412
9413 * valops.c (value_literal_complex): Remove obsolete comment.
9414 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9415 comment.
9416
9417 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9418
9419 * infrun.h: Forward-declare thread_info.
9420 (set_step_info): Add thread_info parameter, add doc.
9421 * infrun.c (set_step_info): Add thread_info parameter, move doc
9422 to header.
9423 * infrun.c (process_event_stop_test): Pass thread to
9424 set_step_info call.
9425 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9426 set_step_info.
9427 (prepare_one_step): Add thread_info parameter, pass it to
9428 set_step_frame and prepare_one_step (recursive) call.
9429 (step_1): Pass thread to prepare_one_step call.
9430 (step_command_fsm::should_stop): Pass thread to
9431 prepare_one_step.
9432 (until_next_fsm): Pass thread to set_step_frame call.
9433 (finish_command): Pass thread to set_step_info call.
9434
9435 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9436
9437 * windows-tdep.c (windows_solib_create_inferior_hook):
9438 Check if inferior is running.
9439
9440 2020-03-06 Tom de Vries <tdevries@suse.de>
9441
9442 * NEWS: Fix "the the".
9443 * ctfread.c: Same.
9444
9445 2020-03-06 Tom de Vries <tdevries@suse.de>
9446
9447 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9448
9449 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9450
9451 * .dir-locals.el: Add a comment referencing the other copies of
9452 this file.
9453
9454 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9455
9456 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9457 psargs.
9458
9459 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9460
9461 * .gitattributes: New file.
9462
9463 2020-03-04 Tom Tromey <tom@tromey.com>
9464
9465 * symmisc.c (print_symbol_bcache_statistics)
9466 (print_objfile_statistics): Update.
9467 * symfile.c (allocate_symtab): Use intern.
9468 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9469 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9470 macro_cache>: Remove.
9471 <string_cache>: New member.
9472 (struct objfile) <intern>: New methods.
9473 * elfread.c (elf_symtab_read): Use intern.
9474 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9475 (dwarf2_compute_name, dwarf2_physname)
9476 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9477 names.
9478 (guess_partial_die_structure_name): Update.
9479 (partial_die_info::fixup): Intern name.
9480 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9481 name.
9482 (dwarf2_name): Intern name. Update.
9483 * buildsym.c (buildsym_compunit::get_macro_table): Use
9484 string_cache.
9485
9486 2020-03-04 Tom Tromey <tom@tromey.com>
9487
9488 * jit.c (bfd_open_from_target_memory): Make "target" const.
9489 * corefile.c (gnutarget): Now const.
9490 * gdbcore.h (gnutarget): Now const.
9491
9492 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9493
9494 * NEWS: Mention support for WOW64 processes.
9495 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9496 (amd64_windows_segment_register_p): Remove static.
9497 (_initialize_amd64_windows_nat): Update.
9498 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9499 * i386-windows-nat.c (context_offset): Update.
9500 (i386_mappings): Rename and remove static.
9501 (i386_windows_segment_register_p): Remove static.
9502 (_initialize_i386_windows_nat): Update.
9503 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9504 (STATUS_WX86_SINGLE_STEP): New macro.
9505 (EnumProcessModulesEx): New macro.
9506 (Wow64SuspendThread): New macro.
9507 (Wow64GetThreadContext): New macro.
9508 (Wow64SetThreadContext): New macro.
9509 (Wow64GetThreadSelectorEntry): New macro.
9510 (windows_set_context_register_offsets): Add static.
9511 (windows_set_segment_register_p): Likewise.
9512 (windows_add_thread): Adapt for WOW64 processes.
9513 (windows_fetch_one_register): Likewise.
9514 (windows_nat_target::fetch_registers): Likewise.
9515 (windows_store_one_register): Likewise.
9516 (display_selector): Likewise.
9517 (display_selectors): Likewise.
9518 (handle_exception): Likewise.
9519 (windows_continue): Likewise.
9520 (windows_nat_target::resume): Likewise.
9521 (windows_add_all_dlls): Likewise.
9522 (do_initial_windows_stuff): Likewise.
9523 (windows_nat_target::attach): Likewise.
9524 (windows_get_exec_module_filename): Likewise.
9525 (windows_nat_target::create_inferior): Likewise.
9526 (windows_xfer_siginfo): Likewise.
9527 (_initialize_loadable): Initialize Wow64SuspendThread,
9528 Wow64GetThreadContext, Wow64SetThreadContext,
9529 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9530 * windows-nat.h (windows_set_context_register_offsets):
9531 Remove declaration.
9532 (windows_set_segment_register_p): Likewise.
9533 (i386_windows_segment_register_p): Add declaration.
9534 (amd64_windows_segment_register_p): Likewise.
9535
9536 2020-03-04 Luis Machado <luis.machado@linaro.org>
9537
9538 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9539 in "info registers" for AArch64/ARM.
9540
9541 The change caused "info registers" to not print GPR's.
9542
9543 gdb/ChangeLog:
9544
9545 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9546
9547 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9548 when reg->group is empty and reggroup is not.
9549
9550 2020-03-03 Tom Tromey <tromey@adacore.com>
9551
9552 * dwarf2/frame.c (struct dwarf2_frame_cache)
9553 <checked_tailcall_bottom, entry_cfa_sp_offset,
9554 entry_cfa_sp_offset_p>: Remove members.
9555 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9556 (dwarf2_frame_prev_register): Don't call
9557 dwarf2_tailcall_sniffer_first.
9558 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9559 * frame-unwind.c (add_unwinder): New fuction.
9560 (frame_unwind_init): Use it. Add tailcall unwinder.
9561
9562 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9563 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9564
9565 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9566 value should be printed as true.
9567
9568 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9569
9570 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9571 (windows_init_abi): Set and use windows_so_ops.
9572
9573 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9574
9575 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9576 when verifying if dealing with a convenience variable.
9577
9578 2020-03-03 Luis Machado <luis.machado@linaro.org>
9579
9580 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9581
9582 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9583
9584 * infrun.c (gdbarch_supports_displaced_stepping): New.
9585 (use_displaced_stepping): Break up conditions in smaller pieces.
9586 Use gdbarch_supports_displaced_stepping.
9587 (displaced_step_prepare_throw): Use
9588 gdbarch_supports_displaced_stepping.
9589
9590 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * NEWS: Mention new behaviour of the history filename.
9593 * top.c (write_history_p): Add comment.
9594 (show_write_history_p): Add header comment, give a different
9595 message when history writing is on, but the history filename is
9596 empty.
9597 (history_filename): Add comment.
9598 (history_filename_empty): New function.
9599 (show_history_filename): Add header comment, give a different
9600 message when the filename is empty.
9601 (init_history): Compare history_filename against nullptr, and only
9602 read history if the filename is not empty.
9603 (set_history_filename): Add header comment, and only make
9604 non-empty filenames absolute.
9605 (init_main): Make the filename argument to 'set history filename'
9606 optional.
9607
9608 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9609
9610 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9611 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9612 (fetch_fp_register): Update.
9613 (fetch_fp_regs): Update.
9614 (store_fp_register): Update.
9615 (store_fp_regs): Update.
9616 (arm_netbsd_nat_target::read_description): New function.
9617 (fetch_elfcore_registers): Update.
9618
9619 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9620
9621 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9622 general_thread if the stop reply is missing a thread-id.
9623 (remote_target::process_stop_reply): Use the first non-exited
9624 thread if the target didn't pass a thread-id.
9625 * infrun.c (do_target_wait): Move call to
9626 switch_to_inferior_no_thread to ....
9627 (do_target_wait_1): ... here.
9628
9629 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9630
9631 * debuginfod-support.c: Include defs.h first.
9632
9633 2020-02-28 Tom de Vries <tdevries@suse.de>
9634
9635 * symfile.c (set_initial_language): Use default language for lookup.
9636
9637 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9638
9639 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9640 reader variable, pass `this` to read_cutu_die_from_dwo.
9641
9642 2020-02-27 Aaron Merey <amerey@redhat.com>
9643
9644 * source.c (open_source_file): Check for nullptr when computing
9645 srcpath.
9646
9647 2020-02-27 Tom Tromey <tromey@adacore.com>
9648
9649 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9650 member.
9651 (dwarf2_add_field): Don't update nfields.
9652 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9653
9654 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9655
9656 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9657 abs.
9658
9659 2020-02-26 Tom Tromey <tom@tromey.com>
9660
9661 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9662 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9663 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9664 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9665 per_cu_data.
9666
9667 2020-02-26 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2/index-write.c (psym_index_map): Change type.
9670 (add_address_entry_worker, write_one_signatured_type)
9671 (recursively_count_psymbols, recursively_write_psymbols)
9672 (class debug_names, psyms_seen_size, write_gdbindex)
9673 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9674
9675 2020-02-26 Aaron Merey <amerey@redhat.com>
9676
9677 * Makefile.in: Handle optional debuginfod support.
9678 * NEWS: Update.
9679 * README: Add --with-debuginfod summary.
9680 * config.in: Regenerate.
9681 * configure: Regenerate.
9682 * configure.ac: Handle optional debuginfod support.
9683 * debuginfod-support.c: debuginfod helper functions.
9684 * debuginfod-support.h: Ditto.
9685 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9686 summary.
9687 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9688 when a dwz file cannot be found.
9689 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9690 debuginfo file cannot be found.
9691 * source.c (open_source_file): Query debuginfod servers when a
9692 source file cannot be found.
9693 * top.c (print_gdb_configuration): Include
9694 --{with,without}-debuginfod in the output.
9695
9696 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9697
9698 * thread.c (thr_try_catch_cmd): Print thread name.
9699
9700 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9703 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9704 dwarf2_fetch_die_type_sect_off): Move to...
9705 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9706 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9707 dwarf2_fetch_die_type_sect_off): ... here.
9708 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9709 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9710 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9711
9712 2020-02-26 Tom de Vries <tdevries@suse.de>
9713
9714 PR gdb/25603
9715 * symfile.c (set_initial_language): Exit-early if
9716 language_mode == language_mode_manual.
9717
9718 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9719
9720 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9721 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9722 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9723
9724 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9725
9726 * gdbtypes.c (create_array_type_with_stride): Handle negative
9727 array strides.
9728 * valarith.c (value_subscripted_rvalue): Likewise.
9729
9730 2020-02-25 Luis Machado <luis.machado@linaro.org>
9731
9732 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9733
9734 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9735
9736 * loc.h (dwarf2_get_die_type): Move to...
9737 * read.h (dwarf2_get_die_type): ... here.
9738 * read.c (dwarf2_get_die_type): Move doc to header.
9739
9740 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9741
9742 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9743 'gnulib/Makefile.in' to the list.
9744
9745 2020-02-24 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9748 Remove.
9749 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9750 XOBNEWVEC.
9751
9752 2020-02-24 Tom Tromey <tom@tromey.com>
9753
9754 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9755 New method.
9756 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9757 (dw2_do_instantiate_symtab, dw2_get_file_names)
9758 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9759
9760 2020-02-24 Tom Tromey <tom@tromey.com>
9761
9762 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9763 make_scoped_restore.
9764 (dwarf2_psymtab::read_symtab): Don't clear
9765 reading_partial_symbols.
9766
9767 2020-02-24 Tom de Vries <tdevries@suse.de>
9768
9769 PR gdb/25592
9770 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9771
9772 2020-02-24 Tom de Vries <tdevries@suse.de>
9773
9774 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9775 commands layout next/prev/regs.
9776
9777 2020-02-22 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9780 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9781
9782 2020-02-22 Tom Tromey <tom@tromey.com>
9783
9784 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9785
9786 2020-02-22 Tom Tromey <tom@tromey.com>
9787
9788 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9789 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9790 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9791 * tui/tui.c (_initialize_tui): Add usage text.
9792
9793 2020-02-22 Tom Tromey <tom@tromey.com>
9794
9795 * tui/tui-win.c (tui_set_focus_command)
9796 (tui_set_win_height_command): Use error_no_arg.
9797 (_initialize_tui_win): Update help text.
9798 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9799
9800 2020-02-22 Tom Tromey <tom@tromey.com>
9801
9802 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9803 * tui/tui-disasm.h (struct tui_disasm_window)
9804 <display_start_addr>: Declare.
9805 * tui/tui-source.h (struct tui_source_window)
9806 <display_start_addr>: Declare.
9807 * tui/tui-winsource.h (struct tui_source_window_base)
9808 <show_source_line, display_start_addr>: New methods.
9809 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9810 Rename and move to protected section.
9811 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9812 (tui_source_window_base::do_erase_source_content): Update.
9813 (tui_source_window_base::show_source_line): Now a method.
9814 (tui_source_window_base::show_source_content)
9815 (tui_source_window_base::tui_source_window_base)
9816 (tui_source_window_base::rerender)
9817 (tui_source_window_base::refill)
9818 (tui_source_window_base::do_scroll_horizontal)
9819 (tui_source_window_base::set_is_exec_point_at)
9820 (tui_source_window_base::update_breakpoint_info)
9821 (tui_source_window_base::update_exec_info): Update.
9822 * tui/tui-source.c (tui_source_window::set_contents)
9823 (tui_source_window::showing_source_p)
9824 (tui_source_window::do_scroll_vertical)
9825 (tui_source_window::location_matches_p)
9826 (tui_source_window::line_is_displayed): Update.
9827 (tui_source_window::display_start_addr): New method.
9828 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9829 (tui_disasm_window::do_scroll_vertical)
9830 (tui_disasm_window::location_matches_p): Update.
9831 (tui_disasm_window::display_start_addr): New method.
9832
9833 2020-02-22 Tom Tromey <tom@tromey.com>
9834
9835 * NEWS: Add entry for gdb.register_window_type.
9836 * tui/tui-layout.h (window_factory): New typedef.
9837 (tui_register_window): Declare.
9838 * tui/tui-layout.c (saved_tui_windows): New global.
9839 (tui_apply_current_layout): Use it.
9840 (tui_register_window): New function.
9841 * python/python.c (do_start_initialization): Call
9842 gdbpy_initialize_tui.
9843 (python_GdbMethods): Add "register_window_type" function.
9844 * python/python-internal.h (gdbpy_register_tui_window)
9845 (gdbpy_initialize_tui): Declare.
9846 * python/py-tui.c: New file.
9847 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9848
9849 2020-02-22 Tom Tromey <tom@tromey.com>
9850
9851 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9852
9853 2020-02-22 Tom Tromey <tom@tromey.com>
9854
9855 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9856 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9857 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9858 (tui_set_win_focus_to): Move from tui-win.c.
9859
9860 2020-02-22 Tom Tromey <tom@tromey.com>
9861
9862 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9863 functions.
9864 (known_window_types): New global.
9865 (tui_get_window_by_name): Reimplement.
9866 (initialize_known_windows): New function.
9867 (validate_window_name): Rewrite.
9868 (_initialize_tui_layout): Call initialize_known_windows.
9869
9870 2020-02-22 Tom Tromey <tom@tromey.com>
9871
9872 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9873 Remove constants.
9874 * tui/tui-winsource.h (struct tui_source_window_base)
9875 <tui_source_window_base>: Remove parameter.
9876 * tui/tui-winsource.c
9877 (tui_source_window_base::tui_source_window_base): Remove
9878 parameter.
9879 (tui_source_window_base::refill): Update.
9880 * tui/tui-stack.h (struct tui_locator_window)
9881 <tui_locator_window>: Update.
9882 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9883 Default the constructor.
9884 * tui/tui-regs.h (struct tui_data_item_window)
9885 <tui_data_item_window>: Default the constructor.
9886 (struct tui_data_window) <tui_data_window>: Likewise.
9887 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9888 Default the constructor.
9889 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9890 Default the constructor.
9891 <type>: Remove.
9892 (struct tui_win_info) <tui_win_info>: Default the constructor.
9893 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9894 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9895 Default the constructor.
9896
9897 2020-02-22 Tom Tromey <tom@tromey.com>
9898
9899 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9900 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9901 * tui/tui-win.c (tui_resize_all): Don't call
9902 tui_delete_invisible_windows.
9903 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9904 done.
9905 (tui_set_layout): Update.
9906 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9907 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9908 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9909
9910 2020-02-22 Tom Tromey <tom@tromey.com>
9911
9912 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9913 correctly.
9914
9915 2020-02-22 Tom Tromey <tom@tromey.com>
9916
9917 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9918
9919 2020-02-22 Tom Tromey <tom@tromey.com>
9920
9921 * tui/tui-winsource.h (struct tui_source_window_iterator)
9922 <inner_iterator>: New etytypedef.
9923 <tui_source_window_iterator>: Take "end" parameter.
9924 <tui_source_window_iterator>: Take iterator.
9925 <operator*, advance>: Update.
9926 <m_iter>: Change type.
9927 <m_end>: New field.
9928 (struct tui_source_windows) <begin, end>: Update.
9929 * tui/tui-layout.c (tui_windows): New global.
9930 (tui_apply_current_layout): Clear tui_windows.
9931 (tui_layout_window::apply): Update tui_windows.
9932 * tui/tui-data.h (tui_windows): Declare.
9933 (all_tui_windows): Now inline function.
9934 (class tui_window_iterator, struct all_tui_windows): Remove.
9935
9936 2020-02-22 Tom Tromey <tom@tromey.com>
9937
9938 PR tui/17850:
9939 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9940 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9941 "height" argument.
9942 (class tui_layout_window) <get_sizes>: Likewise.
9943 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9944 argument.
9945 <get_sizes>: Add "height" argument.
9946 <m_vertical>: New field.
9947 * tui/tui-layout.c (tui_layout_split::clone): Update.
9948 (tui_layout_split::get_sizes): Add "height" argument.
9949 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9950 (tui_new_layout_command): Parse "-horizontal".
9951 (_initialize_tui_layout): Update help string.
9952 (tui_layout_split::specification): Add "-horizontal" when needed.
9953 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9954 argument.
9955 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9956 New methods.
9957
9958 2020-02-22 Tom Tromey <tom@tromey.com>
9959
9960 * tui/tui-layout.h (enum tui_adjust_result): New.
9961 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9962 (class tui_layout_window) <adjust_size>: Return
9963 tui_adjust_result. Rewrite.
9964 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9965 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9966
9967 2020-02-22 Tom Tromey <tom@tromey.com>
9968
9969 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9970 parameter and return types.
9971 (class tui_layout_base) <specification>: Add "depth".
9972 (class tui_layout_window) <specification>: Add "depth".
9973 (class tui_layout_split) <specification>: Add "depth".
9974 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9975 and return types.
9976 (tui_new_layout_command): Parse sub-layouts.
9977 (_initialize_tui_layout): Update help string.
9978 (tui_layout_window::specification): Add "depth".
9979 (add_layout_command): Update.
9980
9981 2020-02-22 Tom Tromey <tom@tromey.com>
9982
9983 * NEWS: Add "tui new-layout" item.
9984 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9985 Add new-layout command to help text.
9986 (validate_window_name): New function.
9987 (tui_new_layout_command): New function.
9988 (_initialize_tui_layout): Register "new-layout".
9989 (tui_layout_window::specification): New method.
9990 (tui_layout_window::specification): New method.
9991 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9992 method.
9993 (class tui_layout_window) <specification>: New method.
9994 (class tui_layout_split) <specification>: New method.
9995
9996 2020-02-22 Tom Tromey <tom@tromey.com>
9997
9998 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9999 * tui/tui-win.c (window_name_completer): Update comment.
10000 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10001 Declare method.
10002 (class tui_layout_window) <replace_window>: Likewise.
10003 (class tui_layout_split) <replace_window>: Likewise.
10004 (tui_set_layout): Don't declare.
10005 (tui_set_initial_layout): Declare function.
10006 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10007 (asm_regs_layout): New globals.
10008 (tui_current_layout, show_layout): Remove.
10009 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10010 (find_layout, tui_apply_layout): New function.
10011 (layout_completer): Remove.
10012 (tui_next_layout): Reimplement.
10013 (tui_next_layout_command): New function.
10014 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10015 (tui_regs_layout): Reimplement.
10016 (tui_regs_layout_command): New function.
10017 (extract_display_start_addr): Rewrite.
10018 (next_layout, prev_layout): Remove.
10019 (tui_layout_window::replace_window): New method.
10020 (tui_layout_split::replace_window): New method.
10021 (destroy_layout): New function.
10022 (layout_list): New global.
10023 (add_layout_command): New function.
10024 (initialize_layouts): Update.
10025 (tui_layout_command): New function.
10026 (_initialize_tui_layout): Install "layout" commands.
10027 * tui/tui-data.h (enum tui_layout_type): Remove.
10028 (tui_current_layout): Don't declare.
10029
10030 2020-02-22 Tom Tromey <tom@tromey.com>
10031
10032 * tui/tui-regs.c (tui_reg_layout): Remove.
10033 (tui_reg_command): Use tui_regs_layout.
10034 * tui/tui-layout.h (tui_reg_command): Declare.
10035 * tui/tui-layout.c (tui_reg_command): New function.
10036
10037 2020-02-22 Tom Tromey <tom@tromey.com>
10038
10039 * tui/tui.c (tui_rl_delete_other_windows): Call
10040 tui_remove_some_windows.
10041 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10042 Declare method.
10043 (class tui_layout_window) <remove_windows>: New method.
10044 (class tui_layout_split) <remove_windows>: Declare.
10045 (tui_remove_some_windows): Declare.
10046 * tui/tui-layout.c (tui_remove_some_windows): New function.
10047 (tui_layout_split::remove_windows): New method.
10048
10049 2020-02-22 Tom Tromey <tom@tromey.com>
10050
10051 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10052 * tui/tui-layout.h (tui_next_layout): Declare.
10053 * tui/tui-layout.c (tui_next_layout): New function.
10054
10055 2020-02-22 Tom Tromey <tom@tromey.com>
10056
10057 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10058 correct coordinates.
10059
10060 2020-02-22 Tom Tromey <tom@tromey.com>
10061
10062 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10063 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10064 DATA_WIN case.
10065
10066 2020-02-22 Tom Tromey <tom@tromey.com>
10067
10068 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10069 TUI_DISASM_WIN, not tui_win_list.
10070
10071 2020-02-22 Tom Tromey <tom@tromey.com>
10072
10073 * valprint.c (generic_val_print_enum_1)
10074 (val_print_type_code_flags): Style member names.
10075 * rust-lang.c (val_print_struct, rust_print_enum)
10076 (rust_print_struct_def, rust_internal_print_type): Style member
10077 names.
10078 * p-valprint.c (pascal_object_print_value_fields): Style member
10079 names. Only call fprintf_symbol_filtered for static members.
10080 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10081 * f-valprint.c (f_val_print): Style member names.
10082 * f-typeprint.c (f_type_print_base): Style member names.
10083 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10084 call fprintf_symbol_filtered for static members.
10085 (cp_print_class_member): Style member names.
10086 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10087 member names.
10088 * ada-valprint.c (ada_print_scalar): Style enum names.
10089 (ada_val_print_enum): Likewise.
10090 * ada-typeprint.c (print_enum_type): Style enum names.
10091
10092 2020-02-21 Tom Tromey <tom@tromey.com>
10093
10094 * psympriv.h (struct partial_symtab): Update comment.
10095
10096 2020-02-21 Tom Tromey <tromey@adacore.com>
10097
10098 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10099 type is CORE_ADDR.
10100
10101 2020-02-21 Tom de Vries <tdevries@suse.de>
10102
10103 PR gdb/25534
10104 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10105 if dependencies[i]->user != NULL.
10106
10107 2020-02-21 Ali Tamur <tamur@google.com>
10108
10109 * dwarf2/read.c (dwarf2_name): Add null check.
10110
10111 2020-02-20 Tom Tromey <tom@tromey.com>
10112
10113 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10114 ">=", in binary search.
10115 (dwarf2_find_containing_comp_unit): New overload.
10116 (run_test): New self-test.
10117 (_initialize_dwarf2_read): Register new test.
10118
10119 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10120
10121 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10122 * riscv-tdep.h: Likewise.
10123 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10124 rv32-only CSR.
10125 * features/riscv/64bit-csr.xml: Regenerated.
10126
10127 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10128 Tom Tromey <tom@tromey.com>
10129
10130 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10131 of 'fputc_unfiltered'.
10132 (putchar_unfiltered): Call 'fputc_unfiltered'.
10133 (fputc_unfiltered): Call 'fputs_unfiltered'.
10134
10135 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10136
10137 * config.in: Regenerate.
10138 * configure: Regenerate.
10139 * configure.ac: Add --with-python-libdir option.
10140 * main.c: Use WITH_PYTHON_LIBDIR.
10141
10142 2020-02-19 Tom Tromey <tom@tromey.com>
10143
10144 * symtab.c (general_symbol_info::compute_and_set_names): Use
10145 obstack_strndup. Simplify call to symbol_set_demangled_name.
10146
10147 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * dwarf2/read.c (allocate_signatured_type_table,
10150 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10151 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10152 Remove objfile parameter, update all callers.
10153
10154 2020-02-19 Doug Evans <dje@google.com>
10155
10156 PR rust/25535
10157 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10158 rust_enum_variant calculation.
10159
10160 2020-02-19 Tom Tromey <tromey@adacore.com>
10161
10162 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10163
10164 2020-02-19 Tom Tromey <tromey@adacore.com>
10165
10166 * ada-lang.c (cache_symbol): Use obstack_strdup.
10167
10168 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10169
10170 * configure: Regenerate.
10171
10172 2020-02-19 Tom Tromey <tromey@adacore.com>
10173
10174 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10175 NULL check.
10176
10177 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10178
10179 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10180
10181 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10182
10183 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10184 if GDBSERVER is not defined.
10185 (riscv_tdesc_cache): Likewise, also store const target_desc.
10186 (STATIC_IN_GDB): Define.
10187 (riscv_create_target_description): Update declaration with
10188 STATIC_IN_GDB.
10189 (riscv_lookup_target_description): New function, only define if
10190 GDBSERVER is not defined.
10191 * arch/riscv.h (riscv_create_target_description): Declare only
10192 when GDBSERVER is defined.
10193 (riscv_lookup_target_description): New declaration when GDBSERVER
10194 is not defined.
10195 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10196 (riscv_linux_read_features): ...this, and return
10197 riscv_gdbarch_features instead of target_desc.
10198 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10199 (riscv_linux_read_description): Rename to...
10200 (riscv_linux_read_features): ...this.
10201 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10202 Update to use riscv_gdbarch_features and
10203 riscv_lookup_target_description.
10204 * riscv-tdep.c (riscv_find_default_target_description): Use
10205 riscv_lookup_target_description instead of
10206 riscv_create_target_description.
10207
10208 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10209
10210 * valprint.c (generic_val_print_enum_1): When printing a flag
10211 enum with value 0 and there is no enumerator with value 0, print
10212 just "0" instead of "(unknown: 0x0)".
10213
10214 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10215
10216 * valprint.c (generic_val_print_enum_1): Print unknown part of
10217 flag enum in hex.
10218
10219 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10220
10221 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10222 flag enums to contain duplicate enumerators.
10223 * valprint.c (generic_val_print_enum_1): Update comment.
10224
10225 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * dwarf2/read.c: Include "count-one-bits.h".
10228 (update_enumeration_type_from_children): If an enumerator has
10229 multiple bits set, don't treat the enumeration as a "flag enum".
10230 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10231 of flag enums have 0 or 1 bit set.
10232
10233 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10234
10235 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10236 conversion.
10237 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10238 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10239 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10240 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10241 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10242
10243 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10246
10247 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10248
10249 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10250 displaced_step_closure_up.
10251 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10252 (struct displaced_step_closure_up):
10253 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10254 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10255 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10256 Likewise.
10257 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10258 * gdbarch.c, gdbarch.h: Re-generate.
10259 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10260 displaced_step_closure_up.
10261 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10262 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10263 * infrun.h (displaced_step_closure_up): New type alias.
10264 (struct displaced_step_inferior_state) <step_closure>: Change
10265 type to displaced_step_closure_up.
10266 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10267 displaced_step_closure_up.
10268 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10269
10270 2020-02-14 Tom Tromey <tom@tromey.com>
10271
10272 * minidebug.c (gnu_debug_key): New global.
10273 (find_separate_debug_file_in_section): Use it.
10274
10275 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10278 std::unique_ptr.
10279 * gdbarch.c: Re-generate.
10280 * gdbarch.h: Re-generate.
10281 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10282 change.
10283 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10284 type to std::unique_ptr.
10285 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10286 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10287 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10288 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10289 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10290 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10291 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10292 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10293 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10294
10295 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10298 std::unique_ptr.
10299 (displaced_step_clear): Rename to...
10300 (displaced_step_reset): ... this. Just call displaced->reset ().
10301 (displaced_step_clear_cleanup): Rename to...
10302 (displaced_step_reset_cleanup): ... this.
10303 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10304 (displaced_step_fixup): Likewise.
10305 (resume_1): Likewise.
10306 (handle_inferior_event): Restore child's memory before calling
10307 displaced_step_fixup on the parent.
10308 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10309 to std::unique_ptr.
10310 <step_closure>: Change type to std::unique_ptr.
10311
10312 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * arm-tdep.c: Include count-one-bits.h.
10315 (cleanup_block_store_pc): Use count_one_bits.
10316 (cleanup_block_load_pc): Use count_one_bits.
10317 (arm_copy_block_xfer): Use count_one_bits.
10318 (thumb2_copy_block_xfer): Use count_one_bits.
10319 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10320 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10321 (thumb_get_next_pcs_raw): Use count_one_bits.
10322 (arm_get_next_pcs_raw): Use count_one_bits_l.
10323 * arch/arm.c (bitcount): Remove.
10324 * arch/arm.h (bitcount): Remove.
10325
10326 2020-02-14 Tom Tromey <tromey@adacore.com>
10327
10328 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10329 Update.
10330 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10331 * dwarf2/loc.c (call_site_find_chain_1): Return
10332 unique_xmalloc_ptr.
10333 (call_site_find_chain): Likewise.
10334
10335 2020-02-14 Richard Biener <rguenther@suse.de>
10336
10337 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10338 on expression with division operators.
10339
10340 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10341
10342 * MAINTAINERS (Write After Approval): Adding myself.
10343
10344 2020-02-12 Tom Tromey <tom@tromey.com>
10345
10346 * event-loop.c (event_data, gdb_event, event_handler_func):
10347 Remove.
10348
10349 2020-02-12 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10352 (dwarf2_frame_objfile_data): Add comment.
10353 (find_comp_unit, set_comp_unit): New functions.
10354 (dwarf2_frame_find_fde): Use find_comp_unit.
10355 (dwarf2_build_frame_info): Use set_comp_unit.
10356
10357 2020-02-12 Tom Tromey <tom@tromey.com>
10358
10359 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10360 (comp_unit): Don't initialize objfile.
10361 (execute_cfa_program): Add text_offset parameter.
10362 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10363 (dwarf2_frame_cache): Update.
10364 (dwarf2_build_frame_info): Don't set "objfile" member.
10365
10366 2020-02-12 Tom Tromey <tom@tromey.com>
10367
10368 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10369 (decode_frame_entry): Likewise.
10370 (dwarf2_build_frame_info): Update.
10371
10372 2020-02-12 Tom Tromey <tom@tromey.com>
10373
10374 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10375 (decode_frame_entry_1): Use the comp_unit obstack.
10376
10377 2020-02-12 Tom Tromey <tom@tromey.com>
10378
10379 * dwarf2/frame.c (struct comp_unit): Add initializers and
10380 constructor.
10381 (dwarf2_frame_objfile_data): Store a comp_unit.
10382 (dwarf2_frame_find_fde): Update.
10383 (dwarf2_build_frame_info): Use "new".
10384
10385 2020-02-12 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10388 (dwarf2_fde_table): Typedef for std::vector.
10389 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10390 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10391 (decode_frame_entry): Update.
10392 (dwarf2_build_frame_info): Use "new".
10393
10394 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10395
10396 * arm-tdep.c (arm_gdbarch_init): Update.
10397 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10398 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10399 have_neon, is_m>: Change to bool.
10400
10401 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10402
10403 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10404
10405 2020-02-12 Tom Tromey <tom@tromey.com>
10406
10407 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10408
10409 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10410
10411 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10412 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10413
10414 2020-02-11 Tom Tromey <tom@tromey.com>
10415
10416 * psymtab.h: Update comment.
10417
10418 2020-02-11 Tom Tromey <tom@tromey.com>
10419
10420 * gdb_obstack.h (struct auto_obstack): Use
10421 DISABLE_COPY_AND_ASSIGN.
10422
10423 2020-02-11 Tom Tromey <tom@tromey.com>
10424
10425 * dwarf2/frame.h (struct objfile): Don't forward declare.
10426
10427 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10428
10429 * cris-tdep.c (cris_supply_gregset): Change signature to match
10430 what struct regset expects.
10431 (cris_regset): New struct.
10432 (fetch_core_registers): Remove.
10433 (cris_iterate_over_regset_sections): New function.
10434 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10435 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10436
10437 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10438
10439 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10440 registers.
10441
10442 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10443
10444 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10445
10446 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * configure: Re-generate.
10449
10450 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10451
10452 * configure: Re-generate.
10453
10454 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10455
10456 * acinclude: Update warning.m4 path.
10457 * warning.m4: Move to gdbsupport.
10458
10459 2020-02-11 Tom Tromey <tromey@adacore.com>
10460
10461 * remote.c (remote_console_output): Update.
10462 * printcmd.c (printf_command): Update.
10463 * event-loop.c (gdb_wait_for_event): Update.
10464 * linux-nat.c (sigchld_handler): Update.
10465 * remote-sim.c (gdb_os_write_stdout): Update.
10466 (gdb_os_flush_stdout): Update.
10467 (gdb_os_flush_stderr): Update.
10468 (gdb_os_write_stderr): Update.
10469 * exceptions.c (print_exception): Update.
10470 * remote-fileio.c (remote_fileio_func_read): Update.
10471 (remote_fileio_func_write): Update.
10472 * tui/tui.c (tui_enable): Update.
10473 * tui/tui-interp.c (tui_interp::init): Update.
10474 * utils.c (init_page_info): Update.
10475 (putchar_unfiltered, fputc_unfiltered): Update.
10476 (gdb_flush): Update.
10477 (emit_style_escape): Update.
10478 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10479 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10480 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10481 (stderr_file::write): Update.
10482 (stderr_file::puts): Update.
10483 * ui-file.h (ui_file_isatty, ui_file_write)
10484 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10485 (ui_file_puts): Don't declare.
10486
10487 2020-02-10 Tom de Vries <tdevries@suse.de>
10488
10489 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10490 sentinel to char *.
10491
10492 2020-02-09 Tom de Vries <tdevries@suse.de>
10493
10494 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10495 filename if it matches "<artificial>".
10496
10497 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10498
10499 * windows-tdep.c (struct enum_value_name): New struct.
10500 (create_enum): New function.
10501 (windows_get_siginfo_type): Create and use enum types.
10502
10503 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10504
10505 * NEWS: Mention $_siginfo support for Windows.
10506 * windows-nat.c (handle_exception): Set siginfo_er.
10507 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10508 (windows_xfer_siginfo): New function.
10509 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10510 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10511 (init_windows_gdbarch_data): New function.
10512 (get_windows_gdbarch_data): New function.
10513 (windows_get_siginfo_type): New function.
10514 (windows_init_abi): Register windows_get_siginfo_type.
10515 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10516
10517 2020-02-08 Tom Tromey <tom@tromey.com>
10518
10519 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10520 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10521 <keep>: Declare method.
10522 <m_keep>: Remove member.
10523 <~cutu_reader>: Remove.
10524 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10525 (cutu_reader::cutu_reader): Update.
10526 (cutu_reader::keep): Rename from ~cutu_reader.
10527 (process_psymtab_comp_unit, build_type_psymtabs_1)
10528 (process_skeletonless_type_unit, load_partial_comp_unit)
10529 (load_full_comp_unit, dwarf2_read_addr_index)
10530 (read_signatured_type): Update.
10531
10532 2020-02-08 Tom Tromey <tom@tromey.com>
10533
10534 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10535 "want_partial_unit" parameter.
10536 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10537 Inline check for DW_TAG_partial_unit.
10538 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10539
10540 2020-02-08 Tom Tromey <tom@tromey.com>
10541
10542 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10543 read.c.
10544 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10545 read.c.
10546
10547 2020-02-08 Tom Tromey <tom@tromey.com>
10548
10549 * dwarf2/read.c (read_address): Move to comp-unit.c.
10550 (dwarf2_rnglists_process, dwarf2_ranges_process)
10551 (read_attribute_value, dwarf_decode_lines_1)
10552 (var_decode_location, decode_locdesc): Update.
10553 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10554 read.c. Remove "cu" parameter.
10555 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10556 method.
10557
10558 2020-02-08 Tom Tromey <tom@tromey.com>
10559
10560 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10561 (read_indirect_line_string): Update.
10562 * dwarf2/comp-unit.c (read_offset): Remove.
10563 (read_comp_unit_head): Update.
10564 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10565 method.
10566 (read_offset): Don't declare.
10567
10568 2020-02-08 Tom Tromey <tom@tromey.com>
10569
10570 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10571 * dwarf2/read.c (struct comp_unit_head): Move to
10572 dwarf2/comp-unit.h.
10573 (enum class rcuh_kind): Move to comp-unit.h.
10574 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10575 (read_comp_unit_head, error_check_comp_unit_head)
10576 (read_and_check_comp_unit_head): Move to comp-unit.c.
10577 (read_offset, dwarf_unit_type_name): Likewise.
10578 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10579 (cutu_reader::cutu_reader, read_call_site_scope)
10580 (find_partial_die, follow_die_offset): Update.
10581 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10582
10583 2020-02-08 Tom Tromey <tom@tromey.com>
10584
10585 * dwarf2/read.c (read_offset_1): Move to leb.c.
10586 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10587 (dwarf_decode_macro_bytes): Update.
10588 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10589 * dwarf2/leb.h (read_offset): Declare.
10590
10591 2020-02-08 Tom Tromey <tom@tromey.com>
10592
10593 * dwarf2/read.c (dwarf2_section_size): Remove.
10594 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10595 Update.
10596 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10597
10598 2020-02-08 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2/read.c (read_initial_length): Move to leb.c.
10601 * dwarf2/leb.h (read_initial_length): Declare.
10602 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10603 handle_nonstd parameter.
10604 * dwarf2/frame.c (read_initial_length): Remove.
10605 (decode_frame_entry_1): Update.
10606
10607 2020-02-08 Tom Tromey <tom@tromey.com>
10608
10609 * dwarf2/loc.c (dwarf2_find_location_expression)
10610 (dwarf_evaluate_loc_desc::get_tls_address)
10611 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10612 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10613 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10614 (dwarf2_compile_property_to_c)
10615 (dwarf2_loc_desc_get_symbol_read_needs)
10616 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10617 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10618 (loclist_describe_location, loclist_tracepoint_var_ref)
10619 (loclist_generate_c_location): Update.
10620 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10621 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10622 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10623 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10624 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10625 (dwarf2_per_cu_data::addr_size)
10626 (dwarf2_per_cu_data::ref_addr_size)
10627 (dwarf2_per_cu_data::text_offset)
10628 (dwarf2_per_cu_data::addr_type): Now methods.
10629 (per_cu_header_read_in): Make per_cu "const".
10630 (dwarf2_version): Remove.
10631 (dwarf2_per_cu_data::int_type): Now a method.
10632 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10633 (set_die_type, read_array_type, read_subrange_index_type)
10634 (read_tag_string_type, read_subrange_type): Update.
10635 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10636 offset_size, ref_addr_size, text_offset, addr_type, version,
10637 objfile, int_type, addr_sized_int_type>: Declare methods.
10638
10639 2020-02-08 Tom Tromey <tom@tromey.com>
10640
10641 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10642 Move earlier.
10643
10644 2020-02-08 Tom Tromey <tom@tromey.com>
10645
10646 * dwarf2/read.h (dwarf_line_debug): Declare.
10647 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10648 * dwarf2/read.c: Move line_header code to new files.
10649 (dwarf_line_debug): No longer static.
10650 * dwarf2/line-header.c: New file.
10651 * dwarf2/line-header.h: New file.
10652
10653 2020-02-08 Tom Tromey <tom@tromey.com>
10654
10655 * dwarf2/read.c (struct line_header) <file_full_name,
10656 file_file_name>: Return unique_xmalloc_ptr.
10657 (line_header::file_file_name): Update.
10658 (line_header::file_full_name): Update.
10659 (dw2_get_file_names_reader): Update.
10660 (macro_start_file): Update.
10661
10662 2020-02-08 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2/read.c (struct line_header) <file_full_name,
10665 file_file_name>: Declare methods.
10666 (dw2_get_file_names_reader): Update.
10667 (file_file_name): Now a method.
10668 (file_full_name): Likewise.
10669 (macro_start_file): Update.
10670
10671 2020-02-08 Tom Tromey <tom@tromey.com>
10672
10673 * dwarf2/read.c (dwarf_always_disassemble)
10674 (show_dwarf_always_disassemble): Move to loc.c.
10675 (_initialize_dwarf2_read): Move "always-disassemble" registration
10676 to loc.c.
10677 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10678 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10679 static.
10680 (show_dwarf_always_disassemble): Move from read.c.
10681 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10682
10683 2020-02-08 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10686 (create_quick_file_names_table): Return htab_up.
10687 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10688 Update.
10689 * dwarf2/read.h (struct dwarf2_per_objfile)
10690 <quick_file_names_table>: Now htab_up.
10691
10692 2020-02-08 Tom Tromey <tom@tromey.com>
10693
10694 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10695
10696 2020-02-08 Tom Tromey <tom@tromey.com>
10697
10698 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10699 Rewrite.
10700 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10701 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10702 (abbrev_table::abbrev_table): No longer inline.
10703 (ABBREV_HASH_SIZE): Remove.
10704 (abbrev_table::m_abbrevs): Now an htab_up.
10705
10706 2020-02-08 Tom Tromey <tom@tromey.com>
10707
10708 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10709 (cutu_reader): Update.
10710 (build_type_psymtabs_1): Update.
10711 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10712 (abbrev_table::alloc_abbrev): Update.
10713 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10714 (abbrev_table::read): New static method, renamed from
10715 abbrev_table_read_table.
10716 (abbrev_table::alloc_abbrev)
10717 (abbrev_table::add_abbrev): Now private.
10718 (abbrev_table::abbrev_table): Now private.
10719 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10720
10721 2020-02-08 Tom Tromey <tom@tromey.com>
10722
10723 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10724 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10725 htab_up.
10726
10727 2020-02-08 Tom Tromey <tom@tromey.com>
10728
10729 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10730 htab_up.
10731 (lookup_dwo_unit_in_dwp): Update.
10732 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10733 on obstack.
10734
10735 2020-02-08 Tom Tromey <tom@tromey.com>
10736
10737 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10738 obstack.
10739
10740 2020-02-08 Tom Tromey <tom@tromey.com>
10741
10742 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10743 line_header_hash.
10744 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10745 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10746 Change type to htab_up.
10747
10748 2020-02-08 Tom Tromey <tom@tromey.com>
10749
10750 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10751 htab_up. Don't allocate on obstack.
10752 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10753 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10754 Change type to htab_up.
10755
10756 2020-02-08 Tom Tromey <tom@tromey.com>
10757
10758 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10759 Change type to htab_up.
10760 * dwarf2/read.c (create_signatured_type_table_from_index)
10761 (create_signatured_type_table_from_debug_names)
10762 (create_all_type_units, add_type_unit)
10763 (lookup_dwo_signatured_type, lookup_signatured_type)
10764 (process_skeletonless_type_unit): Update.
10765 (create_debug_type_hash_table, create_debug_types_hash_table):
10766 Change type of types_htab.
10767 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10768 htab_up. Don't allocate on obstack.
10769 (create_cus_hash_table): Change type of cus_htab parameter.
10770 (struct dwo_file) <cus, tus>: Now htab_up.
10771 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10772 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10773 (queue_and_load_all_dwo_tus): Update.
10774 * dwarf2/index-write.c (write_gdbindex): Update.
10775 (write_debug_names): Update.
10776
10777 2020-02-08 Tom Tromey <tom@tromey.com>
10778
10779 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10780 dwarf2/read.c. Remove "next" member. Add constructor ntad
10781 destructor.
10782 (struct dwarf2_per_objfile) <queue>: New member.
10783 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10784 dwarf2/read.h.
10785 (dwarf2_queue, dwarf2_queue_tail): Remove.
10786 (class dwarf2_queue_guard): Add parameter to constructor. Use
10787 DISABLE_COPY_AND_ASSIGN.
10788 <m_per_objfile>: New member.
10789 <~dwarf2_queue_guard>: Rewrite.
10790 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10791 Update.
10792 (~dwarf2_queue_item): New.
10793
10794 2020-02-08 Tom Tromey <tom@tromey.com>
10795
10796 * dwarf2/read.c (struct die_info) <has_children>: New member.
10797 (dw2_get_file_names_reader): Remove has_children.
10798 (dw2_get_file_names): Update.
10799 (read_cutu_die_from_dwo): Remove has_children.
10800 (cutu_reader::init_tu_and_read_dwo_dies)
10801 (cutu_reader::cutu_reader): Update.
10802 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10803 Remove has_children.
10804 (build_type_psymtabs_1, process_skeletonless_type_unit)
10805 (load_partial_comp_unit, load_full_comp_unit): Update.
10806 (create_dwo_cu_reader): Remove has_children.
10807 (create_cus_hash_table, read_die_and_children): Update.
10808 (read_full_die_1,read_full_die): Remove has_children.
10809 (read_signatured_type): Update.
10810 (class cutu_reader) <has_children>: Remove.
10811
10812 2020-02-08 Tom Tromey <tom@tromey.com>
10813
10814 * dwarf2/expr.c: Rename from dwarf2expr.c.
10815 * dwarf2/expr.h: Rename from dwarf2expr.h.
10816 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10817 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10818 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10819 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10820 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10821 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10822 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10823 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10824 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10825 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10826 * dwarf2/loc.c: Rename from dwarf2loc.c.
10827 * dwarf2/loc.h: Rename from dwarf2loc.h.
10828 * dwarf2/read.c: Rename from dwarf2read.c.
10829 * dwarf2/read.h: Rename from dwarf2read.h.
10830 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10831 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10832 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10833 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10834 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10835 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10836 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10837 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10838 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10839 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10840 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10841 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10842 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10843 Update.
10844 * Makefile.in (COMMON_SFILES): Update.
10845 (HFILES_NO_SRCDIR): Update.
10846
10847 2020-02-08 Tom Tromey <tom@tromey.com>
10848
10849 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10850 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10851
10852 2020-02-08 Tom Tromey <tom@tromey.com>
10853
10854 * dwarf2read.h (struct die_info): Don't declare.
10855
10856 2020-02-08 Tom Tromey <tom@tromey.com>
10857
10858 * dwarf2read.h (die_info_ptr): Remove typedef.
10859
10860 2020-02-08 Tom Tromey <tom@tromey.com>
10861
10862 * dwarf2read.c (read_call_site_scope)
10863 (handle_data_member_location, dwarf2_add_member_fn)
10864 (mark_common_block_symbol_computed, read_common_block)
10865 (attr_to_dynamic_prop, partial_die_info::read)
10866 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10867 (dwarf2_symbol_mark_computed, set_die_type): Update.
10868 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10869 method.
10870 (attr_form_is_block): Don't declare.
10871 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10872
10873 2020-02-08 Tom Tromey <tom@tromey.com>
10874
10875 * dwarf2read.c (dwarf2_find_base_address, )
10876 (read_call_site_scope, rust_containing_type)
10877 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10878 (handle_data_member_location, dwarf2_add_member_fn)
10879 (get_alignment, read_structure_type, process_structure_scope)
10880 (mark_common_block_symbol_computed, read_common_block)
10881 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10882 (partial_die_info::read, read_attribute_value, new_symbol)
10883 (lookup_die_type, dwarf2_get_ref_die_offset)
10884 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10885 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10886 (dwarf2_symbol_mark_computed): Update.
10887 * dwarf2/attribute.h (struct attribute) <value_as_address,
10888 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10889 methods.
10890 (value_as_address, attr_form_is_section_offset)
10891 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10892 * dwarf2/attribute.c (attribute::value_as_address)
10893 (attribute::form_is_section_offset, attribute::form_is_constant)
10894 (attribute::form_is_ref): Now methods.
10895
10896 2020-02-08 Tom Tromey <tom@tromey.com>
10897
10898 * dwarf2read.c (struct attribute, DW_STRING)
10899 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10900 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10901 (attr_form_is_block, attr_form_is_section_offset)
10902 (attr_form_is_constant, attr_form_is_ref): Move.
10903 * dwarf2/attribute.h: New file.
10904 * dwarf2/attribute.c: New file, from dwarf2read.c.
10905 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10906
10907 2020-02-08 Tom Tromey <tom@tromey.com>
10908
10909 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10910 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10911 Move.
10912 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10913 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10914 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10915 abbrev.c.
10916 * dwarf2/abbrev.h: New file.
10917 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10918 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10919
10920 2020-02-08 Tom Tromey <tom@tromey.com>
10921
10922 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10923 (dwarf2_section_size, dwarf2_get_section_info)
10924 (create_signatured_type_table_from_debug_names)
10925 (create_addrmap_from_aranges, read_debug_names_from_section)
10926 (get_gdb_index_contents_from_section, read_comp_unit_head)
10927 (error_check_comp_unit_head, read_abbrev_offset)
10928 (create_debug_type_hash_table, init_cu_die_reader)
10929 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10930 (read_comp_units_from_section, create_cus_hash_table)
10931 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10932 (create_dwp_v2_section, dwarf2_rnglists_process)
10933 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10934 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10935 (read_indirect_string_from_dwz, read_addr_index_1)
10936 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10937 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10938 (fill_in_loclist_baton): Update.
10939 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10940 get_containing_section, get_bfd_owner, get_bfd_section,
10941 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10942 (dwarf2_read_section, get_section_name, get_section_file_name)
10943 (get_containing_section, get_section_bfd_owner)
10944 (get_section_bfd_section, get_section_name, get_section_file_name)
10945 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10946 declare.
10947 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10948 (dwarf2_section_info::get_bfd_owner)
10949 (dwarf2_section_info::get_bfd_section)
10950 (dwarf2_section_info::get_name)
10951 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10952 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10953 (dwarf2_section_info::read): Now methods.
10954 * dwarf-index-write.c (class debug_names): Update.
10955
10956 2020-02-08 Tom Tromey <tom@tromey.com>
10957
10958 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10959 Move to dwarf2/section.h.
10960 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10961 (get_section_bfd_section, get_section_name)
10962 (get_section_file_name, get_section_id, get_section_flags)
10963 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10964 dwarf2/section.c.
10965 * dwarf2/section.h: New file.
10966 * dwarf2/section.c: New file, from dwarf2read.c.
10967 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10968
10969 2020-02-08 Tom Tromey <tom@tromey.com>
10970
10971 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10972 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10973 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10974 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10975 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10976 * dwarf2/leb.h: New file, from dwarf2read.c.
10977 * dwarf2/leb.c: New file, from dwarf2read.c.
10978 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10979 Remove.
10980 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10981 (COMMON_SFILES): Add dwarf2/leb.c.
10982
10983 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10984
10985 GDB 9.1 released.
10986
10987 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10988
10989 PR gdb/25190:
10990 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10991 * gdb/remote.c (remote_console_output): Update.
10992 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10993 (ui_file_puts): ...this.
10994 * gdb/ui-file.h (ui_file_puts): Add declaration.
10995 * gdb/utils.c (emit_style_escape): Update.
10996 (flush_wrap_buffer): Update.
10997 (fputs_maybe_filtered): Update.
10998 (fputs_unfiltered): Add function.
10999
11000 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11001
11002 * gdb/event-loop.c (gdb_wait_for_event): Update.
11003 * gdb/printcmd.c (printf_command): Update.
11004 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11005 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11006 (gdb_os_flush_stderr): Update.
11007 * gdb/remote.c (remote_console_output): Update.
11008 * gdb/ui-file.c (gdb_flush): Rename to...
11009 (ui_file_flush): ...this.
11010 (stderr_file::write): Update.
11011 (stderr_file::puts): Update.
11012 * gdb/ui-file.h (gdb_flush): Rename to...
11013 (ui_file_flush): ...this.
11014 * gdb/utils.c (gdb_flush): Add function.
11015 * gdb/utils.h (gdb_flush): Add declaration.
11016
11017 2020-02-07 Tom Tromey <tromey@adacore.com>
11018
11019 PR breakpoints/24915:
11020 * source.c (find_and_open_source): Do not check basenames_may_differ.
11021
11022 2020-02-07 Tom Tromey <tom@tromey.com>
11023
11024 * README: Update gdbserver documentation.
11025 * gdbserver: Move to top level.
11026 * configure.tgt (build_gdbserver): Remove.
11027 * configure.ac: Remove --enable-gdbserver.
11028 * configure: Rebuild.
11029 * Makefile.in (distclean): Don't mention gdbserver.
11030
11031 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11032
11033 * source-cache.c (source_cache::ensure): Surround
11034 get_plain_source_lines with a try/catch.
11035 (source_cache::get_line_charpos): Get rid of try/catch
11036 and only check for the return value of "ensure".
11037 * tui/tui-source.c (tui_source_window::set_contents):
11038 Simplify "nlines" calculation.
11039
11040 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11041
11042 * MAINTAINERS (Write After Approval): Add myself.
11043
11044 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11045
11046 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11047 function call.
11048
11049 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11050
11051 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11052
11053 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11054
11055 * nat/riscv-linux-tdesc.h: New file.
11056 * nat/riscv-linux-tdesc.c: New file, taking code from...
11057 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11058 ... here.
11059 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11060 NATDEPFILES.
11061
11062 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11063
11064 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11065 we don't set the fake simulator ptid to the null_ptid.
11066
11067 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11070 * gdbthread.h (class thread_info) <resumed>: Likewise.
11071 * infrun.c (resume_1): Likewise.
11072 (proceed): Likewise.
11073 (infrun_thread_stop_requested): Likewise.
11074 (stop_all_threads): Likewise.
11075 (handle_inferior_event): Likewise.
11076 (restart_threads): Likewise.
11077 (finish_step_over): Likewise.
11078 (keep_going_stepped_thread): Likewise.
11079 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11080 (linux_handle_extended_wait): Likewise.
11081 * record-btrace.c (get_thread_current_frame_id): Likewise.
11082 * record-full.c (record_full_wait_1): Likewise.
11083 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11084 * target.c (target_resume): Likewise.
11085 * thread.c (set_running_thread): Likewise.
11086
11087 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11088
11089 * f-valprint.c (f77_print_array_1): Changed datatype of index
11090 variable to LONGEST from int to enable it to contain bound
11091 values correctly.
11092
11093 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11094
11095 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11096 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11097 offsets according to FLEN determined.
11098 (riscv_linux_nat_target::read_description): Determine FLEN
11099 dynamically.
11100 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11101 according to FLEN determined.
11102 (riscv_linux_nat_target::store_registers): Likewise.
11103
11104 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11105
11106 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11107 when reg->group is empty and reggroup is not.
11108
11109 2020-01-31 Tom Tromey <tromey@adacore.com>
11110
11111 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11112 Call beneath target's mourn_inferior after unpushing.
11113
11114 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11115
11116 PR tui/9765
11117 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11118 have enough lines to fill the screen, still return the lowest
11119 address we found.
11120
11121 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11122
11123 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11124 '-', '<', and '>' commands.
11125
11126 2020-01-29 Pedro Alves <palves@redhat.com>
11127 Sergio Durigan Junior <sergiodj@redhat.com>
11128
11129 * infcmd.c (construct_inferior_arguments): Assert that
11130 'argc' is greater than 0.
11131
11132 2020-01-29 Luis Machado <luis.machado@linaro.org>
11133
11134 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11135 (BRK_INSN_MASK): Define to 0xd4200000.
11136 (aarch64_program_breakpoint_here_p): New function.
11137 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11138 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11139 breakpoint.c.
11140 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11141 breakpoint.h
11142 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11143 call gdbarch_program_breakpoint_here_p.
11144 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11145 default_program_breakpoint_here_p, changed return type to bool and
11146 simplified.
11147 * breakpoint.h (program_breakpoint_here): Moved prototype to
11148 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11149 return type to bool.
11150 * gdbarch.c: Regenerate.
11151 * gdbarch.h: Regenerate.
11152 * gdbarch.sh (program_breakpoint_here_p): New method.
11153 * infrun.c (handle_signal_stop): Call
11154 gdbarch_program_breakpoint_here_p.
11155
11156 2020-01-26 Tom Tromey <tom@tromey.com>
11157
11158 * ctfread.c (struct ctf_fp_info): Reindent.
11159 (_initialize_ctfread): Remove.
11160
11161 2020-01-26 Tom Tromey <tom@tromey.com>
11162
11163 * psymtab.c (partial_map_expand_apply)
11164 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11165 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11166 (psym_print_stats, psym_expand_symtabs_for_function)
11167 (psym_map_symbol_filenames, psym_map_matching_symbols)
11168 (psym_expand_symtabs_matching)
11169 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11170 (maintenance_check_psymtabs): Use new methods.
11171 * psympriv.h (struct partial_symtab) <readin_p,
11172 get_compunit_symtab>: New methods.
11173 <readin, compunit_symtab>: Remove members.
11174 (struct standard_psymtab): New.
11175 (struct legacy_psymtab): Derive from standard_psymtab.
11176 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11177 standard_psymtab.
11178 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11179
11180 2020-01-26 Tom Tromey <tom@tromey.com>
11181
11182 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11183 read_dependencies. Add assert.
11184 * psymtab.c (partial_symtab::read_dependencies): New method.
11185 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11186 method.
11187 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11188 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11189 read_dependencies.
11190 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11191 Add assert.
11192
11193 2020-01-26 Tom Tromey <tom@tromey.com>
11194
11195 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11196 Call expand_psymtab.
11197 (xcoff_read_symtab): Call expand_psymtab.
11198 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11199 legacy_expand_psymtab.
11200 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11201 method.
11202 (struct legacy_psymtab) <expand_psymtab>: Implement.
11203 <legacy_expand_psymtab>: New member.
11204 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11205 (parse_partial_symbols): Set legacy_expand_psymtab.
11206 (psymtab_to_symtab_1): Change argument order. Call
11207 expand_psymtab.
11208 (new_psymtab): Set legacy_expand_psymtab.
11209 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11210 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11211 expand_psymtab.
11212 (dwarf2_psymtab::expand_psymtab): Rename from
11213 psymtab_to_symtab_1. Call expand_psymtab.
11214 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11215 (dbx_end_psymtab): Likewise.
11216 (dbx_psymtab_to_symtab_1): Change argument order. Call
11217 expand_psymtab.
11218 (dbx_read_symtab): Call expand_psymtab.
11219 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11220 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11221 (ctf_psymtab::read_symtab): Call expand_psymtab.
11222
11223 2020-01-26 Tom Tromey <tom@tromey.com>
11224
11225 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11226 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11227 messages.
11228 * mdebugread.c (mdebug_read_symtab): Remove prints.
11229 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11230 assert.
11231 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11232
11233 2020-01-26 Tom Tromey <tom@tromey.com>
11234
11235 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11236 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11237 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11238 legacy_symtab.
11239 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11240 * psymtab.c (psymtab_to_symtab): Call method.
11241 (dump_psymtab): Update.
11242 * psympriv.h (struct partial_symtab): Add virtual destructor.
11243 <read_symtab>: New method.
11244 (struct legacy_symtab): New.
11245 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11246 (struct pst_map) <pst>: Now a legacy_psymtab.
11247 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11248 (new_psymtab): Use legacy_psymtab.
11249 * dwarf2read.h (struct dwarf2_psymtab): New.
11250 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11251 * dwarf2read.c (dwarf2_create_include_psymtab)
11252 (dwarf2_build_include_psymtabs, create_type_unit_group)
11253 (create_partial_symtab, process_psymtab_comp_unit_reader)
11254 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11255 (set_partial_user): Use dwarf2_psymtab.
11256 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11257 (psymtab_to_symtab_1, process_full_comp_unit)
11258 (process_full_type_unit, dwarf2_ranges_read)
11259 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11260 (dwarf_decode_lines): Use dwarf2_psymtab.
11261 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11262 (add_address_entry_worker, write_one_signatured_type)
11263 (recursively_count_psymbols, recursively_write_psymbols)
11264 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11265 (write_debug_names): Likewise.
11266 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11267 <pst>: Now a legacy_psymtab.
11268 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11269 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11270 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11271 * ctfread.c (struct ctf_psymtab): New.
11272 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11273 ctf_psymtab.
11274 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11275 (create_partial_symtab): Return a ctf_psymtab.
11276 (scan_partial_symbols): Update.
11277
11278 2020-01-26 Tom Tromey <tom@tromey.com>
11279
11280 * xcoffread.c (xcoff_start_psymtab): Use new.
11281 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11282 renamed from start_psymtab_common.
11283 * psympriv.h (struct partial_symtab): Add new constructor.
11284 (start_psymtab_common): Don't declare.
11285 * mdebugread.c (parse_partial_symbols): Use new.
11286 * dwarf2read.c (create_partial_symtab): Use new.
11287 * dbxread.c (start_psymtab): Use new.
11288 * ctfread.c (create_partial_symtab): Use new.
11289
11290 2020-01-26 Tom Tromey <tom@tromey.com>
11291
11292 * xcoffread.c (xcoff_end_psymtab): Use new.
11293 * psymtab.c (start_psymtab_common): Use new.
11294 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11295 Update.
11296 * psympriv.h (struct partial_symtab): Add parameters to
11297 constructor. Don't inline.
11298 (allocate_psymtab): Don't declare.
11299 * mdebugread.c (new_psymtab): Use new.
11300 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11301 * dbxread.c (dbx_end_psymtab): Use new.
11302
11303 2020-01-26 Tom Tromey <tom@tromey.com>
11304
11305 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11306 allocate_psymtab. Update documentation.
11307 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11308 allocate_psymtab. Do not use new.
11309 (allocate_psymtab): Use new. Update.
11310
11311 2020-01-26 Tom Tromey <tom@tromey.com>
11312
11313 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11314 * psymtab.c (psym_print_stats): Update.
11315 * psympriv.h (struct partial_symtab) <readin,
11316 psymtabs_addrmap_supported, anonymous>: Now bool.
11317 * mdebugread.c (psymtab_to_symtab_1): Update.
11318 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11319 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11320 (process_full_comp_unit, process_full_type_unit): Update.
11321 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11322 * ctfread.c (psymtab_to_symtab): Update.
11323
11324 2020-01-26 Tom Tromey <tom@tromey.com>
11325
11326 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11327 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11328 * psymtab.c (psymtab_storage): Delete psymtabs.
11329 (psymtab_storage::allocate_psymtab): Use new.
11330 (psymtab_storage::discard_psymtab): Use delete.
11331 * psympriv.h (struct partial_symtab): Add constructor and
11332 initializers.
11333
11334 2020-01-26 Tom Tromey <tom@tromey.com>
11335
11336 * machoread.c: Do not include psympriv.h.
11337
11338 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11339
11340 * NEWS: Mention the new option and the set/show commands.
11341
11342 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11343
11344 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11345 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11346 (validate_exec_file): New variables, enums, functions.
11347 (exec_file_locate_attach, print_section_info): Style the filenames.
11348 (_initialize_exec): Install show_exec_file_mismatch_command and
11349 set_exec_file_mismatch_command.
11350 * gdbcore.h (validate_exec_file): Declare.
11351 * infcmd.c (attach_command): Call validate_exec_file.
11352 * remote.c ( remote_target::remote_add_inferior): Likewise.
11353
11354 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11355
11356 * frame.c (find_frame_sal): Move call to get_next_frame into more
11357 inner scope.
11358 * inline-frame.c (inilne_state) <inline_state>: Update argument
11359 types.
11360 (inilne_state) <skipped_symbol>: Rename to...
11361 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11362 (skip_inline_frames): Build vector of skipped symbols and use this
11363 to reate the inline_state.
11364 (inline_skipped_symbol): Add a comment and some assertions, fetch
11365 skipped symbol from the list.
11366
11367 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * buildsym.c (lte_is_less_than): Delete.
11370 (buildsym_compunit::end_symtab_with_blockvector): Create local
11371 lambda function to sort line table entries, and use
11372 std::stable_sort instead of std::sort.
11373 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11374 markers when looking for a previous line.
11375
11376 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11377
11378 * dwarf2read.c (lnp_state_machine::record_line): Include
11379 end_sequence parameter in debug print out. Record the line if we
11380 are at an end_sequence marker even if it's not the start of a
11381 statement.
11382 * symmisc.c (maintenance_print_one_line_table): Print end of
11383 sequence markers with 'END' not '0'.
11384
11385 2020-01-24 Pedro Alves <palves@redhat.com>
11386
11387 PR gdb/25410
11388 * thread.c (scoped_restore_current_thread::restore): Use
11389 switch_to_inferior_no_thread.
11390 * exec.c: Include "progspace-and-thread.h".
11391 (add_target_sections, remove_target_sections):
11392 scoped_restore_current_pspace_and_thread instead of
11393 scoped_restore_current_thread.
11394 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11395 and aspace to the inferior before calling clone_program_space.
11396 Remove stale comment.
11397
11398 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11399
11400 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11401 (arm_netbsd_nat_target::fetch_registers): ...this.
11402 (arm_nbsd_nat_target::store_registers): Rename to...
11403 (arm_netbsd_nat_target::store_registers): ...this.
11404
11405 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11406
11407 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11408 register_t.
11409
11410 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11411
11412 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11413 Update comment.
11414 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11415 Likewise.
11416 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11417 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11418 the correct replacement (iterate_over_regset_sections).
11419 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11420 Update comment.
11421
11422 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11423
11424 PR gdb/23718
11425 * gdb/python/python.c (execute_gdb_command): Call
11426 async_enable_stdin in catch block.
11427
11428 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11429
11430 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11431 SWITCH_THRU_ALL_UIS.
11432
11433 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11434
11435 PR tui/9765
11436 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11437 comment, add extra parameter, and update to store previous symbol
11438 when appropriate.
11439 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11440 add extra parameter.
11441 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11442 remove unneeded parameter, add try/catch around gdb_print_insn,
11443 rewrite to add items to asm_lines vector.
11444 (tui_find_backward_disassembly_start_address): New function.
11445 (tui_find_disassembly_address): Updated throughout.
11446 (tui_disasm_window::set_contents): Update for changes to
11447 tui_disassemble.
11448 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11449 number of lines to scroll.
11450
11451 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11452
11453 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11454 (SECT_OFF_DATA): Likewise.
11455 (SECT_OFF_RODATA): Likewise.
11456 (SECT_OFF_TEXT): Likewise.
11457 (SECT_OFF_BSS): Likewise.
11458 (struct objfile) <text_section_offset, data_section_offset>: New
11459 methods.
11460 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11461 objfile::text_section_offset.
11462 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11463 * coffread.c (coff_symtab_read): Likewise.
11464 (enter_linenos): Likewise.
11465 (process_coff_symbol): Likewise.
11466 * ctfread.c (get_objfile_text_range): Likewise.
11467 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11468 Use objfile::data_section_offset.
11469 * dwarf2-frame.c (execute_cfa_program): Use
11470 objfile::text_section_offset.
11471 (dwarf2_frame_find_fde): Likewise.
11472 * dwarf2read.c (create_addrmap_from_index): Likewise.
11473 (create_addrmap_from_aranges): Likewise.
11474 (dw2_find_pc_sect_compunit_symtab): Likewise.
11475 (process_psymtab_comp_unit_reader): Likewise.
11476 (add_partial_symbol): Likewise.
11477 (add_partial_subprogram): Likewise.
11478 (process_full_comp_unit): Likewise.
11479 (read_file_scope): Likewise.
11480 (read_func_scope): Likewise.
11481 (read_lexical_block_scope): Likewise.
11482 (read_call_site_scope): Likewise.
11483 (dwarf2_rnglists_process): Likewise.
11484 (dwarf2_ranges_process): Likewise.
11485 (dwarf2_ranges_read): Likewise.
11486 (dwarf_decode_lines_1): Likewise.
11487 (new_symbol): Likewise.
11488 (dwarf2_fetch_die_loc_sect_off): Likewise.
11489 (dwarf2_per_cu_text_offset): Likewise.
11490 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11491 * hppa-tdep.c (read_unwind_info): Likewise.
11492 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11493 * psympriv.h (struct partial_symtab): Likewise.
11494 * psymtab.c (find_pc_sect_psymtab): Likewise.
11495 * solib-svr4.c (enable_break): Likewise.
11496 * stap-probe.c (relocate_address): Use
11497 objfile::data_section_offset.
11498 * xcoffread.c (enter_line_range): Use
11499 objfile::text_section_offset.
11500 (read_xcoff_symtab): Likewise.
11501
11502 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11503
11504 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11505 declaration to narrower scopes.
11506
11507 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11508
11509 * darwin-nat.h (struct darwin_exception_msg, enum
11510 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11511 Move up.
11512 (class darwin_nat_target) <wait_1, check_new_threads,
11513 decode_exception_message, decode_message, stop_inferior,
11514 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11515 * darwin-nat.c (darwin_check_new_threads): Rename to...
11516 (darwin_nat_target::check_new_threads): ... this.
11517 (darwin_suspend_inferior_it): Remove.
11518 (darwin_decode_exception_message): Rename to...
11519 (darwin_nat_target::decode_exception_message): ... this.
11520 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11521 (darwin_decode_message): Rename to...
11522 (darwin_nat_target::decode_message): ... this.
11523 (cancel_breakpoint): Rename to...
11524 (darwin_nat_target::cancel_breakpoint): ... this.
11525 (darwin_wait): Rename to...
11526 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11527 instead of iterate_over_inferiors.
11528 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11529 (darwin_stop_inferior): Rename to...
11530 (darwin_nat_target::stop_inferior): ... this.
11531 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11532 (darwin_init_thread_list): Rename to...
11533 (darwin_nat_target::init_thread_list): ... this.
11534 (darwin_ptrace_him): Rename to...
11535 (darwin_nat_target::ptrace_him): ... this.
11536 (darwin_nat_target::create_inferior): Pass lambda function to
11537 fork_inferior.
11538 (darwin_nat_target::detach): Call stop_inferior instead of
11539 darwin_stop_inferior.
11540 * fork-inferior.h (fork_inferior): Change init_trace_fun
11541 parameter to gdb::function_view.
11542 * fork-inferior.c (fork_inferior): Likewise.
11543
11544 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11545
11546 * i386-cygwin-tdep.c (core_process_module_section): Update.
11547 * windows-nat.c (struct lm_info_windows): Add text_offset.
11548 (windows_xfer_shared_libraries): Update.
11549 * windows-tdep.c (windows_xfer_shared_library):
11550 Add text_offset_cached argument.
11551 * windows-tdep.h (windows_xfer_shared_library): Update.
11552
11553 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11554
11555 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11556
11557 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11558
11559 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11560 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11561 replace with range-based for.
11562 (gdbsim_interrupt_inferior): Remove.
11563 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11564 with a range-based for. Inline code from
11565 gdbsim_interrupt_inferior.
11566
11567 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11568
11569 * infrun.c (proceed): Fix indentation.
11570
11571 2020-01-21 Tom Tromey <tromey@adacore.com>
11572
11573 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11574 * python/python.c (python_extension_ops): Update.
11575 (gdbpy_colorize): New function.
11576 * python/lib/gdb/__init__.py (colorize): New function.
11577 * extension.h (ext_lang_colorize): Declare.
11578 * extension.c (ext_lang_colorize): New function.
11579 * extension-priv.h (struct extension_language_ops) <colorize>: New
11580 member.
11581 * cli/cli-style.c (_initialize_cli_style): Update help text.
11582
11583 2020-01-21 Luis Machado <luis.machado@linaro.org>
11584
11585 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11586 <cond>: Change type to bool.
11587 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11588 (aarch64_displaced_step_cb): Likewise.
11589 (aarch64_displaced_step_tb): Likewise.
11590
11591 2020-01-21 Luis Machado <luis.machado@linaro.org>
11592
11593 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11594 output.
11595
11596 2020-01-21 Luis Machado <luis.machado@linaro.org>
11597
11598 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11599 <pc_adjust>: Adjust the documentation.
11600 (aarch64_displaced_step_fixup): Check if PC really moved before
11601 adjusting it.
11602
11603 2020-01-19 Tom Tromey <tom@tromey.com>
11604
11605 * disasm.c (~gdb_disassembler): New destructor.
11606 (gdb_buffered_insn_length): Call disassemble_free_target.
11607 * disasm.h (class gdb_disassembler): Declare destructor. Use
11608 DISABLE_COPY_AND_ASSIGN.
11609
11610 2020-01-19 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11613 (die_reader_func_ftype): Remove.
11614 (cutu_reader): New class.
11615 (dw2_get_file_names_reader): Remove "data" parameter.
11616 (dw2_get_file_names): Use cutu_reader.
11617 (create_debug_type_hash_table): Update.
11618 (read_cutu_die_from_dwo): Update comment.
11619 (lookup_dwo_unit): Add dwo_name parameter.
11620 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11621 die_reader_func_ftype and data parameters.
11622 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11623 Remove die_reader_func_ftype and data parameters.
11624 (~cutu_reader): New; from init_cutu_and_read_dies.
11625 (cutu_reader::cutu_reader): Rename from
11626 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11627 and data parameters.
11628 (init_cutu_and_read_dies_simple): Remove.
11629 (struct process_psymtab_comp_unit_data): Remove.
11630 (process_psymtab_comp_unit_reader): Remove data parameter; add
11631 want_partial_unit and pretend_language parameters.
11632 (process_psymtab_comp_unit): Use cutu_reader.
11633 (build_type_psymtabs_reader): Remove data parameter.
11634 (build_type_psymtabs_1): Use cutu_reader.
11635 (process_skeletonless_type_unit): Likewise.
11636 (load_partial_comp_unit_reader): Remove.
11637 (load_partial_comp_unit): Use cutu_reader.
11638 (load_full_comp_unit_reader): Remove.
11639 (load_full_comp_unit): Use cutu_reader.
11640 (struct create_dwo_cu_data): Remove.
11641 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11642 dwo_unit parameters.
11643 (create_cus_hash_table): Use cutu_reader.
11644 (struct dwarf2_read_addr_index_data): Remove.
11645 (dwarf2_read_addr_index_reader): Remove.
11646 (dwarf2_read_addr_index): Use cutu_reader.
11647 (read_signatured_type_reader): Remove.
11648 (read_signatured_type): Use cutu_reader.
11649
11650 2020-01-19 Tom Tromey <tom@tromey.com>
11651
11652 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11653 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11654 (tui_wrefresh): Declare.
11655 * tui/tui-wingeneral.c (suppress_output): New global.
11656 (tui_suppress_output, ~tui_suppress_output): New constructor and
11657 destructor.
11658 (tui_wrefresh): New function.
11659 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11660 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11661 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11662 method.
11663 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11664 tui_wrefresh.
11665 (tui_data_window::no_refresh): New method.
11666 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11667 (tui_reg_command): Use tui_suppress_output
11668 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11669 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11670 method.
11671 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11672
11673 2020-01-19 Tom Tromey <tom@tromey.com>
11674
11675 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11676 Handle case where symtab is null.
11677
11678 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11679
11680 * linux-fork.c (one_fork_p): Simplify.
11681
11682 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11683
11684 * top.c (struct qt_args): Remove.
11685 (kill_or_detach): Change return type to void, replace `void *`
11686 parameter with a proper one.
11687 (print_inferior_quit_action): Likewise.
11688 (quit_confirm): Use range-based for loop to iterate over inferiors.
11689 (quit_force): Likewise.
11690
11691 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11692
11693 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11694 `void *` parameter with proper parameters.
11695 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11696 (print_one_inferior): Change return type to void, replace `void *`
11697 parameter with proper parameters.
11698 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11699 inferiors.
11700 (get_other_inferior): Remove.
11701 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11702 inferiors.
11703
11704 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11705
11706 * mi/mi-interp.c (report_initial_inferior): Remove.
11707 (mi_interp::init): Use range-based for to iterate over inferiors.
11708
11709 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11710
11711 * python/py-inferior.c (build_inferior_list): Remove.
11712 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11713
11714 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11715
11716 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11717 (btrace_stitch_trace): Likewise.
11718 * charset.c (intermediate_encoding): Likewise (vaild).
11719 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11720 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11721 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11722
11723 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11724
11725 * windows-tdep.c (windows_get_tlb_type):
11726 Add rtl_user_process_parameters type.
11727
11728 2020-01-16 Pedro Alves <palves@redhat.com>
11729 Norbert Lange <nolange79@gmail.com>
11730
11731 PR build/24805
11732 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11733 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11734 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11735 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11736 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11737 (ps_plog): Redeclare exported functions with default visibility.
11738
11739 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11740
11741 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11742 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11743
11744 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11745
11746 * infcmd.c (post_create_inferior): Use get_thread_regcache
11747 instead of get_current_regcache.
11748
11749 2020-01-14 Tom Tromey <tom@tromey.com>
11750
11751 PR symtab/12535:
11752 * python/python.c (gdbpy_decode_line): Treat empty string the same
11753 as no argument.
11754
11755 2020-01-14 Tom Tromey <tom@tromey.com>
11756
11757 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11758
11759 2020-01-14 Tom Tromey <tom@tromey.com>
11760
11761 * nat/linux-btrace.c: Don't include <config.h>.
11762 * nat/linux-ptrace.c: Don't include <config.h>.
11763 * nat/x86-linux-dregs.c: Don't include <config.h>.
11764
11765 2020-01-14 Tom Tromey <tom@tromey.com>
11766
11767 * configure: Rebuild.
11768 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11769
11770 2020-01-14 Tom Tromey <tom@tromey.com>
11771
11772 * nat/x86-linux-dregs.c: Include configh.h.
11773 * nat/linux-ptrace.c: Include configh.h.
11774 * nat/linux-btrace.c: Include configh.h.
11775 * defs.h: Include config.h, bfd.h.
11776 * configure.ac: Don't source common.host.
11777 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11778 * configure: Rebuild.
11779 * acinclude.m4: Update path.
11780 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11781 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11782 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11783 (CLIBS): Add LIBSUPPORT.
11784 (CDEPS): Likewise.
11785 (COMMON_SFILES): Remove gdbsupport files.
11786 (HFILES_NO_SRCDIR): Likewise.
11787 (stamp-version): Update path to create-version.sh.
11788 (ALLDEPFILES): Remove gdbsupport files.
11789
11790 2020-01-14 Tom Tromey <tom@tromey.com>
11791
11792 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11793 USE_WIN32API when needed.
11794 * configure.ac (USE_WIN32API): Don't define.
11795 (WIN32LIBS): Use WIN32APILIBS.
11796 * configure: Rebuild.
11797
11798 2020-01-14 Tom Tromey <tom@tromey.com>
11799
11800 * configure: Rebuild.
11801 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11802
11803 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11804
11805 * skip.c (skip_function_command): Make skip w/o arguments use the
11806 name of the inlined function if pc is inside any inlined function.
11807
11808 2020-01-14 Luis Machado <luis.machado@linaro.org>
11809
11810 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11811 * infrun.c (resume_1): Likewise.
11812 (handle_inferior_event): Remove stale comment.
11813 * linux-nat.c (linux_nat_target::resume): Update comments.
11814 (save_stop_reason): Likewise.
11815 (linux_nat_filter_event): Likewise.
11816 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11817
11818 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11819
11820 * elfread.c (record_minimal_symbol): Set section index to 0 for
11821 non-allocatable sections.
11822
11823
11824 2020-01-13 Ali Tamur <tamur@google.com>
11825
11826 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11827 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11828 to gdb::optional. Update comments.
11829 (dwo_file): Update comments.
11830 (read_attribute): Update API to take an additional out parameter,
11831 need_reprocess. This is used to mark attributes that need other
11832 attributes (e.g. str_offsets_base) for correct computation which may not
11833 have been read yet.
11834 (read_attribute_reprocess): New function declaration.
11835 (read_addr_index): Likewise.
11836 (read_dwo_str_index): Likewise.
11837 (read_stub_str_index): Likewise.
11838 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11839 (lookup_addr_base): New function definition.
11840 (lookup_ranges_base): Likewise.
11841 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11842 lookup_ranges_base.
11843 (init_cutu_and_read_dies): Update comments.
11844 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11845 unit. This is used to inherit parent's str_offsets_base and addr_base.
11846 Update comments.
11847 (init_cutu_and_read_dies_simple): Reflect API changes.
11848 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11849 (create_cus_hash_table): Change API to take parent compile unit.
11850 Reflect API changes.
11851 (open_and_init_dwo_file): Reflect API changes.
11852 (dwarf2_get_pc_bounds): Update comments.
11853 (dwarf2_record_block_ranges): Likewise.
11854 (read_full_die_1): Change implementation to reprocess attributes that
11855 need str_offsets_base and addr_base.
11856 (partial_die_info::read): Likewise.
11857 (read_attribute_reprocess): New function definition.
11858 (read_attribute_value): Change API to take an additional out parameter,
11859 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11860 when a non-dwo compile unit has index based attributes.
11861 (read_attribute): Reflect API changes.
11862 (read_addr_index_1): Reflect API changes. Update comments.
11863 (dwarf2_read_addr_index_data): Reflect API changes.
11864 (dwarf2_read_addr_index): Likewise.
11865 (read_str_index): Change API and implementation. This becomes a helper
11866 to be used by the new string index related methods. Update error
11867 message and comments.
11868 (read_dwo_str_index): New function definition.
11869 (read_stub_str_index): Likewise.
11870 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11871 * symfile.h (dwarf2_debug_sections): Likewise.
11872 * xcoffread.c (dwarf2_debug_sections): Likewise.
11873
11874 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11875
11876 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11877 core_reg_sect type to gdb_byte *.
11878 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11879 * cris-tdep.c (fetch_core_registers): Likewise.
11880 * corelow.c (core_target::get_core_register_section): Change
11881 type of `contents` to gdb::byte_vector.
11882
11883 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11884
11885 * tui/tui-wingeneral.c (box_win): Position the title in the center
11886 of the border.
11887
11888 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11889
11890 * corelow.c (core_target::get_core_register_section): Use
11891 std::vector instead of alloca.
11892
11893 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11894
11895 * warning.m4: Add -Wmissing-declarations to build_warnings.
11896 * configure: Re-generate.
11897
11898 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11899
11900 * python/python.c (init__gdb_module): Add declaration.
11901
11902 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11903
11904 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11905 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11906 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11907 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11908 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11909 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11910 * ada-exp.y (_initialize_ada_exp): Add declaration.
11911 * ada-lang.c (_initialize_ada_language): Add declaration.
11912 * ada-tasks.c (_initialize_tasks): Add declaration.
11913 * agent.c (_initialize_agent): Add declaration.
11914 * aix-thread.c (_initialize_aix_thread): Add declaration.
11915 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11916 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11917 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11918 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11919 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11920 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11921 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11922 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11923 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11924 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11925 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11926 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11927 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11928 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11929 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11930 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11931 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11932 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11933 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11934 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11935 * annotate.c (_initialize_annotate): Add declaration.
11936 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11937 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11938 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11939 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11940 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11941 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11942 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11943 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11944 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11945 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11946 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11947 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11948 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11949 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11950 * auto-load.c (_initialize_auto_load): Add declaration.
11951 * auxv.c (_initialize_auxv): Add declaration.
11952 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11953 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11954 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11955 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11956 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11957 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11958 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11959 * breakpoint.c (_initialize_breakpoint): Add declaration.
11960 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11961 * btrace.c (_initialize_btrace): Add declaration.
11962 * charset.c (_initialize_charset): Add declaration.
11963 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11964 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11965 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11966 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11967 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11968 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11969 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11970 * coffread.c (_initialize_coffread): Add declaration.
11971 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11972 * compile/compile.c (_initialize_compile): Add declaration.
11973 * complaints.c (_initialize_complaints): Add declaration.
11974 * completer.c (_initialize_completer): Add declaration.
11975 * copying.c (_initialize_copying): Add declaration.
11976 * corefile.c (_initialize_core): Add declaration.
11977 * corelow.c (_initialize_corelow): Add declaration.
11978 * cp-abi.c (_initialize_cp_abi): Add declaration.
11979 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11980 * cp-support.c (_initialize_cp_support): Add declaration.
11981 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11982 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11983 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11984 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11985 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11986 * ctfread.c (_initialize_ctfread): Add declaration.
11987 * d-lang.c (_initialize_d_language): Add declaration.
11988 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11989 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11990 * dbxread.c (_initialize_dbxread): Add declaration.
11991 * dcache.c (_initialize_dcache): Add declaration.
11992 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11993 * disasm.c (_initialize_disasm): Add declaration.
11994 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11995 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11996 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11997 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11998 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11999 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12000 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12001 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12002 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12003 * elfread.c (_initialize_elfread): Add declaration.
12004 * exec.c (_initialize_exec): Add declaration.
12005 * extension.c (_initialize_extension): Add declaration.
12006 * f-lang.c (_initialize_f_language): Add declaration.
12007 * f-valprint.c (_initialize_f_valprint): Add declaration.
12008 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12009 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12010 * filesystem.c (_initialize_filesystem): Add declaration.
12011 * findcmd.c (_initialize_mem_search): Add declaration.
12012 * findvar.c (_initialize_findvar): Add declaration.
12013 * fork-child.c (_initialize_fork_child): Add declaration.
12014 * frame-base.c (_initialize_frame_base): Add declaration.
12015 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12016 * frame.c (_initialize_frame): Add declaration.
12017 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12018 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12019 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12020 * gcore.c (_initialize_gcore): Add declaration.
12021 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12022 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12023 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12024 * gdbarch.c (_initialize_gdbarch): Add declaration.
12025 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12026 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12027 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12028 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12029 * go-lang.c (_initialize_go_language): Add declaration.
12030 * go32-nat.c (_initialize_go32_nat): Add declaration.
12031 * guile/guile.c (_initialize_guile): Add declaration.
12032 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12033 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12034 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12035 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12036 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12037 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12038 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12039 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12040 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12041 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12042 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12043 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12044 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12045 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12046 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12047 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12048 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12049 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12050 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12051 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12052 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12053 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12054 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12055 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12056 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12057 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12058 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12059 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12060 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12061 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12062 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12063 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12064 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12065 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12066 * infcall.c (_initialize_infcall): Add declaration.
12067 * infcmd.c (_initialize_infcmd): Add declaration.
12068 * inflow.c (_initialize_inflow): Add declaration.
12069 * infrun.c (_initialize_infrun): Add declaration.
12070 * interps.c (_initialize_interpreter): Add declaration.
12071 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12072 * jit.c (_initialize_jit): Add declaration.
12073 * language.c (_initialize_language): Add declaration.
12074 * linux-fork.c (_initialize_linux_fork): Add declaration.
12075 * linux-nat.c (_initialize_linux_nat): Add declaration.
12076 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12077 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12078 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12079 * m2-lang.c (_initialize_m2_language): Add declaration.
12080 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12081 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12082 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12083 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12084 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12085 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12086 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12087 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12088 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12089 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12090 * machoread.c (_initialize_machoread): Add declaration.
12091 * macrocmd.c (_initialize_macrocmd): Add declaration.
12092 * macroscope.c (_initialize_macroscope): Add declaration.
12093 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12094 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12095 * maint.c (_initialize_maint_cmds): Add declaration.
12096 * mdebugread.c (_initialize_mdebugread): Add declaration.
12097 * memattr.c (_initialize_mem): Add declaration.
12098 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12099 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12100 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12101 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12102 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12103 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12104 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12105 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12106 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12107 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12108 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12109 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12110 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12111 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12112 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12113 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12114 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12115 * mipsread.c (_initialize_mipsread): Add declaration.
12116 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12117 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12118 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12119 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12120 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12121 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12122 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12123 * nto-procfs.c (_initialize_procfs): Add declaration.
12124 * objc-lang.c (_initialize_objc_language): Add declaration.
12125 * observable.c (_initialize_observer): Add declaration.
12126 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12127 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12128 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12129 * osabi.c (_initialize_gdb_osabi): Add declaration.
12130 * osdata.c (_initialize_osdata): Add declaration.
12131 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12132 * parse.c (_initialize_parse): Add declaration.
12133 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12134 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12135 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12136 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12137 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12138 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12139 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12140 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12141 * printcmd.c (_initialize_printcmd): Add declaration.
12142 * probe.c (_initialize_probe): Add declaration.
12143 * proc-api.c (_initialize_proc_api): Add declaration.
12144 * proc-events.c (_initialize_proc_events): Add declaration.
12145 * proc-service.c (_initialize_proc_service): Add declaration.
12146 * procfs.c (_initialize_procfs): Add declaration.
12147 * producer.c (_initialize_producer): Add declaration.
12148 * psymtab.c (_initialize_psymtab): Add declaration.
12149 * python/python.c (_initialize_python): Add declaration.
12150 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12151 * record-btrace.c (_initialize_record_btrace): Add declaration.
12152 * record-full.c (_initialize_record_full): Add declaration.
12153 * record.c (_initialize_record): Add declaration.
12154 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12155 * regcache.c (_initialize_regcache): Add declaration.
12156 * reggroups.c (_initialize_reggroup): Add declaration.
12157 * remote-notif.c (_initialize_notif): Add declaration.
12158 * remote-sim.c (_initialize_remote_sim): Add declaration.
12159 * remote.c (_initialize_remote): Add declaration.
12160 * reverse.c (_initialize_reverse): Add declaration.
12161 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12162 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12163 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12164 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12165 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12166 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12167 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12168 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12169 Add declaration.
12170 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12171 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12172 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12173 * rust-exp.y (_initialize_rust_exp): Add declaration.
12174 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12175 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12176 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12177 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12178 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12179 * score-tdep.c (_initialize_score_tdep): Add declaration.
12180 * ser-go32.c (_initialize_ser_dos): Add declaration.
12181 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12182 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12183 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12184 * ser-uds.c (_initialize_ser_socket): Add declaration.
12185 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12186 * serial.c (_initialize_serial): Add declaration.
12187 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12188 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12189 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12190 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12191 * skip.c (_initialize_step_skip): Add declaration.
12192 * sol-thread.c (_initialize_sol_thread): Add declaration.
12193 * solib-aix.c (_initialize_solib_aix): Add declaration.
12194 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12195 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12196 * solib-frv.c (_initialize_frv_solib): Add declaration.
12197 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12198 * solib-target.c (_initialize_solib_target): Add declaration.
12199 * solib.c (_initialize_solib): Add declaration.
12200 * source-cache.c (_initialize_source_cache): Add declaration.
12201 * source.c (_initialize_source): Add declaration.
12202 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12203 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12204 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12205 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12206 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12207 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12208 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12209 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12210 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12211 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12212 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12213 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12214 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12215 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12216 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12217 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12218 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12219 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12220 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12221 * stabsread.c (_initialize_stabsread): Add declaration.
12222 * stack.c (_initialize_stack): Add declaration.
12223 * stap-probe.c (_initialize_stap_probe): Add declaration.
12224 * std-regs.c (_initialize_frame_reg): Add declaration.
12225 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12226 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12227 * symfile.c (_initialize_symfile): Add declaration.
12228 * symmisc.c (_initialize_symmisc): Add declaration.
12229 * symtab.c (_initialize_symtab): Add declaration.
12230 * target.c (_initialize_target): Add declaration.
12231 * target-connection.c (_initialize_target_connection): Add
12232 declaration.
12233 * target-dcache.c (_initialize_target_dcache): Add declaration.
12234 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12235 * thread.c (_initialize_thread): Add declaration.
12236 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12237 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12238 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12239 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12240 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12241 * tracectf.c (_initialize_ctf): Add declaration.
12242 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12243 * tracefile.c (_initialize_tracefile): Add declaration.
12244 * tracepoint.c (_initialize_tracepoint): Add declaration.
12245 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12246 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12247 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12248 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12249 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12250 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12251 * tui/tui.c (_initialize_tui): Add declaration.
12252 * typeprint.c (_initialize_typeprint): Add declaration.
12253 * ui-style.c (_initialize_ui_style): Add declaration.
12254 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12255 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12256 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12257 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12258 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12259 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12260 * unittests/filtered_iterator-selftests.c
12261 (_initialize_filtered_iterator_selftests): Add declaration.
12262 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12263 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12264 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12265 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12266 * unittests/main-thread-selftests.c
12267 (_initialize_main_thread_selftests): Add declaration.
12268 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12269 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12270 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12271 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12272 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12273 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12274 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12275 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12276 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12277 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12278 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12279 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12280 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12281 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12282 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12283 declaration.
12284 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12285 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12286 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12287 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12288 * user-regs.c (_initialize_user_regs): Add declaration.
12289 * utils.c (_initialize_utils): Add declaration.
12290 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12291 * valops.c (_initialize_valops): Add declaration.
12292 * valprint.c (_initialize_valprint): Add declaration.
12293 * value.c (_initialize_values): Add declaration.
12294 * varobj.c (_initialize_varobj): Add declaration.
12295 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12296 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12297 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12298 * windows-nat.c (_initialize_windows_nat): Add declaration.
12299 (_initialize_check_for_gdb_ini): Add declaration.
12300 (_initialize_loadable): Add declaration.
12301 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12302 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12303 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12304 * xcoffread.c (_initialize_xcoffread): Add declaration.
12305 * xml-support.c (_initialize_xml_support): Add declaration.
12306 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12307 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12308 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12309 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12310
12311 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12312
12313 * regformats/regdat.sh: Generate declaration for init function.
12314
12315 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12316
12317 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12318 up.
12319 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12320 close_one_inferior>: New methods.
12321 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12322 pass down target to find_inferior_pid.
12323 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12324 Pass down target to find_inferior_ptid.
12325 (gdbsim_target::create_inferior): Pass down target to
12326 add_thread_silent.
12327 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12328 target down to find_inferior_ptid and switch_to_thread.
12329 (gdbsim_target::close): Update to call close_one_inferior.
12330 (struct resume_data): Remove.
12331 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12332 directly, rather than through a void pointer.
12333 (gdbsim_target::resume): Update to call resume_one_inferior.
12334
12335 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12336
12337 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12338
12339 2020-01-12 Pedro Alves <palves@redhat.com>
12340
12341 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12342 directly for the current inferior instead of
12343 discard_all_inferiors.
12344 (discard_all_inferiors): Delete.
12345
12346 2020-01-11 Tom Tromey <tom@tromey.com>
12347
12348 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12349 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12350 deprecated_safe_get_selected_frame.
12351
12352 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12353
12354 * inferior.c (print_inferior): Switch inferior before printing it.
12355
12356 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12357 Pedro Alves <palves@redhat.com>
12358
12359 * progspace-and-thread.c (switch_to_program_space_and_thread):
12360 Assert there's an inferior for PSPACE. Use
12361 switch_to_inferior_no_thread to switch the inferior too.
12362 * progspace.c (program_space::~program_space): Call
12363 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12364 (program_space::free_all_objfiles): Don't call clear_symtab_users
12365 here.
12366 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12367
12368 2020-01-10 Pedro Alves <palves@redhat.com>
12369
12370 * NEWS: Mention multi-target debugging, "info connections", and
12371 "add-inferior -no-connection".
12372
12373 2020-01-10 Pedro Alves <palves@redhat.com>
12374
12375 * infrun.c: Include "target-connection.h".
12376 (check_multi_target_resumption): New.
12377 (proceed): Call it.
12378 * target-connection.c (make_target_connection_string): Make
12379 extern.
12380 * target-connection.h (make_target_connection_string): Declare.
12381
12382 2020-01-10 Pedro Alves <palves@redhat.com>
12383
12384 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12385 * inferior.c (uiout_field_connection): New function.
12386 (print_inferior): Add new "connection-id" column.
12387 (add_inferior_command): Show connection number/string of added
12388 inferior.
12389 * process-stratum-target.h
12390 (process_stratum_target::connection_string): New virtual method.
12391 (process_stratum_target::connection_number): New field.
12392 * remote.c (remote_target::connection_string): New override.
12393 * target-connection.c: New file.
12394 * target-connection.h: New file.
12395 * target.c (decref_target): Remove process_stratum targets from
12396 the connection list.
12397 (target_stack::push): Add process_stratum targets to the
12398 connection list.
12399
12400 2020-01-10 Pedro Alves <palves@redhat.com>
12401
12402 Revert:
12403 2016-04-12 Pedro Alves <palves@redhat.com>
12404 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12405 Remove references to name.
12406 * serial.h (struct serial) <name>: Delete.
12407
12408 2020-01-10 Pedro Alves <palves@redhat.com>
12409
12410 * gdbarch-selftests.c (register_to_value_test): Remove "target
12411 already pushed" check.
12412
12413 2020-01-10 Pedro Alves <palves@redhat.com>
12414 John Baldwin <jhb@FreeBSD.org>
12415
12416 * aarch64-linux-nat.c
12417 (aarch64_linux_nat_target::thread_architecture): Adjust.
12418 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12419 (task_command_1): Likewise.
12420 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12421 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12422 (aix_thread_target::store_registers)
12423 (aix_thread_target::thread_alive): Adjust.
12424 * amd64-fbsd-tdep.c: Include "inferior.h".
12425 (amd64fbsd_get_thread_local_address): Pass down target.
12426 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12427 thread's gdbarch instead of target_gdbarch.
12428 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12429 get_last_target_status.
12430 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12431 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12432 inferiors.
12433 (update_inserted_breakpoint_locations): Skip if inferiors with no
12434 execution.
12435 (update_global_location_list): When handling moribund locations,
12436 find representative inferior for location's pspace, and use thread
12437 count of its process_stratum target.
12438 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12439 * bsd-uthread.c (bsd_uthread_target::wait): Use
12440 as_process_stratum_target and adjust thread_change_ptid and
12441 add_thread calls.
12442 (bsd_uthread_target::update_thread_list): Use
12443 as_process_stratum_target and adjust find_thread_ptid,
12444 thread_change_ptid and add_thread calls.
12445 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12446 find_thread_ptid call.
12447 * corelow.c (add_to_thread_list): Adjust add_thread call.
12448 (core_target_open): Adjust add_thread_silent and thread_count
12449 calls.
12450 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12451 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12452 * event-top.c (async_disconnect): Pop targets from all inferiors.
12453 * exec.c (add_target_sections): Push exec target on all inferiors
12454 sharing the program space.
12455 (remove_target_sections): Remove the exec target from all
12456 inferiors sharing the program space.
12457 (exec_on_vfork): New.
12458 * exec.h (exec_on_vfork): Declare.
12459 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12460 Pass it down.
12461 (fbsd_nat_target::update_thread_list): Adjust.
12462 (fbsd_nat_target::resume): Adjust.
12463 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12464 down.
12465 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12466 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12467 get_thread_arch_regcache call.
12468 * fork-child.c (gdb_startup_inferior): Pass target down to
12469 startup_inferior and set_executing.
12470 * gdbthread.h (struct process_stratum_target): Forward declare.
12471 (add_thread, add_thread_silent, add_thread_with_info)
12472 (in_thread_list): Add process_stratum_target parameter.
12473 (find_thread_ptid(inferior*, ptid_t)): New overload.
12474 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12475 parameter.
12476 (all_threads()): Delete overload.
12477 (all_threads, all_non_exited_threads): Add process_stratum_target
12478 parameter.
12479 (all_threads_safe): Use brace initialization.
12480 (thread_count): Add process_stratum_target parameter.
12481 (set_resumed, set_running, set_stop_requested, set_executing)
12482 (threads_are_executing, finish_thread_state): Add
12483 process_stratum_target parameter.
12484 (switch_to_thread): Use is_current_thread.
12485 * i386-fbsd-tdep.c: Include "inferior.h".
12486 (i386fbsd_get_thread_local_address): Pass down target.
12487 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12488 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12489 have_inferiors check.
12490 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12491 (inf_ptrace_target::attach): Adjust.
12492 * infcall.c (run_inferior_call): Adjust.
12493 * infcmd.c (run_command_1): Pass target to
12494 scoped_finish_thread_state.
12495 (proceed_thread_callback): Skip inferiors with no execution.
12496 (continue_command): Rename 'all_threads' local to avoid hiding
12497 'all_threads' function. Adjust get_last_target_status call.
12498 (prepare_one_step): Adjust set_running call.
12499 (signal_command): Use user_visible_resume_target. Compare thread
12500 pointers instead of inferior_ptid.
12501 (info_program_command): Adjust to pass down target.
12502 (attach_command): Mark target's 'thread_executing' flag.
12503 (stop_current_target_threads_ns): New, factored out from ...
12504 (interrupt_target_1): ... this. Switch inferior before making
12505 target calls.
12506 * inferior-iter.h
12507 (struct all_inferiors_iterator, struct all_inferiors_range)
12508 (struct all_inferiors_safe_range)
12509 (struct all_non_exited_inferiors_range): Filter on
12510 process_stratum_target too. Remove explicit.
12511 * inferior.c (inferior::inferior): Push dummy target on target
12512 stack.
12513 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12514 Add process_stratum_target parameter, and pass it down.
12515 (have_live_inferiors): Adjust.
12516 (switch_to_inferior_and_push_target): New.
12517 (add_inferior_command, clone_inferior_command): Handle
12518 "-no-connection" parameter. Use
12519 switch_to_inferior_and_push_target.
12520 (_initialize_inferior): Mention "-no-connection" option in
12521 the help of "add-inferior" and "clone-inferior" commands.
12522 * inferior.h: Include "process-stratum-target.h".
12523 (interrupt_target_1): Use bool.
12524 (struct inferior) <push_target, unpush_target, target_is_pushed,
12525 find_target_beneath, top_target, process_target, target_at,
12526 m_stack>: New.
12527 (discard_all_inferiors): Delete.
12528 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12529 (all_inferiors, all_non_exited_inferiors): Add
12530 process_stratum_target parameter.
12531 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12532 (target_last_proc_target): New global.
12533 (follow_fork_inferior): Push target on new inferior. Pass target
12534 to add_thread_silent. Call exec_on_vfork. Handle target's
12535 reference count.
12536 (follow_fork): Adjust get_last_target_status call. Also consider
12537 target.
12538 (follow_exec): Push target on new inferior.
12539 (struct execution_control_state) <target>: New field.
12540 (user_visible_resume_target): New.
12541 (do_target_resume): Call target_async.
12542 (resume_1): Set target's threads_executing flag. Consider resume
12543 target.
12544 (commit_resume_all_targets): New.
12545 (proceed): Also consider resume target. Skip threads of inferiors
12546 with no execution. Commit resumtion in all targets.
12547 (start_remote): Pass current inferior to wait_for_inferior.
12548 (infrun_thread_stop_requested): Consider target as well. Pass
12549 thread_info pointer to clear_inline_frame_state instead of ptid.
12550 (infrun_thread_thread_exit): Consider target as well.
12551 (random_pending_event_thread): New inferior parameter. Use it.
12552 (do_target_wait): Rename to ...
12553 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12554 down.
12555 (threads_are_resumed_pending_p, do_target_wait): New.
12556 (prepare_for_detach): Adjust calls.
12557 (wait_for_inferior): New inferior parameter. Handle it. Use
12558 do_target_wait_1 instead of do_target_wait.
12559 (fetch_inferior_event): Adjust. Switch to representative
12560 inferior. Pass target down.
12561 (set_last_target_status): Add process_stratum_target parameter.
12562 Save target in global.
12563 (get_last_target_status): Add process_stratum_target parameter and
12564 handle it.
12565 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12566 (context_switch): Check inferior_ptid == null_ptid before calling
12567 inferior_thread().
12568 (get_inferior_stop_soon): Pass down target.
12569 (wait_one): Rename to ...
12570 (poll_one_curr_target): ... this.
12571 (struct wait_one_event): New.
12572 (wait_one): New.
12573 (stop_all_threads): Adjust.
12574 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12575 event's target.
12576 (switch_back_to_stepped_thread): Also consider target.
12577 (print_stop_event): Update.
12578 (normal_stop): Update. Also consider the resume target.
12579 * infrun.h (wait_for_inferior): Remove declaration.
12580 (user_visible_resume_target): New declaration.
12581 (get_last_target_status, set_last_target_status): New
12582 process_stratum_target parameter.
12583 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12584 process_stratum_target parameter, and use it.
12585 (clear_inline_frame_state (thread_info*)): New.
12586 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12587 process_stratum_target parameter.
12588 (clear_inline_frame_state (thread_info*)): Declare.
12589 * linux-fork.c (delete_checkpoint_command): Pass target down to
12590 find_thread_ptid.
12591 (checkpoint_command): Adjust.
12592 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12593 instead of just tweaking inferior_ptid.
12594 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12595 (exit_lwp): Pass target down to find_thread_ptid.
12596 (attach_proc_task_lwp_callback): Pass target down to
12597 add_thread/set_running/set_executing.
12598 (linux_nat_target::attach): Pass target down to
12599 thread_change_ptid.
12600 (get_detach_signal): Pass target down to find_thread_ptid.
12601 Consider last target status's target.
12602 (linux_resume_one_lwp_throw, resume_lwp)
12603 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12604 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12605 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12606 (linux_nat_target::async_wait_fd): New.
12607 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12608 target down.
12609 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12610 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12611 * linux-thread-db.c (struct thread_db_info::process_target): New
12612 field.
12613 (add_thread_db_info): Save target.
12614 (get_thread_db_info): New process_stratum_target parameter. Also
12615 match target.
12616 (delete_thread_db_info): New process_stratum_target parameter.
12617 Also match target.
12618 (thread_from_lwp): Adjust to pass down target.
12619 (thread_db_notice_clone): Pass down target.
12620 (check_thread_db_callback): Pass down target.
12621 (try_thread_db_load_1): Always push the thread_db target.
12622 (try_thread_db_load, record_thread): Pass target down.
12623 (thread_db_target::detach): Pass target down. Always unpush the
12624 thread_db target.
12625 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12626 target down. Always unpush the thread_db target.
12627 (find_new_threads_callback, thread_db_find_new_threads_2)
12628 (thread_db_target::update_thread_list): Pass target down.
12629 (thread_db_target::pid_to_str): Pass current inferior down.
12630 (thread_db_target::get_thread_local_address): Pass target down.
12631 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12632 target down.
12633 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12634 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12635 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12636 (procfs_init_inferior): Rename to ...
12637 (procfs_target::procfs_init_inferior): ... this and adjust.
12638 (procfs_target::create_inferior, procfs_notice_thread)
12639 (procfs_do_thread_registers): Adjust.
12640 * ppc-fbsd-tdep.c: Include "inferior.h".
12641 (ppcfbsd_get_thread_local_address): Pass down target.
12642 * proc-service.c (ps_xfer_memory): Switch current inferior and
12643 program space as well.
12644 (get_ps_regcache): Pass target down.
12645 * process-stratum-target.c
12646 (process_stratum_target::thread_address_space)
12647 (process_stratum_target::thread_architecture): Pass target down.
12648 * process-stratum-target.h
12649 (process_stratum_target::threads_executing): New field.
12650 (as_process_stratum_target): New.
12651 * ravenscar-thread.c
12652 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12653 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12654 down.
12655 * record-btrace.c (record_btrace_target::info_record): Adjust.
12656 (record_btrace_target::record_method)
12657 (record_btrace_target::record_is_replaying)
12658 (record_btrace_target::fetch_registers)
12659 (get_thread_current_frame_id, record_btrace_target::resume)
12660 (record_btrace_target::wait, record_btrace_target::stop): Pass
12661 target down.
12662 * record-full.c (record_full_wait_1): Switch to event thread.
12663 Pass target down.
12664 * regcache.c (regcache::regcache)
12665 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12666 process_stratum_target parameter and handle it.
12667 (current_thread_target): New global.
12668 (get_thread_regcache): Add process_stratum_target parameter and
12669 handle it. Switch inferior before calling target method.
12670 (get_thread_regcache): Pass target down.
12671 (get_thread_regcache_for_ptid): Pass target down.
12672 (registers_changed_ptid): Add process_stratum_target parameter and
12673 handle it.
12674 (registers_changed_thread, registers_changed): Pass target down.
12675 (test_get_thread_arch_aspace_regcache): New.
12676 (current_regcache_test): Define a couple local test_target_ops
12677 instances and use them for testing.
12678 (readwrite_regcache): Pass process_stratum_target parameter.
12679 (cooked_read_test, cooked_write_test): Pass mock_target down.
12680 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12681 (get_thread_arch_aspace_regcache): Add process_stratum_target
12682 parameter.
12683 (regcache::target): New method.
12684 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12685 (regcache::registers_changed_ptid): Add process_stratum_target
12686 parameter.
12687 (regcache::m_target): New field.
12688 (registers_changed_ptid): Add process_stratum_target parameter.
12689 * remote.c (remote_state::supports_vCont_probed): New field.
12690 (remote_target::async_wait_fd): New method.
12691 (remote_unpush_and_throw): Add remote_target parameter.
12692 (get_current_remote_target): Adjust.
12693 (remote_target::remote_add_inferior): Push target.
12694 (remote_target::remote_add_thread)
12695 (remote_target::remote_notice_new_inferior)
12696 (get_remote_thread_info): Pass target down.
12697 (remote_target::update_thread_list): Skip threads of inferiors
12698 bound to other targets. (remote_target::close): Don't discard
12699 inferiors. (remote_target::add_current_inferior_and_thread)
12700 (remote_target::process_initial_stop_replies)
12701 (remote_target::start_remote)
12702 (remote_target::remote_serial_quit_handler): Pass down target.
12703 (remote_target::remote_unpush_target): New remote_target
12704 parameter. Unpush the target from all inferiors.
12705 (remote_target::remote_unpush_and_throw): New remote_target
12706 parameter. Pass it down.
12707 (remote_target::open_1): Check whether the current inferior has
12708 execution instead of checking whether any inferior is live. Pass
12709 target down.
12710 (remote_target::remote_detach_1): Pass down target. Use
12711 remote_unpush_target.
12712 (extended_remote_target::attach): Pass down target.
12713 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12714 (remote_target::append_resumption): Pass down target.
12715 (remote_target::append_pending_thread_resumptions)
12716 (remote_target::remote_resume_with_hc, remote_target::resume)
12717 (remote_target::commit_resume): Pass down target.
12718 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12719 (remote_target::interrupt_query)
12720 (remote_target::remove_new_fork_children)
12721 (remote_target::check_pending_events_prevent_wildcard_vcont)
12722 (remote_target::remote_parse_stop_reply)
12723 (remote_target::process_stop_reply): Pass down target.
12724 (first_remote_resumed_thread): New remote_target parameter. Pass
12725 it down.
12726 (remote_target::wait_as): Pass down target.
12727 (unpush_and_perror): New remote_target parameter. Pass it down.
12728 (remote_target::readchar, remote_target::remote_serial_write)
12729 (remote_target::getpkt_or_notif_sane_1)
12730 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12731 down target.
12732 (remote_target::mourn_inferior): Pass down target. Use
12733 remote_unpush_target.
12734 (remote_target::core_of_thread)
12735 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12736 (remote_target::pid_to_exec_file)
12737 (remote_target::thread_handle_to_thread_info): Pass down target.
12738 (remote_target::async_wait_fd): New.
12739 * riscv-fbsd-tdep.c: Include "inferior.h".
12740 (riscv_fbsd_get_thread_local_address): Pass down target.
12741 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12742 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12743 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12744 Adjust.
12745 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12746 * solib-svr4.c (enable_break): Pass down target.
12747 * spu-multiarch.c (parse_spufs_run): Pass down target.
12748 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12749 * target-delegates.c: Regenerate.
12750 * target.c (g_target_stack): Delete.
12751 (current_top_target): Return the current inferior's top target.
12752 (target_has_execution_1): Refer to the passed-in inferior's top
12753 target.
12754 (target_supports_terminal_ours): Check whether the initial
12755 inferior was already created.
12756 (decref_target): New.
12757 (target_stack::push): Incref/decref the target.
12758 (push_target, push_target, unpush_target): Adjust.
12759 (target_stack::unpush): Defref target.
12760 (target_is_pushed): Return bool. Adjust to refer to the current
12761 inferior's target stack.
12762 (dispose_inferior): Delete, and inline parts ...
12763 (target_preopen): ... here. Only dispose of the current inferior.
12764 (target_detach): Hold strong target reference while detaching.
12765 Pass target down.
12766 (target_thread_name): Add assertion.
12767 (target_resume): Pass down target.
12768 (target_ops::beneath, find_target_at): Adjust to refer to the
12769 current inferior's target stack.
12770 (get_dummy_target): New.
12771 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12772 has a thread running.
12773 (initialize_targets): Rename to ...
12774 (_initialize_target): ... this.
12775 * target.h: Include "gdbsupport/refcounted-object.h".
12776 (struct target_ops): Inherit refcounted_object.
12777 (target_ops::shortname, target_ops::longname): Make const.
12778 (target_ops::async_wait_fd): New method.
12779 (decref_target): Declare.
12780 (struct target_ops_ref_policy): New.
12781 (target_ops_ref): New typedef.
12782 (get_dummy_target): Declare function.
12783 (target_is_pushed): Return bool.
12784 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12785 (all_matching_threads_iterator::all_matching_threads_iterator):
12786 Handle filter target.
12787 * thread-iter.h (struct all_matching_threads_iterator, struct
12788 all_matching_threads_range, class all_non_exited_threads_range):
12789 Filter by target too. Remove explicit.
12790 * thread.c (threads_executing): Delete.
12791 (inferior_thread): Pass down current inferior.
12792 (clear_thread_inferior_resources): Pass down thread pointer
12793 instead of ptid_t.
12794 (add_thread_silent, add_thread_with_info, add_thread): Add
12795 process_stratum_target parameter. Use it for thread and inferior
12796 searches.
12797 (is_current_thread): New.
12798 (thread_info::deletable): Use it.
12799 (find_thread_ptid, thread_count, in_thread_list)
12800 (thread_change_ptid, set_resumed, set_running): New
12801 process_stratum_target parameter. Pass it down.
12802 (set_executing): New process_stratum_target parameter. Pass it
12803 down. Adjust reference to 'threads_executing'.
12804 (threads_are_executing): New process_stratum_target parameter.
12805 Adjust reference to 'threads_executing'.
12806 (set_stop_requested, finish_thread_state): New
12807 process_stratum_target parameter. Pass it down.
12808 (switch_to_thread): Also match inferior.
12809 (switch_to_thread): New process_stratum_target parameter. Pass it
12810 down.
12811 (update_threads_executing): Reimplement.
12812 * top.c (quit_force): Pop targets from all inferior.
12813 (gdb_init): Don't call initialize_targets.
12814 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12815 Declare.
12816 (windows_add_thread, windows_delete_thread): Adjust.
12817 (get_windows_debug_event): Rename to ...
12818 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12819 * tracefile-tfile.c (tfile_target_open): Pass down target.
12820 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12821 Forward declare.
12822 (switch_to_thread): Add process_stratum_target parameter.
12823 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12824 parameter. Use it.
12825 (mi_on_resume): Pass target down.
12826 * nat/fork-inferior.c (startup_inferior): Add
12827 process_stratum_target parameter. Pass it down.
12828 * nat/fork-inferior.h (startup_inferior): Add
12829 process_stratum_target parameter.
12830 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12831
12832 2020-01-10 Pedro Alves <palves@redhat.com>
12833
12834 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12835 directly. Instead find the first thread in the thread list and
12836 use switch_to_thread.
12837
12838 2020-01-10 Pedro Alves <palves@redhat.com>
12839
12840 * remote.c (remote_target::remote_add_inferior): Don't bind a
12841 process to the current inferior if the current inferior is already
12842 bound to a process.
12843
12844 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12845 Pedro Alves <palves@redhat.com>
12846
12847 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12848 If no process is specified, return null_ptid instead of
12849 inferior_ptid.
12850 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12851 TARGET_WAITKIND_SIGNALLED with no pid.
12852
12853 2020-01-10 Pedro Alves <palves@redhat.com>
12854
12855 * remote.c (first_remote_resumed_thread): New.
12856 (remote_target::wait_as): Use it as default event_ptid instead of
12857 inferior_ptid.
12858
12859 2020-01-10 Pedro Alves <palves@redhat.com>
12860
12861 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12862
12863 2020-01-10 Pedro Alves <palves@redhat.com>
12864
12865 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12866 not -1.
12867
12868 2020-01-10 Pedro Alves <palves@redhat.com>
12869
12870 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12871 ptid to get_last_target_status.
12872 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12873 ptid to get_last_target_status.
12874 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12875 get_last_target_status.
12876 (info_program_command): Don't pass a target_waitstatus to
12877 get_last_target_status.
12878 * infrun.c (init_wait_for_inferior): Use
12879 nullify_last_target_wait_ptid.
12880 (get_last_target_status): Handle nullptr arguments.
12881 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12882 (print_stop_event): Don't pass a ptid to get_last_target_status.
12883 (normal_stop): Don't pass a ptid to get_last_target_status.
12884 * infrun.h (get_last_target_status, set_last_target_status): Move
12885 comments here and update.
12886 (nullify_last_target_wait_ptid): Declare.
12887 * linux-fork.c (fork_load_infrun_state): Remove local extern
12888 declaration of nullify_last_target_wait_ptid.
12889 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12890 to get_last_target_status.
12891
12892 2020-01-10 Pedro Alves <palves@redhat.com>
12893
12894 * gdbthread.h (scoped_restore_current_thread)
12895 <dont_restore, restore, m_dont_restore>: Declare.
12896 * thread.c (thread_alive): Add assertion. Return bool.
12897 (switch_to_thread_if_alive): New.
12898 (prune_threads): Switch inferior/thread.
12899 (print_thread_info_1): Switch thread before calling target methods.
12900 (scoped_restore_current_thread::restore): New, factored out from
12901 ...
12902 (scoped_restore_current_thread::~scoped_restore_current_thread):
12903 ... this.
12904 (scoped_restore_current_thread::scoped_restore_current_thread):
12905 Add assertion.
12906 (thread_apply_all_command, thread_select): Use
12907 switch_to_thread_if_alive.
12908 * infrun.c (proceed, restart_threads, handle_signal_stop)
12909 (switch_back_to_stepped_thread): Switch current thread before
12910 calling target methods.
12911
12912 2020-01-10 Pedro Alves <palves@redhat.com>
12913
12914 * inferior.c (switch_to_inferior_no_thread): New function,
12915 factored out from ...
12916 (inferior_command): ... here.
12917 * inferior.h (switch_to_inferior_no_thread): Declare.
12918 * mi/mi-main.c (run_one_inferior): Use
12919 switch_to_inferior_no_thread.
12920
12921 2020-01-10 Pedro Alves <palves@redhat.com>
12922
12923 * infcmd.c (kill_command): Remove dead code.
12924
12925 2020-01-10 Pedro Alves <palves@redhat.com>
12926
12927 * remote.c (remote_target::mourn_inferior): No longer check
12928 whether the target is running.
12929
12930 2020-01-10 Pedro Alves <palves@redhat.com>
12931
12932 * corelow.c (core_target::has_execution): Change parameter type to
12933 inferior pointer.
12934 * inferior.c (number_of_live_inferiors): Use
12935 inferior::has_execution instead of target_has_execution_1.
12936 * inferior.h (inferior::has_execution): New.
12937 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12938 inferior::has_execution instead of target_has_execution_1.
12939 * process-stratum-target.c
12940 (process_stratum_target::has_execution): Change parameter type to
12941 inferior pointer. Check the inferior's PID instead of
12942 inferior_ptid.
12943 * process-stratum-target.h
12944 (process_stratum_target::has_execution): Change parameter type to
12945 inferior pointer.
12946 * record-full.c (record_full_core_target::has_execution): Change
12947 parameter type to inferior pointer.
12948 * target.c (target_has_execution_1): Change parameter type to
12949 inferior pointer.
12950 (target_has_execution_current): Adjust.
12951 * target.h (target_ops::has_execution): Change parameter type to
12952 inferior pointer.
12953 (target_has_execution_1): Change parameter type to inferior
12954 pointer. Change return type to bool.
12955 * tracefile.h (tracefile_target::has_execution): Change parameter
12956 type to inferior pointer.
12957
12958 2020-01-10 Pedro Alves <palves@redhat.com>
12959
12960 * exceptions.c (print_flush): Remove current_top_target() check.
12961
12962 2020-01-10 Pedro Alves <palves@redhat.com>
12963
12964 * remote.c (show_remote_exec_file): Show the current inferior's
12965 exec-file instead of the command variable's value.
12966
12967 2020-01-10 Pedro Alves <palves@redhat.com>
12968
12969 * record-full.c (record_full_resume_ptid): New global.
12970 (record_full_target::resume): Set it.
12971 (record_full_wait_1): Use record_full_resume_ptid instead of
12972 inferior_ptid.
12973
12974 2020-01-10 Pedro Alves <palves@redhat.com>
12975
12976 * gdbthread.h (scoped_restore_current_thread)
12977 <dont_restore, restore, m_dont_restore>: Declare.
12978 * thread.c (thread_alive): Add assertion. Return bool.
12979 (switch_to_thread_if_alive): New.
12980 (prune_threads): Switch inferior/thread.
12981 (print_thread_info_1): Switch thread before calling target methods.
12982 (scoped_restore_current_thread::restore): New, factored out from
12983 ...
12984 (scoped_restore_current_thread::~scoped_restore_current_thread):
12985 ... this.
12986 (scoped_restore_current_thread::scoped_restore_current_thread):
12987 Add assertion.
12988 (thread_apply_all_command, thread_select): Use
12989 switch_to_thread_if_alive.
12990
12991 2020-01-10 George Barrett <bob@bob131.so>
12992
12993 * stap-probe.c (stap_modify_semaphore): Don't check for null
12994 semaphores.
12995 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12996 for null semaphores.
12997
12998 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12999
13000 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13001 all source windows, and maintain horizontal scroll status while
13002 doing so.
13003
13004 2020-01-09 Tom Tromey <tom@tromey.com>
13005
13006 PR tui/18932:
13007 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13008 update_source_window, not print_source_lines.
13009
13010 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13011
13012 * tui/tui.c (tui_enable): Register tui hooks after calling
13013 tui_display_main.
13014
13015 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13016
13017 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13018
13019 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13020
13021 * thread.c (print_thread_info_1): Fix indentation.
13022
13023 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13024
13025 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13026 unique_xmalloc_ptr outside the if to always free the demangled name.
13027
13028 2020-01-08 Tom Tromey <tromey@adacore.com>
13029
13030 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13031 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13032 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13033 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13034 Remove.
13035 (section_offsets): New typedef.
13036 * symtab.c (fixup_section, get_msymbol_address): Update.
13037 * symmisc.c (dump_msymbols): Update.
13038 * symfile.h (relative_addr_info_to_section_offsets)
13039 (symfile_map_offsets_to_segments): Update.
13040 * symfile.c (build_section_addr_info_from_objfile)
13041 (init_objfile_sect_indices): Update.
13042 (struct place_section_arg): Change type of "offsets".
13043 (place_section): Update.
13044 (relative_addr_info_to_section_offsets): Change type of
13045 "section_offsets". Remove "num_sections" parameter.
13046 (default_symfile_offsets, syms_from_objfile_1)
13047 (set_objfile_default_section_offset): Update.
13048 (reread_symbols): No need to preserve section offsets by hand.
13049 (symfile_map_offsets_to_segments): Change type of "offsets".
13050 * stap-probe.c (relocate_address): Update.
13051 * stabsread.h (process_one_symbol): Update.
13052 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13053 (solib_target_relocate_section_addresses): Update.
13054 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13055 Update.
13056 * solib-frv.c (frv_relocate_main_executable): Update.
13057 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13058 * solib-aix.c (solib_aix_get_section_offsets): Change return
13059 type.
13060 (solib_aix_solib_create_inferior_hook): Update.
13061 * remote.c (remote_target::get_offsets): Update.
13062 * psymtab.c (find_pc_sect_psymtab): Update.
13063 * psympriv.h (struct partial_symbol) <address, text_low,
13064 text_high>: Update.
13065 * objfiles.h (obj_section_offset): Update.
13066 (struct objfile) <section_offsets>: Change type.
13067 <num_sections>: Remove.
13068 (objfile_relocate): Update.
13069 * objfiles.c (entry_point_address_query): Update
13070 (relocate_one_symbol): Change type of "section_offsets".
13071 (objfile_relocate1, objfile_relocate1): Change type of
13072 "new_offsets".
13073 (objfile_rebase1): Update.
13074 * mipsread.c (mipscoff_symfile_read): Update.
13075 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13076 parameter.
13077 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13078 (parse_external, psymtab_to_symtab_1): Update.
13079 * machoread.c (macho_symfile_offsets): Update.
13080 * ia64-tdep.c (ia64_find_unwind_table): Update.
13081 * hppa-tdep.c (read_unwind_info): Update.
13082 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13083 * dwarf2read.c (create_addrmap_from_index)
13084 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13085 (process_psymtab_comp_unit_reader, add_partial_symbol)
13086 (add_partial_subprogram, process_full_comp_unit)
13087 (read_file_scope, read_func_scope, read_lexical_block_scope)
13088 (read_call_site_scope, dwarf2_rnglists_process)
13089 (dwarf2_ranges_process, dwarf2_ranges_read)
13090 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13091 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13092 Update.
13093 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13094 Update.
13095 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13096 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13097 (process_one_symbol): Change type of "section_offsets".
13098 * ctfread.c (get_objfile_text_range): Update.
13099 * coffread.c (coff_symtab_read, enter_linenos)
13100 (process_coff_symbol): Update.
13101 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13102 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13103
13104 2020-01-08 Tom Tromey <tromey@adacore.com>
13105
13106 * dwarf2read.c (parse_macro_definition): Use std::string.
13107 (parse_macro_definition): Likewise.
13108
13109 2020-01-08 Tom Tromey <tromey@adacore.com>
13110
13111 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13112 (ATTR_ALLOC_CHUNK): Remove.
13113
13114 2020-01-08 Tom Tromey <tromey@adacore.com>
13115
13116 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13117
13118 2020-01-08 Tom Tromey <tromey@adacore.com>
13119
13120 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13121 (dwarf2_compute_name, open_dwo_file): Likewise.
13122 (process_enumeration_scope): Use std::vector.
13123 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13124 (partial_die_info::fixup, dwarf2_start_subfile)
13125 (guess_full_die_structure_name, dwarf2_name): Likewise.
13126 (determine_prefix): Update.
13127 (guess_full_die_structure_name): Make return type const.
13128 (partial_die_full_name): Return unique_xmalloc_ptr.
13129 (DW_FIELD_ALLOC_CHUNK): Remove.
13130
13131 2020-01-07 Tom Tromey <tromey@adacore.com>
13132
13133 PR build/24937:
13134 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13135
13136 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13137
13138 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13139
13140 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13141
13142 * stack.c (print_frame_info): Move disassemble_next_line code
13143 inside source_print block.
13144
13145 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13146
13147 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13148 gdb/signals.h, as we are now using native signal symbols.
13149
13150 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13151
13152 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13153 overflow by an early check of content vs threshold.
13154 * tui/tui-source.c (tui_source_window::line_is_displayed):
13155 Likewise.
13156
13157 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13158
13159 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13160
13161 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13162
13163 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13164 export table if no section contains it's RVA.
13165
13166 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13167
13168 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13169
13170 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13171
13172 * source.c (print_source_lines_base): Set last_line_listed.
13173
13174 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13175
13176 * tui/tui-disasm.c: Remove trailing spaces.
13177
13178 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13179 Pedro Alves <palves@redhat.com>
13180
13181 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13182 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13183 (windows_gdb_signal_to_target): New function, uses the above
13184 enumeration to convert GDB internal signal codes to equivalent
13185 Windows codes.
13186 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13187 * windows-nat.c: Include "gdb_wait.h".
13188 (get_windows_debug_event): Extract the fatal exception from the
13189 exit status and convert to the equivalent Posix signal number.
13190 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13191 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13192 * gdbsupport/gdb_wait.c: New file, implements
13193 windows_status_to_termsig.
13194 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13195 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13196
13197 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13198
13199 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13200 show_layout.
13201
13202 2020-01-05 Luis Machado <luis.machado@linaro.org>
13203
13204 * aarch64-linux-nat.c
13205 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13206 and bfd_mach_aarch64.
13207
13208 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13209
13210 * ui-file.c (stdio_file::can_emit_style_escape)
13211 (tee_file::can_emit_style_escape): Ensure style is used also on
13212 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13213 to gdb_stdout.
13214 * main.c (set_gdb_data_directory): Use file style to output the
13215 warning that the given pathname is not a directory.
13216 * top.c (show_history_filename, gdb_safe_append_history)
13217 (show_gdb_datadir): Use file style.
13218
13219 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13220
13221 * solib-target.c (struct lm_info_target):
13222 Change offsets to be a unique_xmalloc_ptr.
13223 (solib_target_relocate_section_addresses): Update.
13224
13225 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13226
13227 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13228
13229 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13230
13231 * MAINTAINERS (Write After Approval): Add myself.
13232
13233 2020-01-02 Luis Machado <luis.machado@linaro.org>
13234
13235 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13236 Cell BE architecture.
13237 * target.h (struct target_ops) <thread_architecture>: Likewise.
13238
13239 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13240
13241 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13242
13243 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13244
13245 * MAINTAINERS (Write After Approval): Add myself.
13246
13247 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13248
13249 * gdbarch.sh: Update copyright year range of generated files.
13250
13251 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13252
13253 Update copyright year range in all GDB files.
13254
13255 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13256
13257 * copyright.py: Convert to Python 3.
13258
13259 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13260
13261 * copyright.py: Adapt after move of gnulib directory from gdb
13262 directory to toplevel directory.
13263
13264 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13265
13266 * copyright.py (main): Exit if run from the wrong directory.
13267
13268 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13269
13270 * top.c (print_gdb_version): Change copyright year to 2020.
13271
13272 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13273
13274 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13275
13276 For older changes see ChangeLog-2019.
13277 \f
13278 Local Variables:
13279 mode: change-log
13280 left-margin: 8
13281 fill-column: 74
13282 version-control: never
13283 coding: utf-8
13284 End: