]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Convert language_data::string_lower_bound to a method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
22c12a6c
AB
12020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Remove string_lower_bound
4 initializer.
5 * c-lang.c (c_language_data): Likewise.
6 (cplus_language_data): Likewise.
7 (asm_language_data): Likewise.
8 (minimal_language_data): Likewise.
9 * d-lang.c (d_language_data): Likewise.
10 * f-lang.c (f_language_data): Likewise.
11 * go-lang.c (go_language_data): Likewise.
12 * language.c (unknown_language_data): Likewise.
13 (auto_language_data): Likewise.
14 * language.h (language_data): Remove string_lower_bound field.
15 (language_defn::string_lower_bound): New member function.
16 * m2-lang.c (m2_language_data): Remove string_lower_bound
17 initializer.
18 (m2_language::string_lower_bound): New member function.
19 * objc-lang.c (objc_language_data): Remove string_lower_bound
20 initializer.
21 * opencl-lang.c (opencl_language_data): Likewise.
22 * p-lang.c (pascal_language_data): Likewise.
23 * rust-lang.c (rust_language_data): Likewise.
24 * valops.c (value_cstring): Update call to string_lower_bound.
25 (value_string): Likewise.
26 * value.c (allocate_repeated_value): Likewise.
27
1c236ddd
AB
282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * valops.c (value_repeat): Fix incorrect argument name in comment.
31
67bd3fd5
AB
322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * ada-lang.c (ada_language_data): Remove c_style_arrays
35 initializer.
36 (ada_language::c_style_arrays_p): New member fuction.
37 * c-lang.c (c_language_data): Remove c_style_arrays
38 initializer.
39 (cplus_language_data): Likewise.
40 (asm_language_data): Likewise.
41 (minimal_language_data): Likewise.
42 * d-lang.c (d_language_data): Likewise.
43 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
44 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
45 (f_language::c_style_arrays_p): New member function.
46 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
47 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
48 * language.c (unknown_language_data): Remove c_style_arrays
49 initializer.
50 (auto_language_data): Likewise.
51 * language.h (language_data): Remove c_style_arrays field.
52 (language_defn::c_style_arrays_p): New member function.
53 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
54 (m2_language::c_style_arrays_p): New member function.
55 * objc-lang.c (objc_language_data): Remove c_style_arrays
56 initializer.
57 * opencl-lang.c (opencl_language_data): Likewise.
58 * p-lang.c (pascal_language_data): Likewise.
59 * rust-lang.c (rust_language_data): Likewise.
60 * valarith.c (value_subscript): Update call to c_style_arrays_p,
61 and update local variable to a bool.
62 * valops.c (value_cast): Update call to c_style_arrays_p.
63 (value_array): Likewise.
64 * value.c (coerce_array): Likewise.
65
85967615
AB
662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * ada-lang.c (ada_language_data): Remove la_language initializer.
69 * c-lang.c (c_language_data): Likewise.
70 (cplus_language_data): Likewise.
71 (asm_language_data): Likewise.
72 (minimal_language_data): Likewise.
73 * d-lang.c (d_language_data): Likewise.
74 * f-lang.c (f_language_data): Likewise.
75 * go-lang.c (go_language_data): Likewise.
76 * language.c (unknown_language_data): Likewise.
77 (auto_language_data): Likewise.
78 * language.h (language_data): Remove la_language field.
79 (language_defn::language_defn): Initialise la_language field.
80 (language_defn::la_language): New member variable.
81 * m2-lang.c (m2_language_data): Remove la_language field.
82 * objc-lang.c (objc_language_data): Likewise.
83 * opencl-lang.c (opencl_language_data): Likewise.
84 * p-lang.c (pascal_language_data): Likewise.
85 * rust-lang.c (rust_language_data): Likewise.
86
e171d6f1
AB
872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 * ada-lang.c (ada_extensions): Delete, moved into
90 ada_language::filename_extensions.
91 (ada_language_data): Remove la_filename_extensions initializer.
92 (ada_language::filename_extensions): New member function.
93 * c-lang.c (c_extensions): Delete, moved into
94 c_language::filename_extensions.
95 (c_language_data): Remove la_filename_extensions initializer.
96 (c_language::filename_extensions): New member function.
97 (cplus_extensions): Delete, moved into
98 cplus_language::filename_extensions.
99 (cplus_language_data): Remove la_filename_extensions initializer.
100 (cplus_language::filename_extensions): New member function.
101 (asm_extensions): Delete, moved into
102 asm_language::filename_extensions.
103 (asm_language_data): Remove la_filename_extensions initializer.
104 (asm_language::filename_extensions): New member function.
105 (minimal_language_data): Remove la_filename_extensions
106 initializer.
107 * d-lang.c (d_extensions): Delete, moved into
108 d_language::filename_extensions.
109 (d_language_data): Remove la_filename_extensions initializer.
110 (d_language::filename_extensions): New member function.
111 * f-lang.c (f_extensions): Delete, moved into
112 f_language::filename_extensions.
113 (f_language_data): Remove la_filename_extensions initializer.
114 (f_language::filename_extensions): New member function.
115 * go-lang.c (go_language_data): Remove la_filename_extensions
116 initializer.
117 * language.c (add_set_language_command): Update now that
118 filename_extensions returns a vector.
119 (unknown_language_data): Remove la_filename_extensions
120 initializer.
121 (auto_language_data): Likewise.
122 * language.h (language_data): Remove la_filename_extensions field.
123 (language_defn::filename_extensions): New member function.
124 * m2-lang.c (m2_language_data): Remove la_filename_extensions
125 initializer.
126 * objc-lang.c (objc_extensions): Delete, moved into
127 objc_language::filename_extensions.
128 (objc_language_data): Remove la_filename_extensions initializer.
129 (objc_language::filename_extensions): New member function.
130 * opencl-lang.c (opencl_language_data): Remove
131 la_filename_extensions initializer.
132 * p-lang.c (pascal_extensions): Delete, moved into
133 pascal_language::filename_extensions.
134 (pascal_language_data): Remove la_filename_extensions initializer.
135 (pascal_language::filename_extensions): New member function.
136 * rust-lang.c (rust_extensions): Delete, moved into
137 rust_language::filename_extensions.
138 (rust_language_data): Remove la_filename_extensions initializer.
139 (rust_language::filename_extensions): New member function.
140 * symfile.c (add_filename_language): Add new assert.
141
6f7664a9
AB
1422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * ada-lang.c (ada_language_data): Remove la_name and
145 la_natural_name initializers.
146 (ada_language::name): New member function.
147 (ada_language::natural_name): New member function.
148 * c-lang.c (c_language_data): Remove la_name and
149 la_natural_name initializers.
150 (c_language::name): New member function.
151 (c_language::natural_name): New member function.
152 (cplus_language_data): Remove la_name and
153 la_natural_name initializers.
154 (cplus_language::name): New member function.
155 (cplus_language::natural_name): New member function.
156 (asm_language_data): Remove la_name and
157 la_natural_name initializers.
158 (asm_language::name): New member function.
159 (asm_language::natural_name): New member function.
160 (minimal_language_data): Remove la_name and
161 la_natural_name initializers.
162 (minimal_language::name): New member function.
163 (minimal_language::natural_name): New member function.
164 * compile/compile.c (compile_to_object): Update call to
165 lanugage_defn::name.
166 * d-lang.c (d_language_data): Remove la_name and
167 la_natural_name initializers.
168 (d_language::name): New member function.
169 (d_language::natural_name): New member function.
170 * expprint.c (print_subexp_standard): Update call to
171 language_defn::name.
172 (dump_raw_expression): Likewise
173 (dump_prefix_expression): Likewise.
174 * f-lang.c (f_language_data): Remove la_name and
175 la_natural_name initializers.
176 (f_language::name): New member function.
177 (f_language::natural_name): New member function.
178 * go-lang.c (go_language_data): Remove la_name and
179 la_natural_name initializers.
180 (go_language::name): New member function.
181 (go_language::natural_name): New member function.
182 * language.c (show_language_command): Update call to
183 language_defn::name.
184 (set_language_command): Likewise.
185 (language_enum): Likewise.
186 (language_str): Likewise.
187 (add_set_language_command): Likewise, use
188 language_defn::natural_name in the doc string.
189 (unknown_language_data): Remove la_name and
190 la_natural_name initializers.
191 (unknown_language::name): New member function.
192 (unknown_language::natural_name): New member function.
193 (auto_language_data): Remove la_name and
194 la_natural_name initializers.
195 (auto_language::name): New member function.
196 (auto_language::natural_name): New member function.
197 (language_lookup_primitive_type_as_symbol): Update call to
198 language_defn::name.
199 * language.h (language_data): Remove la_name and la_natural_name
200 member variables.
201 (language_defn::name): New member function.
202 (language_defn::natural_name): New member function.
203 * m2-lang.c (m2_language_data): Remove la_name and
204 la_natural_name initializers.
205 (m2_language::name): New member function.
206 (m2_language::natural_name): New member function.
207 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
208 language_defn::natural_name.
209 * objc-lang.c (objc_language_data): Remove la_name and
210 la_natural_name initializers.
211 (objc_language::name): New member function.
212 (objc_language::natural_name): New member function.
213 * opencl-lang.c (opencl_language_data): Remove la_name and
214 la_natural_name initializers.
215 (opencl_language::name): New member function.
216 (opencl_language::natural_name): New member function.
217 * p-lang.c (pascal_language_data): Remove la_name and
218 la_natural_name initializers.
219 (pascal_language::name): New member function.
220 (pascal_language::natural_name): New member function.
221 * rust-lang.c (rust_language_data): Remove la_name and
222 la_natural_name initializers.
223 (rust_language::name): New member function.
224 (rust_language::natural_name): New member function.
225 * symtab.c (lookup_language_this): Update call to
226 language_defn::name.
227
5bae7c4e
AB
2282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * ada-lang.c (ada_language_data): Remove la_name_of_this
231 initializer.
232 * ax-gdb.c (gen_expr): Update call to name_of_this.
233 * c-exp.y (classify_name): Likewise.
234 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
235 (cplus_language_data): Likewise.
236 (cplus_language::name_of_this): New member function.
237 (asm_language_data): Remove la_name_of_this initializer.
238 (minimal_language_data): Likewise.
239 * d-lang.c (d_language_data): Likewise.
240 (d_language::name_of_this): New member function.
241 * expprint.c (print_subexp_standard): Update call to name_of_this.
242 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
243 * go-lang.c (go_language_data): Likewise.
244 * language.c (unknown_language_data): Likewise.
245 (unknown_language::name_of_this): New member function.
246 (auto_language_data): Remove la_name_of_this initializer.
247 (auto_language::name_of_this): New member function.
248 * language.h (language_data): Delete la_name_of_this member
249 variable.
250 (language_defn::name_of_this): New member function.
251 * m2-lang.c (m2_language_data): Remove la_name_of_this
252 initializer.
253 * objc-lang.c (objc_language_data): Likewise.
254 (objc_language::name_of_this): New member function.
255 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
256 initializer.
257 * p-lang.c (pascal_language_data): Likewise.
258 (pascal_language::name_of_this): New member function.
259 * rust-lang.c (rust_language_data): Remove la_name_of_this
260 initializer.
261 * symtab.c (lookup_language_this): Update call to name_of_this.
262 (lookup_symbol_aux): Likewise.
263 * valops.c (value_of_this): Likewise.
264
22e3f3ed
AB
2652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * ada-lang.c (ada_language_data): Remove
268 la_struct_too_deep_ellipsis initializer.
269 (ada_language::struct_too_deep_ellipsis): New member function.
270 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
271 initializer.
272 (cplus_language_data): Likewise.
273 (asm_language_data): Likewise.
274 (minimal_language_data): Likewise.
275 * cp-valprint.c (cp_print_value): Update call to
276 struct_too_deep_ellipsis.
277 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
278 initializer.
279 * f-lang.c (f_language_data): Likewise.
280 (f_language::struct_too_deep_ellipsis): New member function.
281 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
282 initializer.
283 * language.c (unknown_language_data): Likewise.
284 (auto_language_data): Likewise.
285 * language.h (language_data): Delete la_struct_too_deep_ellipsis
286 member variable.
287 (language_defn::struct_too_deep_ellipsis): New member function.
288 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
289 initializer.Q
290 * objc-lang.c (objc_language_data): Likewise.
291 * opencl-lang.c (opencl_language_data): Likewise.
292 * p-lang.c (pascal_language_data): Likewise.
293 * rust-lang.c (rust_language_data): Likewise.
294 * valprint.c (val_print_check_max_depth): Update call to
295 struct_too_deep_ellipsis.
296
ed29e1c7
FW
2972020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
298
299 * MAINTAINERS (Write After Approval): Add myself.
300
12d8f940
TT
3012020-09-15 Tom Tromey <tom@tromey.com>
302
303 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
304 Remove.
305
6b5a7bc7
TT
3062020-09-15 Tom Tromey <tom@tromey.com>
307
308 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
309 and TYPE_CODE_METHODPTR cases.
310 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
311 (c_value_print_inner): Update.
312 * valprint.c (generic_value_print_memberptr): New function, from
313 c_value_print_memberptr.
314 (generic_value_print): Use it. Call cplus_print_method_ptr.
315
47f0e2ff
TT
3162020-09-15 Tom Tromey <tromey@adacore.com>
317
318 * python/python-internal.h (PyInt_FromLong): Remove define.
319 * python/py-value.c (convert_value_from_python): Use
320 gdb_py_object_from_longest.
321 * python/py-type.c (typy_get_code): Use
322 gdb_py_object_from_longest.
323 * python/py-symtab.c (salpy_get_line): Use
324 gdb_py_object_from_longest.
325 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
326 gdb_py_object_from_longest.
327 * python/py-record.c (recpy_gap_reason_code): Use
328 gdb_py_object_from_longest.
329 * python/py-record-btrace.c (recpy_bt_insn_size)
330 (recpy_bt_func_level, btpy_list_count): Use
331 gdb_py_object_from_longest.
332 * python/py-infthread.c (gdbpy_create_ptid_object): Use
333 gdb_py_object_from_longest. Fix error handling.
334 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
335 gdb_py_object_from_longest.
336 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
337 gdb_py_object_from_longest.
338 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
339 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
340 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
341
512116ce
TT
3422020-09-15 Tom Tromey <tromey@adacore.com>
343
344 * python/python.c (gdbpy_parameter_value): Use
345 gdb_py_object_from_ulongest.
346
4ab1029c
TT
3472020-09-15 Tom Tromey <tromey@adacore.com>
348
349 * python/py-infevents.c (create_register_changed_event_object):
350 Use gdb_py_object_from_longest.
351 * python/py-exitedevent.c (create_exited_event_object): Use
352 gdb_py_object_from_longest.
353
062534d4
TT
3542020-09-15 Tom Tromey <tromey@adacore.com>
355
356 * python/python.c (gdbpy_parameter_value): Use
357 gdb_py_object_from_longest.
358 * python/py-type.c (convert_field, typy_range): Use
359 gdb_py_object_from_longest.
360 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
361 gdb_py_object_from_longest.
362 * python/py-lazy-string.c (stpy_get_length): Use
363 gdb_py_object_from_longest.
364 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
365 gdb_py_object_from_longest.
366 * python/py-infevents.c (create_memory_changed_event_object): Use
367 gdb_py_object_from_longest.
368 * python/py-inferior.c (infpy_get_num): Use
369 gdb_py_object_from_longest.
370 (infpy_get_pid): Likewise.
371
d1cab987
TT
3722020-09-15 Tom Tromey <tromey@adacore.com>
373
374 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
375 defines.
376 * python/py-value.c (valpy_long): Use
377 gdb_py_object_from_ulongest.
378 * python/py-symtab.c (salpy_get_pc): Use
379 gdb_py_object_from_ulongest.
380 (salpy_get_last): Likewise.
381 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
382 gdb_py_object_from_ulongest.
383 * python/py-lazy-string.c (stpy_get_address): Use
384 gdb_py_object_from_ulongest.
385 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
386 * python/py-arch.c (archpy_disassemble): Use
387 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
388 error handling.
389
4bde49dc
TT
3902020-09-15 Tom Tromey <tromey@adacore.com>
391
392 * python/python-internal.h (gdb_py_long_from_longest): Remove
393 defines.
394 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
395 * python/py-type.c (convert_field, typy_get_sizeof): Use
396 gdb_py_object_from_longest.
397 * python/py-record-btrace.c (btpy_list_index): Use
398 gdb_py_object_from_longest.
399
37431074
TT
4002020-09-15 Tom Tromey <tromey@adacore.com>
401
402 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
403 * python/py-record.c (recpy_element_number): Use
404 gdb_py_object_from_longest.
405 (recpy_gap_number): Likewise.
406
cbe25684
TT
4072020-09-15 Tom Tromey <tromey@adacore.com>
408
409 * top.c (ui::ui): Update.
410 (highest_ui_num): Remove.
411 * top.h (struct ui) <num>: Remove.
412
db92ac45
TT
4132020-09-15 Tom Tromey <tromey@adacore.com>
414
415 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
416 * ui-style.c (ansi_regex_text): Now array.
417 * rust-exp.y (number_regex_text): Now array.
418 * linespec.c (linespec_quote_characters): Now array.
419 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
420 Now arrays.
421
d2b31b67
SM
4222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
423
424 * debuginfod-support.c (debuginfod_client_deleter): New.
425 (debuginfod_client_up): New.
426 (debuginfod_init): Return debuginfod_client_up.
427 (debuginfod_source_query): Adjust.
428 (debuginfod_debuginfo_query): Adjust.
429
3246bd8e
SM
4302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * debuginfod-support.c (debuginfod_source_query): Use
433 make_unique_xstrdup.
434
10242f36
SM
4352020-09-14 Simon Marchi <simon.marchi@efficios.com>
436
437 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
438 with `type::instance_flags`.
439
e1044e6a
MM
4402020-09-14 Michael Mullin <masmullin@gmail.com>
441
442 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
443 Remove baton parameter.
444
04902b09
PA
4452020-09-14 Pedro Alves <pedro@palves.net>
446
447 * Makefile.in (SELFTESTS_SRCS): Add
448 unittests/enum-flags-selftests.c.
449 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
450 btrace_function_flags instead of enum btrace_function_flag.
451 * compile/compile-c-types.c (convert_qualified): Use
452 enum_flags::raw.
453 * compile/compile-cplus-symbols.c (convert_one_symbol)
454 (convert_symbol_bmsym):
455 * compile/compile-cplus-types.c (compile_cplus_convert_method)
456 (compile_cplus_convert_struct_or_union_methods)
457 (compile_cplus_instance::convert_qualified_base):
458 * go-exp.y (parse_string_or_char): Add cast to int.
459 * unittests/enum-flags-selftests.c: New file.
460 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
461 type to btrace_thread_flags from btrace_thread_flag.
462 (record_btrace_cancel_resume, record_btrace_step_thread): Change
463 local's type to btrace_thread_flags from btrace_thread_flag. Add
464 cast in DEBUG call.
465
69896a2c
PA
4662020-09-14 Pedro Alves <pedro@palves.net>
467
468 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
469 * gdbtypes.c (address_space_name_to_int): Rename to ...
470 (address_space_name_to_type_instance_flags): ... this.
471 (address_space_int_to_name): Rename to ...
472 (address_space_type_instance_flags_to_name): ... this.
473 * gdbtypes.h (address_space_name_to_int): Rename to ...
474 (address_space_name_to_type_instance_flags): ... this.
475 (address_space_int_to_name): Rename to ...
476 (address_space_type_instance_flags_to_name): ... this.
477 * type-stack.c (type_stack::insert): Adjust to rename.
478 * type-stack.h (type_stack::insert): Likewise.
479
314ad88d
PA
4802020-09-14 Pedro Alves <pedro@palves.net>
481 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * avr-tdep.c (avr_address_class_type_flags): Return
484 type_instance_flags.
485 (avr_address_class_type_flags_to_name): Take a
486 type_instance_flags.
487 (avr_address_class_name_to_type_flags): Return bool and take a
488 type_instance_flags.
489 * d-lang.c (build_d_types): Use type::set_instance_flags.
490 * ft32-tdep.c (ft32_address_class_type_flags): Return
491 type_instance_flags.
492 (ft32_address_class_type_flags_to_name): Take a
493 type_instance_flags.
494 (ft32_address_class_name_to_type_flags): Return bool and take a
495 type_instance_flags.
496 (ft32_gdbarch_init): Use type::set_instance_flags.
497 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
498 * gdbarch.h, gdbarch.c: Regenerate.
499 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
500 (address_class_name_to_type_flags): Use type_instance_flags and
501 bool.
502 * gdbtypes.c (address_space_name_to_int)
503 (address_space_int_to_name, make_qualified_type): Use
504 type_instance_flags.
505 (make_qualified_type): Use type_instance_flags and
506 type::set_instance_flags.
507 (make_type_with_address_space, make_cv_type, make_vector_type)
508 (check_typedef): Use type_instance_flags.
509 (recursive_dump_type): Cast type_instance_flags to unsigned for
510 printing.
511 (copy_type_recursive): Use type::set_instance_flags.
512 (gdbtypes_post_init): Use type::set_instance_flags.
513 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
514 <m_instance_flags>: ... this.
515 <instance_flags, set_instance_flags>: New methods.
516 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
517 (SET_TYPE_INSTANCE_FLAGS): New.
518 (address_space_name_to_int, address_space_int_to_name)
519 (make_type_with_address_space): Pass flags using
520 type_instance_flags instead of int.
521 * stabsread.c (cleanup_undefined_types_noname): Use
522 type::set_instance_flags.
523 * s390-tdep.c (s390_address_class_type_flags): Return
524 type_instance_flags.
525 (s390_address_class_type_flags_to_name): Take a
526 type_instance_flags.
527 (s390_address_class_name_to_type_flags): Return bool and take a
528 type_instance_flags.
529 * type-stack.c (type_stack::follow_types): Use
530 type_instance_flags.
531 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
532
27087b7f
TT
5332020-09-14 Tom Tromey <tromey@adacore.com>
534
535 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
536 * x86-tdep.c (x86_is_thunk_register_name)
537 (x86_in_indirect_branch_thunk): Update.
538 * sparc64-tdep.c (sparc64_fpu_register_names)
539 (sparc64_cp0_register_names, sparc64_register_names)
540 (sparc64_pseudo_register_names): Now const.
541 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
542 cp0_registers_num>: Now const.
543 * sparc-tdep.c (sparc_core_register_names)
544 (sparc32_fpu_register_names, sparc32_cp0_register_names)
545 (sparc32_pseudo_register_names): Now const.
546 (validate_tdesc_registers): Update.
547 * rust-lang.c (rust_extensions): Now const.
548 * p-lang.c (p_extensions): Now const.
549 * objc-lang.c (objc_extensions): Now const.
550 * nto-tdep.c (nto_thread_state_str): Now const.
551 * moxie-tdep.c (moxie_register_names): Now const.
552 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
553 Now const.
554 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
555 (mips_linux_reg_names): Now const.
556 (mips_gdbarch_init): Update.
557 * microblaze-tdep.c (microblaze_register_names): Now const.
558 * m68k-tdep.c (m68k_register_names): Now const.
559 * m32r-tdep.c (m32r_register_names): Now const.
560 * ia64-tdep.c (ia64_register_names): Now const.
561 * i386-tdep.h (struct gdbarch_tdep) <register_names,
562 ymmh_register_names, ymm16h_regnum, mpx_register_names,
563 k_register_names, zmmh_register_names, xmm_avx512_register_names,
564 ymm_avx512_register_names, pkeys_register_names>: Now const.
565 * i386-tdep.c (i386_register_names, i386_zmm_names)
566 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
567 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
568 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
569 * f-lang.c (f_extensions): Now const.
570 * d-lang.c (d_extensions): Now const.
571 * csky-tdep.c (csky_register_names): Now const.
572 * charset.c (default_charset_names, charset_enum): Now const.
573 (_initialize_charset): Update.
574 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
575 const.
576 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
577 (bsd_uthread_solib_loaded): Update.
578 (bsd_uthread_state): Now const.
579 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
580 (amd64_ymm_avx512_names, amd64_ymmh_names)
581 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
582 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
583 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
584 (amd64_dword_names): Now const.
585 * agent.c (can_use_agent_enum): Now const.
586 * ada-tasks.c (task_states, long_task_states): Now const.
587 * ada-lang.c (known_runtime_file_name_patterns)
588 (known_auxiliary_function_name_patterns, attribute_names)
589 (standard_exc, ada_extensions): Now const.
590
89806626
SM
5912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * bcache.h (struct bcache) <bcache>: Remove constructor.
594 <m_hash_function, m_compare_function>: Remove.
595 <~bcache>: Make virtual.
596 <compare>: Remove static method, introduce virtual method.
597 <default_hash>: Remove.
598 <hash>: New virtual method.
599 * bcache.c (bcache::expand_hash_table): Update.
600 (bcache::insert): Update.
601 (bcache::hash): New.
602 (bcache::compare): Update comment and parameter names.
603 * gdbtypes.c (types_deeply_equal): Update.
604 * psymtab.h (struct psymbol_bcache): New struct.
605 (class psymtab_storage) <psymtab_storage>: Make default.
606 <psymbol_cache>: Change type to psymbol_bcache.
607 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
608 (psymbol_hash): Change to...
609 (psymbol_bcache::hash): ... this.
610 (psymbol_compare): Change to...
611 (psymbol_bcache::compare): ... this.
612
677c92fe
SM
6132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
616 checking for initial lwp.
617
3eba3a01
TT
6182020-09-14 Tom Tromey <tromey@adacore.com>
619
620 * m68k-tdep.c (m68k_extract_return_value): Use
621 pointer_result_regnum.
622 (m68k_store_return_value): Likewise.
623 (m68k_reg_struct_return_p): Handle vectors and arrays.
624 (m68k_return_value): Handle arrays.
625 (m68k_svr4_return_value): Fix single-element aggregate handling.
626 Handle long double. Adjust for embedded ABI.
627 (m68k_svr4_init_abi): Set pointer_result_regnum.
628 (m68k_embedded_init_abi): New function.
629 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
630 (m68k_osabi_sniffer): New function.
631 (_initialize_m68k_tdep): Register osabi sniffer.
632 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
633 member.
634
33f4dd48
SM
6352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * xml-support.c (xml_fetch_content_from_file): Replace xfree
638 with gdb::unique_xmalloc_ptr<char>.
639
8400a90d
SM
6402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * xml-support.h (xml_fetch_another): Change type to be a
643 function_view.
644 (xml_process_xincludes): Remove baton parameter.
645 (xml_fetch_content_from_file): Change baton parameter to
646 dirname.
647 * xml-support.c (struct xinclude_parsing_data)
648 <xinclude_parsing_data>: Remove baton parameter.
649 <fetcher_baton>: Remove.
650 (xinclude_start_include): Adjust.
651 (xml_process_xincludes): Adjust.
652 (xml_fetch_content_from_file): Replace baton parameter with
653 dirname.
654 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
655 (xml_init_syscalls_info): Use a lambda.
656 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
657 (file_read_description_xml): Use a lambda.
658 (fetch_available_features_from_target): Change baton parameter
659 to target_ops.
660 (target_read_description_xml): Use a lambda.
661 (target_fetch_description_xml): Use a lambda.
662 (string_read_description_xml): Update.
663
04f5bab2
SM
6642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
667 uses with type::endianity_is_not_default.
668
db558e34
SM
6692020-09-14 Simon Marchi <simon.marchi@efficios.com>
670
671 * gdbtypes.h (struct type) <endianity_is_not_default,
672 set_endianity_is_not_default>: New methods.
673 (TYPE_ENDIANITY_NOT_DEFAULT): Use
674 type::endianity_is_not_default, change all write call sites to
675 use type::set_endianity_is_not_default.
676
22c4c60c
SM
6772020-09-14 Simon Marchi <simon.marchi@efficios.com>
678
679 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
680 uses with type::is_fixed_instance.
681
9cdd0d12
SM
6822020-09-14 Simon Marchi <simon.marchi@efficios.com>
683
684 * gdbtypes.h (struct type) <is_fixed_instance,
685 set_is_fixed_instance>: New methods.
686 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
687 write call sites to use type::set_is_fixed_instance.
688
0becda7a
SM
6892020-09-14 Simon Marchi <simon.marchi@efficios.com>
690
691 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
692 uses with type::is_gnu_ifunc.
693
03cc7249
SM
6942020-09-14 Simon Marchi <simon.marchi@efficios.com>
695
696 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
697 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
698 use type::set_is_gnu_ifunc.
699
3f46044c
SM
7002020-09-14 Simon Marchi <simon.marchi@efficios.com>
701
702 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
703 uses with type::stub_is_supported.
704
9baccff6
SM
7052020-09-14 Simon Marchi <simon.marchi@efficios.com>
706
707 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
708 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
709 use type::set_stub_is_supported.
710
bd63c870
SM
7112020-09-14 Simon Marchi <simon.marchi@efficios.com>
712
713 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
714 uses with type::is_vector.
715
2062087b
SM
7162020-09-14 Simon Marchi <simon.marchi@efficios.com>
717
718 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
719 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
720 use type::set_is_vector.
721
a409645d
SM
7222020-09-14 Simon Marchi <simon.marchi@efficios.com>
723
724 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
725 uses with type::has_varargs.
726
1d6286ed
SM
7272020-09-14 Simon Marchi <simon.marchi@efficios.com>
728
729 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
730 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
731 use type::set_has_varargs.
732
7f9f399b
SM
7332020-09-14 Simon Marchi <simon.marchi@efficios.com>
734
735 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
736 uses with type::is_prototyped.
737
27e69b7a
SM
7382020-09-14 Simon Marchi <simon.marchi@efficios.com>
739
740 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
741 New methods.
742 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
743 call sites to use type::set_is_prototyped.
744
d2183968
SM
7452020-09-14 Simon Marchi <simon.marchi@efficios.com>
746
747 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
748 uses with type::target_is_stub.
749
8f53807e
SM
7502020-09-14 Simon Marchi <simon.marchi@efficios.com>
751
752 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
753 New methods.
754 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
755 sites to use type::set_target_is_stub.
756
e46d3488
SM
7572020-09-14 Simon Marchi <simon.marchi@efficios.com>
758
759 * gdbtypes.h (TYPE_STUB): Remove, replace all
760 uses with type::is_stub.
761
b4b73759
SM
7622020-09-14 Simon Marchi <simon.marchi@efficios.com>
763
764 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
765 (TYPE_STUB): Use type::is_stub, change all write call sites to
766 use type::set_is_stub.
767
20ce4123
SM
7682020-09-14 Simon Marchi <simon.marchi@efficios.com>
769
770 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
771 type::has_no_signedness.
772
15152a54
SM
7732020-09-14 Simon Marchi <simon.marchi@efficios.com>
774
775 * gdbtypes.h (struct type) <has_no_signedness,
776 set_has_no_signedness>: New methods.
777 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
778 call sites to use type::set_has_no_signedness.
779
c6d940a9
SM
7802020-09-14 Simon Marchi <simon.marchi@efficios.com>
781
782 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
783 type::is_unsigned.
784
653223d3
SM
7852020-09-14 Simon Marchi <simon.marchi@efficios.com>
786
787 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
788 methods.
789 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
790 sites to use type::set_is_unsigned.
791
55ea94da
FH
7922020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
793 Adam Renquinha <arenquinha@cimeq.qc.ca>
794
795 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
796 pointer and stack frame offset when unwinding.
797
6791b117
PA
7982020-09-13 Pedro Alves <pedro@palves.net>
799
800 * NEWS: Document "-break-insert --qualified".
801 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
802
77f2120b
PA
8032020-09-13 Pedro Alves <pedro@palves.net>
804
805 * linespec.c (classify_mtype, compare_msyms): Delete.
806 (search_minsyms_for_name): Remove classification logic. Instead
807 filter out trampoline symbols if we also found an external
808 function of the same name.
809
ed6a896c
JB
8102020-09-13 Joel Brobecker <brobecker@adacore.com>
811
812 * NEWS: Create a new section for the next release branch.
813 Rename the section of the current branch, now that it has
814 been cut.
815
32aea73e
JB
8162020-09-13 Joel Brobecker <brobecker@adacore.com>
817
818 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
819 * version.in: Bump version to 11.0.50.DATE-git.
820
8087c3fa
JB
8212020-09-12 Joel Brobecker <brobecker@adacore.com>
822
823 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
824
2a67f09d
FW
8252020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
826 Felix Willgerodt <Felix.Willgerodt@intel.com>
827
828 * gdbarch.sh: Added bfloat16 type.
829 * gdbarch.c: Regenerated.
830 * gdbarch.h: Regenerated.
831 * gdbtypes.c (floatformats_bfloat16): New struct.
832 (gdbtypes_post_init): Add builtin_bfloat16.
833 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
834 (floatformats_bfloat16): New struct.
835 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
836 (i386_ymm_type): Add field "v16_bfloat16"
837 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
838 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
839 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
840 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
841 * features/i386/64bit-avx512.xml: Add bfloat16 type.
842 * features/i386/64bit-avx512.c: Regenerated.
843 * features/i386/64bit-sse.xml: Add bfloat16 type.
844 * features/i386/64bit-sse.c: Regenerated.
845
1347d111
FW
8462020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
847
848 * i386-tdep.c (i386_zmm_type): Fix field names.
849 (i386_ymm_type): Fix field names.
850
7a4e8e7d
TBA
8512020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
852
853 * breakpoint.c: Fix typo in the help message of the
854 "set breakpoint condition-evaluation" command.
855
cf4ac4be
KR
8562020-09-10 Kamil Rytarowski <n54@gmx.com>
857
858 * nbsd-nat.c: Include "nat/netbsd-nat.h".
859 * (nbsd_nat_target::pid_to_exec_file)
860 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
861 (nbsd_nat_target::post_startup_inferior)
862 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
863 (nbsd_add_threads): Switch local code to common gdb/nat functions.
864 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
865 * (nbsd_thread_lister): Remove.
866
f404573e
KR
8672020-09-10 Kamil Rytarowski <n54@gmx.com>
868
869 * fork-inferior.c (startup_inferior): Avoid double free.
870
1ccb2c17
KR
8712020-09-10 Kamil Rytarowski <n54@gmx.com>
872
873 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
874 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
875
feedfcc7
KR
8762020-09-10 Kamil Rytarowski <n54@gmx.com>
877
878 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
879 * netbsd-nat.c: Include <sys/ptrace.h>.
880 * (netbsd_nat::enable_proc_events): Add.
881
c489f8c6
KR
8822020-09-10 Kamil Rytarowski <n54@gmx.com>
883
884 * netbsd-nat.h: Include "gdbsupport/function-view.h".
885 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
886 (netbsd_nat::for_each_thread): Add.
887 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
888 "gdbsupport/common-debug.h".
889 * (netbsd_nat::netbsd_thread_lister)
890 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
891 (netbsd_nat::for_each_thread): Add.
892
330662f6
KR
8932020-09-10 Kamil Rytarowski <n54@gmx.com>
894
895 * netbsd-nat.h: Include <unistd.h>.
896 * (netbsd_nat::pid_to_exec_file): Add.
897 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
898 * (netbsd_nat::pid_to_exec_file) Add.
899
70b67307
KR
9002020-09-10 Kamil Rytarowski <n54@gmx.com>
901
902 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
903
99cf6da6
KR
9042020-09-10 Kamil Rytarowski <n54@gmx.com>
905
906 * netbsd-nat.h: New file.
907 * netbsd-nat.c: Likewise.
908
1b788fb6
TT
9092020-09-09 Tom Tromey <tromey@adacore.com>
910
911 * ada-lang.c (remove_extra_symbols): Do not increment when
912 removing an element
913
03b0a45f
TT
9142020-09-08 Tom Tromey <tromey@adacore.com>
915
916 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
917
3cae4447
TT
9182020-09-08 Tom Tromey <tromey@adacore.com>
919
920 PR win32/25302:
921 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
922 (gdb_bfd_init_data): New function.
923 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
924
7f08fd51
TBA
9252020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
926
927 * infrun.c (fetch_inferior_event): Use
928 `switch_to_target_no_thread` to switch the target.
929
3e6ff933
TT
9302020-09-06 Tom Tromey <tom@tromey.com>
931
932 * symfile.h (dwarf2_free_objfile): Don't declare.
933
e56798df
AKS
9342020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
935
936 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
937 to match 16 byte real/complex type generated by Flang compiler.
938
8f5c6526
TV
9392020-09-03 Tom de Vries <tdevries@suse.de>
940
941 PR breakpoint/26546
942 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
943 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
944
c5065df0
SM
9452020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * maint.c (index_digits): New function.
948 (struct maint_print_section_data): Remove.
949 (print_bfd_section_info): Remove print_data parameter, add arg
950 and index_digits.
951 (print_objfile_section_info): Likewise.
952 (print_bfd_section_info_maybe_relocated): Likewise (plus
953 objfile).
954 (maintenance_info_sections): Adjust calls.
955
02c6f3f1
TT
9562020-09-02 Tom Tromey <tromey@adacore.com>
957
958 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
959 for null pointers.
960 (ada_varobj_adjust_for_child_access): Special-case null pointers.
961
ef5e5b0b
SM
9622020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * bcache.h (struct bcache) <insert>: Change type of `added` to
965 pointer to bool.
966 * bcache.c (bcache::insert): Likewise.
967 * gdbtypes.c (check_types_worklist): Adjust.
968 * psymtab.c (add_psymbol_to_bcache): Adjust.
969
973695d6
KB
9702020-08-31 Kevin Buettner <kevinb@redhat.com>
971
972 * corelow.c (unordered_set): Include.
973 (class core_target): Add field 'm_core_unavailable_mappings'.
974 (core_target::build_file_mappings): Print only one warning
975 per inaccessible file. Add unavailable/broken mappings
976 to m_core_unavailable_mappings.
977 (core_target::xfer_partial): Call...
978 (core_target::xfer_memory_via_mappings): New method.
979
264fc0e2
SM
9802020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
983 type to bool.
984
2de01bdb
SM
9852020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * dwarf2/read.c (struct field_info): Fix indentation.
988
f3bd50f1
SM
9892020-08-31 Simon Marchi <simon.marchi@efficios.com>
990
991 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
992 ordering in comment.
993 * frame.c (frame_id_eq): Fix indentation.
994
22b9b4b0
SL
9952020-08-31 Scott Linder <scott@scottlinder.com>
996 Simon Marchi <simon.marchi@efficios.com>
997
998 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
999 inline frame ids in outer frame.
1000
84154d16
SM
10012020-08-31 Simon Marchi <simon.marchi@efficios.com>
1002
1003 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1004 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1005 (outer_frame_id): Use FID_STACK_OUTER instead of
1006 FID_STACK_INVALID.
1007 (frame_id_p): Don't check for outer_frame_id.
1008
8efaf6b3
SM
10092020-08-31 Simon Marchi <simon.marchi@efficios.com>
1010
1011 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1012 regnum/frame in value. Call allocate_value_lazy.
1013 * frame.c (frame_unwind_register_value): Use
1014 val_print_not_saved.
1015
fe1fe7ea
SM
10162020-08-31 Simon Marchi <simon.marchi@efficios.com>
1017
1018 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1019
f7c7700d
PA
10202020-08-29 Pedro Alves <pedro@palves.net>
1021
1022 * progspace.c (print_program_space): Use all_inferiors. Switch to
1023 the inferior before calling target_pid_to_str.
1024
e0814aae
TT
10252020-08-28 Tom Tromey <tom@tromey.com>
1026
1027 * xcoffread.c (xcoff_end_psymtab): Update comment.
1028 * dbxread.c (dbx_end_psymtab): Update comment.
1029
626d2320
TV
10302020-08-28 Tom de Vries <tdevries@suse.de>
1031
1032 PR breakpoint/26544
1033 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1034 event_location.
1035 (create_breakpoint): Same.
1036 (base_breakpoint_decode_location): Same.
1037 (bkpt_create_sals_from_location): Same.
1038 (bkpt_decode_location): Same.
1039 (bkpt_probe_create_sals_from_location): Same.
1040 (bkpt_probe_decode_location): Same.
1041 (tracepoint_create_sals_from_location): Same.
1042 (tracepoint_decode_location): Same.
1043 (tracepoint_probe_decode_location): Same.
1044 (strace_marker_create_sals_from_location): Same.
1045 (strace_marker_decode_location): Same.
1046 (create_sals_from_location_default): Same.
1047 (decode_location_default): Same.
1048 * breakpoint.h (struct breakpoint_ops): Same.
1049 (create_breakpoint): Same.
1050 * linespec.h (decode_line_full): Same.
1051 * linespec.c (decode_line_full): Same. Throw error if
1052 result.size () == 0.
1053
df631783
PA
10542020-08-27 Pedro Alves <pedro@palves.net>
1055
1056 PR gdb/26524
1057 * breakpoint.c (until_break_fsm) <location_breakpoint,
1058 caller_breakpoint>: Delete fields.
1059 <breakpoints>: New field.
1060 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1061 two individual breakpoints.
1062 (until_break_fsm::should_stop): Loop over breakpoints in the
1063 breakpoint vector.
1064 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1065 vector.
1066 (until_break_command): Handle location expanding into multiple
1067 sals.
1068
b2b38aa4
PA
10692020-08-27 Pedro Alves <pedro@palves.net>
1070
1071 PR gdb/26523
1072 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1073 bp_until breakpoints user-specified locations. Update intro
1074 comment.
1075
b886559f
SM
10762020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1079 gdb_bfd_sections): New.
1080 * maint.c (print_bfd_section_info): Change param type to
1081 maint_print_section_data.
1082 (print_objfile_section_info): Likewise.
1083 (print_bfd_section_info_maybe_relocated): Likewise.
1084 (maintenance_info_sections): Use gdb_bfd_sections.
1085
4c6e63bf
SV
10862020-08-25 Shahab Vahedi <shahab@synopsys.com>
1087
1088 * MAINTAINERS: Add ARC target and maintainer.
1089
8d7f0635
AK
10902020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1091
1092 * configure.tgt: ARC support for GNU/Linux.
1093 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1094 * arc-linux-tdep.c: New file.
1095 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1096 * arc-tdep.c (arc_write_pc): Use it.
1097
fdd8731b
SV
10982020-08-25 Shahab Vahedi <shahab@synopsys.com>
1099
1100 * arc-tdep.c (arc_check_for_hardware_loop): New.
1101 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1102
22459524
SV
11032020-08-25 Shahab Vahedi <shahab@synopsys.com>
1104
1105 * arc-tdep.h: Include "gdbarch.h".
1106
995d3a19
SV
11072020-08-25 Shahab Vahedi <shahab@synopsys.com>
1108
1109 * arch/arc.h
1110 (arc_gdbarch_features): New class to stir the selection of target XML.
1111 (arc_create_target_description): Use FEATURES to choose XML target.
1112 (arc_lookup_target_description): Use arc_create_target_description
1113 to create _new_ target descriptions or return the already created
1114 ones if the FEATURES is the same.
1115 * arch/arc.c: Implementation of prototypes described above.
1116 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1117 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1118 * arc-tdep.c (*_feature_name): Make feature names consistent.
1119 (arc_register_feature): A new struct to hold information about
1120 registers of a particular target/feature.
1121 (arc_check_tdesc_feature): Check if XML provides registers in
1122 compliance with ARC_REGISTER_FEATURE structs.
1123 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1124 (determine_*_reg_feature_set): Which feature name to look for.
1125 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1126 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1127 to expected ISA enums to be used in arc_gdbarch_features structs.
1128 * features/Makefile (FEATURE_XMLFILES): Add new files.
1129 * gdb/features/arc/v1-aux.c: New file.
1130 * gdb/features/arc/v1-aux.xml: Likewise.
1131 * gdb/features/arc/v1-core.c: Likewise.
1132 * gdb/features/arc/v1-core.xml: Likewise.
1133 * gdb/features/arc/v2-aux.c: Likewise.
1134 * gdb/features/arc/v2-aux.xml: Likewise.
1135 * gdb/features/arc/v2-core.c: Likewise.
1136 * gdb/features/arc/v2-core.xml: Likewise.
1137 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1138
3945d2d7
GM
11392020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1140 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 PR m2/26372
fc5d6901 1143 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1144 an assert. Remove single element array indexing pattern as the
1145 MULTI_SUBSCRIPT support will handle this case too.
1146
2677f2d3
SM
11472020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 * value.h (valprint_check_validity): Move declaration from
1150 here...
1151 * valprint.h (valprint_check_validity): ... to here.
1152
c426fddb
SM
11532020-08-24 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * debug.h: New file.
1156 * debug.c (debug_prefixed_vprintf): New function.
1157 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1158 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1159
1eb8556f
SM
11602020-08-24 Simon Marchi <simon.marchi@efficios.com>
1161
1162 * infrun.h (infrun_debug_printf_1): New function declaration.
1163 (infrun_debug_printf): New macro.
1164 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1165 throughout.
1166 (infrun_debug_printf): New function.
1167 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1168 (handle_jit_event): Likewise.
1169
b8fff44e
MW
11702020-08-21 Mark Wielaard <mark@klomp.org>
1171
1172 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1173
d19c3068
SM
11742020-08-22 Simon Marchi <simon.marchi@efficios.com>
1175
1176 * frame.c (enum class frame_id_status): New.
1177 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1178 (fprintf_frame): Update.
1179 (compute_frame_id): Set frame id status to "computing" on entry.
1180 Set it back to "not_computed" on failure and to "computed" on
1181 success.
1182 (get_frame_id): Assert the frame id is not being computed.
1183 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1184 (create_new_frame): Likewise.
1185 (frame_cleanup_after_sniffer): Update assert.
1186
b70e516e
SM
11872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1188
1189 * regcache.c (pid_ptid_regcache_map): New type.
1190 (target_ptid_regcache_map): Remove.
1191 (target_pid_ptid_regcache_map): New type.
1192 (regcaches): Change type to target_pid_ptid_regcache_map.
1193 (get_thread_arch_aspace_regcache): Update.
1194 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1195 case.
1196 (regcaches_size): Update.
1197 (regcache_count): Update.
1198 (registers_changed_ptid_target_pid_test): New.
1199 (_initialize_regcache): Register new test.
1200
cdd9148a
SM
12012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1202
1203 * regcache.c (regcache_count): New.
1204 (struct regcache_test_data): New.
1205 (regcache_test_data_up): New.
1206 (populate_regcaches_for_test): New.
1207 (regcaches_test): Remove.
1208 (get_thread_arch_aspace_regcache_test): New.
1209 (registers_changed_ptid_all_test): New.
1210 (registers_changed_ptid_target_test): New.
1211 (registers_changed_ptid_target_ptid_test): New.
1212 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1213 (_initialize_regcache): Register new tests.
1214
dd125343
SM
12152020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1216
1217 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1218 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1219 gdbarch and aspace parameter. Use current inferior's aspace.
1220 Validate regcache's arch value.
1221 (regcaches_test): Update.
1222
3ee93972
SM
12232020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1224
1225 * regcache.c (regcaches_test): Call registers_changed.
1226
33bf4c5c
TBA
12272020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1228
1229 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1230
c2fd7fae
AKS
12312020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1232
1233 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1234 to find the end of prologue for flang compiled binaries.
1235 * arm-tdep.c (arm_skip_prologue): Likewise.
1236 * i386-tdep.c (i386_skip_prologue): Likewise.
1237 * producer.c (producer_is_llvm): New function.
1238 (producer_parsing_tests): Added new tests for clang/flang.
1239 * producer.h (producer_is_llvm): New declaration.
1240
9327494e
SM
12412020-08-18 Simon Marchi <simon.marchi@efficios.com>
1242
1243 * linux-nat.c (linux_nat_debug_printf): New function.
1244 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1245
d138725a
AM
12462020-08-18 Aaron Merey <amerey@redhat.com>
1247
1248 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1249 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1250 (CLIBS): Add DEBUGINFOD_LIBS.
1251
f9b11e6b
ST
12522020-08-17 Sergei Trofimovich <siarheit@google.com>
1253
1254 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1255 'gdbarch_num_regs'.
1256
3ae7ab99
TT
12572020-08-17 Tom Tromey <tromey@adacore.com>
1258
1259 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1260 ada_get_decoded_value returns NULL.
1261
b017825f
TT
12622020-08-17 Tom Tromey <tromey@adacore.com>
1263
1264 * python/py-inferior.c (infpy_search_memory): Use
1265 gdb_py_object_from_ulongest.
1266 * python/py-infevents.c (create_inferior_call_event_object)
1267 (create_memory_changed_event_object): Use
1268 gdb_py_object_from_ulongest.
1269 * python/py-linetable.c (ltpy_entry_get_pc): Use
1270 gdb_py_object_from_ulongest.
1271
7635cf79
SM
12722020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * loc.c (class symbol_needs_eval_context): Fix indentation.
1275
f54be24b
SM
12762020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1277
1278 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1279 bool.
1280
53d5a2a5
TV
12812020-08-17 Tom de Vries <tdevries@suse.de>
1282
1283 PR gdb/26393
1284 * gdbtypes.c (dump_dynamic_prop): New function.
1285 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1286
547ce8f0
TV
12872020-08-15 Tom de Vries <tdevries@suse.de>
1288
1289 PR backtrace/26390
1290 * stack.c (print_frame_args): Temporarily set the selected
1291 frame to FRAME while printing the frame's arguments.
1292
6ea815e7
PFC
12932020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1294
1295 PR breakpoints/26385
1296 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1297 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1298
6e562fa3
PFC
12992020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1300
1301 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1302 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1303 and >= to check return value instead of == -1 and != -1.
1304
d369b608
SM
13052020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 * utils.h (class gdb_argv) <as_array_view>: New method.
1308 * utils.c (gdb_argv_as_array_view_test): New.
1309 (_initialize_utils): Register selftest.
1310 * maint.c (maintenance_selftest): Use the new method.
1311
b31488a3
KR
13122020-08-13 Kamil Rytarowski <n54@gmx.com>
1313
1314 * target.h (supports_dumpcore, dumpcore): New
1315 function declarations.
1316 * target.c (supports_dumpcore, dumpcore): New
1317 functions.
1318 * target-delegates.c: Rebuild.
1319 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1320 and target_dumpcore ().
1321
002a3166
AM
13222020-08-13 Aaron Merey <amerey@redhat.com>
1323
1324 * debuginfod-support.c: Replace global variables with user_data.
1325
ece5bc8a
SM
13262020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1327
1328 * maint.c (maintenance_selftest): Split args and pass array_view
1329 to run_tests.
1330
6d8a0a5e
LM
13312020-08-12 Luis Machado <luis.machado@linaro.org>
1332
1333 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1334 type's length.
1335 Use %s and pulongest to print the length.
1336
7cf663a9
PA
13372020-08-12 Pedro Alves <palves@redhat.com>
1338
1339 * NEWS: Move "Multi-target debugging support" item to the
1340 "Changes since GDB 9" section.
1341
27c7b875
PA
13422020-08-12 Pedro Alves <palves@redhat.com>
1343
1344 PR gdb/26336
1345 * progspace.c (program_space::remove_objfile): Invalidate the
1346 frame cache.
1347
1796a2a1
TV
13482020-08-11 Tom de Vries <tdevries@suse.de>
1349
1350 * MAINTAINERS: Mark ms1 as deleted.
1351
f8e3fe0d
LM
13522020-08-10 Luis Machado <luis.machado@linaro.org>
1353
1354 PR gdb/26310
1355
1356 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1357 act accordingly.
1358 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1359 movz/str/stur/stp skipping behavior.
1360
cc308722
LM
13612020-08-10 Luis Machado <luis.machado@linaro.org>
1362
1363 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1364 struct user_sve_header instead of struct sve_context.
1365
041d9819
SM
13662020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1367
1368 * read.h (dwarf2_fetch_die_loc_sect_off,
1369 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1370 `void *` parameter with function_view.
1371 * read.c (dwarf2_fetch_die_loc_sect_off,
1372 dwarf2_fetch_die_loc_cu_off): Likewise.
1373 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1374 (per_cu_dwarf_call): Adjust.
1375 (get_frame_address_in_block_wrapper): Remove.
1376 (indirect_synthetic_pointer): Adjust.
1377 (get_ax_pc): Remove.
1378 (dwarf2_compile_expr_to_ax): Adjust.
1379
38f8aa06
TV
13802020-08-08 Tom de Vries <tdevries@suse.de>
1381
1382 PR build/26344
1383 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1384 constructor.
1385 * regcache.c (get_thread_arch_aspace_regcache): Same.
1386
a52b3ae2
TT
13872020-08-07 Tom Tromey <tromey@adacore.com>
1388
1389 * ravenscar-thread.c
1390 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1391 New method.
1392 (ravenscar_thread_target::wait): Check
1393 runtime_initialized.
1394 (ravenscar_thread_target::prepare_to_store)
1395 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1396 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1397 (ravenscar_thread_target::stopped_by_watchpoint)
1398 (ravenscar_thread_target::stopped_data_address)
1399 (ravenscar_thread_target::core_of_thread): Use
1400 scoped_restore_current_thread and
1401 set_base_thread_from_ravenscar_task.
1402
0e29517d
TT
14032020-08-07 Tom Tromey <tromey@adacore.com>
1404
1405 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1406
592f9bd7
TT
14072020-08-07 Tom Tromey <tromey@adacore.com>
1408
1409 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1410 update_inferior_ptid before update_thread_list.
1411 (temporarily_change_regcache_ptid): New class.
1412 (ravenscar_thread_target::fetch_registers)
1413 (ravenscar_thread_target::store_registers)
1414 (ravenscar_thread_target::prepare_to_store): Use base thread when
1415 forwarding operation.
1416
39e2018a
TT
14172020-08-07 Tom Tromey <tromey@adacore.com>
1418
1419 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1420 "is_pid" case.
1421
2080266b
TT
14222020-08-07 Tom Tromey <tromey@adacore.com>
1423
1424 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1425 New methods.
1426 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1427 first.
1428 (ravenscar_thread_target::add_thread): Rename from
1429 ravenscar_add_thread.
1430 (ravenscar_thread_target::update_thread_list): Use a lambda.
1431 (ravenscar_thread_target::xfer_partial): New method.
1432
78c02f21
TT
14332020-08-07 Tom Tromey <tromey@adacore.com>
1434
1435 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1436 gdb::function_view.
1437 (iterate_over_live_ada_tasks): Change type of argument.
1438 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1439 of argument.
1440
d5d833af
TT
14412020-08-07 Tom Tromey <tromey@adacore.com>
1442
1443 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1444 Remove.
1445 (ravenscar_thread_target::extra_thread_info): Remove.
1446 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1447 defer to target beneath for non-Ravenscar threads.
1448
a8ac85bb
TT
14492020-08-07 Tom Tromey <tromey@adacore.com>
1450
1451 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1452 get_base_thread_from_ravenscar_task>: Now methods.
1453 <m_cpu_map>: New member.
1454 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1455 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1456 (ravenscar_thread_target::task_is_currently_active): Update.
1457 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1458 Now a method.
1459 (ravenscar_thread_target::add_active_thread): Put initial thread
1460 into the m_cpu_map.
1461
550ab58d
TT
14622020-08-07 Tom Tromey <tromey@adacore.com>
1463
1464 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1465 event_ptid.
1466
e9546579
TT
14672020-08-07 Tom Tromey <tromey@adacore.com>
1468
1469 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1470 runtime_initialized.
1471
3d4470e5
TT
14722020-08-07 Tom Tromey <tromey@adacore.com>
1473
1474 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1475 add_active_thread.
1476 (ravenscar_thread_target::add_active_thread): Now public.
1477 (ravenscar_inferior_created): Call add_active_thread after pushing
1478 the target.
1479
888bdb2b
SM
14802020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1481
1482 * regcache.c (ptid_regcache_map): New type.
1483 (target_ptid_regcache_map): New type.
1484 (regcaches): Change type to target_ptid_regcache_map.
1485 (get_thread_arch_aspace_regcache): Update to regcaches' new
1486 type.
1487 (regcache_thread_ptid_changed): Likewise.
1488 (registers_changed_ptid): Likewise.
1489 (regcaches_size): Likewise.
1490 (regcaches_test): Update.
1491 (regcache_thread_ptid_changed): Update.
1492 * regcache.h (regcache_up): New type.
1493 * gdbsupport/ptid.h (hash_ptid): New struct.
1494
b161a60d
SM
14952020-08-07 Simon Marchi <simon.marchi@efficios.com>
1496
1497 * observable.h (thread_ptid_changed): Add parameter
1498 `process_stratum_target *`.
1499 * infrun.c (infrun_thread_ptid_changed): Add parameter
1500 `process_stratum_target *` and use it.
1501 (selftests): New namespace.
1502 (infrun_thread_ptid_changed): New function.
1503 (_initialize_infrun): Register selftest.
1504 * regcache.c (regcache_thread_ptid_changed): Add parameter
1505 `process_stratum_target *` and use it.
1506 (regcache_thread_ptid_changed): New function.
1507 (_initialize_regcache): Register selftest.
1508 * thread.c (thread_change_ptid): Pass target to
1509 thread_ptid_changed observable.
1510
d2854d8d
CT
15112020-08-06 Caroline Tice <cmtice@google.com>
1512
fe4c3d43
SM
1513 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1514 (struct dwp_sections): Update field comments. Add loclists and
1515 rnglists fields.
1516 (struct virtual_v2_dwo_sections): Rename struct to
1517 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1518 size & offset fields for loclists and rnglists.
1519 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1520 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1521 skipping dummy type units.
1522 (create_dwp_hash_table): Update the large comment above the function to
1523 discuss Version 5 DWP files as well, with references. Update all the
1524 version checks in the function to check for version 5 as well. Add new
1525 section at the end to create dwp hash table for version 5.
1526 (create_dwp_v2_section): Rename function to
1527 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1528 Add V5 to error message text.
1529 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1530 into calls to create_dwp_v2_or_v5_section.
1531 (create_dwo_unit_in_dwp_v5): New function.
1532 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1533 check for version2; add else clause to handle version 5.
1534 (open_and_init_dwo_file): Add code to check dwarf version & only call
1535 create_debug_types_hash_table (with sections.types) if version is not 5;
1536 else call create_debug_type_hash_table, with sections.info.
1537 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1538 version 5.
1539 (dwarf2_locate_v5_dwp_sections): New function.
1540 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1541 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1542
159ed7d9
SM
15432020-08-06 Simon Marchi <simon.marchi@efficios.com>
1544
1545 * regcache.h (class regcache): Remove friend
1546 registers_changed_ptid.
1547 <regcache_thread_ptid_changed>: Remove.
1548 <regcaches>: Remove.
1549 * regcache.c (regcache::regcaches): Rename to...
1550 (regcaches): ... this. Make static.
1551 (get_thread_arch_aspace_regcache): Update.
1552 (regcache::regcache_thread_ptid_changed): Rename to...
1553 (regcache_thread_ptid_changed): ... this. Update.
1554 (class regcache_access): Remove.
1555 (regcaches_test): Update.
1556 (_initialize_regcache): Update.
1557 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1558 <forward_list>.
1559
174981ae
SM
15602020-08-06 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * regcache.h (class regcache) <current_regcache>: Rename to...
1563 <regcaches>: ... this. Move doc here.
1564 * regcache.c (regcache::current_regcache) Rename to...
1565 (regcache::regcaches): ... this. Move doc to header.
1566 (get_thread_arch_aspace_regcache): Update.
1567 (regcache::regcache_thread_ptid_changed): Update.
1568 (registers_changed_ptid): Update.
1569 (class regcache_access) <current_regcache_size>: Rename to...
1570 <regcaches_size>: ... this.
1571 (current_regcache_test): Rename to...
1572 (regcaches_test): ... this.
1573 (_initialize_regcache): Update.
1574
ed908db6
VC
15752020-08-06 Victor Collod <vcollod@nvidia.com>
1576
1577 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1578
b5582ab7
KB
15792020-08-05 Kevin Buettner <kevinb@redhat.com>
1580
1581 * corelow.c (core_target::build_file_mappings): Don't output
1582 null pathname in warning.
1583
ea946b86
SM
15842020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1587 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1588 gdb.dwarf2/dw2-single-line-discriminators.exp,
1589 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1590
57d02173
TT
15912020-08-05 Tom Tromey <tromey@adacore.com>
1592
1593 PR rust/26197:
1594 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1595 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1596 Fix off-by-one and type size errors in ordinary case.
1597
5555c86d
TV
15982020-08-05 Tom de Vries <tdevries@suse.de>
1599
1600 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1601 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1602
97916bfe
SM
16032020-08-04 Simon Marchi <simon.marchi@efficios.com>
1604
1605 * frame.h (frame_id_p): Return bool.
1606 (frame_id_artificial_p): Return bool.
1607 (frame_id_eq): Return bool.
1608 (has_stack_frames): Return bool.
1609 (get_selected_frame): Fix typo in comment.
1610 (get_frame_pc_if_available): Return bool.
1611 (get_frame_address_in_block_if_available): Return bool.
1612 (get_frame_func_if_available): Return bool.
1613 (read_frame_register_unsigned): Return bool.
1614 (get_frame_register_bytes): Return bool.
1615 (safe_frame_unwind_memory): Return bool.
1616 (deprecated_frame_register_read): Return bool.
1617 (frame_unwinder_is): Return bool.
1618 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1619 bool.
1620 <this_id::p>: Likewise.
1621 <prev_p>: Likewise.
1622 (frame_stash_add): Return bool.
1623 (get_frame_id): Use bool.
1624 (frame_id_build_special) Use bool.
1625 (frame_id_build_unavailable_stack): Use bool.
1626 (frame_id_build): Use bool.
1627 (frame_id_p): Return bool, use true/false instead of 1/0.
1628 (frame_id_artificial_p): Likewise.
1629 (frame_id_eq): Likewise.
1630 (frame_id_inner): Likewise.
1631 (get_frame_func_if_available): Likewise.
1632 (read_frame_register_unsigned): Likewise.
1633 (deprecated_frame_register_read): Likewise.
1634 (get_frame_register_bytes): Likewise.
1635 (has_stack_frames): Likewise.
1636 (inside_main_func): Likewise.
1637 (inside_entry_func): Likewise.
1638 (get_frame_pc_if_available): Likewise.
1639 (get_frame_address_in_block_if_available): Likewise.
1640 (frame_unwinder_is): Likewise.
1641 (safe_frame_unwind_memory): Likewise.
1642 (frame_unwind_arch): Likewise.
1643
fedfee88
SM
16442020-08-04 Simon Marchi <simon.marchi@efficios.com>
1645
1646 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1647 type to cached_copy_status.
1648 (fprintf_frame): Adjust.
1649 (get_frame_func_if_available): Adjust.
1650 (frame_cleanup_after_sniffer): Adjust.
1651
6cfa9b59
MW
16522020-08-04 Mark Wielaard <mark@klomp.org>
1653
1654 * MAINTAINERS (Write After Approval): Update email address.
1655
66d6346b
SM
16562020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1657
1658 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1659 dynamic_prop::const_val.
1660
8a6d5e35
SM
16612020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1662
1663 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1664 dynamic_prop::kind.
1665
51d6067d
SM
16662020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1669
b26e2ae7
JM
16702020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1671
1672 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1673
39791af2
JM
16742020-08-04 Weimin Pan <weimin.pan@oracle.com>
1675 Jose E. Marchesi <jose.marchesi@oracle.com>
1676
1677 * configure.tgt: Add entry for bpf-*-*.
1678 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1679 (ALLDEPFILES): Add bpf-tdep.c.
1680 * bpf-tdep.c: New file.
1681 * MAINTAINERS: Add bpf target and maintainer.
1682 * NEWS: Mention the support for the new target.
1683
521894aa
TV
16842020-08-04 Tom de Vries <tdevries@suse.de>
1685
1686 PR symtab/23270
1687 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1688 Error.
1689
5d6356e9
JB
16902020-08-03 John Baldwin <jhb@FreeBSD.org>
1691
1692 * syscalls/freebsd.xml: Regenerate.
1693
0cf82b81
JB
16942020-08-03 John Baldwin <jhb@FreeBSD.org>
1695
1696 * syscalls/update-freebsd.sh: Fix usage and year range.
1697
8f34b746
TV
16982020-08-03 Tom de Vries <tdevries@suse.de>
1699
1700 PR symtab/26333
1701 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1702 DW_LNE_lo_user/DW_LNE_hi_user range.
1703
5e500d33
SM
17042020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1705
1706 PR ada/26318
1707 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1708 kind.
1709
78319c15
TBA
17102020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1711
1712 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1713
4c55e970
TBA
17142020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1715
1716 * breakpoint.c (set_breakpoint_condition): Update the condition
1717 expressions after checking that the input condition string parses
1718 successfully and does not contain junk at the end.
1719
1e620590
TBA
17202020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1721
1722 * breakpoint.c (set_breakpoint_condition): Update the
1723 condition string after parsing the new condition successfully.
1724
c8693053
RO
17252020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1726
1727 * proc-api.c (_STRUCTURED_PROC): Don't define.
1728 * proc-events.c: Likewise.
1729 * proc-flags.c: Likewise.
1730 * proc-why.c: Likewise.
1731 * procfs.c: Likewise.
1732
1733 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1734 * configure, config.in: Regenerate.
1735
5a99adb8
TV
17362020-07-30 Tom de Vries <tdevries@suse.de>
1737
1738 PR build/26320
1739 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1740 m_red/m_green/m_blue in a union.
1741
8ba83e91
TV
17422020-07-29 Tom de Vries <tdevries@suse.de>
1743
1744 PR tdep/26280
1745 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1746
f75a0693
AB
17472020-07-28 Tom Tromey <tromey@adacore.com>
1748
1749 PR symtab/26270:
1750 * symtab.h (find_pc_partial_function_sym): Declare.
1751 * cli/cli-cmds.c (disassemble_command): Use
1752 find_pc_partial_function_sym. Check asm_demangle.
1753 * blockframe.c (cache_pc_function_sym): New global.
1754 (cache_pc_function_name): Remove.
1755 (clear_pc_function_cache): Update.
1756 (find_pc_partial_function_sym): New function, from
1757 find_pc_partial_function.
1758 (find_pc_partial_function): Rewrite using
1759 find_pc_partial_function_sym.
1760
16f3242c
TT
17612020-07-28 Tom Tromey <tromey@adacore.com>
1762
1763 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1764 help. Add usage.
1765
4888741a
TT
17662020-07-28 Tom Tromey <tromey@adacore.com>
1767
1768 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1769 <DW_OP_GNU_variable_value>: Cast to address type.
1770
4d46f402
KR
17712020-07-28 Kamil Rytarowski <n54@gmx.com>
1772
1773 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1774 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1775 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1776 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1777 (nbsd_get_siginfo_type): New.
1778 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1779 (_initialize_nbsd_tdep): New.
1780
d70f978b
L
17812020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1782
1783 PR binutils/26301
1784 * configure: Regenerated.
1785
377170fa
L
17862020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1787
1788 PR binutils/26301
1789 * configure: Regenerated.
1790
43d5901d
AB
17912020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * python/py-frame.c: Remove 'user-regs.h' include.
1794 (frapy_read_register): Rewrite to make use of
1795 gdbpy_parse_register_id.
1796 * python/py-registers.c (gdbpy_parse_register_id): New function,
1797 moved here from python/py-unwind.c. Updated the return type, and
1798 also accepts register descriptor objects.
1799 * python/py-unwind.c: Remove 'user-regs.h' include.
1800 (pyuw_parse_register_id): Moved to python/py-registers.c.
1801 (unwind_infopy_add_saved_register): Update to use
1802 gdbpy_parse_register_id.
1803 (pending_framepy_read_register): Likewise.
1804 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1805
14fa8fb3
AB
18062020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * python/py-registers.c: Add 'user-regs.h' include.
1809 (register_descriptor_iter_find): New function.
1810 (register_descriptor_iterator_object_methods): New static global
1811 methods array.
1812 (register_descriptor_iterator_object_type): Add pointer to methods
1813 array.
1814
ddce1758
JB
18152020-07-27 John Baldwin <jhb@FreeBSD.org>
1816
1817 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1818 for all architectures on FreeBSD 11.3 and later.
1819
a4089f52
TT
18202020-07-27 Tom Tromey <tromey@adacore.com>
1821
1822 * gcore.h (load_corefile): Don't declare.
1823
95420d30
TV
18242020-07-27 Tom de Vries <tdevries@suse.de>
1825
1826 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1827 * config.in: Regenerate.
1828 * configure: Regenerate.
1829
05a6b8c2
EZ
18302020-07-26 Eli Zaretskii <eliz@gnu.org>
1831
1832 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1833 ws2tcpip.h. When checking whether socklen_t type is defined, use
1834 ws2tcpip.h if it is available and sys/socket.h isn't.
1835 * configure: Regenerate.
1836 * config.in: Regenerate.
1837
e79eb02f
AB
18382020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 PR fortran/23051
1841 PR fortran/26139
1842 * valops.c (value_ind): Pass address to
1843 readjust_indirect_value_type.
1844 * value.c (readjust_indirect_value_type): Make parameter
1845 non-const, and add extra address parameter. Resolve original type
1846 before using it.
1847 * value.h (readjust_indirect_value_type): Update function
1848 signature and comment.
1849
876518dd
TV
18502020-07-25 Tom de Vries <tdevries@suse.de>
1851
1852 PR symtab/26243
1853 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1854 entries.
1855
f6720b1c
AM
18562020-07-24 Aaron Merey <amerey@redhat.com>
1857
1858 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1859 * configure: Rebuild.
1860
513487e1
KB
18612020-07-23 Kevin Buettner <kevinb@redhat.com>
1862
1863 PR corefiles/26294
1864 * corelow.c (_initialize_corelow): Add period to help text
1865 for "maintenance print core-file-backed-mappings".
1866
e7bc9db8
PA
18672020-07-23 Pedro Alves <pedro@palves.net>
1868
1869 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1870 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1871 meanwhile.
1872 * frame.c (frame_cache_generation, get_frame_cache_generation):
1873 New.
1874 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1875 (get_prev_frame_if_no_cycle): On exception, don't touch
1876 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1877 * frame.h (get_frame_cache_generation): Declare.
1878
90fcc466
TV
18792020-07-23 Tom de Vries <tdevries@suse.de>
1880
1881 PR tui/26282
1882 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1883 New default constructor.
1884
78344df7
AB
18852020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1888 exclude non-statement entries.
1889
b089853a
KB
18902020-07-22 Kevin Buettner <kevinb@redhat.com>
1891
1892 * NEWS (New commands): Mention new command
1893 "maintenance print core-file-backed-mappings".
1894
09c2f5d4
KB
18952020-07-22 Kevin Buettner <kevinb@redhat.com>
1896
1897 * corelow.c (gdbcmd.h): Include.
1898 (core_target::info_proc_mappings): New method.
1899 (get_current_core_target): New function.
1900 (maintenance_print_core_file_backed_mappings): New function.
1901 (_initialize_corelow): Add core-file-backed-mappings to
1902 "maint print" commands.
1903
9c5ec5c2 19042020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1905
9c5ec5c2
KB
1906 * linux-tdep.c (dump_note_entry_p): New function.
1907 (linux_dump_mapping_p_ftype): New typedef.
1908 (linux_find_memory_regions_full): Add new parameter,
1909 should_dump_mapping_p.
1910 (linux_find_memory_regions): Adjust call to
1911 linux_find_memory_regions_full.
1912 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1913 call to linux_find_memory_regions_full.
1914
db082f59
KB
19152020-07-22 Kevin Buettner <kevinb@redhat.com>
1916
1917 * corelow.c (solist.h, unordered_map): Include.
1918 (class core_target): Add field m_core_file_mappings and
1919 method build_file_mappings.
1920 (core_target::core_target): Call build_file_mappings.
1921 (core_target::~core_target): Free memory associated with
1922 m_core_file_mappings.
1923 (core_target::build_file_mappings): New method.
1924 (core_target::xfer_partial): Use m_core_file_mappings
1925 for memory transfers.
1926 * linux-tdep.c (linux_read_core_file_mappings): New
1927 function.
1928 (linux_core_info_proc_mappings): Rewrite to use
1929 linux_read_core_file_mappings.
1930 (linux_init_abi): Register linux_read_core_file_mappings.
1931
7e183d27
KB
19322020-07-22 Kevin Buettner <kevinb@redhat.com>
1933
1934 * arch-utils.c (default_read_core_file_mappings): New function.
1935 * arch-utils.c (default_read_core_file_mappings): Declare.
1936 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1937 * gdbarch.h, gdbarch.c: Regenerate.
1938
2735d421
KB
19392020-07-22 Kevin Buettner <kevinb@redhat.com>
1940
1941 PR corefiles/25631
1942 * corelow.c (core_target:xfer_partial): Revise
1943 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1944 case after first checking the stratum beneath the core
1945 target.
1946 (has_all_memory): Return true.
1947 * target.c (raw_memory_xfer_partial): Revise comment
1948 regarding use of has_all_memory.
1949
e56cb451
KB
19502020-07-22 Kevin Buettner <kevinb@redhat.com>
1951
1952 * exec.h (section_table_xfer_memory): Revise declaration,
1953 replacing section name parameter with an optional callback
1954 predicate.
1955 * exec.c (section_table_xfer_memory): Likewise.
1956 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1957 of section_table_xfer_memory.
1958
32fa152e
TT
19592020-07-22 Tom Tromey <tromey@adacore.com>
1960
1961 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1962 lookup_symbol_search_name.
1963
a67a1c41
AB
19642020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1967 redundant local variable.
1968 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1969 reference, not pointer, update code accordingly.
1970
a7b4ff4f
SM
19712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1972 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1973
1974 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1975 * jit.c (jit_breakpoint_re_set_internal): Use the
1976 `skip_jit_symbol_lookup` field.
1977
2340e834
SM
19782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1979 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1980
1981 * jit.c (jit_read_descriptor): Define the descriptor address once,
1982 use twice.
1983 (jit_breakpoint_deleted): Move the declaration of the loop variable
1984 `iter` into the loop header.
1985 (jit_breakpoint_re_set_internal): Move the declaration of the local
1986 variable `objf_data` to the first point of definition.
1987 (jit_event_handler): Move the declaration of local variables
1988 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1989 Rename `objf` to `jited`.
1990
c1072906
SM
19912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1994 Remove.
1995 * jit.c (get_jiter_objfile_data): Update.
1996
c8474dc3
TBA
19972020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1998 Simon Marchi <simon.marchi@polymtl.ca>
1999
2000 * jit.c (struct jit_program_space_data): Remove.
2001 (jit_program_space_key): Remove.
2002 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2003 stuff.
2004 (get_jit_program_space_data): Remove.
2005 (jit_breakpoint_deleted): Iterate on all of the program space's
2006 objfiles.
2007 (jit_inferior_init): Likewise.
2008 (jit_breakpoint_re_set_internal): Likewise. Also change return
2009 type to void.
2010 (jit_breakpoint_re_set): Pass current_program_space to
2011 jit_breakpoint_re_set_internal.
2012
77208eb7
SM
20132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2014
2015 * jit.h (struct jiter_objfile_data) <cached_code_address,
2016 jit_breakpoint>: Move to here from ...
2017 * jit.c (jit_program_space_data): ... here.
2018 (jiter_objfile_data::~jiter_objfile_data): Update.
2019 (jit_breakpoint_deleted): Update.
2020 (jit_breakpoint_re_set_internal): Update.
2021
8c1c720f
SM
20222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2023
2024 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2025 checks.
2026 (jit_read_descriptor): Remove NULL check.
2027 (jit_event_handler): Add an assertion.
2028
0e74a041
SM
20292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2030
2031 * jit.h (struct jit_objfile_data): Split into...
2032 (struct jiter_objfile_data): ... this ...
2033 (struct jited_objfile_data): ... and this.
2034 * objfiles.h (struct objfile) <jit_data>: Remove.
2035 <jiter_data, jited_data>: New fields.
2036 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2037 (jiter_objfile_data::~jiter_objfile_data): ... this.
2038 (get_jit_objfile_data): Rename to ...
2039 (get_jiter_objfile_data): ... this.
2040 (add_objfile_entry): Update.
2041 (jit_read_descriptor): Use get_jiter_objfile_data.
2042 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2043 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2044 (jit_inferior_exit_hook): Use objfile's jited_data field.
2045
238b5c9f
SM
20462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2047
2048 * jit.h: Forward-declare `struct minimal_symbol`.
2049 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2050 constructor, destructor, and an objfile* field.
2051 * jit.c (jit_objfile_data): Remove.
2052 (struct jit_objfile_data): Migrate from here to jit.h.
2053 (jit_objfile_data::~jit_objfile_data): New destructor
2054 implementation with code moved from free_objfile_data.
2055 (free_objfile_data): Delete.
2056 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2057 (jit_find_objf_with_entry_addr): Ditto.
2058 (jit_inferior_exit_hook): Ditto.
2059 (_initialize_jit): Remove the call to
2060 register_objfile_data_with_cleanup.
2061 * objfiles.h (struct objfile) <jit_data>: New field.
2062
fe053b9e
TBA
20632020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2064
2065 * jit.h: Forward-declare `struct objfile`.
2066 (jit_event_handler): Add a second parameter, the JITer objfile.
2067 * jit.c (jit_read_descriptor): Change the signature to take the
2068 JITer objfile as an argument instead of the jit_program_space_data.
2069 (jit_inferior_init): Update the call to jit_read_descriptor.
2070 (jit_event_handler): Use the new JITer objfile argument when calling
2071 jit_read_descriptor.
2072 * breakpoint.c (handle_jit_event): Update the call to
2073 jit_event_handler to pass the JITer objfile.
2074
4cec0c66
JB
20752020-07-21 John Baldwin <jhb@FreeBSD.org>
2076
2077 * gdbarch.c: Regenerate.
2078 * gdbarch.h: Regenerate.
2079 * gdbarch.sh (handle_segmentation_fault): Remove method.
2080 * infrun.c (handle_segmentation_fault): Remove.
2081 (print_signal_received_reason): Remove call to
2082 handle_segmentation_fault.
2083
0e42f66a
JB
20842020-07-21 John Baldwin <jhb@FreeBSD.org>
2085
2086 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2087 Rename to sparc64_linux_report_signal_info and add siggnal
2088 argument.
2089 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2090 instead of sparc64_linux_handle_segmentation_fault.
2091
77bdfeb2
JB
20922020-07-21 John Baldwin <jhb@FreeBSD.org>
2093
2094 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2095 i386_linux_report_signal_info instead of
2096 i386_linux_handle_segmentation_fault.
2097 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2098 to i386_linux_report_signal_info and add siggnal argument.
2099 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2100 of i386_linux_handle_segmentation_fault.
2101 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2102 to i386_linux_report_signal_info and add siggnal argument.
2103
ad97bfc5
JB
21042020-07-21 John Baldwin <jhb@FreeBSD.org>
2105
2106 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2107 hook if present.
2108
272bb05c
JB
21092020-07-21 John Baldwin <jhb@FreeBSD.org>
2110
2111 * gdbarch.c: Regenerate.
2112 * gdbarch.h: Regenerate.
2113 * gdbarch.sh (report_signal_info): New method.
2114 * infrun.c (print_signal_received_reason): Invoke gdbarch
2115 report_signal_info hook if present.
2116
baf8791e
AB
21172020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * python/py-registers.c : Add 'unordered_map' include.
2120 (gdbpy_new_reggroup): Renamed to...
2121 (gdbpy_get_reggroup): ...this. Update to only create register
2122 group descriptors when needed.
2123 (gdbpy_reggroup_iter_next): Update.
2124
f7306dac
AB
21252020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * python/py-registers.c (gdbpy_register_object_data): New static
2128 global.
2129 (gdbpy_register_object_data_init): New function.
2130 (gdbpy_new_register_descriptor): Renamed to...
2131 (gdbpy_get_register_descriptor): ...this, and update to reuse
2132 existing register descriptors where possible.
2133 (gdbpy_register_descriptor_iter_next): Update.
2134 (gdbpy_initialize_registers): Register new gdbarch data.
2135
05c309a8
SM
21362020-07-21 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * linux-nat.c (stopped_pids): Make static.
2139
d1fd641e
SM
21402020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2141
2142 PR ada/26235
2143 * gdbtypes.c (ada_discrete_type_low_bound,
2144 ada_discrete_type_high_bound): Handle undefined bounds.
2145
1de14d77
KR
21462020-07-21 Kamil Rytarowski <n54@gmx.com>
2147
2148 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2149 declaration.
2150 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2151 function.
2152
ed810cc7
JB
21532020-07-20 John Baldwin <jhb@FreeBSD.org>
2154
2155 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2156 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2157 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2158 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2159 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2160 method.
2161
ae5369e7
LC
21622020-07-20 Ludovic Courtès <ludo@gnu.org>
2163
2164 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2165 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2166 which are deprecated in Guile 3.0.
2167 * configure.ac (try_guile_versions): Add "guile-3.0".
2168 * configure (try_guile_versions): Regenerate.
2169 * NEWS: Update entry.
2170
68cf161c
LC
21712020-07-20 Ludovic Courtès <ludo@gnu.org>
2172 Doug Evans <dje@google.com>
2173
2174 PR gdb/21104
2175 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2176 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2177 USING_GUILE_BEFORE_2_2.
2178 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2179 Change type to 'scm_t_port_type *'.
2180 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2181 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2182 parameter and honor it. Update callers.
2183 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2184 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2185 functions.
2186 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2187 USING_GUILE_BEFORE_2_2.
2188 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2189 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2190 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2191 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2192 and 'SCM_PORT_TYPE'.
2193 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2194 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2195 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2196 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2197 [!USING_GUILE_BEFORE_2_2]: New functions.
2198 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2199 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2200 'gdbscm_memory_port_read'.
2201 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2202 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2203 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2204 function.
2205 (ioscm_init_memory_port): Remove.
2206 (ioscm_init_memory_port_stream): New function
2207 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2208 function.
2209 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2210 Return scm_from_uint (0).
2211 (gdbscm_set_memory_port_read_buffer_size_x)
2212 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2213 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2214 Return scm_from_uint (0).
2215 (gdbscm_set_memory_port_write_buffer_size_x)
2216 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2217 * configure.ac (try_guile_versions): Add "guile-2.2".
2218 * configure: Regenerate.
2219 * NEWS: Add entry.
2220
aee91db3
TT
22212020-07-18 Tom Tromey <tom@tromey.com>
2222
2223 * linux-nat.c (linux_multi_process): Remove.
2224 (linux_nat_target::supports_multi_process): Return true.
2225
0e267416
AB
22262020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2229 (riscv_lookup_target_description): Return pointer out of
2230 unique_ptr.
2231 * target-descriptions.c (allocate_target_description): Add
2232 comment.
2233 (target_desc_deleter::operator()): Likewise.
2234 * target-descriptions.h (struct target_desc_deleter): Moved to
2235 gdbsupport/tdesc.h.
2236 (target_desc_up): Likewise.
2237
f80c8ec4
TT
22382020-07-17 Tom Tromey <tromey@adacore.com>
2239
2240 * linux-nat.c (linux_nat_target::supports_non_stop)
2241 (linux_nat_target::always_non_stop_p): Use "true".
2242 (linux_nat_target::supports_disable_randomization): Use "true" and
2243 "false".
2244
d0ce17d8
CT
22452020-07-16 Caroline Tice <cmtice@google.com>
2246
2247 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2248 (RNGLIST_HEADER_SIZE64): New constant definition.
2249 (struct dwop_section_names): Add rnglists_dwo.
2250 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2251 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2252 (struct dwo_sections): Add rnglists field.
2253 (read_attribut_reprocess): Add tag parameter.
2254 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2255 (cu_debug_rnglists_section): New function (decl & definition).
2256 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2257 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2258 die whose range is being checked; get rnglist section from
2259 cu_debug_rnglists_section, to get from either objfile or dwo file as
2260 appropriate. Add cases for DW_RLE_base_addressx,
2261 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2262 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2263 test inside if-condition and updating complaint message.
2264 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2265 dwarf2_rnglists_process.
2266 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2267 dwarf2_ranges_process.
2268 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2269 need_ranges_base and update comment appropriately. Also pass die tag
2270 to dwarf2_ranges_read.
2271 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2272 need_ranges_base and update comment appropriately. Also pass die tag
2273 to dwarf2_ranges_process.
2274 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2275 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2276 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2277 need_ranges_base and update comment appropriately. Also pass die tag
2278 to read_attribute_reprocess and dwarf2_ranges_read.
2279 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2280 and update function comment appropriately.
2281 (read_loclist_index): Call read_loclists_rnglists_header instead of
2282 read_loclist_header.
2283 (read_rnglist_index): New function.
2284 (read_attribute_reprocess): Add tag parameter. Add code for
2285 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2286 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2287
3dcc261c
AB
22882020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2291 being resolved.
2292
ccb9eba6
AB
22932020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * arch-utils.c (show_architecture): Update formatting of messages.
2296
cf88be68
SM
22972020-07-12 Simon Marchi <simon.marchi@efficios.com>
2298
2299 * gdbtypes.h (struct type) <bounds>: Handle array and string
2300 types.
2301 * ada-lang.c (assign_aggregate): Use type::bounds on
2302 array/string type.
2303 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2304 * c-varobj.c (c_number_of_children): Likewise.
2305 (c_describe_child): Likewise.
2306 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2307 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2308 (f_type_print_base): Likewise.
2309 * f-valprint.c (f77_array_offset_tbl): Likewise.
2310 (f77_get_upperbound): Likewise.
2311 (f77_print_array_1): Likewise.
2312 * guile/scm-type.c (gdbscm_type_range): Likewise.
2313 * m2-typeprint.c (m2_array): Likewise.
2314 (m2_is_long_set_of_type): Likewise.
2315 * m2-valprint.c (get_long_set_bounds): Likewise.
2316 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2317 * python/py-type.c (typy_range): Likewise.
2318 * rust-lang.c (rust_internal_print_type): Likewise.
2319 * type-stack.c (type_stack::follow_types): Likewise.
2320 * valarith.c (value_subscripted_rvalue): Likewise.
2321 * valops.c (value_cast): Likewise.
2322
509971ae
SM
23232020-07-12 Simon Marchi <simon.marchi@efficios.com>
2324
2325 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2326 callers to use the equivalent accessor methods.
2327
107406b7
SM
23282020-07-12 Simon Marchi <simon.marchi@efficios.com>
2329
2330 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2331 (struct type) <bit_stride>: New method.
2332 (TYPE_BIT_STRIDE): Remove.
2333 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2334
bb789949
SM
23352020-07-12 Simon Marchi <simon.marchi@efficios.com>
2336
2337 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2338 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2339 callers to use the equivalent accessor methods instead.
2340
39498edb
SM
23412020-07-12 Simon Marchi <simon.marchi@efficios.com>
2342
2343 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2344 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2345 callers to use the equivalent accessor methods instead.
2346
3b606f38
SM
23472020-07-12 Simon Marchi <simon.marchi@efficios.com>
2348
2349 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2350 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2351 to use dynamic_prop::kind.
2352
064d9cb9
SM
23532020-07-12 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2356 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2357 to get the bound property's kind and check against
2358 PROP_UNDEFINED.
2359
5537ddd0
SM
23602020-07-12 Simon Marchi <simon.marchi@efficios.com>
2361
2362 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2363 all callers to use type::range_bounds followed by
2364 dynamic_prop::{low,high}.
2365
8c2e4e06
SM
23662020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2367
2368 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2369 const_val, set_const_val, baton, set_locexpr, set_loclist,
2370 set_addr_offset, variant_parts, set_variant_parts,
2371 original_type, set_original_type>: New methods.
2372 <kind>: Rename to...
2373 <m_kind>: ... this. Update all users to use the new methods
2374 instead.
2375 <data>: Rename to...
2376 <m_data>: ... this. Update all users to use the new methods
2377 instead.
2378
7c6f2712
SM
23792020-07-12 Simon Marchi <simon.marchi@efficios.com>
2380
2381 * gdbtypes.c (get_discrete_bounds): Return failure if
2382 the range type's bounds are not both defined and constant
2383 values.
2384 (get_array_bounds): Update comment. Remove undefined bound check.
2385
599088e3
SM
23862020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2387
2388 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2389 the type::bounds method directly.
2390
c4dfcb36
SM
23912020-07-12 Simon Marchi <simon.marchi@efficios.com>
2392
2393 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2394 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2395 are used to set the range type's bounds to use set_bounds.
2396
0a278aa7
PW
23972020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2398
2399 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2400
cce20f10
PA
24012020-07-10 Pedro Alves <pedro@palves.net>
2402
2403 * gdbthread.h (inferior_ref): Define.
2404 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2405 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2406 * thread.c
2407 (scoped_restore_current_thread::restore):
2408 Adjust to gdb::ref_ptr.
2409 (scoped_restore_current_thread::~scoped_restore_current_thread):
2410 Remove manual decref handling.
2411 (scoped_restore_current_thread::scoped_restore_current_thread):
2412 Adjust to use
2413 inferior_ref::new_reference/thread_info_ref::new_reference.
2414 Incref the thread before calling get_frame_id instead of after.
2415 Let TARGET_CLOSE_ERROR propagate.
2416
6d7aa592
PA
24172020-07-10 Pedro Alves <pedro@palves.net>
2418
2419 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2420 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2421 NOT_AVAILABLE_ERROR.
2422 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2423 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2424
b3e3a4c1
SM
24252020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2426 Pedro Alves <pedro@palves.net>
2427
2428 PR gdb/26199
2429 * infrun.c (threads_are_resumed_pending_p): Delete.
2430 (do_target_wait): Remove threads_are_executing and
2431 threads_are_resumed_pending_p checks from the inferior_matches
2432 lambda. Update comments.
2433
d6cc5d98
PA
24342020-07-10 Pedro Alves <pedro@palves.net>
2435
2436 PR gdb/26199
2437 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2438 executing threads.
2439
7d3badc6
PA
24402020-07-10 Pedro Alves <pedro@palves.net>
2441
2442 PR gdb/26199
2443 * infrun.c (handle_no_resumed): Handle multiple targets.
2444
42bd97a6
PA
24452020-07-10 Pedro Alves <pedro@palves.net>
2446
2447 PR gdb/26199
2448 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2449 target_is_async_p.
2450
43667cc6
PA
24512020-07-10 Pedro Alves <pedro@palves.net>
2452
2453 PR gdb/26199
2454 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2455 threads, not all threads.
2456
96118d11
PA
24572020-07-10 Pedro Alves <pedro@palves.net>
2458
2459 PR gdb/26199
2460 * remote.c (remote_target::open_1): Pass remote target pointer as
2461 data to create_async_event_handler.
2462 (remote_async_inferior_event_handler): Mark async event handler
2463 before returning if the remote target still has either pending
2464 events or unacknowledged notifications.
2465
54904d81
JB
24662020-07-10 John Baldwin <jhb@FreeBSD.org>
2467
2468 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2469 declaration.
2470 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2471 function.
2472
f37e5866
JB
24732020-07-09 John Baldwin <jhb@FreeBSD.org>
2474
2475 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2476 inferior_ptid.
2477
fc238d4a
JB
24782020-07-09 John Baldwin <jhb@FreeBSD.org>
2479
2480 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2481 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2482 AT_FREEBSD_PS_STRINGS.
2483
6e2469ff
HD
24842020-07-08 Hannes Domani <ssbssa@yahoo.de>
2485
2486 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2487 of debugfile path on Windows.
2488
d1076c41
JB
24892020-07-08 John Baldwin <jhb@FreeBSD.org>
2490
2491 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2492 argument to 'data'.
2493
15f3b077
TT
24942020-07-08 Tom Tromey <tromey@adacore.com>
2495
2496 * ada-lang.c (ada_exception_message_1): Use read_memory.
2497
9fc501fd
AB
24982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 PR python/22748
2501 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2502 special handling for inline frames.
2503 * findvar.c (value_of_register_lazy): Skip inline frames when
2504 creating lazy register values.
2505 * frame.c (frame_id_computed_p): Delete definition.
2506 * frame.h (frame_id_computed_p): Delete declaration.
2507
64cb3757
AB
25082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2509
2510 * NEWS: Mention additions to Python API.
2511 * python/py-arch.c (archpy_register_groups): New function.
2512 (arch_object_methods): Add 'register_groups' method.
2513 * python/py-registers.c (reggroup_iterator_object): New struct.
2514 (reggroup_object): New struct.
2515 (gdbpy_new_reggroup): New function.
2516 (gdbpy_reggroup_to_string): New function.
2517 (gdbpy_reggroup_name): New function.
2518 (gdbpy_reggroup_iter): New function.
2519 (gdbpy_reggroup_iter_next): New function.
2520 (gdbpy_new_reggroup_iterator): New function
2521 (gdbpy_initialize_registers): Register new types.
2522 (reggroup_iterator_object_type): Define new Python type.
2523 (gdbpy_reggroup_getset): New static global.
2524 (reggroup_object_type): Define new Python type.
2525 * python/python-internal.h
2526
0f767f94
AB
25272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2530 * python/py-arch.c (archpy_registers): New function.
2531 (arch_object_methods): Add 'registers' method.
2532 * python/py-registers.c: New file.
2533 * python/python-internal.h
2534 (gdbpy_new_register_descriptor_iterator): Declare.
2535 (gdbpy_initialize_registers): Declare.
2536 * python/python.c (do_start_initialization): Call
2537 gdbpy_initialize_registers.
2538 * NEWS: Mention additions to the Python API.
2539
87dbc774
AB
25402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * NEWS: Mention new Python API method.
2543 * python/py-unwind.c (pending_framepy_architecture): New function.
2544 (pending_frame_object_methods): Add architecture method.
2545
3bc98c0c
AB
25462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * gdbarch.c: Regenerate.
2549 * gdbarch.h: Regenerate.
2550 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2551 (gdbarch_data): Use internal_error for the case where
2552 deprecated_set_gdbarch_data was originally needed.
2553 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2554 and use passed in obstack.
2555 (libunwind_frame_set_descr): Should no longer get back NULL from
2556 gdbarch_data.
2557 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2558 type.
2559 * user-regs.c (user_regs_init): Update parameters, and use passed
2560 in obstack.
2561 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2562 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2563
d8cc8af6
TV
25642020-07-06 Tom de Vries <tdevries@suse.de>
2565
2566 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2567 End-Of-Sequence in lte_is_less_than.
2568 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2569 "gdb: Don't reorder line table entries too much when sorting".
2570
947f7597
TV
25712020-07-06 Tom de Vries <tdevries@suse.de>
2572
2573 PR tui/26205
2574 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2575
1e7c1b22
TV
25762020-07-05 Tom de Vries <tdevries@suse.de>
2577
2578 PR build/26187
2579 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2580 std::uncaught_exceptions instead of deprecated
2581 std::uncaught_exception.
2582
a36158ec
SM
25832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2584
2585 * macroexp.h (macro_stringify): Return
2586 gdb::unique_xmalloc_ptr<char>.
2587 * macroexp.c (macro_stringify): Likewise.
2588 * macrotab.c (fixup_definition): Update.
2589
14d960c8
SM
25902020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2593 (lex_one_token): Update.
2594 * macroexp.c (struct macro_buffer) <release>: Return
2595 gdb::unique_xmalloc_ptr<char>.
2596 (macro_stringify): Update.
2597 (macro_expand): Update.
2598 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2599 * macroexp.h (macro_expand_next): Likewise.
2600
211d5b1c
SM
26012020-07-02 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * macroexp.h (macro_lookup_ftype): Remove.
2604 (macro_expand, macro_expand_once, macro_expand_next): Remove
2605 lookup function parameters, add scope parameter.
2606 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2607 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2608 * macroscope.h (standard_macro_lookup): Change parameter type
2609 to macro_scope.
2610 * macroscope.c (standard_macro_lookup): Likewise.
2611 * c-exp.y (lex_one_token): Update.
2612 * macrocmd.c (macro_expand_command): Likewise.
2613 (macro_expand_once_command): Likewise.
2614
b1a35af2
SM
26152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * inf-loop.c (inferior_event_handler): Remove client_data param.
2618 * inf-loop.h (inferior_event_handler): Likewise.
2619 * infcmd.c (step_1): Adjust.
2620 * infrun.c (proceed): Adjust.
2621 (fetch_inferior_event): Remove client_data param.
2622 (infrun_async_inferior_event_handler): Adjust.
2623 * infrun.h (fetch_inferior_event): Remove `void *` param.
2624 * linux-nat.c (handle_target_event): Adjust.
2625 * record-btrace.c (record_btrace_handle_async_inferior_event):
2626 Adjust.
2627 * record-full.c (record_full_async_inferior_event_handler):
2628 Adjust.
2629 * remote.c (remote_async_inferior_event_handler): Adjust.
2630
1cdf9e33
TT
26312020-07-01 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2634 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2635
32c1e210
TT
26362020-07-01 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2639 tui_gen_win_info.
2640 (tui_win_info::make_window): Merge with
2641 tui_gen_win_info::make_window.
2642 (tui_win_info::make_visible): Move from tui_gen_win_info.
2643 * tui/tui-win.c (tui_win_info::max_width): Move from
2644 tui_gen_win_info.
2645 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2646 type.
2647 <window_factory>: Likewise.
2648 * tui/tui-layout.c (tui_win_info::resize): Move from
2649 tui_gen_win_info.
2650 (make_standard_window): Change return type.
2651 (get_locator_window, tui_get_window_by_name): Likewise.
2652 (tui_layout_window::apply): Remove a cast.
2653 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2654 (struct tui_win_info): Merge with tui_gen_win_info.
2655 (struct tui_gen_win_info): Remove.
2656
a30cb6da
TT
26572020-07-01 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-stack.h (struct tui_locator_window): Derive from
2660 tui_win_info.
2661 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2662 <can_box>: New method.
2663
1eb2161f
TT
26642020-07-01 Tom Tromey <tom@tromey.com>
2665
2666 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2667
7134f2eb
TT
26682020-07-01 Tom Tromey <tom@tromey.com>
2669
2670 * tui/tui-regs.c (tui_data_window::display_registers_from)
2671 (tui_data_window::display_registers_from)
2672 (tui_data_window::first_data_item_displayed)
2673 (tui_data_window::delete_data_content_windows): Update.
2674 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2675 Remove.
2676 (tui_data_window::check_register_values): Update.
2677 (tui_data_item_window::rerender): Add parameters. Update.
2678 (tui_data_item_window::refresh_window): Remove.
2679 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2680 virtual.
2681 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2682 tui_gen_win_info.
2683 <refresh_window, max_height, min_height>: Remove.
2684 <rerender>: Add parameters.
2685 <x, y, visible>: New members.
2686 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2687 <m_item_width>: New member.
2688
22b7b041
TT
26892020-07-01 Tom Tromey <tom@tromey.com>
2690
2691 * tui/tui-regs.c (tui_data_window::show_register_group)
2692 (tui_data_window::check_register_values): Update.
2693 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2694 from item_no.
2695
c9753adb
TT
26962020-07-01 Tom Tromey <tom@tromey.com>
2697
2698 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2699 useless "if".
2700
9ab26b4a
TT
27012020-07-01 Tom Tromey <tom@tromey.com>
2702
2703 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2704 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2705
e555083f
TT
27062020-07-01 Tom Tromey <tom@tromey.com>
2707
2708 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2709 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2710 (struct tui_line_or_address): Move from tui-data.h.
2711 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2712 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2713 (tui_cmd_window, tui_source_window_base, tui_source_window)
2714 (tui_disasm_window): Don't declare.
2715 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2716 to tui-winsource.h.
2717 (SINGLE_KEY): Move to tui-stack.c.
2718
7a02bab7
TT
27192020-07-01 Tom Tromey <tom@tromey.com>
2720
2721 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2722 std::string.
2723 * tui/tui-regs.c (class tab_expansion_file): New.
2724 (tab_expansion_file::write): New method.
2725 (tui_register_format): Change return type. Use
2726 tab_expansion_file.
2727 (tui_get_register, tui_data_window::display_registers_from)
2728 (tui_data_item_window::rerender): Update.
2729 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2730 * tui/tui-io.c (tui_expand_tabs): Remove.
2731
ea68593b
TT
27322020-07-01 Tom Tromey <tom@tromey.com>
2733
2734 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2735
a8caed5d
FS
27362020-07-01 Fangrui Song <maskray@google.com>
2737
2738 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2739
9cdf9820
AKS
27402020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2741
2742 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2743 forms for DW_AT_associated and DW_AT_allocated attributes,
2744 which is already checked in function attr_to_dynamic_prop.
2745
a1520ad8
TT
27462020-06-30 Tom Tromey <tromey@adacore.com>
2747
2748 * dwarf2/read.c (quirk_rust_enum): Correctly call
2749 alloc_rust_variant for default-less enum.
2750
5ac58899
TT
27512020-06-30 Tom Tromey <tromey@adacore.com>
2752
2753 PR build/26183:
2754 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2755 gdb::to_string.
2756
19b187a9
SM
27572020-06-29 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2760 * gdbarch.h: Re-generate.
2761
cd4c4c07
TT
27622020-06-28 Tom Tromey <tom@tromey.com>
2763
2764 * command.h (cmd_types): Remove.
2765 (cmd_type): Don't declare.
2766 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2767 typedef.
2768 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2769 * cli/cli-decode.c (cmd_type): Remove.
2770
05779d57
PA
27712020-06-27 Pedro Alves <palves@redhat.com>
2772
2773 * fork-child.c (prefork_hook): Adjust.
2774 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2775 Delete.
2776 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2777 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2778 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2779 Remove declarations.
2780 (struct inferior) <set_tty, tty>: New methods.
2781 (struct inferior) <terminal>: Rename to ...
2782 (struct inferior) <m_terminal>: ... this and make private.
2783 * main.c (captured_main_1): Adjust.
2784 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2785 (mi_cmd_inferior_tty_show): Adjust.
2786 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2787 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2788
1776e3e5
NA
27892020-06-26 Nick Alcock <nick.alcock@oracle.com>
2790
2791 * configure.ac: Add --enable-libctf: handle --disable-static
2792 properly.
2793 * acinclude.m4: sinclude ../config/enable.m4.
2794 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2795 (LIBCTF): Substitute in.
2796 (CTF_DEPS): New, likewise.
2797 (CLIBS): libctf needs symbols from libbfd: move earlier.
2798 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2799 flags.
2800 * ctfread.c: Surround in ENABLE_LIBCTF.
2801 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2802 * configure: Regenerate.
2803 * config.in: Likewise.
2804
58373b80
SM
28052020-06-25 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2808
277474ee
SM
28092020-06-25 Simon Marchi <simon.marchi@efficios.com>
2810
2811 * inferior.h (struct inferior) <terminal>: Change type to
2812 gdb::unique_xmalloc_ptr<char>.
2813 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2814 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2815 field, adjust to unique pointer.
2816 (get_inferior_io_terminal): Adjust to unique pointer.
2817
6d74da72
AB
28182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2821 registers, not just the known core set of registers.
2822
2e52d038
AB
28232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2826 fflags, frm, and fcsr registers.
2827 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2828 restore groups.
2829 (riscv_tdesc_unknown_reg): New function.
2830 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2831 tdesc_use_registers.
2832 * riscv-tdep.h (struct gdbarch_tdep): Add
2833 unknown_csrs_first_regnum, unknown_csrs_count,
2834 duplicate_fflags_regnum, duplicate_frm_regnum, and
2835 duplicate_fcsr_regnum fields.
2836
be64fd07
AB
28372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2840 callback, use the callback (when not null) to help number unknown
2841 registers.
2842 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2843 (tdesc_use_registers): Add extra parameter to declaration.
2844
3b9fce96
AB
28452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2846
2847 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2848 in the file.
2849 (class riscv_pending_register_alias): Likewise.
2850 (riscv_register_feature::register_info): Change 'required_p' field
2851 to 'required', and change its type. Add 'check' member function.
2852 (riscv_register_feature::register_info::check): Define new member
2853 function.
2854 (riscv_xreg_feature): Change initialisation of 'required' field.
2855 (riscv_freg_feature): Likewise.
2856 (riscv_virtual_feature): Likewise.
2857 (riscv_csr_feature): Likewise.
2858 (riscv_check_tdesc_feature): Take extra parameter, the csr
2859 tdesc_feature, rewrite the function to use the new
2860 riscv_register_feature::register_info::check function.
2861 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2862
865bad26
AB
28632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 * features/Makefile: Remove all references to the deleted files
2866 below.
2867 * features/riscv/32bit-csr.c: Deleted.
2868 * features/riscv/32bit-csr.xml: Deleted.
2869 * features/riscv/64bit-csr.c: Deleted.
2870 * features/riscv/64bit-csr.xml: Deleted.
2871 * features/riscv/rebuild-csr-xml.sh: Deleted.
2872
ed69cbc8
AB
28732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2876 whitespace error for declaration of names member variable.
2877 (struct riscv_register_feature): Add new prefer_first_name member
2878 variable, and fix whitespace error in declaration of registers.
2879 (riscv_xreg_feature): Initialize prefer_first_name field.
2880 (riscv_freg_feature): Likewise.
2881 (riscv_virtual_feature): Likewise.
2882 (riscv_csr_feature): Likewise.
2883 (riscv_register_name): Expand on comments. Remove register name
2884 modifications for CSR and virtual registers.
2885
4445e8f5
AB
28862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2887
2888 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2889 errors.
2890
767a879e
AB
28912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2894 riscv-opc.h.
2895 (class riscv_pending_register_alias): New class.
2896 (riscv_check_tdesc_feature): Take vector of pending aliases and
2897 populate it as appropriate.
2898 (riscv_setup_register_aliases): Delete.
2899 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2900 to riscv_check_tdesc_feature in all cases. Use the vector to
2901 create the register aliases.
2902
bb6e55f3
RO
29032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2904
2905 * sol2-tdep.c (sol2_static_transform_name): Remove.
2906 (sol2_init_abi): Don't register it.
2907 * gdbarch.sh (static_transform_name): Remove.
2908 * gdbarch.c, gdbarch.h: Regenerate.
2909
2910 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2911 gdbarch_static_transform_name.
2912 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2913 * stabsread.c (define_symbol) <'X'>: Remove.
2914 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2915 handling.
2916 <'V'>: Likewise.
2917 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2918 <'S'>: Remove call to gdbarch_static_transform_name.
2919
c6d36836
RO
29202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2921
2922 * procfs.c (procfs_pre_trace): New function.
2923 (procfs_target::create_inferior): Pass it to fork_inferior.
2924
a7e6196b
RO
29252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2926
2927 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2928 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2929 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2930 sol2-tdep.o, sparc-sol2-tdep.o.
2931 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2932 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2933 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2934 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2935
d412e696
RO
29362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2937
2938 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2939 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2940 Call sol2_init_abi.
2941 Remove calls to set_gdbarch_skip_solib_resolver,
2942 set_gdbarch_core_pid_to_str.
2943 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2944 (i386_sol2_static_transform_name): Remove.
2945 (i386_sol2_init_abi): Call sol2_init_abi.
2946 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2947 set_gdbarch_static_transform_name,
2948 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2949 Use sol2_sigtramp_p.
2950 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2951 (sol2_sigtramp_p): New function.
2952 (sol2_static_transform_name): New function.
2953 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2954 (sol2_init_abi): New function.
2955 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2956 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2957 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2958 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2959 (sparc_sol2_static_transform_name): Remove.
2960 (sparc32_sol2_init_abi): Call sol2_init_abi.
2961 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2962 set_gdbarch_static_transform_name,
2963 set_gdbarch_skip_solib_resolver,
2964 set_gdbarch_core_pid_to_str.
2965 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2966 (sparc_sol2_static_transform_name): Remove
2967 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2968 call sol2_sigtramp_p.
2969 (sparc64_sol2_init_abi): Call sol2_init_abi.
2970 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2971 set_gdbarch_static_transform_name,
2972 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2973
a8654e7d
PW
29742020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2975
2976 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2977 * exec.c (validate_exec_file): If from_tty, set both
2978 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2979 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2980 and from_tty, unconditionally ask a confirmation.
2981
caa7fd04
AB
29822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * target-descriptions.c (tdesc_architecture_name): Protect against
2985 NULL pointer dereference.
2986 (maint_print_xml_tdesc_cmd): New function.
2987 (_initialize_target_descriptions): Register new 'maint print
2988 xml-tdesc' command and give it the filename completer.
2989 * NEWS: Mention new 'maint print xml-tdesc' command.
2990
fbf42f4e
AB
29912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2992
2993 * target-descriptions.c (class tdesc_compatible_info): New class.
2994 (struct target_desc): Change type of compatible vector.
2995 (tdesc_compatible_p): Update for change in type of
2996 target_desc::compatible.
2997 (tdesc_compatible_info_list): New function.
2998 (tdesc_compatible_info_arch_name): New function.
2999 (tdesc_add_compatible): Update for change in type of
3000 target_desc::compatible.
3001 (print_c_tdesc::visit_pre): Likewise.
3002
20821f4e
AB
30032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3006 whitespace to underscore.
3007 (maint_print_c_tdesc_cmd): Use fake filename for target
3008 descriptions that came from the target.
3009 (_initialize_target_descriptions): Add filename command completion
3010 for 'maint print c-tdesc'.
3011
1fb5ee62
SM
30122020-06-23 Simon Marchi <simon.marchi@efficios.com>
3013
3014 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3015 lines.
3016
fc3ecb3e
SM
30172020-06-23 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3020 lines.
3021 (dwarf2_find_location_expression): Likewise.
3022 (call_site_parameter_matches): Likewise.
3023 (dwarf2_compile_expr_to_ax): Likewise.
3024 (disassemble_dwarf_expression): Likewise.
3025 (loclist_describe_location): Likewise.
3026
236ef034
PA
30272020-06-23 Pedro Alves <palves@redhat.com>
3028
3029 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3030 progspace-and-thread.h. Include scoped-mock-context.h instead.
3031 (register_to_value_test): Use scoped_mock_context.
3032 * regcache.c: Include "scoped-mock-context.h".
3033 (cooked_read_test): Don't error out if a target is already pushed.
3034 Use scoped_mock_context. Adjust.
3035 * scoped-mock-context.h: New file.
3036
39e7ecca
AB
30372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3040 initializer.
3041 (ada_language::is_string_type_p): New member function.
3042 * c-lang.c (c_language_data): Delete la_is_string_type_p
3043 initializer.
3044 (cplus_language_data): Likewise.
3045 (asm_language_data): Likewise.
3046 (minimal_language_data): Likewise.
3047 * d-lang.c (d_language_data): Likewise.
3048 * f-lang.c (f_is_string_type_p): Delete function, implementation
3049 moved to f_language::is_string_type_p.
3050 (f_language_data): Delete la_is_string_type_p initializer.
3051 (f_language::is_string_type_p): New member function,
3052 implementation from f_is_string_type_p.
3053 * go-lang.c (go_is_string_type_p): Delete function, implementation
3054 moved to go_language::is_string_type_p.
3055 (go_language_data): Delete la_is_string_type_p initializer.
3056 (go_language::is_string_type_p): New member function,
3057 implementation from go_is_string_type_p.
3058 * language.c (language_defn::is_string_type_p): Define new member
3059 function.
3060 (default_is_string_type_p): Make static, add comment copied from
3061 header file.
3062 (unknown_language_data): Delete la_is_string_type_p initializer.
3063 (unknown_language::is_string_type_p): New member function.
3064 (auto_language_data): Delete la_is_string_type_p initializer.
3065 (auto_language::is_string_type_p): New member function.
3066 * language.h (language_data): Delete la_is_string_type_p field.
3067 (language_defn::is_string_type_p): Declare new function.
3068 (default_is_string_type_p): Delete desclaration, move comment to
3069 definition.
3070 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3071 moved to m2_language::is_string_type_p.
3072 (m2_language_data): Delete la_is_string_type_p initializer.
3073 (m2_language::is_string_type_p): New member function,
3074 implementation from m2_is_string_type_p.
3075 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3076 initializer.
3077 * opencl-lang.c (opencl_language_data): Likewise.
3078 * p-lang.c (pascal_is_string_type_p): Delete function,
3079 implementation moved to pascal_language::is_string_type_p.
3080 (pascal_language_data): Delete la_is_string_type_p initializer.
3081 (pascal_language::is_string_type_p): New member function,
3082 implementation from pascal_is_string_type_p.
3083 * rust-lang.c (rust_is_string_type_p): Delete function,
3084 implementation moved to rust_language::is_string_type_p.
3085 (rust_language_data): Delete la_is_string_type_p initializer.
3086 (rust_language::is_string_type_p): New member function,
3087 implementation from rust_is_string_type_p.
3088 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3089 is_string_type_p.
3090
4ffc13fb
AB
30912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * ada-lang.c (ada_language_data): Delete la_print_typedef
3094 initializer.
3095 (ada_language::print_typedef): New member function.
3096 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3097 (cplus_language_data): Likewise.
3098 (asm_language_data): Likewise.
3099 (minimal_language_data): Likewise.
3100 * d-lang.c (d_language_data): Likewise.
3101 * f-lang.c (f_language_data): Likewise.
3102 (f_language::print_typedef): New member function.
3103 * go-lang.c (go_language_data): Delete la_print_typedef
3104 initializer.
3105 * language.c (language_defn::print_typedef): Define member
3106 function.
3107 (unknown_language_data): Delete la_print_typedef initializer.
3108 (unknown_language::print_typedef): New member function.
3109 (auto_language_data): Delete la_print_typedef initializer.
3110 (auto_language::print_typedef): New member function.
3111 * language.h (language_data): Delete la_print_typedef field.
3112 (language_defn::print_typedef): Declare new member function.
3113 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3114 (default_print_typedef): Delete declaration.
3115 * m2-lang.c (m2_language_data): Delete la_print_typedef
3116 initializer.
3117 (m2_language::print_typedef): New member function.
3118 * objc-lang.c (objc_language_data): Delete la_print_typedef
3119 initializer.
3120 * opencl-lang.c (opencl_language_data): Likewise.
3121 * p-lang.c (pascal_language_data): Likewise.
3122 (pascal_language::print_typedef): New member function.
3123 * rust-lang.c (rust_print_typedef): Delete function,
3124 implementation moved to rust_language::print_typedef.
3125 (rust_language): Delete la_print_typedef initializer.
3126 (rust_language::print_typedef): New member function,
3127 implementation from rust_print_typedef.
3128 * typeprint.c (default_print_typedef): Delete.
3129
d711ee67
AB
31302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3131
3132 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3133 (ada_language::printstr): New member function.
3134 * c-lang.c (c_language_data): Delete la_printstr initializer.
3135 (cplus_language_data): Likewise.
3136 (asm_language_data): Likewise.
3137 (minimal_language_data): Likewise.
3138 * d-lang.c (d_language_data): Likewise.
3139 * f-lang.c (f_printstr): Rename to f_language::printstr.
3140 (f_language_data): Delete la_printstr initializer.
3141 (f_language::printstr): New member function, implementation from
3142 f_printstr.
3143 * go-lang.c (go_language_data): Delete la_printstr initializer.
3144 * language.c (language_defn::printstr): Define new member
3145 function.
3146 (unk_lang_printstr): Delete.
3147 (unknown_language_data): Delete la_printstr initializer.
3148 (unknown_language::printstr): New member function.
3149 (auto_language_data): Delete la_printstr initializer.
3150 (auto_language::printstr): New member function.
3151 * language.h (language_data): Delete la_printstr field.
3152 (language_defn::printstr): Declare new member function.
3153 (LA_PRINT_STRING): Update call to printstr.
3154 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3155 (m2_language_data): Delete la_printstr initializer.
3156 (m2_language::printstr): New member function, implementation from
3157 m2_printstr.
3158 * objc-lang.c (objc_language_data): Delete la_printstr
3159 initializer.
3160 * opencl-lang.c (opencl_language_data): Likewise.
3161 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3162 (pascal_language_data): Delete la_printstr initializer.
3163 (pascal_language::printstr): New member function, implementation
3164 from pascal_printstr.
3165 * p-lang.h (pascal_printstr): Delete declaration.
3166 * rust-lang.c (rust_printstr): Update header comment.
3167 (rust_language_data): Delete la_printstr initializer.
3168 (rust_language::printstr): New member function.
3169
52b50f2c
AB
31702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3171
3172 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3173 (ada_language::printchar): New member function.
3174 * c-lang.c (c_language_data): Delete la_printchar initializer.
3175 (cplus_language_data): Likewise.
3176 (asm_language_data): Likewise.
3177 (minimal_language_data): Likewise.
3178 * d-lang.c (d_language_data): Likewise.
3179 * f-lang.c (f_printchar): Rename to f_language::printchar.
3180 (f_language_data): Delete la_printchar initializer.
3181 (f_language::printchar): New member function, implementation from
3182 f_printchar.
3183 * go-lang.c (go_language_data): Delete la_printchar initializer.
3184 * language.c (unk_lang_printchar): Delete.
3185 (language_defn::printchar): Define new member function.
3186 (unknown_language_data): Delete la_printchar initializer.
3187 (unknown_language::printchar): New member function.
3188 (auto_language_data): Delete la_printchar initializer.
3189 (auto_language::printchar): New member function.
3190 * language.h (language_data): Delete la_printchar field.
3191 (language_defn::printchar): Declare new member function.
3192 (LA_PRINT_CHAR): Update call to printchar.
3193 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3194 (m2_language::printchar): New member function.
3195 * objc-lang.c (objc_language_data): Delete la_printchar
3196 initializer.
3197 * opencl-lang.c (opencl_language_data): Likewise.
3198 * p-lang.c (pascal_language_data): Delete la_printchar
3199 initializer.
3200 (pascal_language::printchar): New member function.
3201 * rust-lang.c (rust_printchar): Rename to
3202 rust_language::printchar.
3203 (rust_language_data): Delete la_printchar initializer.
3204 (rust_language::printchar): New member function, implementation
3205 from rust_printchar.
3206
ec8cec5b
AB
32072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3210 (ada_language_data): Delete la_emitchar initializer.
3211 (ada_language::emitchar): New member function, implementation from
3212 emit_char.
3213 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3214 (cplus_language_data): Likewise.
3215 (asm_language_data): Likewise.
3216 (minimal_language_data): Likewise.
3217 * d-lang.c (d_language_data): Likewise.
3218 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3219 (f_language_data): Delete la_emitchar initializer.
3220 (f_language::emitchar): New member function, implementation from
3221 f_emit_char.
3222 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3223 * language.c (unk_lang_emit_char): Delete.
3224 (language_defn::emitchar): New member function definition.
3225 (unknown_language_data): Delete la_emitchar initializer.
3226 (unknown_language::emitchar): New member function.
3227 (auto_language_data): Delete la_emitchar initializer.
3228 (auto_language::emitchar): New member function.
3229 * language.h (language_data): Delete la_emitchar field.
3230 (language_defn::emitchar): New member field declaration.
3231 (LA_EMIT_CHAR): Update call to emitchar.
3232 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3233 (m2_language_data): Delete la_emitchar initializer.
3234 (m2_language::emitchar): New member function, implementation from
3235 m2_emit_char.
3236 * objc-lang.c (objc_language_data): Delete la_emitchar
3237 initializer.
3238 * opencl-lang.c (opencl_language_data): Likewise.
3239 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3240 (pascal_language_data): Delete la_emitchar initializer.
3241 (pascal_language::emitchar): New member function, implementation
3242 from pascal_emit_char.
3243 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3244 (rust_language_data): Delete la_emitchar initializer.
3245 (rust_language::emitchar): New member function, implementation
3246 from rust_emitchar.
3247
1bf9c363
AB
32482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3251 (ada_language_data): Delete la_post_parser initializer.
3252 (ada_language::post_parser): New member function.
3253 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3254 (cplus_language_data): Likewise.
3255 (asm_language_data): Likewise.
3256 (minimal_language_data): Likewise.
3257 * d-lang.c (d_language_data): Likewise.
3258 * f-lang.c (f_language_data): Likewise.
3259 * go-lang.c (go_language_data): Likewise.
3260 * language.c (unknown_language_data): Likewise.
3261 (auto_language_data): Likewise.
3262 * language.h (language_data): Delete la_post_parser field.
3263 (language_defn::post_parser): New member function.
3264 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3265 * objc-lang.c (objc_language_data): Likewise.
3266 * opencl-lang.c (opencl_language_data): Likewise.
3267 * p-lang.c (pascal_language_data): Likewise.
3268 * parse.c (parse_exp_in_context): Update call to post_parser.
3269 (null_post_parser): Delete definition.
3270 * parser-defs.h (null_post_parser): Delete declaration.
3271 * rust-lang.c (rust_language_data): Delete la_post_parser
3272 initializer.
3273
87afa652
AB
32742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * ada-lang.c (parse): Rename to ada_language::parser.
3277 (ada_language_data): Delete la_parser initializer.
3278 (ada_language::parser): New member function, implementation from
3279 parse.
3280 * c-lang.c (c_language_data): Delete la_parser initializer.
3281 (cplus_language_data): Likewise.
3282 (asm_language_data): Likewise.
3283 (minimal_language_data): Likewise.
3284 * d-lang.c (d_language_data): Likewise.
3285 (d_language::parser): New member function.
3286 * f-lang.c (f_language_data): Delete la_parser initializer.
3287 (f_language::parser): New member function.
3288 * go-lang.c (go_language_data): Delete la_parser initializer.
3289 (go_language::parser): New member function.
3290 * language.c (unk_lang_parser): Delete.
3291 (language_defn::parser): Define new member function.
3292 (unknown_language_data): Delete la_parser initializer.
3293 (unknown_language::parser): New member function.
3294 (auto_language_data): Delete la_parser initializer.
3295 (auto_language::parser): New member function.
3296 * language.h (language_data): Delete la_parser field.
3297 (language_defn::parser): Declare new member function.
3298 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3299 (m2_language::parser): New member function.
3300 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3301 * opencl-lang.c (opencl_language_data): Likewise.
3302 * p-lang.c (pascal_language_data): Likewise.
3303 (pascal_language::parser): New member function.
3304 * parse.c (parse_exp_in_context): Update call to parser.
3305 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3306 (rust_language::parser): New member function.
3307
37825800
AB
33082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * top.c (print_gdb_configuration): Print --with-python-libdir
3311 configuration value.
3312
5b860c93
PW
33132020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3314
3315 * NEWS: Mention change to the alias command.
3316
cf00cd6f
PW
33172020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3318
3319 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3320 (alias_command_completer)
3321 (make_alias_options_def_group): New functions.
3322 (alias_opts, alias_option_defs): New struct and array.
3323 (alias_usage_error): Update usage.
3324 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3325 Use option framework.
3326 (_initialize_cli_cmds): Update alias command help.
3327 Update aliases command help.
3328 (show_user):
3329 Add NULL for new default_args lookup_cmd argument.
3330 (valid_command_p): Rename to validate_aliased_command.
3331 Add NULL for new default_args lookup_cmd argument. Verify that the
3332 aliased_command has no default args.
3333 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3334 (lookup_cmd_1, lookup_cmd): New argument default_args.
3335 (add_alias_cmd):
3336 Add NULL for new default_args lookup_cmd argument.
3337 (print_help_for_command): Show default args under the layout
3338 alias some_alias = some_aliased_cmd some_alias_default_arg.
3339 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3340 xfree default_args in destructor.
3341 * cli/cli-script.c (process_next_line, do_define_command):
3342 Add NULL for new default_args lookup_cmd argument.
3343 * command.h: Declare new default_args argument in lookup_cmd
3344 and lookup_cmd_1.
3345 * completer.c (complete_line_internal_1):
3346 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3347 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3348 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3349 Likewise.
3350 * infcmd.c (_initialize_infcmd): Likewise.
3351 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3352 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3353 * python/py-param.c (add_setshow_generic): Likewise.
3354 * remote.c (_initialize_remote): Likewise.
3355 * top.c (execute_command): Prepend default_args if command has some.
3356 (set_verbose):
3357 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3358 * tracepoint.c (validate_actionline, encode_actions_1):
3359 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3360
bd920864
TBA
33612020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3362
3363 * jit.c (jit_read_descriptor): Use bool as the return type.
3364 (jit_breakpoint_re_set_internal): Use bool as the return type.
3365 Invert the return value logic; return true if the jit breakpoint
3366 has been successfully initialized.
3367 (jit_inferior_init): Update the call to
3368 jit_breakpoint_re_set_internal.
3369
f8098322
PA
33702020-06-22 Pedro Alves <palves@redhat.com>
3371
3372 PR gdb/25939
3373 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3374 Use the current inferior instead. Don't return
3375 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3376 wait again.
3377 * sol-thread.c (sol_thread_target::wait): Don't reference
3378 inferior_ptid.
3379 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3380 (sol_update_thread_list_callback): Use the current inferior's pid
3381 instead of inferior_ptid.
3382
196535a6
RO
33832020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3384
3385 * procfs.c: Cleanup many comments.
3386
3387 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3388 (AFTER_WATCHFLAG): Replace by value.
3389
3390 (MAIN_PROC_NAME_FORMAT): Inline ...
3391 (create_procinfo): ... here.
3392
3393 (procfs_debug_inferior): Remove SYS_exec handling.
3394 (syscall_is_exec): Likewise.
3395 (procfs_set_exec_trap): Likewise.
3396
3397 (syscall_is_lwp_exit): Inline in callers.
3398 (syscall_is_exit): Likewise.
3399 (syscall_is_exec): Likewise.
3400 (syscall_is_lwp_create): Likewise.
3401
3402 (invalidate_cache): Remove #if 0 code.
3403
3404 (make_signal_thread_runnable): Remove.
3405 (procfs_target::resume): Remove #if 0 code.
3406
cf6f3e86
RO
34072020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3408
3409 PR gdb/25939
3410 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3411 call ...
3412 (procfs_target::create_inferior): ... here.
3413
48e9cc84
PW
34142020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3415
3416 * exec.c (validate_exec_file): Ensure the build-id is up to
3417 date by calling reopen_exec_file (that checks file timestamp
3418 to decide to re-read the file).
3419
3922b302
PA
34202020-06-18 Pedro Alves <palves@redhat.com>
3421
3422 PR gdb/25412
3423 * gdbthread.h (delete_thread, delete_thread_silent)
3424 (find_thread_ptid): Update comments.
3425 * thread.c (current_thread_): New global.
3426 (is_current_thread): Move higher, and reimplement.
3427 (inferior_thread): Reimplement.
3428 (set_thread_exited): Use bool. Add assertions.
3429 (add_thread_silent): Simplify thread-reuse handling by always
3430 calling delete_thread.
3431 (delete_thread): Remove intro comment.
3432 (find_thread_ptid): Skip exited threads.
3433 (switch_to_thread_no_regs): Write to current_thread_.
3434 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3435 INFERIOR_PTID. Clear current_thread_.
3436
6dbdab44
PA
34372020-06-18 Pedro Alves <palves@redhat.com>
3438
3439 * aix-thread.c (pd_update): Use switch_to_thread.
3440
2da4b788
PA
34412020-06-18 Pedro Alves <palves@redhat.com>
3442
3443 * ravenscar-thread.c (ravenscar_thread_target): Update.
3444 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3445 (ravenscar_thread_target::add_active_thread): ... this. Don't
3446 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3447 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3448
50838d1b
PA
34492020-06-18 Pedro Alves <palves@redhat.com>
3450
3451 * nat/windows-nat.c (current_windows_thread): Remove.
3452 * nat/windows-nat.h (current_windows_thread): Remove.
3453 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3454 Adjust.
3455 (display_selectors): Adjust to fetch the current
3456 windows_thread_info based on inferior_ptid.
3457 (fake_create_process): No longer write to current_windows_thread.
3458 (windows_nat_target::get_windows_debug_event):
3459 Don't set inferior_ptid or current_windows_thread.
3460 (windows_nat_target::wait): Adjust to not rely on
3461 current_windows_thread.
3462 (do_initial_windows_stuff): Now a method of windows_nat_target.
3463 Switch to the last_ptid thread.
3464 (windows_nat_target::attach): Adjust.
3465 (windows_nat_target::detach): Use switch_to_no_thread instead of
3466 writing to inferior_ptid directly.
3467 (windows_nat_target::create_inferior): Adjust.
3468
31ce04e9
PA
34692020-06-18 Pedro Alves <palves@redhat.com>
3470
3471 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3472
1ee1a363
PA
34732020-06-18 Pedro Alves <palves@redhat.com>
3474
3475 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3476 after creating it, instead of writing to inferior_ptid. Don't
3477 write to inferior_ptid.
3478
6d350754
PA
34792020-06-18 Pedro Alves <palves@redhat.com>
3480
3481 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3482
5d971d48
PA
34832020-06-18 Pedro Alves <palves@redhat.com>
3484
3485 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3486 it, instead of writing to inferior_ptid.
3487
86e57d1b
PA
34882020-06-18 Pedro Alves <palves@redhat.com>
3489
3490 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3491 to inferior_ptid.
3492
f2e1c129
PA
34932020-06-18 Pedro Alves <palves@redhat.com>
3494
3495 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3496 instead of writing to inferior_ptid directly.
3497
60db1b85
PA
34982020-06-18 Pedro Alves <palves@redhat.com>
3499
3500 * corelow.c (core_target::close): Use switch_to_no_thread instead
3501 of writing to inferior_ptid directly.
3502 (add_to_thread_list, core_target_open): Use switch_to_thread
3503 instead of writing to inferior_ptid directly.
3504
fe7d6a8d
PA
35052020-06-18 Pedro Alves <palves@redhat.com>
3506
3507 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3508 inferior_ptid.
3509 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3510 inferior_ptid.
3511 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3512 inferior_ptid directly.
3513 (darwin_nat_target::init_thread_list): Switch to thread, instead
3514 of writing to inferior_ptid.
3515 (darwin_nat_target::attach): Don't write to inferior_ptid.
3516 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3517
975f8708
PA
35182020-06-18 Pedro Alves <palves@redhat.com>
3519
3520 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3521 thread.
3522 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3523 Instead use switch_to_thread.
3524 (gnu_nat_target::detach): Use switch_to_no_thread
3525 instead of writing to inferior_ptid directly. Used passed-in
3526 inferior instead of looking up the inferior by pid.
3527
1a204730
PA
35282020-06-18 Pedro Alves <palves@redhat.com>
3529
3530 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3531 inferior_ptid.
3532
ebe84f23
PA
35332020-06-18 Pedro Alves <palves@redhat.com>
3534
3535 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3536 inferior_ptid.
3537 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3538 thread.
3539 (nto_procfs_target::detach): Avoid referencing
3540 inferior_ptid. Use switch_to_no_thread instead of writing to
3541 inferior_ptid directly.
3542 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3543 instead of writing to inferior_ptid directly.
3544 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3545 to thread.
3546
191f02e5
PA
35472020-06-18 Pedro Alves <palves@redhat.com>
3548
3549 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3550 after creating it, instead of writing to inferior_ptid.
3551 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3552 to inferior_ptid directly.
3553 (gdbsim_target::wait): Don't write to inferior_ptid.
3554
0ac55310
PA
35552020-06-18 Pedro Alves <palves@redhat.com>
3556
3557 * remote.c (remote_target::remote_notice_new_inferior): Use
3558 switch_to_thread instead of writing to inferior_ptid directly.
3559 (remote_target::add_current_inferior_and_thread): Use
3560 switch_to_no_thread instead of writing to inferior_ptid directly.
3561 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3562 and switch_to_thread instead of using set_current_inferior or
3563 writing to inferior_ptid directly.
3564
5233f39b
PA
35652020-06-18 Pedro Alves <palves@redhat.com>
3566
3567 * tracectf.c (ctf_target_open): Switch to added thread instead of
3568 writing to inferior_ptid directly.
3569 (ctf_target::close): Use switch_to_no_thread instead of writing to
3570 inferior_ptid directly.
3571
087e161b
PA
35722020-06-18 Pedro Alves <palves@redhat.com>
3573
3574 * tracefile-tfile.c (tfile_target_open): Don't write to
3575 inferior_ptid directly, instead switch to added thread.
3576 (tfile_target::close): Use switch_to_no_thread instead of writing
3577 to inferior_ptid directly.
3578
7fb43e53
PA
35792020-06-18 Pedro Alves <palves@redhat.com>
3580
3581 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3582 (procfs_target::detach): Use switch_to_no_thread
3583 instead of writing to inferior_ptid directly.
3584 (do_attach): Change return type to void. Switch to the added
3585 thread.
3586 (procfs_target::create_inferior): Switch to the added thread.
3587 (procfs_do_thread_registers): Don't write to inferior_ptid.
3588
18493a00
PA
35892020-06-18 Pedro Alves <palves@redhat.com>
3590
3591 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3592 of writing to inferior_ptid.
3593 (scoped_restore_exited_inferior): Delete.
3594 (handle_vfork_child_exec_or_exit): Simplify using
3595 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3596 instead of writing to inferior_ptid.
3597 (THREAD_STOPPED_BY): Delete.
3598 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3599 (thread_stopped_by_hw_breakpoint): Delete.
3600 (save_waitstatus): Use
3601 scoped_restore_current_thread+switch_to_thread, and call
3602 target_stopped_by_watchpoint instead of
3603 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3604 instead of thread_stopped_by_sw_breakpoint, and
3605 target_stopped_by_hw_breakpoint instead of
3606 thread_stopped_by_hw_breakpoint.
3607 (handle_inferior_event)
3608 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3609 inferior_ptid directly, nor
3610 set_current_inferior/set_current_program_space. Use
3611 switch_to_thread / switch_to_inferior_no_thread instead.
3612
a0776b13
PA
36132020-06-18 Pedro Alves <palves@redhat.com>
3614
3615 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3616 instead of writing to inferior_ptid.
3617
6155c136
PA
36182020-06-18 Pedro Alves <palves@redhat.com>
3619
3620 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3621 added thread.
3622 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3623 to the added thread.
3624 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3625 instead of writing to inferior_ptid.
3626
c5316fc6
PA
36272020-06-18 Pedro Alves <palves@redhat.com>
3628
3629 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3630 (register_to_value_test): Mock a program_space too. Heap-allocate
3631 the address space. Don't write to inferior_ptid. Use
3632 switch_to_thread instead.
3633
8df01799
PA
36342020-06-18 Pedro Alves <palves@redhat.com>
3635
3636 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3637 Delete.
3638 (find_signalled_thread()): New, factored out from
3639 linux_make_corefile_notes and adjusted to handle exited threads.
3640 (linux_make_corefile_notes): Adjust to use the new
3641 find_signalled_thread.
3642
41792d68
PA
36432020-06-18 Pedro Alves <palves@redhat.com>
3644
3645 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3646 of saving/restoring inferior_ptid.
3647
612f258a
TT
36482020-06-17 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3651 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3652 declare.
3653 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3654
efb763a5
SM
36552020-06-15 Simon Marchi <simon.marchi@efficios.com>
3656
3657 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3658 of partial symtabs.
3659
2951f6c0
SM
36602020-06-17 Simon Marchi <simon.marchi@efficios.com>
3661
3662 * regformats/reg-arm.dat: Remove.
3663 * regformats/reg-bfin.dat: Remove.
3664 * regformats/reg-cris.dat: Remove.
3665 * regformats/reg-crisv32.dat: Remove.
3666 * regformats/reg-m32r.dat: Remove.
3667 * regformats/reg-tilegx.dat: Remove.
3668 * regformats/reg-tilegx32.dat: Remove.
3669
7d458ea5
SM
36702020-06-17 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * features/Makefile (WHICH): Remove arm files.
3673 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3674 * regformats/arm/arm-with-neon.dat: Remove.
3675 * regformats/arm/arm-with-vfpv2.dat: Remove.
3676 * regformats/arm/arm-with-vfpv3.dat: Remove.
3677
3af96c0d
SM
36782020-06-17 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * features/Makefile (XMLTOC): Remove rx.xml.
3681
b25e22fd
PA
36822020-06-17 Pedro Alves <palves@redhat.com>
3683
3684 * gdbthread.h (thread_control_state) <trap_expected> Update
3685 comments.
3686
a78a19b1
AB
36872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3690 ada_language::lookup_symbol_nonlocal.
3691 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3692 (ada_language::lookup_symbol_nonlocal): New member function,
3693 implementation from ada_lookup_symbol_nonlocal.
3694 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3695 initializer.
3696 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3697 initializer.
3698 (cplus_language::lookup_symbol_nonlocal): New member function.
3699 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3700 (minimal_language_data) Likewise.
3701 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3702 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3703 initializer.
3704 (d_language::lookup_symbol_nonlocal): New member function.
3705 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3706 initializer.
3707 (f_language::lookup_symbol_nonlocal): New member function.
3708 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3709 initializer.
3710 * language.c (unknown_language_data): Likewise.
3711 (auto_language_data): Likewise.
3712 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3713 field.
3714 (language_defn::lookup_symbol_nonlocal): New member function.
3715 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3716 initializer.
3717 * objc-lang.c (objc_language_data): Likewise.
3718 * opencl-lang.c (opencl_language_data): Likewise.
3719 * p-lang.c (pascal_language_data): Likewise.
3720 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3721 rust_language::lookup_symbol_nonlocal.
3722 (rust_language_data): Delete la_lookup_symbol_nonlocal
3723 initializer.
3724 (rust_language::lookup_symbol_nonlocal): New member function,
3725 implementation from rust_lookup_symbol_nonlocal.
3726 * symtab.c (lookup_symbol_aux): Update call to
3727 lookup_symbol_nonlocal.
3728 (basic_lookup_symbol_nonlocal): Rename to...
3729 (language_defn::lookup_symbol_nonlocal): ...this, and update
3730 header comment. Remove language_defn parameter, and replace with
3731 uses of `this'.
3732 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3733
ebe2334e
AB
37342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3735
3736 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3737 initializer.
3738 (ada_language::value_print_inner): New member function.
3739 * c-lang.c (c_language_data): Delete la_value_print_inner
3740 initializer.
3741 (cplus_language_data): Likewise.
3742 (asm_language_data): Likewise.
3743 (minimal_language_data): Likewise.
3744 * d-lang.c (d_language_data): Likewise.
3745 (d_language::value_print_inner): New member function.
3746 * f-lang.c (f_language_data): Delete la_value_print_inner
3747 initializer.
3748 (f_language::value_print_inner): New member function.
3749 * f-lang.h (f_value_print_innner): Rename to...
3750 (f_value_print_inner): ...this (note spelling of 'inner').
3751 * f-valprint.c (f_value_print_innner): Rename to...
3752 (f_value_print_inner): ...this (note spelling of 'inner').
3753 * go-lang.c (go_language_data): Delete la_value_print_inner
3754 initializer.
3755 (go_language::value_print_inner): New member function.
3756 * language.c (language_defn::value_print_inner): Define new member
3757 function.
3758 (unk_lang_value_print_inner): Delete.
3759 (unknown_language_data): Delete la_value_print_inner initializer.
3760 (unknown_language::value_print_inner): New member function.
3761 (auto_language_data): Delete la_value_print_inner initializer.
3762 (auto_language::value_print_inner): New member function.
3763 * language.h (language_data): Delete la_value_print_inner field.
3764 (language_defn::value_print_inner): Delcare new member function.
3765 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3766 initializer.
3767 (m2_language::value_print_inner): New member function.
3768 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3769 initializer.
3770 * opencl-lang.c (opencl_language_data): Likewise.
3771 * p-lang.c (pascal_language_data): Likewise.
3772 (pascal_language::value_print_inner): New member function.
3773 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3774 initializer.
3775 (rust_language::value_print_inner): New member function.
3776 * valprint.c (do_val_print): Update call to value_print_inner.
3777
a1d1fa3e
AB
37782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3779
3780 * ada-lang.c (ada_language_data): Delete la_value_print
3781 initializer.
3782 (ada_language::value_print): New member function.
3783 * c-lang.c (c_language_data): Delete la_value_print initializer.
3784 (cplus_language_data): Likewise.
3785 (asm_language_data): Likewise.
3786 (minimal_language_data): Likewise.
3787 * d-lang.c (d_language_data): Likewise.
3788 * f-lang.c (f_language_data): Likewise.
3789 * go-lang.c (go_language_data): Likewise.
3790 * language.c (unk_lang_value_print): Delete.
3791 (language_defn::value_print): Define new member function.
3792 (unknown_language_data): Delete la_value_print initializer.
3793 (unknown_language::value_print): New member function.
3794 (auto_language_data): Delete la_value_print initializer.
3795 (auto_language::value_print): New member function.
3796 * language.h (language_data): Delete la_value_print field.
3797 (language_defn::value_print): Declare new member function.
3798 (LA_VALUE_PRINT): Update call to value_print.
3799 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3800 * objc-lang.c (objc_language_data): Likewise.
3801 * opencl-lang.c (opencl_language_data): Likewise.
3802 * p-lang.c (pascal_language_data): Likewise.
3803 (pascal_language::value_print): New member function.
3804 * rust-lang.c (rust_language_data): Delete la_value_print
3805 initializer.
3806
f16a9f57
AB
38072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * ada-lang.c (ada_watch_location_expression): Rename to
3810 ada_language::watch_location_expression.
3811 (ada_language_data): Delete la_watch_location_expression
3812 initializer.
3813 (ada_language::watch_location_expression): New member function,
3814 implementation from ada_watch_location_expression.
3815 * breakpoint.c (watch_command_1): Update call to
3816 watch_location_expression.
3817 * c-lang.c (c_watch_location_expression): Rename to
3818 language_defn::watch_location_expression.
3819 (c_language_data): Delete la_watch_location_expression
3820 initializer.
3821 (cplus_language_data): Likewise.
3822 (asm_language_data): Likewise.
3823 (minimal_language_data): Likewise.
3824 * c-lang.h (c_watch_location_expression): Delete declaration.
3825 * d-lang.c (d_language_data): Delete la_watch_location_expression
3826 initializer.
3827 * f-lang.c (f_language_data): Likewise.
3828 * go-lang.c (go_language_data): Likewise.
3829 * language.c (language_defn::watch_location_expression): Member
3830 function implementation from c_watch_location_expression.
3831 (unknown_language_data): Delete la_watch_location_expression
3832 initializer.
3833 (auto_language_data): Likewise.
3834 * language.h (language_data): Delete la_watch_location_expression
3835 field.
3836 (language_defn::watch_location_expression): Declare new member
3837 function.
3838 * m2-lang.c (m2_language_data): Delete
3839 la_watch_location_expression initializer.
3840 * objc-lang.c (objc_language_data): Likewise.
3841 * opencl-lang.c (opencl_language_data): Likewise.
3842 * p-lang.c (pascal_language_data): Likewise.
3843 * rust-lang.c (rust_watch_location_expression): Rename to
3844 rust_language::watch_location_expression.
3845 (rust_language_data): Delete la_watch_location_expression
3846 initializer.
3847 (rust_language::watch_location_expression): New member function,
3848 implementation from rust_watch_location_expression.
3849
7e56227d
AB
38502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3851
3852 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3853 ada_language::collect_symbol_completion_matches.
3854 (ada_language_data): Delete la_collect_symbol_completion_matches
3855 initializer.
3856 (ada_language::collect_symbol_completion_matches): New member
3857 function, implementation from
3858 ada_collect_symbol_completion_matches.
3859 * c-lang.c (c_language_data): Delete
3860 la_collect_symbol_completion_matches initializer.
3861 (cplus_language_data): Likewise.
3862 (asm_language_data): Likewise.
3863 (minimal_language_data): Likewise.
3864 * d-lang.c (d_language_data): Likewise.
3865 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3866 f_language::collect_symbol_completion_matches.
3867 (f_language_data): Delete la_collect_symbol_completion_matches
3868 initializer.
3869 (f_language::collect_symbol_completion_matches) New member
3870 function, implementation from f_collect_symbol_completion_matches.
3871 * go-lang.c (go_language_data): Delete
3872 la_collect_symbol_completion_matches initializer.
3873 * language.c (unknown_language_data): Likewise.
3874 (auto_language_data): Likewise.
3875 * language.h (language_data): Delete
3876 la_collect_symbol_completion_matches field.
3877 (language_defn::collect_symbol_completion_matches): New member
3878 function.
3879 * m2-lang.c (m2_language_data): Delete
3880 la_collect_symbol_completion_matches initializer.
3881 * objc-lang.c (objc_language_data): Likewise.
3882 * opencl-lang.c (opencl_language_data): Likewise.
3883 * p-lang.c (pascal_language_data): Likewise.
3884 * rust-lang.c (rust_language_data): Likewise.
3885 * symtab.c (default_collect_symbol_completion_matches): Delete.
3886 (collect_symbol_completion_matches): Update call to
3887 collect_symbol_completion_matches.
3888 (collect_symbol_completion_matches_type): Likewise.
3889 * symtab.h (default_collect_symbol_completion_matches): Delete
3890 declaration.
3891
53fc67f8
AB
38922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3893
3894 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3895 (ada_language_data): Delete la_word_break_characters initializer.
3896 (ada_language::word_break_characters): New member function.
3897 * c-lang.c (c_language_data): Delete la_word_break_characters
3898 initializer.
3899 (cplus_language_data): Likewise.
3900 (asm_language_data): Likewise.
3901 (minimal_language_data): Likewise.
3902 * completer.c: Update global comment.
3903 (advance_to_expression_complete_word_point): Update call to
3904 word_break_characters.
3905 (complete_files_symbols): Likewise.
3906 (complete_line_internal_1): Likewise.
3907 (default_completer_handle_brkchars): Likewise.
3908 (skip_quoted_chars): Likewise.
3909 * d-lang.c (d_language_data): Delete la_word_break_characters
3910 initializer.
3911 * f-lang.c (f_word_break_characters): Delete.
3912 (f_language_data): Delete la_word_break_characters initializer.
3913 (f_language::word_break_characters): New member function.
3914 * go-lang.c (go_language_data): Delete la_word_break_characters
3915 initializer.
3916 * language.c (unknown_language_data): Likewise.
3917 (auto_language_data): Likewise.
3918 * language.h (default_word_break_characters): Move declaration to
3919 earlier in the file.
3920 (language_data): Delete la_word_break_characters field.
3921 (language_defn::word_break_characters): New member function.
3922 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3923 initializer.
3924 * objc-lang.c (objc_language_data): Likewise.
3925 * opencl-lang.c (opencl_language_data): Likewise.
3926 * p-lang.c (pascal_language_data): Likewise.
3927 * rust-lang.c (rust_language_data): Likewise.
3928
c9debfb9
AB
39292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3930
3931 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3932 (ada_language_data): Delete la_get_symbol_name_matcher
3933 initializer.
3934 (language_defn::get_symbol_name_matcher_inner): New member
3935 function.
3936 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3937 initializer.
3938 (cplus_language_data): Likewise.
3939 (cplus_language::get_symbol_name_matcher_inner): New member
3940 function.
3941 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3942 (minimal_language_data): Likewise.
3943 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3944 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3945 initializer.
3946 * dictionary.c (iter_match_first_hashed): Update call to
3947 get_symbol_name_matcher.
3948 (iter_match_next_hashed): Likewise.
3949 (iter_match_next_linear): Likewise.
3950 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3951 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3952 initializer.
3953 (f_language::get_symbol_name_matcher_inner): New member function.
3954 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3955 initializer.
3956 * language.c (default_symbol_name_matcher): Update header comment,
3957 make static.
3958 (language_defn::get_symbol_name_matcher): New definition.
3959 (language_defn::get_symbol_name_matcher_inner): Likewise.
3960 (get_symbol_name_matcher): Delete.
3961 (unknown_language_data): Delete la_get_symbol_name_matcher
3962 initializer.
3963 (auto_language_data): Likewise.
3964 * language.h (language_data): Delete la_get_symbol_name_matcher
3965 field.
3966 (language_defn::get_symbol_name_matcher): New member function.
3967 (language_defn::get_symbol_name_matcher_inner): Likewise.
3968 (default_symbol_name_matcher): Delete declaration.
3969 * linespec.c (find_methods): Update call to
3970 get_symbol_name_matcher.
3971 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3972 initializer.
3973 * minsyms.c (lookup_minimal_symbol): Update call to
3974 get_symbol_name_matcher.
3975 (iterate_over_minimal_symbols): Likewise.
3976 * objc-lang.c (objc_language_data): Delete
3977 la_get_symbol_name_matcher initializer.
3978 * opencl-lang.c (opencl_language_data): Likewise.
3979 * p-lang.c (pascal_language_data): Likewise.
3980 * psymtab.c (psymbol_name_matches): Update call to
3981 get_symbol_name_matcher.
3982 * rust-lang.c (rust_language_data): Delete
3983 la_get_symbol_name_matcher initializer.
3984 * symtab.c (symbol_matches_search_name): Update call to
3985 get_symbol_name_matcher.
3986 (compare_symbol_name): Likewise.
3987
9a49ad8c
AB
39882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * ada-lang.c (ada_language_data): Delete la_compute_program
3991 initializer.
3992 * c-lang.c (c_language_data): Likewise.
3993 (c_language::compute_program): New member function.
3994 (cplus_language_data): Delete la_compute_program initializer.
3995 (cplus_language::compute_program): New member function.
3996 (asm_language_data): Delete la_compute_program initializer.
3997 (minimal_language_data): Likewise.
3998 * c-lang.h (c_compute_program): Update comment.
3999 (cplus_compute_program): Likewise.
4000 * compile/compile-c-support.c (c_compute_program): Likewise.
4001 (cplus_compute_program): Likewise.
4002 * compile/compile.c (compile_to_object): Update call to
4003 la_compute_program.
4004 * d-lang.c (d_language_data): Delete la_compute_program
4005 initializer.
4006 * f-lang.c (f_language_data): Likewise.
4007 * go-lang.c (go_language_data): Likewise.
4008 * language.c (unknown_language_data): Likewise.
4009 (auto_language_data): Likewise.
4010 * language.h (language_data): Delete la_compute_program field.
4011 (language_defn::compute_program): New member function.
4012 * m2-lang.c (m2_language_data): Delete la_compute_program
4013 initializer.
4014 * objc-lang.c (objc_language_data): Likewise.
4015 * opencl-lang.c (opencl_language_data): Likewise.
4016 * p-lang.c (pascal_language_data): Likewise.
4017 * rust-lang.c (rust_language_data): Likewise.
4018
eff93b4d
AB
40192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4020
4021 * ada-lang.c (ada_language_data) Delete
4022 la_class_name_from_physname initializer.
4023 * c-lang.c (c_language_data): Likewise.
4024 (cplus_language_data): Likewise.
4025 (cplus_language::class_name_from_physname): New member function.
4026 (asm_language_data): Delete la_class_name_from_physname
4027 initializer.
4028 (minimal_language_data): Likewise.
4029 * d-lang.c (d_language_data): Likewise.
4030 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4031 method on language_defn class.
4032 (guess_full_die_structure_name): Likewise.
4033 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4034 initializer.
4035 * go-lang.c (go_language_data): Likewise.
4036 * language.c (language_class_name_from_physname): Delete.
4037 (unk_lang_class_name): Delete.
4038 (unknown_language_data): Delete la_class_name_from_physname
4039 initializer.
4040 (auto_language_data): Likewise.
4041 * language.h (language_data): Delete la_class_name_from_physname
4042 field.
4043 (language_defn::class_name_from_physname): New function.
4044 (language_class_name_from_physname): Delete declaration.
4045 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4046 initializer.
4047 * objc-lang.c (objc_language_data): Likewise.
4048 * opencl-lang.c (opencl_language_data): Likewise.
4049 * p-lang.c (pascal_language_data): Likewise.
4050 * rust-lang.c (rust_language_data): Likewise.
4051
de543742
TT
40522020-06-16 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-data.h (STATUS_NAME): New macro.
4055 * tui/tui-layout.c (tui_remove_some_windows)
4056 (initialize_known_windows, tui_register_window)
4057 (tui_layout_split::remove_windows, initialize_layouts)
4058 (tui_new_layout_command): Don't use hard-coded window names.
4059
a350efd4
TT
40602020-06-16 Tom Tromey <tom@tromey.com>
4061
4062 PR tui/25348:
4063 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4064 tui_initialize_readline. Only run once. Call rl_initialize.
4065 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4066 tui_initialize_readline.
4067 * tui/tui-io.c (tui_setup_io): Call
4068 tui_ensure_readline_initialized.
4069 * tui/tui-interp.c (tui_interp::init): Update.
4070
39ec0490
TT
40712020-06-16 Tom Tromey <tom@tromey.com>
4072
4073 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4074 Also preserve the status window.
4075
d2d1ea20
TT
40762020-06-16 Tom Tromey <tom@tromey.com>
4077
4078 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4079 where m_window==nullptr.
4080
66920317
TT
40812020-06-15 Tom Tromey <tromey@adacore.com>
4082
4083 * windows-nat.c (windows_nat::handle_output_debug_string):
4084 Update.
4085 (windows_nat::handle_ms_vc_exception): Update.
4086 * target.h (target_read_string): Change API.
4087 * target.c (target_read_string): Change API.
4088 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4089 Update.
4090 * solib-frv.c (frv_current_sos): Update.
4091 * solib-dsbt.c (dsbt_current_sos): Update.
4092 * solib-darwin.c (darwin_current_sos): Update.
4093 * linux-thread-db.c (inferior_has_bug): Update.
4094 * expprint.c (print_subexp_standard): Update.
4095 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4096 (ada_exception_message_1): Update.
4097
a5d871dd
TT
40982020-06-15 Tom Tromey <tromey@adacore.com>
4099
4100 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4101
670e35fa
TT
41022020-06-15 Tom Tromey <tromey@adacore.com>
4103
4104 * valprint.c (read_string): Update comment.
4105 * target.c (MIN): Remove.
4106 (target_read_string): Rewrite.
4107
f5272a3b
TT
41082020-06-15 Tom Tromey <tromey@adacore.com>
4109
4110 * corefile.c (read_memory_string): Remove.
4111 * ada-valprint.c (ada_value_print_ptr): Update.
4112 * ada-lang.h (ada_tag_name): Change return type.
4113 * ada-lang.c (type_from_tag): Update.
4114 (ada_tag_name_from_tsd): Change return type. Use
4115 target_read_string.
4116 (ada_tag_name): Likewise.
4117 * gdbcore.h (read_memory_string): Don't declare.
4118
2c074f49
HD
41192020-06-14 Hannes Domani <ssbssa@yahoo.de>
4120
4121 * symtab.c (rbreak_command): Ignore Windows drive colon.
4122
6a17d503
SM
41232020-06-12 Simon Marchi <simon.marchi@efficios.com>
4124
4125 * NEWS: Mention removed GDBserver host support.
4126
453c733f
NC
41272020-06-12 Nelson Chu <nelson.chu@sifive.com>
4128
4129 * features/riscv/rebuild-csr-xml.sh: Updated.
4130
2b4e6a3f
TT
41312020-06-11 Tom Tromey <tom@tromey.com>
4132
4133 PR gdb/18318:
4134 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4135
4412332f
JG
41362020-06-09 Jonny Grant <jg@jguk.org>
41372020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4138
4139 * main.c (captured_main_1): Don't print new line after help.
4140 (print_gdb_help): add mailing list and IRC channel information
4141 to --help. Add new lines between items in the footer. Remove
4142 quotes around bug url.
4143
2f33032a
KS
41442020-06-11 Keith Seitz <keiths@redhat.com>
4145
4146 PR gdb/21356
4147 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4148 Resolve typedefs for type length calculations.
4149
7ab96794
TV
41502020-06-10 Tom de Vries <tdevries@suse.de>
4151
4152 PR ada/24713
4153 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4154 (write_psymbols): Enable .gdb_index for ada.
4155 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4156 ada.
4157
e5f3ece2
TV
41582020-06-10 Tom de Vries <tdevries@suse.de>
4159
4160 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4161 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4162 namei" instead of "const char *name" argument.
4163 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4164 dw2_symtab_iter_init.
4165
940da03e
SM
41662020-06-08 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4169 to use type::field and field::type instead.
4170
b6cdac4b
SM
41712020-06-08 Simon Marchi <simon.marchi@efficios.com>
4172
4173 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4174 to use field::type instead.
4175
5d14b6e5
SM
41762020-06-08 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * gdbtypes.h (struct field) <type, set_type>: New methods.
4179 Rename `type` field to...
4180 <m_type>: ... this. Change references throughout to use type or
4181 set_type methods.
4182 (FIELD_TYPE): Use field::type. Change call sites that modify
4183 the field's type to use field::set_type instead.
4184
3d967001
SM
41852020-06-08 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4188 to use type::index_type instead.
4189
262abc0d
SM
41902020-06-08 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4193 methods.
4194 (TYPE_INDEX_TYPE): Use type::index_type.
4195 * gdbtypes.c (create_array_type_with_stride): Likewise.
4196
82836c92
TT
41972020-06-07 Tom Tromey <tom@tromey.com>
4198
4199 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4200 parameter.
4201 (generic_value_print): Update.
4202
940dace9
AB
42032020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 Revert commit 982a38f60b0.
4206 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4207
982a38f6
AB
42082020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4211 avoid use after free.
4212
82f06518
TV
42132020-06-05 Tom de Vries <tdevries@suse.de>
4214
4215 * NEWS: Fix typos.
4216
f8c41851
SM
42172020-06-04 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4220 the per_bfd object.
4221 (dwarf2_read_debug_names): Likewise.
4222 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4223 object when re-using a per_bfd object with an index.
4224
f9b5d5ea
TV
42252020-06-03 Tom de Vries <tdevries@suse.de>
4226
4227 PR symtab/26046
4228 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4229 children for C++.
4230 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4231 DW_TAG_subprogram.
4232
f6eee2d0
AB
42332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * ada-lang.c (ada_language_data): Delete skip_trampoline
4236 initializer.
4237 * c-lang.c (c_language_data): Likewise.
4238 (cplus_language_data): Likewise.
4239 (cplus_language::skip_trampoline): New member function.
4240 (asm_language_data): Delete skip_trampoline initializer.
4241 (minimal_language_data): Likewise.
4242 * d-lang.c (d_language_data): Likewise.
4243 * f-lang.c (f_language_data): Likewise.
4244 * go-lang.c (go_language_data): Likewise.
4245 * language.c (unk_lang_trampoline): Delete function.
4246 (skip_language_trampoline): Update.
4247 (unknown_language_data): Delete skip_trampoline initializer.
4248 (auto_language_data): Likewise.
4249 * language.h (language_data): Delete skip_trampoline field.
4250 (language_defn::skip_trampoline): New function.
4251 * m2-lang.c (m2_language_data): Delete skip_trampoline
4252 initializer.
4253 * objc-lang.c (objc_skip_trampoline): Delete function, move
4254 implementation to objc_language::skip_trampoline.
4255 (objc_language_data): Delete skip_trampoline initializer.
4256 (objc_language::skip_trampoline): New member function with
4257 implementation from objc_skip_trampoline.
4258 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4259 initializer.
4260 * p-lang.c (pascal_language_data): Likewise.
4261 * rust-lang.c (rust_language_data): Likewise.
4262
0a50df5d
AB
42632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4266 (ada_language::demangle): New member function.
4267 * c-lang.c (c_language_data): Delete la_demangle initializer.
4268 (cplus_language_data): Delete la_demangle initializer.
4269 (cplus_language::demangle): New member function.
4270 (asm_language_data): Delete la_demangle initializer.
4271 (minimal_language_data): Delete la_demangle initializer.
4272 * d-lang.c (d_language_data): Delete la_demangle initializer.
4273 (d_language::demangle): New member function.
4274 * f-lang.c (f_language_data): Delete la_demangle initializer.
4275 (f_language::demangle): New member function.
4276 * go-lang.c (go_language_data): Delete la_demangle initializer.
4277 (go_language::demangle): New member function.
4278 * language.c (language_demangle): Update.
4279 (unk_lang_demangle): Delete.
4280 (unknown_language_data): Delete la_demangle initializer.
4281 (unknown_language::demangle): New member function.
4282 (auto_language_data): Delete la_demangle initializer.
4283 (auto_language::demangle): New member function.
4284 * language.h (language_data): Delete la_demangle field.
4285 (language_defn::demangle): New function.
4286 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4287 * objc-lang.c (objc_language_data): Delete la_demangle
4288 initializer.
4289 (objc_language::demangle): New member function.
4290 * opencl-lang.c (opencl_language_data): Delete la_demangle
4291 initializer.
4292 * p-lang.c (pascal_language_data): Likewise.
4293 * rust-lang.c (rust_language_data): Likewise.
4294 (rust_language::demangle): New member function.
4295
fbfb0a46
AB
42962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4297
4298 * ada-lang.c (ada_language_data): Delete la_print_type
4299 initializer.
4300 (ada_language::print_type): New member function.
4301 * c-lang.c (c_language_data): Delete la_print_type initializer.
4302 (c_language::print_type): New member function.
4303 (cplus_language_data): Delete la_print_type initializer.
4304 (cplus_language::print_type): New member function.
4305 (asm_language_data): Delete la_print_type initializer.
4306 (asm_language::print_type): New member function.
4307 (minimal_language_data): Delete la_print_type initializer.
4308 (minimal_language::print_type): New member function.
4309 * d-lang.c (d_language_data): Delete la_print_type initializer.
4310 (d_language::print_type): New member function.
4311 * f-lang.c (f_language_data): Delete la_print_type initializer.
4312 (f_language::print_type): New member function.
4313 * go-lang.c (go_language_data): Delete la_print_type initializer.
4314 (go_language::print_type): New member function.
4315 * language.c (unk_lang_print_type): Delete.
4316 (unknown_language_data): Delete la_print_type initializer.
4317 (unknown_language::print_type): New member function.
4318 (auto_language_data): Delete la_print_type initializer.
4319 (auto_language::print_type): New member function.
4320 * language.h (language_data): Delete la_print_type field.
4321 (language_defn::print_type): New function.
4322 (LA_PRINT_TYPE): Update.
4323 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4324 (m2_language::print_type): New member function.
4325 * objc-lang.c (objc_language_data): Delete la_print_type
4326 initializer.
4327 (objc_language::print_type): New member function.
4328 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4329 to opencl_language::print_type.
4330 (opencl_language_data): Delete la_print_type initializer.
4331 (opencl_language::print_type): New member function, implementation
4332 from opencl_print_type.
4333 * p-lang.c (pascal_language_data): Delete la_print_type
4334 initializer.
4335 (pascal_language::print_type): New member function.
4336 * rust-lang.c (rust_print_type): Delete, implementation moved to
4337 rust_language::print_type.
4338 (rust_language_data): Delete la_print_type initializer.
4339 (rust_language::print_type): New member function, implementation
4340 from rust_print_type.
4341
6f827019
AB
43422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4343
4344 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4345 implementation moves to...
4346 (ada_language::sniff_from_mangled_name): ...here. Update return
4347 type.
4348 (ada_language_data): Delete la_sniff_from_mangled_name
4349 initializer.
4350 * c-lang.c (c_language_data): Likewise.
4351 (cplus_language_data): Likewise.
4352 (cplus_language::sniff_from_mangled_name): New member function,
4353 implementation taken from gdb_sniff_from_mangled_name.
4354 (asm_language_data): Delete la_sniff_from_mangled_name
4355 initializer.
4356 (minimal_language_data): Likewise.
4357 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4358 implementation moves to cplus_language::sniff_from_mangled_name.
4359 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4360 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4361 moves to...
4362 (d_language::sniff_from_mangled_name): ...here.
4363 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4364 * f-lang.c (f_language_data): Likewise.
4365 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4366 moves to...
4367 (go_language::sniff_from_mangled_name): ...here.
4368 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4369 * language.c (language_sniff_from_mangled_name): Delete.
4370 (unknown_language_data): Delete la_sniff_from_mangled_name
4371 initializer.
4372 (auto_language_data): Likewise.
4373 * language.h (language_data): Delete la_sniff_from_mangled_name
4374 field.
4375 (language_defn::sniff_from_mangled_name): New function.
4376 (language_sniff_from_mangled_name): Delete declaration.
4377 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4378 field.
4379 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4380 implementation moves to...
4381 (objc_language::sniff_from_mangled_name): ...here.
4382 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4383 * opencl-lang.c (opencl_language_data): Likewise.
4384 * p-lang.c (pascal_language_data): Likewise.
4385 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4386 implementation moves to...
4387 (rust_language::sniff_from_mangled_name): ...here.
4388 (rust_language_data): Delete la_sniff_from_mangled_name
4389 initializer.
4390 * symtab.c (symbol_find_demangled_name): Call
4391 sniff_from_mangled_name member function.
4392
fb8006fd
AB
43932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4396 initializer.
4397 * c-lang.c (c_language_data): Likewise.
4398 (cplus_language_data): Likewise.
4399 (cplus_language::search_name_hash): New member function.
4400 (asm_language_data): Delete la_search_name_hash initializer.
4401 (minimal_language_data): Likewise.
4402 * d-lang.c (d_language_data): Likewise.
4403 * dictionary.c (default_search_name_hash): Rename to...
4404 (language_defn::search_name_hash): ...this.
4405 * f-lang.c (f_language_data): Likewise.
4406 (f_language::search_name_hash): New member function.
4407 * go-lang.c (go_language_data): Delete la_search_name_hash
4408 initializer.
4409 * language.c (unknown_language_data): Likewise.
4410 (auto_language_data): Likewise.
4411 * language.h (struct language_data): Delete la_search_name_hash
4412 field.
4413 (language_defn::search_name_hash): Declare new member function.
4414 (default_search_name_hash): Delete declaration.
4415 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4416 initializer.
4417 * objc-lang.c (objc_language_data): Likewise.
4418 * opencl-lang.c (opencl_language_data): Likewise.
4419 * p-lang.c (pascal_language_data): Likewise.
4420 * rust-lang.c (rust_language_data): Likewise.
4421 * symtab.c (search_name_hash): Update call.
4422
8e25bafe
AB
44232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4426 initializer.
4427 * c-lang.c (class compile_instance): Declare.
4428 (c_language_data): Delete la_get_compile_instance initializer.
4429 (c_language::get_compile_instance): New member function.
4430 (cplus_language_data): Delete la_get_compile_instance initializer.
4431 (cplus_language::get_compile_instance): New member function.
4432 (asm_language_data): Delete la_get_compile_instance initializer.
4433 (minimal_language_data): Likewise.
4434 * c-lang.h (c_get_compile_context): Update comment.
4435 (cplus_get_compile_context): Update comment.
4436 * compile/compile.c (compile_to_object): Update calls, don't rely
4437 on function pointer being NULL.
4438 * d-lang.c (d_language_data): Delete la_get_compile_instance
4439 initializer.
4440 * f-lang.c (f_language_data): Likewise.
4441 * go-lang.c (go_language_data): Likewise.
4442 * language.c (unknown_language_data): Likewise.
4443 (auto_language_data): Likewise.
4444 * language.h (language_data): Delete la_get_compile_instance field.
4445 (language_defn::get_compile_instance): New member function.
4446 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4447 initializer.
4448 * objc-lang.c (objc_language_data): Likewise.
4449 * opencl-lang.c (opencl_language_data): Likewise.
4450 * p-lang.c (pascal_language_data): Likewise.
4451 * rust-lang.c (rust_language_data): Likewise.
4452
4009ee92
AB
44532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 * ada-lang.c (ada_add_all_symbols): Update comment.
4456 (ada_iterate_over_symbols): Delete, move implementation to...
4457 (ada_language::iterate_over_symbols): ...here, a new member
4458 function, rewrite to use range based for loop.
4459 (ada_language_data): Delete la_iterate_over_symbols initializer.
4460 * c-lang.c (c_language_data): Likewise.
4461 (cplus_language_data): Likewise.
4462 (asm_language_data): Likewise.
4463 (minimal_language_data): Likewise.
4464 * d-lang.c (d_language_data): Likewise.
4465 * f-lang.c (f_language_data): Likewise.
4466 * go-lang.c (go_language_data): Likewise.
4467 * language.c (unknown_language_data): Likewise.
4468 (auto_language_data): Likewise.
4469 * language.h (language_data): Delete la_iterate_over_symbols field.
4470 (language_defn::iterate_over_symbols): New member function.
4471 (LA_ITERATE_OVER_SYMBOLS): Update.
4472 * linespec.c (iterate_over_all_matching_symtabs): Update.
4473 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4474 initializer.
4475 * objc-lang.c (objc_language_data): Likewise.
4476 * opencl-lang.c (opencl_language_data): Likewise.
4477 * p-lang.c (pascal_language_data): Likewise.
4478 * rust-lang.c (rust_language_data): Likewise.
4479
54f4ca46
AB
44802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 * ada-lang.c (ada_language_data): Delete
4483 la_lookup_transparent_type initializer.
4484 * c-lang.c (c_language_data): Likewise.
4485 (cplus_language_data): Likewise.
4486 (cplus_language::lookup_transparent_type): New member function.
4487 (asm_language_data): Delete la_lookup_transparent_type
4488 initializer.
4489 (minimal_language_data): Likewise.
4490 * d-lang.c (d_language_data): Likewise.
4491 * f-lang.c (f_language_data): Likewise.
4492 * go-lang.c (go_language_data): Likewise.
4493 * language.c (unknown_language_data): Likewise.
4494 (auto_language_data): Likewise.
4495 * language.h (struct language_data): Delete
4496 la_lookup_transparent_type field.
4497 (language_defn::lookup_transparent_type): New member function.
4498 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4499 initializer.
4500 * objc-lang.c (objc_language_data): Likewise.
4501 * opencl-lang.c (opencl_language_data): Likewise.
4502 * p-lang.c (pascal_language_data): Likewise.
4503 * rust-lang.c (rust_language_data): Likewise.
4504 * symtab.c (symbol_matches_domain): Update call.
4505
1fb314aa
AB
45062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4507
4508 * ada-lang.c (ada_language_arch_info): Delete function, move
4509 implementation to...
4510 (ada_language::language_arch_info): ...here, a new member
4511 function.
4512 (ada_language_data): Delete la_language_arch_info.
4513 * c-lang.c (c_language_data): Likewise.
4514 (c_language::language_arch_info): New member function.
4515 (cplus_language_arch_info): Delete function, move
4516 implementation to...
4517 (cplus_language::language_arch_info): ...here, a new member
4518 function.
4519 (cplus_language_data): Delete la_language_arch_info.
4520 (asm_language_data): Likewise.
4521 (asm_language::language_arch_info): New member function.
4522 (minimal_language_data): Delete la_language_arch_info.
4523 (minimal_language::language_arch_info): New member function.
4524 * d-lang.c (d_language_arch_info): Delete function, move
4525 implementation to...
4526 (d_language::language_arch_info): ...here, a new member
4527 function.
4528 (d_language_data): Delete la_language_arch_info.
4529 * f-lang.c (f_language_arch_info): Delete function, move
4530 implementation to...
4531 (f_language::language_arch_info): ...here, a new member
4532 function.
4533 (f_language_data): Delete la_language_arch_info.
4534 * go-lang.c (go_language_arch_info): Delete function, move
4535 implementation to...
4536 (go_language::language_arch_info): ...here, a new member
4537 function.
4538 (go_language_data): Delete la_language_arch_info.
4539 * language.c (unknown_language_data): Likewise.
4540 (unknown_language::language_arch_info): New member function.
4541 (auto_language_data): Delete la_language_arch_info.
4542 (auto_language::language_arch_info): New member function.
4543 (language_gdbarch_post_init): Update call to
4544 la_language_arch_info.
4545 * language.h (language_data): Delete la_language_arch_info
4546 function pointer.
4547 (language_defn::language_arch_info): New function.
4548 * m2-lang.c (m2_language_arch_info): Delete function, move
4549 implementation to...
4550 (m2_language::language_arch_info): ...here, a new member
4551 function.
4552 (m2_language_data): Delete la_language_arch_info.
4553 * objc-lang.c (objc_language_arch_info): Delete function, move
4554 implementation to...
4555 (objc_language::language_arch_info): ...here, a new member
4556 function.
4557 (objc_language_data): Delete la_language_arch_info.
4558 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4559 implementation to...
4560 (opencl_language::language_arch_info): ...here, a new member
4561 function.
4562 (opencl_language_data): Delete la_language_arch_info.
4563 * p-lang.c (pascal_language_arch_info): Delete function, move
4564 implementation to...
4565 (pascal_language::language_arch_info): ...here, a new member
4566 function.
4567 (pascal_language_data): Delete la_language_arch_info.
4568 * rust-lang.c (rust_language_arch_info): Delete function, move
4569 implementation to...
4570 (rust_language::language_arch_info): ...here, a new member
4571 function.
4572 (rust_language_data): Delete la_language_arch_info.
4573
48448202
AB
45742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4575
4576 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4577 initializer.
4578 * c-lang.c (c_language_data): Likewise.
4579 (cplus_language_data): Likewise.
4580 (cplus_language::pass_by_reference_info): New method.
4581 (asm_language_data): Delete la_pass_by_reference initializer.
4582 (minimal_language_data): Likewise.
4583 * cp-abi.c (cp_pass_by_reference): Remove use of
4584 default_pass_by_reference.
4585 * d-lang.c (d_language_data): Likewise.
4586 * f-lang.c (f_language_data): Likewise.
4587 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4588 default_pass_by_reference.
4589 * go-lang.c (go_language_data): Likewise.
4590 * language.c (language_pass_by_reference): Update.
4591 (default_pass_by_reference): Delete.
4592 (unknown_language_data): Delete la_pass_by_reference
4593 initializer.
4594 (auto_language_data): Likewise.
4595 * language.h (struct language_data): Delete la_pass_by_reference
4596 field.
4597 (language_defn::pass_by_reference_info): New member function.
4598 (default_pass_by_reference): Delete declaration.
4599 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4600 initializer.
4601 * objc-lang.c (objc_language_data): Likewise.
4602 * opencl-lang.c (opencl_language_data): Likewise.
4603 * p-lang.c (pascal_language_data): Likewise.
4604 * rust-lang.c (rust_language_data): Likewise.
4605
15e5fd35
AB
46062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * ada-lang.c (ada_read_var_value): Delete function, move
4609 implementation to...
4610 (ada_language::read_var_value): ...here.
4611 (ada_language_data): Delete la_read_var_value initializer.
4612 * c-lang.c (c_language_data): Likewise.
4613 (cplus_language_data): Likewise.
4614 (minimal_language_data): Likewise.
4615 * d-lang.c (d_language_data): Likewise.
4616 * f-lang.c (f_language_data): Likewise.
4617 * findvar.c (default_read_var_value): Rename to...
4618 (language_defn::read_var_value): ...this.
4619 * findvar.c (read_var_value): Update header comment, and change to
4620 call member function instead of function pointer.
4621 * go-lang.c (go_language_data): Likewise.
4622 * language.c (unknown_language_data): Delete la_read_var_value
4623 initializer.
4624 (auto_language_data): Likewise.
4625 * language.h (struct language_data): Delete la_read_var_value
4626 field.
4627 (language_defn::read_var_value): New member function.
4628 (default_read_var_value): Delete declaration.
4629 * m2-lang.c (m2_language_data): Delete la_read_var_value
4630 initializer.
4631 * objc-lang.c (objc_language_data): Likewise.
4632 * opencl-lang.c (opencl_language_data): Likewise.
4633 * p-lang.c (pascal_language_data): Likewise.
4634 * rust-lang.c (rust_language_data): Likewise.
4635 * value.h (default_read_var_value): Delete declaration.
4636
5bd40f2a
AB
46372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * ada-lang.c (ada_print_array_index): Delete function, move
4640 implementation to...
4641 (ada_language::print_array_index): ...here.
4642 (ada_language_data): Delete la_print_array_index initializer.
4643 * c-lang.c (c_language_data): Likewise.
4644 (cplus_language_data): Likewise.
4645 (minimal_language_data): Likewise.
4646 * d-lang.c (d_language_data): Likewise.
4647 * f-lang.c (f_language_data): Likewise.
4648 * go-lang.c (go_language_data): Likewise.
4649 * language.c (default_print_array_index): Delete function, move
4650 implementation to...
4651 (language_defn::print_array_index): ...here.
4652 (unknown_language_data): Delete la_print_array_index initializer.
4653 (auto_language_data): Likewise.
4654 * language.h (struct language_data): Delete la_print_array_index
4655 field.
4656 (language_defn::print_array_index): New member function.
4657 (LA_PRINT_ARRAY_INDEX): Update.
4658 (default_print_array_index): Delete declaration.
4659 * m2-lang.c (m2_language_data): Delete la_print_array_index
4660 initializer.
4661 * objc-lang.c (objc_language_data): Likewise.
4662 * opencl-lang.c (opencl_language_data): Likewise.
4663 * p-lang.c (pascal_language_data): Likewise.
4664 * rust-lang.c (rust_language_data): Likewise.
4665
0874fd07
AB
46662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * gdb/ada-lang.c (ada_language_defn): Convert to...
4669 (ada_language_data): ...this.
4670 (class ada_language): New class.
4671 (ada_language_defn): New static global.
4672 * gdb/c-lang.c (c_language_defn): Convert to...
4673 (c_language_data): ...this.
4674 (class c_language): New class.
4675 (c_language_defn): New static global.
4676 (cplus_language_defn): Convert to...
4677 (cplus_language_data): ...this.
4678 (class cplus_language): New class.
4679 (cplus_language_defn): New static global.
4680 (asm_language_defn): Convert to...
4681 (asm_language_data): ...this.
4682 (class asm_language): New class.
4683 (asm_language_defn): New static global.
4684 (minimal_language_defn): Convert to...
4685 (minimal_language_data): ...this.
4686 (class minimal_language): New class.
4687 (minimal_language_defn): New static global.
4688 * gdb/d-lang.c (d_language_defn): Convert to...
4689 (d_language_data): ...this.
4690 (class d_language): New class.
4691 (d_language_defn): New static global.
4692 * gdb/f-lang.c (f_language_defn): Convert to...
4693 (f_language_data): ...this.
4694 (class f_language): New class.
4695 (f_language_defn): New static global.
4696 * gdb/go-lang.c (go_language_defn): Convert to...
4697 (go_language_data): ...this.
4698 (class go_language): New class.
4699 (go_language_defn): New static global.
4700 * gdb/language.c (unknown_language_defn): Remove declaration.
4701 (current_language): Initialize to nullptr, real initialization is
4702 moved to _initialize_language.
4703 (languages): Delete global.
4704 (language_defn::languages): Define.
4705 (set_language_command): Use language_defn::languages.
4706 (set_language): Likewise.
4707 (range_error): Likewise.
4708 (language_enum): Likewise.
4709 (language_def): Likewise.
4710 (add_set_language_command): Use language_def::languages for the
4711 language list, and language_def to lookup language pointers.
4712 (skip_language_trampoline): Use language_defn::languages.
4713 (unknown_language_defn): Convert to...
4714 (unknown_language_data): ...this.
4715 (class unknown_language): New class.
4716 (unknown_language_defn): New static global.
4717 (auto_language_defn): Convert to...
4718 (auto_language_data): ...this.
4719 (class auto_language): New class.
4720 (auto_language_defn): New static global.
4721 (language_gdbarch_post_init): Use language_defn::languages.
4722 (_initialize_language): Initialize current_language.
4723 * gdb/language.h (struct language_defn): Rename to...
4724 (struct language_data): ...this.
4725 (struct language_defn): New.
4726 (auto_language_defn): Delete.
4727 (unknown_language_defn): Delete.
4728 (minimal_language_defn): Delete.
4729 (ada_language_defn): Delete.
4730 (asm_language_defn): Delete.
4731 (c_language_defn): Delete.
4732 (cplus_language_defn): Delete.
4733 (d_language_defn): Delete.
4734 (f_language_defn): Delete.
4735 (go_language_defn): Delete.
4736 (m2_language_defn): Delete.
4737 (objc_language_defn): Delete.
4738 (opencl_language_defn): Delete.
4739 (pascal_language_defn): Delete.
4740 (rust_language_defn): Delete.
4741 * gdb/m2-lang.c (m2_language_defn): Convert to...
4742 (m2_language_data): ...this.
4743 (class m2_language): New class.
4744 (m2_language_defn): New static global.
4745 * gdb/objc-lang.c (objc_language_defn): Convert to...
4746 (objc_language_data): ...this.
4747 (class objc_language): New class.
4748 (objc_language_defn): New static global.
4749 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4750 (opencl_language_data): ...this.
4751 (class opencl_language): New class.
4752 (opencl_language_defn): New static global.
4753 * gdb/p-lang.c (pascal_language_defn): Convert to...
4754 (pascal_language_data): ...this.
4755 (class pascal_language): New class.
4756 (pascal_language_defn): New static global.
4757 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4758 language pointer, update comment format.
4759 * gdb/rust-lang.c (rust_language_defn): Convert to...
4760 (rust_language_data): ...this.
4761 (class rust_language): New class.
4762 (rust_language_defn): New static global.
4763
1313c56e
AB
47642020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4767 member variable.
4768 <m_stmt_at_address>: New member variable.
4769 (lnp_state_machine::record_line): Don't record some lines, update
4770 tracking of is_stmt at the same address.
4771 (lnp_state_machine::lnp_state_machine): Initialise new member
4772 variables.
4773
b7ed9f3d
ST
47742020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4775
4776 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4777 "-include gnu-nat-mig.h".
4778 * gnu-nat-mig.h: New file.
4779 * gnu-nat.c: Include "gnu-nat-mig.h".
4780 (exc_server, msg_reply_server, notify_server,
4781 process_reply_server): Remove declarations.
4782
14a8ad62
ST
47832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4784
4785 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4786 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4787 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4788 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4789 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4790 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4791 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4792 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4793 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4794 to gnu_nat_target class.
4795 * gnu-nat.c: Likewise.
4796 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4797 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4798 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4799 object.
4800 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4801 instead of `gnu_target'.
4802
0af5e106
ST
48032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4804
4805 * i386-gnu-tdep.c: Include "gdbcore.h"
4806 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4807 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4808 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4809 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4810 i386_gnu_sigcontext_addr): New functions
4811 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4812 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4813 tdep.
4814
078f2fc9
ST
48152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4816
4817 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4818 before fork_inferior call. Avoid calling it if target_is_pushed returns
4819 true.
4820
53dff92c
ST
48212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4822
4823 * gnu-nat.h (gnu_target): New variable declaration.
4824 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4825 gnu_target.
4826 * gnu-nat.c (gnu_target): New variable.
4827 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4828 add_thread_silent, and add_thread calls.
4829 (gnu_nat_target::create_inferior): Pass gnu_target to
4830 add_thread_silent, thread_change_ptid call.
4831 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4832 call.
4833
5a8b8627
ST
48342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4835
4836 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4837 (gnu_nat_target::find_memory_regions): Remove unused
4838 `old_address' variable.
4839
366f550a
ST
48402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4841
4842 * gnu-nat.c: Include "gdbarch.h".
4843
f14871bf
ST
48442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4845
4846 * reply_mig_hack.awk (Error return): Cast function through
4847 void *, to bypass compiler function call check.
4848
c6887cfb
ST
48492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4850
4851 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4852 $(srcdir)/reply_mig_hack.awk.
4853
6930bffe
ST
48542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4855
4856 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4857
112c22ed
JG
48582020-05-30 Jonny Grant <jg@jguk.org>
4859
4860 * configure.ac (ACX_BUGURL): change bug URL to https.
4861
f68f85b5
PA
48622020-05-30 Pedro Alves <palves@redhat.com>
4863
4864 * cp-support.c (replace_typedefs_template): New.
4865 (replace_typedefs_qualified_name): Handle
4866 DEMANGLE_COMPONENT_TEMPLATE.
4867
976ca316
SM
48682020-05-29 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4871 dwarf2/index-cache.h, dwarf2/index-write.c,
4872 dwarf2/index-write.h, dwarf2/line-header.c,
4873 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4874 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4875 variables and fields from `dwarf2_per_objfile` to just
4876 `per_objfile` throughout.
4877
989ade05
SM
48782020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4879
4880 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4881 <push_dwarf_reg_entry_value>: Add comment.
4882
c47bae85
KB
48832020-05-28 Kevin Buettner <kevinb@redhat.com>
4884 Keith Seitz <keiths@redhat.com>
4885
4886 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4887 instead of PyEval_ReleaseLock.
4888 (class gdbpy_gil): Move to earlier in file.
4889 (finalize_python): Set gdb_python_initialized.
4890 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4891 when not initialized.
4892
44486dcf
SM
48932020-05-28 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4896 <push_dwarf_reg_entry_value>: Remove assert. Override
4897 per_objfile with caller_per_objfile.
4898
f030440d
TV
48992020-05-28 Tom de Vries <tdevries@suse.de>
4900
4901 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4902 PR gold/15646 workaround to symbol kind "type".
4903
f0fbb768
TT
49042020-05-27 Tom Tromey <tromey@adacore.com>
4905
4906 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4907
af0b2a3e
TT
49082020-05-27 Tom Tromey <tromey@adacore.com>
4909
4910 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4911 Use htab_find_with_hash.
4912 <add_abbrev>: Remove "abbrev_number" parameter.
4913 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4914 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4915 (hash_abbrev): Add comment.
4916 (abbrev_table::lookup_abbrev): Move to header file.
4917 (abbrev_table::read): Update.
4918
7d00ffec
TT
49192020-05-27 Tom Tromey <tromey@adacore.com>
4920
4921 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4922 method.
4923 <canonical_name>: New member.
4924 <raw_name>: Rename from "name".
4925 (partial_die_info): Initialize canonical_name.
4926 (scan_partial_symbols): Check raw_name.
4927 (partial_die_parent_scope, partial_die_full_name)
4928 (add_partial_symbol, add_partial_subprogram)
4929 (add_partial_enumeration, load_partial_dies): Use "name" method.
4930 (partial_die_info::name): New method.
4931 (partial_die_info::read, guess_partial_die_structure_name)
4932 (partial_die_info::fixup): Update.
4933
697bba18
TT
49342020-05-27 Tom Tromey <tromey@adacore.com>
4935
4936 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4937 <get_ref_die_offset>: Inline.
4938 <get_ref_die_offset_complaint>: New method.
4939 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4940 (attribute::get_ref_die_offset_complaint): Rename from
4941 get_ref_die_offset. Just issue complaint.
4942
c17ace43
HD
49432020-05-27 Hannes Domani <ssbssa@yahoo.de>
4944
4945 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4946
96445f0b
HD
49472020-05-27 Hannes Domani <ssbssa@yahoo.de>
4948
4949 * exec.c (exec_file_attach): Use errno value of first openp failure.
4950
ac637ec3
HD
49512020-05-27 Hannes Domani <ssbssa@yahoo.de>
4952
4953 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4954 Don't close thread handle.
4955
17ee85fc
TT
49562020-05-27 Tom Tromey <tom@tromey.com>
4957 Simon Marchi <simon.marchi@efficios.com>
4958
4959 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4960 shared_ptr.
4961 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4962 member.
4963 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4964 dwarf2_per_bfd_objfile_data_key>: New globals.
4965 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4966 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4967 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4968 shared.
4969 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4970 short-circuit when sharing.
4971 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4972 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4973
39b16f87
SM
49742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4975
4976 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4977 to...
4978 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4979 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4980
fcf23d5b
SM
49812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4984 build_name_components, find_name_components_bounds>:
4985 Add per_objfile parameter.
4986 (struct mapped_index) <symbol_name_at>: Likewise.
4987 (struct mapped_debug_names): Remove constructor.
4988 <dwarf2_per_objfile>: Remove field.
4989 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4990 (mapped_index_base::find_name_components_bounds,
4991 mapped_index_base::build_name_components,
4992 dw2_expand_symtabs_matching_symbol): Likewise.
4993 (class mock_mapped_index) <symbol_name_at>: Likewise.
4994 (check_match): Likewise.
4995 (check_find_bounds_finds): Likewise.
4996 (test_mapped_index_find_name_component_bounds): Update.
4997 (CHECK_MATCH): Update.
4998 (dw2_expand_symtabs_matching): Update.
4999 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5000 per_objfile parameter.
5001 <find_vec_in_debug_names>: Likewise.
5002 <m_per_objfile>: New field.
5003 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5004 parameter.
5005 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5006 (dw2_debug_names_iterator::next): Update.
5007 (dw2_debug_names_lookup_symbol): Update.
5008 (dw2_debug_names_expand_symtabs_for_function): Update.
5009 (dw2_debug_names_map_matching_symbols): Update.
5010 (dw2_debug_names_expand_symtabs_matching): Update.
5011 (dwarf2_read_debug_names): Update.
5012
7188ed02
SM
50132020-05-27 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5016 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5017 move to dwarf2_per_objfile.
5018 <read_in_chain>: Remove.
5019 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5020 remove_all_cus, age_comp_units>: New methods.
5021 <m_dwarf2_cus>: New member.
5022 (struct dwarf2_per_cu_data) <cu>: Remove.
5023 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5024 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5025 moved to methods of dwarf2_per_objfile.
5026 (dwarf2_clear_marks): Remove.
5027 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5028 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5029 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5030 (dwarf2_per_objfile::remove_all_cus): New.
5031 (class free_cached_comp_units) <~free_cached_comp_units>:
5032 Update.
5033 (load_cu): Update.
5034 (dw2_do_instantiate_symtab): Adjust.
5035 (fill_in_sig_entry_from_dwo_entry): Adjust.
5036 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5037 (cutu_reader::cutu_reader): Likewise.
5038 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5039 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5040 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5041 and dwarf2_per_objfile::age_comp_units.
5042 (load_partial_comp_unit): Update.
5043 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5044 (process_queue): Likewise.
5045 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5046 backlink.
5047 (dwarf2_read_addr_index): Likewise.
5048 (follow_die_offset): Likewise.
5049 (dwarf2_fetch_die_loc_sect_off): Likewise.
5050 (dwarf2_fetch_constant_bytes): Likewise.
5051 (dwarf2_fetch_die_type_sect_off): Likewise.
5052 (follow_die_sig_1): Likewise.
5053 (load_full_type_unit): Likewise.
5054 (read_signatured_type): Likewise.
5055 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5056 (dwarf2_cu::~dwarf2_cu): Remove.
5057 (dwarf2_per_objfile::get_cu): New.
5058 (dwarf2_per_objfile::set_cu): New.
5059 (age_cached_comp_units): Rename to...
5060 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5061 to std::unordered_map.
5062 (free_one_cached_comp_unit): Rename to...
5063 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5064 to std::unordered_map.
5065 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5066 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5067 a dwarf2_per_objfile in data.
5068 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5069 (dwarf2_clear_marks): Remove.
5070
2e671100
SM
50712020-05-27 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5074 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5075 (init_tu_and_read_dwo_dies): Likewise.
5076 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5077 (cutu_reader::cutu_reader): Likewise.
5078 (load_partial_comp_unit): Likewise.
5079 (process_psymtab_comp_unit): Update.
5080 (build_type_psymtabs_1): Update.
5081 (process_skeletonless_type_unit): Update.
5082 (load_full_comp_unit): Update.
5083 (find_partial_die): Update.
5084 (dwarf2_read_addr_index): Update.
5085 (read_signatured_type): Update.
5086
2e6a9f79
SM
50872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5088
5089 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5090 m_header_read_in>: New fields.
5091 <get_header>: New method.
5092 * dwarf2/read.c (per_cu_header_read_in): Remove.
5093 (dwarf2_per_cu_data::get_header): New.
5094 (dwarf2_per_cu_data::addr_size): Update.
5095 (dwarf2_per_cu_data::offset_size): Update.
5096 (dwarf2_per_cu_data::ref_addr_size): Update.
5097
1b555f17
SM
50982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5101 (dw2_do_instantiate_symtab): Update.
5102 (queue_and_load_all_dwo_tus): Change parameter from
5103 dwarf2_per_cu_data to dwarf2_cu.
5104 (dwarf2_fetch_die_loc_sect_off): Update.
5105 (dwarf2_fetch_constant_bytes): Update.
5106 (dwarf2_fetch_die_type_sect_off): Update.
5107
8fc0b21d
SM
51082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5109
5110 * dwarf2/read.c (process_full_comp_unit,
5111 process_full_type_unit): Remove per_cu, per_objfile paramters.
5112 Add dwarf2_cu parameter.
5113 (process_queue): Update.
5114
168c9250
SM
51152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 * dwarf2/read.c (create_cu_from_index_list): Replace
5118 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5119 (create_cus_from_index_list): Likewise.
5120 (create_cus_from_index): Likewise.
5121 (create_signatured_type_table_from_index): Likewise.
5122 (create_cus_from_debug_names_list): Likewise.
5123 (create_cus_from_debug_names): Likewise.
5124 (dwarf2_read_gdb_index): Update.
5125 (dwarf2_read_debug_names): Update.
5126
e286671b
TT
51272020-05-27 Tom Tromey <tom@tromey.com>
5128 Simon Marchi <simon.marchi@efficios.com>
5129
5130 * dwarf2/read.h (struct dwarf2_per_objfile)
5131 <get_type_for_signatured_type, set_type_for_signatured_type>:
5132 New methods.
5133 <m_type_map>: New member.
5134 (struct signatured_type) <type>: Remove.
5135 * dwarf2/read.c
5136 (dwarf2_per_objfile::get_type_for_signatured_type,
5137 dwarf2_per_objfile::set_type_for_signatured_type): New.
5138 (get_signatured_type): Use new methods.
5139
8adb8487
TT
51402020-05-27 Tom Tromey <tom@tromey.com>
5141 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5144 (struct dwarf2_per_objfile) <type_units>: New member.
5145 <get_type_unit_group_unshareable>: New method.
5146 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5147 num_symtabs, symtabs>: Remove; move to
5148 type_unit_group_unshareable.
5149 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5150 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5151 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5152
127bbf4b
SM
51532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * dwarf2/read.h (struct dwarf2_per_cu_data):
5156 <dwarf2_per_objfile>: Remove.
5157 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5158 dwarf2_per_objfile.
5159 (create_signatured_type_table_from_index): Likewise.
5160 (create_signatured_type_table_from_debug_names): Likewise.
5161 (create_debug_type_hash_table): Likewise.
5162 (fill_in_sig_entry_from_dwo_entry): Likewise.
5163 (create_type_unit_group): Likewise.
5164 (read_comp_units_from_section): Likewise.
5165 (create_cus_hash_table): Likewise.
5166
f6e649dd
SM
51672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5170 dwarf2_per_cu_data::dwarf2_per_objfile.
5171 (compute_compunit_symtab_includes): Likewise.
5172 (dwarf2_cu::start_symtab): Likewise.
5173
aa66c379
SM
51742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5175
5176 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5177 parameter.
5178 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5179 (read_namespace_alias): Update.
5180 (lookup_die_type): Update.
5181 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5182 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5183 Update.
5184 (disassemble_dwarf_expression): Update.
5185
120ce1b5
SM
51862020-05-27 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * dwarf2/read.h (struct dwarf2_queue_item): Add
5189 dwarf2_per_objfile parameter, assign new parameter.
5190 <per_objfile>: New field.
5191 * dwarf2/read.c (free_one_cached_comp_unit): Add
5192 dwarf2_per_objfile parameter.
5193 (queue_comp_unit): Likewise.
5194 (dw2_do_instantiate_symtab): Update.
5195 (process_psymtab_comp_unit): Update.
5196 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5197 (process_imported_unit_die): Update.
5198 (queue_and_load_dwo_tu): Update.
5199 (follow_die_offset): Update.
5200 (follow_die_sig_1): Update.
5201
9f47c707
SM
52022020-05-27 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5205 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5206 (read_call_site_scope): Assign per_objfile.
5207 (dwarf2_per_cu_data::objfile): Remove.
5208 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5209 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5210 dwarf2_per_objfile parameter.
5211 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5212 dwarf2_per_objfile parameter.
5213 (dwarf_expr_reg_to_entry_parameter): Add output
5214 dwarf2_per_objfile parameter.
5215 (locexpr_get_frame_base): Update.
5216 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5217 <push_dwarf_reg_entry_value>: Update.
5218 <call_site_to_target_addr>: Update.
5219 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5220 parameter.
5221 (value_of_dwarf_reg_entry): Update.
5222 (rw_pieced_value): Update.
5223 (indirect_synthetic_pointer): Update.
5224 (dwarf2_evaluate_property): Update.
5225 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5226 parameter.
5227 (locexpr_read_variable): Update.
5228 (locexpr_get_symbol_read_needs): Update.
5229 (loclist_read_variable): Update.
5230
14095eb3
SM
52312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5232
5233 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5234 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5235 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5236 parameter.
5237 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5238 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5239 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5240 parameter.
5241 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5242 sect_variable_value): Add dwarf2_per_objfile parameter.
5243 (class dwarf_evaluate_loc_desc) <dwarf_call,
5244 dwarf_variable_value>: Update.
5245 (fetch_const_value_from_synthetic_pointer): Add
5246 dwarf2_per_objfile parameter.
5247 (fetch_const_value_from_synthetic_pointer): Update.
5248 (coerced_pieced_ref): Update.
5249 (class symbol_needs_eval_context) <dwarf_call,
5250 dwarf_variable_value>: Update.
5251 (dwarf2_compile_expr_to_ax): Update.
5252
3c3cd3d4
SM
52532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5254
5255 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5256 parameter.
5257 (dwarf2_evaluate_loc_desc_full): Update.
5258
82ca3f51
SM
52592020-05-27 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5262 parameter.
5263 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5264 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5265 dwarf2_per_objfile parameter.
5266 (decode_debug_loc_dwo_addresses): Likewise.
5267 (dwarf2_find_location_expression): Update.
5268 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5269 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5270 parameter.
5271 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5272 parameter.
5273 (locexpr_describe_location_1): Likewise.
5274 (locexpr_describe_location): Update.
5275
4b167ea1
SM
52762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5279 Remove.
5280 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5281 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5282 (dwarf2_compile_property_to_c): Update.
5283 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5284 use text offset from objfile.
5285 (locexpr_tracepoint_var_ref): Update.
5286 (locexpr_generate_c_location): Update.
5287 (loclist_describe_location): Update.
5288 (loclist_tracepoint_var_ref): Update.
5289 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5290 dwarf2_per_objfile parameter.
5291 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5292 use text offset from objfile.
5293 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5294
89b07335
SM
52952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * dwarf2/expr.h (struct dwarf_expr_context)
5298 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5299 <offset>: Remove.
5300 <per_objfile>: New member.
5301 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5302 dwarf2_per_objfile parameter. Don't set offset, set
5303 per_objfile.
5304 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5305 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5306 a dwarf2_per_objfile object instead of an offset.
5307 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5308 constructor.
5309 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5310 to dwarf2_expr_executor constructor. Don't set offset.
5311 (dwarf2_fetch_cfa_info): Update.
5312 (struct dwarf2_frame_cache) <text_offset>: Remove.
5313 <per_objfile>: New field.
5314 (dwarf2_frame_cache): Update.
5315 (dwarf2_frame_prev_register): Update.
5316 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5317 <dwarf_evaluate_loc_desc>: Add constructor.
5318 (dwarf2_evaluate_loc_desc_full): Update.
5319 (dwarf2_locexpr_baton_eval): Update.
5320 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5321 Add constructor.
5322 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5323
293e7e51
SM
53242020-05-27 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5327 addr_sized_int_type>: Move to dwarf2_cu.
5328 <int_type>: Move to dwarf2_per_objfile.
5329 (struct dwarf2_per_objfile) <int_type>: Move here.
5330 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5331 addr_sized_int_type>: Move here.
5332 (read_func_scope): Update.
5333 (read_array_type): Update.
5334 (read_tag_string_type): Update.
5335 (attr_to_dynamic_prop): Update.
5336 (dwarf2_per_cu_data::int_type): Rename to...
5337 (dwarf2_per_objfile::int_type): ... this.
5338 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5339 (dwarf2_cu::addr_sized_int_type): ... this.
5340 (read_subrange_type): Update.
5341 (dwarf2_per_cu_data::addr_type): Rename to...
5342 (dwarf2_cu::addr_type): ... this.
5343 (set_die_type): Update.
5344
64874a40
SM
53452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5348 data through per_cu->cu.
5349
4ab09049
SM
53502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5353 dwarf2_per_cu_data parameter fo dwarf2_cu.
5354 (lookup_dwo_type_unit): Likewise.
5355 (read_cutu_die_from_dwo): Likewise.
5356 (lookup_dwo_unit): Likewise.
5357 (open_and_init_dwo_file): Likewise.
5358 (lookup_dwo_cutu): Likewise.
5359 (lookup_dwo_comp_unit): Likewise.
5360 (lookup_dwo_type_unit): Likewise.
5361 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5362 (cutu_reader::cutu_reader): Update.
5363
47b14e86
SM
53642020-05-27 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5367 parameter.
5368 (process_full_type_unit): Likewise.
5369 (process_queue): Update.
5370
43182c09
SM
53712020-05-27 Simon Marchi <simon.marchi@efficios.com>
5372
5373 * dwarf2/read.c (recursively_compute_inclusions): Add
5374 dwarf2_per_objfile parameter.
5375 (compute_compunit_symtab_includes): Likewise.
5376 (process_cu_includes): Update.
5377
7aa104c4
SM
53782020-05-27 Simon Marchi <simon.marchi@efficios.com>
5379
5380 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5381 parameter.
5382 (create_type_unit_group): Update.
5383 (process_psymtab_comp_unit_reader): Update.
5384 (build_type_psymtabs_reader): Update.
5385
e3beb21d
SM
53862020-05-27 Simon Marchi <simon.marchi@efficios.com>
5387
5388 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5389 object through m_this_cu->cu.
5390
d460f660
SM
53912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5392
5393 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5394 the info parameter.
5395 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5396
ab432490
SM
53972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5398
5399 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5400 per_objfile parameter.
5401 (load_full_type_unit): Add per_objfile parameter.
5402 (read_signatured_type): Likewise.
5403 (load_full_comp_unit): Likewise.
5404 (load_cu): Likewise.
5405 (dw2_do_instantiate_symtab): Likewise.
5406 (dw2_get_file_names): Likewise.
5407 (dw2_map_symtabs_matching_filename): Update.
5408 (dw_expand_symtabs_matching_file_matcher): Update.
5409 (dw2_map_symbol_filenames): Update.
5410 (process_psymtab_comp_unit): Add per_objfile parameter.
5411 (build_type_psymtabs_1): Update.
5412 (process_skeletonless_type_unit): Update.
5413 (dwarf2_build_psymtabs_hard): Update.
5414 (load_partial_comp_unit): Add per_objfile parameter.
5415 (scan_partial_symbols): Update.
5416 (load_full_comp_unit): Add per_objfile parameter.
5417 (process_imported_unit_die): Update.
5418 (create_cus_hash_table): Update.
5419 (find_partial_die): Update.
5420 (dwarf2_read_addr_index): Update.
5421 (follow_die_offset): Update.
5422 (dwarf2_fetch_die_loc_sect_off): Update.
5423 (dwarf2_fetch_constant_bytes): Update.
5424 (dwarf2_fetch_die_type_sect_off): Update.
5425 (follow_die_sig_1): Update.
5426 (load_full_type_unit): Add per_objfile parameter.
5427 (read_signatured_type): Likewise.
5428
313bad1b
SM
54292020-05-27 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5432 of objfile_name.
5433
c3699833
SM
54342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5435
5436 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5437 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5438 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5439 field.
5440 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5441 (create_cus_from_index): Update.
5442 (dwarf2_read_gdb_index): Update.
5443 (create_cus_from_debug_names): Update.
5444 (dwarf2_read_debug_names): Update.
5445 (get_abbrev_section_for_cu): Update.
5446 (create_all_comp_units): Update.
5447 (read_attribute_value): Update.
5448 (get_debug_line_section): Update.
5449 * dwarf2/index-cache.c (index_cache::store): Update.
5450 * dwarf2/index-write.c (save_gdb_index_command): Update.
5451 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5452
1859c670
SM
54532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5456 member.
5457 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5458 dwarf2_per_cu_data::per_bfd.
5459 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5460 (create_type_unit_group): Likewise.
5461 (queue_comp_unit): Remove reference to
5462 per_cu->dwarf2_per_objfile.
5463 (maybe_queue_comp_unit): Likewise.
5464 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5465 (create_cus_hash_table): Assign new field.
5466
5e22e966
SM
54672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * dwarf2/read.c: Replace
5470 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5471 dwarf2_cu->per_objfile throughout.
5472
97a1449a
SM
54732020-05-27 Simon Marchi <simon.marchi@efficios.com>
5474
5475 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5476 parameter, don't use per_cu->dwarf2_per_objfile.
5477 (dw2_instantiate_symtab): Likewise.
5478 (dw2_find_last_source_symtab): Update.
5479 (dw2_map_expand_apply): Update.
5480 (dw2_lookup_symbol): Update.
5481 (dw2_expand_symtabs_for_function): Update.
5482 (dw2_expand_all_symtabs): Update.
5483 (dw2_expand_symtabs_with_fullname): Update.
5484 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5485 don't use per_cu->dwarf2_per_objfile.
5486 (dw2_expand_marked_cus): Update.
5487 (dw2_find_pc_sect_compunit_symtab): Update.
5488 (dw2_debug_names_lookup_symbol): Update.
5489 (dw2_debug_names_expand_symtabs_for_function): Update.
5490 (dw2_debug_names_map_matching_symbols): Update.
5491 (dwarf2_psymtab::expand_psymtab): Update.
5492
9e021579
SM
54932020-05-27 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5496 <per_objfile>: New member.
5497 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5498 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5499 call to dwarf2_cu.
5500 (cutu_reader::cutu_reader): Update.
5501 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5502
ae090bdb
SM
55032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5504
5505 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5506 struct dwarf2_per_objfile.
5507 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5508 dwarf2_per_bfd.
5509 * dwarf2/read.c (set_die_type): Update.
5510 (get_die_type_at_offset): Update.
5511
af758d11
SM
55122020-05-27 Tom Tromey <tom@tromey.com>
5513 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5516 method.
5517 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5518 get_symtab, set_symtab>: New methods.
5519 <m_symtabs>: New field.
5520 (struct dwarf2_psymtab): Derive from partial_symtab.
5521 <readin_p, get_compunit_symtab>: Declare methods.
5522 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5523 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5524 New methods.
5525 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5526 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5527 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5528 (dw2_symtab_iter_next, dw2_print_stats)
5529 (dw2_expand_symtabs_with_fullname)
5530 (dw2_expand_symtabs_matching_one)
5531 (dw_expand_symtabs_matching_file_matcher)
5532 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5533 (dw2_debug_names_iterator::next)
5534 (dw2_debug_names_map_matching_symbols)
5535 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5536 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5537 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5538 New methods.
5539 (get_compunit_symtab, process_full_comp_unit)
5540 (process_full_type_unit): Update.
5541 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5542
5989a64e
SM
55432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5544
5545 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5546 then introduce a new dwarf2_per_objfile type.
5547 <read_line_string>: Move to the new dwarf2_per_objfile type.
5548 <objfile>: Likewise.
5549 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5550 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5551 dwarf2_per_objfile->per_bfd.
5552 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5553 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5554 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5555 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5556 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5557 (dwarf2_per_objfile::locate_sections): Rename to...
5558 (dwarf2_per_bfd::locate_sections): ... this.
5559 (dwarf2_per_objfile::get_cutu): Rename to...
5560 (dwarf2_per_bfd::get_cutu): ... this.
5561 (dwarf2_per_objfile::get_cu): Rename to...
5562 (dwarf2_per_bfd::get_cu): ... this.
5563 (dwarf2_per_objfile::get_tu): Rename to...
5564 (dwarf2_per_bfd::get_tu): ... this.
5565 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5566 (dwarf2_per_bfd::allocate_per_cu): ... this.
5567 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5568 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5569 (get_gdb_index_contents_ftype): Change parameter from
5570 dwarf2_per_objfile to dwarf2_per_bfd.
5571 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5572 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5573
a50264ba
TT
55742020-05-27 Tom Tromey <tom@tromey.com>
5575 Simon Marchi <simon.marchi@efficios.com>
5576
5577 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5578 (allocate_piece_closure): Set "per_objfile" member.
5579 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5580 (locexpr_describe_location, loclist_describe_location): Use new
5581 member.
5582 * dwarf2/read.c (read_call_site_scope)
5583 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5584 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5585 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5586 handle_data_member_location): Set per_objfile member.
5587 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5588 member.
5589 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5590
d3473f0c
TT
55912020-05-27 Tom Tromey <tom@tromey.com>
5592
5593 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5594 allocate_signatured_type>: Declare new methods.
5595 <m_num_psymtabs>: New member.
5596 (struct dwarf2_per_cu_data) <index>: New member.
5597 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5598 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5599 (create_cu_from_index_list): Use allocate_per_cu.
5600 (create_signatured_type_table_from_index)
5601 (create_signatured_type_table_from_debug_names)
5602 (create_debug_type_hash_table, add_type_unit)
5603 (read_comp_units_from_section): Use allocate_signatured_type.
5604
5717c425
TT
56052020-05-27 Tom Tromey <tom@tromey.com>
5606
5607 * psymtab.c (partial_map_expand_apply)
5608 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5609 (psym_lookup_global_symbol_language)
5610 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5611 (psym_print_stats, psym_expand_symtabs_for_function)
5612 (psym_map_symbol_filenames, psym_map_matching_symbols)
5613 (psym_expand_symtabs_matching)
5614 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5615 (maintenance_check_psymtabs): Update.
5616 * psympriv.h (struct partial_symtab) <readin_p,
5617 get_compunit_symtab>: Add objfile parameter.
5618 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5619 Likewise.
5620 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5621 get_compunit_symtab>: Likewise.
5622 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5623
45940949
TT
56242020-05-27 Tom Tromey <tom@tromey.com>
5625
5626 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5627 member.
5628 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5629 (create_cu_from_index_list)
5630 (create_signatured_type_table_from_index)
5631 (create_signatured_type_table_from_debug_names)
5632 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5633 (dwarf2_create_include_psymtab)
5634 (create_debug_type_hash_table, add_type_unit)
5635 (create_type_unit_group, read_comp_units_from_section)
5636 (dwarf2_compute_name, create_cus_hash_table)
5637 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5638 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5639 obstack.
5640 (dw2_get_real_path): Likewise. Change argument to
5641 dwarf2_per_objfile.
5642
f8c6d152
LM
56432020-05-27 Luis Machado <luis.machado@linaro.org>
5644
5645 PR tdep/26000
5646 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5647 for ldrd (immediate).
5648
e98d2e6d
PW
56492020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5650
5651 * command.h: Add comment giving the name of class_tui.
5652 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5653 create the fake command for the help for class_tui.
5654
53a47a3e
TT
56552020-05-26 Tom Tromey <tromey@adacore.com>
5656
5657 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5658 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5659 (val_atr): New function.
5660 (value_val_atr): Use it.
5661 * ada-valprint.c (print_optional_low_bound): Change low bound
5662 handling for enums.
5663 (val_print_packed_array_elements): Don't call discrete_position.
5664 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5665 discrete_position for enum types.
5666 * language.c (default_print_array_index): Change type.
5667 * language.h (struct language_defn) <la_print_array_index>: Add
5668 index_type parameter, change type of index_value.
5669 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5670 (default_print_array_index): Update.
5671 * valprint.c (maybe_print_array_index): Don't call
5672 value_from_longest. Update.
5673 (value_print_array_elements): Don't call discrete_position.
5674
0bc2354b
TT
56752020-05-26 Tom Tromey <tromey@adacore.com>
5676
5677 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5678 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5679
1218a4bf
CDA
56802020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5681
5682 PR gdb/13519
5683 * avr-tdep.c (avr_integer_to_address): Return data or code
5684 address accordingly to the second 'type' argument of the
5685 function.
5686
92651b1d
MW
56872020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5688
5689 * infcmd.c, inferior.h: (construct_inferior_arguments):
5690 Moved function from here to gdbsupport/common-inferior.{h,cc}
5691
0a4f5f8c
TT
56922020-05-23 Tom Tromey <tom@tromey.com>
5693
5694 Revert commit eca1f90c:
5695 * NEWS: Remove entry for completion styling.
5696 * completer.c (_rl_completion_prefix_display_length): Move
5697 declaration later.
5698 (gdb_fnprint): Revert.
5699 (gdb_display_match_list_1): Likewise.
5700 * cli/cli-style.c (completion_prefix_style)
5701 (completion_difference_style, completion_suffix_style): Remove.
5702 (_initialize_cli_style): Revert.
5703 * cli/cli-style.h (completion_prefix_style)
5704 (completion_difference_style, completion_suffix_style): Don't
5705 declare.
5706
e08bd6c5
PA
57072020-05-24 Pedro Alves <palves@redhat.com>
5708
5709 * symtab.c (completion_list_add_name): Return boolean indication
5710 of whether the symbol matched.
5711 (completion_list_add_symbol): Don't try to remove C++ aliases if
5712 the symbol didn't match in the first place.
5713 * symtab.h (completion_list_add_name): Return bool.
5714
ceacbf6e
SM
57152020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5716
5717 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5718 type::field.
5719
26f16254
JB
57202020-05-23 Joel Brobecker <brobecker@adacore.com>
5721
5722 GDB 9.2 released.
5723
eca1f90c
TT
57242020-05-23 Tom Tromey <tom@tromey.com>
5725
5726 * NEWS: Add entry for completion styling.
5727 * completer.c (_rl_completion_prefix_display_length): Move
5728 declaration earlier.
5729 (gdb_fnprint): Use completion_style.
5730 (gdb_display_match_list_1): Likewise.
5731 * cli/cli-style.c (completion_prefix_style)
5732 (completion_difference_style, completion_suffix_style): New
5733 globals.
5734 (_initialize_cli_style): Register new globals.
5735 * cli/cli-style.h (completion_prefix_style)
5736 (completion_difference_style, completion_suffix_style): Declare.
5737
51e2cfa2
PA
57382020-05-23 Pedro Alves <palves@redhat.com>
5739
5740 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5741 (parse_escape): Use ISDIGIT instead of isdigit.
5742 (puts_debug): Use gdb_isprint instead of isprint.
5743 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5744 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5745 ISSPACE instead of isspace.
5746 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5747 instead of isspace.
5748 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5749 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5750 instead of isxdigit and ISDIGIT instead of isdigit.
5751
80fc5e77
SM
57522020-05-22 Simon Marchi <simon.marchi@efficios.com>
5753
5754 * gdbtypes.h (struct type) <field>: New method.
5755 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5756 or type::field.
5757
3cabb6b0
SM
57582020-05-22 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5761 (TYPE_FIELDS): Use type::fields. Change all call sites that
5762 modify the propery to use type::set_fields instead.
5763
1f704f76
SM
57642020-05-22 Simon Marchi <simon.marchi@efficios.com>
5765
5766 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5767 type::num_fields instead.
5768
5e33d5f4
SM
57692020-05-22 Simon Marchi <simon.marchi@efficios.com>
5770
5771 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5772 methods.
5773 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5774 that modify the number of fields to use type::set_num_fields
5775 instead.
5776
9392ebb3
TT
57772020-05-22 Tom Tromey <tromey@adacore.com>
5778
5779 * compile/compile-object-load.h (munmap_list_free): Don't
5780 declare.
5781
7c13f4e8
AB
57822020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * annotate.c (annotate_source_line): Update return type, add call
5785 to update current symtab and line.
5786 * annotate.h (annotate_source_line): Update return type, and
5787 extend header comment.
5788 * source.c (info_line_command): Check annotation_level before
5789 calling annotate_source_line.
5790 * stack.c (print_frame_info): If calling annotate_source_line
5791 returns true, then don't print any other source line information.
5792
aa370940
SM
57932020-05-21 Simon Marchi <simon.marchi@efficios.com>
5794
5795 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5796
84d53fa9
SM
57972020-05-21 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * coffread.c (patch_type): Remove NULL check before xfree.
5800 * corefile.c (set_gnutarget): Likewise.
5801 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5802 * exec.c (build_section_table): Likewise.
5803 * remote.c (remote_target::pass_signals): Likewise.
5804 * utils.c (n_spaces): Likewise.
5805 * cli/cli-script.c (document_command): Likewise.
5806 * i386-windows-tdep.c (core_process_module_section): Likewise.
5807 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5808
9d428aae
SM
58092020-05-20 Simon Marchi <simon.marchi@efficios.com>
5810
5811 * symfile.c (reread_symbols): Clear objfile's section_offsets
5812 vector and section indices, re-compute them by calling
5813 sym_offsets.
5814
250106a7
TT
58152020-05-20 Tom Tromey <tromey@adacore.com>
5816
5817 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5818 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5819
9a0bacfb
TV
58202020-05-20 Tom de Vries <tdevries@suse.de>
5821
5822 PR symtab/25833
5823 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5824
7b958a48
AM
58252020-05-20 Alan Modra <amodra@gmail.com>
5826
5827 PR 25993
5828 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5829 bfd_set_filename.
5830 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5831 passed to bfd_set_filename.
5832 * symfile-mem.c (add_vsyscall_page): Likewise for string
5833 passed to symbol_file_add_from_memory.
5834 (symbol_file_add_from_memory): Make name param a const char* and
5835 don't strdup.
5836
c7e97679
AM
58372020-05-20 Alan Modra <amodra@gmail.com>
5838
5839 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5840 rather than accessing bfd->filename directly.
5841 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5842 and use bfd_section_name.
5843 * dwarf2/frame.c (decode_frame_entry): Likewise.
5844 * exec.c (exec_set_section_address): Likewise.
5845 * solib-aix.c (solib_aix_bfd_open): Likewise.
5846 * stap-probe.c (get_stap_base_address): Likewise.
5847 * symfile.c (reread_symbols): Likewise.
5848
563c591b
TT
58492020-05-19 Tom Tromey <tromey@adacore.com>
5850
5851 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5852
f408d82c
SM
58532020-05-19 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5856
98c59b52
PA
58572020-05-19 Pedro Alves <palves@redhat.com>
5858
5859 * NEWS (set exec-file-mismatch): Adjust entry.
5860 * exec.c: Include "build-id.h".
5861 (validate_exec_file): Try to match build IDs instead of filenames.
5862 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5863 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5864 and pass down 'warn_if_slow'.
5865 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5866 gdb_bfd_open_closure to pass it down.
5867 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5868
4111f652
PA
58692020-05-19 Pedro Alves <palves@redhat.com>
5870
5871 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5872 * target.c (target_fileio_open_1): Rename to target_fileio_open
5873 and make extern. Use bool.
5874 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5875 (target_fileio_read_alloc_1): Adjust.
5876 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5877 (target_fileio_open_warn_if_slow): Delete declaration.
5878
ad80db5b
PA
58792020-05-19 Pedro Alves <palves@redhat.com>
5880
5881 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5882 Adjust all callers.
5883
1d6ce4d3
YS
58842020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5885
5886 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5887 whether disp is negative.
5888
9005fbbb
SM
58892020-05-19 Simon Marchi <simon.marchi@efficios.com>
5890
5891 * symfile.h (struct symfile_segment_data)
5892 <~symfile_segment_data>: Remove.
5893 <segment_info>: Change to std::vector.
5894 * symfile.c (default_symfile_segments): Update.
5895 * elfread.c (elf_symfile_segments): Update.
5896
68b888ff
SM
58972020-05-19 Simon Marchi <simon.marchi@efficios.com>
5898
5899 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5900 <segments>: New.
5901 <segment_bases, segment_sizes>: Remove.
5902 * symfile.c (default_symfile_segments): Update.
5903 * elfread.c (elf_symfile_segments): Update.
5904 * remote.c (remote_target::get_offsets): Update.
5905 * solib-target.c (solib_target_relocate_section_addresses):
5906 Update.
5907
62982abd
SM
59082020-05-19 Simon Marchi <simon.marchi@efficios.com>
5909
5910 * symfile.h (struct symfile_segment_data): Initialize fields.
5911 <~symfile_segment_data>: Add.
5912 (symfile_segment_data_up): New.
5913 (struct sym_fns) <sym_segments>: Return a
5914 symfile_segment_data_up.
5915 (default_symfile_segments): Return a symfile_segment_data_up.
5916 (free_symfile_segment_data): Remove.
5917 (get_symfile_segment_data): Return a symfile_segment_data_up.
5918 * symfile.c (default_symfile_segments): Likewise.
5919 (get_symfile_segment_data): Likewise.
5920 (free_symfile_segment_data): Remove.
5921 (symfile_find_segment_sections): Update.
5922 * elfread.c (elf_symfile_segments): Return a
5923 symfile_segment_data_up.
5924 * remote.c (remote_target::get_offsets): Update.
5925 * solib-target.c (solib_target_relocate_section_addresses):
5926 Update.
5927 * symfile-debug.c (debug_sym_segments): Return a
5928 symfile_segment_data_up.
5929
7f204339
RO
59302020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5931
e52a0f1b
RO
5932 PR build/25981
5933 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5934 Hardcode register numbers.
5935
7f204339
RO
5936 PR build/25981
5937 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5938 procfs_find_LDT_entry): Remove.
5939 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5940 procfs_find_LDT_entry): Remove.
5941 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5942 Remove.
5943
7f32a4d5
PA
59442020-05-17 Pedro Alves <palves@redhat.com>
5945 Andrew Burgess <andrew.burgess@embecosm.com>
5946 Keno Fischer <keno@juliacomputing.com>
5947
5948 PR gdb/25741
5949 * breakpoint.c (build_target_condition_list): Update comments.
5950 (build_target_command_list): Update comments and skip matching
5951 locations.
5952 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5953 a separate function. Simplify "set breakpoint auto-hw off"
5954 handling.
5955 (insert_breakpoints): Update comment.
5956 (tracepoint_locations_match): New parameter. For breakpoints,
5957 compare location types too, if the caller wants to.
5958 (handle_automatic_hardware_breakpoints): New functions.
5959 (bp_location_is_less_than): Also sort by location type and
5960 hardware breakpoint length.
5961 (update_global_location_list): Handle "set breakpoint auto-hw on"
5962 here.
5963 (update_breakpoint_locations): Ask breakpoint_locations_match to
5964 ignore location types.
5965
7d93a1e0
SM
59662020-05-16 Simon Marchi <simon.marchi@efficios.com>
5967
5968 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5969 type::name instead.
5970
d0e39ea2
SM
59712020-05-16 Simon Marchi <simon.marchi@efficios.com>
5972
5973 * gdbtypes.h (struct type) <name, set_name>: New methods.
5974 (TYPE_CODE): Use type::name. Change all call sites used to set
5975 the name to use type::set_name instead.
5976
2dab0c7b
TT
59772020-05-16 Tom Tromey <tom@tromey.com>
5978
5979 * top.c (quit_force): Update.
5980 * infrun.c (handle_no_resumed): Update.
5981 * top.h (all_uis): New function.
5982 (ALL_UIS): Remove.
5983
59f7bd8d
SM
59842020-05-16 Simon Marchi <simon.marchi@efficios.com>
5985
5986 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5987
9bf058f0
PA
59882020-05-16 Pedro Alves <palves@redhat.com>
5989
5990 * ia64-linux-nat.c
5991 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5992 Declare method.
5993 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5994
8f86ae1a
SM
59952020-05-15 Simon Marchi <simon.marchi@efficios.com>
5996
5997 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5998 (sparc64_adi_info): Likewise.
5999
d6bc0792
TT
60002020-05-15 Tom Tromey <tom@tromey.com>
6001
6002 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6003 block_objfile.
6004 (lookup_objfile_from_block): Remove.
6005 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6006 (lookup_global_symbol): Use block_objfile.
6007 * symtab.h (lookup_objfile_from_block): Don't declare.
6008 * printcmd.c (clear_dangling_display_expressions): Use
6009 block_objfile.
6010 * parse.c (operator_check_standard): Use block_objfile.
6011
8c14c3a3
TT
60122020-05-15 Tom Tromey <tom@tromey.com>
6013
6014 * language.c (language_alloc_type_symbol): Set
6015 SYMBOL_SECTION.
6016 * symtab.c (initialize_objfile_symbol): Remove.
6017 (allocate_symbol): Remove.
6018 (allocate_template_symbol): Remove.
6019 * dwarf2/read.c (fixup_go_packaging): Use "new".
6020 (new_symbol): Use "new".
6021 (read_variable): Don't call initialize_objfile_symbol. Use
6022 "new".
6023 (read_func_scope): Use "new".
6024 * xcoffread.c (process_xcoff_symbol): Don't call
6025 initialize_objfile_symbol.
6026 (SYMBOL_DUP): Remove.
6027 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6028 "new".
6029 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6030 (allocate_template_symbol): Don't declare.
6031 (struct symbol): Add copy constructor. Change defaults.
6032 * jit.c (finalize_symtab): Use "new".
6033 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6034 Use "new".
6035 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6036 (common_block_end): Use "new".
6037 * mdebugread.c (parse_symbol): Use "new".
6038 (new_symbol): Likewise.
6039
5b4a1a8d
PW
60402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6041
6042 * NEWS: Mention changes to help and apropos.
6043
57b4f16e
PW
60442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6045
6046 * command.h (enum command_class): Improve comments, document
6047 that class_alias is for user-defined aliases, give the class
6048 name for each class, remove unused class_xdb.
6049 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6050 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6051 by a precise class.
6052 * infcmd.c (_initialize_infcmd): Likewise.
6053 * reverse.c (_initialize_reverse): Likewise.
6054 * stack.c (_initialize_stack): Likewise.
6055 * symfile.c (_initialize_symfile): Likewise.
6056 * tracepoint.c (_initialize_tracepoint): Likewise.
6057
7c05caf7
PW
60582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6059
6060 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6061 when their aliased command is traversed.
6062 (help_cmd): Add fput_command_names_styled call to
6063 output command name and aliases when command has an alias.
6064
3b3aaacb
PW
60652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6066
6067 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6068 * cli/cli-decode.c (help_cmd_list): Declare as static,
6069 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6070 a command together with the command.
6071 (fput_command_name_styled, fput_command_names_styled): New functions.
6072 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6073 fput_command_name_styled.
6074 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6075 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6076
7aa1b46f
PW
60772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6078
6079 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6080 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6081 * command.h (cmd_show_list): Likewise.
6082 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6083 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6084
89bcba74
PW
60852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6086
6087 * unittests/command-def-selftests.c (traverse_command_structure):
6088 Verify all commands of a list have the same prefix command and
6089 that only the top cmdlist commands have a null prefix.
6090
3f4d92eb
PW
60912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6092
6093 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6094 as prefix, not one of its aliases.
6095 (set_cmd_prefix): Remove.
6096 (do_add_cmd): Centralize the setting of the prefix of a command, when
6097 command is defined after its full chain of prefix commands.
6098 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6099 (add_setshow_cmd_full): Likewise.
6100 (update_prefix_field_of_prefixed_commands): New function.
6101 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6102 update_prefix_field_of_prefixed_commands.
6103 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6104 addresses of remote_set_cmdlist and remote_show_cmdlist given
6105 as argument, not the address of an argument.
6106 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6107 * gdb/remote.c (_initialize_remote): Likewise.
6108
0605465f
PW
61092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6110
6111 * cli/cli-cmds.c (alias_command): Check for an existing alias
6112 using lookup_cmd_composition, as valid_command_p is too strict
6113 and forbids aliases that are the prefix of an existing alias
6114 or command.
6115 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6116 command is properly recognised as a valid command.
6117
58e6ac70
PW
61182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6119
6120 * unittests/help-doc-selftests.c: Rename to
6121 unittests/command-def-selftests.c
6122 * unittests/command-def-selftests.c (help_doc_tests): Update some
6123 comments.
6124 (command_structure_tests, traverse_command_structure): New namespace
6125 and function.
6126 (command_structure_invariants_tests): New function.
6127 (_initialize_command_def_selftests) Renamed from
6128 _initialize_help_doc_selftests, register command_structure_invariants
6129 selftest.
6130
a7b9ceb8
PW
61312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6132
6133 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6134 an alias of 'show'.
6135
b2188a06
JB
61362020-05-15 Joel Brobecker <brobecker@adacore.com>
6137
6138 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6139 ada_is_fixed_point_type. Update all callers.
6140 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6141 all callers.
6142 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6143 Update all callers.
6144 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6145 print_fixed_point_type. Update all callers.
6146 * ada-valprint.c (ada_value_print_num): Replace call to
6147 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6148
a51951c2
KB
61492020-05-14 Kevin Buettner <kevinb@redhat.com>
6150
6151 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6152 processors.
6153 (cpu_supports_bts): Add CV_AMD case.
6154
29d6859f
LM
61552020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6156 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * infrun.c (stop_all_threads): Collect multiple wait events at
6159 each pass.
6160
78134374
SM
61612020-05-14 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6164 type::code instead.
6165
67607e24
SM
61662020-05-14 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * gdbtypes.h (struct type) <code, set_code>: New methods.
6169 (TYPE_CODE): Use type::code. Change all call sites used to set
6170 the code to use type::set_code instead.
6171
a05575d3
TBA
61722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6173 Tom de Vries <tdevries@suse.de>
6174 Pedro Alves <palves@redhat.com>
6175
6176 PR threads/25478
6177 * infrun.c (stop_all_threads): Do NOT ignore
6178 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6179 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6180 received.
6181 (handle_no_resumed): Remove code handling a live inferior with no
6182 threads.
6183 * remote.c (has_single_non_exited_thread): New.
6184 (remote_target::update_thread_list): Do not delete a thread if is
6185 the last thread of the process.
6186 * thread.c (thread_select): Call delete_exited_threads instead of
6187 prune_threads.
6188
6ad82919
TBA
61892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6190
6191 * infrun.c (stop_all_threads): Enable/disable thread events of all
6192 targets. Move a debug message denoting the end of the function
6193 into the SCOPED_EXIT block.
6194
d890404b
TBA
61952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6196
6197 * process-stratum-target.h: Include <set>.
6198 (all_non_exited_process_targets, switch_to_target_no_thread): New
6199 function declarations.
6200 * process-stratum-target.c (all_non_exited_process_targets)
6201 (switch_to_target_no_thread): New function implementations.
6202
293b3ebc
TBA
62032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6204
6205 * infrun.c (handle_inferior_event): Extract out a piece of code
6206 into...
6207 (mark_non_executing_threads): ...this new function.
6208
7ca9b62a
TBA
62092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6210
6211 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6212 use.
6213
fc75c28b
TBA
62142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6215
6216 * regcache.c (regcache_read_pc_protected): New function
6217 implementation that returns 0 if the PC cannot read via
6218 'regcache_read_pc'.
6219 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6220 instead of 'regcache_read_pc'.
6221 (keep_going_pass_signal): Ditto.
6222
a89febbd
TT
62232020-05-13 Tom Tromey <tromey@adacore.com>
6224
6225 * ada-lang.c (align_value): Remove.
6226 (ada_template_to_fixed_record_type_1): Use align_up.
6227
f7e23710
TBA
62282020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6229
6230 * async-event.c: Update the copyright year.
6231 * async-event.h: Update the copyright year.
6232
02ff80c2
SM
62332020-05-12 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * objfiles.h (is_addr_in_objfile,
6236 shared_objfile_contains_address_p): Return bool.
6237 * objfile.c (is_addr_in_objfile,
6238 shared_objfile_contains_address_p): Return bool.
6239
4fd6c7e8
TT
62402020-05-11 Tom Tromey <tromey@adacore.com>
6241
6242 * cli/cli-cmds.c (info_command): Restore.
6243 (_initialize_cli_cmds): Use add_prefix_command for "info".
6244 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6245
5eb68a39
TT
62462020-05-11 Tom Tromey <tromey@adacore.com>
6247
6248 * ada-lang.c (ada_value_primitive_field): Now public.
6249 * ada-lang.h (ada_value_primitive_field): Declare.
6250 * ada-valprint.c (print_field_values): Use
6251 ada_value_primitive_field for wrapper fields.
6252
7666722f
TV
62532020-05-11 Tom de Vries <tdevries@suse.de>
6254
6255 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6256 MODULE_DOMAIN.
6257
3ee6bb11
TV
62582020-05-11 Tom de Vries <tdevries@suse.de>
6259
6260 PR symtab/25941
6261 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6262 with length 0, if not gdb-produced.
6263 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6264
43434996
TV
62652020-05-09 Tom de Vries <tdevries@suse.de>
6266
6267 PR gdb/25955
6268 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6269 calculation.
6270
2f78cffc
TT
62712020-05-09 Tom Tromey <tom@tromey.com>
6272
6273 * top.c (server_command): Now bool.
6274 * top.h (server_command): Now bool.
6275
4f7bc5ed
TT
62762020-05-08 Tom Tromey <tromey@adacore.com>
6277
6278 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6279 already being processed.
6280
8be4b118
TT
62812020-05-08 Tom Tromey <tom@tromey.com>
6282
6283 * printcmd.c (struct display) <next>: Remove.
6284 <display>: New constructor.
6285 <exp_string>: Now a std::string.
6286 <enabled_p>: Now a bool.
6287 (display_number): Move definition earlier.
6288 (displays): Rename from display_chain. Now a std::vector.
6289 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6290 (display_command): Update.
6291 (do_one_display, disable_display)
6292 (enable_disable_display_command, do_enable_disable_display):
6293 Update.
6294 (free_display): Remove.
6295 (clear_displays): Rewrite.
6296 (delete_display): Update.
6297 (map_display_numbers): Use function_view. Remove "data"
6298 parameter. Update.
6299 (do_delete_display): Remove.
6300 (undisplay_command): Update.
6301 (do_one_display, do_displays, disable_display)
6302 (info_display_command): Update.
6303 (do_enable_disable_display): Remove.
6304 (enable_disable_display_command)
6305 (clear_dangling_display_expressions): Update.
6306
94c93c35
TT
63072020-05-08 Tom Tromey <tom@tromey.com>
6308
6309 * symtab.c (set_symbol_cache_size)
6310 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6311 (maintenance_print_symbol_cache_statistics): Update.
6312 * symmisc.c (print_symbol_bcache_statistics)
6313 (print_objfile_statistics, maintenance_print_objfiles)
6314 (maintenance_info_symtabs, maintenance_check_symtabs)
6315 (maintenance_expand_symtabs, maintenance_info_line_tables):
6316 Update.
6317 * symfile-debug.c (set_debug_symfile): Update.
6318 * source.c (forget_cached_source_info): Update.
6319 * python/python.c (gdbpy_progspaces): Update.
6320 * psymtab.c (maintenance_info_psymtabs): Update.
6321 * probe.c (parse_probes): Update.
6322 * linespec.c (iterate_over_all_matching_symtabs)
6323 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6324 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6325 * exec.c (exec_target::close): Update.
6326 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6327 * breakpoint.c (print_one_breakpoint_location)
6328 (create_longjmp_master_breakpoint)
6329 (create_std_terminate_master_breakpoint): Update.
6330 * progspace.c (program_spaces): Now a std::vector.
6331 (maybe_new_address_space): Update.
6332 (add_program_space): Remove.
6333 (program_space::program_space): Update.
6334 (remove_program_space): Update.
6335 (number_of_program_spaces): Remove.
6336 (print_program_space, update_address_spaces): Update.
6337 * progspace.h (program_spaces): Change type.
6338 (ALL_PSPACES): Remove.
6339 (number_of_program_spaces): Don't declare.
6340 (struct program_space) <next>: Remove.
6341
a1fd1ac9
TT
63422020-05-08 Tom Tromey <tom@tromey.com>
6343
6344 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6345 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6346 (enable_break): Update.
6347 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6348 (frv_fdpic_find_canonical_descriptor): Update.
6349 (frv_fetch_objfile_link_map): Update.
6350 * progspace.c (program_space::free_all_objfiles): Update.
6351 (program_space::solibs): New method.
6352 * progspace.h (struct program_space) <solibs>: New method.
6353 * solist.h (master_so_list): Don't declare.
6354 (ALL_SO_LIBS): Remove.
6355 * solib.h (so_list_head): Remove.
6356 (update_solib_list): Update comment.
6357 * solib.c (master_so_list): Remove.
6358 (solib_used, update_solib_list, solib_add)
6359 (info_sharedlibrary_command, clear_solib)
6360 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6361
38eae084
TT
63622020-05-08 Tom Tromey <tom@tromey.com>
6363
6364 * extension.c (extension_languages): Now a std::array.
6365 (ALL_EXTENSION_LANGUAGES): Remove.
6366 (get_ext_lang_defn, get_ext_lang_of_file)
6367 (eval_ext_lang_from_control_command): Update.
6368 (finish_ext_lang_initialization)
6369 (auto_load_ext_lang_scripts_for_objfile)
6370 (ext_lang_type_printers::ext_lang_type_printers)
6371 (apply_ext_lang_type_printers)
6372 (ext_lang_type_printers::~ext_lang_type_printers)
6373 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6374 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6375 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6376 (get_matching_xmethod_workers, ext_lang_colorize)
6377 (ext_lang_before_prompt): Update.
6378 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6379
596dc4ad
TT
63802020-05-08 Tom Tromey <tom@tromey.com>
6381
6382 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6383 overload.
6384 <swap_string, m_string>: Remove.
6385 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6386 Update.
6387 * stabsread.c (define_symbol, read_type): Update.
6388 * linespec.c (find_linespec_symbols): Update.
6389 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6390 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6391 * dbxread.c (read_dbx_symtab): Update.
6392 * cp-support.h (cp_canonicalize_string_full)
6393 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6394 Return unique_xmalloc_ptr.
6395 * cp-support.c (inspect_type): Update.
6396 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6397 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6398 Likewise.
6399 * c-typeprint.c (print_name_maybe_canonical): Update.
6400 * break-catch-throw.c (check_status_exception_catchpoint):
6401 Update.
6402
bf4cb9be
TV
64032020-05-08 Tom de Vries <tdevries@suse.de>
6404
6405 * infrun.c (follow_fork): Copy current_line and current_symtab to
6406 child thread.
6407
a1b68f28
SM
64082020-05-07 Simon Marchi <simon.marchi@efficios.com>
6409
6410 * async-event.c (struct async_signal_handler, struct
6411 async_event_handler): Reformat, remove typedef.
6412
98d48915
SM
64132020-05-07 Simon Marchi <simon.marchi@efficios.com>
6414
6415 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6416 access thistype->main_type->dyn_prop_list directly.
6417
7aa91313
SM
64182020-05-07 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6421 (remove_dyn_prop): Remove. Update all users to use
6422 type::remove_dyn_prop.
6423 * gdbtypes.c (remove_dyn_prop): Rename to...
6424 (type::remove_dyn_prop): ... this.
6425
5c54719c
SM
64262020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6427
6428 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6429 (add_dyn_prop): Remove. Update all users to use
6430 type::add_dyn_prop.
6431 * gdbtypes.c (add_dyn_prop): Rename to...
6432 (type::add_dyn_prop): ... this.
6433
24e99c6c
SM
64342020-05-07 Simon Marchi <simon.marchi@efficios.com>
6435
6436 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6437 (get_dyn_prop): Remove. Update all users to use
6438 type::dyn_prop.
6439 * gdbtypes.c (get_dyn_prop): Rename to...
6440 (type::dyn_prop): ... this.
6441
0d4bf016
SM
64422020-05-06 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6445
ac4a4f1c
SM
64462020-05-06 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6449 instruction, skip it if it's there.
6450
a3bbacc1
SM
64512020-05-05 Simon Marchi <simon.marchi@efficios.com>
6452
6453 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6454
c3236f84
SM
64552020-05-04 Simon Marchi <simon.marchi@efficios.com>
6456
6457 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6458 * gdbtypes.c (recursive_dump_type): Remove use of
6459 TYPE_INCOMPLETE.
6460
3b6acaee
TT
64612020-05-03 Tom Tromey <tom@tromey.com>
6462
6463 * breakpoint.c (catch_command, tcatch_command): Remove.
6464 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6465 add_show_prefix_cmd.
6466 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6467 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6468 Remove.
6469 (add_internal_problem_command): Use add_basic_prefix_cmd,
6470 add_show_prefix_cmd.
6471 * mips-tdep.c (set_mipsfpu_command): Remove.
6472 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6473 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6474 (_initialize_index_cache): Use add_basic_prefix_cmd.
6475 * memattr.c (dummy_cmd): Remove.
6476 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6477 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6478 (_initialize_tui_win): Use add_basic_prefix_cmd,
6479 add_show_prefix_cmd.
6480 * cli/cli-logging.c (set_logging_command): Remove.
6481 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6482 add_show_prefix_cmd.
6483 (show_logging_command): Remove.
6484 * target.c (target_command): Remove.
6485 (add_target): Use add_basic_prefix_cmd.
6486
a51119cd
HD
64872020-05-02 Hannes Domani <ssbssa@yahoo.de>
6488
6489 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6490
652fc23a 64912020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6492
652fc23a
PW
6493 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6494 info_command.
6495
117539e6
KR
64962020-04-30 Kamil Rytarowski <n54@gmx.com>
6497
6498 * nbsd-nat.c (nbsd_enable_proc_events)
6499 (nbsd_nat_target::post_startup_inferior): Add.
6500 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6501 (nbsd_nat_target::update_thread_list): Rewrite.
6502 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6503 "PTRACE_LWP_CREATE".
6504 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6505
102e38eb 65062020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6507
102e38eb
PW
6508 * stack.c (_initialize_stack): Remove duplicated creation
6509 of "frame" command and "f" alias.
6510
ee9d1e5f
HD
65112020-04-30 Hannes Domani <ssbssa@yahoo.de>
6512
6513 PR gdb/18706
6514 * gdbtypes.c (check_typedef): Calculate size of array of
6515 stubbed type.
6516
627c7fb8
HD
65172020-04-30 Hannes Domani <ssbssa@yahoo.de>
6518
6519 PR gdb/15559
6520 * i386-tdep.c (i386_push_dummy_call): Call
6521 i386_thiscall_push_dummy_call.
6522 (i386_thiscall_push_dummy_call): New function.
6523 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6524 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6525 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6526
ffc2844e
SM
65272020-04-29 Simon Marchi <simon.marchi@efficios.com>
6528
6529 * gdbarch.sh (do_read): Add shellcheck disable directive for
6530 warning SC2162.
6531
1207375d
SM
65322020-04-29 Simon Marchi <simon.marchi@efficios.com>
6533
6534 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6535 "referenced but not assigned" warning.
6536
9fdb2916
SM
65372020-04-29 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * gdbarch.sh: Remove code that sets fallbackdefault.
6540
759cea5e
SM
65412020-04-29 Simon Marchi <simon.marchi@efficios.com>
6542
6543 * gdbarch.sh: Use shell operators && and || instead of
6544 -a and -o.
6545
cb02ab24
SM
65462020-04-29 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * gdbarch.sh: Use $(...) instead of `...`.
6549
a6fc5ffc
SM
65502020-04-29 Simon Marchi <simon.marchi@efficios.com>
6551
6552 * gdbarch.sh: Use double quotes around variables.
6553
8d113d13
SM
65542020-04-29 Simon Marchi <simon.marchi@efficios.com>
6555
6556 * gdbarch.sh: Use %s with printf, instead of variables in the
6557 format string.
6558
ed6acedd
TT
65592020-04-29 Tom Tromey <tromey@adacore.com>
6560
6561 PR ada/25875:
6562 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6563 type fields here.
6564 (read_enumeration_type): Call
6565 update_enumeration_type_from_children later. Update comments.
6566 (process_enumeration_scope): Don't create type fields.
6567
b68b1b58
KR
65682020-04-29 Kamil Rytarowski <n54@gmx.com>
6569
6570 * nbsd-tdep.c: Include "xml-syscall.h".
6571 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6572
f94b2e03
KR
65732020-04-29 Kamil Rytarowski <n54@gmx.com>
6574
6575 * nbsd-nat.c: Include "sys/wait.h".
6576 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6577 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6578 (nbsd_nat_target::remove_exec_catchpoint)
6579 (nbsd_nat_target::set_syscall_catchpoint): Add.
6580 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6581 (nbsd_nat_target::insert_exec_catchpoint)
6582 (nbsd_nat_target::remove_exec_catchpoint)
6583 (nbsd_nat_target::set_syscall_catchpoint): Add.
6584 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6585 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6586 `nbsd_get_syscall_number'.
6587
fc49bc72
TT
65882020-04-29 Tom Tromey <tom@tromey.com>
6589
6590 * stack.c (print_block_frame_labels): Remove.
6591
d642b692
HD
65922020-04-29 Hannes Domani <ssbssa@yahoo.de>
6593
6594 PR gdb/17320
6595 * ada-valprint.c (val_print_packed_array_elements): Move array
6596 end bracket to new line.
6597 (ada_val_print_string): Remove extra spaces before first array
6598 element.
6599 * c-valprint.c (c_value_print_array): Likewise.
6600 * m2-valprint.c (m2_print_array_contents): Likewise.
6601 (m2_value_print_inner): Likewise.
6602 * p-valprint.c (pascal_value_print_inner): Likewise.
6603 * valprint.c (generic_val_print_array): Likewise.
6604 (value_print_array_elements): Move first array element and array
6605 end bracket to new line.
6606
ea90f227
TV
66072020-04-29 Tom de Vries <tdevries@suse.de>
6608
6609 PR symtab/25889
6610 * linespec.c (find_method): Fix ix calculation.
6611
4498ef4f
KR
66122020-04-28 Kamil Rytarowski <n54@gmx.com>
6613
6614 * syscalls/update-netbsd.sh: New file.
6615 * syscalls/netbsd.xml: Regenerate.
6616 * data-directory/Makefile.in: Register `netbsd.xml' in
6617 `SYSCALLS_FILES'.
6618
a55e30b5
SM
66192020-04-28 Simon Marchi <simon.marchi@efficios.com>
6620
6621 * syscalls/update-freebsd.sh: Add double quotes.
6622
2b2fbab8
TT
66232020-04-28 Tom Tromey <tom@tromey.com>
6624
6625 * NEWS: Update.
6626 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6627 (cmdpy_init): Allow class_tui.
6628
a65189c9
TV
66292020-04-28 Mark Williams <mark@myosotissp.com>
6630
6631 PR gdb/24480
6632 * dwarf2read.c: Add missing assingments to list_in_scope when
6633 start_symtab was already called.
6634
1b95cdb7
SM
66352020-04-28 Simon Marchi <simon.marchi@efficios.com>
6636
6637 PR gdb/25881
6638 * dwarf2/read.c (offset_map_type): Use
6639 gdb:hash_enum<sect_offset> as hash function.
6640
15cd93d0
TV
66412020-04-28 Tom de Vries <tdevries@suse.de>
6642
6643 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6644 with DW_AT_signature.
6645
1eb39914
SM
66462020-04-27 Simon Marchi <simon.marchi@efficios.com>
6647
6648 * configure.ac: Remove check for fs_base/gs_base in
6649 user_regs_struct.
6650 * configure: Re-generate.
6651 * config.in: Re-generate.
6652 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6653 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6654 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6655
991a3e2e
LM
66562020-04-27 Luis Machado <luis.machado@linaro.org>
6657
6658 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6659 problematic inline frame unwinding situation.
6660 * frame.c (frame_id_computed_p): New function.
6661 * frame.h (frame_id_computed_p): New prototype.
6662
361ba0e8
TT
66632020-04-26 Tom Tromey <tom@tromey.com>
6664
6665 * command.h (enum command_class) <class_pseudo>: Remove.
6666
bc3609fd
PW
66672020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6668
6669 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6670 and whitespace.
6671
b9771db7
KR
66722020-04-25 Kamil Rytarowski <n54@gmx.com>
6673
ec16513e
SM
6674 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6675 `PT_GET_PROCESS_STATE' block.
b9771db7 6676
7151c1af
TT
66772020-04-24 Tom Tromey <tom@tromey.com>
6678
6679 * symtab.h (symbol_get_demangled_name): Don't declare.
6680 * symtab.c (symbol_get_demangled_name): Remove.
6681 (general_symbol_info::natural_name)
6682 (general_symbol_info::demangled_name): Update.
6683
906bb4c5
TT
66842020-04-24 Tom Tromey <tom@tromey.com>
6685
6686 PR rust/25025:
6687 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6688
bcfe6157
TT
66892020-04-24 Tom Tromey <tom@tromey.com>
6690
6691 PR symtab/12707:
6692 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6693 exists.
6694 (new_symbol): Likewise.
6695 * compile/compile-object-load.c (get_out_value_type): Use
6696 symbol_matches_search_name.
6697
f049a313
TT
66982020-04-24 Tom Tromey <tom@tromey.com>
6699
6700 * dwarf2/read.c (add_partial_symbol): Do not call
6701 compute_and_set_names.
6702
76e288d1
TT
67032020-04-24 Tom Tromey <tom@tromey.com>
6704
6705 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6706 overload.
6707
2467f4f6
TT
67082020-04-24 Tom Tromey <tom@tromey.com>
6709
6710 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6711 (add_psymbol_to_list): New overload. Make old overload call new
6712 one.
6713 * psympriv.h (add_psymbol_to_list): New overload.
6714
e61108c9
TT
67152020-04-24 Tom Tromey <tom@tromey.com>
6716
6717 * dwarf2/read.c (partial_die_info::read) <case
6718 DW_AT_linkage_name>: Use value_as_string.
6719 (dwarf2_string_attr): Use value_as_string.
6720 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6721 method.
6722 * dwarf2/attribute.c (attribute::value_as_string): New method.
6723
8c87a452
TT
67242020-04-24 Tom Tromey <tom@tromey.com>
6725
6726 * symtab.c (general_symbol_info::natural_name)
6727 (general_symbol_info::demangled_name): Check for language_rust.
6728
787de330
TT
67292020-04-24 Tom Tromey <tom@tromey.com>
6730
6731 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6732 (dwarf2_physname): ... from here.
6733 (partial_die_info::read): Add Rust "{" hack.
6734
ff985671
TT
67352020-04-24 Tom Tromey <tom@tromey.com>
6736
6737 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6738 method.
6739 (symbol_set_demangled_name): Don't declare.
6740 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6741 symbol_set_demangled_name.
6742 (general_symbol_info::set_language)
6743 (general_symbol_info::compute_and_set_names): Update.
6744 * minsyms.c (minimal_symbol_reader::install): Update.
6745 * dwarf2/read.c (new_symbol): Update.
6746
1acda803
TT
67472020-04-24 Tom Tromey <tromey@adacore.com>
6748
6749 PR python/23662:
6750 * python/py-type.c (convert_field): Handle
6751 FIELD_LOC_KIND_DWARF_BLOCK.
6752 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6753 (typy_get_dynamic): Nw function.
6754 (type_object_getset): Add "dynamic".
6755 * NEWS: Add entry.
6756
d656f129
TT
67572020-04-24 Tom Tromey <tromey@adacore.com>
6758
6759 * ada-typeprint.c (print_choices, print_variant_part)
6760 (print_record_field_types_dynamic): New functions.
6761 (print_record_field_types): Use print_record_field_types_dynamic.
6762
7d79de9a
TT
67632020-04-24 Tom Tromey <tromey@adacore.com>
6764
6765 * dwarf2/read.c (handle_data_member_location): New overload.
6766 (dwarf2_add_field): Use it.
6767 (decode_locdesc): Add "computed" parameter. Update comment.
6768 * gdbtypes.c (is_dynamic_type_internal): Also look for
6769 FIELD_LOC_KIND_DWARF_BLOCK.
6770 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6771 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6772 virtual base classes.
6773 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6774 FIELD_LOC_KIND_DWARF_BLOCK.
6775
f8e89861
TT
67762020-04-24 Tom Tromey <tromey@adacore.com>
6777
6778 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6779 * gdbtypes.c (is_dynamic_type_internal): Check
6780 TYPE_HAS_DYNAMIC_LENGTH.
6781 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6782 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6783 New macros.
6784 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6785 constant.
6786
9c6a1327
TT
67872020-04-24 Tom Tromey <tromey@adacore.com>
6788
6789 * dwarf2/read.c (struct variant_field): Rewrite.
6790 (struct variant_part_builder): New.
6791 (struct nextfield): Remove "variant" field. Add "offset".
6792 (struct field_info): Add "current_variant_part" and
6793 "variant_parts".
6794 (alloc_discriminant_info): Remove.
6795 (alloc_rust_variant): New function.
6796 (quirk_rust_enum): Update.
6797 (dwarf2_add_field): Set "offset" member. Don't handle
6798 DW_TAG_variant_part.
6799 (offset_map_type): New typedef.
6800 (convert_variant_range, create_one_variant)
6801 (create_one_variant_part, create_variant_parts)
6802 (add_variant_property): New functions.
6803 (dwarf2_attach_fields_to_type): Call add_variant_property.
6804 (read_structure_type): Don't handle DW_TAG_variant_part.
6805 (handle_variant_part, handle_variant): New functions.
6806 (handle_struct_member_die): Use them.
6807 (process_structure_scope): Don't handle variant parts.
6808 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6809 (struct discriminant_info): Remove.
6810 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6811 (struct main_type) <flag_discriminated_union>: Remove.
6812 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6813 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6814 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6815 Update.
6816 * valops.c (value_union_variant): Remove.
6817 * value.h (value_union_variant): Don't declare.
6818
b249d2c2
TT
68192020-04-24 Tom Tromey <tromey@adacore.com>
6820
6821 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6822 (ada_value_primitive_packed_val): Update.
6823 * ada-valprint.c (ada_value_print_1): Update.
6824 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6825 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6826 just an address. Use evaluate_for_locexpr_baton.
6827 (dwarf2_evaluate_property): Update.
6828 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6829 array_view.
6830 * findvar.c (default_read_var_value): Update.
6831 * gdbtypes.c (compute_variant_fields_inner)
6832 (resolve_dynamic_type_internal): Update.
6833 (resolve_dynamic_type): Change type of valaddr parameter.
6834 * gdbtypes.h (resolve_dynamic_type): Update.
6835 * valarith.c (value_subscripted_rvalue): Update.
6836 * value.c (value_from_contents_and_address): Update.
6837
61122aa9
TT
68382020-04-24 Tom Tromey <tromey@adacore.com>
6839
6840 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6841 "push_initial_value" parameter.
6842 (dwarf2_evaluate_property): Likewise.
6843 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6844
ef83a141
TT
68452020-04-24 Tom Tromey <tromey@adacore.com>
6846
6847 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6848 (variant::matches, compute_variant_fields_recurse)
6849 (compute_variant_fields_inner, compute_variant_fields): New
6850 functions.
6851 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6852 Use resolved_type after type is made.
6853 (operator==): Add new cases.
6854 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6855 (struct discriminant_range, struct variant, struct variant_part):
6856 New.
6857 (union dynamic_prop_data) <variant_parts, original_type>: New
6858 members.
6859 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6860 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6861 constants.
6862 * value.c (unpack_bits_as_long): Now public.
6863 * value.h (unpack_bits_as_long): Declare.
6864
675127ec
TT
68652020-04-24 Tom Tromey <tromey@adacore.com>
6866
6867 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6868 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6869
9852ceef
HD
68702020-04-24 Hannes Domani <ssbssa@yahoo.de>
6871
6872 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6873
7632c6ce
KR
68742020-04-24 Kamil Rytarowski <n54@gmx.com>
6875
6876 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6877 (remove_fork_catchpoint, post_startup_inferior)
6878 (post_attach): Move...
6879 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6880 (remove_fork_catchpoint, post_startup_inferior)
6881 (post_attach): ...here.
6882 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6883 (remove_fork_catchpoint, post_startup_inferior)
6884 (post_attach): Move...
6885 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6886 (remove_fork_catchpoint, post_startup_inferior)
6887 (post_attach): ...here.
6888
7be2bb4f
TT
68892020-04-24 Tom Tromey <tromey@adacore.com>
6890
6891 * nat/windows-nat.h (struct windows_thread_info)
6892 <pc_adjusted>: New member.
6893 * windows-nat.c (windows_fetch_one_register): Check
6894 pc_adjusted.
6895 (windows_nat_target::get_windows_debug_event)
6896 (windows_nat_target::wait): Set pc_adjusted.
6897
f80cb3b4
TV
68982020-04-24 Tom de Vries <tdevries@suse.de>
6899
6900 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6901 Run gdb-add-index inside temp dir.
6902
29514b87
TT
69032020-04-23 Tom Tromey <tromey@adacore.com>
6904
6905 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6906 in loop.
6907
5939967b
LM
69082020-04-23 Luis Machado <luis.machado@linaro.org>
6909
6910 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6911 get_frame_register instead of gdbarch_unwind_pc.
6912
70bc38f5
TV
69132020-04-23 Tom de Vries <tdevries@suse.de>
6914
6915 * symtab.c (lookup_global_symbol): Prefer def over decl.
6916
de82891c
TV
69172020-04-23 Tom de Vries <tdevries@suse.de>
6918
6919 PR symtab/25807
6920 * block.c (best_symbol, better_symbol): Promote to external.
6921 * block.h (best_symbol, better_symbol): Declare.
6922 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6923 decl.
6924
ecc6c606
TT
69252020-04-23 Tom Tromey <tromey@adacore.com>
6926
6927 PR ada/25837:
6928 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6929 "const char *", not a "const std::string &".
6930 <name_and_matcher::operator==>: Update.
6931 * unittests/lookup_name_info-selftests.c: Change type of
6932 "result".
6933
740480b8
TT
69342020-04-23 Tom Tromey <tom@tromey.com>
6935
6936 * inferior.h (iterate_over_inferiors): Don't declare.
6937 * inferior.c (iterate_over_inferiors): Remove.
6938 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6939 Remove.
6940 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6941 use iterate_over_inferiors.
6942 (darwin_resume_inferior_it)
6943 (struct resume_inferior_threads_param)
6944 (darwin_resume_inferior_threads_it): Remove.
6945 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6946
ae3ab1f0
TV
69472020-04-23 Tom de Vries <tdevries@suse.de>
6948
6949 * blockframe.c (find_pc_partial_function): Use
6950 find_pc_sect_compunit_symtab rather than
6951 objfile->sf->qf->find_pc_sect_compunit_symtab.
6952
317d2668
TV
69532020-04-22 Tom de Vries <tdevries@suse.de>
6954
6955 PR symtab/25764
6956 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6957 in psymtabs.
6958
eea9e357
TV
69592020-04-22 Tom de Vries <tdevries@suse.de>
6960
6961 PR symtab/25801
6962 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6963 symtabs.
6964
3d5afab3
TV
69652020-04-22 Tom de Vries <tdevries@suse.de>
6966
6967 PR symtab/25700
6968 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6969 CU if already created.
6970
d43b7a2d
TBA
69712020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6972
6973 * infrun.c (displaced_step_fixup): Switch to the event_thread
6974 before calling displaced_step_restore, not after.
6975
d89edf9b
MM
69762020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6977
6978 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6979 its inferior is not recorded by us.
6980 (record_btrace_target_open): Replace call to
6981 all_non_exited_threads () with call to current_inferior
6982 ()->non_exited_threads ().
6983 (record_btrace_target::stop_recording): Likewise.
6984 (record_btrace_target::close): Likewise.
6985 (record_btrace_target::wait): Likewise.
6986 (record_btrace_target::record_stop_replaying): Likewise.
6987
5897fd49
MM
69882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6989
6990 * btrace.c (btrace_enable): Throw an error on double enables and
6991 when enabling recording fails.
6992 (btrace_disable): Throw an error if the thread is not recorded.
6993
1a476b6d
MM
69942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6995
6996 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6997 request if we do not have a thread_info.
6998
4778a5f8
TV
69992020-04-21 Tom de Vries <tdevries@suse.de>
7000
7001 PR gdb/25471
7002 * thread.c
7003 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7004 exception in get_frame_id.
7005
0fa7617d
TT
70062020-04-20 Tom Tromey <tromey@adacore.com>
7007
7008 * python/python.c (struct gdbpy_event): Mark move constructor as
7009 noexcept.
7010 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7011 constructor as noexcept.
7012 * completer.h (struct completion_result): Mark move constructor as
7013 noexcept.
7014 * completer.c (completion_result::completion_result): Use
7015 initialization style. Don't call reset_match_list.
7016
ad23bda0
MS
70172020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7018
7019 * MAINTAINERS (Write After Approval): Add myself.
7020
45e1f031
TT
70212020-04-18 Tom Tromey <tom@tromey.com>
7022
7023 * windows-tdep.c (init_w32_command_list)
7024 (w32_prefix_command_valid): Restore.
7025 (_initialize_windows_tdep): Call init_w32_command_list.
7026
08feed99
TT
70272020-04-18 Tom Tromey <tom@tromey.com>
7028
7029 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7030 * value.c (value_fn_field): Update.
7031 * valops.c (find_function_in_inferior)
7032 (value_allocate_space_in_inferior): Update.
7033 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7034 Update.
7035 * tui/tui-source.c (tui_source_window::set_contents): Update.
7036 * symtab.c (lookup_global_or_static_symbol)
7037 (find_function_start_sal_1, skip_prologue_sal)
7038 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7039 * symmisc.c (dump_msymbols, dump_symtab_1)
7040 (maintenance_print_one_line_table): Update.
7041 * symfile.c (init_entry_point_info, section_is_mapped)
7042 (list_overlays_command, simple_read_overlay_table)
7043 (simple_overlay_update_1): Update.
7044 * stap-probe.c (handle_stap_probe): Update.
7045 * stabsread.c (dbx_init_float_type, define_symbol)
7046 (read_one_struct_field, read_enum_type, read_range_type): Update.
7047 * source.c (info_line_command): Update.
7048 * python/python.c (gdbpy_source_objfile_script)
7049 (gdbpy_execute_objfile_script): Update.
7050 * python/py-type.c (save_objfile_types): Update.
7051 * python/py-objfile.c (py_free_objfile): Update.
7052 * python/py-inferior.c (python_new_objfile): Update.
7053 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7054 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7055 (maintenance_check_psymtabs): Update.
7056 * printcmd.c (info_address_command): Update.
7057 * objfiles.h (struct objfile) <arch>: New method, from
7058 get_objfile_arch.
7059 (get_objfile_arch): Don't declare.
7060 * objfiles.c (get_objfile_arch): Remove.
7061 (filter_overlapping_sections): Update.
7062 * minsyms.c (msymbol_is_function): Update.
7063 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7064 (output_nondebug_symbol): Update.
7065 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7066 (mdebug_expand_psymtab): Update.
7067 * machoread.c (macho_add_oso_symfile): Update.
7068 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7069 Update.
7070 * linux-fork.c (checkpoint_command): Update.
7071 * linespec.c (convert_linespec_to_sals): Update.
7072 * jit.c (finalize_symtab): Update.
7073 * infrun.c (insert_exception_resume_from_probe): Update.
7074 * ia64-tdep.c (ia64_find_unwind_table): Update.
7075 * hppa-tdep.c (internalize_unwinds): Update.
7076 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7077 Update.
7078 * gcore.c (call_target_sbrk): Update.
7079 * elfread.c (record_minimal_symbol, elf_symtab_read)
7080 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7081 (elf_gnu_ifunc_resolve_by_got): Update.
7082 * dwarf2/read.c (create_addrmap_from_index)
7083 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7084 (read_debug_names_from_section)
7085 (process_psymtab_comp_unit_reader, add_partial_symbol)
7086 (add_partial_subprogram, process_full_comp_unit)
7087 (read_file_scope, read_func_scope, read_lexical_block_scope)
7088 (read_call_site_scope, dwarf2_ranges_read)
7089 (dwarf2_record_block_ranges, dwarf2_add_field)
7090 (mark_common_block_symbol_computed, read_tag_pointer_type)
7091 (read_tag_string_type, dwarf2_init_float_type)
7092 (dwarf2_init_complex_target_type, read_base_type)
7093 (partial_die_info::read, partial_die_info::read)
7094 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7095 (dwarf2_fetch_die_loc_sect_off): Update.
7096 * dwarf2/loc.c (dwarf2_find_location_expression)
7097 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7098 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7099 (dwarf2_loc_desc_get_symbol_read_needs)
7100 (locexpr_describe_location_piece, locexpr_describe_location_1)
7101 (loclist_describe_location): Update.
7102 * dwarf2/index-write.c (write_debug_names): Update.
7103 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7104 * dtrace-probe.c (dtrace_process_dof): Update.
7105 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7106 (process_one_symbol): Update.
7107 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7108 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7109 (coff_read_enum_type): Update.
7110 * cli/cli-cmds.c (edit_command, list_command): Update.
7111 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7112 * breakpoint.c (create_overlay_event_breakpoint)
7113 (create_longjmp_master_breakpoint)
7114 (create_std_terminate_master_breakpoint)
7115 (create_exception_master_breakpoint, get_sal_arch): Update.
7116 * block.c (block_gdbarch): Update.
7117 * annotate.c (annotate_source_line): Update.
7118
0743fc83
TT
71192020-04-17 Tom Tromey <tromey@adacore.com>
7120
7121 * auto-load.c (show_auto_load_cmd): Remove.
7122 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7123 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7124 (maintenance_print_arc_command): Remove.
7125 * tui/tui-win.c (tui_command): Remove.
7126 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7127 * tui/tui-layout.c (tui_layout_command): Remove.
7128 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7129 * python/python.c (user_set_python, user_show_python): Remove.
7130 (_initialize_python): Use add_basic_prefix_cmd,
7131 add_show_prefix_cmd.
7132 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7133 (install_gdb_commands): Use add_basic_prefix_cmd,
7134 add_show_prefix_cmd.
7135 (info_guile_command): Remove.
7136 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7137 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7138 add_show_prefix_cmd.
7139 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7140 Remove do_set and do_show parameters.
7141 * cli/cli-style.c (set_style, show_style): Remove.
7142 (_initialize_cli_style): Use add_basic_prefix_cmd,
7143 add_show_prefix_cmd.
7144 (cli_style_option::add_setshow_commands): Remove do_set and
7145 do_show parameters.
7146 (cli_style_option::add_setshow_commands): Use
7147 add_basic_prefix_cmd, add_show_prefix_cmd.
7148 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7149 (set_style_name): Remove.
7150 * cli/cli-dump.c (dump_command, append_command): Remove.
7151 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7152 (tekhex_dump_command, binary_dump_command)
7153 (binary_append_command): Remove.
7154 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7155 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7156 (init_w32_command_list): Remove; move into ...
7157 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7158 * valprint.c (set_print, show_print, set_print_raw)
7159 (show_print_raw): Remove.
7160 (_initialize_valprint): Use add_basic_prefix_cmd,
7161 add_show_prefix_cmd.
7162 * typeprint.c (set_print_type, show_print_type): Remove.
7163 (_initialize_typeprint): Use add_basic_prefix_cmd,
7164 add_show_prefix_cmd.
7165 * record.c (set_record_command, show_record_command): Remove.
7166 (_initialize_record): Use add_basic_prefix_cmd,
7167 add_show_prefix_cmd.
7168 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7169 add_show_prefix_cmd.
7170 (info_command, show_command, set_debug, show_debug): Remove.
7171 * top.h (set_history, show_history): Don't declare.
7172 * top.c (set_history, show_history): Remove.
7173 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7174 (unset_tdesc_cmd): Remove.
7175 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7176 add_show_prefix_cmd.
7177 * symtab.c (info_module_command): Remove.
7178 (_initialize_symtab): Use add_basic_prefix_cmd.
7179 * symfile.c (overlay_command): Remove.
7180 (_initialize_symfile): Use add_basic_prefix_cmd.
7181 * sparc64-tdep.c (info_adi_command): Remove.
7182 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7183 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7184 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7185 add_show_prefix_cmd.
7186 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7187 (_initialize_serial): Use add_basic_prefix_cmd,
7188 add_show_prefix_cmd.
7189 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7190 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7191 add_show_prefix_cmd.
7192 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7193 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7194 add_show_prefix_cmd.
7195 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7196 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7197 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7198 add_show_prefix_cmd.
7199 * remote.c (remote_command, set_remote_cmd): Remove.
7200 (_initialize_remote): Use add_basic_prefix_cmd.
7201 * record-full.c (set_record_full_command)
7202 (show_record_full_command): Remove.
7203 (_initialize_record_full): Use add_basic_prefix_cmd,
7204 add_show_prefix_cmd.
7205 * record-btrace.c (cmd_set_record_btrace)
7206 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7207 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7208 (cmd_show_record_btrace_pt): Remove.
7209 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7210 add_show_prefix_cmd.
7211 * ravenscar-thread.c (set_ravenscar_command)
7212 (show_ravenscar_command): Remove.
7213 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7214 add_show_prefix_cmd.
7215 * mips-tdep.c (show_mips_command, set_mips_command)
7216 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7217 add_show_prefix_cmd.
7218 * maint.c (maintenance_command, maintenance_info_command)
7219 (maintenance_check_command, maintenance_print_command)
7220 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7221 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7222 add_show_prefix_cmd.
7223 (show_per_command_cmd): Remove.
7224 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7225 Remove.
7226 (maintenance_show_test_settings_cmd): Remove.
7227 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7228 add_show_prefix_cmd.
7229 * maint-test-options.c (maintenance_test_options_command):
7230 Remove.
7231 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7232 * macrocmd.c (macro_command): Remove
7233 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7234 * language.c (set_check, show_check): Remove.
7235 (_initialize_language): Use add_basic_prefix_cmd,
7236 add_show_prefix_cmd.
7237 * infcmd.c (unset_command): Remove.
7238 (_initialize_infcmd): Use add_basic_prefix_cmd.
7239 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7240 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7241 add_show_prefix_cmd.
7242 * go32-nat.c (go32_info_dos_command): Remove.
7243 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7244 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7245 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7246 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7247 (_initialize_frame): Use add_basic_prefix_cmd,
7248 add_show_prefix_cmd.
7249 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7250 (_initialize_dcache): Use add_basic_prefix_cmd,
7251 add_show_prefix_cmd.
7252 * cp-support.c (maint_cplus_command): Remove.
7253 (_initialize_cp_support): Use add_basic_prefix_cmd.
7254 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7255 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7256 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7257 add_basic_prefix_cmd, add_show_prefix_cmd.
7258 * breakpoint.c (save_command): Remove.
7259 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7260 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7261 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7262 add_show_prefix_cmd.
7263 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7264 (set_ada_command, show_ada_command): Remove.
7265 (_initialize_ada_language): Use add_basic_prefix_cmd,
7266 add_show_prefix_cmd.
7267 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7268
3557f442
KR
72692020-04-16 Kamil Rytarowski <n54@gmx.com>
7270
7271 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7272 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7273
16197208
SM
72742020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7275
7276 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7277 warning messages.
7278
00ac85d3
SM
72792020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7280
7281 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7282 import table is not at beginning of .idata section.
7283
381ce63f
PA
72842020-04-16 Pedro Alves <palves@redhat.com>
7285
7286 * inferior.c (delete_inferior): Use delete operator directly
7287 instead of delete_program_space.
7288 * progspace.c (add_program_space): New, factored out from
7289 program_space::program_space.
7290 (remove_program_space): New, factored out from
7291 delete_program_space.
7292 (program_space::program_space): Remove intro comment. Rewrite.
7293 (program_space::~program_space): Remove intro comment. Call
7294 remove_program_space.
7295 (delete_program_space): Delete.
7296 * progspace.h (program_space::program_space): Make explicit. Move
7297 intro comment here, adjusted.
7298 (program_space::~program_space): Move intro comment here,
7299 adjusted.
7300 (delete_program_space): Remove.
7301
a010605f
TT
73022020-04-16 Tom Tromey <tromey@adacore.com>
7303
7304 * windows-nat.c (windows_nat::handle_access_violation): New
7305 function.
7306 * nat/windows-nat.h (handle_access_violation): Declare.
7307 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7308 windows-nat.c. Call handle_access_violation.
7309
efba5c23
TV
73102020-04-16 Tom de Vries <tdevries@suse.de>
7311
7312 PR symtab/25791
7313 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7314 CUs without psymtab.
7315
97ed802d
KB
73162020-04-16 Kevin Buettner <kevinb@redhat.com>
7317
7318 * python/python.c (do_start_initialization): Don't call
7319 PyEval_InitThreads for Python 3.9 and beyond.
7320
c7d64809
KR
73212020-04-15 Kamil Rytarowski <n54@gmx.com>
7322
7323 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7324 thread functions.
7325 (obsd_nat_target::wait): Likewise.
7326
ce127a96
TT
73272020-04-15 Tom Tromey <tromey@adacore.com>
7328
7329 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7330 (DEBUG_EXCEPT): Use debug_printf.
7331
99f1bc6a
AB
73322020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7333
7334 * completer.c (class completion_tracker::completion_hash_entry)
7335 <hash_name>: New member function.
7336 (completion_tracker::discard_completions): New callback to hash a
7337 completion_hash_entry, pass this to htab_create_alloc.
7338
a0e9b532
JT
73392016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7340
7341 * windows-nat.c (windows_make_so): Warn rather than stopping with
7342 an error if realpath() fails.
7343
06ca5dd4
KR
73442020-04-14 Kamil Rytarowski <n54@gmx.com>
7345
7346 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7347 (nbsd_nat_target::info_proc): Add do_status.
7348
194d088f
TV
73492020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7350 Tom de Vries <tdevries@suse.de>
7351
7352 PR symtab/25718
7353 * psympriv.h (struct partial_symtab::read_symtab)
7354 (struct partial_symtab::expand_psymtab)
7355 (struct partial_symtab::read_dependencies): Update comments.
7356 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7357 read_symtab for includer.
7358 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7359 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7360 (struct dwarf2_include_psymtab::m_readin): Remove.
7361 (struct dwarf2_include_psymtab::includer): New member function.
7362 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7363
c1a66c06
TV
73642020-04-14 Tom de Vries <tdevries@suse.de>
7365
7366 PR symtab/25720
7367 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7368 with NULL symbol_matcher and lookup_name.
7369 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7370 and lookup_name.
7371 * dwarf2/read.c (dw2_expand_symtabs_matching)
7372 (dw2_debug_names_expand_symtabs_matching): Same.
7373 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7374 Make lookup_name a pointer. Update comment.
7375 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7376 lookup_name being a pointer.
7377 * symfile.c (expand_symtabs_matching): Same.
7378 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7379 * linespec.c (iterate_over_all_matching_symtabs): Same.
7380
400b5eca
TT
73812020-04-13 Tom Tromey <tom@tromey.com>
7382
7383 * run-on-main-thread.c: Update include.
7384 * unittests/main-thread-selftests.c: Update include.
7385 * tui/tui-win.c: Update include.
7386 * tui/tui-io.c: Update include.
7387 * tui/tui-interp.c: Update include.
7388 * tui/tui-hooks.c: Update include.
7389 * top.h: Update include.
7390 * top.c: Update include.
7391 * ser-base.c: Update include.
7392 * remote.c: Update include.
7393 * remote-notif.c: Update include.
7394 * remote-fileio.c: Update include.
7395 * record-full.c: Update include.
7396 * record-btrace.c: Update include.
7397 * python/python.c: Update include.
7398 * posix-hdep.c: Update include.
7399 * mingw-hdep.c: Update include.
7400 * mi/mi-main.c: Update include.
7401 * mi/mi-interp.c: Update include.
7402 * main.c: Update include.
7403 * linux-nat.c: Update include.
7404 * interps.c: Update include.
7405 * infrun.c: Update include.
7406 * inf-loop.c: Update include.
7407 * event-top.c: Update include.
7408 * event-loop.c: Move to ../gdbsupport/.
7409 * event-loop.h: Move to ../gdbsupport/.
7410 * async-event.h: Update include.
7411 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7412
93b54c8e
TT
74132020-04-13 Tom Tromey <tom@tromey.com>
7414
7415 * tui/tui-win.c: Include async-event.h.
7416 * remote.c: Include async-event.h.
7417 * remote-notif.c: Include async-event.h.
7418 * record-full.c: Include async-event.h.
7419 * record-btrace.c: Include async-event.h.
7420 * infrun.c: Include async-event.h.
7421 * event-top.c: Include async-event.h.
7422 * event-loop.h: Move some declarations to async-event.h.
7423 * event-loop.c: Don't include ser-event.h or top.h. Move some
7424 code to async-event.c.
7425 * async-event.h: New file.
7426 * async-event.c: New file.
7427 * Makefile.in (COMMON_SFILES): Add async-event.c.
7428 (HFILES_NO_SRCDIR): Add async-event.h.
7429
c1cd3163
TT
74302020-04-13 Tom Tromey <tom@tromey.com>
7431
7432 * utils.c (flush_streams): New function.
7433 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7434
29f2bf4f
TT
74352020-04-13 Tom Tromey <tom@tromey.com>
7436
7437 * event-loop.c (handle_file_event): Use warning, not
7438 printf_unfiltered.
7439
98029d02
TT
74402020-04-13 Tom Tromey <tom@tromey.com>
7441
7442 * event-loop.c: Include <chrono>.
7443
06cc9596
TT
74442020-04-13 Tom Tromey <tom@tromey.com>
7445
7446 * gdb_select.h: Move to ../gdbsupport/.
7447 * event-loop.c: Update include path.
7448 * top.c: Update include path.
7449 * ser-base.c: Update include path.
7450 * ui-file.c: Update include path.
7451 * ser-tcp.c: Update include path.
7452 * guile/scm-ports.c: Update include path.
7453 * posix-hdep.c: Update include path.
7454 * ser-unix.c: Update include path.
7455 * gdb_usleep.c: Update include path.
7456 * mingw-hdep.c: Update include path.
7457 * inflow.c: Update include path.
7458 * infrun.c: Update include path.
7459 * event-top.c: Update include path.
7460
8ae8e197
TT
74612020-04-13 Tom Tromey <tom@tromey.com>
7462
7463 * configure: Rebuild.
7464 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7465
58cf28e8
TT
74662020-04-13 Tom Tromey <tom@tromey.com>
7467
7468 * event-loop.h (start_event_loop): Don't declare.
7469 * event-loop.c (start_event_loop): Move...
7470 * main.c (start_event_loop): ...here. Now static.
7471
b7f999ae
SDJ
74722020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7473
7474 * MAINTAINERS: Update my email address.
7475
1085dfd4
KR
74762020-04-12 Kamil Rytarowski <n54@gmx.com>
7477
7478 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7479 IP_ALL.
7480
49d1d1f5
KR
74812020-04-12 Kamil Rytarowski <n54@gmx.com>
7482
7483 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7484 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7485
b4848d2a
KR
74862020-04-12 Kamil Rytarowski <n54@gmx.com>
7487
7488 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7489 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7490
51c133d5
KR
74912020-04-12 Kamil Rytarowski <n54@gmx.com>
7492
7493 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7494
54b8cbd0
KR
74952020-04-11 Kamil Rytarowski <n54@gmx.com>
7496
7497 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7498 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7499 (nbsd_nat_target::info_proc): New functions.
7500 * nbsd-nat.c (kinfo_get_vmmap): New function.
7501 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7502 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7503 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7504 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7505 functions.
7506 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7507 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7508 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7509 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7510 (KINFO_VME_FLAG_GROWS_DOWN): New.
7511
cf83625d
AS
75122020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7513
7514 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7515 bit shift.
7516
0c4311ab
TT
75172020-04-10 Tom Tromey <tromey@adacore.com>
7518
7519 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7520
3e65b3e9
TT
75212020-04-10 Tom Tromey <tromey@adacore.com>
7522
7523 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7524 separate debug files.
7525
13302e95
HD
75262020-04-10 Hannes Domani <ssbssa@yahoo.de>
7527
7528 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7529 Move to...
7530 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7531 ... here.
7532 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7533 Check for STATUS_WX86_BREAKPOINT.
7534 (windows_nat_target::wait): Same.
7535
bdfc1e8a
TV
75362020-04-10 Tom de Vries <tdevries@suse.de>
7537
7538 PR cli/25808
7539 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7540
f4460aec
SM
75412020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7542
7543 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7544 (Write After Approval): Remove Tom de Vries.
7545
a25198bb
BE
75462020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7547
7548 revert partially:
7549 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7550
aac66a4c
SM
7551 * buildsym.c (record_line): Fix undefined behavior and preserve
7552 lines at eof.
a25198bb 7553
206c98a6
KR
75542020-04-09 Kamil Rytarowski <n54@gmx.com>
7555
7556 * auxv.h (svr4_auxv_parse): New.
7557 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7558 and generic_auxv_parse.
7559 (svr4_auxv_parse): Add.
7560 * obsd-tdep.c: Include "auxv.h".
7561 (obsd_auxv_parse): Remove.
7562 (obsd_init_abi): Remove comment.
7563 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7564 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7565 * nbsd-tdep.c: Include "auxv.h".
7566 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7567
71fbdbaf
TT
75682020-04-08 Tom Tromey <tromey@adacore.com>
7569
7570 * nat/windows-nat.h (last_wait_event): Don't declare.
7571 (wait_for_debug_event): Update comment.
7572 * nat/windows-nat.c (last_wait_event): Now static.
7573
2c1d95e8
TT
75742020-04-08 Tom Tromey <tromey@adacore.com>
7575
7576 * windows-nat.c (wait_for_debug_event): Move to
7577 nat/windows-nat.c.
7578 * nat/windows-nat.h (wait_for_debug_event): Declare.
7579 * nat/windows-nat.c (wait_for_debug_event): Move from
7580 windows-nat.c. No longer static.
7581
d2977bc4
TT
75822020-04-08 Tom Tromey <tromey@adacore.com>
7583
7584 * windows-nat.c (get_windows_debug_event): Use
7585 fetch_pending_stop.
7586 * nat/windows-nat.h (fetch_pending_stop): Declare.
7587 * nat/windows-nat.c (fetch_pending_stop): New function.
7588
e758e19c
TT
75892020-04-08 Tom Tromey <tromey@adacore.com>
7590
7591 * windows-nat.c (windows_continue): Use matching_pending_stop and
7592 continue_last_debug_event.
7593 * nat/windows-nat.h (matching_pending_stop)
7594 (continue_last_debug_event): Declare.
7595 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7596 (matching_pending_stop, continue_last_debug_event): New
7597 functions.
7598
8d30e395
TT
75992020-04-08 Tom Tromey <tromey@adacore.com>
7600
7601 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7602 (handle_exception_result): Move to nat/windows-nat.h.
7603 (DEBUG_EXCEPTION_SIMPLE): Remove.
7604 (windows_nat::handle_ms_vc_exception): New function.
7605 (handle_exception): Move to nat/windows-nat.c.
7606 (get_windows_debug_event): Update.
7607 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7608 nat/windows-nat.c.
7609 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7610 (handle_exception_result): Move from windows-nat.c.
7611 (handle_exception): Declare.
7612 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7613 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7614 windows-nat.c.
7615
29de418d
TT
76162020-04-08 Tom Tromey <tromey@adacore.com>
7617
7618 * windows-nat.c (exception_count, event_count): Remove.
7619 (handle_exception, get_windows_debug_event)
7620 (do_initial_windows_stuff): Update.
7621
a816ba18
TT
76222020-04-08 Tom Tromey <tromey@adacore.com>
7623
7624 * windows-nat.c (windows_nat::handle_load_dll)
7625 (windows_nat::handle_unload_dll): Rename. No longer static.
7626 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7627 Declare.
7628
a00caa12
TT
76292020-04-08 Tom Tromey <tromey@adacore.com>
7630
7631 * complaints.h (stop_whining): Declare at top-level.
7632 (complaint): Don't declare stop_whining.
7633
d41b524f
TT
76342020-04-08 Tom Tromey <tromey@adacore.com>
7635
7636 * windows-nat.c (windows_nat::handle_output_debug_string):
7637 Rename. No longer static.
7638 * nat/windows-nat.h (handle_output_debug_string): Declare.
7639
3c76026d
TT
76402020-04-08 Tom Tromey <tromey@adacore.com>
7641
7642 * windows-nat.c (current_process_handle, current_process_id)
7643 (main_thread_id, last_sig, current_event, last_wait_event)
7644 (current_windows_thread, desired_stop_thread_id, pending_stops)
7645 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7646 (display_selectors, fake_create_process)
7647 (get_windows_debug_event): Update.
7648 * nat/windows-nat.h (current_process_handle, current_process_id)
7649 (main_thread_id, last_sig, current_event, last_wait_event)
7650 (current_windows_thread, desired_stop_thread_id, pending_stops)
7651 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7652 * nat/windows-nat.c (current_process_handle, current_process_id)
7653 (main_thread_id, last_sig, current_event, last_wait_event)
7654 (current_windows_thread, desired_stop_thread_id, pending_stops)
7655 (siginfo_er): New globals. Move from windows-nat.c.
7656
9d8679cc
TT
76572020-04-08 Tom Tromey <tromey@adacore.com>
7658
7659 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7660 (handle_load_dll): Update.
7661 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7662
28688adf
TT
76632020-04-08 Tom Tromey <tromey@adacore.com>
7664
7665 * windows-nat.c (enum thread_disposition_type): Move to
7666 nat/windows-nat.h.
7667 (windows_nat::thread_rec): Rename from thread_rec. No longer
7668 static.
7669 (windows_add_thread, windows_nat_target::fetch_registers)
7670 (windows_nat_target::store_registers, handle_exception)
7671 (windows_nat_target::resume, get_windows_debug_event)
7672 (windows_nat_target::get_tib_address)
7673 (windows_nat_target::thread_name)
7674 (windows_nat_target::thread_alive): Update.
7675 * nat/windows-nat.h (enum thread_disposition_type): Move from
7676 windows-nat.c.
7677 (thread_rec): Declare.
7678
4834dad0
TT
76792020-04-08 Tom Tromey <tromey@adacore.com>
7680
7681 * windows-nat.c: Add "using namespace".
7682 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7683 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7684
65bafd5b
TT
76852020-04-08 Tom Tromey <tromey@adacore.com>
7686
7687 * nat/windows-nat.h (struct windows_thread_info): Declare
7688 destructor.
7689 * nat/windows-nat.c (~windows_thread_info): New.
7690
0a4afda3
TT
76912020-04-08 Tom Tromey <tromey@adacore.com>
7692
7693 PR gdb/22992
7694 * windows-nat.c (current_event): Update comment.
7695 (last_wait_event, desired_stop_thread_id): New globals.
7696 (struct pending_stop): New.
7697 (pending_stops): New global.
7698 (windows_nat_target) <stopped_by_sw_breakpoint>
7699 <supports_stopped_by_sw_breakpoint>: New methods.
7700 (windows_fetch_one_register): Add assertions. Adjust PC.
7701 (windows_continue): Handle pending stops. Suspend other threads
7702 when stepping. Use last_wait_event
7703 (wait_for_debug_event): New function.
7704 (get_windows_debug_event): Use wait_for_debug_event. Handle
7705 pending stops. Queue spurious stops.
7706 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7707 (windows_nat_target::kill): Use wait_for_debug_event.
7708 * nat/windows-nat.h (struct windows_thread_info)
7709 <stopped_at_software_breakpoint>: New field.
7710 * nat/windows-nat.c (windows_thread_info::resume): Clear
7711 stopped_at_software_breakpoint.
7712
8e61ebec
TT
77132020-04-08 Tom Tromey <tromey@adacore.com>
7714
7715 * windows-nat.c (enum thread_disposition_type): New.
7716 (thread_rec): Replace "get_context" parameter with "disposition";
7717 change type.
7718 (windows_add_thread, windows_nat_target::fetch_registers)
7719 (windows_nat_target::store_registers, handle_exception)
7720 (windows_nat_target::resume, get_windows_debug_event)
7721 (windows_nat_target::get_tib_address)
7722 (windows_nat_target::thread_name)
7723 (windows_nat_target::thread_alive): Update.
7724
98a03287
TT
77252020-04-08 Tom Tromey <tromey@adacore.com>
7726
7727 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7728 (windows_continue): Use windows_continue::resume.
7729 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7730 resume>: Declare new methods.
7731 * nat/windows-nat.c: New file.
7732 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7733
7c7411bc
TT
77342020-04-08 Tom Tromey <tromey@adacore.com>
7735
7736 * windows-nat.c (windows_add_thread, windows_delete_thread)
7737 (windows_nat_target::fetch_registers)
7738 (windows_nat_target::store_registers, fake_create_process)
7739 (windows_nat_target::resume, windows_nat_target::resume)
7740 (get_windows_debug_event, windows_nat_target::wait)
7741 (windows_nat_target::pid_to_str)
7742 (windows_nat_target::get_tib_address)
7743 (windows_nat_target::get_ada_task_ptid)
7744 (windows_nat_target::thread_name)
7745 (windows_nat_target::thread_alive): Use lwp, not tid.
7746
2950fdf7
TT
77472020-04-08 Tom Tromey <tromey@adacore.com>
7748
7749 * windows-nat.c (handle_exception)
7750 (windows_nat_target::thread_name): Update.
7751 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7752 <name>: Now unique_xmalloc_ptr.
7753
62fe396b
TT
77542020-04-08 Tom Tromey <tromey@adacore.com>
7755
7756 * windows-nat.c (thread_rec)
7757 (windows_nat_target::fetch_registers): Update.
7758 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7759 Update comment.
7760 <debug_registers_changed, reload_context>: Now bool.
7761
e9534bd2
TT
77622020-04-08 Tom Tromey <tromey@adacore.com>
7763
7764 * windows-nat.c (windows_add_thread): Use new.
7765 (windows_init_thread_list, windows_delete_thread): Use delete.
7766 (get_windows_debug_event): Update.
7767 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7768 destructor, and initializers.
7769
ae1f8880
TT
77702020-04-08 Tom Tromey <tromey@adacore.com>
7771
7772 * windows-nat.c (struct windows_thread_info): Remove.
7773 * nat/windows-nat.h: New file.
7774
55a1e039
TT
77752020-04-08 Tom Tromey <tromey@adacore.com>
7776
7777 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7778 (thread_rec, windows_add_thread, windows_delete_thread)
7779 (windows_continue): Update.
7780
93366324
TT
77812020-04-08 Tom Tromey <tromey@adacore.com>
7782
7783 * windows-nat.c (struct windows_thread_info): Remove typedef.
7784 (thread_head): Remove.
7785 (thread_list): New global.
7786 (thread_rec, windows_add_thread, windows_init_thread_list)
7787 (windows_delete_thread, windows_continue): Update.
7788
0f2265e2
SM
77892020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7790
7791 * windows-tdep.h (windows_init_abi): Add comment.
7792 (cygwin_init_abi): New declaration.
7793 * windows-tdep.c: Split signal enumeration in two, one for
7794 Windows and one for Cygwin.
7795 (windows_gdb_signal_to_target): Only deal with signal of the
7796 Windows OS ABI.
7797 (cygwin_gdb_signal_to_target): New function.
7798 (windows_init_abi): Rename to windows_init_abi_common, don't set
7799 gdb_signal_to_target gdbarch method. Add new new function with
7800 this name.
7801 (cygwin_init_abi): New function.
7802 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7803 comment. Don't call windows_init_abi.
7804 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7805 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7806 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7807 i386_windows_init_abi_common, don't call windows_init_abi. Add
7808 a new function of this name.
7809 (i386_cygwin_init_abi): New function.
7810 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7811 OS ABI Cygwin.
7812
3810f182
SM
78132020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7814
7815 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7816 parameter.c.
7817 (dwarf2_read_gdb_index): Update.
7818
063f8e80
KR
78192020-04-07 Kamil Rytarowski <n54@gmx.com>
7820
7821 * nbsd-tdep.c: Include "objfiles.h".
7822 (nbsd_skip_solib_resolver): New.
7823 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7824
85a9510c 78252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7826
7827 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7828 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7829 with DW_LLE_base_addressx are being emitted in DWARFv5.
7830 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7831 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7832 unsigned integer.
7833
9fc3eaae 78342020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7835
7836 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7837 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7838 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7839 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7840 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7841 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7842 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7843
7844
41144253 78452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7846
7847 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7848 (read_loclist_index): New function definition.
7849 (lookup_loclist_base): New function definition.
7850 (read_loclist_header): New function definition.
7851 (dwarf2_cu): Add loclist_base and loclist_header field.
7852 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7853 (read_full_die_1): Read the value of DW_AT_loclists_base.
7854 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7855 (read_attribute_value): Handle DW_FORM_loclistx.
7856 (skip_one_die): Handle DW_FORM_loclistx.
7857 (loclist_header): New structure declaration.
7858 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7859
9f4e76a4
SM
78602020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7861
7862 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7863 constructor. Remove `addr` parameter from other constructor and
7864 add `per_cu` parameter.
7865 * dwarf2/read.c (create_partial_symtab): Update.
7866
25c11aca
TV
78672020-04-07 Tom de Vries <tdevries@suse.de>
7868
7869 PR symtab/25796
7870 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7871 (partial_die_info::fixup): Inherit has_const_value.
7872
5707e24b
TV
78732020-04-07 Tom de Vries <tdevries@suse.de>
7874
7875 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7876 symbols without address.
7877
05f00e22
KR
78782020-04-06 Kamil Rytarowski <n54@gmx.com>
7879
7880 * nbsd-nat.h (struct thread_info): Add forward declaration.
7881 (nbsd_nat_target::thread_alive): Add.
7882 (nbsd_nat_target::thread_name): Likewise.
7883 (nbsd_nat_target::update_thread_list): Likewise.
7884 (update_thread_list::post_attach): Likewise.
7885 (post_attach::pid_to_str): Likewise.
7886 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7887 (nbsd_thread_lister): Add.
7888 (nbsd_nat_target::thread_alive): Likewise.
7889 (nbsd_nat_target::thread_name): Likewise.
7890 (nbsd_add_threads): Likewise.
7891 (update_thread_list::post_attach): Likewise.
7892 (nbsd_nat_target::update_thread_list): Likewise.
7893 (post_attach::pid_to_str): Likewise.
7894
6ee448cc
TT
78952020-04-06 Tom Tromey <tromey@adacore.com>
7896
7897 * ada-valprint.c (print_variant_part): Extract the variant field.
7898 (print_field_values): Use the field as the outer value when
7899 recursing.
7900
dea34e8c
TT
79012020-04-06 Tom Tromey <tromey@adacore.com>
7902
7903 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7904 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7905 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7906 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7907 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7908
93689ce9
TT
79092020-04-06 Tom Tromey <tromey@adacore.com>
7910
7911 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7912 TYPE_CODE_ERROR.
7913
79743962
KR
79142020-04-06 Kamil Rytarowski <n54@gmx.com>
7915
7916 * nbsd-tdep.c: Include "gdbarch.h".
7917 Define enum with NetBSD signal numbers.
7918 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7919 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7920 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7921 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7922 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7923 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7924 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7925 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7926 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7927 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7928 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7929 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7930
9e7c9a03
HD
79312020-04-03 Hannes Domani <ssbssa@yahoo.de>
7932
7933 PR gdb/25325
7934 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7935
d9e49b61
TT
79362020-04-03 Tom Tromey <tromey@adacore.com>
7937
7938 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7939 Read constant block.
7940
e0fc5c3f
SM
79412020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7942
7943 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7944 (gdb_bfd_get_full_section_contents): New declaration.
7945 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7946 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7947 gdb_bfd_get_full_section_contents.
7948
e2ff18a0
SM
79492020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7950
7951 * exec.c (build_section_table): Replace internal_error with
7952 gdb_assert.
7953 (section_table_xfer_memory_partial): Likewise.
7954 * mdebugread.c (parse_partial_symbols): Likewise.
7955 * psymtab.c (lookup_partial_symbol): Likewise.
7956 * utils.c (wrap_here): Likewise.
7957
0830d301
TT
79582020-04-02 Tom Tromey <tromey@adacore.com>
7959
7960 * f-lang.c (build_fortran_types): Use arch_type to initialize
7961 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7962
e7da7f8f
TT
79632020-04-02 Tom Tromey <tromey@adacore.com>
7964
7965 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7966 of attributes.
7967
c90d28ac
AB
79682020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7969 Bernd Edlinger <bernd.edlinger@hotmail.de>
7970 Tom Tromey <tromey@adacore.com>
7971
7972 * buildsym.c (buildsym_compunit::record_line): Remove
7973 deduplication code.
7974
1aa98955
TV
79752020-04-02 Tom de Vries <tdevries@suse.de>
7976
7977 PR ada/24671
7978 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7979
d3214198
TV
79802020-04-02 Tom de Vries <tdevries@suse.de>
7981
7982 * dwarf2/read.c (dwarf2_gdb_index_functions,
7983 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7984 NULL.
7985 * psymtab.c (psym_lookup_global_symbol_language): New function.
7986 (psym_functions): Init psym_lookup_global_symbol_language with
7987 psym_lookup_global_symbol_language.
7988 * symfile-debug.c (debug_sym_quick_functions): Init
7989 lookup_global_symbol_language with NULL.
7990 * symfile.c (set_initial_language): Remove fixme comment.
7991 * symfile.h (struct quick_symbol_functions): Add
7992 lookup_global_symbol_language.
7993 * symtab.c (find_quick_global_symbol_language): New function.
7994 (find_main_name): Use find_quick_global_symbol_language.
7995
2836752f
SM
79962020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7997
7998 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7999
64dc2d4b
BE
80002020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8001
8002 * buildsym.c (record_line): Fix undefined behavior and preserve
8003 lines at eof.
8004
bbe3dc41
BE
80052020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8006
8007 * buildsym.c (record_line): Fix the resizing condition.
8008
6b4a335b
TT
80092020-04-01 Tom Tromey <tom@tromey.com>
8010
8011 * value.h (value_literal_complex): Add comment.
8012 * valops.c (value_literal_complex): Refer to value.h.
8013
3638a098
TT
80142020-04-01 Tom Tromey <tom@tromey.com>
8015
8016 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8017 (scalar_type): New rule, from typebase.
8018 (typebase): Use scalar_type. Recognize complex types.
8019 (field_name): Handle FLOAT_KEYWORD.
8020 (ident_tokens): Add _Complex and __complex__.
8021
c34e8714
TT
80222020-04-01 Tom Tromey <tom@tromey.com>
8023
8024 PR exp/25299:
8025 * valarith.c (promotion_type, complex_binop): New functions.
8026 (scalar_binop): Handle complex numbers. Use promotion_type.
8027 (value_pos, value_neg, value_complement): Handle complex numbers.
8028
fa649bb7
TT
80292020-04-01 Tom Tromey <tom@tromey.com>
8030
8031 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8032 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8033 (parse_number): Handle complex numbers.
8034
981c08ce
TT
80352020-04-01 Tom Tromey <tom@tromey.com>
8036
8037 * c-valprint.c (c_decorations): Change complex suffix to "i".
8038
4c99290d
TT
80392020-04-01 Tom Tromey <tom@tromey.com>
8040
8041 * valprint.c (generic_value_print_complex): Use accessors.
8042 * value.h (value_real_part, value_imaginary_part): Declare.
8043 * valops.c (value_real_part, value_imaginary_part): New
8044 functions.
8045 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8046
5b930b45
TT
80472020-04-01 Tom Tromey <tom@tromey.com>
8048
8049 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8050 (read_range_type): Update.
8051 * mdebugread.c (basic_type): Update.
8052 * go-lang.c (build_go_types): Use init_complex_type.
8053 * gdbtypes.h (struct main_type) <complex_type>: New member.
8054 (init_complex_type): Update.
8055 (arch_complex_type): Don't declare.
8056 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8057 Make name if none given. Use alloc_type_copy. Look for cached
8058 complex type.
8059 (arch_complex_type): Remove.
8060 (gdbtypes_post_init): Use init_complex_type.
8061 * f-lang.c (build_fortran_types): Use init_complex_type.
8062 * dwarf2/read.c (read_base_type): Update.
8063 * d-lang.c (build_d_types): Use init_complex_type.
8064 * ctfread.c (read_base_type): Update.
8065
53cccef1
TBA
80662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8067
8068 * infrun.c (stop_all_threads): Update assertion, plus when
8069 stopping threads, take into account that we might be trying
8070 to stop an all-stop target.
8071 (stop_waiting): Call 'stop_all_threads' if there exists a
8072 non-stop target.
8073
a0714d30
TBA
80742020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8075
8076 * target.h (exists_non_stop_target): New function declaration.
8077 * target.c (exists_non_stop_target): New function.
8078
60e22c1e
HD
80792020-04-01 Hannes Domani <ssbssa@yahoo.de>
8080
8081 PR gdb/24789
8082 * eval.c (is_integral_or_integral_reference): New function.
8083 (evaluate_subexp_standard): Allow integer references in
8084 pointer arithmetic.
8085
e139a727
TBA
80862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8087
8088 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8089 check for no ptid in the stop reply when the target is non-stop.
8090
e0802d59
TT
80912020-04-01 Tom Tromey <tromey@adacore.com>
8092
8093 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8094 "name" parameter to rvalue reference. Initialize m_name_holder.
8095 <lookup_name_info>: New overloads.
8096 <name>: Return gdb::string_view.
8097 <c_str>: New method.
8098 <make_ignore_params>: Update.
8099 <search_name_hash>: Update.
8100 <language_lookup_name>: Return const char *.
8101 <m_name>: Change type.
8102 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8103 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8104 (lookup_name_info::match_any): Update.
8105 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8106 Update.
8107 * minsyms.c (linkage_name_str): Update.
8108 * language.c (default_symbol_name_matcher): Update.
8109 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8110 Update.
8111 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8112 (ada_lookup_name_info::ada_lookup_name_info): Update.
8113 (literal_symbol_name_matcher): Update.
8114
8c072cb6
TT
81152020-04-01 Tom Tromey <tromey@adacore.com>
8116
8117 * psymtab.c (psymtab_search_name): Remove function.
8118 (psym_lookup_symbol): Create search name and lookup name here.
8119 (lookup_partial_symbol): Remove "name" parameter; add
8120 lookup_name.
8121 (psym_expand_symtabs_for_function): Update.
8122
6f29a534
TT
81232020-03-31 Joel Jones <joelkevinjones@gmail.com>
8124
8125 PR tui/25597:
8126 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8127
af62665e
TT
81282020-03-31 Tom Tromey <tromey@adacore.com>
8129
8130 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8131 memcpy.
8132
d1a89da5
NC
81332020-03-30 Nelson Chu <nelson.chu@sifive.com>
8134
8135 * features/riscv/32bit-csr.xml: Regenerated.
8136 * features/riscv/64bit-csr.xml: Regenerated.
8137
d8af9068
TT
81382020-03-30 Tom Tromey <tromey@adacore.com>
8139
8140 * ada-valprint.c (print_variant_part): Update.
8141 * ada-lang.h (ada_which_variant_applies): Update.
8142 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8143 outer_valaddr parameters; replace with "outer" value parameter.
8144 (to_fixed_variant_branch_type): Update.
8145
227c0bf4
PFC
81462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8147
8148 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8149 <list>. Remove inclusion of observable.h.
8150 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8151 (struct arch_lwp_info): New struct.
8152 (class ppc_linux_dreg_interface): New class.
8153 (struct ppc_linux_process_info): New struct.
8154 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8155 <low_new_clone, low_forget_process, low_prepare_to_resume>
8156 <copy_thread_dreg_state, mark_thread_stale>
8157 <mark_debug_registers_changed, register_hw_breakpoint>
8158 <clear_hw_breakpoint, register_wp, clear_wp>
8159 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8160 <num_memory_accesses, get_trigger_type>
8161 <create_watchpoint_request, hwdebug_point_cmp>
8162 <init_arch_lwp_info, get_arch_lwp_info>
8163 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8164 methods.
8165 <struct ptid_hash>: New inner struct.
8166 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8167 members.
8168 (saved_dabr_value, hwdebug_info, max_slots_number)
8169 (struct hw_break_tuple, struct thread_points, ppc_threads)
8170 (have_ptrace_hwdebug_interface)
8171 (hwdebug_find_thread_points_by_tid)
8172 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8173 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8174 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8175 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8176 use m_dreg_interface.
8177 (hwdebug_point_cmp): Change to...
8178 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8179 reference arguments instead of pointers.
8180 (ppc_linux_nat_target::ranged_break_num_registers): Use
8181 m_dreg_interface.
8182 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8183 m_dreg_interface. Call register_hw_breakpoint.
8184 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8185 m_dreg_interface. Call clear_hw_breakpoint.
8186 (get_trigger_type): Change to...
8187 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8188 comment.
8189 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8190 use m_dreg_interface. Call register_hw_breakpoint.
8191 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8192 use m_dreg_interface. Call clear_hw_breakpoint.
8193 (can_use_watchpoint_cond_accel): Change to...
8194 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8195 method. Update comment, use m_dreg_interface and
8196 m_process_info.
8197 (calculate_dvc): Change to...
8198 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8199 m_dreg_interface.
8200 (num_memory_accesses): Change to...
8201 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8202 (check_condition): Change to...
8203 (ppc_linux_nat_target::check_condition): ...this method.
8204 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8205 comment, use m_dreg_interface.
8206 (create_watchpoint_request): Change to...
8207 (ppc_linux_nat_target::create_watchpoint_request): ...this
8208 method. Use m_dreg_interface.
8209 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8210 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8211 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8212 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8213 (ppc_linux_nat_target::low_forget_process)
8214 (ppc_linux_nat_target::low_new_fork)
8215 (ppc_linux_nat_target::low_new_clone)
8216 (ppc_linux_nat_target::low_delete_thread)
8217 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8218 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8219 only call mark_thread_stale.
8220 (ppc_linux_thread_exit): Remove.
8221 (ppc_linux_nat_target::stopped_data_address): Change to...
8222 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8223 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8224 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8225 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8226 comment. Call low_stopped_data_address.
8227 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8228 m_dreg_interface.
8229 (ppc_linux_nat_target::masked_watch_num_registers): Use
8230 m_dreg_interface.
8231 (ppc_linux_nat_target::copy_thread_dreg_state)
8232 (ppc_linux_nat_target::mark_thread_stale)
8233 (ppc_linux_nat_target::mark_debug_registers_changed)
8234 (ppc_linux_nat_target::register_hw_breakpoint)
8235 (ppc_linux_nat_target::clear_hw_breakpoint)
8236 (ppc_linux_nat_target::register_wp)
8237 (ppc_linux_nat_target::clear_wp)
8238 (ppc_linux_nat_target::init_arch_lwp_info)
8239 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8240 (_initialize_ppc_linux_nat): Remove observer callback.
8241
4db10d8f
PFC
82422020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8243
8244 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8245 (ppc_linux_nat_target::auxv_parse)
8246 (ppc_linux_nat_target::read_description)
8247 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8248 Move up.
8249
1310c1b0
PFC
82502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8251
8252 * linux-nat.h (low_new_clone): New method.
8253 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8254
69b037c3
SM
82552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8256
8257 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8258 (dbx_expand_psymtab): ... this.
8259 (start_psymtab): Update.
8260 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8261 (mdebug_expand_psymtab): ... this.
8262 (parse_partial_symbols): Update.
8263 (new_psymtab): Update.
8264 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8265 (xcoff_expand_psymtab): ... this.
8266 (xcoff_start_psymtab): Update.
8267
48993951
SM
82682020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8269
8270 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8271 <expand_dependencies>: ... this.
8272 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8273 (partial_symtab::expand_dependencies): ... this.
8274 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8275 Update.
8276 (dwarf2_psymtab::expand_psymtab): Update.
8277 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8278 * mdebugread.c (psymtab_to_symtab_1): Update.
8279 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8280
3ad83046
SM
82812020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8282
8283 * psympriv.h (discard_psymtab): Remove.
8284 * dbxread.c (dbx_end_psymtab): Update.
8285 * xcoffread.c (xcoff_end_psymtab): Update.
8286
4d1b9ab6
TT
82872020-03-28 Tom Tromey <tom@tromey.com>
8288
8289 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8290 comment.
8291
f1749218
TT
82922020-03-28 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8295
ebea7626
HD
82962020-03-27 Hannes Domani <ssbssa@yahoo.de>
8297
8298 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8299
a879b4d5
JB
83002020-03-26 John Baldwin <jhb@FreeBSD.org>
8301
8302 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8303
0826b30a
TT
83042020-03-26 Tom Tromey <tom@tromey.com>
8305
8306 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8307 (mark_common_block_symbol_computed, read_tag_string_type)
8308 (attr_to_dynamic_prop, read_subrange_type): Update.
8309 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8310 to be methods on struct attribute.
8311 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8312 (read_call_site_scope, partial_die_info::read)
8313 (partial_die_info::read, lookup_die_type, follow_die_ref):
8314 Update.
8315 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8316 from dwarf2_get_ref_die_offset.
8317 (attribute::constant_value): New method, from
8318 dwarf2_get_attr_constant_value.
8319 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8320 Declare method.
8321 <constant_value>: New method.
8322
2b2558bf
TT
83232020-03-26 Tom Tromey <tom@tromey.com>
8324
8325 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8326 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8327 (dwarf_type_encoding_name): Move to stringify.c.
8328 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8329 * dwarf2/stringify.c: New file.
8330 * dwarf2/stringify.h: New file.
8331
eeb64781
TT
83322020-03-26 Tom Tromey <tom@tromey.com>
8333
8334 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8335 Rewrite.
8336
a39fdb41
TT
83372020-03-26 Tom Tromey <tom@tromey.com>
8338
8339 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8340 methods.
8341 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8342 (lookup_ranges_base): Likewise.
8343 (read_cutu_die_from_dwo, read_full_die_1): Update.
8344
436c571c
TT
83452020-03-26 Tom Tromey <tom@tromey.com>
8346
8347 * dwarf2/read.c (read_import_statement, read_file_scope)
8348 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8349 (read_lexical_block_scope, read_call_site_scope)
8350 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8351 (handle_struct_member_die, process_structure_scope)
8352 (update_enumeration_type_from_children)
8353 (process_enumeration_scope, read_array_type, read_common_block)
8354 (read_namespace, read_module, read_subroutine_type): Update.
8355 (sibling_die): Remove.
8356
052c8bb8
TT
83572020-03-26 Tom Tromey <tom@tromey.com>
8358
8359 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8360 (build_type_psymtabs_reader, read_structure_type)
8361 (read_enumeration_type, read_full_die_1): Update.
8362 (dwarf2_attr_no_follow): Move to die.h.
8363 * dwarf2/die.h (struct die_info) <attr>: New method.
8364
2b24b6e4
TT
83652020-03-26 Tom Tromey <tom@tromey.com>
8366
8367 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8368 <base_address>: Now an optional.
8369 (dwarf2_find_base_address, dwarf2_rnglists_process)
8370 (dwarf2_ranges_process, fill_in_loclist_baton)
8371 (dwarf2_symbol_mark_computed): Update.
8372
c2d50fd0
TT
83732020-03-26 Tom Tromey <tom@tromey.com>
8374
8375 * dwarf2/read.c (struct die_info): Move to die.h.
8376 * dwarf2/die.h: New file.
8377
0df7ad3a
TT
83782020-03-26 Tom Tromey <tom@tromey.com>
8379
8380 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8381 * dwarf2/read.c
8382 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8383 Move to line-header.c.
8384 (read_checked_initial_length_and_offset, read_formatted_entries):
8385 Likewise.
8386 (dwarf_decode_line_header): Split into two.
8387 * dwarf2/line-header.c
8388 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8389 Move from read.c.
8390 (read_checked_initial_length_and_offset, read_formatted_entries):
8391 Likewise.
8392 (dwarf_decode_line_header): New function, split from read.c.
8393
86c0bb4c
TT
83942020-03-26 Tom Tromey <tom@tromey.com>
8395
8396 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8397 Declare method.
8398 * dwarf2/read.c (read_attribute_value): Update.
8399 (dwarf2_per_objfile::read_line_string): Rename from
8400 read_indirect_line_string.
8401 (read_formatted_entries): Update.
8402
2ef46c2f
TT
84032020-03-26 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8406 variable.
8407
4f9c1eda
TT
84082020-03-26 Tom Tromey <tom@tromey.com>
8409
8410 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8411 const.
8412 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8413 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8414 parameter const.
8415
5a0e026f
TT
84162020-03-26 Tom Tromey <tom@tromey.com>
8417
8418 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8419 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8420 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8421 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8422
8844c11b
TT
84232020-03-26 Tom Tromey <tom@tromey.com>
8424
8425 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8426 file_names_size, file_full_name, file_file_name>: Use const.
8427 <file_name_at, file_names>: Add const overload.
8428 * dwarf2/line-header.c (line_header::file_file_name)
8429 (line_header::file_full_name): Update.
8430
c90ec28a
TT
84312020-03-26 Tom Tromey <tom@tromey.com>
8432
8433 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8434 (macro_start_file, consume_improper_spaces)
8435 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8436 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8437 (dwarf_decode_macros): Move to macro.c.
8438 * dwarf2/macro.c: New file.
8439 * dwarf2/macro.h: New file.
8440 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8441
4f44ae6c
TT
84422020-03-26 Tom Tromey <tom@tromey.com>
8443
8444 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8445 method.
8446 * dwarf2/section.c: New method. From
8447 read_indirect_string_at_offset_from.
8448 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8449 (read_indirect_string_at_offset_from): Move to section.c.
8450 (read_indirect_string_at_offset): Rewrite.
8451 (read_indirect_line_string_at_offset): Remove.
8452 (read_indirect_string, read_indirect_line_string)
8453 (dwarf_decode_macro_bytes): Update.
8454
a0194fa8
TT
84552020-03-26 Tom Tromey <tom@tromey.com>
8456
8457 * dwarf2/section.h (struct dwarf2_section_info)
8458 <overload_complaint>: Declare.
8459 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8460 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8461 Rename from dwarf2_section_buffer_overflow_complaint.
8462 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8463 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8464
3d27bbdb
TT
84652020-03-26 Tom Tromey <tom@tromey.com>
8466
8467 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8468 Declare.
8469 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8470 Move from read.c.
8471 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8472 to section.c.
8473
9eac9650
TT
84742020-03-26 Tom Tromey <tom@tromey.com>
8475
8476 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8477
bf80d710
TT
84782020-03-26 Tom Tromey <tom@tromey.com>
8479
8480 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8481 "builder".
8482 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8483 parameter.
8484 (dwarf_decode_macros): Update.
8485
0314b390
TT
84862020-03-26 Tom Tromey <tom@tromey.com>
8487
8488 * dwarf2/read.c (read_attribute_value): Update.
8489 (read_indirect_string_from_dwz): Move to dwz.c; change into
8490 method.
8491 (dwarf_decode_macro_bytes): Update.
8492 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8493 * dwarf2/dwz.c: New file.
8494 * Makefile.in (COMMON_SFILES): Add dwz.c.
8495
9fda78b6
TT
84962020-03-26 Tom Tromey <tom@tromey.com>
8497
8498 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8499 * dwarf2/read.c: Add include.
8500 * dwarf2/index-write.c: Add include.
8501 * dwarf2/index-cache.c: Add include.
8502 * dwarf2/dwz.h: New file.
8503
33aa3c10
TT
85042020-03-25 Tom Tromey <tom@tromey.com>
8505
8506 * compile/compile-object-load.c (get_out_value_type): Mention
8507 correct symbol name in error message.
8508
d503b685
HD
85092020-03-25 Hannes Domani <ssbssa@yahoo.de>
8510
8511 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8512
7b1eff95
TV
85132020-03-25 Tom de Vries <tdevries@suse.de>
8514
8515 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8516 * symmisc.c (dump_symtab_1): Print user and includes fields.
8517 (maintenance_info_symtabs): Same.
8518
dd895392
AB
85192020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8520
8521 PR gdb/25534
8522 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8523 (riscv_regcache_cooked_write): New function.
8524 (riscv_push_dummy_call): Use new function.
8525 (riscv_return_value): Likewise.
8526
5ab2fbf1
SM
85272020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8528
8529 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8530 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8531 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8532 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8533 * infrun.c (follow_fork): Likewise.
8534 (follow_fork_inferior): Likewise.
8535 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8536 * linux-nat.h (class linux_nat_target): Likewise.
8537 * remote.c (class remote_target) <follow_fork>: Likewise.
8538 (remote_target::follow_fork): Likewise.
8539 * target-delegates.c: Re-generate.
8540 * target.c (default_follow_fork): Likewise.
8541 (target_follow_fork): Likewise.
8542 * target.h (struct target_ops) <follow_fork>: Likewise.
8543 (target_follow_fork): Likewise.
8544
a64fafb5
TV
85452020-03-24 Tom de Vries <tdevries@suse.de>
8546
8547 * psymtab.c (maintenance_info_psymtabs): Print user field.
8548
fe26d3a3
TT
85492020-03-20 Tom Tromey <tromey@adacore.com>
8550
8551 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8552 const.
8553 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8554 const.
8555
c884cc46
SM
85562020-03-20 Simon Marchi <simon.marchi@efficios.com>
8557
8558 * ptrace.m4: Don't check for ptrace declaration.
8559 * config.in: Re-generate.
8560 * configure: Re-generate.
8561 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8562 not defined.
8563
1ff700c2
KR
85642020-03-20 Kamil Rytarowski <n54@gmx.com>
8565
8566 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8567 `PTRACE_TYPE_RET'.
8568 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8569 * sparc-nat.c (gdb_ptrace): Likewise.
8570 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8571
f7d4f0b1
TT
85722020-03-20 Tom Tromey <tromey@adacore.com>
8573
8574 * c-exp.y (lex_one_token): Fix assert.
8575
f67210ff
TT
85762020-03-20 Tom Tromey <tromey@adacore.com>
8577
8578 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8579 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8580 strncpy call.
8581
1773be9e
TT
85822020-03-20 Tom Tromey <tromey@adacore.com>
8583
8584 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8585
70304be9
TT
85862020-03-20 Tom Tromey <tromey@adacore.com>
8587
8588 * ada-valprint.c (print_variant_part): Remove parameters; switch
8589 to value-based API.
8590 (print_field_values): Likewise.
8591 (ada_val_print_struct_union): Likewise.
8592 (ada_value_print_1): Update.
8593
9faa006d
KR
85942020-03-20 Kamil Rytarowski <n54@gmx.com>
8595
8596 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8597 nbsd_nat_target instead of inf_ptrace_target.
8598 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8599 nbsd_nat_target.
8600
4a90f062
KR
86012020-03-20 Kamil Rytarowski <n54@gmx.com>
8602
8603 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8604 it to the ptrace call.
8605 * (store_registers): Likewise.
8606
86072020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8608
8609 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8610 it to the ptrace call.
8611 * (store_registers): Likewise.
8612
2d07da27
LM
86132020-03-19 Luis Machado <luis.machado@linaro.org>
8614
8615 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8616 valid, fetch vg value from ptrace.
8617
f09db380
KR
86182020-03-19 Kamil Rytarowski <n54@gmx.com>
8619 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8620 * inf-ptrace.c: Likewise.
8621 * (gdb_ptrace): Add.
8622 * (inf_ptrace_target::resume): Update.
8623 * (inf_ptrace_target::xfer_partial): Likewise.
8624 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8625 * (inf_ptrace_peek_poke): Update.
8626
fcc7376e
KR
86272020-03-19 Kamil Rytarowski <n54@gmx.com>
8628
8629 * x86-bsd-nat.c (gdb_ptrace): New.
8630 * (x86bsd_dr_set): Add new argument `ptid'.
8631 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8632 x86bsd_dr_set_addr): Update.
8633
cada5fc9
AB
86342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * remote.c (remote_target::process_stop_reply): Handle events for
8637 all threads differently.
8638
19a2740f
AB
86392020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * completer.c (completion_tracker::remove_completion): Define new
8642 function.
8643 * completer.h (completion_tracker::remove_completion): Declare new
8644 function.
8645 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8646 when adding a C++ function symbol.
8647
724fd9ba
AB
86482020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * completer.c (completion_tracker::completion_hash_entry): Define
8651 new class.
8652 (advance_to_filename_complete_word_point): Call
8653 recompute_lowest_common_denominator.
8654 (completion_tracker::completion_tracker): Call discard_completions
8655 to setup the hash table.
8656 (completion_tracker::discard_completions): Allow for being called
8657 from the constructor, pass new equal function, and element deleter
8658 when constructing the hash table. Initialise new class member
8659 variables.
8660 (completion_tracker::maybe_add_completion): Remove use of
8661 m_entries_vec, and store more information into m_entries_hash.
8662 (completion_tracker::recompute_lcd_visitor): New function, most
8663 content taken from...
8664 (completion_tracker::recompute_lowest_common_denominator):
8665 ...here, this now just visits each item in the hash calling the
8666 above visitor.
8667 (completion_tracker::build_completion_result): Remove use of
8668 m_entries_vec, call recompute_lowest_common_denominator.
8669 * completer.h (completion_tracker::have_completions): Remove use
8670 of m_entries_vec.
8671 (completion_tracker::completion_hash_entry): Declare new class.
8672 (completion_tracker::recompute_lowest_common_denominator): Change
8673 function signature.
8674 (completion_tracker::recompute_lcd_visitor): Declare new function.
8675 (completion_tracker::m_entries_vec): Delete.
8676 (completion_tracker::m_entries_hash): Initialize to NULL.
8677 (completion_tracker::m_lowest_common_denominator_valid): New
8678 member variable.
8679 (completion_tracker::m_lowest_common_denominator_max_length): New
8680 member variable.
8681
5a82b8a1
KR
86822020-03-17 Kamil Rytarowski <n54@gmx.com>
8683
8684 * regformats/regdef.h: Put reg in gdb namespace.
8685
fb516a69
KR
86862020-03-17 Kamil Rytarowski <n54@gmx.com>
8687
8688 * i386-bsd-nat.c (gdb_ptrace): New.
8689 * (i386bsd_fetch_inferior_registers,
8690 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8691 * (i386bsd_fetch_inferior_registers,
8692 i386bsd_store_inferior_registers) Use gdb_ptrace.
8693
1c0aa1fb
KR
86942020-03-17 Kamil Rytarowski <n54@gmx.com>
8695
8696 * amd64-bsd-nat.c (gdb_ptrace): New.
8697 * (amd64bsd_fetch_inferior_registers,
8698 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8699 * (amd64bsd_fetch_inferior_registers,
8700 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8701
5ccd2fb7
KR
87022020-03-17 Kamil Rytarowski <n54@gmx.com>
8703
8704 * user-regs.c (user_reg::read): Rename to...
8705 (user_reg::xread): ...this.
8706 * (append_user_reg): Rename argument `read' to `xread'.
8707 * (user_reg_add_builtin): Likewise.
8708 * (user_reg_add): Likewise.
8709 * (value_of_user_reg): Likewise.
8710
2108a63a
KR
87112020-03-17 Kamil Rytarowski <n54@gmx.com>
8712
8713 * sparc-nat.c (gdb_ptrace): New.
8714 * sparc-nat.c (sparc_fetch_inferior_registers)
8715 (sparc_store_inferior_registers) Remove obsolete comment.
8716 * sparc-nat.c (sparc_fetch_inferior_registers)
8717 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8718 * sparc-nat.c (sparc_fetch_inferior_registers)
8719 (sparc_store_inferior_registers) Use gdb_ptrace.
8720
a225c9a8
KR
87212020-03-17 Kamil Rytarowski <n54@gmx.com>
8722
8723 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8724 it to the ptrace call.
8725 * sh-nbsd-nat.c (store_registers): Likewise.
8726
98097623
KR
87272020-03-17 Kamil Rytarowski <n54@gmx.com>
8728
8729 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8730 nbsd_nat_target instead of inf_ptrace_target.
8731 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8732 nbsd_nat_target.
8733
9e38d619
KR
87342020-03-17 Kamil Rytarowski <n54@gmx.com>
8735
8736 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8737
a2ecbe9f
KR
87382020-03-17 Kamil Rytarowski <n54@gmx.com>
8739
8740 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8741 <sys/sysctl.h>.
8742 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8743
58990295
TV
87442020-03-17 Tom de Vries <tdevries@suse.de>
8745
8746 PR gdb/23710
8747 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8748 fields.
8749 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8750 fields.
8751 (process_imported_unit_die): Skip import of c++ CUs.
8752
771dd3a8
TT
87532020-03-16 Tom Tromey <tom@tromey.com>
8754
8755 * p-valprint.c (pascal_object_print_value): Initialize
8756 base_value.
8757
817a7585
AK
87582020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8759 Shahab Vahedi <shahab@synopsys.com>
8760
8761 * Makefile.in: Add arch/arc.o
8762 * configure.tgt: Likewise.
8763 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8764 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8765 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8766 * arc-tdep.h (arc_read_description): Add proto type.
8767 * arch/arc.c: New file.
8768 * arch/arc.h: Likewise.
8769 * features/Makefile: Replace old target descriptions with new.
8770 * features/arc-arcompact.c: Remove.
8771 * features/arc-arcompact.xml: Likewise.
8772 * features/arc-v2.c: Likewise
8773 * features/arc-v2.xml: Likewise
8774 * features/arc/aux-arcompact.xml: New file.
8775 * features/arc/aux-v2.xml: Likewise.
8776 * features/arc/core-arcompact.xml: Likewise.
8777 * features/arc/core-v2.xml: Likewise.
8778 * features/arc/aux-arcompact.c: Generate.
8779 * features/arc/aux-v2.c: Likewise.
8780 * features/arc/core-arcompact.c: Likewise.
8781 * features/arc/core-v2.c: Likewise.
8782 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8783
67430cd0
TT
87842020-03-16 Tom Tromey <tromey@adacore.com>
8785
8786 PR gdb/25663:
8787 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8788 putting value into bcache.
8789
30efb6c7
SM
87902020-03-16 Simon Marchi <simon.marchi@efficios.com>
8791
8792 PR gdb/21500
8793 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8794 to...
8795 (amd64_windows_init_abi_common): ... this. Don't set size of
8796 long type.
8797 (amd64_windows_init_abi): New function.
8798 (amd64_cygwin_init_abi): New function.
8799 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8800 the Cygwin OS ABI.
8801 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8802 comment.
8803
8db52437
SM
88042020-03-16 Simon Marchi <simon.marchi@efficios.com>
8805
8806 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8807 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8808 (pe_import_directory_entry): New struct type.
8809 (is_linked_with_cygwin_dll): New function.
8810 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8811 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8812 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8813
5982a56a
SM
88142020-03-16 Simon Marchi <simon.marchi@efficios.com>
8815
8816 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8817 i386_cygwin_core_osabi_sniffer.
8818
7a1998df
SM
88192020-03-16 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * i386-cygwin-tdep.c: Rename to...
8822 * i386-windows-tdep.c: ... this.
8823 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8824 i386-windows-tdep.c.
8825 * configure.tgt: Likewise.
8826
053205cc
SM
88272020-03-16 Simon Marchi <simon.marchi@efficios.com>
8828
8829 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8830 * osabi.c (gdb_osabi_names): Add "Windows".
8831 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8832 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8833 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8834 i386_cygwin_osabi_sniffer.
8835 (_initialize_i386_cygwin_tdep): Register OS ABI
8836 GDB_OSABI_WINDOWS for i386.
8837 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8838 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8839 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8840 for x86-64.
8841 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8842 when the target matches '*-*-mingw*'.
8843
fe4b2ee6
SM
88442020-03-16 Simon Marchi <simon.marchi@efficios.com>
8845
8846 * defs.h (enum gdb_osabi): Move to...
8847 * osabi.h (enum gdb_osabi): ... here.
8848 * gdbarch.sh: Include osabi.h in gdbarch.h.
8849 * gdbarch.h: Re-generate.
8850
cb9b645d
SM
88512020-03-16 Simon Marchi <simon.marchi@efficios.com>
8852
8853 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8854 function.
8855 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8856
3293bbaf
TT
88572020-03-14 Tom Tromey <tom@tromey.com>
8858
8859 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8860 for C++.
8861 (c_type_print_modifier): Likewise. Add "language" parameter.
8862 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8863 (c_type_print_base_1): Update.
8864 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8865 constants.
8866 * type-stack.c (type_stack::insert): Handle tp_atomic and
8867 tp_restrict.
8868 (type_stack::follow_type_instance_flags): Likewise.
8869 (type_stack::follow_types): Likewise. Merge type-following code.
8870 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8871 (space_identifier, cv_with_space_id)
8872 (const_or_volatile_or_space_identifier_noopt)
8873 (const_or_volatile_or_space_identifier): Remove.
8874 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8875 rules.
8876 (ptr_operator, typebase): Update.
8877 (enum token_flag) <FLAG_C>: New constant.
8878 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8879 "_Atomic".
8880 (lex_one_token): Handle FLAG_C.
8881
154151a6
KR
88822020-03-14 Kamil Rytarowski <n54@gmx.com>
8883
8884 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8885 it to the ptrace call.
8886 * m68k-bsd-nat.c (store_registers): Likewise.
8887
bc107784
KR
88882020-03-14 Kamil Rytarowski <n54@gmx.com>
8889
8890 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8891 gdb_byte *.
8892 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8893 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8894 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8895
01a80117
KR
88962020-03-14 Kamil Rytarowski <n54@gmx.com>
8897
8898 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8899 nbsd_nat_target instead of inf_ptrace_target.
8900 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8901 nbsd_nat_target.
8902
f90280ca
KR
89032020-03-14 Kamil Rytarowski <n54@gmx.com>
8904
8905 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8906 register_t.
8907
6def66f1
KR
89082020-03-14 Kamil Rytarowski <n54@gmx.com>
8909
8910 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8911 it to the ptrace call.
8912 * alpha-bsd-nat.c (store_registers): Likewise.
8913
66eaca97
KR
89142020-03-14 Kamil Rytarowski <n54@gmx.com>
8915
8916 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8917 includes.
8918 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8919 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8920 fill_fpregset): Likewise.
8921
4fed520b
KR
89222020-03-14 Kamil Rytarowski <n54@gmx.com>
8923
8924 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8925 nbsd_nat_target instead of inf_ptrace_target.
8926 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8927 nbsd_nat_target.
8928
2190cf06
KR
89292020-03-14 Kamil Rytarowski <n54@gmx.com>
8930
8931 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8932 register_t.
8933
75c56d3d
KR
89342020-03-14 Kamil Rytarowski <n54@gmx.com>
8935
8936 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8937 it to the ptrace call.
8938 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8939 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8940 * arm-nbsd-nat.c (store_register): Likewise.
8941 * arm-nbsd-nat.c (store_regs): Likewise.
8942 * arm-nbsd-nat.c (store_fp_register): Likewise.
8943 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8944
6018d381
KR
89452020-03-14 Kamil Rytarowski <n54@gmx.com>
8946
8947 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8948 nbsd_nat_target instead of inf_ptrace_target.
8949 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8950 nbsd_nat_target.
8951
013f99f0
KR
89522020-03-14 Kamil Rytarowski <n54@gmx.com>
8953
8954 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8955 it to the ptrace call.
8956 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8957
12753073
KR
89582020-03-14 Kamil Rytarowski <n54@gmx.com>
8959
6227b330
KR
8960 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8961 it to the ptrace call.
8962 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8963
89642020-03-14 Kamil Rytarowski <n54@gmx.com>
8965
8966 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8967 gdb_byte *.
12753073
KR
8968 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8969
d5be5fa4
KR
89702020-03-14 Kamil Rytarowski <n54@gmx.com>
8971
8972 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8973 instead of inf_ptrace_target.
8974 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8975 nbsd_nat_target.
8976
8110f842
KR
89772020-03-14 Kamil Rytarowski <n54@gmx.com>
8978
8979 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8980 register_t.
8981
52feded7
KR
89822020-03-14 Kamil Rytarowski <n54@gmx.com>
8983
8984 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8985 register_t.
8986
25567eee
KR
89872020-03-14 Kamil Rytarowski <n54@gmx.com>
8988
8989 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8990 register_t.
8991
426a9c18
TT
89922020-03-13 Tom Tromey <tom@tromey.com>
8993
8994 * value.h (val_print): Don't declare.
8995 * valprint.h (val_print_array_elements)
8996 (val_print_scalar_formatted, generic_val_print): Don't declare.
8997 * valprint.c (generic_val_print_array): Take a struct value.
8998 (generic_val_print_ptr, generic_val_print_memberptr)
8999 (generic_val_print_bool, generic_val_print_int)
9000 (generic_val_print_char, generic_val_print_complex)
9001 (generic_val_print): Remove.
9002 (generic_value_print): Update.
9003 (do_val_print): Remove unused parameters. Don't call
9004 la_val_print.
9005 (val_print): Remove.
9006 (common_val_print): Update. Don't call value_check_printable.
9007 (val_print_scalar_formatted, val_print_array_elements): Remove.
9008 * rust-lang.c (rust_val_print): Remove.
9009 (rust_language_defn): Update.
9010 * p-valprint.c (pascal_val_print): Remove.
9011 (pascal_value_print_inner): Update.
9012 (pascal_object_print_val_fields, pascal_object_print_val):
9013 Remove.
9014 (pascal_object_print_static_field): Update.
9015 * p-lang.h (pascal_val_print): Don't declare.
9016 * p-lang.c (pascal_language_defn): Update.
9017 * opencl-lang.c (opencl_language_defn): Update.
9018 * objc-lang.c (objc_language_defn): Update.
9019 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9020 * m2-lang.h (m2_val_print): Don't declare.
9021 * m2-lang.c (m2_language_defn): Update.
9022 * language.h (struct language_defn) <la_val_print>: Remove.
9023 * language.c (unk_lang_value_print_inner): Rename. Change
9024 argument types.
9025 (unknown_language_defn, auto_language_defn): Update.
9026 * go-valprint.c (go_val_print): Remove.
9027 * go-lang.h (go_val_print): Don't declare.
9028 * go-lang.c (go_language_defn): Update.
9029 * f-valprint.c (f_val_print): Remove.
9030 * f-lang.h (f_value_print): Don't declare.
9031 * f-lang.c (f_language_defn): Update.
9032 * d-valprint.c (d_val_print): Remove.
9033 * d-lang.h (d_value_print): Don't declare.
9034 * d-lang.c (d_language_defn): Update.
9035 * cp-valprint.c (cp_print_value_fields)
9036 (cp_print_value_fields_rtti, cp_print_value): Remove.
9037 (cp_print_static_field): Update.
9038 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9039 (c_val_print_struct, c_val_print_union, c_val_print_int)
9040 (c_val_print_memberptr, c_val_print): Remove.
9041 * c-lang.h (c_val_print_array, cp_print_value_fields)
9042 (cp_print_value_fields_rtti): Don't declare.
9043 * c-lang.c (c_language_defn, cplus_language_defn)
9044 (asm_language_defn, minimal_language_defn): Update.
9045 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9046 (ada_val_print_enum): Take a struct value.
9047 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9048 (ada_val_print): Remove.
9049 (ada_value_print_1): Update.
9050 (printable_val_type): Remove.
9051 * ada-lang.h (ada_val_print): Don't declare.
9052 * ada-lang.c (ada_language_defn): Update.
9053
42331a1e
TT
90542020-03-13 Tom Tromey <tom@tromey.com>
9055
9056 * valprint.c (do_val_print): Update.
9057 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9058 a struct value.
9059 (value_to_value_object_no_release): Declare.
9060 * python/py-value.c (value_to_value_object_no_release): New
9061 function.
9062 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9063 struct value.
9064 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9065 function.
9066 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9067 a struct value.
9068 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9069 Declare.
9070 (gdbscm_apply_val_pretty_printer): Take a struct value.
9071 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9072 value.
9073 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9074 value.
9075 * extension-priv.h (struct extension_language_ops)
9076 <apply_val_pretty_printer>: Take a struct value.
9077 * cp-valprint.c (cp_print_value): Create a struct value.
9078 (cp_print_value): Update.
9079
3a916a97
TT
90802020-03-13 Tom Tromey <tom@tromey.com>
9081
9082 * ada-valprint.c (print_field_values): Call common_val_print.
9083
b59eac37
TT
90842020-03-13 Tom Tromey <tom@tromey.com>
9085
9086 * ada-valprint.c (val_print_packed_array_elements): Remove
9087 bitoffset and val parameters. Call common_val_print.
9088 (ada_val_print_string): Remove offset, address, and original_value
9089 parameters.
9090 (ada_val_print_array): Update.
9091 (ada_value_print_array): New function.
9092 (ada_value_print_1): Call it.
9093
03371129
TT
90942020-03-13 Tom Tromey <tom@tromey.com>
9095
9096 * ada-valprint.c (ada_value_print): Use common_val_print.
9097
2e088f8b
TT
90982020-03-13 Tom Tromey <tom@tromey.com>
9099
9100 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9101
39ef85a8
TT
91022020-03-13 Tom Tromey <tom@tromey.com>
9103
9104 * ada-valprint.c (ada_value_print_num): New function.
9105 (ada_value_print_1): Use it.
9106
b9fa6e07
TT
91072020-03-13 Tom Tromey <tom@tromey.com>
9108
9109 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9110
416595d6
TT
91112020-03-13 Tom Tromey <tom@tromey.com>
9112
9113 * ada-valprint.c (ada_value_print_ptr): New function.
9114 (ada_value_print_1): Use it.
9115
5b5e15ec
TT
91162020-03-13 Tom Tromey <tom@tromey.com>
9117
9118 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9119 call common_val_print.
9120 (ada_val_print_1): Update.
9121 (ada_value_print_1): New function.
9122 (ada_value_print_inner): Rewrite.
9123
fbf54e75
TT
91242020-03-13 Tom Tromey <tom@tromey.com>
9125
9126 * cp-valprint.c (cp_print_value_fields): Update.
9127 (cp_print_value): New function.
9128
64b653ca
TT
91292020-03-13 Tom Tromey <tom@tromey.com>
9130
9131 * m2-valprint.c (m2_value_print_inner): Use
9132 cp_print_value_fields.
9133 * cp-valprint.c (cp_print_value_fields): New function.
9134 * c-valprint.c (c_value_print_struct): New function.
9135 (c_value_print_inner): Use c_value_print_struct.
9136 * c-lang.h (cp_print_value_fields): Declare.
9137
6999f067
TT
91382020-03-13 Tom Tromey <tom@tromey.com>
9139
9140 * c-valprint.c (c_value_print_array): New function.
9141 (c_value_print_inner): Use it.
9142
ce80b8bd
TT
91432020-03-13 Tom Tromey <tom@tromey.com>
9144
9145 * c-valprint.c (c_value_print_memberptr): New function.
9146 (c_value_print_inner): Use it.
9147
2faac269
TT
91482020-03-13 Tom Tromey <tom@tromey.com>
9149
9150 * c-valprint.c (c_value_print_int): New function.
9151 (c_value_print_inner): Use it.
9152
da3e2c29
TT
91532020-03-13 Tom Tromey <tom@tromey.com>
9154
9155 * c-valprint.c (c_value_print_ptr): New function.
9156 (c_value_print_inner): Use it.
9157
50836231
TT
91582020-03-13 Tom Tromey <tom@tromey.com>
9159
9160 * c-valprint.c (c_value_print_inner): Rewrite.
9161
4f412b6e
TT
91622020-03-13 Tom Tromey <tom@tromey.com>
9163
9164 * valprint.c (generic_value_print_complex): New function.
9165 (generic_value_print): Use it.
9166
f5354008
TT
91672020-03-13 Tom Tromey <tom@tromey.com>
9168
9169 * valprint.c (generic_val_print_float): Don't call
9170 val_print_scalar_formatted.
9171 (generic_val_print, generic_value_print): Update.
9172
3eec3b05
TT
91732020-03-13 Tom Tromey <tom@tromey.com>
9174
9175 * valprint.c (generic_value_print_char): New function
9176 (generic_value_print): Use it.
9177
fdddfccb
TT
91782020-03-13 Tom Tromey <tom@tromey.com>
9179
9180 * valprint.c (generic_value_print_int): New function.
9181 (generic_value_print): Use it.
9182
6dde7521
TT
91832020-03-13 Tom Tromey <tom@tromey.com>
9184
9185 * valprint.c (generic_value_print_bool): New function.
9186 (generic_value_print): Use it.
9187
4112d2e6
TT
91882020-03-13 Tom Tromey <tom@tromey.com>
9189
9190 * valprint.c (generic_val_print_func): Simplify.
9191 (generic_val_print, generic_value_print): Update.
9192
65786af6
TT
91932020-03-13 Tom Tromey <tom@tromey.com>
9194
9195 * valprint.c (generic_val_print_flags): Remove.
9196 (generic_val_print, generic_value_print): Update.
9197 (val_print_type_code_flags): Add original_value parameter.
9198
40f3ce18
TT
91992020-03-13 Tom Tromey <tom@tromey.com>
9200
9201 * valprint.c (generic_val_print): Update.
9202 (generic_value_print): Update.
9203 * valprint.c (generic_val_print_enum): Don't call
9204 val_print_scalar_formatted.
9205
2a5b130b
TT
92062020-03-13 Tom Tromey <tom@tromey.com>
9207
9208 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9209 * valprint.c (generic_value_print_ptr): New function.
9210
abc66ce9
TT
92112020-03-13 Tom Tromey <tom@tromey.com>
9212
9213 * valprint.c (generic_value_print): Rewrite.
9214
07a32858
TT
92152020-03-13 Tom Tromey <tom@tromey.com>
9216
9217 * p-valprint.c (pascal_object_print_value_fields)
9218 (pascal_object_print_value): New functions.
9219
64d64d3a
TT
92202020-03-13 Tom Tromey <tom@tromey.com>
9221
9222 * p-valprint.c (pascal_value_print_inner): Rewrite.
9223
6a95a1f5
TT
92242020-03-13 Tom Tromey <tom@tromey.com>
9225
9226 * f-valprint.c (f_value_print_innner): Rewrite.
9227
59fcdac6
TT
92282020-03-13 Tom Tromey <tom@tromey.com>
9229
9230 * m2-valprint.c (m2_print_unbounded_array): New overload.
9231 (m2_print_unbounded_array): Update.
9232 (m2_print_array_contents): Take a struct value.
9233 (m2_value_print_inner): Rewrite.
9234
d133c3e1
TT
92352020-03-13 Tom Tromey <tom@tromey.com>
9236
9237 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9238 (d_value_print_inner): New function.
9239 * d-lang.h (d_value_print_inner): Declare.
9240 * d-lang.c (d_language_defn): Use d_value_print_inner.
9241
23b0f06b
TT
92422020-03-13 Tom Tromey <tom@tromey.com>
9243
9244 * go-valprint.c (go_value_print_inner): New function.
9245 * go-lang.h (go_value_print_inner): Declare.
9246 * go-lang.c (go_language_defn): Use go_value_print_inner.
9247
5f56f7cb
TT
92482020-03-13 Tom Tromey <tom@tromey.com>
9249
9250 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9251 API.
9252 (rust_val_print): Rewrite.
9253 (rust_value_print_inner): New function, from rust_val_print.
9254 (rust_language_defn): Use rust_value_print_inner.
9255
26792ee0
TT
92562020-03-13 Tom Tromey <tom@tromey.com>
9257
9258 * ada-valprint.c (ada_value_print_inner): New function.
9259 * ada-lang.h (ada_value_print_inner): Declare.
9260 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9261
24051bbe
TT
92622020-03-13 Tom Tromey <tom@tromey.com>
9263
9264 * f-valprint.c (f_value_print_innner): New function.
9265 * f-lang.h (f_value_print_innner): Declare.
9266 * f-lang.c (f_language_defn): Use f_value_print_innner.
9267
c0941be6
TT
92682020-03-13 Tom Tromey <tom@tromey.com>
9269
9270 * p-valprint.c (pascal_value_print_inner): New function.
9271 * p-lang.h (pascal_value_print_inner): Declare.
9272 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9273
62c4663d
TT
92742020-03-13 Tom Tromey <tom@tromey.com>
9275
9276 * m2-valprint.c (m2_value_print_inner): New function.
9277 * m2-lang.h (m2_value_print_inner): Declare.
9278 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9279
62182190
TT
92802020-03-13 Tom Tromey <tom@tromey.com>
9281
9282 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9283 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9284 * c-valprint.c (c_value_print_inner): New function.
9285 * c-lang.h (c_value_print_inner): Declare.
9286 * c-lang.c (c_language_defn, cplus_language_defn)
9287 (asm_language_defn, minimal_language_defn): Use
9288 c_value_print_inner.
9289
1e592a8a
TT
92902020-03-13 Tom Tromey <tom@tromey.com>
9291
9292 * p-valprint.c (pascal_object_print_value_fields): Now static.
9293 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9294
7fe471e9
TT
92952020-03-13 Tom Tromey <tom@tromey.com>
9296
9297 * c-valprint.c (c_val_print_array): Simplify.
9298
d121c6ce
TT
92992020-03-13 Tom Tromey <tom@tromey.com>
9300
9301 * valprint.c (value_print_array_elements): New function.
9302 * valprint.h (value_print_array_elements): Declare.
9303
4dba70ee
TT
93042020-03-13 Tom Tromey <tom@tromey.com>
9305
9306 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9307 * mips-tdep.c (mips_print_register): Use
9308 value_print_scalar_formatted.
9309
4f9ae810
TT
93102020-03-13 Tom Tromey <tom@tromey.com>
9311
9312 * valprint.h (value_print_scalar_formatted): Declare.
9313 * valprint.c (value_print_scalar_formatted): New function.
9314
156bfec9
TT
93152020-03-13 Tom Tromey <tom@tromey.com>
9316
9317 * valprint.h (generic_value_print): Declare.
9318 * valprint.c (generic_value_print): New function.
9319
2b4e573d
TT
93202020-03-13 Tom Tromey <tom@tromey.com>
9321
9322 * valprint.c (do_val_print): Call la_value_print_inner, if
9323 available.
9324 * rust-lang.c (rust_language_defn): Update.
9325 * p-lang.c (pascal_language_defn): Update.
9326 * opencl-lang.c (opencl_language_defn): Update.
9327 * objc-lang.c (objc_language_defn): Update.
9328 * m2-lang.c (m2_language_defn): Update.
9329 * language.h (struct language_defn) <la_value_print_inner>: New
9330 member.
9331 * language.c (unknown_language_defn, auto_language_defn): Update.
9332 * go-lang.c (go_language_defn): Update.
9333 * f-lang.c (f_language_defn): Update.
9334 * d-lang.c (d_language_defn): Update.
9335 * c-lang.c (c_language_defn, cplus_language_defn)
9336 (asm_language_defn, minimal_language_defn): Update.
9337 * ada-lang.c (ada_language_defn): Update.
9338
a1f6a07c
TT
93392020-03-13 Tom Tromey <tom@tromey.com>
9340
9341 * c-valprint.c (c_value_print): Use common_val_print.
9342
410cf315
TT
93432020-03-13 Tom Tromey <tom@tromey.com>
9344
9345 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9346
72a45c93
TT
93472020-03-13 Tom Tromey <tom@tromey.com>
9348
9349 * f-valprint.c (f77_print_array_1, f_val_print): Use
9350 common_val_print.
9351
040f66bd
TT
93522020-03-13 Tom Tromey <tom@tromey.com>
9353
9354 * riscv-tdep.c (riscv_print_one_register_info): Use
9355 common_val_print.
9356
a6e05a6c
TT
93572020-03-13 Tom Tromey <tom@tromey.com>
9358
9359 * mi/mi-main.c (output_register): Use common_val_print.
9360
3444c526
TT
93612020-03-13 Tom Tromey <tom@tromey.com>
9362
9363 * infcmd.c (default_print_one_register_info): Use
9364 common_val_print.
9365
c2a44efe
TT
93662020-03-13 Tom Tromey <tom@tromey.com>
9367
9368 * valprint.h (common_val_print_checked): Declare.
9369 * valprint.c (common_val_print_checked): New function.
9370 * stack.c (print_frame_arg): Use common_val_print_checked.
9371
b0c26e99
TT
93722020-03-13 Tom Tromey <tom@tromey.com>
9373
9374 * valprint.c (do_val_print): New function, from val_print.
9375 (val_print): Use do_val_print.
9376 (common_val_print): Use do_val_print.
9377
ce3acbe9
TT
93782020-03-13 Tom Tromey <tom@tromey.com>
9379
9380 * valprint.c (value_print): Use scoped_value_mark.
9381
96c7f873
TV
93822020-03-13 Tom de Vries <tdevries@suse.de>
9383
9384 PR symtab/25646
9385 * psymtab.c (partial_symtab::partial_symtab): Don't set
9386 globals_offset and statics_offset. Push element onto
9387 current_global_psymbols and current_static_psymbols stacks.
9388 (concat): New function.
9389 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9390 element from current_global_psymbols and current_static_psymbols
9391 stacks. Concat popped elements to global_psymbols and
9392 static_symbols.
9393 (add_psymbol_to_list): Use current_global_psymbols and
9394 current_static_psymbols stacks.
9395 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9396 current_static_psymbols fields.
9397
6ba0a321
CB
93982020-03-12 Christian Biesinger <cbiesinger@google.com>
9399
9400 * corelow.c (sniff_core_bfd): Remove.
9401 (class core_target) <m_core_vec>: Remove.
9402 (core_target::core_target): Update.
9403 (core_file_fns): Remove.
9404 (deprecated_add_core_fns): Remove.
9405 (default_core_sniffer): Remove.
9406 (sniff_core_bfd): Remove.
9407 (default_check_format): Remove.
9408 (gdb_check_format): Remove.
9409 (core_target_open): Update.
9410 (core_target::get_core_register_section): Update.
9411 (get_core_registers_cb): Update.
9412 (core_target::fetch_registers): Update.
9413 * gdbcore.h (struct core_fns): Remove.
9414 (deprecated_add_core_fns): Remove.
9415 (default_core_sniffer): Remove.
9416 (default_check_format): Remove.
9417
227031b2
TT
94182020-03-12 Tom Tromey <tom@tromey.com>
9419
9420 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9421 CORE_ADDR.
9422 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9423
53807e9f
TT
94242020-03-12 Tom Tromey <tom@tromey.com>
9425
9426 * remote.c (remote_target::download_tracepoint)
9427 (remote_target::enable_tracepoint)
9428 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9429 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9430 sprintf_vma.
9431
64f25102
TT
94322020-03-12 Tom Tromey <tom@tromey.com>
9433
9434 * symfile-mem.c: Update CORE_ADDR size assert.
9435
272cd5a3
SM
94362020-03-12 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * selftest.m4: Move to gdbsupport/.
9439 * acinclude.m4: Update path to selftest.m4.
9440
74cd3f9d
SM
94412020-03-12 Simon Marchi <simon.marchi@efficios.com>
9442
9443 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9444 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9445 gdbarch-selfselftests.c and selftest-arch.c.
9446 (SUBDIR_UNITTESTS_OBS): Rename to...
9447 (SELFTESTS_OBS): ... this.
9448 (COMMON_SFILES): Remove disasm-selftests.c and
9449 gdbarch-selftests.c.
9450 * configure.ac: Don't add selftest-arch.{c,o} to
9451 CONFIG_{SRCS,OBS}.
9452 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9453 preprocessor conditions.
9454
db6878ac
SM
94552020-03-12 Simon Marchi <simon.marchi@efficios.com>
9456
9457 * configure.ac: Don't source bfd/development.sh.
9458 * selftest.m4: Modify comment.
9459 * configure: Re-generate.
9460
4d696a5c
SM
94612020-03-12 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9464 not "true" or "false".
9465 * configure: Re-generate.
9466
8dd8e1c7
CB
94672020-03-12 Christian Biesinger <cbiesinger@google.com>
9468
9469 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9470 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9471 renamed to arm_nbsd_supply_gregset.
9472 (fetch_register): Update to call arm_nbsd_supply_gregset.
9473 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9474 (arm_netbsd_nat_target::fetch_registers): Update.
9475 (fetch_elfcore_registers): Removed.
9476 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9477 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9478 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9479 not require NetBSD system headers.
9480 (arm_nbsd_regset): New struct.
9481 (arm_nbsd_iterate_over_regset_sections): New function.
9482 (arm_netbsd_init_abi_common): Updated to call
9483 set_gdbarch_iterate_over_regset_sections.
9484 * arm-nbsd-tdep.h: New file.
9485
dd69bf7a
KB
94862020-03-11 Kevin Buettner <kevinb@redhat.com>
9487
9488 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9489 recursion.
9490
a0761e34
SM
94912020-03-11 Simon Marchi <simon.marchi@efficios.com>
9492
9493 * configure: Re-generate.
9494
e7a82140
TT
94952020-03-11 Tom Tromey <tromey@adacore.com>
9496
9497 * ada-typeprint.c (print_choices): Fix comment.
9498
dcc050c8
AB
94992020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9500
9501 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9502 previous item in the list, when the list has no items.
9503
1c33af77
TV
95042020-03-11 Tom de Vries <tdevries@suse.de>
9505
9506 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9507 PROP_LOCLIST handling code.
9508
8c95582d
AB
95092020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9510
9511 * buildsym-legacy.c (record_line): Pass extra parameter to
9512 record_line.
9513 * buildsym.c (buildsym_compunit::record_line): Take an extra
9514 parameter, reduce duplication in the line table, and record the
9515 is_stmt flag in the line table.
9516 * buildsym.h (buildsym_compunit::record_line): Add extra
9517 parameter.
9518 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9519 non-statement lines.
9520 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9521 this to the symtab builder.
9522 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9523 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9524 through to dwarf_record_line_1.
9525 * infrun.c (process_event_stop_test): When stepping, don't stop at
9526 a non-statement instruction, and only refresh the step info when
9527 we land in the middle of a line's range. Also add an extra
9528 comment.
9529 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9530 field.
9531 * record-btrace.c (btrace_find_line_range): Only record lines
9532 marked as is-statement.
9533 * stack.c (frame_show_address): Show the frame address if we are
9534 in a non-statement sal.
9535 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9536 (maintenance_print_one_line_table): Print a header for the is_stmt
9537 column, and include is_stmt information in the output.
9538 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9539 preference to non-statements.
9540 (find_pcs_for_symtab_line): Prefer is-statement entries.
9541 (find_line_common): Likewise.
9542 * symtab.h (struct linetable_entry): Add is_stmt field.
9543 (struct symtab_and_line): Likewise.
9544 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9545 arranging the line table.
9546
e4003a34
TV
95472020-03-07 Tom de Vries <tdevries@suse.de>
9548
9549 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9550 DIE.
9551
e8932576
TT
95522020-03-07 Tom Tromey <tom@tromey.com>
9553
9554 * valops.c (value_literal_complex): Remove obsolete comment.
9555 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9556 comment.
9557
29734269
SM
95582020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9559
9560 * infrun.h: Forward-declare thread_info.
9561 (set_step_info): Add thread_info parameter, add doc.
9562 * infrun.c (set_step_info): Add thread_info parameter, move doc
9563 to header.
9564 * infrun.c (process_event_stop_test): Pass thread to
9565 set_step_info call.
9566 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9567 set_step_info.
9568 (prepare_one_step): Add thread_info parameter, pass it to
9569 set_step_frame and prepare_one_step (recursive) call.
9570 (step_1): Pass thread to prepare_one_step call.
9571 (step_command_fsm::should_stop): Pass thread to
9572 prepare_one_step.
9573 (until_next_fsm): Pass thread to set_step_frame call.
9574 (finish_command): Pass thread to set_step_info call.
9575
b7d64b29
HD
95762020-03-06 Hannes Domani <ssbssa@yahoo.de>
9577
9578 * windows-tdep.c (windows_solib_create_inferior_hook):
9579 Check if inferior is running.
9580
09f2921c
TV
95812020-03-06 Tom de Vries <tdevries@suse.de>
9582
9583 * NEWS: Fix "the the".
9584 * ctfread.c: Same.
9585
fd760e79
TV
95862020-03-06 Tom de Vries <tdevries@suse.de>
9587
9588 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9589
20ea4a60
AB
95902020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * .dir-locals.el: Add a comment referencing the other copies of
9593 this file.
9594
0afbabf0
JB
95952020-03-05 John Baldwin <jhb@FreeBSD.org>
9596
9597 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9598 psargs.
9599
842806cb
TBA
96002020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9601
9602 * .gitattributes: New file.
9603
be1e3d3e
TT
96042020-03-04 Tom Tromey <tom@tromey.com>
9605
9606 * symmisc.c (print_symbol_bcache_statistics)
9607 (print_objfile_statistics): Update.
9608 * symfile.c (allocate_symtab): Use intern.
9609 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9610 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9611 macro_cache>: Remove.
9612 <string_cache>: New member.
9613 (struct objfile) <intern>: New methods.
9614 * elfread.c (elf_symtab_read): Use intern.
9615 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9616 (dwarf2_compute_name, dwarf2_physname)
9617 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9618 names.
9619 (guess_partial_die_structure_name): Update.
9620 (partial_die_info::fixup): Intern name.
9621 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9622 name.
9623 (dwarf2_name): Intern name. Update.
9624 * buildsym.c (buildsym_compunit::get_macro_table): Use
9625 string_cache.
9626
4e7625fd
TT
96272020-03-04 Tom Tromey <tom@tromey.com>
9628
9629 * jit.c (bfd_open_from_target_memory): Make "target" const.
9630 * corefile.c (gnutarget): Now const.
9631 * gdbcore.h (gnutarget): Now const.
9632
46f9f931
HD
96332020-03-04 Hannes Domani <ssbssa@yahoo.de>
9634
9635 * NEWS: Mention support for WOW64 processes.
9636 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9637 (amd64_windows_segment_register_p): Remove static.
9638 (_initialize_amd64_windows_nat): Update.
9639 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9640 * i386-windows-nat.c (context_offset): Update.
9641 (i386_mappings): Rename and remove static.
9642 (i386_windows_segment_register_p): Remove static.
9643 (_initialize_i386_windows_nat): Update.
9644 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9645 (STATUS_WX86_SINGLE_STEP): New macro.
9646 (EnumProcessModulesEx): New macro.
9647 (Wow64SuspendThread): New macro.
9648 (Wow64GetThreadContext): New macro.
9649 (Wow64SetThreadContext): New macro.
9650 (Wow64GetThreadSelectorEntry): New macro.
9651 (windows_set_context_register_offsets): Add static.
9652 (windows_set_segment_register_p): Likewise.
9653 (windows_add_thread): Adapt for WOW64 processes.
9654 (windows_fetch_one_register): Likewise.
9655 (windows_nat_target::fetch_registers): Likewise.
9656 (windows_store_one_register): Likewise.
9657 (display_selector): Likewise.
9658 (display_selectors): Likewise.
9659 (handle_exception): Likewise.
9660 (windows_continue): Likewise.
9661 (windows_nat_target::resume): Likewise.
9662 (windows_add_all_dlls): Likewise.
9663 (do_initial_windows_stuff): Likewise.
9664 (windows_nat_target::attach): Likewise.
9665 (windows_get_exec_module_filename): Likewise.
9666 (windows_nat_target::create_inferior): Likewise.
9667 (windows_xfer_siginfo): Likewise.
9668 (_initialize_loadable): Initialize Wow64SuspendThread,
9669 Wow64GetThreadContext, Wow64SetThreadContext,
9670 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9671 * windows-nat.h (windows_set_context_register_offsets):
9672 Remove declaration.
9673 (windows_set_segment_register_p): Likewise.
9674 (i386_windows_segment_register_p): Add declaration.
9675 (amd64_windows_segment_register_p): Likewise.
9676
440cf44e
LM
96772020-03-04 Luis Machado <luis.machado@linaro.org>
9678
9679 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9680 in "info registers" for AArch64/ARM.
9681
9682 The change caused "info registers" to not print GPR's.
9683
9684 gdb/ChangeLog:
9685
9686 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9687
9688 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9689 when reg->group is empty and reggroup is not.
9690
1009d92f
TT
96912020-03-03 Tom Tromey <tromey@adacore.com>
9692
9693 * dwarf2/frame.c (struct dwarf2_frame_cache)
9694 <checked_tailcall_bottom, entry_cfa_sp_offset,
9695 entry_cfa_sp_offset_p>: Remove members.
9696 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9697 (dwarf2_frame_prev_register): Don't call
9698 dwarf2_tailcall_sniffer_first.
9699 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9700 * frame-unwind.c (add_unwinder): New fuction.
9701 (frame_unwind_init): Use it. Add tailcall unwinder.
9702
5e5d66b6
AB
97032020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9704 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9705
9706 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9707 value should be printed as true.
9708
584cf46d
HD
97092020-03-03 Hannes Domani <ssbssa@yahoo.de>
9710
9711 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9712 (windows_init_abi): Set and use windows_so_ops.
9713
7b973adc
SDJ
97142020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9715
9716 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9717 when verifying if dealing with a convenience variable.
9718
bb7b70ab
LM
97192020-03-03 Luis Machado <luis.machado@linaro.org>
9720
9721 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9722
9822cb57
SM
97232020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9724
9725 * infrun.c (gdbarch_supports_displaced_stepping): New.
9726 (use_displaced_stepping): Break up conditions in smaller pieces.
9727 Use gdbarch_supports_displaced_stepping.
9728 (displaced_step_prepare_throw): Use
9729 gdbarch_supports_displaced_stepping.
9730
63e163f2
AB
97312020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9732
9733 * NEWS: Mention new behaviour of the history filename.
9734 * top.c (write_history_p): Add comment.
9735 (show_write_history_p): Add header comment, give a different
9736 message when history writing is on, but the history filename is
9737 empty.
9738 (history_filename): Add comment.
9739 (history_filename_empty): New function.
9740 (show_history_filename): Add header comment, give a different
9741 message when the filename is empty.
9742 (init_history): Compare history_filename against nullptr, and only
9743 read history if the filename is not empty.
9744 (set_history_filename): Add header comment, and only make
9745 non-empty filenames absolute.
9746 (init_main): Make the filename argument to 'set history filename'
9747 optional.
9748
81b86b97
CB
97492020-03-02 Christian Biesinger <cbiesinger@google.com>
9750
9751 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9752 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9753 (fetch_fp_register): Update.
9754 (fetch_fp_regs): Update.
9755 (store_fp_register): Update.
9756 (store_fp_regs): Update.
9757 (arm_netbsd_nat_target::read_description): New function.
9758 (fetch_elfcore_registers): Update.
9759
24ed6739
AB
97602020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9761
9762 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9763 general_thread if the stop reply is missing a thread-id.
9764 (remote_target::process_stop_reply): Use the first non-exited
9765 thread if the target didn't pass a thread-id.
9766 * infrun.c (do_target_wait): Move call to
9767 switch_to_inferior_no_thread to ....
9768 (do_target_wait_1): ... here.
9769
a84bb2a0
JT
97702020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9771
9772 * debuginfod-support.c: Include defs.h first.
9773
658dadf0
TV
97742020-02-28 Tom de Vries <tdevries@suse.de>
9775
9776 * symfile.c (set_initial_language): Use default language for lookup.
9777
4ebe4877
SM
97782020-02-28 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9781 reader variable, pass `this` to read_cutu_die_from_dwo.
9782
e5da1139
AM
97832020-02-27 Aaron Merey <amerey@redhat.com>
9784
9785 * source.c (open_source_file): Check for nullptr when computing
9786 srcpath.
9787
317f7127
TT
97882020-02-27 Tom Tromey <tromey@adacore.com>
9789
9790 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9791 member.
9792 (dwarf2_add_field): Don't update nfields.
9793 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9794
3104d9ee
AB
97952020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9796
9797 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9798 abs.
9799
b83470bf
TT
98002020-02-26 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9803 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9804 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9805 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9806 per_cu_data.
9807
edfe0a0c
TT
98082020-02-26 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2/index-write.c (psym_index_map): Change type.
9811 (add_address_entry_worker, write_one_signatured_type)
9812 (recursively_count_psymbols, recursively_write_psymbols)
9813 (class debug_names, psyms_seen_size, write_gdbindex)
9814 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9815
0d79cdc4
AM
98162020-02-26 Aaron Merey <amerey@redhat.com>
9817
9818 * Makefile.in: Handle optional debuginfod support.
9819 * NEWS: Update.
9820 * README: Add --with-debuginfod summary.
9821 * config.in: Regenerate.
9822 * configure: Regenerate.
9823 * configure.ac: Handle optional debuginfod support.
9824 * debuginfod-support.c: debuginfod helper functions.
9825 * debuginfod-support.h: Ditto.
9826 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9827 summary.
9828 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9829 when a dwz file cannot be found.
9830 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9831 debuginfo file cannot be found.
9832 * source.c (open_source_file): Query debuginfod servers when a
9833 source file cannot be found.
9834 * top.c (print_gdb_configuration): Include
9835 --{with,without}-debuginfod in the output.
9836
b65ce565
JG
98372020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9838
9839 * thread.c (thr_try_catch_cmd): Print thread name.
9840
d4c9a4f8
SM
98412020-02-26 Simon Marchi <simon.marchi@efficios.com>
9842
9843 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9844 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9845 dwarf2_fetch_die_type_sect_off): Move to...
9846 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9847 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9848 dwarf2_fetch_die_type_sect_off): ... here.
9849 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9850 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9851 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9852
0dce4280
TV
98532020-02-26 Tom de Vries <tdevries@suse.de>
9854
9855 PR gdb/25603
9856 * symfile.c (set_initial_language): Exit-early if
9857 language_mode == language_mode_manual.
9858
450a1bfc
SM
98592020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9860
9861 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9862 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9863 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9864
9e80cfa1
AB
98652020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9866
9867 * gdbtypes.c (create_array_type_with_stride): Handle negative
9868 array strides.
9869 * valarith.c (value_subscripted_rvalue): Likewise.
9870
09624f1f
LM
98712020-02-25 Luis Machado <luis.machado@linaro.org>
9872
9873 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9874
8cb5117c
SM
98752020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9876
9877 * loc.h (dwarf2_get_die_type): Move to...
9878 * read.h (dwarf2_get_die_type): ... here.
9879 * read.c (dwarf2_get_die_type): Move doc to header.
9880
c325c44e
JB
98812020-02-25 Joel Brobecker <brobecker@adacore.com>
9882
9883 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9884 'gnulib/Makefile.in' to the list.
9885
4ac93832
TT
98862020-02-24 Tom Tromey <tom@tromey.com>
9887
9888 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9889 Remove.
9890 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9891 XOBNEWVEC.
9892
197400e8
TT
98932020-02-24 Tom Tromey <tom@tromey.com>
9894
9895 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9896 New method.
9897 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9898 (dw2_do_instantiate_symtab, dw2_get_file_names)
9899 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9900
76935768
TT
99012020-02-24 Tom Tromey <tom@tromey.com>
9902
9903 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9904 make_scoped_restore.
9905 (dwarf2_psymtab::read_symtab): Don't clear
9906 reading_partial_symbols.
9907
a88ef40d
TV
99082020-02-24 Tom de Vries <tdevries@suse.de>
9909
9910 PR gdb/25592
9911 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9912
c9af6521
TV
99132020-02-24 Tom de Vries <tdevries@suse.de>
9914
9915 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9916 commands layout next/prev/regs.
9917
5707a07a
TT
99182020-02-22 Tom Tromey <tom@tromey.com>
9919
9920 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9921 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9922
3b0fb49e
TT
99232020-02-22 Tom Tromey <tom@tromey.com>
9924
9925 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9926
283be8bf
TT
99272020-02-22 Tom Tromey <tom@tromey.com>
9928
9929 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9930 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9931 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9932 * tui/tui.c (_initialize_tui): Add usage text.
9933
ca793b96
TT
99342020-02-22 Tom Tromey <tom@tromey.com>
9935
9936 * tui/tui-win.c (tui_set_focus_command)
9937 (tui_set_win_height_command): Use error_no_arg.
9938 (_initialize_tui_win): Update help text.
9939 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9940
432b5c40
TT
99412020-02-22 Tom Tromey <tom@tromey.com>
9942
9943 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9944 * tui/tui-disasm.h (struct tui_disasm_window)
9945 <display_start_addr>: Declare.
9946 * tui/tui-source.h (struct tui_source_window)
9947 <display_start_addr>: Declare.
9948 * tui/tui-winsource.h (struct tui_source_window_base)
9949 <show_source_line, display_start_addr>: New methods.
9950 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9951 Rename and move to protected section.
9952 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9953 (tui_source_window_base::do_erase_source_content): Update.
9954 (tui_source_window_base::show_source_line): Now a method.
9955 (tui_source_window_base::show_source_content)
9956 (tui_source_window_base::tui_source_window_base)
9957 (tui_source_window_base::rerender)
9958 (tui_source_window_base::refill)
9959 (tui_source_window_base::do_scroll_horizontal)
9960 (tui_source_window_base::set_is_exec_point_at)
9961 (tui_source_window_base::update_breakpoint_info)
9962 (tui_source_window_base::update_exec_info): Update.
9963 * tui/tui-source.c (tui_source_window::set_contents)
9964 (tui_source_window::showing_source_p)
9965 (tui_source_window::do_scroll_vertical)
9966 (tui_source_window::location_matches_p)
9967 (tui_source_window::line_is_displayed): Update.
9968 (tui_source_window::display_start_addr): New method.
9969 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9970 (tui_disasm_window::do_scroll_vertical)
9971 (tui_disasm_window::location_matches_p): Update.
9972 (tui_disasm_window::display_start_addr): New method.
9973
01b1af32
TT
99742020-02-22 Tom Tromey <tom@tromey.com>
9975
9976 * NEWS: Add entry for gdb.register_window_type.
9977 * tui/tui-layout.h (window_factory): New typedef.
9978 (tui_register_window): Declare.
9979 * tui/tui-layout.c (saved_tui_windows): New global.
9980 (tui_apply_current_layout): Use it.
9981 (tui_register_window): New function.
9982 * python/python.c (do_start_initialization): Call
9983 gdbpy_initialize_tui.
9984 (python_GdbMethods): Add "register_window_type" function.
9985 * python/python-internal.h (gdbpy_register_tui_window)
9986 (gdbpy_initialize_tui): Declare.
9987 * python/py-tui.c: New file.
9988 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9989
fc96d20b
TT
99902020-02-22 Tom Tromey <tom@tromey.com>
9991
9992 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9993
935c78c0
TT
99942020-02-22 Tom Tromey <tom@tromey.com>
9995
9996 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9997 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9998 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9999 (tui_set_win_focus_to): Move from tui-win.c.
10000
0240c8f1
TT
100012020-02-22 Tom Tromey <tom@tromey.com>
10002
10003 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10004 functions.
10005 (known_window_types): New global.
10006 (tui_get_window_by_name): Reimplement.
10007 (initialize_known_windows): New function.
10008 (validate_window_name): Rewrite.
10009 (_initialize_tui_layout): Call initialize_known_windows.
10010
fdb01f0c
TT
100112020-02-22 Tom Tromey <tom@tromey.com>
10012
10013 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10014 Remove constants.
10015 * tui/tui-winsource.h (struct tui_source_window_base)
10016 <tui_source_window_base>: Remove parameter.
10017 * tui/tui-winsource.c
10018 (tui_source_window_base::tui_source_window_base): Remove
10019 parameter.
10020 (tui_source_window_base::refill): Update.
10021 * tui/tui-stack.h (struct tui_locator_window)
10022 <tui_locator_window>: Update.
10023 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10024 Default the constructor.
10025 * tui/tui-regs.h (struct tui_data_item_window)
10026 <tui_data_item_window>: Default the constructor.
10027 (struct tui_data_window) <tui_data_window>: Likewise.
10028 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10029 Default the constructor.
10030 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10031 Default the constructor.
10032 <type>: Remove.
10033 (struct tui_win_info) <tui_win_info>: Default the constructor.
10034 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10035 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10036 Default the constructor.
10037
865a5aec
TT
100382020-02-22 Tom Tromey <tom@tromey.com>
10039
10040 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10041 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10042 * tui/tui-win.c (tui_resize_all): Don't call
10043 tui_delete_invisible_windows.
10044 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10045 done.
10046 (tui_set_layout): Update.
10047 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10048 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10049 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10050
e098d18c
TT
100512020-02-22 Tom Tromey <tom@tromey.com>
10052
10053 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10054 correctly.
10055
eb9c8874
TT
100562020-02-22 Tom Tromey <tom@tromey.com>
10057
10058 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10059
7eed1a8e
TT
100602020-02-22 Tom Tromey <tom@tromey.com>
10061
10062 * tui/tui-winsource.h (struct tui_source_window_iterator)
10063 <inner_iterator>: New etytypedef.
10064 <tui_source_window_iterator>: Take "end" parameter.
10065 <tui_source_window_iterator>: Take iterator.
10066 <operator*, advance>: Update.
10067 <m_iter>: Change type.
10068 <m_end>: New field.
10069 (struct tui_source_windows) <begin, end>: Update.
10070 * tui/tui-layout.c (tui_windows): New global.
10071 (tui_apply_current_layout): Clear tui_windows.
10072 (tui_layout_window::apply): Update tui_windows.
10073 * tui/tui-data.h (tui_windows): Declare.
10074 (all_tui_windows): Now inline function.
10075 (class tui_window_iterator, struct all_tui_windows): Remove.
10076
7c043ba6
TT
100772020-02-22 Tom Tromey <tom@tromey.com>
10078
10079 PR tui/17850:
10080 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10081 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10082 "height" argument.
10083 (class tui_layout_window) <get_sizes>: Likewise.
10084 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10085 argument.
10086 <get_sizes>: Add "height" argument.
10087 <m_vertical>: New field.
10088 * tui/tui-layout.c (tui_layout_split::clone): Update.
10089 (tui_layout_split::get_sizes): Add "height" argument.
10090 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10091 (tui_new_layout_command): Parse "-horizontal".
10092 (_initialize_tui_layout): Update help string.
10093 (tui_layout_split::specification): Add "-horizontal" when needed.
10094 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10095 argument.
10096 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10097 New methods.
10098
6bc56648
TT
100992020-02-22 Tom Tromey <tom@tromey.com>
10100
10101 * tui/tui-layout.h (enum tui_adjust_result): New.
10102 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10103 (class tui_layout_window) <adjust_size>: Return
10104 tui_adjust_result. Rewrite.
10105 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10106 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10107
c22fef7e
TT
101082020-02-22 Tom Tromey <tom@tromey.com>
10109
10110 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10111 parameter and return types.
10112 (class tui_layout_base) <specification>: Add "depth".
10113 (class tui_layout_window) <specification>: Add "depth".
10114 (class tui_layout_split) <specification>: Add "depth".
10115 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10116 and return types.
10117 (tui_new_layout_command): Parse sub-layouts.
10118 (_initialize_tui_layout): Update help string.
10119 (tui_layout_window::specification): Add "depth".
10120 (add_layout_command): Update.
10121
ee325b61
TT
101222020-02-22 Tom Tromey <tom@tromey.com>
10123
10124 * NEWS: Add "tui new-layout" item.
10125 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10126 Add new-layout command to help text.
10127 (validate_window_name): New function.
10128 (tui_new_layout_command): New function.
10129 (_initialize_tui_layout): Register "new-layout".
10130 (tui_layout_window::specification): New method.
10131 (tui_layout_window::specification): New method.
10132 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10133 method.
10134 (class tui_layout_window) <specification>: New method.
10135 (class tui_layout_split) <specification>: New method.
10136
416eb92d
TT
101372020-02-22 Tom Tromey <tom@tromey.com>
10138
10139 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10140 * tui/tui-win.c (window_name_completer): Update comment.
10141 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10142 Declare method.
10143 (class tui_layout_window) <replace_window>: Likewise.
10144 (class tui_layout_split) <replace_window>: Likewise.
10145 (tui_set_layout): Don't declare.
10146 (tui_set_initial_layout): Declare function.
10147 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10148 (asm_regs_layout): New globals.
10149 (tui_current_layout, show_layout): Remove.
10150 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10151 (find_layout, tui_apply_layout): New function.
10152 (layout_completer): Remove.
10153 (tui_next_layout): Reimplement.
10154 (tui_next_layout_command): New function.
10155 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10156 (tui_regs_layout): Reimplement.
10157 (tui_regs_layout_command): New function.
10158 (extract_display_start_addr): Rewrite.
10159 (next_layout, prev_layout): Remove.
10160 (tui_layout_window::replace_window): New method.
10161 (tui_layout_split::replace_window): New method.
10162 (destroy_layout): New function.
10163 (layout_list): New global.
10164 (add_layout_command): New function.
10165 (initialize_layouts): Update.
10166 (tui_layout_command): New function.
10167 (_initialize_tui_layout): Install "layout" commands.
10168 * tui/tui-data.h (enum tui_layout_type): Remove.
10169 (tui_current_layout): Don't declare.
10170
0dbc2fc7
TT
101712020-02-22 Tom Tromey <tom@tromey.com>
10172
10173 * tui/tui-regs.c (tui_reg_layout): Remove.
10174 (tui_reg_command): Use tui_regs_layout.
10175 * tui/tui-layout.h (tui_reg_command): Declare.
10176 * tui/tui-layout.c (tui_reg_command): New function.
10177
5afe342e
TT
101782020-02-22 Tom Tromey <tom@tromey.com>
10179
10180 * tui/tui.c (tui_rl_delete_other_windows): Call
10181 tui_remove_some_windows.
10182 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10183 Declare method.
10184 (class tui_layout_window) <remove_windows>: New method.
10185 (class tui_layout_split) <remove_windows>: Declare.
10186 (tui_remove_some_windows): Declare.
10187 * tui/tui-layout.c (tui_remove_some_windows): New function.
10188 (tui_layout_split::remove_windows): New method.
10189
427326a8
TT
101902020-02-22 Tom Tromey <tom@tromey.com>
10191
10192 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10193 * tui/tui-layout.h (tui_next_layout): Declare.
10194 * tui/tui-layout.c (tui_next_layout): New function.
10195
3fe12b6d
TT
101962020-02-22 Tom Tromey <tom@tromey.com>
10197
10198 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10199 correct coordinates.
10200
59b8b5d2
TT
102012020-02-22 Tom Tromey <tom@tromey.com>
10202
10203 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10204 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10205 DATA_WIN case.
10206
2a3d458b
TT
102072020-02-22 Tom Tromey <tom@tromey.com>
10208
10209 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10210 TUI_DISASM_WIN, not tui_win_list.
10211
3f0cbb04
TT
102122020-02-22 Tom Tromey <tom@tromey.com>
10213
10214 * valprint.c (generic_val_print_enum_1)
10215 (val_print_type_code_flags): Style member names.
10216 * rust-lang.c (val_print_struct, rust_print_enum)
10217 (rust_print_struct_def, rust_internal_print_type): Style member
10218 names.
10219 * p-valprint.c (pascal_object_print_value_fields): Style member
10220 names. Only call fprintf_symbol_filtered for static members.
10221 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10222 * f-valprint.c (f_val_print): Style member names.
10223 * f-typeprint.c (f_type_print_base): Style member names.
10224 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10225 call fprintf_symbol_filtered for static members.
10226 (cp_print_class_member): Style member names.
10227 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10228 member names.
10229 * ada-valprint.c (ada_print_scalar): Style enum names.
10230 (ada_val_print_enum): Likewise.
10231 * ada-typeprint.c (print_enum_type): Style enum names.
10232
d4d947ae
TT
102332020-02-21 Tom Tromey <tom@tromey.com>
10234
10235 * psympriv.h (struct partial_symtab): Update comment.
10236
e94e944b
TT
102372020-02-21 Tom Tromey <tromey@adacore.com>
10238
10239 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10240 type is CORE_ADDR.
10241
1eb73179
TV
102422020-02-21 Tom de Vries <tdevries@suse.de>
10243
10244 PR gdb/25534
10245 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10246 if dependencies[i]->user != NULL.
10247
4f180d53
AT
102482020-02-21 Ali Tamur <tamur@google.com>
10249
10250 * dwarf2/read.c (dwarf2_name): Add null check.
10251
22b6cd70
TT
102522020-02-20 Tom Tromey <tom@tromey.com>
10253
10254 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10255 ">=", in binary search.
10256 (dwarf2_find_containing_comp_unit): New overload.
10257 (run_test): New self-test.
10258 (_initialize_dwarf2_read): Register new test.
10259
bd0cf5a6
NC
102602020-02-20 Nelson Chu <nelson.chu@sifive.com>
10261
10262 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10263 * riscv-tdep.h: Likewise.
10264 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10265 rv32-only CSR.
10266 * features/riscv/64bit-csr.xml: Regenerated.
10267
3f702acd
SDJ
102682020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10269 Tom Tromey <tom@tromey.com>
10270
10271 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10272 of 'fputc_unfiltered'.
10273 (putchar_unfiltered): Call 'fputc_unfiltered'.
10274 (fputc_unfiltered): Call 'fputs_unfiltered'.
10275
d13c7322
AB
102762020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10277
10278 * config.in: Regenerate.
10279 * configure: Regenerate.
10280 * configure.ac: Add --with-python-libdir option.
10281 * main.c: Use WITH_PYTHON_LIBDIR.
10282
869d8950
TT
102832020-02-19 Tom Tromey <tom@tromey.com>
10284
10285 * symtab.c (general_symbol_info::compute_and_set_names): Use
10286 obstack_strndup. Simplify call to symbol_set_demangled_name.
10287
298e9637
SM
102882020-02-19 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * dwarf2/read.c (allocate_signatured_type_table,
10291 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10292 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10293 Remove objfile parameter, update all callers.
10294
08410482
DE
102952020-02-19 Doug Evans <dje@google.com>
10296
10297 PR rust/25535
10298 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10299 rust_enum_variant calculation.
10300
dfdeeca1
TT
103012020-02-19 Tom Tromey <tromey@adacore.com>
10302
10303 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10304
2ef5453b
TT
103052020-02-19 Tom Tromey <tromey@adacore.com>
10306
10307 * ada-lang.c (cache_symbol): Use obstack_strdup.
10308
9f1528a1
AB
103092020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10310
10311 * configure: Regenerate.
10312
d3c22fa8
TT
103132020-02-19 Tom Tromey <tromey@adacore.com>
10314
10315 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10316 NULL check.
10317
bf84f706
MR
103182020-02-19 Maciej W. Rozycki <macro@wdc.com>
10319
10320 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10321
d1c9b20f
AB
103222020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10325 if GDBSERVER is not defined.
10326 (riscv_tdesc_cache): Likewise, also store const target_desc.
10327 (STATIC_IN_GDB): Define.
10328 (riscv_create_target_description): Update declaration with
10329 STATIC_IN_GDB.
10330 (riscv_lookup_target_description): New function, only define if
10331 GDBSERVER is not defined.
10332 * arch/riscv.h (riscv_create_target_description): Declare only
10333 when GDBSERVER is defined.
10334 (riscv_lookup_target_description): New declaration when GDBSERVER
10335 is not defined.
10336 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10337 (riscv_linux_read_features): ...this, and return
10338 riscv_gdbarch_features instead of target_desc.
10339 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10340 (riscv_linux_read_description): Rename to...
10341 (riscv_linux_read_features): ...this.
10342 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10343 Update to use riscv_gdbarch_features and
10344 riscv_lookup_target_description.
10345 * riscv-tdep.c (riscv_find_default_target_description): Use
10346 riscv_lookup_target_description instead of
10347 riscv_create_target_description.
10348
373d7ac0
SM
103492020-02-18 Simon Marchi <simon.marchi@efficios.com>
10350
10351 * valprint.c (generic_val_print_enum_1): When printing a flag
10352 enum with value 0 and there is no enumerator with value 0, print
10353 just "0" instead of "(unknown: 0x0)".
10354
b29a2df0
SM
103552020-02-18 Simon Marchi <simon.marchi@efficios.com>
10356
10357 * valprint.c (generic_val_print_enum_1): Print unknown part of
10358 flag enum in hex.
10359
6740f0cc
SM
103602020-02-18 Simon Marchi <simon.marchi@efficios.com>
10361
10362 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10363 flag enums to contain duplicate enumerators.
10364 * valprint.c (generic_val_print_enum_1): Update comment.
10365
edd45eb0
SM
103662020-02-18 Simon Marchi <simon.marchi@efficios.com>
10367
10368 * dwarf2/read.c: Include "count-one-bits.h".
10369 (update_enumeration_type_from_children): If an enumerator has
10370 multiple bits set, don't treat the enumeration as a "flag enum".
10371 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10372 of flag enums have 0 or 1 bit set.
10373
6d0cf446
BE
103742020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10375
10376 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10377 conversion.
10378 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10379 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10380 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10381 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10382 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10383
7001c1b7
SM
103842020-02-18 Simon Marchi <simon.marchi@efficios.com>
10385
10386 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10387
fdb61c6c
SM
103882020-02-14 Simon Marchi <simon.marchi@efficios.com>
10389
10390 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10391 displaced_step_closure_up.
10392 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10393 (struct displaced_step_closure_up):
10394 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10395 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10396 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10397 Likewise.
10398 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10399 * gdbarch.c, gdbarch.h: Re-generate.
10400 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10401 displaced_step_closure_up.
10402 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10403 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10404 * infrun.h (displaced_step_closure_up): New type alias.
10405 (struct displaced_step_inferior_state) <step_closure>: Change
10406 type to displaced_step_closure_up.
10407 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10408 displaced_step_closure_up.
10409 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10410
a4a38eb4
TT
104112020-02-14 Tom Tromey <tom@tromey.com>
10412
10413 * minidebug.c (gnu_debug_key): New global.
10414 (find_separate_debug_file_in_section): Use it.
10415
e8217e61
SM
104162020-02-14 Simon Marchi <simon.marchi@efficios.com>
10417
10418 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10419 std::unique_ptr.
10420 * gdbarch.c: Re-generate.
10421 * gdbarch.h: Re-generate.
10422 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10423 change.
10424 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10425 type to std::unique_ptr.
10426 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10427 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10428 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10429 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10430 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10431 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10432 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10433 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10434 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10435
d8d83535
SM
104362020-02-14 Simon Marchi <simon.marchi@efficios.com>
10437
10438 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10439 std::unique_ptr.
10440 (displaced_step_clear): Rename to...
10441 (displaced_step_reset): ... this. Just call displaced->reset ().
10442 (displaced_step_clear_cleanup): Rename to...
10443 (displaced_step_reset_cleanup): ... this.
10444 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10445 (displaced_step_fixup): Likewise.
10446 (resume_1): Likewise.
10447 (handle_inferior_event): Restore child's memory before calling
10448 displaced_step_fixup on the parent.
10449 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10450 to std::unique_ptr.
10451 <step_closure>: Change type to std::unique_ptr.
10452
5f661e03
SM
104532020-02-14 Simon Marchi <simon.marchi@efficios.com>
10454
10455 * arm-tdep.c: Include count-one-bits.h.
10456 (cleanup_block_store_pc): Use count_one_bits.
10457 (cleanup_block_load_pc): Use count_one_bits.
10458 (arm_copy_block_xfer): Use count_one_bits.
10459 (thumb2_copy_block_xfer): Use count_one_bits.
10460 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10461 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10462 (thumb_get_next_pcs_raw): Use count_one_bits.
10463 (arm_get_next_pcs_raw): Use count_one_bits_l.
10464 * arch/arm.c (bitcount): Remove.
10465 * arch/arm.h (bitcount): Remove.
10466
8084e579
TT
104672020-02-14 Tom Tromey <tromey@adacore.com>
10468
10469 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10470 Update.
10471 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10472 * dwarf2/loc.c (call_site_find_chain_1): Return
10473 unique_xmalloc_ptr.
10474 (call_site_find_chain): Likewise.
10475
258bf0ee
RB
104762020-02-14 Richard Biener <rguenther@suse.de>
10477
10478 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10479 on expression with division operators.
10480
f98a8458
AKS
104812020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10482
10483 * MAINTAINERS (Write After Approval): Adding myself.
10484
d1437c0e
TT
104852020-02-12 Tom Tromey <tom@tromey.com>
10486
10487 * event-loop.c (event_data, gdb_event, event_handler_func):
10488 Remove.
10489
3d4560f7
TT
104902020-02-12 Tom Tromey <tom@tromey.com>
10491
10492 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10493 (dwarf2_frame_objfile_data): Add comment.
10494 (find_comp_unit, set_comp_unit): New functions.
10495 (dwarf2_frame_find_fde): Use find_comp_unit.
10496 (dwarf2_build_frame_info): Use set_comp_unit.
10497
21982304
TT
104982020-02-12 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10501 (comp_unit): Don't initialize objfile.
10502 (execute_cfa_program): Add text_offset parameter.
10503 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10504 (dwarf2_frame_cache): Update.
10505 (dwarf2_build_frame_info): Don't set "objfile" member.
10506
4debb237
TT
105072020-02-12 Tom Tromey <tom@tromey.com>
10508
10509 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10510 (decode_frame_entry): Likewise.
10511 (dwarf2_build_frame_info): Update.
10512
0d404d44
TT
105132020-02-12 Tom Tromey <tom@tromey.com>
10514
10515 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10516 (decode_frame_entry_1): Use the comp_unit obstack.
10517
a7a3ae5c
TT
105182020-02-12 Tom Tromey <tom@tromey.com>
10519
10520 * dwarf2/frame.c (struct comp_unit): Add initializers and
10521 constructor.
10522 (dwarf2_frame_objfile_data): Store a comp_unit.
10523 (dwarf2_frame_find_fde): Update.
10524 (dwarf2_build_frame_info): Use "new".
10525
a9d65418
TT
105262020-02-12 Tom Tromey <tom@tromey.com>
10527
10528 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10529 (dwarf2_fde_table): Typedef for std::vector.
10530 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10531 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10532 (decode_frame_entry): Update.
10533 (dwarf2_build_frame_info): Use "new".
10534
7559c217
CB
105352020-02-12 Christian Biesinger <cbiesinger@google.com>
10536
10537 * arm-tdep.c (arm_gdbarch_init): Update.
10538 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10539 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10540 have_neon, is_m>: Change to bool.
10541
aeefc73c
CB
105422020-02-12 Christian Biesinger <cbiesinger@google.com>
10543
10544 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10545
d27b8e5f
TT
105462020-02-12 Tom Tromey <tom@tromey.com>
10547
10548 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10549
cd5900f3
HD
105502020-02-12 Hannes Domani <ssbssa@yahoo.de>
10551
10552 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10553 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10554
f056b22b
TT
105552020-02-11 Tom Tromey <tom@tromey.com>
10556
10557 * psymtab.h: Update comment.
10558
f92ff6b5
TT
105592020-02-11 Tom Tromey <tom@tromey.com>
10560
10561 * gdb_obstack.h (struct auto_obstack): Use
10562 DISABLE_COPY_AND_ASSIGN.
10563
3fd6912b
TT
105642020-02-11 Tom Tromey <tom@tromey.com>
10565
10566 * dwarf2/frame.h (struct objfile): Don't forward declare.
10567
69ed9b74
CB
105682020-02-11 Christian Biesinger <cbiesinger@google.com>
10569
10570 * cris-tdep.c (cris_supply_gregset): Change signature to match
10571 what struct regset expects.
10572 (cris_regset): New struct.
10573 (fetch_core_registers): Remove.
10574 (cris_iterate_over_regset_sections): New function.
10575 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10576 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10577
bda874f6
CB
105782020-02-11 Christian Biesinger <cbiesinger@google.com>
10579
10580 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10581 registers.
10582
754e1564
CB
105832020-02-11 Christian Biesinger <cbiesinger@google.com>
10584
10585 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10586
8ddd8e0e
SM
105872020-02-11 Simon Marchi <simon.marchi@efficios.com>
10588
10589 * configure: Re-generate.
10590
898e7f60
SM
105912020-02-11 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * configure: Re-generate.
10594
58df732b
SM
105952020-02-11 Simon Marchi <simon.marchi@efficios.com>
10596
10597 * acinclude: Update warning.m4 path.
10598 * warning.m4: Move to gdbsupport.
10599
da5bd37e
TT
106002020-02-11 Tom Tromey <tromey@adacore.com>
10601
10602 * remote.c (remote_console_output): Update.
10603 * printcmd.c (printf_command): Update.
10604 * event-loop.c (gdb_wait_for_event): Update.
10605 * linux-nat.c (sigchld_handler): Update.
10606 * remote-sim.c (gdb_os_write_stdout): Update.
10607 (gdb_os_flush_stdout): Update.
10608 (gdb_os_flush_stderr): Update.
10609 (gdb_os_write_stderr): Update.
10610 * exceptions.c (print_exception): Update.
10611 * remote-fileio.c (remote_fileio_func_read): Update.
10612 (remote_fileio_func_write): Update.
10613 * tui/tui.c (tui_enable): Update.
10614 * tui/tui-interp.c (tui_interp::init): Update.
10615 * utils.c (init_page_info): Update.
10616 (putchar_unfiltered, fputc_unfiltered): Update.
10617 (gdb_flush): Update.
10618 (emit_style_escape): Update.
10619 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10620 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10621 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10622 (stderr_file::write): Update.
10623 (stderr_file::puts): Update.
10624 * ui-file.h (ui_file_isatty, ui_file_write)
10625 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10626 (ui_file_puts): Don't declare.
10627
85f0dd3c
TV
106282020-02-10 Tom de Vries <tdevries@suse.de>
10629
10630 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10631 sentinel to char *.
10632
2e927613
TV
106332020-02-09 Tom de Vries <tdevries@suse.de>
10634
10635 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10636 filename if it matches "<artificial>".
10637
6bafc845
HD
106382020-02-09 Hannes Domani <ssbssa@yahoo.de>
10639
10640 * windows-tdep.c (struct enum_value_name): New struct.
10641 (create_enum): New function.
10642 (windows_get_siginfo_type): Create and use enum types.
10643
7928d571
HD
106442020-02-09 Hannes Domani <ssbssa@yahoo.de>
10645
10646 * NEWS: Mention $_siginfo support for Windows.
10647 * windows-nat.c (handle_exception): Set siginfo_er.
10648 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10649 (windows_xfer_siginfo): New function.
10650 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10651 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10652 (init_windows_gdbarch_data): New function.
10653 (get_windows_gdbarch_data): New function.
10654 (windows_get_siginfo_type): New function.
10655 (windows_init_abi): Register windows_get_siginfo_type.
10656 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10657
6751ebae
TT
106582020-02-08 Tom Tromey <tom@tromey.com>
10659
10660 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10661 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10662 <keep>: Declare method.
10663 <m_keep>: Remove member.
10664 <~cutu_reader>: Remove.
10665 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10666 (cutu_reader::cutu_reader): Update.
10667 (cutu_reader::keep): Rename from ~cutu_reader.
10668 (process_psymtab_comp_unit, build_type_psymtabs_1)
10669 (process_skeletonless_type_unit, load_partial_comp_unit)
10670 (load_full_comp_unit, dwarf2_read_addr_index)
10671 (read_signatured_type): Update.
10672
135f5437
TT
106732020-02-08 Tom Tromey <tom@tromey.com>
10674
10675 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10676 "want_partial_unit" parameter.
10677 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10678 Inline check for DW_TAG_partial_unit.
10679 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10680
9f66ff1c
TT
106812020-02-08 Tom Tromey <tom@tromey.com>
10682
10683 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10684 read.c.
10685 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10686 read.c.
10687
c8a7a66f
TT
106882020-02-08 Tom Tromey <tom@tromey.com>
10689
10690 * dwarf2/read.c (read_address): Move to comp-unit.c.
10691 (dwarf2_rnglists_process, dwarf2_ranges_process)
10692 (read_attribute_value, dwarf_decode_lines_1)
10693 (var_decode_location, decode_locdesc): Update.
10694 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10695 read.c. Remove "cu" parameter.
10696 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10697 method.
10698
8266302d
TT
106992020-02-08 Tom Tromey <tom@tromey.com>
10700
10701 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10702 (read_indirect_line_string): Update.
10703 * dwarf2/comp-unit.c (read_offset): Remove.
10704 (read_comp_unit_head): Update.
10705 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10706 method.
10707 (read_offset): Don't declare.
10708
4057dfde
TT
107092020-02-08 Tom Tromey <tom@tromey.com>
10710
10711 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10712 * dwarf2/read.c (struct comp_unit_head): Move to
10713 dwarf2/comp-unit.h.
10714 (enum class rcuh_kind): Move to comp-unit.h.
10715 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10716 (read_comp_unit_head, error_check_comp_unit_head)
10717 (read_and_check_comp_unit_head): Move to comp-unit.c.
10718 (read_offset, dwarf_unit_type_name): Likewise.
10719 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10720 (cutu_reader::cutu_reader, read_call_site_scope)
10721 (find_partial_die, follow_die_offset): Update.
10722 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10723
24aa364d
TT
107242020-02-08 Tom Tromey <tom@tromey.com>
10725
10726 * dwarf2/read.c (read_offset_1): Move to leb.c.
10727 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10728 (dwarf_decode_macro_bytes): Update.
10729 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10730 * dwarf2/leb.h (read_offset): Declare.
10731
2c7d5afc
TT
107322020-02-08 Tom Tromey <tom@tromey.com>
10733
10734 * dwarf2/read.c (dwarf2_section_size): Remove.
10735 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10736 Update.
10737 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10738
4075cb26
TT
107392020-02-08 Tom Tromey <tom@tromey.com>
10740
10741 * dwarf2/read.c (read_initial_length): Move to leb.c.
10742 * dwarf2/leb.h (read_initial_length): Declare.
10743 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10744 handle_nonstd parameter.
10745 * dwarf2/frame.c (read_initial_length): Remove.
10746 (decode_frame_entry_1): Update.
10747
09ba997f
TT
107482020-02-08 Tom Tromey <tom@tromey.com>
10749
10750 * dwarf2/loc.c (dwarf2_find_location_expression)
10751 (dwarf_evaluate_loc_desc::get_tls_address)
10752 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10753 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10754 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10755 (dwarf2_compile_property_to_c)
10756 (dwarf2_loc_desc_get_symbol_read_needs)
10757 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10758 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10759 (loclist_describe_location, loclist_tracepoint_var_ref)
10760 (loclist_generate_c_location): Update.
10761 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10762 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10763 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10764 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10765 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10766 (dwarf2_per_cu_data::addr_size)
10767 (dwarf2_per_cu_data::ref_addr_size)
10768 (dwarf2_per_cu_data::text_offset)
10769 (dwarf2_per_cu_data::addr_type): Now methods.
10770 (per_cu_header_read_in): Make per_cu "const".
10771 (dwarf2_version): Remove.
10772 (dwarf2_per_cu_data::int_type): Now a method.
10773 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10774 (set_die_type, read_array_type, read_subrange_index_type)
10775 (read_tag_string_type, read_subrange_type): Update.
10776 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10777 offset_size, ref_addr_size, text_offset, addr_type, version,
10778 objfile, int_type, addr_sized_int_type>: Declare methods.
10779
96c738c0
TT
107802020-02-08 Tom Tromey <tom@tromey.com>
10781
10782 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10783 Move earlier.
10784
8fdd972c
TT
107852020-02-08 Tom Tromey <tom@tromey.com>
10786
10787 * dwarf2/read.h (dwarf_line_debug): Declare.
10788 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10789 * dwarf2/read.c: Move line_header code to new files.
10790 (dwarf_line_debug): No longer static.
10791 * dwarf2/line-header.c: New file.
10792 * dwarf2/line-header.h: New file.
10793
03075812
TT
107942020-02-08 Tom Tromey <tom@tromey.com>
10795
10796 * dwarf2/read.c (struct line_header) <file_full_name,
10797 file_file_name>: Return unique_xmalloc_ptr.
10798 (line_header::file_file_name): Update.
10799 (line_header::file_full_name): Update.
10800 (dw2_get_file_names_reader): Update.
10801 (macro_start_file): Update.
10802
bb822404
TT
108032020-02-08 Tom Tromey <tom@tromey.com>
10804
10805 * dwarf2/read.c (struct line_header) <file_full_name,
10806 file_file_name>: Declare methods.
10807 (dw2_get_file_names_reader): Update.
10808 (file_file_name): Now a method.
10809 (file_full_name): Likewise.
10810 (macro_start_file): Update.
10811
009b64fc
TT
108122020-02-08 Tom Tromey <tom@tromey.com>
10813
10814 * dwarf2/read.c (dwarf_always_disassemble)
10815 (show_dwarf_always_disassemble): Move to loc.c.
10816 (_initialize_dwarf2_read): Move "always-disassemble" registration
10817 to loc.c.
10818 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10819 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10820 static.
10821 (show_dwarf_always_disassemble): Move from read.c.
10822 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10823
5895093f
TT
108242020-02-08 Tom Tromey <tom@tromey.com>
10825
10826 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10827 (create_quick_file_names_table): Return htab_up.
10828 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10829 Update.
10830 * dwarf2/read.h (struct dwarf2_per_objfile)
10831 <quick_file_names_table>: Now htab_up.
10832
b3b32279
TT
108332020-02-08 Tom Tromey <tom@tromey.com>
10834
10835 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10836
1d33d811
TT
108372020-02-08 Tom Tromey <tom@tromey.com>
10838
10839 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10840 Rewrite.
10841 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10842 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10843 (abbrev_table::abbrev_table): No longer inline.
10844 (ABBREV_HASH_SIZE): Remove.
10845 (abbrev_table::m_abbrevs): Now an htab_up.
10846
86de1d91
TT
108472020-02-08 Tom Tromey <tom@tromey.com>
10848
10849 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10850 (cutu_reader): Update.
10851 (build_type_psymtabs_1): Update.
10852 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10853 (abbrev_table::alloc_abbrev): Update.
10854 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10855 (abbrev_table::read): New static method, renamed from
10856 abbrev_table_read_table.
10857 (abbrev_table::alloc_abbrev)
10858 (abbrev_table::add_abbrev): Now private.
10859 (abbrev_table::abbrev_table): Now private.
10860 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10861
0335378b
TT
108622020-02-08 Tom Tromey <tom@tromey.com>
10863
10864 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10865 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10866 htab_up.
10867
48b490f2
TT
108682020-02-08 Tom Tromey <tom@tromey.com>
10869
10870 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10871 htab_up.
10872 (lookup_dwo_unit_in_dwp): Update.
10873 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10874 on obstack.
10875
bc68fb19
TT
108762020-02-08 Tom Tromey <tom@tromey.com>
10877
10878 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10879 obstack.
10880
d15acc42
TT
108812020-02-08 Tom Tromey <tom@tromey.com>
10882
10883 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10884 line_header_hash.
10885 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10886 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10887 Change type to htab_up.
10888
eaa5fa8b
TT
108892020-02-08 Tom Tromey <tom@tromey.com>
10890
10891 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10892 htab_up. Don't allocate on obstack.
10893 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10894 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10895 Change type to htab_up.
10896
b0b6a987
TT
108972020-02-08 Tom Tromey <tom@tromey.com>
10898
10899 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10900 Change type to htab_up.
10901 * dwarf2/read.c (create_signatured_type_table_from_index)
10902 (create_signatured_type_table_from_debug_names)
10903 (create_all_type_units, add_type_unit)
10904 (lookup_dwo_signatured_type, lookup_signatured_type)
10905 (process_skeletonless_type_unit): Update.
10906 (create_debug_type_hash_table, create_debug_types_hash_table):
10907 Change type of types_htab.
10908 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10909 htab_up. Don't allocate on obstack.
10910 (create_cus_hash_table): Change type of cus_htab parameter.
10911 (struct dwo_file) <cus, tus>: Now htab_up.
10912 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10913 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10914 (queue_and_load_all_dwo_tus): Update.
10915 * dwarf2/index-write.c (write_gdbindex): Update.
10916 (write_debug_names): Update.
10917
39856def
TT
109182020-02-08 Tom Tromey <tom@tromey.com>
10919
10920 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10921 dwarf2/read.c. Remove "next" member. Add constructor ntad
10922 destructor.
10923 (struct dwarf2_per_objfile) <queue>: New member.
10924 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10925 dwarf2/read.h.
10926 (dwarf2_queue, dwarf2_queue_tail): Remove.
10927 (class dwarf2_queue_guard): Add parameter to constructor. Use
10928 DISABLE_COPY_AND_ASSIGN.
10929 <m_per_objfile>: New member.
10930 <~dwarf2_queue_guard>: Rewrite.
10931 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10932 Update.
10933 (~dwarf2_queue_item): New.
10934
3e225074
TT
109352020-02-08 Tom Tromey <tom@tromey.com>
10936
10937 * dwarf2/read.c (struct die_info) <has_children>: New member.
10938 (dw2_get_file_names_reader): Remove has_children.
10939 (dw2_get_file_names): Update.
10940 (read_cutu_die_from_dwo): Remove has_children.
10941 (cutu_reader::init_tu_and_read_dwo_dies)
10942 (cutu_reader::cutu_reader): Update.
10943 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10944 Remove has_children.
10945 (build_type_psymtabs_1, process_skeletonless_type_unit)
10946 (load_partial_comp_unit, load_full_comp_unit): Update.
10947 (create_dwo_cu_reader): Remove has_children.
10948 (create_cus_hash_table, read_die_and_children): Update.
10949 (read_full_die_1,read_full_die): Remove has_children.
10950 (read_signatured_type): Update.
10951 (class cutu_reader) <has_children>: Remove.
10952
82ca8957
TT
109532020-02-08 Tom Tromey <tom@tromey.com>
10954
10955 * dwarf2/expr.c: Rename from dwarf2expr.c.
10956 * dwarf2/expr.h: Rename from dwarf2expr.h.
10957 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10958 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10959 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10960 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10961 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10962 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10963 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10964 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10965 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10966 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10967 * dwarf2/loc.c: Rename from dwarf2loc.c.
10968 * dwarf2/loc.h: Rename from dwarf2loc.h.
10969 * dwarf2/read.c: Rename from dwarf2read.c.
10970 * dwarf2/read.h: Rename from dwarf2read.h.
10971 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10972 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10973 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10974 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10975 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10976 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10977 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10978 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10979 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10980 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10981 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10982 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10983 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10984 Update.
10985 * Makefile.in (COMMON_SFILES): Update.
10986 (HFILES_NO_SRCDIR): Update.
10987
9e35d499
TT
109882020-02-08 Tom Tromey <tom@tromey.com>
10989
10990 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10991 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10992
1eba2311
TT
109932020-02-08 Tom Tromey <tom@tromey.com>
10994
10995 * dwarf2read.h (struct die_info): Don't declare.
10996
e41c2da2
TT
109972020-02-08 Tom Tromey <tom@tromey.com>
10998
10999 * dwarf2read.h (die_info_ptr): Remove typedef.
11000
4fc6c0d5
TT
110012020-02-08 Tom Tromey <tom@tromey.com>
11002
11003 * dwarf2read.c (read_call_site_scope)
11004 (handle_data_member_location, dwarf2_add_member_fn)
11005 (mark_common_block_symbol_computed, read_common_block)
11006 (attr_to_dynamic_prop, partial_die_info::read)
11007 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11008 (dwarf2_symbol_mark_computed, set_die_type): Update.
11009 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11010 method.
11011 (attr_form_is_block): Don't declare.
11012 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11013
cd6c91b4
TT
110142020-02-08 Tom Tromey <tom@tromey.com>
11015
11016 * dwarf2read.c (dwarf2_find_base_address, )
11017 (read_call_site_scope, rust_containing_type)
11018 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11019 (handle_data_member_location, dwarf2_add_member_fn)
11020 (get_alignment, read_structure_type, process_structure_scope)
11021 (mark_common_block_symbol_computed, read_common_block)
11022 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11023 (partial_die_info::read, read_attribute_value, new_symbol)
11024 (lookup_die_type, dwarf2_get_ref_die_offset)
11025 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11026 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11027 (dwarf2_symbol_mark_computed): Update.
11028 * dwarf2/attribute.h (struct attribute) <value_as_address,
11029 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11030 methods.
11031 (value_as_address, attr_form_is_section_offset)
11032 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11033 * dwarf2/attribute.c (attribute::value_as_address)
11034 (attribute::form_is_section_offset, attribute::form_is_constant)
11035 (attribute::form_is_ref): Now methods.
11036
162dce55
TT
110372020-02-08 Tom Tromey <tom@tromey.com>
11038
11039 * dwarf2read.c (struct attribute, DW_STRING)
11040 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11041 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11042 (attr_form_is_block, attr_form_is_section_offset)
11043 (attr_form_is_constant, attr_form_is_ref): Move.
11044 * dwarf2/attribute.h: New file.
11045 * dwarf2/attribute.c: New file, from dwarf2read.c.
11046 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11047
3054dd54
TT
110482020-02-08 Tom Tromey <tom@tromey.com>
11049
11050 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11051 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11052 Move.
11053 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11054 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11055 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11056 abbrev.c.
11057 * dwarf2/abbrev.h: New file.
11058 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11059 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11060
96b79293
TT
110612020-02-08 Tom Tromey <tom@tromey.com>
11062
11063 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11064 (dwarf2_section_size, dwarf2_get_section_info)
11065 (create_signatured_type_table_from_debug_names)
11066 (create_addrmap_from_aranges, read_debug_names_from_section)
11067 (get_gdb_index_contents_from_section, read_comp_unit_head)
11068 (error_check_comp_unit_head, read_abbrev_offset)
11069 (create_debug_type_hash_table, init_cu_die_reader)
11070 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11071 (read_comp_units_from_section, create_cus_hash_table)
11072 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11073 (create_dwp_v2_section, dwarf2_rnglists_process)
11074 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11075 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11076 (read_indirect_string_from_dwz, read_addr_index_1)
11077 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11078 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11079 (fill_in_loclist_baton): Update.
11080 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11081 get_containing_section, get_bfd_owner, get_bfd_section,
11082 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11083 (dwarf2_read_section, get_section_name, get_section_file_name)
11084 (get_containing_section, get_section_bfd_owner)
11085 (get_section_bfd_section, get_section_name, get_section_file_name)
11086 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11087 declare.
11088 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11089 (dwarf2_section_info::get_bfd_owner)
11090 (dwarf2_section_info::get_bfd_section)
11091 (dwarf2_section_info::get_name)
11092 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11093 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11094 (dwarf2_section_info::read): Now methods.
11095 * dwarf-index-write.c (class debug_names): Update.
11096
2c86cff9
TT
110972020-02-08 Tom Tromey <tom@tromey.com>
11098
11099 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11100 Move to dwarf2/section.h.
11101 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11102 (get_section_bfd_section, get_section_name)
11103 (get_section_file_name, get_section_id, get_section_flags)
11104 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11105 dwarf2/section.c.
11106 * dwarf2/section.h: New file.
11107 * dwarf2/section.c: New file, from dwarf2read.c.
11108 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11109
f4382c45
TT
111102020-02-08 Tom Tromey <tom@tromey.com>
11111
11112 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11113 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11114 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11115 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11116 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11117 * dwarf2/leb.h: New file, from dwarf2read.c.
11118 * dwarf2/leb.c: New file, from dwarf2read.c.
11119 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11120 Remove.
11121 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11122 (COMMON_SFILES): Add dwarf2/leb.c.
11123
01840b7a
JB
111242020-02-08 Joel Brobecker <brobecker@adacore.com>
11125
11126 GDB 9.1 released.
11127
dfcb27e4
IB
111282020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11129
11130 PR gdb/25190:
aac66a4c
SM
11131 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11132 * gdb/remote.c (remote_console_output): Update.
11133 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11134 (ui_file_puts): ...this.
11135 * gdb/ui-file.h (ui_file_puts): Add declaration.
11136 * gdb/utils.c (emit_style_escape): Update.
11137 (flush_wrap_buffer): Update.
11138 (fputs_maybe_filtered): Update.
11139 (fputs_unfiltered): Add function.
dfcb27e4 11140
faa17681
IB
111412020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11142
aac66a4c
SM
11143 * gdb/event-loop.c (gdb_wait_for_event): Update.
11144 * gdb/printcmd.c (printf_command): Update.
11145 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11146 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11147 (gdb_os_flush_stderr): Update.
11148 * gdb/remote.c (remote_console_output): Update.
11149 * gdb/ui-file.c (gdb_flush): Rename to...
11150 (ui_file_flush): ...this.
11151 (stderr_file::write): Update.
11152 (stderr_file::puts): Update.
11153 * gdb/ui-file.h (gdb_flush): Rename to...
11154 (ui_file_flush): ...this.
11155 * gdb/utils.c (gdb_flush): Add function.
11156 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11157
5abbbe1d
TT
111582020-02-07 Tom Tromey <tromey@adacore.com>
11159
11160 PR breakpoints/24915:
11161 * source.c (find_and_open_source): Do not check basenames_may_differ.
11162
919adfe8
TT
111632020-02-07 Tom Tromey <tom@tromey.com>
11164
11165 * README: Update gdbserver documentation.
11166 * gdbserver: Move to top level.
11167 * configure.tgt (build_gdbserver): Remove.
11168 * configure.ac: Remove --enable-gdbserver.
11169 * configure: Rebuild.
11170 * Makefile.in (distclean): Don't mention gdbserver.
11171
1d5d29e7
SV
111722020-02-06 Shahab Vahedi <shahab@synopsys.com>
11173
11174 * source-cache.c (source_cache::ensure): Surround
11175 get_plain_source_lines with a try/catch.
11176 (source_cache::get_line_charpos): Get rid of try/catch
11177 and only check for the return value of "ensure".
11178 * tui/tui-source.c (tui_source_window::set_contents):
11179 Simplify "nlines" calculation.
11180
6eb1129c
SV
111812020-02-06 Shahab Vahedi <shahab@synopsys.com>
11182
11183 * MAINTAINERS (Write After Approval): Add myself.
11184
c6a42d11
CB
111852020-02-05 Christian Biesinger <cbiesinger@google.com>
11186
11187 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11188 function call.
11189
c8ecdda6
CB
111902020-02-05 Christian Biesinger <cbiesinger@google.com>
11191
11192 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11193
f6480e70
MR
111942020-02-05 Maciej W. Rozycki <macro@wdc.com>
11195
11196 * nat/riscv-linux-tdesc.h: New file.
11197 * nat/riscv-linux-tdesc.c: New file, taking code from...
11198 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11199 ... here.
11200 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11201 NATDEPFILES.
11202
dcc9fbc6
AB
112032020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11204
11205 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11206 we don't set the fake simulator ptid to the null_ptid.
11207
719546c4
SM
112082020-02-03 Simon Marchi <simon.marchi@efficios.com>
11209
11210 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11211 * gdbthread.h (class thread_info) <resumed>: Likewise.
11212 * infrun.c (resume_1): Likewise.
11213 (proceed): Likewise.
11214 (infrun_thread_stop_requested): Likewise.
11215 (stop_all_threads): Likewise.
11216 (handle_inferior_event): Likewise.
11217 (restart_threads): Likewise.
11218 (finish_step_over): Likewise.
11219 (keep_going_stepped_thread): Likewise.
11220 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11221 (linux_handle_extended_wait): Likewise.
11222 * record-btrace.c (get_thread_current_frame_id): Likewise.
11223 * record-full.c (record_full_wait_1): Likewise.
11224 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11225 * target.c (target_resume): Likewise.
11226 * thread.c (set_running_thread): Likewise.
11227
e409c542
AKS
112282020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11229
11230 * f-valprint.c (f77_print_array_1): Changed datatype of index
11231 variable to LONGEST from int to enable it to contain bound
11232 values correctly.
11233
ee98c0da
MR
112342020-02-03 Maciej W. Rozycki <macro@wdc.com>
11235
11236 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11237 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11238 offsets according to FLEN determined.
11239 (riscv_linux_nat_target::read_description): Determine FLEN
11240 dynamically.
11241 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11242 according to FLEN determined.
11243 (riscv_linux_nat_target::store_registers): Likewise.
11244
aa66aac4
SV
112452020-02-01 Shahab Vahedi <shahab@synopsys.com>
11246
11247 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11248 when reg->group is empty and reggroup is not.
11249
fd9faca8
TT
112502020-01-31 Tom Tromey <tromey@adacore.com>
11251
11252 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11253 Call beneath target's mourn_inferior after unpushing.
11254
42330a68
AB
112552020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 PR tui/9765
11258 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11259 have enough lines to fill the screen, still return the lowest
11260 address we found.
11261
7a27a45b
AB
112622020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11263
11264 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11265 '-', '<', and '>' commands.
11266
c47f70e2
PA
112672020-01-29 Pedro Alves <palves@redhat.com>
11268 Sergio Durigan Junior <sergiodj@redhat.com>
11269
11270 * infcmd.c (construct_inferior_arguments): Assert that
11271 'argc' is greater than 0.
11272
5133a315
LM
112732020-01-29 Luis Machado <luis.machado@linaro.org>
11274
11275 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11276 (BRK_INSN_MASK): Define to 0xd4200000.
11277 (aarch64_program_breakpoint_here_p): New function.
11278 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11279 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11280 breakpoint.c.
11281 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11282 breakpoint.h
11283 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11284 call gdbarch_program_breakpoint_here_p.
11285 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11286 default_program_breakpoint_here_p, changed return type to bool and
11287 simplified.
11288 * breakpoint.h (program_breakpoint_here): Moved prototype to
11289 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11290 return type to bool.
11291 * gdbarch.c: Regenerate.
11292 * gdbarch.h: Regenerate.
11293 * gdbarch.sh (program_breakpoint_here_p): New method.
11294 * infrun.c (handle_signal_stop): Call
11295 gdbarch_program_breakpoint_here_p.
11296
168f8c6b
TT
112972020-01-26 Tom Tromey <tom@tromey.com>
11298
11299 * ctfread.c (struct ctf_fp_info): Reindent.
11300 (_initialize_ctfread): Remove.
11301
128a391f
TT
113022020-01-26 Tom Tromey <tom@tromey.com>
11303
11304 * psymtab.c (partial_map_expand_apply)
11305 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11306 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11307 (psym_print_stats, psym_expand_symtabs_for_function)
11308 (psym_map_symbol_filenames, psym_map_matching_symbols)
11309 (psym_expand_symtabs_matching)
11310 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11311 (maintenance_check_psymtabs): Use new methods.
11312 * psympriv.h (struct partial_symtab) <readin_p,
11313 get_compunit_symtab>: New methods.
11314 <readin, compunit_symtab>: Remove members.
11315 (struct standard_psymtab): New.
11316 (struct legacy_psymtab): Derive from standard_psymtab.
11317 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11318 standard_psymtab.
11319 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11320
0494dbec
TT
113212020-01-26 Tom Tromey <tom@tromey.com>
11322
11323 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11324 read_dependencies. Add assert.
11325 * psymtab.c (partial_symtab::read_dependencies): New method.
11326 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11327 method.
11328 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11329 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11330 read_dependencies.
11331 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11332 Add assert.
11333
8566b89b
TT
113342020-01-26 Tom Tromey <tom@tromey.com>
11335
11336 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11337 Call expand_psymtab.
11338 (xcoff_read_symtab): Call expand_psymtab.
11339 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11340 legacy_expand_psymtab.
11341 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11342 method.
11343 (struct legacy_psymtab) <expand_psymtab>: Implement.
11344 <legacy_expand_psymtab>: New member.
11345 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11346 (parse_partial_symbols): Set legacy_expand_psymtab.
11347 (psymtab_to_symtab_1): Change argument order. Call
11348 expand_psymtab.
11349 (new_psymtab): Set legacy_expand_psymtab.
11350 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11351 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11352 expand_psymtab.
11353 (dwarf2_psymtab::expand_psymtab): Rename from
11354 psymtab_to_symtab_1. Call expand_psymtab.
11355 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11356 (dbx_end_psymtab): Likewise.
11357 (dbx_psymtab_to_symtab_1): Change argument order. Call
11358 expand_psymtab.
11359 (dbx_read_symtab): Call expand_psymtab.
11360 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11361 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11362 (ctf_psymtab::read_symtab): Call expand_psymtab.
11363
077cbab2
TT
113642020-01-26 Tom Tromey <tom@tromey.com>
11365
11366 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11367 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11368 messages.
11369 * mdebugread.c (mdebug_read_symtab): Remove prints.
11370 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11371 assert.
11372 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11373
891813be
TT
113742020-01-26 Tom Tromey <tom@tromey.com>
11375
11376 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11377 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11378 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11379 legacy_symtab.
11380 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11381 * psymtab.c (psymtab_to_symtab): Call method.
11382 (dump_psymtab): Update.
11383 * psympriv.h (struct partial_symtab): Add virtual destructor.
11384 <read_symtab>: New method.
11385 (struct legacy_symtab): New.
11386 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11387 (struct pst_map) <pst>: Now a legacy_psymtab.
11388 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11389 (new_psymtab): Use legacy_psymtab.
11390 * dwarf2read.h (struct dwarf2_psymtab): New.
11391 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11392 * dwarf2read.c (dwarf2_create_include_psymtab)
11393 (dwarf2_build_include_psymtabs, create_type_unit_group)
11394 (create_partial_symtab, process_psymtab_comp_unit_reader)
11395 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11396 (set_partial_user): Use dwarf2_psymtab.
11397 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11398 (psymtab_to_symtab_1, process_full_comp_unit)
11399 (process_full_type_unit, dwarf2_ranges_read)
11400 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11401 (dwarf_decode_lines): Use dwarf2_psymtab.
11402 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11403 (add_address_entry_worker, write_one_signatured_type)
11404 (recursively_count_psymbols, recursively_write_psymbols)
11405 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11406 (write_debug_names): Likewise.
11407 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11408 <pst>: Now a legacy_psymtab.
11409 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11410 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11411 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11412 * ctfread.c (struct ctf_psymtab): New.
11413 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11414 ctf_psymtab.
11415 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11416 (create_partial_symtab): Return a ctf_psymtab.
11417 (scan_partial_symbols): Update.
11418
c3693a1d
TT
114192020-01-26 Tom Tromey <tom@tromey.com>
11420
11421 * xcoffread.c (xcoff_start_psymtab): Use new.
11422 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11423 renamed from start_psymtab_common.
11424 * psympriv.h (struct partial_symtab): Add new constructor.
11425 (start_psymtab_common): Don't declare.
11426 * mdebugread.c (parse_partial_symbols): Use new.
11427 * dwarf2read.c (create_partial_symtab): Use new.
11428 * dbxread.c (start_psymtab): Use new.
11429 * ctfread.c (create_partial_symtab): Use new.
11430
32caafd0
TT
114312020-01-26 Tom Tromey <tom@tromey.com>
11432
11433 * xcoffread.c (xcoff_end_psymtab): Use new.
11434 * psymtab.c (start_psymtab_common): Use new.
11435 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11436 Update.
11437 * psympriv.h (struct partial_symtab): Add parameters to
11438 constructor. Don't inline.
11439 (allocate_psymtab): Don't declare.
11440 * mdebugread.c (new_psymtab): Use new.
11441 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11442 * dbxread.c (dbx_end_psymtab): Use new.
11443
abaa2f23
TT
114442020-01-26 Tom Tromey <tom@tromey.com>
11445
11446 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11447 allocate_psymtab. Update documentation.
11448 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11449 allocate_psymtab. Do not use new.
11450 (allocate_psymtab): Use new. Update.
11451
6d94535f
TT
114522020-01-26 Tom Tromey <tom@tromey.com>
11453
11454 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11455 * psymtab.c (psym_print_stats): Update.
11456 * psympriv.h (struct partial_symtab) <readin,
11457 psymtabs_addrmap_supported, anonymous>: Now bool.
11458 * mdebugread.c (psymtab_to_symtab_1): Update.
11459 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11460 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11461 (process_full_comp_unit, process_full_type_unit): Update.
11462 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11463 * ctfread.c (psymtab_to_symtab): Update.
11464
6f17252b
TT
114652020-01-26 Tom Tromey <tom@tromey.com>
11466
11467 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11468 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11469 * psymtab.c (psymtab_storage): Delete psymtabs.
11470 (psymtab_storage::allocate_psymtab): Use new.
11471 (psymtab_storage::discard_psymtab): Use delete.
11472 * psympriv.h (struct partial_symtab): Add constructor and
11473 initializers.
11474
f6f1cebc
TT
114752020-01-26 Tom Tromey <tom@tromey.com>
11476
11477 * machoread.c: Do not include psympriv.h.
11478
e47e48f6
PW
114792020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11480
11481 * NEWS: Mention the new option and the set/show commands.
11482
a2fedca9
PW
114832020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11484
11485 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11486 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11487 (validate_exec_file): New variables, enums, functions.
11488 (exec_file_locate_attach, print_section_info): Style the filenames.
11489 (_initialize_exec): Install show_exec_file_mismatch_command and
11490 set_exec_file_mismatch_command.
11491 * gdbcore.h (validate_exec_file): Declare.
11492 * infcmd.c (attach_command): Call validate_exec_file.
11493 * remote.c ( remote_target::remote_add_inferior): Likewise.
11494
7ffa82e1
AB
114952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11496
11497 * frame.c (find_frame_sal): Move call to get_next_frame into more
11498 inner scope.
11499 * inline-frame.c (inilne_state) <inline_state>: Update argument
11500 types.
11501 (inilne_state) <skipped_symbol>: Rename to...
11502 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11503 (skip_inline_frames): Build vector of skipped symbols and use this
11504 to reate the inline_state.
11505 (inline_skipped_symbol): Add a comment and some assertions, fetch
11506 skipped symbol from the list.
11507
3d92a3e3
AB
115082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11509
11510 * buildsym.c (lte_is_less_than): Delete.
11511 (buildsym_compunit::end_symtab_with_blockvector): Create local
11512 lambda function to sort line table entries, and use
11513 std::stable_sort instead of std::sort.
11514 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11515 markers when looking for a previous line.
11516
94a72be7
AB
115172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11518
11519 * dwarf2read.c (lnp_state_machine::record_line): Include
11520 end_sequence parameter in debug print out. Record the line if we
11521 are at an end_sequence marker even if it's not the start of a
11522 statement.
11523 * symmisc.c (maintenance_print_one_line_table): Print end of
11524 sequence markers with 'END' not '0'.
11525
53af73bf
PA
115262020-01-24 Pedro Alves <palves@redhat.com>
11527
11528 PR gdb/25410
11529 * thread.c (scoped_restore_current_thread::restore): Use
11530 switch_to_inferior_no_thread.
11531 * exec.c: Include "progspace-and-thread.h".
11532 (add_target_sections, remove_target_sections):
11533 scoped_restore_current_pspace_and_thread instead of
11534 scoped_restore_current_thread.
11535 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11536 and aspace to the inferior before calling clone_program_space.
11537 Remove stale comment.
11538
3050c6f4
CB
115392020-01-24 Christian Biesinger <cbiesinger@google.com>
11540
11541 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11542 (arm_netbsd_nat_target::fetch_registers): ...this.
11543 (arm_nbsd_nat_target::store_registers): Rename to...
11544 (arm_netbsd_nat_target::store_registers): ...this.
11545
73685c7e
CB
115462020-01-24 Christian Biesinger <cbiesinger@google.com>
11547
11548 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11549 register_t.
11550
89203d40
CB
115512020-01-24 Christian Biesinger <cbiesinger@google.com>
11552
11553 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11554 Update comment.
11555 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11556 Likewise.
11557 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11558 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11559 the correct replacement (iterate_over_regset_sections).
11560 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11561 Update comment.
11562
1ba1ac88
AB
115632020-01-24 Graham Markall <graham.markall@embecosm.com>
11564
11565 PR gdb/23718
11566 * gdb/python/python.c (execute_gdb_command): Call
11567 async_enable_stdin in catch block.
11568
f3364a6d
AB
115692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11570
11571 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11572 SWITCH_THRU_ALL_UIS.
11573
733d0a67
AB
115742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11575
11576 PR tui/9765
11577 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11578 comment, add extra parameter, and update to store previous symbol
11579 when appropriate.
11580 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11581 add extra parameter.
11582 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11583 remove unneeded parameter, add try/catch around gdb_print_insn,
11584 rewrite to add items to asm_lines vector.
11585 (tui_find_backward_disassembly_start_address): New function.
11586 (tui_find_disassembly_address): Updated throughout.
11587 (tui_disasm_window::set_contents): Update for changes to
11588 tui_disassemble.
11589 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11590 number of lines to scroll.
11591
b3b3bada
SM
115922020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11593
11594 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11595 (SECT_OFF_DATA): Likewise.
11596 (SECT_OFF_RODATA): Likewise.
11597 (SECT_OFF_TEXT): Likewise.
11598 (SECT_OFF_BSS): Likewise.
11599 (struct objfile) <text_section_offset, data_section_offset>: New
11600 methods.
11601 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11602 objfile::text_section_offset.
11603 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11604 * coffread.c (coff_symtab_read): Likewise.
11605 (enter_linenos): Likewise.
11606 (process_coff_symbol): Likewise.
11607 * ctfread.c (get_objfile_text_range): Likewise.
11608 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11609 Use objfile::data_section_offset.
11610 * dwarf2-frame.c (execute_cfa_program): Use
11611 objfile::text_section_offset.
11612 (dwarf2_frame_find_fde): Likewise.
11613 * dwarf2read.c (create_addrmap_from_index): Likewise.
11614 (create_addrmap_from_aranges): Likewise.
11615 (dw2_find_pc_sect_compunit_symtab): Likewise.
11616 (process_psymtab_comp_unit_reader): Likewise.
11617 (add_partial_symbol): Likewise.
11618 (add_partial_subprogram): Likewise.
11619 (process_full_comp_unit): Likewise.
11620 (read_file_scope): Likewise.
11621 (read_func_scope): Likewise.
11622 (read_lexical_block_scope): Likewise.
11623 (read_call_site_scope): Likewise.
11624 (dwarf2_rnglists_process): Likewise.
11625 (dwarf2_ranges_process): Likewise.
11626 (dwarf2_ranges_read): Likewise.
11627 (dwarf_decode_lines_1): Likewise.
11628 (new_symbol): Likewise.
11629 (dwarf2_fetch_die_loc_sect_off): Likewise.
11630 (dwarf2_per_cu_text_offset): Likewise.
11631 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11632 * hppa-tdep.c (read_unwind_info): Likewise.
11633 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11634 * psympriv.h (struct partial_symtab): Likewise.
11635 * psymtab.c (find_pc_sect_psymtab): Likewise.
11636 * solib-svr4.c (enable_break): Likewise.
11637 * stap-probe.c (relocate_address): Use
11638 objfile::data_section_offset.
11639 * xcoffread.c (enter_line_range): Use
11640 objfile::text_section_offset.
11641 (read_xcoff_symtab): Likewise.
11642
ab53f382
SM
116432020-01-23 Simon Marchi <simon.marchi@efficios.com>
11644
11645 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11646 declaration to narrower scopes.
11647
e7eee665
SM
116482020-01-23 Simon Marchi <simon.marchi@efficios.com>
11649
11650 * darwin-nat.h (struct darwin_exception_msg, enum
11651 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11652 Move up.
11653 (class darwin_nat_target) <wait_1, check_new_threads,
11654 decode_exception_message, decode_message, stop_inferior,
11655 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11656 * darwin-nat.c (darwin_check_new_threads): Rename to...
11657 (darwin_nat_target::check_new_threads): ... this.
11658 (darwin_suspend_inferior_it): Remove.
11659 (darwin_decode_exception_message): Rename to...
11660 (darwin_nat_target::decode_exception_message): ... this.
11661 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11662 (darwin_decode_message): Rename to...
11663 (darwin_nat_target::decode_message): ... this.
11664 (cancel_breakpoint): Rename to...
11665 (darwin_nat_target::cancel_breakpoint): ... this.
11666 (darwin_wait): Rename to...
11667 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11668 instead of iterate_over_inferiors.
11669 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11670 (darwin_stop_inferior): Rename to...
11671 (darwin_nat_target::stop_inferior): ... this.
11672 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11673 (darwin_init_thread_list): Rename to...
11674 (darwin_nat_target::init_thread_list): ... this.
11675 (darwin_ptrace_him): Rename to...
11676 (darwin_nat_target::ptrace_him): ... this.
11677 (darwin_nat_target::create_inferior): Pass lambda function to
11678 fork_inferior.
11679 (darwin_nat_target::detach): Call stop_inferior instead of
11680 darwin_stop_inferior.
11681 * fork-inferior.h (fork_inferior): Change init_trace_fun
11682 parameter to gdb::function_view.
11683 * fork-inferior.c (fork_inferior): Likewise.
11684
c162ed3e
HD
116852020-01-23 Hannes Domani <ssbssa@yahoo.de>
11686
11687 * i386-cygwin-tdep.c (core_process_module_section): Update.
11688 * windows-nat.c (struct lm_info_windows): Add text_offset.
11689 (windows_xfer_shared_libraries): Update.
11690 * windows-tdep.c (windows_xfer_shared_library):
11691 Add text_offset_cached argument.
11692 * windows-tdep.h (windows_xfer_shared_library): Update.
11693
a1237872
SM
116942020-01-21 Simon Marchi <simon.marchi@efficios.com>
11695
11696 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11697
b3ee6dd9
SM
116982020-01-21 Simon Marchi <simon.marchi@efficios.com>
11699
11700 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11701 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11702 replace with range-based for.
11703 (gdbsim_interrupt_inferior): Remove.
11704 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11705 with a range-based for. Inline code from
11706 gdbsim_interrupt_inferior.
11707
f9fac3c8
SM
117082020-01-21 Simon Marchi <simon.marchi@efficios.com>
11709
11710 * infrun.c (proceed): Fix indentation.
11711
f6474de9
TT
117122020-01-21 Tom Tromey <tromey@adacore.com>
11713
11714 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11715 * python/python.c (python_extension_ops): Update.
11716 (gdbpy_colorize): New function.
11717 * python/lib/gdb/__init__.py (colorize): New function.
11718 * extension.h (ext_lang_colorize): Declare.
11719 * extension.c (ext_lang_colorize): New function.
11720 * extension-priv.h (struct extension_language_ops) <colorize>: New
11721 member.
11722 * cli/cli-style.c (_initialize_cli_style): Update help text.
11723
f0c702d4
LM
117242020-01-21 Luis Machado <luis.machado@linaro.org>
11725
11726 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11727 <cond>: Change type to bool.
11728 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11729 (aarch64_displaced_step_cb): Likewise.
11730 (aarch64_displaced_step_tb): Likewise.
11731
1ab139e5
LM
117322020-01-21 Luis Machado <luis.machado@linaro.org>
11733
11734 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11735 output.
11736
0c271889
LM
117372020-01-21 Luis Machado <luis.machado@linaro.org>
11738
11739 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11740 <pc_adjust>: Adjust the documentation.
11741 (aarch64_displaced_step_fixup): Check if PC really moved before
11742 adjusting it.
11743
4d89c1c7
TT
117442020-01-19 Tom Tromey <tom@tromey.com>
11745
11746 * disasm.c (~gdb_disassembler): New destructor.
11747 (gdb_buffered_insn_length): Call disassemble_free_target.
11748 * disasm.h (class gdb_disassembler): Declare destructor. Use
11749 DISABLE_COPY_AND_ASSIGN.
11750
c0ab21c2
TT
117512020-01-19 Tom Tromey <tom@tromey.com>
11752
11753 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11754 (die_reader_func_ftype): Remove.
11755 (cutu_reader): New class.
11756 (dw2_get_file_names_reader): Remove "data" parameter.
11757 (dw2_get_file_names): Use cutu_reader.
11758 (create_debug_type_hash_table): Update.
11759 (read_cutu_die_from_dwo): Update comment.
11760 (lookup_dwo_unit): Add dwo_name parameter.
11761 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11762 die_reader_func_ftype and data parameters.
11763 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11764 Remove die_reader_func_ftype and data parameters.
11765 (~cutu_reader): New; from init_cutu_and_read_dies.
11766 (cutu_reader::cutu_reader): Rename from
11767 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11768 and data parameters.
11769 (init_cutu_and_read_dies_simple): Remove.
11770 (struct process_psymtab_comp_unit_data): Remove.
11771 (process_psymtab_comp_unit_reader): Remove data parameter; add
11772 want_partial_unit and pretend_language parameters.
11773 (process_psymtab_comp_unit): Use cutu_reader.
11774 (build_type_psymtabs_reader): Remove data parameter.
11775 (build_type_psymtabs_1): Use cutu_reader.
11776 (process_skeletonless_type_unit): Likewise.
11777 (load_partial_comp_unit_reader): Remove.
11778 (load_partial_comp_unit): Use cutu_reader.
11779 (load_full_comp_unit_reader): Remove.
11780 (load_full_comp_unit): Use cutu_reader.
11781 (struct create_dwo_cu_data): Remove.
11782 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11783 dwo_unit parameters.
11784 (create_cus_hash_table): Use cutu_reader.
11785 (struct dwarf2_read_addr_index_data): Remove.
11786 (dwarf2_read_addr_index_reader): Remove.
11787 (dwarf2_read_addr_index): Use cutu_reader.
11788 (read_signatured_type_reader): Remove.
11789 (read_signatured_type): Use cutu_reader.
11790
45bbae5c
TT
117912020-01-19 Tom Tromey <tom@tromey.com>
11792
11793 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11794 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11795 (tui_wrefresh): Declare.
11796 * tui/tui-wingeneral.c (suppress_output): New global.
11797 (tui_suppress_output, ~tui_suppress_output): New constructor and
11798 destructor.
11799 (tui_wrefresh): New function.
11800 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11801 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11802 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11803 method.
11804 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11805 tui_wrefresh.
11806 (tui_data_window::no_refresh): New method.
11807 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11808 (tui_reg_command): Use tui_suppress_output
11809 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11810 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11811 method.
11812 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11813
4f13c1c0
TT
118142020-01-19 Tom Tromey <tom@tromey.com>
11815
11816 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11817 Handle case where symtab is null.
11818
fa47e446
SM
118192020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11820
11821 * linux-fork.c (one_fork_p): Simplify.
11822
26f42329
SM
118232020-01-17 Simon Marchi <simon.marchi@efficios.com>
11824
11825 * top.c (struct qt_args): Remove.
11826 (kill_or_detach): Change return type to void, replace `void *`
11827 parameter with a proper one.
11828 (print_inferior_quit_action): Likewise.
11829 (quit_confirm): Use range-based for loop to iterate over inferiors.
11830 (quit_force): Likewise.
11831
a9ac81b1
SM
118322020-01-17 Simon Marchi <simon.marchi@efficios.com>
11833
11834 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11835 `void *` parameter with proper parameters.
11836 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11837 (print_one_inferior): Change return type to void, replace `void *`
11838 parameter with proper parameters.
11839 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11840 inferiors.
11841 (get_other_inferior): Remove.
11842 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11843 inferiors.
11844
788eca49
SM
118452020-01-17 Simon Marchi <simon.marchi@efficios.com>
11846
11847 * mi/mi-interp.c (report_initial_inferior): Remove.
11848 (mi_interp::init): Use range-based for to iterate over inferiors.
11849
d9bc85b6
SM
118502020-01-17 Simon Marchi <simon.marchi@efficios.com>
11851
11852 * python/py-inferior.c (build_inferior_list): Remove.
11853 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11854
40c94099
CB
118552020-01-16 Christian Biesinger <cbiesinger@google.com>
11856
11857 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11858 (btrace_stitch_trace): Likewise.
11859 * charset.c (intermediate_encoding): Likewise (vaild).
11860 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11861 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11862 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11863
e0cdfe3c
HD
118642020-01-16 Hannes Domani <ssbssa@yahoo.de>
11865
11866 * windows-tdep.c (windows_get_tlb_type):
11867 Add rtl_user_process_parameters type.
11868
790f1718 118692020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11870 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11871
11872 PR build/24805
11873 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11874 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11875 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11876 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11877 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11878 (ps_plog): Redeclare exported functions with default visibility.
11879
3112ed97
NA
118802020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11881
11882 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11883 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11884
8dc3273e
SM
118852020-01-15 Simon Marchi <simon.marchi@efficios.com>
11886
11887 * infcmd.c (post_create_inferior): Use get_thread_regcache
11888 instead of get_current_regcache.
11889
ff47f4f0
TT
118902020-01-14 Tom Tromey <tom@tromey.com>
11891
11892 PR symtab/12535:
11893 * python/python.c (gdbpy_decode_line): Treat empty string the same
11894 as no argument.
11895
975f45b7
TT
118962020-01-14 Tom Tromey <tom@tromey.com>
11897
11898 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11899
25e57356
TT
119002020-01-14 Tom Tromey <tom@tromey.com>
11901
11902 * nat/linux-btrace.c: Don't include <config.h>.
11903 * nat/linux-ptrace.c: Don't include <config.h>.
11904 * nat/x86-linux-dregs.c: Don't include <config.h>.
11905
05ea2a05
TT
119062020-01-14 Tom Tromey <tom@tromey.com>
11907
11908 * configure: Rebuild.
11909 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11910
01027315
TT
119112020-01-14 Tom Tromey <tom@tromey.com>
11912
11913 * nat/x86-linux-dregs.c: Include configh.h.
11914 * nat/linux-ptrace.c: Include configh.h.
11915 * nat/linux-btrace.c: Include configh.h.
11916 * defs.h: Include config.h, bfd.h.
11917 * configure.ac: Don't source common.host.
11918 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11919 * configure: Rebuild.
11920 * acinclude.m4: Update path.
11921 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11922 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11923 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11924 (CLIBS): Add LIBSUPPORT.
11925 (CDEPS): Likewise.
11926 (COMMON_SFILES): Remove gdbsupport files.
11927 (HFILES_NO_SRCDIR): Likewise.
11928 (stamp-version): Update path to create-version.sh.
11929 (ALLDEPFILES): Remove gdbsupport files.
11930
b2ceabe8
TT
119312020-01-14 Tom Tromey <tom@tromey.com>
11932
11933 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11934 USE_WIN32API when needed.
11935 * configure.ac (USE_WIN32API): Don't define.
11936 (WIN32LIBS): Use WIN32APILIBS.
11937 * configure: Rebuild.
11938
25c51f71
TT
119392020-01-14 Tom Tromey <tom@tromey.com>
11940
11941 * configure: Rebuild.
11942 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11943
717c684d
BE
119442020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11945
11946 * skip.c (skip_function_command): Make skip w/o arguments use the
11947 name of the inlined function if pc is inside any inlined function.
11948
7da6a5b9
LM
119492020-01-14 Luis Machado <luis.machado@linaro.org>
11950
11951 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11952 * infrun.c (resume_1): Likewise.
11953 (handle_inferior_event): Remove stale comment.
11954 * linux-nat.c (linux_nat_target::resume): Update comments.
11955 (save_stop_reason): Likewise.
11956 (linux_nat_filter_event): Likewise.
11957 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11958
44e4c775
AB
119592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11960
11961 * elfread.c (record_minimal_symbol): Set section index to 0 for
11962 non-allocatable sections.
11963
18a8505e
AT
11964
119652020-01-13 Ali Tamur <tamur@google.com>
11966
11967 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11968 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11969 to gdb::optional. Update comments.
11970 (dwo_file): Update comments.
11971 (read_attribute): Update API to take an additional out parameter,
11972 need_reprocess. This is used to mark attributes that need other
11973 attributes (e.g. str_offsets_base) for correct computation which may not
11974 have been read yet.
11975 (read_attribute_reprocess): New function declaration.
11976 (read_addr_index): Likewise.
11977 (read_dwo_str_index): Likewise.
11978 (read_stub_str_index): Likewise.
11979 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11980 (lookup_addr_base): New function definition.
11981 (lookup_ranges_base): Likewise.
11982 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11983 lookup_ranges_base.
11984 (init_cutu_and_read_dies): Update comments.
11985 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11986 unit. This is used to inherit parent's str_offsets_base and addr_base.
11987 Update comments.
11988 (init_cutu_and_read_dies_simple): Reflect API changes.
11989 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11990 (create_cus_hash_table): Change API to take parent compile unit.
11991 Reflect API changes.
11992 (open_and_init_dwo_file): Reflect API changes.
11993 (dwarf2_get_pc_bounds): Update comments.
11994 (dwarf2_record_block_ranges): Likewise.
11995 (read_full_die_1): Change implementation to reprocess attributes that
11996 need str_offsets_base and addr_base.
11997 (partial_die_info::read): Likewise.
11998 (read_attribute_reprocess): New function definition.
11999 (read_attribute_value): Change API to take an additional out parameter,
12000 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12001 when a non-dwo compile unit has index based attributes.
12002 (read_attribute): Reflect API changes.
12003 (read_addr_index_1): Reflect API changes. Update comments.
12004 (dwarf2_read_addr_index_data): Reflect API changes.
12005 (dwarf2_read_addr_index): Likewise.
12006 (read_str_index): Change API and implementation. This becomes a helper
12007 to be used by the new string index related methods. Update error
12008 message and comments.
12009 (read_dwo_str_index): New function definition.
12010 (read_stub_str_index): Likewise.
12011 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12012 * symfile.h (dwarf2_debug_sections): Likewise.
12013 * xcoffread.c (dwarf2_debug_sections): Likewise.
12014
0cac9354
SM
120152020-01-13 Simon Marchi <simon.marchi@efficios.com>
12016
12017 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12018 core_reg_sect type to gdb_byte *.
12019 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12020 * cris-tdep.c (fetch_core_registers): Likewise.
12021 * corelow.c (core_target::get_core_register_section): Change
12022 type of `contents` to gdb::byte_vector.
12023
9a6d629c
AB
120242020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12025
12026 * tui/tui-wingeneral.c (box_win): Position the title in the center
12027 of the border.
12028
d8b2f9e3
SM
120292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12030
12031 * corelow.c (core_target::get_core_register_section): Use
12032 std::vector instead of alloca.
12033
bb564c58
SM
120342020-01-13 Simon Marchi <simon.marchi@efficios.com>
12035
12036 * warning.m4: Add -Wmissing-declarations to build_warnings.
12037 * configure: Re-generate.
12038
6b366111
SM
120392020-01-13 Simon Marchi <simon.marchi@efficios.com>
12040
12041 * python/python.c (init__gdb_module): Add declaration.
12042
6c265988
SM
120432020-01-13 Simon Marchi <simon.marchi@efficios.com>
12044
12045 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12046 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12047 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12048 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12049 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12050 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12051 * ada-exp.y (_initialize_ada_exp): Add declaration.
12052 * ada-lang.c (_initialize_ada_language): Add declaration.
12053 * ada-tasks.c (_initialize_tasks): Add declaration.
12054 * agent.c (_initialize_agent): Add declaration.
12055 * aix-thread.c (_initialize_aix_thread): Add declaration.
12056 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12057 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12058 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12059 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12060 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12061 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12062 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12063 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12064 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12065 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12066 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12067 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12068 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12069 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12070 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12071 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12072 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12073 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12074 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12075 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12076 * annotate.c (_initialize_annotate): Add declaration.
12077 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12078 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12079 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12080 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12081 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12082 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12083 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12084 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12085 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12086 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12087 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12088 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12089 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12090 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12091 * auto-load.c (_initialize_auto_load): Add declaration.
12092 * auxv.c (_initialize_auxv): Add declaration.
12093 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12094 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12095 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12096 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12097 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12098 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12099 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12100 * breakpoint.c (_initialize_breakpoint): Add declaration.
12101 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12102 * btrace.c (_initialize_btrace): Add declaration.
12103 * charset.c (_initialize_charset): Add declaration.
12104 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12105 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12106 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12107 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12108 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12109 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12110 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12111 * coffread.c (_initialize_coffread): Add declaration.
12112 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12113 * compile/compile.c (_initialize_compile): Add declaration.
12114 * complaints.c (_initialize_complaints): Add declaration.
12115 * completer.c (_initialize_completer): Add declaration.
12116 * copying.c (_initialize_copying): Add declaration.
12117 * corefile.c (_initialize_core): Add declaration.
12118 * corelow.c (_initialize_corelow): Add declaration.
12119 * cp-abi.c (_initialize_cp_abi): Add declaration.
12120 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12121 * cp-support.c (_initialize_cp_support): Add declaration.
12122 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12123 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12124 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12125 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12126 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12127 * ctfread.c (_initialize_ctfread): Add declaration.
12128 * d-lang.c (_initialize_d_language): Add declaration.
12129 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12130 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12131 * dbxread.c (_initialize_dbxread): Add declaration.
12132 * dcache.c (_initialize_dcache): Add declaration.
12133 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12134 * disasm.c (_initialize_disasm): Add declaration.
12135 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12136 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12137 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12138 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12139 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12140 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12141 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12142 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12143 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12144 * elfread.c (_initialize_elfread): Add declaration.
12145 * exec.c (_initialize_exec): Add declaration.
12146 * extension.c (_initialize_extension): Add declaration.
12147 * f-lang.c (_initialize_f_language): Add declaration.
12148 * f-valprint.c (_initialize_f_valprint): Add declaration.
12149 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12150 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12151 * filesystem.c (_initialize_filesystem): Add declaration.
12152 * findcmd.c (_initialize_mem_search): Add declaration.
12153 * findvar.c (_initialize_findvar): Add declaration.
12154 * fork-child.c (_initialize_fork_child): Add declaration.
12155 * frame-base.c (_initialize_frame_base): Add declaration.
12156 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12157 * frame.c (_initialize_frame): Add declaration.
12158 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12159 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12160 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12161 * gcore.c (_initialize_gcore): Add declaration.
12162 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12163 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12164 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12165 * gdbarch.c (_initialize_gdbarch): Add declaration.
12166 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12167 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12168 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12169 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12170 * go-lang.c (_initialize_go_language): Add declaration.
12171 * go32-nat.c (_initialize_go32_nat): Add declaration.
12172 * guile/guile.c (_initialize_guile): Add declaration.
12173 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12174 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12175 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12176 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12177 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12178 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12179 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12180 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12181 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12182 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12183 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12184 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12185 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12186 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12187 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12188 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12189 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12190 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12191 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12192 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12193 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12194 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12195 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12196 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12197 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12198 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12199 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12200 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12201 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12202 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12203 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12204 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12205 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12206 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12207 * infcall.c (_initialize_infcall): Add declaration.
12208 * infcmd.c (_initialize_infcmd): Add declaration.
12209 * inflow.c (_initialize_inflow): Add declaration.
12210 * infrun.c (_initialize_infrun): Add declaration.
12211 * interps.c (_initialize_interpreter): Add declaration.
12212 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12213 * jit.c (_initialize_jit): Add declaration.
12214 * language.c (_initialize_language): Add declaration.
12215 * linux-fork.c (_initialize_linux_fork): Add declaration.
12216 * linux-nat.c (_initialize_linux_nat): Add declaration.
12217 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12218 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12219 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12220 * m2-lang.c (_initialize_m2_language): Add declaration.
12221 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12222 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12223 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12224 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12225 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12226 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12227 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12228 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12229 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12230 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12231 * machoread.c (_initialize_machoread): Add declaration.
12232 * macrocmd.c (_initialize_macrocmd): Add declaration.
12233 * macroscope.c (_initialize_macroscope): Add declaration.
12234 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12235 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12236 * maint.c (_initialize_maint_cmds): Add declaration.
12237 * mdebugread.c (_initialize_mdebugread): Add declaration.
12238 * memattr.c (_initialize_mem): Add declaration.
12239 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12240 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12241 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12242 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12243 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12244 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12245 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12246 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12247 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12248 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12249 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12250 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12251 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12252 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12253 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12254 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12255 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12256 * mipsread.c (_initialize_mipsread): Add declaration.
12257 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12258 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12259 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12260 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12261 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12262 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12263 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12264 * nto-procfs.c (_initialize_procfs): Add declaration.
12265 * objc-lang.c (_initialize_objc_language): Add declaration.
12266 * observable.c (_initialize_observer): Add declaration.
12267 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12268 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12269 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12270 * osabi.c (_initialize_gdb_osabi): Add declaration.
12271 * osdata.c (_initialize_osdata): Add declaration.
12272 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12273 * parse.c (_initialize_parse): Add declaration.
12274 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12275 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12276 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12277 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12278 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12279 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12280 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12281 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12282 * printcmd.c (_initialize_printcmd): Add declaration.
12283 * probe.c (_initialize_probe): Add declaration.
12284 * proc-api.c (_initialize_proc_api): Add declaration.
12285 * proc-events.c (_initialize_proc_events): Add declaration.
12286 * proc-service.c (_initialize_proc_service): Add declaration.
12287 * procfs.c (_initialize_procfs): Add declaration.
12288 * producer.c (_initialize_producer): Add declaration.
12289 * psymtab.c (_initialize_psymtab): Add declaration.
12290 * python/python.c (_initialize_python): Add declaration.
12291 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12292 * record-btrace.c (_initialize_record_btrace): Add declaration.
12293 * record-full.c (_initialize_record_full): Add declaration.
12294 * record.c (_initialize_record): Add declaration.
12295 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12296 * regcache.c (_initialize_regcache): Add declaration.
12297 * reggroups.c (_initialize_reggroup): Add declaration.
12298 * remote-notif.c (_initialize_notif): Add declaration.
12299 * remote-sim.c (_initialize_remote_sim): Add declaration.
12300 * remote.c (_initialize_remote): Add declaration.
12301 * reverse.c (_initialize_reverse): Add declaration.
12302 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12303 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12304 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12305 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12306 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12307 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12308 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12309 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12310 Add declaration.
12311 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12312 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12313 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12314 * rust-exp.y (_initialize_rust_exp): Add declaration.
12315 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12316 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12317 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12318 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12319 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12320 * score-tdep.c (_initialize_score_tdep): Add declaration.
12321 * ser-go32.c (_initialize_ser_dos): Add declaration.
12322 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12323 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12324 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12325 * ser-uds.c (_initialize_ser_socket): Add declaration.
12326 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12327 * serial.c (_initialize_serial): Add declaration.
12328 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12329 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12330 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12331 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12332 * skip.c (_initialize_step_skip): Add declaration.
12333 * sol-thread.c (_initialize_sol_thread): Add declaration.
12334 * solib-aix.c (_initialize_solib_aix): Add declaration.
12335 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12336 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12337 * solib-frv.c (_initialize_frv_solib): Add declaration.
12338 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12339 * solib-target.c (_initialize_solib_target): Add declaration.
12340 * solib.c (_initialize_solib): Add declaration.
12341 * source-cache.c (_initialize_source_cache): Add declaration.
12342 * source.c (_initialize_source): Add declaration.
12343 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12344 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12345 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12346 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12347 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12348 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12349 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12350 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12351 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12352 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12353 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12354 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12355 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12356 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12357 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12358 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12359 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12360 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12361 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12362 * stabsread.c (_initialize_stabsread): Add declaration.
12363 * stack.c (_initialize_stack): Add declaration.
12364 * stap-probe.c (_initialize_stap_probe): Add declaration.
12365 * std-regs.c (_initialize_frame_reg): Add declaration.
12366 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12367 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12368 * symfile.c (_initialize_symfile): Add declaration.
12369 * symmisc.c (_initialize_symmisc): Add declaration.
12370 * symtab.c (_initialize_symtab): Add declaration.
12371 * target.c (_initialize_target): Add declaration.
12372 * target-connection.c (_initialize_target_connection): Add
12373 declaration.
12374 * target-dcache.c (_initialize_target_dcache): Add declaration.
12375 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12376 * thread.c (_initialize_thread): Add declaration.
12377 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12378 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12379 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12380 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12381 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12382 * tracectf.c (_initialize_ctf): Add declaration.
12383 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12384 * tracefile.c (_initialize_tracefile): Add declaration.
12385 * tracepoint.c (_initialize_tracepoint): Add declaration.
12386 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12387 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12388 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12389 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12390 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12391 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12392 * tui/tui.c (_initialize_tui): Add declaration.
12393 * typeprint.c (_initialize_typeprint): Add declaration.
12394 * ui-style.c (_initialize_ui_style): Add declaration.
12395 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12396 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12397 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12398 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12399 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12400 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12401 * unittests/filtered_iterator-selftests.c
12402 (_initialize_filtered_iterator_selftests): Add declaration.
12403 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12404 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12405 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12406 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12407 * unittests/main-thread-selftests.c
12408 (_initialize_main_thread_selftests): Add declaration.
12409 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12410 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12411 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12412 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12413 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12414 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12415 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12416 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12417 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12418 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12419 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12420 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12421 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12422 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12423 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12424 declaration.
12425 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12426 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12427 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12428 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12429 * user-regs.c (_initialize_user_regs): Add declaration.
12430 * utils.c (_initialize_utils): Add declaration.
12431 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12432 * valops.c (_initialize_valops): Add declaration.
12433 * valprint.c (_initialize_valprint): Add declaration.
12434 * value.c (_initialize_values): Add declaration.
12435 * varobj.c (_initialize_varobj): Add declaration.
12436 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12437 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12438 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12439 * windows-nat.c (_initialize_windows_nat): Add declaration.
12440 (_initialize_check_for_gdb_ini): Add declaration.
12441 (_initialize_loadable): Add declaration.
12442 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12443 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12444 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12445 * xcoffread.c (_initialize_xcoffread): Add declaration.
12446 * xml-support.c (_initialize_xml_support): Add declaration.
12447 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12448 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12449 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12450 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12451
e2de1eec
SM
124522020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12453
12454 * regformats/regdat.sh: Generate declaration for init function.
12455
e0037b4c
SM
124562020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12457
12458 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12459 up.
12460 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12461 close_one_inferior>: New methods.
12462 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12463 pass down target to find_inferior_pid.
12464 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12465 Pass down target to find_inferior_ptid.
12466 (gdbsim_target::create_inferior): Pass down target to
12467 add_thread_silent.
12468 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12469 target down to find_inferior_ptid and switch_to_thread.
12470 (gdbsim_target::close): Update to call close_one_inferior.
12471 (struct resume_data): Remove.
12472 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12473 directly, rather than through a void pointer.
12474 (gdbsim_target::resume): Update to call resume_one_inferior.
12475
58920b5b
SM
124762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12477
12478 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12479
4ec89149
PA
124802020-01-12 Pedro Alves <palves@redhat.com>
12481
12482 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12483 directly for the current inferior instead of
12484 discard_all_inferiors.
12485 (discard_all_inferiors): Delete.
12486
7c392d1d
TT
124872020-01-11 Tom Tromey <tom@tromey.com>
12488
12489 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12490 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12491 deprecated_safe_get_selected_frame.
12492
d9ebdab7
TBA
124932020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12494
12495 * inferior.c (print_inferior): Switch inferior before printing it.
12496
f3c469b9
PA
124972020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12498 Pedro Alves <palves@redhat.com>
12499
12500 * progspace-and-thread.c (switch_to_program_space_and_thread):
12501 Assert there's an inferior for PSPACE. Use
12502 switch_to_inferior_no_thread to switch the inferior too.
12503 * progspace.c (program_space::~program_space): Call
12504 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12505 (program_space::free_all_objfiles): Don't call clear_symtab_users
12506 here.
12507 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12508
65c574f6
PA
125092020-01-10 Pedro Alves <palves@redhat.com>
12510
12511 * NEWS: Mention multi-target debugging, "info connections", and
12512 "add-inferior -no-connection".
12513
2f4fcf00
PA
125142020-01-10 Pedro Alves <palves@redhat.com>
12515
12516 * infrun.c: Include "target-connection.h".
12517 (check_multi_target_resumption): New.
12518 (proceed): Call it.
12519 * target-connection.c (make_target_connection_string): Make
12520 extern.
12521 * target-connection.h (make_target_connection_string): Declare.
12522
121b3efd
PA
125232020-01-10 Pedro Alves <palves@redhat.com>
12524
12525 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12526 * inferior.c (uiout_field_connection): New function.
12527 (print_inferior): Add new "connection-id" column.
12528 (add_inferior_command): Show connection number/string of added
12529 inferior.
12530 * process-stratum-target.h
12531 (process_stratum_target::connection_string): New virtual method.
12532 (process_stratum_target::connection_number): New field.
12533 * remote.c (remote_target::connection_string): New override.
12534 * target-connection.c: New file.
12535 * target-connection.h: New file.
12536 * target.c (decref_target): Remove process_stratum targets from
12537 the connection list.
12538 (target_stack::push): Add process_stratum targets to the
12539 connection list.
12540
4f837581
PA
125412020-01-10 Pedro Alves <palves@redhat.com>
12542
12543 Revert:
12544 2016-04-12 Pedro Alves <palves@redhat.com>
12545 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12546 Remove references to name.
12547 * serial.h (struct serial) <name>: Delete.
12548
f4ec508e
PA
125492020-01-10 Pedro Alves <palves@redhat.com>
12550
12551 * gdbarch-selftests.c (register_to_value_test): Remove "target
12552 already pushed" check.
12553
5b6d1e4f
PA
125542020-01-10 Pedro Alves <palves@redhat.com>
12555 John Baldwin <jhb@FreeBSD.org>
12556
12557 * aarch64-linux-nat.c
12558 (aarch64_linux_nat_target::thread_architecture): Adjust.
12559 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12560 (task_command_1): Likewise.
12561 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12562 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12563 (aix_thread_target::store_registers)
12564 (aix_thread_target::thread_alive): Adjust.
12565 * amd64-fbsd-tdep.c: Include "inferior.h".
12566 (amd64fbsd_get_thread_local_address): Pass down target.
12567 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12568 thread's gdbarch instead of target_gdbarch.
12569 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12570 get_last_target_status.
12571 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12572 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12573 inferiors.
12574 (update_inserted_breakpoint_locations): Skip if inferiors with no
12575 execution.
12576 (update_global_location_list): When handling moribund locations,
12577 find representative inferior for location's pspace, and use thread
12578 count of its process_stratum target.
12579 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12580 * bsd-uthread.c (bsd_uthread_target::wait): Use
12581 as_process_stratum_target and adjust thread_change_ptid and
12582 add_thread calls.
12583 (bsd_uthread_target::update_thread_list): Use
12584 as_process_stratum_target and adjust find_thread_ptid,
12585 thread_change_ptid and add_thread calls.
12586 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12587 find_thread_ptid call.
12588 * corelow.c (add_to_thread_list): Adjust add_thread call.
12589 (core_target_open): Adjust add_thread_silent and thread_count
12590 calls.
12591 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12592 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12593 * event-top.c (async_disconnect): Pop targets from all inferiors.
12594 * exec.c (add_target_sections): Push exec target on all inferiors
12595 sharing the program space.
12596 (remove_target_sections): Remove the exec target from all
12597 inferiors sharing the program space.
12598 (exec_on_vfork): New.
12599 * exec.h (exec_on_vfork): Declare.
12600 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12601 Pass it down.
12602 (fbsd_nat_target::update_thread_list): Adjust.
12603 (fbsd_nat_target::resume): Adjust.
12604 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12605 down.
12606 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12607 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12608 get_thread_arch_regcache call.
12609 * fork-child.c (gdb_startup_inferior): Pass target down to
12610 startup_inferior and set_executing.
12611 * gdbthread.h (struct process_stratum_target): Forward declare.
12612 (add_thread, add_thread_silent, add_thread_with_info)
12613 (in_thread_list): Add process_stratum_target parameter.
12614 (find_thread_ptid(inferior*, ptid_t)): New overload.
12615 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12616 parameter.
12617 (all_threads()): Delete overload.
12618 (all_threads, all_non_exited_threads): Add process_stratum_target
12619 parameter.
12620 (all_threads_safe): Use brace initialization.
12621 (thread_count): Add process_stratum_target parameter.
12622 (set_resumed, set_running, set_stop_requested, set_executing)
12623 (threads_are_executing, finish_thread_state): Add
12624 process_stratum_target parameter.
12625 (switch_to_thread): Use is_current_thread.
12626 * i386-fbsd-tdep.c: Include "inferior.h".
12627 (i386fbsd_get_thread_local_address): Pass down target.
12628 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12629 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12630 have_inferiors check.
12631 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12632 (inf_ptrace_target::attach): Adjust.
12633 * infcall.c (run_inferior_call): Adjust.
12634 * infcmd.c (run_command_1): Pass target to
12635 scoped_finish_thread_state.
12636 (proceed_thread_callback): Skip inferiors with no execution.
12637 (continue_command): Rename 'all_threads' local to avoid hiding
12638 'all_threads' function. Adjust get_last_target_status call.
12639 (prepare_one_step): Adjust set_running call.
12640 (signal_command): Use user_visible_resume_target. Compare thread
12641 pointers instead of inferior_ptid.
12642 (info_program_command): Adjust to pass down target.
12643 (attach_command): Mark target's 'thread_executing' flag.
12644 (stop_current_target_threads_ns): New, factored out from ...
12645 (interrupt_target_1): ... this. Switch inferior before making
12646 target calls.
12647 * inferior-iter.h
12648 (struct all_inferiors_iterator, struct all_inferiors_range)
12649 (struct all_inferiors_safe_range)
12650 (struct all_non_exited_inferiors_range): Filter on
12651 process_stratum_target too. Remove explicit.
12652 * inferior.c (inferior::inferior): Push dummy target on target
12653 stack.
12654 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12655 Add process_stratum_target parameter, and pass it down.
12656 (have_live_inferiors): Adjust.
12657 (switch_to_inferior_and_push_target): New.
12658 (add_inferior_command, clone_inferior_command): Handle
12659 "-no-connection" parameter. Use
12660 switch_to_inferior_and_push_target.
12661 (_initialize_inferior): Mention "-no-connection" option in
12662 the help of "add-inferior" and "clone-inferior" commands.
12663 * inferior.h: Include "process-stratum-target.h".
12664 (interrupt_target_1): Use bool.
12665 (struct inferior) <push_target, unpush_target, target_is_pushed,
12666 find_target_beneath, top_target, process_target, target_at,
12667 m_stack>: New.
12668 (discard_all_inferiors): Delete.
12669 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12670 (all_inferiors, all_non_exited_inferiors): Add
12671 process_stratum_target parameter.
12672 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12673 (target_last_proc_target): New global.
12674 (follow_fork_inferior): Push target on new inferior. Pass target
12675 to add_thread_silent. Call exec_on_vfork. Handle target's
12676 reference count.
12677 (follow_fork): Adjust get_last_target_status call. Also consider
12678 target.
12679 (follow_exec): Push target on new inferior.
12680 (struct execution_control_state) <target>: New field.
12681 (user_visible_resume_target): New.
12682 (do_target_resume): Call target_async.
12683 (resume_1): Set target's threads_executing flag. Consider resume
12684 target.
12685 (commit_resume_all_targets): New.
12686 (proceed): Also consider resume target. Skip threads of inferiors
12687 with no execution. Commit resumtion in all targets.
12688 (start_remote): Pass current inferior to wait_for_inferior.
12689 (infrun_thread_stop_requested): Consider target as well. Pass
12690 thread_info pointer to clear_inline_frame_state instead of ptid.
12691 (infrun_thread_thread_exit): Consider target as well.
12692 (random_pending_event_thread): New inferior parameter. Use it.
12693 (do_target_wait): Rename to ...
12694 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12695 down.
12696 (threads_are_resumed_pending_p, do_target_wait): New.
12697 (prepare_for_detach): Adjust calls.
12698 (wait_for_inferior): New inferior parameter. Handle it. Use
12699 do_target_wait_1 instead of do_target_wait.
12700 (fetch_inferior_event): Adjust. Switch to representative
12701 inferior. Pass target down.
12702 (set_last_target_status): Add process_stratum_target parameter.
12703 Save target in global.
12704 (get_last_target_status): Add process_stratum_target parameter and
12705 handle it.
12706 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12707 (context_switch): Check inferior_ptid == null_ptid before calling
12708 inferior_thread().
12709 (get_inferior_stop_soon): Pass down target.
12710 (wait_one): Rename to ...
12711 (poll_one_curr_target): ... this.
12712 (struct wait_one_event): New.
12713 (wait_one): New.
12714 (stop_all_threads): Adjust.
12715 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12716 event's target.
12717 (switch_back_to_stepped_thread): Also consider target.
12718 (print_stop_event): Update.
12719 (normal_stop): Update. Also consider the resume target.
12720 * infrun.h (wait_for_inferior): Remove declaration.
12721 (user_visible_resume_target): New declaration.
12722 (get_last_target_status, set_last_target_status): New
12723 process_stratum_target parameter.
12724 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12725 process_stratum_target parameter, and use it.
12726 (clear_inline_frame_state (thread_info*)): New.
12727 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12728 process_stratum_target parameter.
12729 (clear_inline_frame_state (thread_info*)): Declare.
12730 * linux-fork.c (delete_checkpoint_command): Pass target down to
12731 find_thread_ptid.
12732 (checkpoint_command): Adjust.
12733 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12734 instead of just tweaking inferior_ptid.
12735 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12736 (exit_lwp): Pass target down to find_thread_ptid.
12737 (attach_proc_task_lwp_callback): Pass target down to
12738 add_thread/set_running/set_executing.
12739 (linux_nat_target::attach): Pass target down to
12740 thread_change_ptid.
12741 (get_detach_signal): Pass target down to find_thread_ptid.
12742 Consider last target status's target.
12743 (linux_resume_one_lwp_throw, resume_lwp)
12744 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12745 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12746 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12747 (linux_nat_target::async_wait_fd): New.
12748 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12749 target down.
12750 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12751 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12752 * linux-thread-db.c (struct thread_db_info::process_target): New
12753 field.
12754 (add_thread_db_info): Save target.
12755 (get_thread_db_info): New process_stratum_target parameter. Also
12756 match target.
12757 (delete_thread_db_info): New process_stratum_target parameter.
12758 Also match target.
12759 (thread_from_lwp): Adjust to pass down target.
12760 (thread_db_notice_clone): Pass down target.
12761 (check_thread_db_callback): Pass down target.
12762 (try_thread_db_load_1): Always push the thread_db target.
12763 (try_thread_db_load, record_thread): Pass target down.
12764 (thread_db_target::detach): Pass target down. Always unpush the
12765 thread_db target.
12766 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12767 target down. Always unpush the thread_db target.
12768 (find_new_threads_callback, thread_db_find_new_threads_2)
12769 (thread_db_target::update_thread_list): Pass target down.
12770 (thread_db_target::pid_to_str): Pass current inferior down.
12771 (thread_db_target::get_thread_local_address): Pass target down.
12772 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12773 target down.
12774 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12775 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12776 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12777 (procfs_init_inferior): Rename to ...
12778 (procfs_target::procfs_init_inferior): ... this and adjust.
12779 (procfs_target::create_inferior, procfs_notice_thread)
12780 (procfs_do_thread_registers): Adjust.
12781 * ppc-fbsd-tdep.c: Include "inferior.h".
12782 (ppcfbsd_get_thread_local_address): Pass down target.
12783 * proc-service.c (ps_xfer_memory): Switch current inferior and
12784 program space as well.
12785 (get_ps_regcache): Pass target down.
12786 * process-stratum-target.c
12787 (process_stratum_target::thread_address_space)
12788 (process_stratum_target::thread_architecture): Pass target down.
12789 * process-stratum-target.h
12790 (process_stratum_target::threads_executing): New field.
12791 (as_process_stratum_target): New.
12792 * ravenscar-thread.c
12793 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12794 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12795 down.
12796 * record-btrace.c (record_btrace_target::info_record): Adjust.
12797 (record_btrace_target::record_method)
12798 (record_btrace_target::record_is_replaying)
12799 (record_btrace_target::fetch_registers)
12800 (get_thread_current_frame_id, record_btrace_target::resume)
12801 (record_btrace_target::wait, record_btrace_target::stop): Pass
12802 target down.
12803 * record-full.c (record_full_wait_1): Switch to event thread.
12804 Pass target down.
12805 * regcache.c (regcache::regcache)
12806 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12807 process_stratum_target parameter and handle it.
12808 (current_thread_target): New global.
12809 (get_thread_regcache): Add process_stratum_target parameter and
12810 handle it. Switch inferior before calling target method.
12811 (get_thread_regcache): Pass target down.
12812 (get_thread_regcache_for_ptid): Pass target down.
12813 (registers_changed_ptid): Add process_stratum_target parameter and
12814 handle it.
12815 (registers_changed_thread, registers_changed): Pass target down.
12816 (test_get_thread_arch_aspace_regcache): New.
12817 (current_regcache_test): Define a couple local test_target_ops
12818 instances and use them for testing.
12819 (readwrite_regcache): Pass process_stratum_target parameter.
12820 (cooked_read_test, cooked_write_test): Pass mock_target down.
12821 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12822 (get_thread_arch_aspace_regcache): Add process_stratum_target
12823 parameter.
12824 (regcache::target): New method.
12825 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12826 (regcache::registers_changed_ptid): Add process_stratum_target
12827 parameter.
12828 (regcache::m_target): New field.
12829 (registers_changed_ptid): Add process_stratum_target parameter.
12830 * remote.c (remote_state::supports_vCont_probed): New field.
12831 (remote_target::async_wait_fd): New method.
12832 (remote_unpush_and_throw): Add remote_target parameter.
12833 (get_current_remote_target): Adjust.
12834 (remote_target::remote_add_inferior): Push target.
12835 (remote_target::remote_add_thread)
12836 (remote_target::remote_notice_new_inferior)
12837 (get_remote_thread_info): Pass target down.
12838 (remote_target::update_thread_list): Skip threads of inferiors
12839 bound to other targets. (remote_target::close): Don't discard
12840 inferiors. (remote_target::add_current_inferior_and_thread)
12841 (remote_target::process_initial_stop_replies)
12842 (remote_target::start_remote)
12843 (remote_target::remote_serial_quit_handler): Pass down target.
12844 (remote_target::remote_unpush_target): New remote_target
12845 parameter. Unpush the target from all inferiors.
12846 (remote_target::remote_unpush_and_throw): New remote_target
12847 parameter. Pass it down.
12848 (remote_target::open_1): Check whether the current inferior has
12849 execution instead of checking whether any inferior is live. Pass
12850 target down.
12851 (remote_target::remote_detach_1): Pass down target. Use
12852 remote_unpush_target.
12853 (extended_remote_target::attach): Pass down target.
12854 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12855 (remote_target::append_resumption): Pass down target.
12856 (remote_target::append_pending_thread_resumptions)
12857 (remote_target::remote_resume_with_hc, remote_target::resume)
12858 (remote_target::commit_resume): Pass down target.
12859 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12860 (remote_target::interrupt_query)
12861 (remote_target::remove_new_fork_children)
12862 (remote_target::check_pending_events_prevent_wildcard_vcont)
12863 (remote_target::remote_parse_stop_reply)
12864 (remote_target::process_stop_reply): Pass down target.
12865 (first_remote_resumed_thread): New remote_target parameter. Pass
12866 it down.
12867 (remote_target::wait_as): Pass down target.
12868 (unpush_and_perror): New remote_target parameter. Pass it down.
12869 (remote_target::readchar, remote_target::remote_serial_write)
12870 (remote_target::getpkt_or_notif_sane_1)
12871 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12872 down target.
12873 (remote_target::mourn_inferior): Pass down target. Use
12874 remote_unpush_target.
12875 (remote_target::core_of_thread)
12876 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12877 (remote_target::pid_to_exec_file)
12878 (remote_target::thread_handle_to_thread_info): Pass down target.
12879 (remote_target::async_wait_fd): New.
12880 * riscv-fbsd-tdep.c: Include "inferior.h".
12881 (riscv_fbsd_get_thread_local_address): Pass down target.
12882 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12883 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12884 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12885 Adjust.
12886 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12887 * solib-svr4.c (enable_break): Pass down target.
12888 * spu-multiarch.c (parse_spufs_run): Pass down target.
12889 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12890 * target-delegates.c: Regenerate.
12891 * target.c (g_target_stack): Delete.
12892 (current_top_target): Return the current inferior's top target.
12893 (target_has_execution_1): Refer to the passed-in inferior's top
12894 target.
12895 (target_supports_terminal_ours): Check whether the initial
12896 inferior was already created.
12897 (decref_target): New.
12898 (target_stack::push): Incref/decref the target.
12899 (push_target, push_target, unpush_target): Adjust.
12900 (target_stack::unpush): Defref target.
12901 (target_is_pushed): Return bool. Adjust to refer to the current
12902 inferior's target stack.
12903 (dispose_inferior): Delete, and inline parts ...
12904 (target_preopen): ... here. Only dispose of the current inferior.
12905 (target_detach): Hold strong target reference while detaching.
12906 Pass target down.
12907 (target_thread_name): Add assertion.
12908 (target_resume): Pass down target.
12909 (target_ops::beneath, find_target_at): Adjust to refer to the
12910 current inferior's target stack.
12911 (get_dummy_target): New.
12912 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12913 has a thread running.
12914 (initialize_targets): Rename to ...
12915 (_initialize_target): ... this.
12916 * target.h: Include "gdbsupport/refcounted-object.h".
12917 (struct target_ops): Inherit refcounted_object.
12918 (target_ops::shortname, target_ops::longname): Make const.
12919 (target_ops::async_wait_fd): New method.
12920 (decref_target): Declare.
12921 (struct target_ops_ref_policy): New.
12922 (target_ops_ref): New typedef.
12923 (get_dummy_target): Declare function.
12924 (target_is_pushed): Return bool.
12925 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12926 (all_matching_threads_iterator::all_matching_threads_iterator):
12927 Handle filter target.
12928 * thread-iter.h (struct all_matching_threads_iterator, struct
12929 all_matching_threads_range, class all_non_exited_threads_range):
12930 Filter by target too. Remove explicit.
12931 * thread.c (threads_executing): Delete.
12932 (inferior_thread): Pass down current inferior.
12933 (clear_thread_inferior_resources): Pass down thread pointer
12934 instead of ptid_t.
12935 (add_thread_silent, add_thread_with_info, add_thread): Add
12936 process_stratum_target parameter. Use it for thread and inferior
12937 searches.
12938 (is_current_thread): New.
12939 (thread_info::deletable): Use it.
12940 (find_thread_ptid, thread_count, in_thread_list)
12941 (thread_change_ptid, set_resumed, set_running): New
12942 process_stratum_target parameter. Pass it down.
12943 (set_executing): New process_stratum_target parameter. Pass it
12944 down. Adjust reference to 'threads_executing'.
12945 (threads_are_executing): New process_stratum_target parameter.
12946 Adjust reference to 'threads_executing'.
12947 (set_stop_requested, finish_thread_state): New
12948 process_stratum_target parameter. Pass it down.
12949 (switch_to_thread): Also match inferior.
12950 (switch_to_thread): New process_stratum_target parameter. Pass it
12951 down.
12952 (update_threads_executing): Reimplement.
12953 * top.c (quit_force): Pop targets from all inferior.
12954 (gdb_init): Don't call initialize_targets.
12955 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12956 Declare.
12957 (windows_add_thread, windows_delete_thread): Adjust.
12958 (get_windows_debug_event): Rename to ...
12959 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12960 * tracefile-tfile.c (tfile_target_open): Pass down target.
12961 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12962 Forward declare.
12963 (switch_to_thread): Add process_stratum_target parameter.
12964 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12965 parameter. Use it.
12966 (mi_on_resume): Pass target down.
12967 * nat/fork-inferior.c (startup_inferior): Add
12968 process_stratum_target parameter. Pass it down.
12969 * nat/fork-inferior.h (startup_inferior): Add
12970 process_stratum_target parameter.
12971 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12972
75c6c844
PA
129732020-01-10 Pedro Alves <palves@redhat.com>
12974
12975 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12976 directly. Instead find the first thread in the thread list and
12977 use switch_to_thread.
12978
78f2c40a
PA
129792020-01-10 Pedro Alves <palves@redhat.com>
12980
12981 * remote.c (remote_target::remote_add_inferior): Don't bind a
12982 process to the current inferior if the current inferior is already
12983 bound to a process.
12984
e7af6c70
TBA
129852020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12986 Pedro Alves <palves@redhat.com>
12987
12988 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12989 If no process is specified, return null_ptid instead of
12990 inferior_ptid.
12991 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12992 TARGET_WAITKIND_SIGNALLED with no pid.
12993
31ba933e
PA
129942020-01-10 Pedro Alves <palves@redhat.com>
12995
12996 * remote.c (first_remote_resumed_thread): New.
12997 (remote_target::wait_as): Use it as default event_ptid instead of
12998 inferior_ptid.
12999
735fc2ca
PA
130002020-01-10 Pedro Alves <palves@redhat.com>
13001
13002 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13003
c17e02e1
PA
130042020-01-10 Pedro Alves <palves@redhat.com>
13005
13006 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13007 not -1.
13008
ab1ddbcf
PA
130092020-01-10 Pedro Alves <palves@redhat.com>
13010
13011 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13012 ptid to get_last_target_status.
13013 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13014 ptid to get_last_target_status.
13015 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13016 get_last_target_status.
13017 (info_program_command): Don't pass a target_waitstatus to
13018 get_last_target_status.
13019 * infrun.c (init_wait_for_inferior): Use
13020 nullify_last_target_wait_ptid.
13021 (get_last_target_status): Handle nullptr arguments.
13022 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13023 (print_stop_event): Don't pass a ptid to get_last_target_status.
13024 (normal_stop): Don't pass a ptid to get_last_target_status.
13025 * infrun.h (get_last_target_status, set_last_target_status): Move
13026 comments here and update.
13027 (nullify_last_target_wait_ptid): Declare.
13028 * linux-fork.c (fork_load_infrun_state): Remove local extern
13029 declaration of nullify_last_target_wait_ptid.
13030 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13031 to get_last_target_status.
13032
f3f8ece4
PA
130332020-01-10 Pedro Alves <palves@redhat.com>
13034
13035 * gdbthread.h (scoped_restore_current_thread)
13036 <dont_restore, restore, m_dont_restore>: Declare.
13037 * thread.c (thread_alive): Add assertion. Return bool.
13038 (switch_to_thread_if_alive): New.
13039 (prune_threads): Switch inferior/thread.
13040 (print_thread_info_1): Switch thread before calling target methods.
13041 (scoped_restore_current_thread::restore): New, factored out from
13042 ...
13043 (scoped_restore_current_thread::~scoped_restore_current_thread):
13044 ... this.
13045 (scoped_restore_current_thread::scoped_restore_current_thread):
13046 Add assertion.
13047 (thread_apply_all_command, thread_select): Use
13048 switch_to_thread_if_alive.
13049 * infrun.c (proceed, restart_threads, handle_signal_stop)
13050 (switch_back_to_stepped_thread): Switch current thread before
13051 calling target methods.
13052
db2d40f7
PA
130532020-01-10 Pedro Alves <palves@redhat.com>
13054
13055 * inferior.c (switch_to_inferior_no_thread): New function,
13056 factored out from ...
13057 (inferior_command): ... here.
13058 * inferior.h (switch_to_inferior_no_thread): Declare.
13059 * mi/mi-main.c (run_one_inferior): Use
13060 switch_to_inferior_no_thread.
13061
bd420a2d
PA
130622020-01-10 Pedro Alves <palves@redhat.com>
13063
13064 * infcmd.c (kill_command): Remove dead code.
13065
ddf5db90
PA
130662020-01-10 Pedro Alves <palves@redhat.com>
13067
13068 * remote.c (remote_target::mourn_inferior): No longer check
13069 whether the target is running.
13070
5018ce90
PA
130712020-01-10 Pedro Alves <palves@redhat.com>
13072
13073 * corelow.c (core_target::has_execution): Change parameter type to
13074 inferior pointer.
13075 * inferior.c (number_of_live_inferiors): Use
13076 inferior::has_execution instead of target_has_execution_1.
13077 * inferior.h (inferior::has_execution): New.
13078 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13079 inferior::has_execution instead of target_has_execution_1.
13080 * process-stratum-target.c
13081 (process_stratum_target::has_execution): Change parameter type to
13082 inferior pointer. Check the inferior's PID instead of
13083 inferior_ptid.
13084 * process-stratum-target.h
13085 (process_stratum_target::has_execution): Change parameter type to
13086 inferior pointer.
13087 * record-full.c (record_full_core_target::has_execution): Change
13088 parameter type to inferior pointer.
13089 * target.c (target_has_execution_1): Change parameter type to
13090 inferior pointer.
13091 (target_has_execution_current): Adjust.
13092 * target.h (target_ops::has_execution): Change parameter type to
13093 inferior pointer.
13094 (target_has_execution_1): Change parameter type to inferior
13095 pointer. Change return type to bool.
13096 * tracefile.h (tracefile_target::has_execution): Change parameter
13097 type to inferior pointer.
13098
74375d18
PA
130992020-01-10 Pedro Alves <palves@redhat.com>
13100
13101 * exceptions.c (print_flush): Remove current_top_target() check.
13102
acdf84a6
PA
131032020-01-10 Pedro Alves <palves@redhat.com>
13104
13105 * remote.c (show_remote_exec_file): Show the current inferior's
13106 exec-file instead of the command variable's value.
13107
ec506636
PA
131082020-01-10 Pedro Alves <palves@redhat.com>
13109
13110 * record-full.c (record_full_resume_ptid): New global.
13111 (record_full_target::resume): Set it.
13112 (record_full_wait_1): Use record_full_resume_ptid instead of
13113 inferior_ptid.
13114
873657b9
PA
131152020-01-10 Pedro Alves <palves@redhat.com>
13116
13117 * gdbthread.h (scoped_restore_current_thread)
13118 <dont_restore, restore, m_dont_restore>: Declare.
13119 * thread.c (thread_alive): Add assertion. Return bool.
13120 (switch_to_thread_if_alive): New.
13121 (prune_threads): Switch inferior/thread.
13122 (print_thread_info_1): Switch thread before calling target methods.
13123 (scoped_restore_current_thread::restore): New, factored out from
13124 ...
13125 (scoped_restore_current_thread::~scoped_restore_current_thread):
13126 ... this.
13127 (scoped_restore_current_thread::scoped_restore_current_thread):
13128 Add assertion.
13129 (thread_apply_all_command, thread_select): Use
13130 switch_to_thread_if_alive.
13131
7f0ae84c
GB
131322020-01-10 George Barrett <bob@bob131.so>
13133
13134 * stap-probe.c (stap_modify_semaphore): Don't check for null
13135 semaphores.
13136 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13137 for null semaphores.
13138
f5a7c406
AB
131392020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13140
13141 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13142 all source windows, and maintain horizontal scroll status while
13143 doing so.
13144
9ae6bf64
TT
131452020-01-09 Tom Tromey <tom@tromey.com>
13146
13147 PR tui/18932:
13148 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13149 update_source_window, not print_source_lines.
13150
b2efe70c
AB
131512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13152
13153 * tui/tui.c (tui_enable): Register tui hooks after calling
13154 tui_display_main.
13155
5f23a082
CB
131562020-01-09 Christian Biesinger <cbiesinger@google.com>
13157
13158 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13159
3061113b
SM
131602020-01-08 Simon Marchi <simon.marchi@efficios.com>
13161
13162 * thread.c (print_thread_info_1): Fix indentation.
13163
57d75002
CB
131642020-01-09 Christian Biesinger <cbiesinger@google.com>
13165
13166 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13167 unique_xmalloc_ptr outside the if to always free the demangled name.
13168
6a053cb1
TT
131692020-01-08 Tom Tromey <tromey@adacore.com>
13170
13171 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13172 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13173 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13174 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13175 Remove.
13176 (section_offsets): New typedef.
13177 * symtab.c (fixup_section, get_msymbol_address): Update.
13178 * symmisc.c (dump_msymbols): Update.
13179 * symfile.h (relative_addr_info_to_section_offsets)
13180 (symfile_map_offsets_to_segments): Update.
13181 * symfile.c (build_section_addr_info_from_objfile)
13182 (init_objfile_sect_indices): Update.
13183 (struct place_section_arg): Change type of "offsets".
13184 (place_section): Update.
13185 (relative_addr_info_to_section_offsets): Change type of
13186 "section_offsets". Remove "num_sections" parameter.
13187 (default_symfile_offsets, syms_from_objfile_1)
13188 (set_objfile_default_section_offset): Update.
13189 (reread_symbols): No need to preserve section offsets by hand.
13190 (symfile_map_offsets_to_segments): Change type of "offsets".
13191 * stap-probe.c (relocate_address): Update.
13192 * stabsread.h (process_one_symbol): Update.
13193 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13194 (solib_target_relocate_section_addresses): Update.
13195 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13196 Update.
13197 * solib-frv.c (frv_relocate_main_executable): Update.
13198 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13199 * solib-aix.c (solib_aix_get_section_offsets): Change return
13200 type.
13201 (solib_aix_solib_create_inferior_hook): Update.
13202 * remote.c (remote_target::get_offsets): Update.
13203 * psymtab.c (find_pc_sect_psymtab): Update.
13204 * psympriv.h (struct partial_symbol) <address, text_low,
13205 text_high>: Update.
13206 * objfiles.h (obj_section_offset): Update.
13207 (struct objfile) <section_offsets>: Change type.
13208 <num_sections>: Remove.
13209 (objfile_relocate): Update.
13210 * objfiles.c (entry_point_address_query): Update
13211 (relocate_one_symbol): Change type of "section_offsets".
13212 (objfile_relocate1, objfile_relocate1): Change type of
13213 "new_offsets".
13214 (objfile_rebase1): Update.
13215 * mipsread.c (mipscoff_symfile_read): Update.
13216 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13217 parameter.
13218 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13219 (parse_external, psymtab_to_symtab_1): Update.
13220 * machoread.c (macho_symfile_offsets): Update.
13221 * ia64-tdep.c (ia64_find_unwind_table): Update.
13222 * hppa-tdep.c (read_unwind_info): Update.
13223 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13224 * dwarf2read.c (create_addrmap_from_index)
13225 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13226 (process_psymtab_comp_unit_reader, add_partial_symbol)
13227 (add_partial_subprogram, process_full_comp_unit)
13228 (read_file_scope, read_func_scope, read_lexical_block_scope)
13229 (read_call_site_scope, dwarf2_rnglists_process)
13230 (dwarf2_ranges_process, dwarf2_ranges_read)
13231 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13232 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13233 Update.
13234 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13235 Update.
13236 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13237 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13238 (process_one_symbol): Change type of "section_offsets".
13239 * ctfread.c (get_objfile_text_range): Update.
13240 * coffread.c (coff_symtab_read, enter_linenos)
13241 (process_coff_symbol): Update.
13242 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13243 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13244
456e800a
TT
132452020-01-08 Tom Tromey <tromey@adacore.com>
13246
13247 * dwarf2read.c (parse_macro_definition): Use std::string.
13248 (parse_macro_definition): Likewise.
13249
6dfa2fc2
TT
132502020-01-08 Tom Tromey <tromey@adacore.com>
13251
13252 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13253 (ATTR_ALLOC_CHUNK): Remove.
13254
421d1616
TT
132552020-01-08 Tom Tromey <tromey@adacore.com>
13256
13257 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13258
43816ebc
TT
132592020-01-08 Tom Tromey <tromey@adacore.com>
13260
13261 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13262 (dwarf2_compute_name, open_dwo_file): Likewise.
13263 (process_enumeration_scope): Use std::vector.
13264 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13265 (partial_die_info::fixup, dwarf2_start_subfile)
13266 (guess_full_die_structure_name, dwarf2_name): Likewise.
13267 (determine_prefix): Update.
13268 (guess_full_die_structure_name): Make return type const.
13269 (partial_die_full_name): Return unique_xmalloc_ptr.
13270 (DW_FIELD_ALLOC_CHUNK): Remove.
13271
4212d509
TT
132722020-01-07 Tom Tromey <tromey@adacore.com>
13273
13274 PR build/24937:
13275 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13276
06a6207a
JT
132772020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13278
13279 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13280
153d79c4
AB
132812020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13282
13283 * stack.c (print_frame_info): Move disassemble_next_line code
13284 inside source_print block.
13285
66182876
EZ
132862020-01-06 Eli Zaretskii <eliz@gnu.org>
13287
13288 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13289 gdb/signals.h, as we are now using native signal symbols.
13290
cbfa8581
SV
132912020-01-06 Shahab Vahedi <shahab@synopsys.com>
13292
13293 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13294 overflow by an early check of content vs threshold.
aac66a4c 13295 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13296 Likewise.
13297
3f602821
EZ
132982020-01-06 Eli Zaretskii <eliz@gnu.org>
13299
13300 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13301
a08c904d
JT
133022020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13303
13304 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13305 export table if no section contains it's RVA.
13306
89a65580
EZ
133072020-01-06 Eli Zaretskii <eliz@gnu.org>
13308
13309 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13310
8b7fcda2
HD
133112020-01-06 Hannes Domani <ssbssa@yahoo.de>
13312
13313 * source.c (print_source_lines_base): Set last_line_listed.
13314
a61b4f69
SV
133152020-01-06 Shahab Vahedi <shahab@synopsys.com>
13316
13317 * tui/tui-disasm.c: Remove trailing spaces.
13318
559e7e50
EZ
133192020-01-06 Eli Zaretskii <eliz@gnu.org>
13320 Pedro Alves <palves@redhat.com>
13321
13322 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13323 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13324 (windows_gdb_signal_to_target): New function, uses the above
13325 enumeration to convert GDB internal signal codes to equivalent
13326 Windows codes.
13327 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13328 * windows-nat.c: Include "gdb_wait.h".
13329 (get_windows_debug_event): Extract the fatal exception from the
13330 exit status and convert to the equivalent Posix signal number.
13331 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13332 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13333 * gdbsupport/gdb_wait.c: New file, implements
13334 windows_status_to_termsig.
13335 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13336 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13337
f2302a34
AB
133382020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13339
13340 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13341 show_layout.
13342
6a5206eb
LM
133432020-01-05 Luis Machado <luis.machado@linaro.org>
13344
13345 * aarch64-linux-nat.c
13346 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13347 and bfd_mach_aarch64.
13348
6ec1d75e
PW
133492020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13350
13351 * ui-file.c (stdio_file::can_emit_style_escape)
13352 (tee_file::can_emit_style_escape): Ensure style is used also on
13353 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13354 to gdb_stdout.
13355 * main.c (set_gdb_data_directory): Use file style to output the
13356 warning that the given pathname is not a directory.
13357 * top.c (show_history_filename, gdb_safe_append_history)
13358 (show_gdb_datadir): Use file style.
13359
44f81a76
HD
133602020-01-03 Hannes Domani <ssbssa@yahoo.de>
13361
13362 * solib-target.c (struct lm_info_target):
13363 Change offsets to be a unique_xmalloc_ptr.
13364 (solib_target_relocate_section_addresses): Update.
13365
25057eb0
HD
133662020-01-03 Hannes Domani <ssbssa@yahoo.de>
13367
13368 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13369
6e2118f5
BE
133702020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13371
13372 * MAINTAINERS (Write After Approval): Add myself.
13373
8133c7dc
LM
133742020-01-02 Luis Machado <luis.machado@linaro.org>
13375
13376 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13377 Cell BE architecture.
13378 * target.h (struct target_ops) <thread_architecture>: Likewise.
13379
48189bec
HD
133802020-01-01 Hannes Domani <ssbssa@yahoo.de>
13381
13382 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13383
ead1063b
HD
133842020-01-01 Hannes Domani <ssbssa@yahoo.de>
13385
13386 * MAINTAINERS (Write After Approval): Add myself.
13387
e5d78223
JB
133882020-01-01 Joel Brobecker <brobecker@adacore.com>
13389
13390 * gdbarch.sh: Update copyright year range of generated files.
13391
b811d2c2
JB
133922020-01-01 Joel Brobecker <brobecker@adacore.com>
13393
13394 Update copyright year range in all GDB files.
13395
5f4def5c
JB
133962020-01-01 Joel Brobecker <brobecker@adacore.com>
13397
13398 * copyright.py: Convert to Python 3.
13399
51fd4002
JB
134002020-01-01 Joel Brobecker <brobecker@adacore.com>
13401
13402 * copyright.py: Adapt after move of gnulib directory from gdb
13403 directory to toplevel directory.
13404
5fb651f2
JB
134052020-01-01 Joel Brobecker <brobecker@adacore.com>
13406
13407 * copyright.py (main): Exit if run from the wrong directory.
13408
5dd8bf88
JB
134092020-01-01 Joel Brobecker <brobecker@adacore.com>
13410
13411 * top.c (print_gdb_version): Change copyright year to 2020.
13412
9f71dacb 134132020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13414
9f71dacb 13415 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13416
9f71dacb 13417For older changes see ChangeLog-2019.
c906108c
SS
13418\f
13419Local Variables:
13420mode: change-log
13421left-margin: 8
13422fill-column: 74
13423version-control: never
57da7796 13424coding: utf-8
c906108c 13425End: