]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Convert language_data::la_range_check to a method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
efdf6a73
AB
12020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Remove la_range_check
4 initializer.
5 * c-lang.c (c_language_data): Likewise.
6 (cplus_language_data): Likewise.
7 (asm_language_data): Likewise.
8 (minimal_language_data): Likewise.
9 * d-lang.c (d_language_data): Likewise.
10 * f-lang.c (f_language_data): Likewise.
11 (f_language::range_checking_on_by_default): New member function.
12 * go-lang.c (go_language_data): Remove la_range_check initializer.
13 * language.c (enum range_mode): Moved here from language.h.
14 (range_mode): Made static.
15 (show_range_command): Update to use
16 range_checking_on_by_default.
17 (set_range_command): Likewise.
18 (set_range_case): Likewise.
19 (unknown_language_data): Remove la_range_check initializer.
20 (auto_language_data): Likewise.
21 * language.h (range_mode): Delete. Enum definition moved to
22 language.c.
23 (language_data): Remove la_range_check field.
24 (language_defn::range_checking_on_by_default): New member
25 function.
26 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
27 (m2_language::range_checking_on_by_default): New member function.
28 * objc-lang.c (objc_language_data): Remove la_range_check
29 initializer.
30 * opencl-lang.c (opencl_language_data): Likewise.
31 * p-lang.c (pascal_language_data): Likewise.
32 (pascal_language::range_checking_on_by_default): New member
33 function.
34 * rust-lang.c (rust_language_data): Remove la_range_check
35 initializer.
36 (rust_language::range_checking_on_by_default): New member
37 function.
38
bf92aec5
AB
392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
40
41 * dwarf2/read.c (dwarf2_physname): Remove special case for
42 language_go.
43 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
44 member function.
45
d3355e4d
AB
462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * ada-lang.c (ada_language_data): Remove
49 la_store_sym_names_in_linkage_form_p initializer.
50 (ada_language::store_sym_names_in_linkage_form_p): New member
51 function.
52 * c-lang.c (c_language_data): Remove
53 la_store_sym_names_in_linkage_form_p initializer.
54 (c_language::store_sym_names_in_linkage_form_p): New member
55 function.
56 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
57 initializer.
58 (asm_language_data): Likewise.
59 (asm_language::store_sym_names_in_linkage_form_p): New member
60 function.
61 (minimal_language_data): Remove
62 la_store_sym_names_in_linkage_form_p initializer.
63 (minimal_language::store_sym_names_in_linkage_form_p): New member
64 function.
65 * d-lang.c (d_language_data): Remove
66 la_store_sym_names_in_linkage_form_p initializer.
67 * dwarf2/read.c (dwarf2_physname): Update call to
68 store_sym_names_in_linkage_form_p.
69 * f-lang.c (f_language_data): Remove
70 la_store_sym_names_in_linkage_form_p initializer.
71 * go-lang.c (go_language_data): Remove
72 la_store_sym_names_in_linkage_form_p initializer.
73 * language.c (unknown_language_data): Remove
74 la_store_sym_names_in_linkage_form_p initializer.
75 (unknown_language::store_sym_names_in_linkage_form_p): New member
76 function.
77 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
78 initializer.
79 (auto_language::store_sym_names_in_linkage_form_p): New member
80 function.
81 * language.h (language_data): Remove
82 la_store_sym_names_in_linkage_form_p member variable.
83 (language_defn::store_sym_names_in_linkage_form_p): New member
84 function.
85 * m2-lang.c (m2_language_data): Remove
86 la_store_sym_names_in_linkage_form_p initializer.
87 * objc-lang.c (objc_language_data): Likewise.
88 * opencl-lang.c (opencl_language_data): Likewise.
89 * p-lang.c (pascal_language_data): Likewise.
90 * rust-lang.c (rust_language_data): Likewise.
91
22c12a6c
AB
922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 * ada-lang.c (ada_language_data): Remove string_lower_bound
95 initializer.
96 * c-lang.c (c_language_data): Likewise.
97 (cplus_language_data): Likewise.
98 (asm_language_data): Likewise.
99 (minimal_language_data): Likewise.
100 * d-lang.c (d_language_data): Likewise.
101 * f-lang.c (f_language_data): Likewise.
102 * go-lang.c (go_language_data): Likewise.
103 * language.c (unknown_language_data): Likewise.
104 (auto_language_data): Likewise.
105 * language.h (language_data): Remove string_lower_bound field.
106 (language_defn::string_lower_bound): New member function.
107 * m2-lang.c (m2_language_data): Remove string_lower_bound
108 initializer.
109 (m2_language::string_lower_bound): New member function.
110 * objc-lang.c (objc_language_data): Remove string_lower_bound
111 initializer.
112 * opencl-lang.c (opencl_language_data): Likewise.
113 * p-lang.c (pascal_language_data): Likewise.
114 * rust-lang.c (rust_language_data): Likewise.
115 * valops.c (value_cstring): Update call to string_lower_bound.
116 (value_string): Likewise.
117 * value.c (allocate_repeated_value): Likewise.
118
1c236ddd
AB
1192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * valops.c (value_repeat): Fix incorrect argument name in comment.
122
67bd3fd5
AB
1232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * ada-lang.c (ada_language_data): Remove c_style_arrays
126 initializer.
127 (ada_language::c_style_arrays_p): New member fuction.
128 * c-lang.c (c_language_data): Remove c_style_arrays
129 initializer.
130 (cplus_language_data): Likewise.
131 (asm_language_data): Likewise.
132 (minimal_language_data): Likewise.
133 * d-lang.c (d_language_data): Likewise.
134 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
135 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
136 (f_language::c_style_arrays_p): New member function.
137 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
138 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
139 * language.c (unknown_language_data): Remove c_style_arrays
140 initializer.
141 (auto_language_data): Likewise.
142 * language.h (language_data): Remove c_style_arrays field.
143 (language_defn::c_style_arrays_p): New member function.
144 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
145 (m2_language::c_style_arrays_p): New member function.
146 * objc-lang.c (objc_language_data): Remove c_style_arrays
147 initializer.
148 * opencl-lang.c (opencl_language_data): Likewise.
149 * p-lang.c (pascal_language_data): Likewise.
150 * rust-lang.c (rust_language_data): Likewise.
151 * valarith.c (value_subscript): Update call to c_style_arrays_p,
152 and update local variable to a bool.
153 * valops.c (value_cast): Update call to c_style_arrays_p.
154 (value_array): Likewise.
155 * value.c (coerce_array): Likewise.
156
85967615
AB
1572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * ada-lang.c (ada_language_data): Remove la_language initializer.
160 * c-lang.c (c_language_data): Likewise.
161 (cplus_language_data): Likewise.
162 (asm_language_data): Likewise.
163 (minimal_language_data): Likewise.
164 * d-lang.c (d_language_data): Likewise.
165 * f-lang.c (f_language_data): Likewise.
166 * go-lang.c (go_language_data): Likewise.
167 * language.c (unknown_language_data): Likewise.
168 (auto_language_data): Likewise.
169 * language.h (language_data): Remove la_language field.
170 (language_defn::language_defn): Initialise la_language field.
171 (language_defn::la_language): New member variable.
172 * m2-lang.c (m2_language_data): Remove la_language field.
173 * objc-lang.c (objc_language_data): Likewise.
174 * opencl-lang.c (opencl_language_data): Likewise.
175 * p-lang.c (pascal_language_data): Likewise.
176 * rust-lang.c (rust_language_data): Likewise.
177
e171d6f1
AB
1782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * ada-lang.c (ada_extensions): Delete, moved into
181 ada_language::filename_extensions.
182 (ada_language_data): Remove la_filename_extensions initializer.
183 (ada_language::filename_extensions): New member function.
184 * c-lang.c (c_extensions): Delete, moved into
185 c_language::filename_extensions.
186 (c_language_data): Remove la_filename_extensions initializer.
187 (c_language::filename_extensions): New member function.
188 (cplus_extensions): Delete, moved into
189 cplus_language::filename_extensions.
190 (cplus_language_data): Remove la_filename_extensions initializer.
191 (cplus_language::filename_extensions): New member function.
192 (asm_extensions): Delete, moved into
193 asm_language::filename_extensions.
194 (asm_language_data): Remove la_filename_extensions initializer.
195 (asm_language::filename_extensions): New member function.
196 (minimal_language_data): Remove la_filename_extensions
197 initializer.
198 * d-lang.c (d_extensions): Delete, moved into
199 d_language::filename_extensions.
200 (d_language_data): Remove la_filename_extensions initializer.
201 (d_language::filename_extensions): New member function.
202 * f-lang.c (f_extensions): Delete, moved into
203 f_language::filename_extensions.
204 (f_language_data): Remove la_filename_extensions initializer.
205 (f_language::filename_extensions): New member function.
206 * go-lang.c (go_language_data): Remove la_filename_extensions
207 initializer.
208 * language.c (add_set_language_command): Update now that
209 filename_extensions returns a vector.
210 (unknown_language_data): Remove la_filename_extensions
211 initializer.
212 (auto_language_data): Likewise.
213 * language.h (language_data): Remove la_filename_extensions field.
214 (language_defn::filename_extensions): New member function.
215 * m2-lang.c (m2_language_data): Remove la_filename_extensions
216 initializer.
217 * objc-lang.c (objc_extensions): Delete, moved into
218 objc_language::filename_extensions.
219 (objc_language_data): Remove la_filename_extensions initializer.
220 (objc_language::filename_extensions): New member function.
221 * opencl-lang.c (opencl_language_data): Remove
222 la_filename_extensions initializer.
223 * p-lang.c (pascal_extensions): Delete, moved into
224 pascal_language::filename_extensions.
225 (pascal_language_data): Remove la_filename_extensions initializer.
226 (pascal_language::filename_extensions): New member function.
227 * rust-lang.c (rust_extensions): Delete, moved into
228 rust_language::filename_extensions.
229 (rust_language_data): Remove la_filename_extensions initializer.
230 (rust_language::filename_extensions): New member function.
231 * symfile.c (add_filename_language): Add new assert.
232
6f7664a9
AB
2332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * ada-lang.c (ada_language_data): Remove la_name and
236 la_natural_name initializers.
237 (ada_language::name): New member function.
238 (ada_language::natural_name): New member function.
239 * c-lang.c (c_language_data): Remove la_name and
240 la_natural_name initializers.
241 (c_language::name): New member function.
242 (c_language::natural_name): New member function.
243 (cplus_language_data): Remove la_name and
244 la_natural_name initializers.
245 (cplus_language::name): New member function.
246 (cplus_language::natural_name): New member function.
247 (asm_language_data): Remove la_name and
248 la_natural_name initializers.
249 (asm_language::name): New member function.
250 (asm_language::natural_name): New member function.
251 (minimal_language_data): Remove la_name and
252 la_natural_name initializers.
253 (minimal_language::name): New member function.
254 (minimal_language::natural_name): New member function.
255 * compile/compile.c (compile_to_object): Update call to
256 lanugage_defn::name.
257 * d-lang.c (d_language_data): Remove la_name and
258 la_natural_name initializers.
259 (d_language::name): New member function.
260 (d_language::natural_name): New member function.
261 * expprint.c (print_subexp_standard): Update call to
262 language_defn::name.
263 (dump_raw_expression): Likewise
264 (dump_prefix_expression): Likewise.
265 * f-lang.c (f_language_data): Remove la_name and
266 la_natural_name initializers.
267 (f_language::name): New member function.
268 (f_language::natural_name): New member function.
269 * go-lang.c (go_language_data): Remove la_name and
270 la_natural_name initializers.
271 (go_language::name): New member function.
272 (go_language::natural_name): New member function.
273 * language.c (show_language_command): Update call to
274 language_defn::name.
275 (set_language_command): Likewise.
276 (language_enum): Likewise.
277 (language_str): Likewise.
278 (add_set_language_command): Likewise, use
279 language_defn::natural_name in the doc string.
280 (unknown_language_data): Remove la_name and
281 la_natural_name initializers.
282 (unknown_language::name): New member function.
283 (unknown_language::natural_name): New member function.
284 (auto_language_data): Remove la_name and
285 la_natural_name initializers.
286 (auto_language::name): New member function.
287 (auto_language::natural_name): New member function.
288 (language_lookup_primitive_type_as_symbol): Update call to
289 language_defn::name.
290 * language.h (language_data): Remove la_name and la_natural_name
291 member variables.
292 (language_defn::name): New member function.
293 (language_defn::natural_name): New member function.
294 * m2-lang.c (m2_language_data): Remove la_name and
295 la_natural_name initializers.
296 (m2_language::name): New member function.
297 (m2_language::natural_name): New member function.
298 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
299 language_defn::natural_name.
300 * objc-lang.c (objc_language_data): Remove la_name and
301 la_natural_name initializers.
302 (objc_language::name): New member function.
303 (objc_language::natural_name): New member function.
304 * opencl-lang.c (opencl_language_data): Remove la_name and
305 la_natural_name initializers.
306 (opencl_language::name): New member function.
307 (opencl_language::natural_name): New member function.
308 * p-lang.c (pascal_language_data): Remove la_name and
309 la_natural_name initializers.
310 (pascal_language::name): New member function.
311 (pascal_language::natural_name): New member function.
312 * rust-lang.c (rust_language_data): Remove la_name and
313 la_natural_name initializers.
314 (rust_language::name): New member function.
315 (rust_language::natural_name): New member function.
316 * symtab.c (lookup_language_this): Update call to
317 language_defn::name.
318
5bae7c4e
AB
3192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * ada-lang.c (ada_language_data): Remove la_name_of_this
322 initializer.
323 * ax-gdb.c (gen_expr): Update call to name_of_this.
324 * c-exp.y (classify_name): Likewise.
325 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
326 (cplus_language_data): Likewise.
327 (cplus_language::name_of_this): New member function.
328 (asm_language_data): Remove la_name_of_this initializer.
329 (minimal_language_data): Likewise.
330 * d-lang.c (d_language_data): Likewise.
331 (d_language::name_of_this): New member function.
332 * expprint.c (print_subexp_standard): Update call to name_of_this.
333 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
334 * go-lang.c (go_language_data): Likewise.
335 * language.c (unknown_language_data): Likewise.
336 (unknown_language::name_of_this): New member function.
337 (auto_language_data): Remove la_name_of_this initializer.
338 (auto_language::name_of_this): New member function.
339 * language.h (language_data): Delete la_name_of_this member
340 variable.
341 (language_defn::name_of_this): New member function.
342 * m2-lang.c (m2_language_data): Remove la_name_of_this
343 initializer.
344 * objc-lang.c (objc_language_data): Likewise.
345 (objc_language::name_of_this): New member function.
346 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
347 initializer.
348 * p-lang.c (pascal_language_data): Likewise.
349 (pascal_language::name_of_this): New member function.
350 * rust-lang.c (rust_language_data): Remove la_name_of_this
351 initializer.
352 * symtab.c (lookup_language_this): Update call to name_of_this.
353 (lookup_symbol_aux): Likewise.
354 * valops.c (value_of_this): Likewise.
355
22e3f3ed
AB
3562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * ada-lang.c (ada_language_data): Remove
359 la_struct_too_deep_ellipsis initializer.
360 (ada_language::struct_too_deep_ellipsis): New member function.
361 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
362 initializer.
363 (cplus_language_data): Likewise.
364 (asm_language_data): Likewise.
365 (minimal_language_data): Likewise.
366 * cp-valprint.c (cp_print_value): Update call to
367 struct_too_deep_ellipsis.
368 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
369 initializer.
370 * f-lang.c (f_language_data): Likewise.
371 (f_language::struct_too_deep_ellipsis): New member function.
372 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
373 initializer.
374 * language.c (unknown_language_data): Likewise.
375 (auto_language_data): Likewise.
376 * language.h (language_data): Delete la_struct_too_deep_ellipsis
377 member variable.
378 (language_defn::struct_too_deep_ellipsis): New member function.
379 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
380 initializer.Q
381 * objc-lang.c (objc_language_data): Likewise.
382 * opencl-lang.c (opencl_language_data): Likewise.
383 * p-lang.c (pascal_language_data): Likewise.
384 * rust-lang.c (rust_language_data): Likewise.
385 * valprint.c (val_print_check_max_depth): Update call to
386 struct_too_deep_ellipsis.
387
ed29e1c7
FW
3882020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
389
390 * MAINTAINERS (Write After Approval): Add myself.
391
12d8f940
TT
3922020-09-15 Tom Tromey <tom@tromey.com>
393
394 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
395 Remove.
396
6b5a7bc7
TT
3972020-09-15 Tom Tromey <tom@tromey.com>
398
399 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
400 and TYPE_CODE_METHODPTR cases.
401 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
402 (c_value_print_inner): Update.
403 * valprint.c (generic_value_print_memberptr): New function, from
404 c_value_print_memberptr.
405 (generic_value_print): Use it. Call cplus_print_method_ptr.
406
47f0e2ff
TT
4072020-09-15 Tom Tromey <tromey@adacore.com>
408
409 * python/python-internal.h (PyInt_FromLong): Remove define.
410 * python/py-value.c (convert_value_from_python): Use
411 gdb_py_object_from_longest.
412 * python/py-type.c (typy_get_code): Use
413 gdb_py_object_from_longest.
414 * python/py-symtab.c (salpy_get_line): Use
415 gdb_py_object_from_longest.
416 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
417 gdb_py_object_from_longest.
418 * python/py-record.c (recpy_gap_reason_code): Use
419 gdb_py_object_from_longest.
420 * python/py-record-btrace.c (recpy_bt_insn_size)
421 (recpy_bt_func_level, btpy_list_count): Use
422 gdb_py_object_from_longest.
423 * python/py-infthread.c (gdbpy_create_ptid_object): Use
424 gdb_py_object_from_longest. Fix error handling.
425 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
426 gdb_py_object_from_longest.
427 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
428 gdb_py_object_from_longest.
429 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
430 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
431 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
432
512116ce
TT
4332020-09-15 Tom Tromey <tromey@adacore.com>
434
435 * python/python.c (gdbpy_parameter_value): Use
436 gdb_py_object_from_ulongest.
437
4ab1029c
TT
4382020-09-15 Tom Tromey <tromey@adacore.com>
439
440 * python/py-infevents.c (create_register_changed_event_object):
441 Use gdb_py_object_from_longest.
442 * python/py-exitedevent.c (create_exited_event_object): Use
443 gdb_py_object_from_longest.
444
062534d4
TT
4452020-09-15 Tom Tromey <tromey@adacore.com>
446
447 * python/python.c (gdbpy_parameter_value): Use
448 gdb_py_object_from_longest.
449 * python/py-type.c (convert_field, typy_range): Use
450 gdb_py_object_from_longest.
451 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
452 gdb_py_object_from_longest.
453 * python/py-lazy-string.c (stpy_get_length): Use
454 gdb_py_object_from_longest.
455 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
456 gdb_py_object_from_longest.
457 * python/py-infevents.c (create_memory_changed_event_object): Use
458 gdb_py_object_from_longest.
459 * python/py-inferior.c (infpy_get_num): Use
460 gdb_py_object_from_longest.
461 (infpy_get_pid): Likewise.
462
d1cab987
TT
4632020-09-15 Tom Tromey <tromey@adacore.com>
464
465 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
466 defines.
467 * python/py-value.c (valpy_long): Use
468 gdb_py_object_from_ulongest.
469 * python/py-symtab.c (salpy_get_pc): Use
470 gdb_py_object_from_ulongest.
471 (salpy_get_last): Likewise.
472 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
473 gdb_py_object_from_ulongest.
474 * python/py-lazy-string.c (stpy_get_address): Use
475 gdb_py_object_from_ulongest.
476 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
477 * python/py-arch.c (archpy_disassemble): Use
478 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
479 error handling.
480
4bde49dc
TT
4812020-09-15 Tom Tromey <tromey@adacore.com>
482
483 * python/python-internal.h (gdb_py_long_from_longest): Remove
484 defines.
485 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
486 * python/py-type.c (convert_field, typy_get_sizeof): Use
487 gdb_py_object_from_longest.
488 * python/py-record-btrace.c (btpy_list_index): Use
489 gdb_py_object_from_longest.
490
37431074
TT
4912020-09-15 Tom Tromey <tromey@adacore.com>
492
493 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
494 * python/py-record.c (recpy_element_number): Use
495 gdb_py_object_from_longest.
496 (recpy_gap_number): Likewise.
497
cbe25684
TT
4982020-09-15 Tom Tromey <tromey@adacore.com>
499
500 * top.c (ui::ui): Update.
501 (highest_ui_num): Remove.
502 * top.h (struct ui) <num>: Remove.
503
db92ac45
TT
5042020-09-15 Tom Tromey <tromey@adacore.com>
505
506 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
507 * ui-style.c (ansi_regex_text): Now array.
508 * rust-exp.y (number_regex_text): Now array.
509 * linespec.c (linespec_quote_characters): Now array.
510 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
511 Now arrays.
512
d2b31b67
SM
5132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
514
515 * debuginfod-support.c (debuginfod_client_deleter): New.
516 (debuginfod_client_up): New.
517 (debuginfod_init): Return debuginfod_client_up.
518 (debuginfod_source_query): Adjust.
519 (debuginfod_debuginfo_query): Adjust.
520
3246bd8e
SM
5212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * debuginfod-support.c (debuginfod_source_query): Use
524 make_unique_xstrdup.
525
10242f36
SM
5262020-09-14 Simon Marchi <simon.marchi@efficios.com>
527
528 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
529 with `type::instance_flags`.
530
e1044e6a
MM
5312020-09-14 Michael Mullin <masmullin@gmail.com>
532
533 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
534 Remove baton parameter.
535
04902b09
PA
5362020-09-14 Pedro Alves <pedro@palves.net>
537
538 * Makefile.in (SELFTESTS_SRCS): Add
539 unittests/enum-flags-selftests.c.
540 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
541 btrace_function_flags instead of enum btrace_function_flag.
542 * compile/compile-c-types.c (convert_qualified): Use
543 enum_flags::raw.
544 * compile/compile-cplus-symbols.c (convert_one_symbol)
545 (convert_symbol_bmsym):
546 * compile/compile-cplus-types.c (compile_cplus_convert_method)
547 (compile_cplus_convert_struct_or_union_methods)
548 (compile_cplus_instance::convert_qualified_base):
549 * go-exp.y (parse_string_or_char): Add cast to int.
550 * unittests/enum-flags-selftests.c: New file.
551 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
552 type to btrace_thread_flags from btrace_thread_flag.
553 (record_btrace_cancel_resume, record_btrace_step_thread): Change
554 local's type to btrace_thread_flags from btrace_thread_flag. Add
555 cast in DEBUG call.
556
69896a2c
PA
5572020-09-14 Pedro Alves <pedro@palves.net>
558
559 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
560 * gdbtypes.c (address_space_name_to_int): Rename to ...
561 (address_space_name_to_type_instance_flags): ... this.
562 (address_space_int_to_name): Rename to ...
563 (address_space_type_instance_flags_to_name): ... this.
564 * gdbtypes.h (address_space_name_to_int): Rename to ...
565 (address_space_name_to_type_instance_flags): ... this.
566 (address_space_int_to_name): Rename to ...
567 (address_space_type_instance_flags_to_name): ... this.
568 * type-stack.c (type_stack::insert): Adjust to rename.
569 * type-stack.h (type_stack::insert): Likewise.
570
314ad88d
PA
5712020-09-14 Pedro Alves <pedro@palves.net>
572 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * avr-tdep.c (avr_address_class_type_flags): Return
575 type_instance_flags.
576 (avr_address_class_type_flags_to_name): Take a
577 type_instance_flags.
578 (avr_address_class_name_to_type_flags): Return bool and take a
579 type_instance_flags.
580 * d-lang.c (build_d_types): Use type::set_instance_flags.
581 * ft32-tdep.c (ft32_address_class_type_flags): Return
582 type_instance_flags.
583 (ft32_address_class_type_flags_to_name): Take a
584 type_instance_flags.
585 (ft32_address_class_name_to_type_flags): Return bool and take a
586 type_instance_flags.
587 (ft32_gdbarch_init): Use type::set_instance_flags.
588 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
589 * gdbarch.h, gdbarch.c: Regenerate.
590 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
591 (address_class_name_to_type_flags): Use type_instance_flags and
592 bool.
593 * gdbtypes.c (address_space_name_to_int)
594 (address_space_int_to_name, make_qualified_type): Use
595 type_instance_flags.
596 (make_qualified_type): Use type_instance_flags and
597 type::set_instance_flags.
598 (make_type_with_address_space, make_cv_type, make_vector_type)
599 (check_typedef): Use type_instance_flags.
600 (recursive_dump_type): Cast type_instance_flags to unsigned for
601 printing.
602 (copy_type_recursive): Use type::set_instance_flags.
603 (gdbtypes_post_init): Use type::set_instance_flags.
604 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
605 <m_instance_flags>: ... this.
606 <instance_flags, set_instance_flags>: New methods.
607 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
608 (SET_TYPE_INSTANCE_FLAGS): New.
609 (address_space_name_to_int, address_space_int_to_name)
610 (make_type_with_address_space): Pass flags using
611 type_instance_flags instead of int.
612 * stabsread.c (cleanup_undefined_types_noname): Use
613 type::set_instance_flags.
614 * s390-tdep.c (s390_address_class_type_flags): Return
615 type_instance_flags.
616 (s390_address_class_type_flags_to_name): Take a
617 type_instance_flags.
618 (s390_address_class_name_to_type_flags): Return bool and take a
619 type_instance_flags.
620 * type-stack.c (type_stack::follow_types): Use
621 type_instance_flags.
622 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
623
27087b7f
TT
6242020-09-14 Tom Tromey <tromey@adacore.com>
625
626 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
627 * x86-tdep.c (x86_is_thunk_register_name)
628 (x86_in_indirect_branch_thunk): Update.
629 * sparc64-tdep.c (sparc64_fpu_register_names)
630 (sparc64_cp0_register_names, sparc64_register_names)
631 (sparc64_pseudo_register_names): Now const.
632 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
633 cp0_registers_num>: Now const.
634 * sparc-tdep.c (sparc_core_register_names)
635 (sparc32_fpu_register_names, sparc32_cp0_register_names)
636 (sparc32_pseudo_register_names): Now const.
637 (validate_tdesc_registers): Update.
638 * rust-lang.c (rust_extensions): Now const.
639 * p-lang.c (p_extensions): Now const.
640 * objc-lang.c (objc_extensions): Now const.
641 * nto-tdep.c (nto_thread_state_str): Now const.
642 * moxie-tdep.c (moxie_register_names): Now const.
643 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
644 Now const.
645 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
646 (mips_linux_reg_names): Now const.
647 (mips_gdbarch_init): Update.
648 * microblaze-tdep.c (microblaze_register_names): Now const.
649 * m68k-tdep.c (m68k_register_names): Now const.
650 * m32r-tdep.c (m32r_register_names): Now const.
651 * ia64-tdep.c (ia64_register_names): Now const.
652 * i386-tdep.h (struct gdbarch_tdep) <register_names,
653 ymmh_register_names, ymm16h_regnum, mpx_register_names,
654 k_register_names, zmmh_register_names, xmm_avx512_register_names,
655 ymm_avx512_register_names, pkeys_register_names>: Now const.
656 * i386-tdep.c (i386_register_names, i386_zmm_names)
657 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
658 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
659 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
660 * f-lang.c (f_extensions): Now const.
661 * d-lang.c (d_extensions): Now const.
662 * csky-tdep.c (csky_register_names): Now const.
663 * charset.c (default_charset_names, charset_enum): Now const.
664 (_initialize_charset): Update.
665 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
666 const.
667 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
668 (bsd_uthread_solib_loaded): Update.
669 (bsd_uthread_state): Now const.
670 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
671 (amd64_ymm_avx512_names, amd64_ymmh_names)
672 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
673 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
674 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
675 (amd64_dword_names): Now const.
676 * agent.c (can_use_agent_enum): Now const.
677 * ada-tasks.c (task_states, long_task_states): Now const.
678 * ada-lang.c (known_runtime_file_name_patterns)
679 (known_auxiliary_function_name_patterns, attribute_names)
680 (standard_exc, ada_extensions): Now const.
681
89806626
SM
6822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * bcache.h (struct bcache) <bcache>: Remove constructor.
685 <m_hash_function, m_compare_function>: Remove.
686 <~bcache>: Make virtual.
687 <compare>: Remove static method, introduce virtual method.
688 <default_hash>: Remove.
689 <hash>: New virtual method.
690 * bcache.c (bcache::expand_hash_table): Update.
691 (bcache::insert): Update.
692 (bcache::hash): New.
693 (bcache::compare): Update comment and parameter names.
694 * gdbtypes.c (types_deeply_equal): Update.
695 * psymtab.h (struct psymbol_bcache): New struct.
696 (class psymtab_storage) <psymtab_storage>: Make default.
697 <psymbol_cache>: Change type to psymbol_bcache.
698 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
699 (psymbol_hash): Change to...
700 (psymbol_bcache::hash): ... this.
701 (psymbol_compare): Change to...
702 (psymbol_bcache::compare): ... this.
703
677c92fe
SM
7042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
707 checking for initial lwp.
708
3eba3a01
TT
7092020-09-14 Tom Tromey <tromey@adacore.com>
710
711 * m68k-tdep.c (m68k_extract_return_value): Use
712 pointer_result_regnum.
713 (m68k_store_return_value): Likewise.
714 (m68k_reg_struct_return_p): Handle vectors and arrays.
715 (m68k_return_value): Handle arrays.
716 (m68k_svr4_return_value): Fix single-element aggregate handling.
717 Handle long double. Adjust for embedded ABI.
718 (m68k_svr4_init_abi): Set pointer_result_regnum.
719 (m68k_embedded_init_abi): New function.
720 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
721 (m68k_osabi_sniffer): New function.
722 (_initialize_m68k_tdep): Register osabi sniffer.
723 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
724 member.
725
33f4dd48
SM
7262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * xml-support.c (xml_fetch_content_from_file): Replace xfree
729 with gdb::unique_xmalloc_ptr<char>.
730
8400a90d
SM
7312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
732
733 * xml-support.h (xml_fetch_another): Change type to be a
734 function_view.
735 (xml_process_xincludes): Remove baton parameter.
736 (xml_fetch_content_from_file): Change baton parameter to
737 dirname.
738 * xml-support.c (struct xinclude_parsing_data)
739 <xinclude_parsing_data>: Remove baton parameter.
740 <fetcher_baton>: Remove.
741 (xinclude_start_include): Adjust.
742 (xml_process_xincludes): Adjust.
743 (xml_fetch_content_from_file): Replace baton parameter with
744 dirname.
745 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
746 (xml_init_syscalls_info): Use a lambda.
747 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
748 (file_read_description_xml): Use a lambda.
749 (fetch_available_features_from_target): Change baton parameter
750 to target_ops.
751 (target_read_description_xml): Use a lambda.
752 (target_fetch_description_xml): Use a lambda.
753 (string_read_description_xml): Update.
754
04f5bab2
SM
7552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
758 uses with type::endianity_is_not_default.
759
db558e34
SM
7602020-09-14 Simon Marchi <simon.marchi@efficios.com>
761
762 * gdbtypes.h (struct type) <endianity_is_not_default,
763 set_endianity_is_not_default>: New methods.
764 (TYPE_ENDIANITY_NOT_DEFAULT): Use
765 type::endianity_is_not_default, change all write call sites to
766 use type::set_endianity_is_not_default.
767
22c4c60c
SM
7682020-09-14 Simon Marchi <simon.marchi@efficios.com>
769
770 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
771 uses with type::is_fixed_instance.
772
9cdd0d12
SM
7732020-09-14 Simon Marchi <simon.marchi@efficios.com>
774
775 * gdbtypes.h (struct type) <is_fixed_instance,
776 set_is_fixed_instance>: New methods.
777 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
778 write call sites to use type::set_is_fixed_instance.
779
0becda7a
SM
7802020-09-14 Simon Marchi <simon.marchi@efficios.com>
781
782 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
783 uses with type::is_gnu_ifunc.
784
03cc7249
SM
7852020-09-14 Simon Marchi <simon.marchi@efficios.com>
786
787 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
788 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
789 use type::set_is_gnu_ifunc.
790
3f46044c
SM
7912020-09-14 Simon Marchi <simon.marchi@efficios.com>
792
793 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
794 uses with type::stub_is_supported.
795
9baccff6
SM
7962020-09-14 Simon Marchi <simon.marchi@efficios.com>
797
798 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
799 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
800 use type::set_stub_is_supported.
801
bd63c870
SM
8022020-09-14 Simon Marchi <simon.marchi@efficios.com>
803
804 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
805 uses with type::is_vector.
806
2062087b
SM
8072020-09-14 Simon Marchi <simon.marchi@efficios.com>
808
809 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
810 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
811 use type::set_is_vector.
812
a409645d
SM
8132020-09-14 Simon Marchi <simon.marchi@efficios.com>
814
815 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
816 uses with type::has_varargs.
817
1d6286ed
SM
8182020-09-14 Simon Marchi <simon.marchi@efficios.com>
819
820 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
821 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
822 use type::set_has_varargs.
823
7f9f399b
SM
8242020-09-14 Simon Marchi <simon.marchi@efficios.com>
825
826 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
827 uses with type::is_prototyped.
828
27e69b7a
SM
8292020-09-14 Simon Marchi <simon.marchi@efficios.com>
830
831 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
832 New methods.
833 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
834 call sites to use type::set_is_prototyped.
835
d2183968
SM
8362020-09-14 Simon Marchi <simon.marchi@efficios.com>
837
838 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
839 uses with type::target_is_stub.
840
8f53807e
SM
8412020-09-14 Simon Marchi <simon.marchi@efficios.com>
842
843 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
844 New methods.
845 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
846 sites to use type::set_target_is_stub.
847
e46d3488
SM
8482020-09-14 Simon Marchi <simon.marchi@efficios.com>
849
850 * gdbtypes.h (TYPE_STUB): Remove, replace all
851 uses with type::is_stub.
852
b4b73759
SM
8532020-09-14 Simon Marchi <simon.marchi@efficios.com>
854
855 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
856 (TYPE_STUB): Use type::is_stub, change all write call sites to
857 use type::set_is_stub.
858
20ce4123
SM
8592020-09-14 Simon Marchi <simon.marchi@efficios.com>
860
861 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
862 type::has_no_signedness.
863
15152a54
SM
8642020-09-14 Simon Marchi <simon.marchi@efficios.com>
865
866 * gdbtypes.h (struct type) <has_no_signedness,
867 set_has_no_signedness>: New methods.
868 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
869 call sites to use type::set_has_no_signedness.
870
c6d940a9
SM
8712020-09-14 Simon Marchi <simon.marchi@efficios.com>
872
873 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
874 type::is_unsigned.
875
653223d3
SM
8762020-09-14 Simon Marchi <simon.marchi@efficios.com>
877
878 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
879 methods.
880 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
881 sites to use type::set_is_unsigned.
882
55ea94da
FH
8832020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
884 Adam Renquinha <arenquinha@cimeq.qc.ca>
885
886 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
887 pointer and stack frame offset when unwinding.
888
6791b117
PA
8892020-09-13 Pedro Alves <pedro@palves.net>
890
891 * NEWS: Document "-break-insert --qualified".
892 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
893
77f2120b
PA
8942020-09-13 Pedro Alves <pedro@palves.net>
895
896 * linespec.c (classify_mtype, compare_msyms): Delete.
897 (search_minsyms_for_name): Remove classification logic. Instead
898 filter out trampoline symbols if we also found an external
899 function of the same name.
900
ed6a896c
JB
9012020-09-13 Joel Brobecker <brobecker@adacore.com>
902
903 * NEWS: Create a new section for the next release branch.
904 Rename the section of the current branch, now that it has
905 been cut.
906
32aea73e
JB
9072020-09-13 Joel Brobecker <brobecker@adacore.com>
908
909 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
910 * version.in: Bump version to 11.0.50.DATE-git.
911
8087c3fa
JB
9122020-09-12 Joel Brobecker <brobecker@adacore.com>
913
914 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
915
2a67f09d
FW
9162020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
917 Felix Willgerodt <Felix.Willgerodt@intel.com>
918
919 * gdbarch.sh: Added bfloat16 type.
920 * gdbarch.c: Regenerated.
921 * gdbarch.h: Regenerated.
922 * gdbtypes.c (floatformats_bfloat16): New struct.
923 (gdbtypes_post_init): Add builtin_bfloat16.
924 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
925 (floatformats_bfloat16): New struct.
926 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
927 (i386_ymm_type): Add field "v16_bfloat16"
928 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
929 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
930 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
931 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
932 * features/i386/64bit-avx512.xml: Add bfloat16 type.
933 * features/i386/64bit-avx512.c: Regenerated.
934 * features/i386/64bit-sse.xml: Add bfloat16 type.
935 * features/i386/64bit-sse.c: Regenerated.
936
1347d111
FW
9372020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
938
939 * i386-tdep.c (i386_zmm_type): Fix field names.
940 (i386_ymm_type): Fix field names.
941
7a4e8e7d
TBA
9422020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
943
944 * breakpoint.c: Fix typo in the help message of the
945 "set breakpoint condition-evaluation" command.
946
cf4ac4be
KR
9472020-09-10 Kamil Rytarowski <n54@gmx.com>
948
949 * nbsd-nat.c: Include "nat/netbsd-nat.h".
950 * (nbsd_nat_target::pid_to_exec_file)
951 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
952 (nbsd_nat_target::post_startup_inferior)
953 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
954 (nbsd_add_threads): Switch local code to common gdb/nat functions.
955 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
956 * (nbsd_thread_lister): Remove.
957
f404573e
KR
9582020-09-10 Kamil Rytarowski <n54@gmx.com>
959
960 * fork-inferior.c (startup_inferior): Avoid double free.
961
1ccb2c17
KR
9622020-09-10 Kamil Rytarowski <n54@gmx.com>
963
964 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
965 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
966
feedfcc7
KR
9672020-09-10 Kamil Rytarowski <n54@gmx.com>
968
969 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
970 * netbsd-nat.c: Include <sys/ptrace.h>.
971 * (netbsd_nat::enable_proc_events): Add.
972
c489f8c6
KR
9732020-09-10 Kamil Rytarowski <n54@gmx.com>
974
975 * netbsd-nat.h: Include "gdbsupport/function-view.h".
976 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
977 (netbsd_nat::for_each_thread): Add.
978 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
979 "gdbsupport/common-debug.h".
980 * (netbsd_nat::netbsd_thread_lister)
981 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
982 (netbsd_nat::for_each_thread): Add.
983
330662f6
KR
9842020-09-10 Kamil Rytarowski <n54@gmx.com>
985
986 * netbsd-nat.h: Include <unistd.h>.
987 * (netbsd_nat::pid_to_exec_file): Add.
988 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
989 * (netbsd_nat::pid_to_exec_file) Add.
990
70b67307
KR
9912020-09-10 Kamil Rytarowski <n54@gmx.com>
992
993 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
994
99cf6da6
KR
9952020-09-10 Kamil Rytarowski <n54@gmx.com>
996
997 * netbsd-nat.h: New file.
998 * netbsd-nat.c: Likewise.
999
1b788fb6
TT
10002020-09-09 Tom Tromey <tromey@adacore.com>
1001
1002 * ada-lang.c (remove_extra_symbols): Do not increment when
1003 removing an element
1004
03b0a45f
TT
10052020-09-08 Tom Tromey <tromey@adacore.com>
1006
1007 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1008
3cae4447
TT
10092020-09-08 Tom Tromey <tromey@adacore.com>
1010
1011 PR win32/25302:
1012 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1013 (gdb_bfd_init_data): New function.
1014 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1015
7f08fd51
TBA
10162020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1017
1018 * infrun.c (fetch_inferior_event): Use
1019 `switch_to_target_no_thread` to switch the target.
1020
3e6ff933
TT
10212020-09-06 Tom Tromey <tom@tromey.com>
1022
1023 * symfile.h (dwarf2_free_objfile): Don't declare.
1024
e56798df
AKS
10252020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1026
1027 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1028 to match 16 byte real/complex type generated by Flang compiler.
1029
8f5c6526
TV
10302020-09-03 Tom de Vries <tdevries@suse.de>
1031
1032 PR breakpoint/26546
1033 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1034 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1035
c5065df0
SM
10362020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 * maint.c (index_digits): New function.
1039 (struct maint_print_section_data): Remove.
1040 (print_bfd_section_info): Remove print_data parameter, add arg
1041 and index_digits.
1042 (print_objfile_section_info): Likewise.
1043 (print_bfd_section_info_maybe_relocated): Likewise (plus
1044 objfile).
1045 (maintenance_info_sections): Adjust calls.
1046
02c6f3f1
TT
10472020-09-02 Tom Tromey <tromey@adacore.com>
1048
1049 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1050 for null pointers.
1051 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1052
ef5e5b0b
SM
10532020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1054
1055 * bcache.h (struct bcache) <insert>: Change type of `added` to
1056 pointer to bool.
1057 * bcache.c (bcache::insert): Likewise.
1058 * gdbtypes.c (check_types_worklist): Adjust.
1059 * psymtab.c (add_psymbol_to_bcache): Adjust.
1060
973695d6
KB
10612020-08-31 Kevin Buettner <kevinb@redhat.com>
1062
1063 * corelow.c (unordered_set): Include.
1064 (class core_target): Add field 'm_core_unavailable_mappings'.
1065 (core_target::build_file_mappings): Print only one warning
1066 per inaccessible file. Add unavailable/broken mappings
1067 to m_core_unavailable_mappings.
1068 (core_target::xfer_partial): Call...
1069 (core_target::xfer_memory_via_mappings): New method.
1070
264fc0e2
SM
10712020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1072
1073 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1074 type to bool.
1075
2de01bdb
SM
10762020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * dwarf2/read.c (struct field_info): Fix indentation.
1079
f3bd50f1
SM
10802020-08-31 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1083 ordering in comment.
1084 * frame.c (frame_id_eq): Fix indentation.
1085
22b9b4b0
SL
10862020-08-31 Scott Linder <scott@scottlinder.com>
1087 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1090 inline frame ids in outer frame.
1091
84154d16
SM
10922020-08-31 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1095 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1096 (outer_frame_id): Use FID_STACK_OUTER instead of
1097 FID_STACK_INVALID.
1098 (frame_id_p): Don't check for outer_frame_id.
1099
8efaf6b3
SM
11002020-08-31 Simon Marchi <simon.marchi@efficios.com>
1101
1102 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1103 regnum/frame in value. Call allocate_value_lazy.
1104 * frame.c (frame_unwind_register_value): Use
1105 val_print_not_saved.
1106
fe1fe7ea
SM
11072020-08-31 Simon Marchi <simon.marchi@efficios.com>
1108
1109 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1110
f7c7700d
PA
11112020-08-29 Pedro Alves <pedro@palves.net>
1112
1113 * progspace.c (print_program_space): Use all_inferiors. Switch to
1114 the inferior before calling target_pid_to_str.
1115
e0814aae
TT
11162020-08-28 Tom Tromey <tom@tromey.com>
1117
1118 * xcoffread.c (xcoff_end_psymtab): Update comment.
1119 * dbxread.c (dbx_end_psymtab): Update comment.
1120
626d2320
TV
11212020-08-28 Tom de Vries <tdevries@suse.de>
1122
1123 PR breakpoint/26544
1124 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1125 event_location.
1126 (create_breakpoint): Same.
1127 (base_breakpoint_decode_location): Same.
1128 (bkpt_create_sals_from_location): Same.
1129 (bkpt_decode_location): Same.
1130 (bkpt_probe_create_sals_from_location): Same.
1131 (bkpt_probe_decode_location): Same.
1132 (tracepoint_create_sals_from_location): Same.
1133 (tracepoint_decode_location): Same.
1134 (tracepoint_probe_decode_location): Same.
1135 (strace_marker_create_sals_from_location): Same.
1136 (strace_marker_decode_location): Same.
1137 (create_sals_from_location_default): Same.
1138 (decode_location_default): Same.
1139 * breakpoint.h (struct breakpoint_ops): Same.
1140 (create_breakpoint): Same.
1141 * linespec.h (decode_line_full): Same.
1142 * linespec.c (decode_line_full): Same. Throw error if
1143 result.size () == 0.
1144
df631783
PA
11452020-08-27 Pedro Alves <pedro@palves.net>
1146
1147 PR gdb/26524
1148 * breakpoint.c (until_break_fsm) <location_breakpoint,
1149 caller_breakpoint>: Delete fields.
1150 <breakpoints>: New field.
1151 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1152 two individual breakpoints.
1153 (until_break_fsm::should_stop): Loop over breakpoints in the
1154 breakpoint vector.
1155 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1156 vector.
1157 (until_break_command): Handle location expanding into multiple
1158 sals.
1159
b2b38aa4
PA
11602020-08-27 Pedro Alves <pedro@palves.net>
1161
1162 PR gdb/26523
1163 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1164 bp_until breakpoints user-specified locations. Update intro
1165 comment.
1166
b886559f
SM
11672020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1170 gdb_bfd_sections): New.
1171 * maint.c (print_bfd_section_info): Change param type to
1172 maint_print_section_data.
1173 (print_objfile_section_info): Likewise.
1174 (print_bfd_section_info_maybe_relocated): Likewise.
1175 (maintenance_info_sections): Use gdb_bfd_sections.
1176
4c6e63bf
SV
11772020-08-25 Shahab Vahedi <shahab@synopsys.com>
1178
1179 * MAINTAINERS: Add ARC target and maintainer.
1180
8d7f0635
AK
11812020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1182
1183 * configure.tgt: ARC support for GNU/Linux.
1184 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1185 * arc-linux-tdep.c: New file.
1186 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1187 * arc-tdep.c (arc_write_pc): Use it.
1188
fdd8731b
SV
11892020-08-25 Shahab Vahedi <shahab@synopsys.com>
1190
1191 * arc-tdep.c (arc_check_for_hardware_loop): New.
1192 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1193
22459524
SV
11942020-08-25 Shahab Vahedi <shahab@synopsys.com>
1195
1196 * arc-tdep.h: Include "gdbarch.h".
1197
995d3a19
SV
11982020-08-25 Shahab Vahedi <shahab@synopsys.com>
1199
1200 * arch/arc.h
1201 (arc_gdbarch_features): New class to stir the selection of target XML.
1202 (arc_create_target_description): Use FEATURES to choose XML target.
1203 (arc_lookup_target_description): Use arc_create_target_description
1204 to create _new_ target descriptions or return the already created
1205 ones if the FEATURES is the same.
1206 * arch/arc.c: Implementation of prototypes described above.
1207 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1208 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1209 * arc-tdep.c (*_feature_name): Make feature names consistent.
1210 (arc_register_feature): A new struct to hold information about
1211 registers of a particular target/feature.
1212 (arc_check_tdesc_feature): Check if XML provides registers in
1213 compliance with ARC_REGISTER_FEATURE structs.
1214 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1215 (determine_*_reg_feature_set): Which feature name to look for.
1216 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1217 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1218 to expected ISA enums to be used in arc_gdbarch_features structs.
1219 * features/Makefile (FEATURE_XMLFILES): Add new files.
1220 * gdb/features/arc/v1-aux.c: New file.
1221 * gdb/features/arc/v1-aux.xml: Likewise.
1222 * gdb/features/arc/v1-core.c: Likewise.
1223 * gdb/features/arc/v1-core.xml: Likewise.
1224 * gdb/features/arc/v2-aux.c: Likewise.
1225 * gdb/features/arc/v2-aux.xml: Likewise.
1226 * gdb/features/arc/v2-core.c: Likewise.
1227 * gdb/features/arc/v2-core.xml: Likewise.
1228 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1229
3945d2d7
GM
12302020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1231 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 PR m2/26372
fc5d6901 1234 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1235 an assert. Remove single element array indexing pattern as the
1236 MULTI_SUBSCRIPT support will handle this case too.
1237
2677f2d3
SM
12382020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * value.h (valprint_check_validity): Move declaration from
1241 here...
1242 * valprint.h (valprint_check_validity): ... to here.
1243
c426fddb
SM
12442020-08-24 Simon Marchi <simon.marchi@efficios.com>
1245
1246 * debug.h: New file.
1247 * debug.c (debug_prefixed_vprintf): New function.
1248 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1249 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1250
1eb8556f
SM
12512020-08-24 Simon Marchi <simon.marchi@efficios.com>
1252
1253 * infrun.h (infrun_debug_printf_1): New function declaration.
1254 (infrun_debug_printf): New macro.
1255 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1256 throughout.
1257 (infrun_debug_printf): New function.
1258 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1259 (handle_jit_event): Likewise.
1260
b8fff44e
MW
12612020-08-21 Mark Wielaard <mark@klomp.org>
1262
1263 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1264
d19c3068
SM
12652020-08-22 Simon Marchi <simon.marchi@efficios.com>
1266
1267 * frame.c (enum class frame_id_status): New.
1268 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1269 (fprintf_frame): Update.
1270 (compute_frame_id): Set frame id status to "computing" on entry.
1271 Set it back to "not_computed" on failure and to "computed" on
1272 success.
1273 (get_frame_id): Assert the frame id is not being computed.
1274 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1275 (create_new_frame): Likewise.
1276 (frame_cleanup_after_sniffer): Update assert.
1277
b70e516e
SM
12782020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * regcache.c (pid_ptid_regcache_map): New type.
1281 (target_ptid_regcache_map): Remove.
1282 (target_pid_ptid_regcache_map): New type.
1283 (regcaches): Change type to target_pid_ptid_regcache_map.
1284 (get_thread_arch_aspace_regcache): Update.
1285 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1286 case.
1287 (regcaches_size): Update.
1288 (regcache_count): Update.
1289 (registers_changed_ptid_target_pid_test): New.
1290 (_initialize_regcache): Register new test.
1291
cdd9148a
SM
12922020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1293
1294 * regcache.c (regcache_count): New.
1295 (struct regcache_test_data): New.
1296 (regcache_test_data_up): New.
1297 (populate_regcaches_for_test): New.
1298 (regcaches_test): Remove.
1299 (get_thread_arch_aspace_regcache_test): New.
1300 (registers_changed_ptid_all_test): New.
1301 (registers_changed_ptid_target_test): New.
1302 (registers_changed_ptid_target_ptid_test): New.
1303 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1304 (_initialize_regcache): Register new tests.
1305
dd125343
SM
13062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1307
1308 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1309 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1310 gdbarch and aspace parameter. Use current inferior's aspace.
1311 Validate regcache's arch value.
1312 (regcaches_test): Update.
1313
3ee93972
SM
13142020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * regcache.c (regcaches_test): Call registers_changed.
1317
33bf4c5c
TBA
13182020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1319
1320 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1321
c2fd7fae
AKS
13222020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1323
1324 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1325 to find the end of prologue for flang compiled binaries.
1326 * arm-tdep.c (arm_skip_prologue): Likewise.
1327 * i386-tdep.c (i386_skip_prologue): Likewise.
1328 * producer.c (producer_is_llvm): New function.
1329 (producer_parsing_tests): Added new tests for clang/flang.
1330 * producer.h (producer_is_llvm): New declaration.
1331
9327494e
SM
13322020-08-18 Simon Marchi <simon.marchi@efficios.com>
1333
1334 * linux-nat.c (linux_nat_debug_printf): New function.
1335 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1336
d138725a
AM
13372020-08-18 Aaron Merey <amerey@redhat.com>
1338
1339 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1340 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1341 (CLIBS): Add DEBUGINFOD_LIBS.
1342
f9b11e6b
ST
13432020-08-17 Sergei Trofimovich <siarheit@google.com>
1344
1345 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1346 'gdbarch_num_regs'.
1347
3ae7ab99
TT
13482020-08-17 Tom Tromey <tromey@adacore.com>
1349
1350 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1351 ada_get_decoded_value returns NULL.
1352
b017825f
TT
13532020-08-17 Tom Tromey <tromey@adacore.com>
1354
1355 * python/py-inferior.c (infpy_search_memory): Use
1356 gdb_py_object_from_ulongest.
1357 * python/py-infevents.c (create_inferior_call_event_object)
1358 (create_memory_changed_event_object): Use
1359 gdb_py_object_from_ulongest.
1360 * python/py-linetable.c (ltpy_entry_get_pc): Use
1361 gdb_py_object_from_ulongest.
1362
7635cf79
SM
13632020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * loc.c (class symbol_needs_eval_context): Fix indentation.
1366
f54be24b
SM
13672020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1370 bool.
1371
53d5a2a5
TV
13722020-08-17 Tom de Vries <tdevries@suse.de>
1373
1374 PR gdb/26393
1375 * gdbtypes.c (dump_dynamic_prop): New function.
1376 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1377
547ce8f0
TV
13782020-08-15 Tom de Vries <tdevries@suse.de>
1379
1380 PR backtrace/26390
1381 * stack.c (print_frame_args): Temporarily set the selected
1382 frame to FRAME while printing the frame's arguments.
1383
6ea815e7
PFC
13842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1385
1386 PR breakpoints/26385
1387 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1388 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1389
6e562fa3
PFC
13902020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1391
1392 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1393 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1394 and >= to check return value instead of == -1 and != -1.
1395
d369b608
SM
13962020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 * utils.h (class gdb_argv) <as_array_view>: New method.
1399 * utils.c (gdb_argv_as_array_view_test): New.
1400 (_initialize_utils): Register selftest.
1401 * maint.c (maintenance_selftest): Use the new method.
1402
b31488a3
KR
14032020-08-13 Kamil Rytarowski <n54@gmx.com>
1404
1405 * target.h (supports_dumpcore, dumpcore): New
1406 function declarations.
1407 * target.c (supports_dumpcore, dumpcore): New
1408 functions.
1409 * target-delegates.c: Rebuild.
1410 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1411 and target_dumpcore ().
1412
002a3166
AM
14132020-08-13 Aaron Merey <amerey@redhat.com>
1414
1415 * debuginfod-support.c: Replace global variables with user_data.
1416
ece5bc8a
SM
14172020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * maint.c (maintenance_selftest): Split args and pass array_view
1420 to run_tests.
1421
6d8a0a5e
LM
14222020-08-12 Luis Machado <luis.machado@linaro.org>
1423
1424 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1425 type's length.
1426 Use %s and pulongest to print the length.
1427
7cf663a9
PA
14282020-08-12 Pedro Alves <palves@redhat.com>
1429
1430 * NEWS: Move "Multi-target debugging support" item to the
1431 "Changes since GDB 9" section.
1432
27c7b875
PA
14332020-08-12 Pedro Alves <palves@redhat.com>
1434
1435 PR gdb/26336
1436 * progspace.c (program_space::remove_objfile): Invalidate the
1437 frame cache.
1438
1796a2a1
TV
14392020-08-11 Tom de Vries <tdevries@suse.de>
1440
1441 * MAINTAINERS: Mark ms1 as deleted.
1442
f8e3fe0d
LM
14432020-08-10 Luis Machado <luis.machado@linaro.org>
1444
1445 PR gdb/26310
1446
1447 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1448 act accordingly.
1449 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1450 movz/str/stur/stp skipping behavior.
1451
cc308722
LM
14522020-08-10 Luis Machado <luis.machado@linaro.org>
1453
1454 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1455 struct user_sve_header instead of struct sve_context.
1456
041d9819
SM
14572020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * read.h (dwarf2_fetch_die_loc_sect_off,
1460 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1461 `void *` parameter with function_view.
1462 * read.c (dwarf2_fetch_die_loc_sect_off,
1463 dwarf2_fetch_die_loc_cu_off): Likewise.
1464 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1465 (per_cu_dwarf_call): Adjust.
1466 (get_frame_address_in_block_wrapper): Remove.
1467 (indirect_synthetic_pointer): Adjust.
1468 (get_ax_pc): Remove.
1469 (dwarf2_compile_expr_to_ax): Adjust.
1470
38f8aa06
TV
14712020-08-08 Tom de Vries <tdevries@suse.de>
1472
1473 PR build/26344
1474 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1475 constructor.
1476 * regcache.c (get_thread_arch_aspace_regcache): Same.
1477
a52b3ae2
TT
14782020-08-07 Tom Tromey <tromey@adacore.com>
1479
1480 * ravenscar-thread.c
1481 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1482 New method.
1483 (ravenscar_thread_target::wait): Check
1484 runtime_initialized.
1485 (ravenscar_thread_target::prepare_to_store)
1486 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1487 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1488 (ravenscar_thread_target::stopped_by_watchpoint)
1489 (ravenscar_thread_target::stopped_data_address)
1490 (ravenscar_thread_target::core_of_thread): Use
1491 scoped_restore_current_thread and
1492 set_base_thread_from_ravenscar_task.
1493
0e29517d
TT
14942020-08-07 Tom Tromey <tromey@adacore.com>
1495
1496 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1497
592f9bd7
TT
14982020-08-07 Tom Tromey <tromey@adacore.com>
1499
1500 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1501 update_inferior_ptid before update_thread_list.
1502 (temporarily_change_regcache_ptid): New class.
1503 (ravenscar_thread_target::fetch_registers)
1504 (ravenscar_thread_target::store_registers)
1505 (ravenscar_thread_target::prepare_to_store): Use base thread when
1506 forwarding operation.
1507
39e2018a
TT
15082020-08-07 Tom Tromey <tromey@adacore.com>
1509
1510 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1511 "is_pid" case.
1512
2080266b
TT
15132020-08-07 Tom Tromey <tromey@adacore.com>
1514
1515 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1516 New methods.
1517 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1518 first.
1519 (ravenscar_thread_target::add_thread): Rename from
1520 ravenscar_add_thread.
1521 (ravenscar_thread_target::update_thread_list): Use a lambda.
1522 (ravenscar_thread_target::xfer_partial): New method.
1523
78c02f21
TT
15242020-08-07 Tom Tromey <tromey@adacore.com>
1525
1526 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1527 gdb::function_view.
1528 (iterate_over_live_ada_tasks): Change type of argument.
1529 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1530 of argument.
1531
d5d833af
TT
15322020-08-07 Tom Tromey <tromey@adacore.com>
1533
1534 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1535 Remove.
1536 (ravenscar_thread_target::extra_thread_info): Remove.
1537 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1538 defer to target beneath for non-Ravenscar threads.
1539
a8ac85bb
TT
15402020-08-07 Tom Tromey <tromey@adacore.com>
1541
1542 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1543 get_base_thread_from_ravenscar_task>: Now methods.
1544 <m_cpu_map>: New member.
1545 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1546 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1547 (ravenscar_thread_target::task_is_currently_active): Update.
1548 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1549 Now a method.
1550 (ravenscar_thread_target::add_active_thread): Put initial thread
1551 into the m_cpu_map.
1552
550ab58d
TT
15532020-08-07 Tom Tromey <tromey@adacore.com>
1554
1555 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1556 event_ptid.
1557
e9546579
TT
15582020-08-07 Tom Tromey <tromey@adacore.com>
1559
1560 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1561 runtime_initialized.
1562
3d4470e5
TT
15632020-08-07 Tom Tromey <tromey@adacore.com>
1564
1565 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1566 add_active_thread.
1567 (ravenscar_thread_target::add_active_thread): Now public.
1568 (ravenscar_inferior_created): Call add_active_thread after pushing
1569 the target.
1570
888bdb2b
SM
15712020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * regcache.c (ptid_regcache_map): New type.
1574 (target_ptid_regcache_map): New type.
1575 (regcaches): Change type to target_ptid_regcache_map.
1576 (get_thread_arch_aspace_regcache): Update to regcaches' new
1577 type.
1578 (regcache_thread_ptid_changed): Likewise.
1579 (registers_changed_ptid): Likewise.
1580 (regcaches_size): Likewise.
1581 (regcaches_test): Update.
1582 (regcache_thread_ptid_changed): Update.
1583 * regcache.h (regcache_up): New type.
1584 * gdbsupport/ptid.h (hash_ptid): New struct.
1585
b161a60d
SM
15862020-08-07 Simon Marchi <simon.marchi@efficios.com>
1587
1588 * observable.h (thread_ptid_changed): Add parameter
1589 `process_stratum_target *`.
1590 * infrun.c (infrun_thread_ptid_changed): Add parameter
1591 `process_stratum_target *` and use it.
1592 (selftests): New namespace.
1593 (infrun_thread_ptid_changed): New function.
1594 (_initialize_infrun): Register selftest.
1595 * regcache.c (regcache_thread_ptid_changed): Add parameter
1596 `process_stratum_target *` and use it.
1597 (regcache_thread_ptid_changed): New function.
1598 (_initialize_regcache): Register selftest.
1599 * thread.c (thread_change_ptid): Pass target to
1600 thread_ptid_changed observable.
1601
d2854d8d
CT
16022020-08-06 Caroline Tice <cmtice@google.com>
1603
fe4c3d43
SM
1604 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1605 (struct dwp_sections): Update field comments. Add loclists and
1606 rnglists fields.
1607 (struct virtual_v2_dwo_sections): Rename struct to
1608 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1609 size & offset fields for loclists and rnglists.
1610 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1611 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1612 skipping dummy type units.
1613 (create_dwp_hash_table): Update the large comment above the function to
1614 discuss Version 5 DWP files as well, with references. Update all the
1615 version checks in the function to check for version 5 as well. Add new
1616 section at the end to create dwp hash table for version 5.
1617 (create_dwp_v2_section): Rename function to
1618 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1619 Add V5 to error message text.
1620 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1621 into calls to create_dwp_v2_or_v5_section.
1622 (create_dwo_unit_in_dwp_v5): New function.
1623 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1624 check for version2; add else clause to handle version 5.
1625 (open_and_init_dwo_file): Add code to check dwarf version & only call
1626 create_debug_types_hash_table (with sections.types) if version is not 5;
1627 else call create_debug_type_hash_table, with sections.info.
1628 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1629 version 5.
1630 (dwarf2_locate_v5_dwp_sections): New function.
1631 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1632 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1633
159ed7d9
SM
16342020-08-06 Simon Marchi <simon.marchi@efficios.com>
1635
1636 * regcache.h (class regcache): Remove friend
1637 registers_changed_ptid.
1638 <regcache_thread_ptid_changed>: Remove.
1639 <regcaches>: Remove.
1640 * regcache.c (regcache::regcaches): Rename to...
1641 (regcaches): ... this. Make static.
1642 (get_thread_arch_aspace_regcache): Update.
1643 (regcache::regcache_thread_ptid_changed): Rename to...
1644 (regcache_thread_ptid_changed): ... this. Update.
1645 (class regcache_access): Remove.
1646 (regcaches_test): Update.
1647 (_initialize_regcache): Update.
1648 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1649 <forward_list>.
1650
174981ae
SM
16512020-08-06 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * regcache.h (class regcache) <current_regcache>: Rename to...
1654 <regcaches>: ... this. Move doc here.
1655 * regcache.c (regcache::current_regcache) Rename to...
1656 (regcache::regcaches): ... this. Move doc to header.
1657 (get_thread_arch_aspace_regcache): Update.
1658 (regcache::regcache_thread_ptid_changed): Update.
1659 (registers_changed_ptid): Update.
1660 (class regcache_access) <current_regcache_size>: Rename to...
1661 <regcaches_size>: ... this.
1662 (current_regcache_test): Rename to...
1663 (regcaches_test): ... this.
1664 (_initialize_regcache): Update.
1665
ed908db6
VC
16662020-08-06 Victor Collod <vcollod@nvidia.com>
1667
1668 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1669
b5582ab7
KB
16702020-08-05 Kevin Buettner <kevinb@redhat.com>
1671
1672 * corelow.c (core_target::build_file_mappings): Don't output
1673 null pathname in warning.
1674
ea946b86
SM
16752020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1678 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1679 gdb.dwarf2/dw2-single-line-discriminators.exp,
1680 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1681
57d02173
TT
16822020-08-05 Tom Tromey <tromey@adacore.com>
1683
1684 PR rust/26197:
1685 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1686 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1687 Fix off-by-one and type size errors in ordinary case.
1688
5555c86d
TV
16892020-08-05 Tom de Vries <tdevries@suse.de>
1690
1691 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1692 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1693
97916bfe
SM
16942020-08-04 Simon Marchi <simon.marchi@efficios.com>
1695
1696 * frame.h (frame_id_p): Return bool.
1697 (frame_id_artificial_p): Return bool.
1698 (frame_id_eq): Return bool.
1699 (has_stack_frames): Return bool.
1700 (get_selected_frame): Fix typo in comment.
1701 (get_frame_pc_if_available): Return bool.
1702 (get_frame_address_in_block_if_available): Return bool.
1703 (get_frame_func_if_available): Return bool.
1704 (read_frame_register_unsigned): Return bool.
1705 (get_frame_register_bytes): Return bool.
1706 (safe_frame_unwind_memory): Return bool.
1707 (deprecated_frame_register_read): Return bool.
1708 (frame_unwinder_is): Return bool.
1709 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1710 bool.
1711 <this_id::p>: Likewise.
1712 <prev_p>: Likewise.
1713 (frame_stash_add): Return bool.
1714 (get_frame_id): Use bool.
1715 (frame_id_build_special) Use bool.
1716 (frame_id_build_unavailable_stack): Use bool.
1717 (frame_id_build): Use bool.
1718 (frame_id_p): Return bool, use true/false instead of 1/0.
1719 (frame_id_artificial_p): Likewise.
1720 (frame_id_eq): Likewise.
1721 (frame_id_inner): Likewise.
1722 (get_frame_func_if_available): Likewise.
1723 (read_frame_register_unsigned): Likewise.
1724 (deprecated_frame_register_read): Likewise.
1725 (get_frame_register_bytes): Likewise.
1726 (has_stack_frames): Likewise.
1727 (inside_main_func): Likewise.
1728 (inside_entry_func): Likewise.
1729 (get_frame_pc_if_available): Likewise.
1730 (get_frame_address_in_block_if_available): Likewise.
1731 (frame_unwinder_is): Likewise.
1732 (safe_frame_unwind_memory): Likewise.
1733 (frame_unwind_arch): Likewise.
1734
fedfee88
SM
17352020-08-04 Simon Marchi <simon.marchi@efficios.com>
1736
1737 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1738 type to cached_copy_status.
1739 (fprintf_frame): Adjust.
1740 (get_frame_func_if_available): Adjust.
1741 (frame_cleanup_after_sniffer): Adjust.
1742
6cfa9b59
MW
17432020-08-04 Mark Wielaard <mark@klomp.org>
1744
1745 * MAINTAINERS (Write After Approval): Update email address.
1746
66d6346b
SM
17472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1750 dynamic_prop::const_val.
1751
8a6d5e35
SM
17522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1755 dynamic_prop::kind.
1756
51d6067d
SM
17572020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1758
1759 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1760
b26e2ae7
JM
17612020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1762
1763 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1764
39791af2
JM
17652020-08-04 Weimin Pan <weimin.pan@oracle.com>
1766 Jose E. Marchesi <jose.marchesi@oracle.com>
1767
1768 * configure.tgt: Add entry for bpf-*-*.
1769 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1770 (ALLDEPFILES): Add bpf-tdep.c.
1771 * bpf-tdep.c: New file.
1772 * MAINTAINERS: Add bpf target and maintainer.
1773 * NEWS: Mention the support for the new target.
1774
521894aa
TV
17752020-08-04 Tom de Vries <tdevries@suse.de>
1776
1777 PR symtab/23270
1778 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1779 Error.
1780
5d6356e9
JB
17812020-08-03 John Baldwin <jhb@FreeBSD.org>
1782
1783 * syscalls/freebsd.xml: Regenerate.
1784
0cf82b81
JB
17852020-08-03 John Baldwin <jhb@FreeBSD.org>
1786
1787 * syscalls/update-freebsd.sh: Fix usage and year range.
1788
8f34b746
TV
17892020-08-03 Tom de Vries <tdevries@suse.de>
1790
1791 PR symtab/26333
1792 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1793 DW_LNE_lo_user/DW_LNE_hi_user range.
1794
5e500d33
SM
17952020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 PR ada/26318
1798 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1799 kind.
1800
78319c15
TBA
18012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1802
1803 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1804
4c55e970
TBA
18052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1806
1807 * breakpoint.c (set_breakpoint_condition): Update the condition
1808 expressions after checking that the input condition string parses
1809 successfully and does not contain junk at the end.
1810
1e620590
TBA
18112020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1812
1813 * breakpoint.c (set_breakpoint_condition): Update the
1814 condition string after parsing the new condition successfully.
1815
c8693053
RO
18162020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1817
1818 * proc-api.c (_STRUCTURED_PROC): Don't define.
1819 * proc-events.c: Likewise.
1820 * proc-flags.c: Likewise.
1821 * proc-why.c: Likewise.
1822 * procfs.c: Likewise.
1823
1824 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1825 * configure, config.in: Regenerate.
1826
5a99adb8
TV
18272020-07-30 Tom de Vries <tdevries@suse.de>
1828
1829 PR build/26320
1830 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1831 m_red/m_green/m_blue in a union.
1832
8ba83e91
TV
18332020-07-29 Tom de Vries <tdevries@suse.de>
1834
1835 PR tdep/26280
1836 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1837
f75a0693
AB
18382020-07-28 Tom Tromey <tromey@adacore.com>
1839
1840 PR symtab/26270:
1841 * symtab.h (find_pc_partial_function_sym): Declare.
1842 * cli/cli-cmds.c (disassemble_command): Use
1843 find_pc_partial_function_sym. Check asm_demangle.
1844 * blockframe.c (cache_pc_function_sym): New global.
1845 (cache_pc_function_name): Remove.
1846 (clear_pc_function_cache): Update.
1847 (find_pc_partial_function_sym): New function, from
1848 find_pc_partial_function.
1849 (find_pc_partial_function): Rewrite using
1850 find_pc_partial_function_sym.
1851
16f3242c
TT
18522020-07-28 Tom Tromey <tromey@adacore.com>
1853
1854 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1855 help. Add usage.
1856
4888741a
TT
18572020-07-28 Tom Tromey <tromey@adacore.com>
1858
1859 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1860 <DW_OP_GNU_variable_value>: Cast to address type.
1861
4d46f402
KR
18622020-07-28 Kamil Rytarowski <n54@gmx.com>
1863
1864 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1865 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1866 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1867 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1868 (nbsd_get_siginfo_type): New.
1869 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1870 (_initialize_nbsd_tdep): New.
1871
d70f978b
L
18722020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1873
1874 PR binutils/26301
1875 * configure: Regenerated.
1876
377170fa
L
18772020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1878
1879 PR binutils/26301
1880 * configure: Regenerated.
1881
43d5901d
AB
18822020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * python/py-frame.c: Remove 'user-regs.h' include.
1885 (frapy_read_register): Rewrite to make use of
1886 gdbpy_parse_register_id.
1887 * python/py-registers.c (gdbpy_parse_register_id): New function,
1888 moved here from python/py-unwind.c. Updated the return type, and
1889 also accepts register descriptor objects.
1890 * python/py-unwind.c: Remove 'user-regs.h' include.
1891 (pyuw_parse_register_id): Moved to python/py-registers.c.
1892 (unwind_infopy_add_saved_register): Update to use
1893 gdbpy_parse_register_id.
1894 (pending_framepy_read_register): Likewise.
1895 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1896
14fa8fb3
AB
18972020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * python/py-registers.c: Add 'user-regs.h' include.
1900 (register_descriptor_iter_find): New function.
1901 (register_descriptor_iterator_object_methods): New static global
1902 methods array.
1903 (register_descriptor_iterator_object_type): Add pointer to methods
1904 array.
1905
ddce1758
JB
19062020-07-27 John Baldwin <jhb@FreeBSD.org>
1907
1908 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1909 for all architectures on FreeBSD 11.3 and later.
1910
a4089f52
TT
19112020-07-27 Tom Tromey <tromey@adacore.com>
1912
1913 * gcore.h (load_corefile): Don't declare.
1914
95420d30
TV
19152020-07-27 Tom de Vries <tdevries@suse.de>
1916
1917 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1918 * config.in: Regenerate.
1919 * configure: Regenerate.
1920
05a6b8c2
EZ
19212020-07-26 Eli Zaretskii <eliz@gnu.org>
1922
1923 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1924 ws2tcpip.h. When checking whether socklen_t type is defined, use
1925 ws2tcpip.h if it is available and sys/socket.h isn't.
1926 * configure: Regenerate.
1927 * config.in: Regenerate.
1928
e79eb02f
AB
19292020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 PR fortran/23051
1932 PR fortran/26139
1933 * valops.c (value_ind): Pass address to
1934 readjust_indirect_value_type.
1935 * value.c (readjust_indirect_value_type): Make parameter
1936 non-const, and add extra address parameter. Resolve original type
1937 before using it.
1938 * value.h (readjust_indirect_value_type): Update function
1939 signature and comment.
1940
876518dd
TV
19412020-07-25 Tom de Vries <tdevries@suse.de>
1942
1943 PR symtab/26243
1944 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1945 entries.
1946
f6720b1c
AM
19472020-07-24 Aaron Merey <amerey@redhat.com>
1948
1949 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1950 * configure: Rebuild.
1951
513487e1
KB
19522020-07-23 Kevin Buettner <kevinb@redhat.com>
1953
1954 PR corefiles/26294
1955 * corelow.c (_initialize_corelow): Add period to help text
1956 for "maintenance print core-file-backed-mappings".
1957
e7bc9db8
PA
19582020-07-23 Pedro Alves <pedro@palves.net>
1959
1960 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1961 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1962 meanwhile.
1963 * frame.c (frame_cache_generation, get_frame_cache_generation):
1964 New.
1965 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1966 (get_prev_frame_if_no_cycle): On exception, don't touch
1967 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1968 * frame.h (get_frame_cache_generation): Declare.
1969
90fcc466
TV
19702020-07-23 Tom de Vries <tdevries@suse.de>
1971
1972 PR tui/26282
1973 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1974 New default constructor.
1975
78344df7
AB
19762020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1979 exclude non-statement entries.
1980
b089853a
KB
19812020-07-22 Kevin Buettner <kevinb@redhat.com>
1982
1983 * NEWS (New commands): Mention new command
1984 "maintenance print core-file-backed-mappings".
1985
09c2f5d4
KB
19862020-07-22 Kevin Buettner <kevinb@redhat.com>
1987
1988 * corelow.c (gdbcmd.h): Include.
1989 (core_target::info_proc_mappings): New method.
1990 (get_current_core_target): New function.
1991 (maintenance_print_core_file_backed_mappings): New function.
1992 (_initialize_corelow): Add core-file-backed-mappings to
1993 "maint print" commands.
1994
9c5ec5c2 19952020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1996
9c5ec5c2
KB
1997 * linux-tdep.c (dump_note_entry_p): New function.
1998 (linux_dump_mapping_p_ftype): New typedef.
1999 (linux_find_memory_regions_full): Add new parameter,
2000 should_dump_mapping_p.
2001 (linux_find_memory_regions): Adjust call to
2002 linux_find_memory_regions_full.
2003 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2004 call to linux_find_memory_regions_full.
2005
db082f59
KB
20062020-07-22 Kevin Buettner <kevinb@redhat.com>
2007
2008 * corelow.c (solist.h, unordered_map): Include.
2009 (class core_target): Add field m_core_file_mappings and
2010 method build_file_mappings.
2011 (core_target::core_target): Call build_file_mappings.
2012 (core_target::~core_target): Free memory associated with
2013 m_core_file_mappings.
2014 (core_target::build_file_mappings): New method.
2015 (core_target::xfer_partial): Use m_core_file_mappings
2016 for memory transfers.
2017 * linux-tdep.c (linux_read_core_file_mappings): New
2018 function.
2019 (linux_core_info_proc_mappings): Rewrite to use
2020 linux_read_core_file_mappings.
2021 (linux_init_abi): Register linux_read_core_file_mappings.
2022
7e183d27
KB
20232020-07-22 Kevin Buettner <kevinb@redhat.com>
2024
2025 * arch-utils.c (default_read_core_file_mappings): New function.
2026 * arch-utils.c (default_read_core_file_mappings): Declare.
2027 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2028 * gdbarch.h, gdbarch.c: Regenerate.
2029
2735d421
KB
20302020-07-22 Kevin Buettner <kevinb@redhat.com>
2031
2032 PR corefiles/25631
2033 * corelow.c (core_target:xfer_partial): Revise
2034 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2035 case after first checking the stratum beneath the core
2036 target.
2037 (has_all_memory): Return true.
2038 * target.c (raw_memory_xfer_partial): Revise comment
2039 regarding use of has_all_memory.
2040
e56cb451
KB
20412020-07-22 Kevin Buettner <kevinb@redhat.com>
2042
2043 * exec.h (section_table_xfer_memory): Revise declaration,
2044 replacing section name parameter with an optional callback
2045 predicate.
2046 * exec.c (section_table_xfer_memory): Likewise.
2047 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2048 of section_table_xfer_memory.
2049
32fa152e
TT
20502020-07-22 Tom Tromey <tromey@adacore.com>
2051
2052 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2053 lookup_symbol_search_name.
2054
a67a1c41
AB
20552020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2058 redundant local variable.
2059 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2060 reference, not pointer, update code accordingly.
2061
a7b4ff4f
SM
20622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2063 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2064
2065 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2066 * jit.c (jit_breakpoint_re_set_internal): Use the
2067 `skip_jit_symbol_lookup` field.
2068
2340e834
SM
20692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2070 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2071
2072 * jit.c (jit_read_descriptor): Define the descriptor address once,
2073 use twice.
2074 (jit_breakpoint_deleted): Move the declaration of the loop variable
2075 `iter` into the loop header.
2076 (jit_breakpoint_re_set_internal): Move the declaration of the local
2077 variable `objf_data` to the first point of definition.
2078 (jit_event_handler): Move the declaration of local variables
2079 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2080 Rename `objf` to `jited`.
2081
c1072906
SM
20822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2085 Remove.
2086 * jit.c (get_jiter_objfile_data): Update.
2087
c8474dc3
TBA
20882020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2089 Simon Marchi <simon.marchi@polymtl.ca>
2090
2091 * jit.c (struct jit_program_space_data): Remove.
2092 (jit_program_space_key): Remove.
2093 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2094 stuff.
2095 (get_jit_program_space_data): Remove.
2096 (jit_breakpoint_deleted): Iterate on all of the program space's
2097 objfiles.
2098 (jit_inferior_init): Likewise.
2099 (jit_breakpoint_re_set_internal): Likewise. Also change return
2100 type to void.
2101 (jit_breakpoint_re_set): Pass current_program_space to
2102 jit_breakpoint_re_set_internal.
2103
77208eb7
SM
21042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2105
2106 * jit.h (struct jiter_objfile_data) <cached_code_address,
2107 jit_breakpoint>: Move to here from ...
2108 * jit.c (jit_program_space_data): ... here.
2109 (jiter_objfile_data::~jiter_objfile_data): Update.
2110 (jit_breakpoint_deleted): Update.
2111 (jit_breakpoint_re_set_internal): Update.
2112
8c1c720f
SM
21132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2116 checks.
2117 (jit_read_descriptor): Remove NULL check.
2118 (jit_event_handler): Add an assertion.
2119
0e74a041
SM
21202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * jit.h (struct jit_objfile_data): Split into...
2123 (struct jiter_objfile_data): ... this ...
2124 (struct jited_objfile_data): ... and this.
2125 * objfiles.h (struct objfile) <jit_data>: Remove.
2126 <jiter_data, jited_data>: New fields.
2127 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2128 (jiter_objfile_data::~jiter_objfile_data): ... this.
2129 (get_jit_objfile_data): Rename to ...
2130 (get_jiter_objfile_data): ... this.
2131 (add_objfile_entry): Update.
2132 (jit_read_descriptor): Use get_jiter_objfile_data.
2133 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2134 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2135 (jit_inferior_exit_hook): Use objfile's jited_data field.
2136
238b5c9f
SM
21372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2138
2139 * jit.h: Forward-declare `struct minimal_symbol`.
2140 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2141 constructor, destructor, and an objfile* field.
2142 * jit.c (jit_objfile_data): Remove.
2143 (struct jit_objfile_data): Migrate from here to jit.h.
2144 (jit_objfile_data::~jit_objfile_data): New destructor
2145 implementation with code moved from free_objfile_data.
2146 (free_objfile_data): Delete.
2147 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2148 (jit_find_objf_with_entry_addr): Ditto.
2149 (jit_inferior_exit_hook): Ditto.
2150 (_initialize_jit): Remove the call to
2151 register_objfile_data_with_cleanup.
2152 * objfiles.h (struct objfile) <jit_data>: New field.
2153
fe053b9e
TBA
21542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2155
2156 * jit.h: Forward-declare `struct objfile`.
2157 (jit_event_handler): Add a second parameter, the JITer objfile.
2158 * jit.c (jit_read_descriptor): Change the signature to take the
2159 JITer objfile as an argument instead of the jit_program_space_data.
2160 (jit_inferior_init): Update the call to jit_read_descriptor.
2161 (jit_event_handler): Use the new JITer objfile argument when calling
2162 jit_read_descriptor.
2163 * breakpoint.c (handle_jit_event): Update the call to
2164 jit_event_handler to pass the JITer objfile.
2165
4cec0c66
JB
21662020-07-21 John Baldwin <jhb@FreeBSD.org>
2167
2168 * gdbarch.c: Regenerate.
2169 * gdbarch.h: Regenerate.
2170 * gdbarch.sh (handle_segmentation_fault): Remove method.
2171 * infrun.c (handle_segmentation_fault): Remove.
2172 (print_signal_received_reason): Remove call to
2173 handle_segmentation_fault.
2174
0e42f66a
JB
21752020-07-21 John Baldwin <jhb@FreeBSD.org>
2176
2177 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2178 Rename to sparc64_linux_report_signal_info and add siggnal
2179 argument.
2180 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2181 instead of sparc64_linux_handle_segmentation_fault.
2182
77bdfeb2
JB
21832020-07-21 John Baldwin <jhb@FreeBSD.org>
2184
2185 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2186 i386_linux_report_signal_info instead of
2187 i386_linux_handle_segmentation_fault.
2188 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2189 to i386_linux_report_signal_info and add siggnal argument.
2190 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2191 of i386_linux_handle_segmentation_fault.
2192 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2193 to i386_linux_report_signal_info and add siggnal argument.
2194
ad97bfc5
JB
21952020-07-21 John Baldwin <jhb@FreeBSD.org>
2196
2197 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2198 hook if present.
2199
272bb05c
JB
22002020-07-21 John Baldwin <jhb@FreeBSD.org>
2201
2202 * gdbarch.c: Regenerate.
2203 * gdbarch.h: Regenerate.
2204 * gdbarch.sh (report_signal_info): New method.
2205 * infrun.c (print_signal_received_reason): Invoke gdbarch
2206 report_signal_info hook if present.
2207
baf8791e
AB
22082020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * python/py-registers.c : Add 'unordered_map' include.
2211 (gdbpy_new_reggroup): Renamed to...
2212 (gdbpy_get_reggroup): ...this. Update to only create register
2213 group descriptors when needed.
2214 (gdbpy_reggroup_iter_next): Update.
2215
f7306dac
AB
22162020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * python/py-registers.c (gdbpy_register_object_data): New static
2219 global.
2220 (gdbpy_register_object_data_init): New function.
2221 (gdbpy_new_register_descriptor): Renamed to...
2222 (gdbpy_get_register_descriptor): ...this, and update to reuse
2223 existing register descriptors where possible.
2224 (gdbpy_register_descriptor_iter_next): Update.
2225 (gdbpy_initialize_registers): Register new gdbarch data.
2226
05c309a8
SM
22272020-07-21 Simon Marchi <simon.marchi@efficios.com>
2228
2229 * linux-nat.c (stopped_pids): Make static.
2230
d1fd641e
SM
22312020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2232
2233 PR ada/26235
2234 * gdbtypes.c (ada_discrete_type_low_bound,
2235 ada_discrete_type_high_bound): Handle undefined bounds.
2236
1de14d77
KR
22372020-07-21 Kamil Rytarowski <n54@gmx.com>
2238
2239 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2240 declaration.
2241 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2242 function.
2243
ed810cc7
JB
22442020-07-20 John Baldwin <jhb@FreeBSD.org>
2245
2246 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2247 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2248 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2249 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2250 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2251 method.
2252
ae5369e7
LC
22532020-07-20 Ludovic Courtès <ludo@gnu.org>
2254
2255 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2256 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2257 which are deprecated in Guile 3.0.
2258 * configure.ac (try_guile_versions): Add "guile-3.0".
2259 * configure (try_guile_versions): Regenerate.
2260 * NEWS: Update entry.
2261
68cf161c
LC
22622020-07-20 Ludovic Courtès <ludo@gnu.org>
2263 Doug Evans <dje@google.com>
2264
2265 PR gdb/21104
2266 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2267 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2268 USING_GUILE_BEFORE_2_2.
2269 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2270 Change type to 'scm_t_port_type *'.
2271 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2272 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2273 parameter and honor it. Update callers.
2274 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2275 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2276 functions.
2277 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2278 USING_GUILE_BEFORE_2_2.
2279 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2280 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2281 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2282 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2283 and 'SCM_PORT_TYPE'.
2284 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2285 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2286 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2287 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2288 [!USING_GUILE_BEFORE_2_2]: New functions.
2289 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2290 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2291 'gdbscm_memory_port_read'.
2292 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2293 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2294 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2295 function.
2296 (ioscm_init_memory_port): Remove.
2297 (ioscm_init_memory_port_stream): New function
2298 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2299 function.
2300 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2301 Return scm_from_uint (0).
2302 (gdbscm_set_memory_port_read_buffer_size_x)
2303 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2304 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2305 Return scm_from_uint (0).
2306 (gdbscm_set_memory_port_write_buffer_size_x)
2307 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2308 * configure.ac (try_guile_versions): Add "guile-2.2".
2309 * configure: Regenerate.
2310 * NEWS: Add entry.
2311
aee91db3
TT
23122020-07-18 Tom Tromey <tom@tromey.com>
2313
2314 * linux-nat.c (linux_multi_process): Remove.
2315 (linux_nat_target::supports_multi_process): Return true.
2316
0e267416
AB
23172020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2320 (riscv_lookup_target_description): Return pointer out of
2321 unique_ptr.
2322 * target-descriptions.c (allocate_target_description): Add
2323 comment.
2324 (target_desc_deleter::operator()): Likewise.
2325 * target-descriptions.h (struct target_desc_deleter): Moved to
2326 gdbsupport/tdesc.h.
2327 (target_desc_up): Likewise.
2328
f80c8ec4
TT
23292020-07-17 Tom Tromey <tromey@adacore.com>
2330
2331 * linux-nat.c (linux_nat_target::supports_non_stop)
2332 (linux_nat_target::always_non_stop_p): Use "true".
2333 (linux_nat_target::supports_disable_randomization): Use "true" and
2334 "false".
2335
d0ce17d8
CT
23362020-07-16 Caroline Tice <cmtice@google.com>
2337
2338 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2339 (RNGLIST_HEADER_SIZE64): New constant definition.
2340 (struct dwop_section_names): Add rnglists_dwo.
2341 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2342 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2343 (struct dwo_sections): Add rnglists field.
2344 (read_attribut_reprocess): Add tag parameter.
2345 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2346 (cu_debug_rnglists_section): New function (decl & definition).
2347 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2348 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2349 die whose range is being checked; get rnglist section from
2350 cu_debug_rnglists_section, to get from either objfile or dwo file as
2351 appropriate. Add cases for DW_RLE_base_addressx,
2352 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2353 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2354 test inside if-condition and updating complaint message.
2355 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2356 dwarf2_rnglists_process.
2357 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2358 dwarf2_ranges_process.
2359 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2360 need_ranges_base and update comment appropriately. Also pass die tag
2361 to dwarf2_ranges_read.
2362 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2363 need_ranges_base and update comment appropriately. Also pass die tag
2364 to dwarf2_ranges_process.
2365 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2366 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2367 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2368 need_ranges_base and update comment appropriately. Also pass die tag
2369 to read_attribute_reprocess and dwarf2_ranges_read.
2370 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2371 and update function comment appropriately.
2372 (read_loclist_index): Call read_loclists_rnglists_header instead of
2373 read_loclist_header.
2374 (read_rnglist_index): New function.
2375 (read_attribute_reprocess): Add tag parameter. Add code for
2376 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2377 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2378
3dcc261c
AB
23792020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2382 being resolved.
2383
ccb9eba6
AB
23842020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * arch-utils.c (show_architecture): Update formatting of messages.
2387
cf88be68
SM
23882020-07-12 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * gdbtypes.h (struct type) <bounds>: Handle array and string
2391 types.
2392 * ada-lang.c (assign_aggregate): Use type::bounds on
2393 array/string type.
2394 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2395 * c-varobj.c (c_number_of_children): Likewise.
2396 (c_describe_child): Likewise.
2397 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2398 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2399 (f_type_print_base): Likewise.
2400 * f-valprint.c (f77_array_offset_tbl): Likewise.
2401 (f77_get_upperbound): Likewise.
2402 (f77_print_array_1): Likewise.
2403 * guile/scm-type.c (gdbscm_type_range): Likewise.
2404 * m2-typeprint.c (m2_array): Likewise.
2405 (m2_is_long_set_of_type): Likewise.
2406 * m2-valprint.c (get_long_set_bounds): Likewise.
2407 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2408 * python/py-type.c (typy_range): Likewise.
2409 * rust-lang.c (rust_internal_print_type): Likewise.
2410 * type-stack.c (type_stack::follow_types): Likewise.
2411 * valarith.c (value_subscripted_rvalue): Likewise.
2412 * valops.c (value_cast): Likewise.
2413
509971ae
SM
24142020-07-12 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2417 callers to use the equivalent accessor methods.
2418
107406b7
SM
24192020-07-12 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2422 (struct type) <bit_stride>: New method.
2423 (TYPE_BIT_STRIDE): Remove.
2424 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2425
bb789949
SM
24262020-07-12 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2429 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2430 callers to use the equivalent accessor methods instead.
2431
39498edb
SM
24322020-07-12 Simon Marchi <simon.marchi@efficios.com>
2433
2434 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2435 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2436 callers to use the equivalent accessor methods instead.
2437
3b606f38
SM
24382020-07-12 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2441 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2442 to use dynamic_prop::kind.
2443
064d9cb9
SM
24442020-07-12 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2447 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2448 to get the bound property's kind and check against
2449 PROP_UNDEFINED.
2450
5537ddd0
SM
24512020-07-12 Simon Marchi <simon.marchi@efficios.com>
2452
2453 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2454 all callers to use type::range_bounds followed by
2455 dynamic_prop::{low,high}.
2456
8c2e4e06
SM
24572020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2458
2459 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2460 const_val, set_const_val, baton, set_locexpr, set_loclist,
2461 set_addr_offset, variant_parts, set_variant_parts,
2462 original_type, set_original_type>: New methods.
2463 <kind>: Rename to...
2464 <m_kind>: ... this. Update all users to use the new methods
2465 instead.
2466 <data>: Rename to...
2467 <m_data>: ... this. Update all users to use the new methods
2468 instead.
2469
7c6f2712
SM
24702020-07-12 Simon Marchi <simon.marchi@efficios.com>
2471
2472 * gdbtypes.c (get_discrete_bounds): Return failure if
2473 the range type's bounds are not both defined and constant
2474 values.
2475 (get_array_bounds): Update comment. Remove undefined bound check.
2476
599088e3
SM
24772020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2480 the type::bounds method directly.
2481
c4dfcb36
SM
24822020-07-12 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2485 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2486 are used to set the range type's bounds to use set_bounds.
2487
0a278aa7
PW
24882020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2489
2490 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2491
cce20f10
PA
24922020-07-10 Pedro Alves <pedro@palves.net>
2493
2494 * gdbthread.h (inferior_ref): Define.
2495 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2496 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2497 * thread.c
2498 (scoped_restore_current_thread::restore):
2499 Adjust to gdb::ref_ptr.
2500 (scoped_restore_current_thread::~scoped_restore_current_thread):
2501 Remove manual decref handling.
2502 (scoped_restore_current_thread::scoped_restore_current_thread):
2503 Adjust to use
2504 inferior_ref::new_reference/thread_info_ref::new_reference.
2505 Incref the thread before calling get_frame_id instead of after.
2506 Let TARGET_CLOSE_ERROR propagate.
2507
6d7aa592
PA
25082020-07-10 Pedro Alves <pedro@palves.net>
2509
2510 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2511 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2512 NOT_AVAILABLE_ERROR.
2513 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2514 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2515
b3e3a4c1
SM
25162020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2517 Pedro Alves <pedro@palves.net>
2518
2519 PR gdb/26199
2520 * infrun.c (threads_are_resumed_pending_p): Delete.
2521 (do_target_wait): Remove threads_are_executing and
2522 threads_are_resumed_pending_p checks from the inferior_matches
2523 lambda. Update comments.
2524
d6cc5d98
PA
25252020-07-10 Pedro Alves <pedro@palves.net>
2526
2527 PR gdb/26199
2528 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2529 executing threads.
2530
7d3badc6
PA
25312020-07-10 Pedro Alves <pedro@palves.net>
2532
2533 PR gdb/26199
2534 * infrun.c (handle_no_resumed): Handle multiple targets.
2535
42bd97a6
PA
25362020-07-10 Pedro Alves <pedro@palves.net>
2537
2538 PR gdb/26199
2539 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2540 target_is_async_p.
2541
43667cc6
PA
25422020-07-10 Pedro Alves <pedro@palves.net>
2543
2544 PR gdb/26199
2545 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2546 threads, not all threads.
2547
96118d11
PA
25482020-07-10 Pedro Alves <pedro@palves.net>
2549
2550 PR gdb/26199
2551 * remote.c (remote_target::open_1): Pass remote target pointer as
2552 data to create_async_event_handler.
2553 (remote_async_inferior_event_handler): Mark async event handler
2554 before returning if the remote target still has either pending
2555 events or unacknowledged notifications.
2556
54904d81
JB
25572020-07-10 John Baldwin <jhb@FreeBSD.org>
2558
2559 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2560 declaration.
2561 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2562 function.
2563
f37e5866
JB
25642020-07-09 John Baldwin <jhb@FreeBSD.org>
2565
2566 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2567 inferior_ptid.
2568
fc238d4a
JB
25692020-07-09 John Baldwin <jhb@FreeBSD.org>
2570
2571 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2572 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2573 AT_FREEBSD_PS_STRINGS.
2574
6e2469ff
HD
25752020-07-08 Hannes Domani <ssbssa@yahoo.de>
2576
2577 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2578 of debugfile path on Windows.
2579
d1076c41
JB
25802020-07-08 John Baldwin <jhb@FreeBSD.org>
2581
2582 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2583 argument to 'data'.
2584
15f3b077
TT
25852020-07-08 Tom Tromey <tromey@adacore.com>
2586
2587 * ada-lang.c (ada_exception_message_1): Use read_memory.
2588
9fc501fd
AB
25892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2590
2591 PR python/22748
2592 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2593 special handling for inline frames.
2594 * findvar.c (value_of_register_lazy): Skip inline frames when
2595 creating lazy register values.
2596 * frame.c (frame_id_computed_p): Delete definition.
2597 * frame.h (frame_id_computed_p): Delete declaration.
2598
64cb3757
AB
25992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2600
2601 * NEWS: Mention additions to Python API.
2602 * python/py-arch.c (archpy_register_groups): New function.
2603 (arch_object_methods): Add 'register_groups' method.
2604 * python/py-registers.c (reggroup_iterator_object): New struct.
2605 (reggroup_object): New struct.
2606 (gdbpy_new_reggroup): New function.
2607 (gdbpy_reggroup_to_string): New function.
2608 (gdbpy_reggroup_name): New function.
2609 (gdbpy_reggroup_iter): New function.
2610 (gdbpy_reggroup_iter_next): New function.
2611 (gdbpy_new_reggroup_iterator): New function
2612 (gdbpy_initialize_registers): Register new types.
2613 (reggroup_iterator_object_type): Define new Python type.
2614 (gdbpy_reggroup_getset): New static global.
2615 (reggroup_object_type): Define new Python type.
2616 * python/python-internal.h
2617
0f767f94
AB
26182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2621 * python/py-arch.c (archpy_registers): New function.
2622 (arch_object_methods): Add 'registers' method.
2623 * python/py-registers.c: New file.
2624 * python/python-internal.h
2625 (gdbpy_new_register_descriptor_iterator): Declare.
2626 (gdbpy_initialize_registers): Declare.
2627 * python/python.c (do_start_initialization): Call
2628 gdbpy_initialize_registers.
2629 * NEWS: Mention additions to the Python API.
2630
87dbc774
AB
26312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * NEWS: Mention new Python API method.
2634 * python/py-unwind.c (pending_framepy_architecture): New function.
2635 (pending_frame_object_methods): Add architecture method.
2636
3bc98c0c
AB
26372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 * gdbarch.c: Regenerate.
2640 * gdbarch.h: Regenerate.
2641 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2642 (gdbarch_data): Use internal_error for the case where
2643 deprecated_set_gdbarch_data was originally needed.
2644 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2645 and use passed in obstack.
2646 (libunwind_frame_set_descr): Should no longer get back NULL from
2647 gdbarch_data.
2648 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2649 type.
2650 * user-regs.c (user_regs_init): Update parameters, and use passed
2651 in obstack.
2652 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2653 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2654
d8cc8af6
TV
26552020-07-06 Tom de Vries <tdevries@suse.de>
2656
2657 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2658 End-Of-Sequence in lte_is_less_than.
2659 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2660 "gdb: Don't reorder line table entries too much when sorting".
2661
947f7597
TV
26622020-07-06 Tom de Vries <tdevries@suse.de>
2663
2664 PR tui/26205
2665 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2666
1e7c1b22
TV
26672020-07-05 Tom de Vries <tdevries@suse.de>
2668
2669 PR build/26187
2670 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2671 std::uncaught_exceptions instead of deprecated
2672 std::uncaught_exception.
2673
a36158ec
SM
26742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2675
2676 * macroexp.h (macro_stringify): Return
2677 gdb::unique_xmalloc_ptr<char>.
2678 * macroexp.c (macro_stringify): Likewise.
2679 * macrotab.c (fixup_definition): Update.
2680
14d960c8
SM
26812020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2684 (lex_one_token): Update.
2685 * macroexp.c (struct macro_buffer) <release>: Return
2686 gdb::unique_xmalloc_ptr<char>.
2687 (macro_stringify): Update.
2688 (macro_expand): Update.
2689 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2690 * macroexp.h (macro_expand_next): Likewise.
2691
211d5b1c
SM
26922020-07-02 Simon Marchi <simon.marchi@efficios.com>
2693
2694 * macroexp.h (macro_lookup_ftype): Remove.
2695 (macro_expand, macro_expand_once, macro_expand_next): Remove
2696 lookup function parameters, add scope parameter.
2697 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2698 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2699 * macroscope.h (standard_macro_lookup): Change parameter type
2700 to macro_scope.
2701 * macroscope.c (standard_macro_lookup): Likewise.
2702 * c-exp.y (lex_one_token): Update.
2703 * macrocmd.c (macro_expand_command): Likewise.
2704 (macro_expand_once_command): Likewise.
2705
b1a35af2
SM
27062020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2707
2708 * inf-loop.c (inferior_event_handler): Remove client_data param.
2709 * inf-loop.h (inferior_event_handler): Likewise.
2710 * infcmd.c (step_1): Adjust.
2711 * infrun.c (proceed): Adjust.
2712 (fetch_inferior_event): Remove client_data param.
2713 (infrun_async_inferior_event_handler): Adjust.
2714 * infrun.h (fetch_inferior_event): Remove `void *` param.
2715 * linux-nat.c (handle_target_event): Adjust.
2716 * record-btrace.c (record_btrace_handle_async_inferior_event):
2717 Adjust.
2718 * record-full.c (record_full_async_inferior_event_handler):
2719 Adjust.
2720 * remote.c (remote_async_inferior_event_handler): Adjust.
2721
1cdf9e33
TT
27222020-07-01 Tom Tromey <tom@tromey.com>
2723
2724 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2725 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2726
32c1e210
TT
27272020-07-01 Tom Tromey <tom@tromey.com>
2728
2729 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2730 tui_gen_win_info.
2731 (tui_win_info::make_window): Merge with
2732 tui_gen_win_info::make_window.
2733 (tui_win_info::make_visible): Move from tui_gen_win_info.
2734 * tui/tui-win.c (tui_win_info::max_width): Move from
2735 tui_gen_win_info.
2736 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2737 type.
2738 <window_factory>: Likewise.
2739 * tui/tui-layout.c (tui_win_info::resize): Move from
2740 tui_gen_win_info.
2741 (make_standard_window): Change return type.
2742 (get_locator_window, tui_get_window_by_name): Likewise.
2743 (tui_layout_window::apply): Remove a cast.
2744 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2745 (struct tui_win_info): Merge with tui_gen_win_info.
2746 (struct tui_gen_win_info): Remove.
2747
a30cb6da
TT
27482020-07-01 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-stack.h (struct tui_locator_window): Derive from
2751 tui_win_info.
2752 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2753 <can_box>: New method.
2754
1eb2161f
TT
27552020-07-01 Tom Tromey <tom@tromey.com>
2756
2757 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2758
7134f2eb
TT
27592020-07-01 Tom Tromey <tom@tromey.com>
2760
2761 * tui/tui-regs.c (tui_data_window::display_registers_from)
2762 (tui_data_window::display_registers_from)
2763 (tui_data_window::first_data_item_displayed)
2764 (tui_data_window::delete_data_content_windows): Update.
2765 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2766 Remove.
2767 (tui_data_window::check_register_values): Update.
2768 (tui_data_item_window::rerender): Add parameters. Update.
2769 (tui_data_item_window::refresh_window): Remove.
2770 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2771 virtual.
2772 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2773 tui_gen_win_info.
2774 <refresh_window, max_height, min_height>: Remove.
2775 <rerender>: Add parameters.
2776 <x, y, visible>: New members.
2777 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2778 <m_item_width>: New member.
2779
22b7b041
TT
27802020-07-01 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-regs.c (tui_data_window::show_register_group)
2783 (tui_data_window::check_register_values): Update.
2784 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2785 from item_no.
2786
c9753adb
TT
27872020-07-01 Tom Tromey <tom@tromey.com>
2788
2789 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2790 useless "if".
2791
9ab26b4a
TT
27922020-07-01 Tom Tromey <tom@tromey.com>
2793
2794 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2795 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2796
e555083f
TT
27972020-07-01 Tom Tromey <tom@tromey.com>
2798
2799 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2800 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2801 (struct tui_line_or_address): Move from tui-data.h.
2802 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2803 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2804 (tui_cmd_window, tui_source_window_base, tui_source_window)
2805 (tui_disasm_window): Don't declare.
2806 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2807 to tui-winsource.h.
2808 (SINGLE_KEY): Move to tui-stack.c.
2809
7a02bab7
TT
28102020-07-01 Tom Tromey <tom@tromey.com>
2811
2812 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2813 std::string.
2814 * tui/tui-regs.c (class tab_expansion_file): New.
2815 (tab_expansion_file::write): New method.
2816 (tui_register_format): Change return type. Use
2817 tab_expansion_file.
2818 (tui_get_register, tui_data_window::display_registers_from)
2819 (tui_data_item_window::rerender): Update.
2820 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2821 * tui/tui-io.c (tui_expand_tabs): Remove.
2822
ea68593b
TT
28232020-07-01 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2826
a8caed5d
FS
28272020-07-01 Fangrui Song <maskray@google.com>
2828
2829 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2830
9cdf9820
AKS
28312020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2832
2833 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2834 forms for DW_AT_associated and DW_AT_allocated attributes,
2835 which is already checked in function attr_to_dynamic_prop.
2836
a1520ad8
TT
28372020-06-30 Tom Tromey <tromey@adacore.com>
2838
2839 * dwarf2/read.c (quirk_rust_enum): Correctly call
2840 alloc_rust_variant for default-less enum.
2841
5ac58899
TT
28422020-06-30 Tom Tromey <tromey@adacore.com>
2843
2844 PR build/26183:
2845 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2846 gdb::to_string.
2847
19b187a9
SM
28482020-06-29 Simon Marchi <simon.marchi@efficios.com>
2849
2850 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2851 * gdbarch.h: Re-generate.
2852
cd4c4c07
TT
28532020-06-28 Tom Tromey <tom@tromey.com>
2854
2855 * command.h (cmd_types): Remove.
2856 (cmd_type): Don't declare.
2857 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2858 typedef.
2859 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2860 * cli/cli-decode.c (cmd_type): Remove.
2861
05779d57
PA
28622020-06-27 Pedro Alves <palves@redhat.com>
2863
2864 * fork-child.c (prefork_hook): Adjust.
2865 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2866 Delete.
2867 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2868 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2869 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2870 Remove declarations.
2871 (struct inferior) <set_tty, tty>: New methods.
2872 (struct inferior) <terminal>: Rename to ...
2873 (struct inferior) <m_terminal>: ... this and make private.
2874 * main.c (captured_main_1): Adjust.
2875 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2876 (mi_cmd_inferior_tty_show): Adjust.
2877 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2878 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2879
1776e3e5
NA
28802020-06-26 Nick Alcock <nick.alcock@oracle.com>
2881
2882 * configure.ac: Add --enable-libctf: handle --disable-static
2883 properly.
2884 * acinclude.m4: sinclude ../config/enable.m4.
2885 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2886 (LIBCTF): Substitute in.
2887 (CTF_DEPS): New, likewise.
2888 (CLIBS): libctf needs symbols from libbfd: move earlier.
2889 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2890 flags.
2891 * ctfread.c: Surround in ENABLE_LIBCTF.
2892 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2893 * configure: Regenerate.
2894 * config.in: Likewise.
2895
58373b80
SM
28962020-06-25 Simon Marchi <simon.marchi@efficios.com>
2897
2898 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2899
277474ee
SM
29002020-06-25 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * inferior.h (struct inferior) <terminal>: Change type to
2903 gdb::unique_xmalloc_ptr<char>.
2904 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2905 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2906 field, adjust to unique pointer.
2907 (get_inferior_io_terminal): Adjust to unique pointer.
2908
6d74da72
AB
29092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2912 registers, not just the known core set of registers.
2913
2e52d038
AB
29142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2917 fflags, frm, and fcsr registers.
2918 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2919 restore groups.
2920 (riscv_tdesc_unknown_reg): New function.
2921 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2922 tdesc_use_registers.
2923 * riscv-tdep.h (struct gdbarch_tdep): Add
2924 unknown_csrs_first_regnum, unknown_csrs_count,
2925 duplicate_fflags_regnum, duplicate_frm_regnum, and
2926 duplicate_fcsr_regnum fields.
2927
be64fd07
AB
29282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2929
2930 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2931 callback, use the callback (when not null) to help number unknown
2932 registers.
2933 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2934 (tdesc_use_registers): Add extra parameter to declaration.
2935
3b9fce96
AB
29362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2937
2938 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2939 in the file.
2940 (class riscv_pending_register_alias): Likewise.
2941 (riscv_register_feature::register_info): Change 'required_p' field
2942 to 'required', and change its type. Add 'check' member function.
2943 (riscv_register_feature::register_info::check): Define new member
2944 function.
2945 (riscv_xreg_feature): Change initialisation of 'required' field.
2946 (riscv_freg_feature): Likewise.
2947 (riscv_virtual_feature): Likewise.
2948 (riscv_csr_feature): Likewise.
2949 (riscv_check_tdesc_feature): Take extra parameter, the csr
2950 tdesc_feature, rewrite the function to use the new
2951 riscv_register_feature::register_info::check function.
2952 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2953
865bad26
AB
29542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * features/Makefile: Remove all references to the deleted files
2957 below.
2958 * features/riscv/32bit-csr.c: Deleted.
2959 * features/riscv/32bit-csr.xml: Deleted.
2960 * features/riscv/64bit-csr.c: Deleted.
2961 * features/riscv/64bit-csr.xml: Deleted.
2962 * features/riscv/rebuild-csr-xml.sh: Deleted.
2963
ed69cbc8
AB
29642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2967 whitespace error for declaration of names member variable.
2968 (struct riscv_register_feature): Add new prefer_first_name member
2969 variable, and fix whitespace error in declaration of registers.
2970 (riscv_xreg_feature): Initialize prefer_first_name field.
2971 (riscv_freg_feature): Likewise.
2972 (riscv_virtual_feature): Likewise.
2973 (riscv_csr_feature): Likewise.
2974 (riscv_register_name): Expand on comments. Remove register name
2975 modifications for CSR and virtual registers.
2976
4445e8f5
AB
29772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2980 errors.
2981
767a879e
AB
29822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2985 riscv-opc.h.
2986 (class riscv_pending_register_alias): New class.
2987 (riscv_check_tdesc_feature): Take vector of pending aliases and
2988 populate it as appropriate.
2989 (riscv_setup_register_aliases): Delete.
2990 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2991 to riscv_check_tdesc_feature in all cases. Use the vector to
2992 create the register aliases.
2993
bb6e55f3
RO
29942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2995
2996 * sol2-tdep.c (sol2_static_transform_name): Remove.
2997 (sol2_init_abi): Don't register it.
2998 * gdbarch.sh (static_transform_name): Remove.
2999 * gdbarch.c, gdbarch.h: Regenerate.
3000
3001 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3002 gdbarch_static_transform_name.
3003 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3004 * stabsread.c (define_symbol) <'X'>: Remove.
3005 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3006 handling.
3007 <'V'>: Likewise.
3008 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3009 <'S'>: Remove call to gdbarch_static_transform_name.
3010
c6d36836
RO
30112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3012
3013 * procfs.c (procfs_pre_trace): New function.
3014 (procfs_target::create_inferior): Pass it to fork_inferior.
3015
a7e6196b
RO
30162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3017
3018 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3019 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3020 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3021 sol2-tdep.o, sparc-sol2-tdep.o.
3022 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3023 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3024 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3025 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3026
d412e696
RO
30272020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3028
3029 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3030 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3031 Call sol2_init_abi.
3032 Remove calls to set_gdbarch_skip_solib_resolver,
3033 set_gdbarch_core_pid_to_str.
3034 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3035 (i386_sol2_static_transform_name): Remove.
3036 (i386_sol2_init_abi): Call sol2_init_abi.
3037 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3038 set_gdbarch_static_transform_name,
3039 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3040 Use sol2_sigtramp_p.
3041 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3042 (sol2_sigtramp_p): New function.
3043 (sol2_static_transform_name): New function.
3044 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3045 (sol2_init_abi): New function.
3046 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3047 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3048 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3049 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3050 (sparc_sol2_static_transform_name): Remove.
3051 (sparc32_sol2_init_abi): Call sol2_init_abi.
3052 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3053 set_gdbarch_static_transform_name,
3054 set_gdbarch_skip_solib_resolver,
3055 set_gdbarch_core_pid_to_str.
3056 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3057 (sparc_sol2_static_transform_name): Remove
3058 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3059 call sol2_sigtramp_p.
3060 (sparc64_sol2_init_abi): Call sol2_init_abi.
3061 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3062 set_gdbarch_static_transform_name,
3063 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3064
a8654e7d
PW
30652020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3066
3067 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3068 * exec.c (validate_exec_file): If from_tty, set both
3069 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3070 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3071 and from_tty, unconditionally ask a confirmation.
3072
caa7fd04
AB
30732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3074
3075 * target-descriptions.c (tdesc_architecture_name): Protect against
3076 NULL pointer dereference.
3077 (maint_print_xml_tdesc_cmd): New function.
3078 (_initialize_target_descriptions): Register new 'maint print
3079 xml-tdesc' command and give it the filename completer.
3080 * NEWS: Mention new 'maint print xml-tdesc' command.
3081
fbf42f4e
AB
30822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3083
3084 * target-descriptions.c (class tdesc_compatible_info): New class.
3085 (struct target_desc): Change type of compatible vector.
3086 (tdesc_compatible_p): Update for change in type of
3087 target_desc::compatible.
3088 (tdesc_compatible_info_list): New function.
3089 (tdesc_compatible_info_arch_name): New function.
3090 (tdesc_add_compatible): Update for change in type of
3091 target_desc::compatible.
3092 (print_c_tdesc::visit_pre): Likewise.
3093
20821f4e
AB
30942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3097 whitespace to underscore.
3098 (maint_print_c_tdesc_cmd): Use fake filename for target
3099 descriptions that came from the target.
3100 (_initialize_target_descriptions): Add filename command completion
3101 for 'maint print c-tdesc'.
3102
1fb5ee62
SM
31032020-06-23 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3106 lines.
3107
fc3ecb3e
SM
31082020-06-23 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3111 lines.
3112 (dwarf2_find_location_expression): Likewise.
3113 (call_site_parameter_matches): Likewise.
3114 (dwarf2_compile_expr_to_ax): Likewise.
3115 (disassemble_dwarf_expression): Likewise.
3116 (loclist_describe_location): Likewise.
3117
236ef034
PA
31182020-06-23 Pedro Alves <palves@redhat.com>
3119
3120 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3121 progspace-and-thread.h. Include scoped-mock-context.h instead.
3122 (register_to_value_test): Use scoped_mock_context.
3123 * regcache.c: Include "scoped-mock-context.h".
3124 (cooked_read_test): Don't error out if a target is already pushed.
3125 Use scoped_mock_context. Adjust.
3126 * scoped-mock-context.h: New file.
3127
39e7ecca
AB
31282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3129
3130 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3131 initializer.
3132 (ada_language::is_string_type_p): New member function.
3133 * c-lang.c (c_language_data): Delete la_is_string_type_p
3134 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_is_string_type_p): Delete function, implementation
3140 moved to f_language::is_string_type_p.
3141 (f_language_data): Delete la_is_string_type_p initializer.
3142 (f_language::is_string_type_p): New member function,
3143 implementation from f_is_string_type_p.
3144 * go-lang.c (go_is_string_type_p): Delete function, implementation
3145 moved to go_language::is_string_type_p.
3146 (go_language_data): Delete la_is_string_type_p initializer.
3147 (go_language::is_string_type_p): New member function,
3148 implementation from go_is_string_type_p.
3149 * language.c (language_defn::is_string_type_p): Define new member
3150 function.
3151 (default_is_string_type_p): Make static, add comment copied from
3152 header file.
3153 (unknown_language_data): Delete la_is_string_type_p initializer.
3154 (unknown_language::is_string_type_p): New member function.
3155 (auto_language_data): Delete la_is_string_type_p initializer.
3156 (auto_language::is_string_type_p): New member function.
3157 * language.h (language_data): Delete la_is_string_type_p field.
3158 (language_defn::is_string_type_p): Declare new function.
3159 (default_is_string_type_p): Delete desclaration, move comment to
3160 definition.
3161 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3162 moved to m2_language::is_string_type_p.
3163 (m2_language_data): Delete la_is_string_type_p initializer.
3164 (m2_language::is_string_type_p): New member function,
3165 implementation from m2_is_string_type_p.
3166 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3167 initializer.
3168 * opencl-lang.c (opencl_language_data): Likewise.
3169 * p-lang.c (pascal_is_string_type_p): Delete function,
3170 implementation moved to pascal_language::is_string_type_p.
3171 (pascal_language_data): Delete la_is_string_type_p initializer.
3172 (pascal_language::is_string_type_p): New member function,
3173 implementation from pascal_is_string_type_p.
3174 * rust-lang.c (rust_is_string_type_p): Delete function,
3175 implementation moved to rust_language::is_string_type_p.
3176 (rust_language_data): Delete la_is_string_type_p initializer.
3177 (rust_language::is_string_type_p): New member function,
3178 implementation from rust_is_string_type_p.
3179 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3180 is_string_type_p.
3181
4ffc13fb
AB
31822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * ada-lang.c (ada_language_data): Delete la_print_typedef
3185 initializer.
3186 (ada_language::print_typedef): New member function.
3187 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3188 (cplus_language_data): Likewise.
3189 (asm_language_data): Likewise.
3190 (minimal_language_data): Likewise.
3191 * d-lang.c (d_language_data): Likewise.
3192 * f-lang.c (f_language_data): Likewise.
3193 (f_language::print_typedef): New member function.
3194 * go-lang.c (go_language_data): Delete la_print_typedef
3195 initializer.
3196 * language.c (language_defn::print_typedef): Define member
3197 function.
3198 (unknown_language_data): Delete la_print_typedef initializer.
3199 (unknown_language::print_typedef): New member function.
3200 (auto_language_data): Delete la_print_typedef initializer.
3201 (auto_language::print_typedef): New member function.
3202 * language.h (language_data): Delete la_print_typedef field.
3203 (language_defn::print_typedef): Declare new member function.
3204 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3205 (default_print_typedef): Delete declaration.
3206 * m2-lang.c (m2_language_data): Delete la_print_typedef
3207 initializer.
3208 (m2_language::print_typedef): New member function.
3209 * objc-lang.c (objc_language_data): Delete la_print_typedef
3210 initializer.
3211 * opencl-lang.c (opencl_language_data): Likewise.
3212 * p-lang.c (pascal_language_data): Likewise.
3213 (pascal_language::print_typedef): New member function.
3214 * rust-lang.c (rust_print_typedef): Delete function,
3215 implementation moved to rust_language::print_typedef.
3216 (rust_language): Delete la_print_typedef initializer.
3217 (rust_language::print_typedef): New member function,
3218 implementation from rust_print_typedef.
3219 * typeprint.c (default_print_typedef): Delete.
3220
d711ee67
AB
32212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3224 (ada_language::printstr): New member function.
3225 * c-lang.c (c_language_data): Delete la_printstr initializer.
3226 (cplus_language_data): Likewise.
3227 (asm_language_data): Likewise.
3228 (minimal_language_data): Likewise.
3229 * d-lang.c (d_language_data): Likewise.
3230 * f-lang.c (f_printstr): Rename to f_language::printstr.
3231 (f_language_data): Delete la_printstr initializer.
3232 (f_language::printstr): New member function, implementation from
3233 f_printstr.
3234 * go-lang.c (go_language_data): Delete la_printstr initializer.
3235 * language.c (language_defn::printstr): Define new member
3236 function.
3237 (unk_lang_printstr): Delete.
3238 (unknown_language_data): Delete la_printstr initializer.
3239 (unknown_language::printstr): New member function.
3240 (auto_language_data): Delete la_printstr initializer.
3241 (auto_language::printstr): New member function.
3242 * language.h (language_data): Delete la_printstr field.
3243 (language_defn::printstr): Declare new member function.
3244 (LA_PRINT_STRING): Update call to printstr.
3245 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3246 (m2_language_data): Delete la_printstr initializer.
3247 (m2_language::printstr): New member function, implementation from
3248 m2_printstr.
3249 * objc-lang.c (objc_language_data): Delete la_printstr
3250 initializer.
3251 * opencl-lang.c (opencl_language_data): Likewise.
3252 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3253 (pascal_language_data): Delete la_printstr initializer.
3254 (pascal_language::printstr): New member function, implementation
3255 from pascal_printstr.
3256 * p-lang.h (pascal_printstr): Delete declaration.
3257 * rust-lang.c (rust_printstr): Update header comment.
3258 (rust_language_data): Delete la_printstr initializer.
3259 (rust_language::printstr): New member function.
3260
52b50f2c
AB
32612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3262
3263 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3264 (ada_language::printchar): New member function.
3265 * c-lang.c (c_language_data): Delete la_printchar initializer.
3266 (cplus_language_data): Likewise.
3267 (asm_language_data): Likewise.
3268 (minimal_language_data): Likewise.
3269 * d-lang.c (d_language_data): Likewise.
3270 * f-lang.c (f_printchar): Rename to f_language::printchar.
3271 (f_language_data): Delete la_printchar initializer.
3272 (f_language::printchar): New member function, implementation from
3273 f_printchar.
3274 * go-lang.c (go_language_data): Delete la_printchar initializer.
3275 * language.c (unk_lang_printchar): Delete.
3276 (language_defn::printchar): Define new member function.
3277 (unknown_language_data): Delete la_printchar initializer.
3278 (unknown_language::printchar): New member function.
3279 (auto_language_data): Delete la_printchar initializer.
3280 (auto_language::printchar): New member function.
3281 * language.h (language_data): Delete la_printchar field.
3282 (language_defn::printchar): Declare new member function.
3283 (LA_PRINT_CHAR): Update call to printchar.
3284 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3285 (m2_language::printchar): New member function.
3286 * objc-lang.c (objc_language_data): Delete la_printchar
3287 initializer.
3288 * opencl-lang.c (opencl_language_data): Likewise.
3289 * p-lang.c (pascal_language_data): Delete la_printchar
3290 initializer.
3291 (pascal_language::printchar): New member function.
3292 * rust-lang.c (rust_printchar): Rename to
3293 rust_language::printchar.
3294 (rust_language_data): Delete la_printchar initializer.
3295 (rust_language::printchar): New member function, implementation
3296 from rust_printchar.
3297
ec8cec5b
AB
32982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3299
3300 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3301 (ada_language_data): Delete la_emitchar initializer.
3302 (ada_language::emitchar): New member function, implementation from
3303 emit_char.
3304 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3305 (cplus_language_data): Likewise.
3306 (asm_language_data): Likewise.
3307 (minimal_language_data): Likewise.
3308 * d-lang.c (d_language_data): Likewise.
3309 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3310 (f_language_data): Delete la_emitchar initializer.
3311 (f_language::emitchar): New member function, implementation from
3312 f_emit_char.
3313 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3314 * language.c (unk_lang_emit_char): Delete.
3315 (language_defn::emitchar): New member function definition.
3316 (unknown_language_data): Delete la_emitchar initializer.
3317 (unknown_language::emitchar): New member function.
3318 (auto_language_data): Delete la_emitchar initializer.
3319 (auto_language::emitchar): New member function.
3320 * language.h (language_data): Delete la_emitchar field.
3321 (language_defn::emitchar): New member field declaration.
3322 (LA_EMIT_CHAR): Update call to emitchar.
3323 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3324 (m2_language_data): Delete la_emitchar initializer.
3325 (m2_language::emitchar): New member function, implementation from
3326 m2_emit_char.
3327 * objc-lang.c (objc_language_data): Delete la_emitchar
3328 initializer.
3329 * opencl-lang.c (opencl_language_data): Likewise.
3330 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3331 (pascal_language_data): Delete la_emitchar initializer.
3332 (pascal_language::emitchar): New member function, implementation
3333 from pascal_emit_char.
3334 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3335 (rust_language_data): Delete la_emitchar initializer.
3336 (rust_language::emitchar): New member function, implementation
3337 from rust_emitchar.
3338
1bf9c363
AB
33392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3340
3341 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3342 (ada_language_data): Delete la_post_parser initializer.
3343 (ada_language::post_parser): New member function.
3344 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3345 (cplus_language_data): Likewise.
3346 (asm_language_data): Likewise.
3347 (minimal_language_data): Likewise.
3348 * d-lang.c (d_language_data): Likewise.
3349 * f-lang.c (f_language_data): Likewise.
3350 * go-lang.c (go_language_data): Likewise.
3351 * language.c (unknown_language_data): Likewise.
3352 (auto_language_data): Likewise.
3353 * language.h (language_data): Delete la_post_parser field.
3354 (language_defn::post_parser): New member function.
3355 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3356 * objc-lang.c (objc_language_data): Likewise.
3357 * opencl-lang.c (opencl_language_data): Likewise.
3358 * p-lang.c (pascal_language_data): Likewise.
3359 * parse.c (parse_exp_in_context): Update call to post_parser.
3360 (null_post_parser): Delete definition.
3361 * parser-defs.h (null_post_parser): Delete declaration.
3362 * rust-lang.c (rust_language_data): Delete la_post_parser
3363 initializer.
3364
87afa652
AB
33652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * ada-lang.c (parse): Rename to ada_language::parser.
3368 (ada_language_data): Delete la_parser initializer.
3369 (ada_language::parser): New member function, implementation from
3370 parse.
3371 * c-lang.c (c_language_data): Delete la_parser initializer.
3372 (cplus_language_data): Likewise.
3373 (asm_language_data): Likewise.
3374 (minimal_language_data): Likewise.
3375 * d-lang.c (d_language_data): Likewise.
3376 (d_language::parser): New member function.
3377 * f-lang.c (f_language_data): Delete la_parser initializer.
3378 (f_language::parser): New member function.
3379 * go-lang.c (go_language_data): Delete la_parser initializer.
3380 (go_language::parser): New member function.
3381 * language.c (unk_lang_parser): Delete.
3382 (language_defn::parser): Define new member function.
3383 (unknown_language_data): Delete la_parser initializer.
3384 (unknown_language::parser): New member function.
3385 (auto_language_data): Delete la_parser initializer.
3386 (auto_language::parser): New member function.
3387 * language.h (language_data): Delete la_parser field.
3388 (language_defn::parser): Declare new member function.
3389 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3390 (m2_language::parser): New member function.
3391 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3392 * opencl-lang.c (opencl_language_data): Likewise.
3393 * p-lang.c (pascal_language_data): Likewise.
3394 (pascal_language::parser): New member function.
3395 * parse.c (parse_exp_in_context): Update call to parser.
3396 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3397 (rust_language::parser): New member function.
3398
37825800
AB
33992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * top.c (print_gdb_configuration): Print --with-python-libdir
3402 configuration value.
3403
5b860c93
PW
34042020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3405
3406 * NEWS: Mention change to the alias command.
3407
cf00cd6f
PW
34082020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3409
3410 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3411 (alias_command_completer)
3412 (make_alias_options_def_group): New functions.
3413 (alias_opts, alias_option_defs): New struct and array.
3414 (alias_usage_error): Update usage.
3415 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3416 Use option framework.
3417 (_initialize_cli_cmds): Update alias command help.
3418 Update aliases command help.
3419 (show_user):
3420 Add NULL for new default_args lookup_cmd argument.
3421 (valid_command_p): Rename to validate_aliased_command.
3422 Add NULL for new default_args lookup_cmd argument. Verify that the
3423 aliased_command has no default args.
3424 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3425 (lookup_cmd_1, lookup_cmd): New argument default_args.
3426 (add_alias_cmd):
3427 Add NULL for new default_args lookup_cmd argument.
3428 (print_help_for_command): Show default args under the layout
3429 alias some_alias = some_aliased_cmd some_alias_default_arg.
3430 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3431 xfree default_args in destructor.
3432 * cli/cli-script.c (process_next_line, do_define_command):
3433 Add NULL for new default_args lookup_cmd argument.
3434 * command.h: Declare new default_args argument in lookup_cmd
3435 and lookup_cmd_1.
3436 * completer.c (complete_line_internal_1):
3437 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3438 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3439 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3440 Likewise.
3441 * infcmd.c (_initialize_infcmd): Likewise.
3442 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3443 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3444 * python/py-param.c (add_setshow_generic): Likewise.
3445 * remote.c (_initialize_remote): Likewise.
3446 * top.c (execute_command): Prepend default_args if command has some.
3447 (set_verbose):
3448 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3449 * tracepoint.c (validate_actionline, encode_actions_1):
3450 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3451
bd920864
TBA
34522020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3453
3454 * jit.c (jit_read_descriptor): Use bool as the return type.
3455 (jit_breakpoint_re_set_internal): Use bool as the return type.
3456 Invert the return value logic; return true if the jit breakpoint
3457 has been successfully initialized.
3458 (jit_inferior_init): Update the call to
3459 jit_breakpoint_re_set_internal.
3460
f8098322
PA
34612020-06-22 Pedro Alves <palves@redhat.com>
3462
3463 PR gdb/25939
3464 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3465 Use the current inferior instead. Don't return
3466 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3467 wait again.
3468 * sol-thread.c (sol_thread_target::wait): Don't reference
3469 inferior_ptid.
3470 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3471 (sol_update_thread_list_callback): Use the current inferior's pid
3472 instead of inferior_ptid.
3473
196535a6
RO
34742020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3475
3476 * procfs.c: Cleanup many comments.
3477
3478 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3479 (AFTER_WATCHFLAG): Replace by value.
3480
3481 (MAIN_PROC_NAME_FORMAT): Inline ...
3482 (create_procinfo): ... here.
3483
3484 (procfs_debug_inferior): Remove SYS_exec handling.
3485 (syscall_is_exec): Likewise.
3486 (procfs_set_exec_trap): Likewise.
3487
3488 (syscall_is_lwp_exit): Inline in callers.
3489 (syscall_is_exit): Likewise.
3490 (syscall_is_exec): Likewise.
3491 (syscall_is_lwp_create): Likewise.
3492
3493 (invalidate_cache): Remove #if 0 code.
3494
3495 (make_signal_thread_runnable): Remove.
3496 (procfs_target::resume): Remove #if 0 code.
3497
cf6f3e86
RO
34982020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3499
3500 PR gdb/25939
3501 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3502 call ...
3503 (procfs_target::create_inferior): ... here.
3504
48e9cc84
PW
35052020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3506
3507 * exec.c (validate_exec_file): Ensure the build-id is up to
3508 date by calling reopen_exec_file (that checks file timestamp
3509 to decide to re-read the file).
3510
3922b302
PA
35112020-06-18 Pedro Alves <palves@redhat.com>
3512
3513 PR gdb/25412
3514 * gdbthread.h (delete_thread, delete_thread_silent)
3515 (find_thread_ptid): Update comments.
3516 * thread.c (current_thread_): New global.
3517 (is_current_thread): Move higher, and reimplement.
3518 (inferior_thread): Reimplement.
3519 (set_thread_exited): Use bool. Add assertions.
3520 (add_thread_silent): Simplify thread-reuse handling by always
3521 calling delete_thread.
3522 (delete_thread): Remove intro comment.
3523 (find_thread_ptid): Skip exited threads.
3524 (switch_to_thread_no_regs): Write to current_thread_.
3525 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3526 INFERIOR_PTID. Clear current_thread_.
3527
6dbdab44
PA
35282020-06-18 Pedro Alves <palves@redhat.com>
3529
3530 * aix-thread.c (pd_update): Use switch_to_thread.
3531
2da4b788
PA
35322020-06-18 Pedro Alves <palves@redhat.com>
3533
3534 * ravenscar-thread.c (ravenscar_thread_target): Update.
3535 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3536 (ravenscar_thread_target::add_active_thread): ... this. Don't
3537 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3538 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3539
50838d1b
PA
35402020-06-18 Pedro Alves <palves@redhat.com>
3541
3542 * nat/windows-nat.c (current_windows_thread): Remove.
3543 * nat/windows-nat.h (current_windows_thread): Remove.
3544 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3545 Adjust.
3546 (display_selectors): Adjust to fetch the current
3547 windows_thread_info based on inferior_ptid.
3548 (fake_create_process): No longer write to current_windows_thread.
3549 (windows_nat_target::get_windows_debug_event):
3550 Don't set inferior_ptid or current_windows_thread.
3551 (windows_nat_target::wait): Adjust to not rely on
3552 current_windows_thread.
3553 (do_initial_windows_stuff): Now a method of windows_nat_target.
3554 Switch to the last_ptid thread.
3555 (windows_nat_target::attach): Adjust.
3556 (windows_nat_target::detach): Use switch_to_no_thread instead of
3557 writing to inferior_ptid directly.
3558 (windows_nat_target::create_inferior): Adjust.
3559
31ce04e9
PA
35602020-06-18 Pedro Alves <palves@redhat.com>
3561
3562 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3563
1ee1a363
PA
35642020-06-18 Pedro Alves <palves@redhat.com>
3565
3566 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3567 after creating it, instead of writing to inferior_ptid. Don't
3568 write to inferior_ptid.
3569
6d350754
PA
35702020-06-18 Pedro Alves <palves@redhat.com>
3571
3572 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3573
5d971d48
PA
35742020-06-18 Pedro Alves <palves@redhat.com>
3575
3576 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3577 it, instead of writing to inferior_ptid.
3578
86e57d1b
PA
35792020-06-18 Pedro Alves <palves@redhat.com>
3580
3581 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3582 to inferior_ptid.
3583
f2e1c129
PA
35842020-06-18 Pedro Alves <palves@redhat.com>
3585
3586 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3587 instead of writing to inferior_ptid directly.
3588
60db1b85
PA
35892020-06-18 Pedro Alves <palves@redhat.com>
3590
3591 * corelow.c (core_target::close): Use switch_to_no_thread instead
3592 of writing to inferior_ptid directly.
3593 (add_to_thread_list, core_target_open): Use switch_to_thread
3594 instead of writing to inferior_ptid directly.
3595
fe7d6a8d
PA
35962020-06-18 Pedro Alves <palves@redhat.com>
3597
3598 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3599 inferior_ptid.
3600 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3601 inferior_ptid.
3602 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3603 inferior_ptid directly.
3604 (darwin_nat_target::init_thread_list): Switch to thread, instead
3605 of writing to inferior_ptid.
3606 (darwin_nat_target::attach): Don't write to inferior_ptid.
3607 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3608
975f8708
PA
36092020-06-18 Pedro Alves <palves@redhat.com>
3610
3611 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3612 thread.
3613 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3614 Instead use switch_to_thread.
3615 (gnu_nat_target::detach): Use switch_to_no_thread
3616 instead of writing to inferior_ptid directly. Used passed-in
3617 inferior instead of looking up the inferior by pid.
3618
1a204730
PA
36192020-06-18 Pedro Alves <palves@redhat.com>
3620
3621 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3622 inferior_ptid.
3623
ebe84f23
PA
36242020-06-18 Pedro Alves <palves@redhat.com>
3625
3626 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3627 inferior_ptid.
3628 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3629 thread.
3630 (nto_procfs_target::detach): Avoid referencing
3631 inferior_ptid. Use switch_to_no_thread instead of writing to
3632 inferior_ptid directly.
3633 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3634 instead of writing to inferior_ptid directly.
3635 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3636 to thread.
3637
191f02e5
PA
36382020-06-18 Pedro Alves <palves@redhat.com>
3639
3640 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3641 after creating it, instead of writing to inferior_ptid.
3642 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3643 to inferior_ptid directly.
3644 (gdbsim_target::wait): Don't write to inferior_ptid.
3645
0ac55310
PA
36462020-06-18 Pedro Alves <palves@redhat.com>
3647
3648 * remote.c (remote_target::remote_notice_new_inferior): Use
3649 switch_to_thread instead of writing to inferior_ptid directly.
3650 (remote_target::add_current_inferior_and_thread): Use
3651 switch_to_no_thread instead of writing to inferior_ptid directly.
3652 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3653 and switch_to_thread instead of using set_current_inferior or
3654 writing to inferior_ptid directly.
3655
5233f39b
PA
36562020-06-18 Pedro Alves <palves@redhat.com>
3657
3658 * tracectf.c (ctf_target_open): Switch to added thread instead of
3659 writing to inferior_ptid directly.
3660 (ctf_target::close): Use switch_to_no_thread instead of writing to
3661 inferior_ptid directly.
3662
087e161b
PA
36632020-06-18 Pedro Alves <palves@redhat.com>
3664
3665 * tracefile-tfile.c (tfile_target_open): Don't write to
3666 inferior_ptid directly, instead switch to added thread.
3667 (tfile_target::close): Use switch_to_no_thread instead of writing
3668 to inferior_ptid directly.
3669
7fb43e53
PA
36702020-06-18 Pedro Alves <palves@redhat.com>
3671
3672 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3673 (procfs_target::detach): Use switch_to_no_thread
3674 instead of writing to inferior_ptid directly.
3675 (do_attach): Change return type to void. Switch to the added
3676 thread.
3677 (procfs_target::create_inferior): Switch to the added thread.
3678 (procfs_do_thread_registers): Don't write to inferior_ptid.
3679
18493a00
PA
36802020-06-18 Pedro Alves <palves@redhat.com>
3681
3682 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3683 of writing to inferior_ptid.
3684 (scoped_restore_exited_inferior): Delete.
3685 (handle_vfork_child_exec_or_exit): Simplify using
3686 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3687 instead of writing to inferior_ptid.
3688 (THREAD_STOPPED_BY): Delete.
3689 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3690 (thread_stopped_by_hw_breakpoint): Delete.
3691 (save_waitstatus): Use
3692 scoped_restore_current_thread+switch_to_thread, and call
3693 target_stopped_by_watchpoint instead of
3694 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3695 instead of thread_stopped_by_sw_breakpoint, and
3696 target_stopped_by_hw_breakpoint instead of
3697 thread_stopped_by_hw_breakpoint.
3698 (handle_inferior_event)
3699 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3700 inferior_ptid directly, nor
3701 set_current_inferior/set_current_program_space. Use
3702 switch_to_thread / switch_to_inferior_no_thread instead.
3703
a0776b13
PA
37042020-06-18 Pedro Alves <palves@redhat.com>
3705
3706 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3707 instead of writing to inferior_ptid.
3708
6155c136
PA
37092020-06-18 Pedro Alves <palves@redhat.com>
3710
3711 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3712 added thread.
3713 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3714 to the added thread.
3715 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3716 instead of writing to inferior_ptid.
3717
c5316fc6
PA
37182020-06-18 Pedro Alves <palves@redhat.com>
3719
3720 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3721 (register_to_value_test): Mock a program_space too. Heap-allocate
3722 the address space. Don't write to inferior_ptid. Use
3723 switch_to_thread instead.
3724
8df01799
PA
37252020-06-18 Pedro Alves <palves@redhat.com>
3726
3727 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3728 Delete.
3729 (find_signalled_thread()): New, factored out from
3730 linux_make_corefile_notes and adjusted to handle exited threads.
3731 (linux_make_corefile_notes): Adjust to use the new
3732 find_signalled_thread.
3733
41792d68
PA
37342020-06-18 Pedro Alves <palves@redhat.com>
3735
3736 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3737 of saving/restoring inferior_ptid.
3738
612f258a
TT
37392020-06-17 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3742 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3743 declare.
3744 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3745
efb763a5
SM
37462020-06-15 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3749 of partial symtabs.
3750
2951f6c0
SM
37512020-06-17 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * regformats/reg-arm.dat: Remove.
3754 * regformats/reg-bfin.dat: Remove.
3755 * regformats/reg-cris.dat: Remove.
3756 * regformats/reg-crisv32.dat: Remove.
3757 * regformats/reg-m32r.dat: Remove.
3758 * regformats/reg-tilegx.dat: Remove.
3759 * regformats/reg-tilegx32.dat: Remove.
3760
7d458ea5
SM
37612020-06-17 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * features/Makefile (WHICH): Remove arm files.
3764 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3765 * regformats/arm/arm-with-neon.dat: Remove.
3766 * regformats/arm/arm-with-vfpv2.dat: Remove.
3767 * regformats/arm/arm-with-vfpv3.dat: Remove.
3768
3af96c0d
SM
37692020-06-17 Simon Marchi <simon.marchi@efficios.com>
3770
3771 * features/Makefile (XMLTOC): Remove rx.xml.
3772
b25e22fd
PA
37732020-06-17 Pedro Alves <palves@redhat.com>
3774
3775 * gdbthread.h (thread_control_state) <trap_expected> Update
3776 comments.
3777
a78a19b1
AB
37782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3779
3780 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3781 ada_language::lookup_symbol_nonlocal.
3782 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3783 (ada_language::lookup_symbol_nonlocal): New member function,
3784 implementation from ada_lookup_symbol_nonlocal.
3785 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3786 initializer.
3787 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3788 initializer.
3789 (cplus_language::lookup_symbol_nonlocal): New member function.
3790 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3791 (minimal_language_data) Likewise.
3792 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3793 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3794 initializer.
3795 (d_language::lookup_symbol_nonlocal): New member function.
3796 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3797 initializer.
3798 (f_language::lookup_symbol_nonlocal): New member function.
3799 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3800 initializer.
3801 * language.c (unknown_language_data): Likewise.
3802 (auto_language_data): Likewise.
3803 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3804 field.
3805 (language_defn::lookup_symbol_nonlocal): New member function.
3806 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3807 initializer.
3808 * objc-lang.c (objc_language_data): Likewise.
3809 * opencl-lang.c (opencl_language_data): Likewise.
3810 * p-lang.c (pascal_language_data): Likewise.
3811 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3812 rust_language::lookup_symbol_nonlocal.
3813 (rust_language_data): Delete la_lookup_symbol_nonlocal
3814 initializer.
3815 (rust_language::lookup_symbol_nonlocal): New member function,
3816 implementation from rust_lookup_symbol_nonlocal.
3817 * symtab.c (lookup_symbol_aux): Update call to
3818 lookup_symbol_nonlocal.
3819 (basic_lookup_symbol_nonlocal): Rename to...
3820 (language_defn::lookup_symbol_nonlocal): ...this, and update
3821 header comment. Remove language_defn parameter, and replace with
3822 uses of `this'.
3823 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3824
ebe2334e
AB
38252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3828 initializer.
3829 (ada_language::value_print_inner): New member function.
3830 * c-lang.c (c_language_data): Delete la_value_print_inner
3831 initializer.
3832 (cplus_language_data): Likewise.
3833 (asm_language_data): Likewise.
3834 (minimal_language_data): Likewise.
3835 * d-lang.c (d_language_data): Likewise.
3836 (d_language::value_print_inner): New member function.
3837 * f-lang.c (f_language_data): Delete la_value_print_inner
3838 initializer.
3839 (f_language::value_print_inner): New member function.
3840 * f-lang.h (f_value_print_innner): Rename to...
3841 (f_value_print_inner): ...this (note spelling of 'inner').
3842 * f-valprint.c (f_value_print_innner): Rename to...
3843 (f_value_print_inner): ...this (note spelling of 'inner').
3844 * go-lang.c (go_language_data): Delete la_value_print_inner
3845 initializer.
3846 (go_language::value_print_inner): New member function.
3847 * language.c (language_defn::value_print_inner): Define new member
3848 function.
3849 (unk_lang_value_print_inner): Delete.
3850 (unknown_language_data): Delete la_value_print_inner initializer.
3851 (unknown_language::value_print_inner): New member function.
3852 (auto_language_data): Delete la_value_print_inner initializer.
3853 (auto_language::value_print_inner): New member function.
3854 * language.h (language_data): Delete la_value_print_inner field.
3855 (language_defn::value_print_inner): Delcare new member function.
3856 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3857 initializer.
3858 (m2_language::value_print_inner): New member function.
3859 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3860 initializer.
3861 * opencl-lang.c (opencl_language_data): Likewise.
3862 * p-lang.c (pascal_language_data): Likewise.
3863 (pascal_language::value_print_inner): New member function.
3864 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3865 initializer.
3866 (rust_language::value_print_inner): New member function.
3867 * valprint.c (do_val_print): Update call to value_print_inner.
3868
a1d1fa3e
AB
38692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * ada-lang.c (ada_language_data): Delete la_value_print
3872 initializer.
3873 (ada_language::value_print): New member function.
3874 * c-lang.c (c_language_data): Delete la_value_print initializer.
3875 (cplus_language_data): Likewise.
3876 (asm_language_data): Likewise.
3877 (minimal_language_data): Likewise.
3878 * d-lang.c (d_language_data): Likewise.
3879 * f-lang.c (f_language_data): Likewise.
3880 * go-lang.c (go_language_data): Likewise.
3881 * language.c (unk_lang_value_print): Delete.
3882 (language_defn::value_print): Define new member function.
3883 (unknown_language_data): Delete la_value_print initializer.
3884 (unknown_language::value_print): New member function.
3885 (auto_language_data): Delete la_value_print initializer.
3886 (auto_language::value_print): New member function.
3887 * language.h (language_data): Delete la_value_print field.
3888 (language_defn::value_print): Declare new member function.
3889 (LA_VALUE_PRINT): Update call to value_print.
3890 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3891 * objc-lang.c (objc_language_data): Likewise.
3892 * opencl-lang.c (opencl_language_data): Likewise.
3893 * p-lang.c (pascal_language_data): Likewise.
3894 (pascal_language::value_print): New member function.
3895 * rust-lang.c (rust_language_data): Delete la_value_print
3896 initializer.
3897
f16a9f57
AB
38982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * ada-lang.c (ada_watch_location_expression): Rename to
3901 ada_language::watch_location_expression.
3902 (ada_language_data): Delete la_watch_location_expression
3903 initializer.
3904 (ada_language::watch_location_expression): New member function,
3905 implementation from ada_watch_location_expression.
3906 * breakpoint.c (watch_command_1): Update call to
3907 watch_location_expression.
3908 * c-lang.c (c_watch_location_expression): Rename to
3909 language_defn::watch_location_expression.
3910 (c_language_data): Delete la_watch_location_expression
3911 initializer.
3912 (cplus_language_data): Likewise.
3913 (asm_language_data): Likewise.
3914 (minimal_language_data): Likewise.
3915 * c-lang.h (c_watch_location_expression): Delete declaration.
3916 * d-lang.c (d_language_data): Delete la_watch_location_expression
3917 initializer.
3918 * f-lang.c (f_language_data): Likewise.
3919 * go-lang.c (go_language_data): Likewise.
3920 * language.c (language_defn::watch_location_expression): Member
3921 function implementation from c_watch_location_expression.
3922 (unknown_language_data): Delete la_watch_location_expression
3923 initializer.
3924 (auto_language_data): Likewise.
3925 * language.h (language_data): Delete la_watch_location_expression
3926 field.
3927 (language_defn::watch_location_expression): Declare new member
3928 function.
3929 * m2-lang.c (m2_language_data): Delete
3930 la_watch_location_expression initializer.
3931 * objc-lang.c (objc_language_data): Likewise.
3932 * opencl-lang.c (opencl_language_data): Likewise.
3933 * p-lang.c (pascal_language_data): Likewise.
3934 * rust-lang.c (rust_watch_location_expression): Rename to
3935 rust_language::watch_location_expression.
3936 (rust_language_data): Delete la_watch_location_expression
3937 initializer.
3938 (rust_language::watch_location_expression): New member function,
3939 implementation from rust_watch_location_expression.
3940
7e56227d
AB
39412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3942
3943 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3944 ada_language::collect_symbol_completion_matches.
3945 (ada_language_data): Delete la_collect_symbol_completion_matches
3946 initializer.
3947 (ada_language::collect_symbol_completion_matches): New member
3948 function, implementation from
3949 ada_collect_symbol_completion_matches.
3950 * c-lang.c (c_language_data): Delete
3951 la_collect_symbol_completion_matches initializer.
3952 (cplus_language_data): Likewise.
3953 (asm_language_data): Likewise.
3954 (minimal_language_data): Likewise.
3955 * d-lang.c (d_language_data): Likewise.
3956 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3957 f_language::collect_symbol_completion_matches.
3958 (f_language_data): Delete la_collect_symbol_completion_matches
3959 initializer.
3960 (f_language::collect_symbol_completion_matches) New member
3961 function, implementation from f_collect_symbol_completion_matches.
3962 * go-lang.c (go_language_data): Delete
3963 la_collect_symbol_completion_matches initializer.
3964 * language.c (unknown_language_data): Likewise.
3965 (auto_language_data): Likewise.
3966 * language.h (language_data): Delete
3967 la_collect_symbol_completion_matches field.
3968 (language_defn::collect_symbol_completion_matches): New member
3969 function.
3970 * m2-lang.c (m2_language_data): Delete
3971 la_collect_symbol_completion_matches initializer.
3972 * objc-lang.c (objc_language_data): Likewise.
3973 * opencl-lang.c (opencl_language_data): Likewise.
3974 * p-lang.c (pascal_language_data): Likewise.
3975 * rust-lang.c (rust_language_data): Likewise.
3976 * symtab.c (default_collect_symbol_completion_matches): Delete.
3977 (collect_symbol_completion_matches): Update call to
3978 collect_symbol_completion_matches.
3979 (collect_symbol_completion_matches_type): Likewise.
3980 * symtab.h (default_collect_symbol_completion_matches): Delete
3981 declaration.
3982
53fc67f8
AB
39832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3984
3985 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3986 (ada_language_data): Delete la_word_break_characters initializer.
3987 (ada_language::word_break_characters): New member function.
3988 * c-lang.c (c_language_data): Delete la_word_break_characters
3989 initializer.
3990 (cplus_language_data): Likewise.
3991 (asm_language_data): Likewise.
3992 (minimal_language_data): Likewise.
3993 * completer.c: Update global comment.
3994 (advance_to_expression_complete_word_point): Update call to
3995 word_break_characters.
3996 (complete_files_symbols): Likewise.
3997 (complete_line_internal_1): Likewise.
3998 (default_completer_handle_brkchars): Likewise.
3999 (skip_quoted_chars): Likewise.
4000 * d-lang.c (d_language_data): Delete la_word_break_characters
4001 initializer.
4002 * f-lang.c (f_word_break_characters): Delete.
4003 (f_language_data): Delete la_word_break_characters initializer.
4004 (f_language::word_break_characters): New member function.
4005 * go-lang.c (go_language_data): Delete la_word_break_characters
4006 initializer.
4007 * language.c (unknown_language_data): Likewise.
4008 (auto_language_data): Likewise.
4009 * language.h (default_word_break_characters): Move declaration to
4010 earlier in the file.
4011 (language_data): Delete la_word_break_characters field.
4012 (language_defn::word_break_characters): New member function.
4013 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4014 initializer.
4015 * objc-lang.c (objc_language_data): Likewise.
4016 * opencl-lang.c (opencl_language_data): Likewise.
4017 * p-lang.c (pascal_language_data): Likewise.
4018 * rust-lang.c (rust_language_data): Likewise.
4019
c9debfb9
AB
40202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4021
4022 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4023 (ada_language_data): Delete la_get_symbol_name_matcher
4024 initializer.
4025 (language_defn::get_symbol_name_matcher_inner): New member
4026 function.
4027 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4028 initializer.
4029 (cplus_language_data): Likewise.
4030 (cplus_language::get_symbol_name_matcher_inner): New member
4031 function.
4032 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4033 (minimal_language_data): Likewise.
4034 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4035 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4036 initializer.
4037 * dictionary.c (iter_match_first_hashed): Update call to
4038 get_symbol_name_matcher.
4039 (iter_match_next_hashed): Likewise.
4040 (iter_match_next_linear): Likewise.
4041 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4042 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4043 initializer.
4044 (f_language::get_symbol_name_matcher_inner): New member function.
4045 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4046 initializer.
4047 * language.c (default_symbol_name_matcher): Update header comment,
4048 make static.
4049 (language_defn::get_symbol_name_matcher): New definition.
4050 (language_defn::get_symbol_name_matcher_inner): Likewise.
4051 (get_symbol_name_matcher): Delete.
4052 (unknown_language_data): Delete la_get_symbol_name_matcher
4053 initializer.
4054 (auto_language_data): Likewise.
4055 * language.h (language_data): Delete la_get_symbol_name_matcher
4056 field.
4057 (language_defn::get_symbol_name_matcher): New member function.
4058 (language_defn::get_symbol_name_matcher_inner): Likewise.
4059 (default_symbol_name_matcher): Delete declaration.
4060 * linespec.c (find_methods): Update call to
4061 get_symbol_name_matcher.
4062 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4063 initializer.
4064 * minsyms.c (lookup_minimal_symbol): Update call to
4065 get_symbol_name_matcher.
4066 (iterate_over_minimal_symbols): Likewise.
4067 * objc-lang.c (objc_language_data): Delete
4068 la_get_symbol_name_matcher initializer.
4069 * opencl-lang.c (opencl_language_data): Likewise.
4070 * p-lang.c (pascal_language_data): Likewise.
4071 * psymtab.c (psymbol_name_matches): Update call to
4072 get_symbol_name_matcher.
4073 * rust-lang.c (rust_language_data): Delete
4074 la_get_symbol_name_matcher initializer.
4075 * symtab.c (symbol_matches_search_name): Update call to
4076 get_symbol_name_matcher.
4077 (compare_symbol_name): Likewise.
4078
9a49ad8c
AB
40792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4080
4081 * ada-lang.c (ada_language_data): Delete la_compute_program
4082 initializer.
4083 * c-lang.c (c_language_data): Likewise.
4084 (c_language::compute_program): New member function.
4085 (cplus_language_data): Delete la_compute_program initializer.
4086 (cplus_language::compute_program): New member function.
4087 (asm_language_data): Delete la_compute_program initializer.
4088 (minimal_language_data): Likewise.
4089 * c-lang.h (c_compute_program): Update comment.
4090 (cplus_compute_program): Likewise.
4091 * compile/compile-c-support.c (c_compute_program): Likewise.
4092 (cplus_compute_program): Likewise.
4093 * compile/compile.c (compile_to_object): Update call to
4094 la_compute_program.
4095 * d-lang.c (d_language_data): Delete la_compute_program
4096 initializer.
4097 * f-lang.c (f_language_data): Likewise.
4098 * go-lang.c (go_language_data): Likewise.
4099 * language.c (unknown_language_data): Likewise.
4100 (auto_language_data): Likewise.
4101 * language.h (language_data): Delete la_compute_program field.
4102 (language_defn::compute_program): New member function.
4103 * m2-lang.c (m2_language_data): Delete la_compute_program
4104 initializer.
4105 * objc-lang.c (objc_language_data): Likewise.
4106 * opencl-lang.c (opencl_language_data): Likewise.
4107 * p-lang.c (pascal_language_data): Likewise.
4108 * rust-lang.c (rust_language_data): Likewise.
4109
eff93b4d
AB
41102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4111
4112 * ada-lang.c (ada_language_data) Delete
4113 la_class_name_from_physname initializer.
4114 * c-lang.c (c_language_data): Likewise.
4115 (cplus_language_data): Likewise.
4116 (cplus_language::class_name_from_physname): New member function.
4117 (asm_language_data): Delete la_class_name_from_physname
4118 initializer.
4119 (minimal_language_data): Likewise.
4120 * d-lang.c (d_language_data): Likewise.
4121 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4122 method on language_defn class.
4123 (guess_full_die_structure_name): Likewise.
4124 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4125 initializer.
4126 * go-lang.c (go_language_data): Likewise.
4127 * language.c (language_class_name_from_physname): Delete.
4128 (unk_lang_class_name): Delete.
4129 (unknown_language_data): Delete la_class_name_from_physname
4130 initializer.
4131 (auto_language_data): Likewise.
4132 * language.h (language_data): Delete la_class_name_from_physname
4133 field.
4134 (language_defn::class_name_from_physname): New function.
4135 (language_class_name_from_physname): Delete declaration.
4136 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4137 initializer.
4138 * objc-lang.c (objc_language_data): Likewise.
4139 * opencl-lang.c (opencl_language_data): Likewise.
4140 * p-lang.c (pascal_language_data): Likewise.
4141 * rust-lang.c (rust_language_data): Likewise.
4142
de543742
TT
41432020-06-16 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-data.h (STATUS_NAME): New macro.
4146 * tui/tui-layout.c (tui_remove_some_windows)
4147 (initialize_known_windows, tui_register_window)
4148 (tui_layout_split::remove_windows, initialize_layouts)
4149 (tui_new_layout_command): Don't use hard-coded window names.
4150
a350efd4
TT
41512020-06-16 Tom Tromey <tom@tromey.com>
4152
4153 PR tui/25348:
4154 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4155 tui_initialize_readline. Only run once. Call rl_initialize.
4156 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4157 tui_initialize_readline.
4158 * tui/tui-io.c (tui_setup_io): Call
4159 tui_ensure_readline_initialized.
4160 * tui/tui-interp.c (tui_interp::init): Update.
4161
39ec0490
TT
41622020-06-16 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4165 Also preserve the status window.
4166
d2d1ea20
TT
41672020-06-16 Tom Tromey <tom@tromey.com>
4168
4169 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4170 where m_window==nullptr.
4171
66920317
TT
41722020-06-15 Tom Tromey <tromey@adacore.com>
4173
4174 * windows-nat.c (windows_nat::handle_output_debug_string):
4175 Update.
4176 (windows_nat::handle_ms_vc_exception): Update.
4177 * target.h (target_read_string): Change API.
4178 * target.c (target_read_string): Change API.
4179 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4180 Update.
4181 * solib-frv.c (frv_current_sos): Update.
4182 * solib-dsbt.c (dsbt_current_sos): Update.
4183 * solib-darwin.c (darwin_current_sos): Update.
4184 * linux-thread-db.c (inferior_has_bug): Update.
4185 * expprint.c (print_subexp_standard): Update.
4186 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4187 (ada_exception_message_1): Update.
4188
a5d871dd
TT
41892020-06-15 Tom Tromey <tromey@adacore.com>
4190
4191 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4192
670e35fa
TT
41932020-06-15 Tom Tromey <tromey@adacore.com>
4194
4195 * valprint.c (read_string): Update comment.
4196 * target.c (MIN): Remove.
4197 (target_read_string): Rewrite.
4198
f5272a3b
TT
41992020-06-15 Tom Tromey <tromey@adacore.com>
4200
4201 * corefile.c (read_memory_string): Remove.
4202 * ada-valprint.c (ada_value_print_ptr): Update.
4203 * ada-lang.h (ada_tag_name): Change return type.
4204 * ada-lang.c (type_from_tag): Update.
4205 (ada_tag_name_from_tsd): Change return type. Use
4206 target_read_string.
4207 (ada_tag_name): Likewise.
4208 * gdbcore.h (read_memory_string): Don't declare.
4209
2c074f49
HD
42102020-06-14 Hannes Domani <ssbssa@yahoo.de>
4211
4212 * symtab.c (rbreak_command): Ignore Windows drive colon.
4213
6a17d503
SM
42142020-06-12 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * NEWS: Mention removed GDBserver host support.
4217
453c733f
NC
42182020-06-12 Nelson Chu <nelson.chu@sifive.com>
4219
4220 * features/riscv/rebuild-csr-xml.sh: Updated.
4221
2b4e6a3f
TT
42222020-06-11 Tom Tromey <tom@tromey.com>
4223
4224 PR gdb/18318:
4225 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4226
4412332f
JG
42272020-06-09 Jonny Grant <jg@jguk.org>
42282020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * main.c (captured_main_1): Don't print new line after help.
4231 (print_gdb_help): add mailing list and IRC channel information
4232 to --help. Add new lines between items in the footer. Remove
4233 quotes around bug url.
4234
2f33032a
KS
42352020-06-11 Keith Seitz <keiths@redhat.com>
4236
4237 PR gdb/21356
4238 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4239 Resolve typedefs for type length calculations.
4240
7ab96794
TV
42412020-06-10 Tom de Vries <tdevries@suse.de>
4242
4243 PR ada/24713
4244 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4245 (write_psymbols): Enable .gdb_index for ada.
4246 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4247 ada.
4248
e5f3ece2
TV
42492020-06-10 Tom de Vries <tdevries@suse.de>
4250
4251 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4252 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4253 namei" instead of "const char *name" argument.
4254 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4255 dw2_symtab_iter_init.
4256
940da03e
SM
42572020-06-08 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4260 to use type::field and field::type instead.
4261
b6cdac4b
SM
42622020-06-08 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4265 to use field::type instead.
4266
5d14b6e5
SM
42672020-06-08 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * gdbtypes.h (struct field) <type, set_type>: New methods.
4270 Rename `type` field to...
4271 <m_type>: ... this. Change references throughout to use type or
4272 set_type methods.
4273 (FIELD_TYPE): Use field::type. Change call sites that modify
4274 the field's type to use field::set_type instead.
4275
3d967001
SM
42762020-06-08 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4279 to use type::index_type instead.
4280
262abc0d
SM
42812020-06-08 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4284 methods.
4285 (TYPE_INDEX_TYPE): Use type::index_type.
4286 * gdbtypes.c (create_array_type_with_stride): Likewise.
4287
82836c92
TT
42882020-06-07 Tom Tromey <tom@tromey.com>
4289
4290 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4291 parameter.
4292 (generic_value_print): Update.
4293
940dace9
AB
42942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 Revert commit 982a38f60b0.
4297 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4298
982a38f6
AB
42992020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4300
4301 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4302 avoid use after free.
4303
82f06518
TV
43042020-06-05 Tom de Vries <tdevries@suse.de>
4305
4306 * NEWS: Fix typos.
4307
f8c41851
SM
43082020-06-04 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4311 the per_bfd object.
4312 (dwarf2_read_debug_names): Likewise.
4313 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4314 object when re-using a per_bfd object with an index.
4315
f9b5d5ea
TV
43162020-06-03 Tom de Vries <tdevries@suse.de>
4317
4318 PR symtab/26046
4319 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4320 children for C++.
4321 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4322 DW_TAG_subprogram.
4323
f6eee2d0
AB
43242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4325
4326 * ada-lang.c (ada_language_data): Delete skip_trampoline
4327 initializer.
4328 * c-lang.c (c_language_data): Likewise.
4329 (cplus_language_data): Likewise.
4330 (cplus_language::skip_trampoline): New member function.
4331 (asm_language_data): Delete skip_trampoline initializer.
4332 (minimal_language_data): Likewise.
4333 * d-lang.c (d_language_data): Likewise.
4334 * f-lang.c (f_language_data): Likewise.
4335 * go-lang.c (go_language_data): Likewise.
4336 * language.c (unk_lang_trampoline): Delete function.
4337 (skip_language_trampoline): Update.
4338 (unknown_language_data): Delete skip_trampoline initializer.
4339 (auto_language_data): Likewise.
4340 * language.h (language_data): Delete skip_trampoline field.
4341 (language_defn::skip_trampoline): New function.
4342 * m2-lang.c (m2_language_data): Delete skip_trampoline
4343 initializer.
4344 * objc-lang.c (objc_skip_trampoline): Delete function, move
4345 implementation to objc_language::skip_trampoline.
4346 (objc_language_data): Delete skip_trampoline initializer.
4347 (objc_language::skip_trampoline): New member function with
4348 implementation from objc_skip_trampoline.
4349 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4350 initializer.
4351 * p-lang.c (pascal_language_data): Likewise.
4352 * rust-lang.c (rust_language_data): Likewise.
4353
0a50df5d
AB
43542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4355
4356 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4357 (ada_language::demangle): New member function.
4358 * c-lang.c (c_language_data): Delete la_demangle initializer.
4359 (cplus_language_data): Delete la_demangle initializer.
4360 (cplus_language::demangle): New member function.
4361 (asm_language_data): Delete la_demangle initializer.
4362 (minimal_language_data): Delete la_demangle initializer.
4363 * d-lang.c (d_language_data): Delete la_demangle initializer.
4364 (d_language::demangle): New member function.
4365 * f-lang.c (f_language_data): Delete la_demangle initializer.
4366 (f_language::demangle): New member function.
4367 * go-lang.c (go_language_data): Delete la_demangle initializer.
4368 (go_language::demangle): New member function.
4369 * language.c (language_demangle): Update.
4370 (unk_lang_demangle): Delete.
4371 (unknown_language_data): Delete la_demangle initializer.
4372 (unknown_language::demangle): New member function.
4373 (auto_language_data): Delete la_demangle initializer.
4374 (auto_language::demangle): New member function.
4375 * language.h (language_data): Delete la_demangle field.
4376 (language_defn::demangle): New function.
4377 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4378 * objc-lang.c (objc_language_data): Delete la_demangle
4379 initializer.
4380 (objc_language::demangle): New member function.
4381 * opencl-lang.c (opencl_language_data): Delete la_demangle
4382 initializer.
4383 * p-lang.c (pascal_language_data): Likewise.
4384 * rust-lang.c (rust_language_data): Likewise.
4385 (rust_language::demangle): New member function.
4386
fbfb0a46
AB
43872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4388
4389 * ada-lang.c (ada_language_data): Delete la_print_type
4390 initializer.
4391 (ada_language::print_type): New member function.
4392 * c-lang.c (c_language_data): Delete la_print_type initializer.
4393 (c_language::print_type): New member function.
4394 (cplus_language_data): Delete la_print_type initializer.
4395 (cplus_language::print_type): New member function.
4396 (asm_language_data): Delete la_print_type initializer.
4397 (asm_language::print_type): New member function.
4398 (minimal_language_data): Delete la_print_type initializer.
4399 (minimal_language::print_type): New member function.
4400 * d-lang.c (d_language_data): Delete la_print_type initializer.
4401 (d_language::print_type): New member function.
4402 * f-lang.c (f_language_data): Delete la_print_type initializer.
4403 (f_language::print_type): New member function.
4404 * go-lang.c (go_language_data): Delete la_print_type initializer.
4405 (go_language::print_type): New member function.
4406 * language.c (unk_lang_print_type): Delete.
4407 (unknown_language_data): Delete la_print_type initializer.
4408 (unknown_language::print_type): New member function.
4409 (auto_language_data): Delete la_print_type initializer.
4410 (auto_language::print_type): New member function.
4411 * language.h (language_data): Delete la_print_type field.
4412 (language_defn::print_type): New function.
4413 (LA_PRINT_TYPE): Update.
4414 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4415 (m2_language::print_type): New member function.
4416 * objc-lang.c (objc_language_data): Delete la_print_type
4417 initializer.
4418 (objc_language::print_type): New member function.
4419 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4420 to opencl_language::print_type.
4421 (opencl_language_data): Delete la_print_type initializer.
4422 (opencl_language::print_type): New member function, implementation
4423 from opencl_print_type.
4424 * p-lang.c (pascal_language_data): Delete la_print_type
4425 initializer.
4426 (pascal_language::print_type): New member function.
4427 * rust-lang.c (rust_print_type): Delete, implementation moved to
4428 rust_language::print_type.
4429 (rust_language_data): Delete la_print_type initializer.
4430 (rust_language::print_type): New member function, implementation
4431 from rust_print_type.
4432
6f827019
AB
44332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4436 implementation moves to...
4437 (ada_language::sniff_from_mangled_name): ...here. Update return
4438 type.
4439 (ada_language_data): Delete la_sniff_from_mangled_name
4440 initializer.
4441 * c-lang.c (c_language_data): Likewise.
4442 (cplus_language_data): Likewise.
4443 (cplus_language::sniff_from_mangled_name): New member function,
4444 implementation taken from gdb_sniff_from_mangled_name.
4445 (asm_language_data): Delete la_sniff_from_mangled_name
4446 initializer.
4447 (minimal_language_data): Likewise.
4448 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4449 implementation moves to cplus_language::sniff_from_mangled_name.
4450 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4451 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4452 moves to...
4453 (d_language::sniff_from_mangled_name): ...here.
4454 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4455 * f-lang.c (f_language_data): Likewise.
4456 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4457 moves to...
4458 (go_language::sniff_from_mangled_name): ...here.
4459 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4460 * language.c (language_sniff_from_mangled_name): Delete.
4461 (unknown_language_data): Delete la_sniff_from_mangled_name
4462 initializer.
4463 (auto_language_data): Likewise.
4464 * language.h (language_data): Delete la_sniff_from_mangled_name
4465 field.
4466 (language_defn::sniff_from_mangled_name): New function.
4467 (language_sniff_from_mangled_name): Delete declaration.
4468 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4469 field.
4470 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4471 implementation moves to...
4472 (objc_language::sniff_from_mangled_name): ...here.
4473 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4474 * opencl-lang.c (opencl_language_data): Likewise.
4475 * p-lang.c (pascal_language_data): Likewise.
4476 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4477 implementation moves to...
4478 (rust_language::sniff_from_mangled_name): ...here.
4479 (rust_language_data): Delete la_sniff_from_mangled_name
4480 initializer.
4481 * symtab.c (symbol_find_demangled_name): Call
4482 sniff_from_mangled_name member function.
4483
fb8006fd
AB
44842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4485
4486 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4487 initializer.
4488 * c-lang.c (c_language_data): Likewise.
4489 (cplus_language_data): Likewise.
4490 (cplus_language::search_name_hash): New member function.
4491 (asm_language_data): Delete la_search_name_hash initializer.
4492 (minimal_language_data): Likewise.
4493 * d-lang.c (d_language_data): Likewise.
4494 * dictionary.c (default_search_name_hash): Rename to...
4495 (language_defn::search_name_hash): ...this.
4496 * f-lang.c (f_language_data): Likewise.
4497 (f_language::search_name_hash): New member function.
4498 * go-lang.c (go_language_data): Delete la_search_name_hash
4499 initializer.
4500 * language.c (unknown_language_data): Likewise.
4501 (auto_language_data): Likewise.
4502 * language.h (struct language_data): Delete la_search_name_hash
4503 field.
4504 (language_defn::search_name_hash): Declare new member function.
4505 (default_search_name_hash): Delete declaration.
4506 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4507 initializer.
4508 * objc-lang.c (objc_language_data): Likewise.
4509 * opencl-lang.c (opencl_language_data): Likewise.
4510 * p-lang.c (pascal_language_data): Likewise.
4511 * rust-lang.c (rust_language_data): Likewise.
4512 * symtab.c (search_name_hash): Update call.
4513
8e25bafe
AB
45142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4515
4516 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4517 initializer.
4518 * c-lang.c (class compile_instance): Declare.
4519 (c_language_data): Delete la_get_compile_instance initializer.
4520 (c_language::get_compile_instance): New member function.
4521 (cplus_language_data): Delete la_get_compile_instance initializer.
4522 (cplus_language::get_compile_instance): New member function.
4523 (asm_language_data): Delete la_get_compile_instance initializer.
4524 (minimal_language_data): Likewise.
4525 * c-lang.h (c_get_compile_context): Update comment.
4526 (cplus_get_compile_context): Update comment.
4527 * compile/compile.c (compile_to_object): Update calls, don't rely
4528 on function pointer being NULL.
4529 * d-lang.c (d_language_data): Delete la_get_compile_instance
4530 initializer.
4531 * f-lang.c (f_language_data): Likewise.
4532 * go-lang.c (go_language_data): Likewise.
4533 * language.c (unknown_language_data): Likewise.
4534 (auto_language_data): Likewise.
4535 * language.h (language_data): Delete la_get_compile_instance field.
4536 (language_defn::get_compile_instance): New member function.
4537 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4538 initializer.
4539 * objc-lang.c (objc_language_data): Likewise.
4540 * opencl-lang.c (opencl_language_data): Likewise.
4541 * p-lang.c (pascal_language_data): Likewise.
4542 * rust-lang.c (rust_language_data): Likewise.
4543
4009ee92
AB
45442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * ada-lang.c (ada_add_all_symbols): Update comment.
4547 (ada_iterate_over_symbols): Delete, move implementation to...
4548 (ada_language::iterate_over_symbols): ...here, a new member
4549 function, rewrite to use range based for loop.
4550 (ada_language_data): Delete la_iterate_over_symbols initializer.
4551 * c-lang.c (c_language_data): Likewise.
4552 (cplus_language_data): Likewise.
4553 (asm_language_data): Likewise.
4554 (minimal_language_data): Likewise.
4555 * d-lang.c (d_language_data): Likewise.
4556 * f-lang.c (f_language_data): Likewise.
4557 * go-lang.c (go_language_data): Likewise.
4558 * language.c (unknown_language_data): Likewise.
4559 (auto_language_data): Likewise.
4560 * language.h (language_data): Delete la_iterate_over_symbols field.
4561 (language_defn::iterate_over_symbols): New member function.
4562 (LA_ITERATE_OVER_SYMBOLS): Update.
4563 * linespec.c (iterate_over_all_matching_symtabs): Update.
4564 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4565 initializer.
4566 * objc-lang.c (objc_language_data): Likewise.
4567 * opencl-lang.c (opencl_language_data): Likewise.
4568 * p-lang.c (pascal_language_data): Likewise.
4569 * rust-lang.c (rust_language_data): Likewise.
4570
54f4ca46
AB
45712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * ada-lang.c (ada_language_data): Delete
4574 la_lookup_transparent_type initializer.
4575 * c-lang.c (c_language_data): Likewise.
4576 (cplus_language_data): Likewise.
4577 (cplus_language::lookup_transparent_type): New member function.
4578 (asm_language_data): Delete la_lookup_transparent_type
4579 initializer.
4580 (minimal_language_data): Likewise.
4581 * d-lang.c (d_language_data): Likewise.
4582 * f-lang.c (f_language_data): Likewise.
4583 * go-lang.c (go_language_data): Likewise.
4584 * language.c (unknown_language_data): Likewise.
4585 (auto_language_data): Likewise.
4586 * language.h (struct language_data): Delete
4587 la_lookup_transparent_type field.
4588 (language_defn::lookup_transparent_type): New member function.
4589 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4590 initializer.
4591 * objc-lang.c (objc_language_data): Likewise.
4592 * opencl-lang.c (opencl_language_data): Likewise.
4593 * p-lang.c (pascal_language_data): Likewise.
4594 * rust-lang.c (rust_language_data): Likewise.
4595 * symtab.c (symbol_matches_domain): Update call.
4596
1fb314aa
AB
45972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * ada-lang.c (ada_language_arch_info): Delete function, move
4600 implementation to...
4601 (ada_language::language_arch_info): ...here, a new member
4602 function.
4603 (ada_language_data): Delete la_language_arch_info.
4604 * c-lang.c (c_language_data): Likewise.
4605 (c_language::language_arch_info): New member function.
4606 (cplus_language_arch_info): Delete function, move
4607 implementation to...
4608 (cplus_language::language_arch_info): ...here, a new member
4609 function.
4610 (cplus_language_data): Delete la_language_arch_info.
4611 (asm_language_data): Likewise.
4612 (asm_language::language_arch_info): New member function.
4613 (minimal_language_data): Delete la_language_arch_info.
4614 (minimal_language::language_arch_info): New member function.
4615 * d-lang.c (d_language_arch_info): Delete function, move
4616 implementation to...
4617 (d_language::language_arch_info): ...here, a new member
4618 function.
4619 (d_language_data): Delete la_language_arch_info.
4620 * f-lang.c (f_language_arch_info): Delete function, move
4621 implementation to...
4622 (f_language::language_arch_info): ...here, a new member
4623 function.
4624 (f_language_data): Delete la_language_arch_info.
4625 * go-lang.c (go_language_arch_info): Delete function, move
4626 implementation to...
4627 (go_language::language_arch_info): ...here, a new member
4628 function.
4629 (go_language_data): Delete la_language_arch_info.
4630 * language.c (unknown_language_data): Likewise.
4631 (unknown_language::language_arch_info): New member function.
4632 (auto_language_data): Delete la_language_arch_info.
4633 (auto_language::language_arch_info): New member function.
4634 (language_gdbarch_post_init): Update call to
4635 la_language_arch_info.
4636 * language.h (language_data): Delete la_language_arch_info
4637 function pointer.
4638 (language_defn::language_arch_info): New function.
4639 * m2-lang.c (m2_language_arch_info): Delete function, move
4640 implementation to...
4641 (m2_language::language_arch_info): ...here, a new member
4642 function.
4643 (m2_language_data): Delete la_language_arch_info.
4644 * objc-lang.c (objc_language_arch_info): Delete function, move
4645 implementation to...
4646 (objc_language::language_arch_info): ...here, a new member
4647 function.
4648 (objc_language_data): Delete la_language_arch_info.
4649 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4650 implementation to...
4651 (opencl_language::language_arch_info): ...here, a new member
4652 function.
4653 (opencl_language_data): Delete la_language_arch_info.
4654 * p-lang.c (pascal_language_arch_info): Delete function, move
4655 implementation to...
4656 (pascal_language::language_arch_info): ...here, a new member
4657 function.
4658 (pascal_language_data): Delete la_language_arch_info.
4659 * rust-lang.c (rust_language_arch_info): Delete function, move
4660 implementation to...
4661 (rust_language::language_arch_info): ...here, a new member
4662 function.
4663 (rust_language_data): Delete la_language_arch_info.
4664
48448202
AB
46652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4668 initializer.
4669 * c-lang.c (c_language_data): Likewise.
4670 (cplus_language_data): Likewise.
4671 (cplus_language::pass_by_reference_info): New method.
4672 (asm_language_data): Delete la_pass_by_reference initializer.
4673 (minimal_language_data): Likewise.
4674 * cp-abi.c (cp_pass_by_reference): Remove use of
4675 default_pass_by_reference.
4676 * d-lang.c (d_language_data): Likewise.
4677 * f-lang.c (f_language_data): Likewise.
4678 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4679 default_pass_by_reference.
4680 * go-lang.c (go_language_data): Likewise.
4681 * language.c (language_pass_by_reference): Update.
4682 (default_pass_by_reference): Delete.
4683 (unknown_language_data): Delete la_pass_by_reference
4684 initializer.
4685 (auto_language_data): Likewise.
4686 * language.h (struct language_data): Delete la_pass_by_reference
4687 field.
4688 (language_defn::pass_by_reference_info): New member function.
4689 (default_pass_by_reference): Delete declaration.
4690 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4691 initializer.
4692 * objc-lang.c (objc_language_data): Likewise.
4693 * opencl-lang.c (opencl_language_data): Likewise.
4694 * p-lang.c (pascal_language_data): Likewise.
4695 * rust-lang.c (rust_language_data): Likewise.
4696
15e5fd35
AB
46972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * ada-lang.c (ada_read_var_value): Delete function, move
4700 implementation to...
4701 (ada_language::read_var_value): ...here.
4702 (ada_language_data): Delete la_read_var_value initializer.
4703 * c-lang.c (c_language_data): Likewise.
4704 (cplus_language_data): Likewise.
4705 (minimal_language_data): Likewise.
4706 * d-lang.c (d_language_data): Likewise.
4707 * f-lang.c (f_language_data): Likewise.
4708 * findvar.c (default_read_var_value): Rename to...
4709 (language_defn::read_var_value): ...this.
4710 * findvar.c (read_var_value): Update header comment, and change to
4711 call member function instead of function pointer.
4712 * go-lang.c (go_language_data): Likewise.
4713 * language.c (unknown_language_data): Delete la_read_var_value
4714 initializer.
4715 (auto_language_data): Likewise.
4716 * language.h (struct language_data): Delete la_read_var_value
4717 field.
4718 (language_defn::read_var_value): New member function.
4719 (default_read_var_value): Delete declaration.
4720 * m2-lang.c (m2_language_data): Delete la_read_var_value
4721 initializer.
4722 * objc-lang.c (objc_language_data): Likewise.
4723 * opencl-lang.c (opencl_language_data): Likewise.
4724 * p-lang.c (pascal_language_data): Likewise.
4725 * rust-lang.c (rust_language_data): Likewise.
4726 * value.h (default_read_var_value): Delete declaration.
4727
5bd40f2a
AB
47282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 * ada-lang.c (ada_print_array_index): Delete function, move
4731 implementation to...
4732 (ada_language::print_array_index): ...here.
4733 (ada_language_data): Delete la_print_array_index initializer.
4734 * c-lang.c (c_language_data): Likewise.
4735 (cplus_language_data): Likewise.
4736 (minimal_language_data): Likewise.
4737 * d-lang.c (d_language_data): Likewise.
4738 * f-lang.c (f_language_data): Likewise.
4739 * go-lang.c (go_language_data): Likewise.
4740 * language.c (default_print_array_index): Delete function, move
4741 implementation to...
4742 (language_defn::print_array_index): ...here.
4743 (unknown_language_data): Delete la_print_array_index initializer.
4744 (auto_language_data): Likewise.
4745 * language.h (struct language_data): Delete la_print_array_index
4746 field.
4747 (language_defn::print_array_index): New member function.
4748 (LA_PRINT_ARRAY_INDEX): Update.
4749 (default_print_array_index): Delete declaration.
4750 * m2-lang.c (m2_language_data): Delete la_print_array_index
4751 initializer.
4752 * objc-lang.c (objc_language_data): Likewise.
4753 * opencl-lang.c (opencl_language_data): Likewise.
4754 * p-lang.c (pascal_language_data): Likewise.
4755 * rust-lang.c (rust_language_data): Likewise.
4756
0874fd07
AB
47572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * gdb/ada-lang.c (ada_language_defn): Convert to...
4760 (ada_language_data): ...this.
4761 (class ada_language): New class.
4762 (ada_language_defn): New static global.
4763 * gdb/c-lang.c (c_language_defn): Convert to...
4764 (c_language_data): ...this.
4765 (class c_language): New class.
4766 (c_language_defn): New static global.
4767 (cplus_language_defn): Convert to...
4768 (cplus_language_data): ...this.
4769 (class cplus_language): New class.
4770 (cplus_language_defn): New static global.
4771 (asm_language_defn): Convert to...
4772 (asm_language_data): ...this.
4773 (class asm_language): New class.
4774 (asm_language_defn): New static global.
4775 (minimal_language_defn): Convert to...
4776 (minimal_language_data): ...this.
4777 (class minimal_language): New class.
4778 (minimal_language_defn): New static global.
4779 * gdb/d-lang.c (d_language_defn): Convert to...
4780 (d_language_data): ...this.
4781 (class d_language): New class.
4782 (d_language_defn): New static global.
4783 * gdb/f-lang.c (f_language_defn): Convert to...
4784 (f_language_data): ...this.
4785 (class f_language): New class.
4786 (f_language_defn): New static global.
4787 * gdb/go-lang.c (go_language_defn): Convert to...
4788 (go_language_data): ...this.
4789 (class go_language): New class.
4790 (go_language_defn): New static global.
4791 * gdb/language.c (unknown_language_defn): Remove declaration.
4792 (current_language): Initialize to nullptr, real initialization is
4793 moved to _initialize_language.
4794 (languages): Delete global.
4795 (language_defn::languages): Define.
4796 (set_language_command): Use language_defn::languages.
4797 (set_language): Likewise.
4798 (range_error): Likewise.
4799 (language_enum): Likewise.
4800 (language_def): Likewise.
4801 (add_set_language_command): Use language_def::languages for the
4802 language list, and language_def to lookup language pointers.
4803 (skip_language_trampoline): Use language_defn::languages.
4804 (unknown_language_defn): Convert to...
4805 (unknown_language_data): ...this.
4806 (class unknown_language): New class.
4807 (unknown_language_defn): New static global.
4808 (auto_language_defn): Convert to...
4809 (auto_language_data): ...this.
4810 (class auto_language): New class.
4811 (auto_language_defn): New static global.
4812 (language_gdbarch_post_init): Use language_defn::languages.
4813 (_initialize_language): Initialize current_language.
4814 * gdb/language.h (struct language_defn): Rename to...
4815 (struct language_data): ...this.
4816 (struct language_defn): New.
4817 (auto_language_defn): Delete.
4818 (unknown_language_defn): Delete.
4819 (minimal_language_defn): Delete.
4820 (ada_language_defn): Delete.
4821 (asm_language_defn): Delete.
4822 (c_language_defn): Delete.
4823 (cplus_language_defn): Delete.
4824 (d_language_defn): Delete.
4825 (f_language_defn): Delete.
4826 (go_language_defn): Delete.
4827 (m2_language_defn): Delete.
4828 (objc_language_defn): Delete.
4829 (opencl_language_defn): Delete.
4830 (pascal_language_defn): Delete.
4831 (rust_language_defn): Delete.
4832 * gdb/m2-lang.c (m2_language_defn): Convert to...
4833 (m2_language_data): ...this.
4834 (class m2_language): New class.
4835 (m2_language_defn): New static global.
4836 * gdb/objc-lang.c (objc_language_defn): Convert to...
4837 (objc_language_data): ...this.
4838 (class objc_language): New class.
4839 (objc_language_defn): New static global.
4840 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4841 (opencl_language_data): ...this.
4842 (class opencl_language): New class.
4843 (opencl_language_defn): New static global.
4844 * gdb/p-lang.c (pascal_language_defn): Convert to...
4845 (pascal_language_data): ...this.
4846 (class pascal_language): New class.
4847 (pascal_language_defn): New static global.
4848 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4849 language pointer, update comment format.
4850 * gdb/rust-lang.c (rust_language_defn): Convert to...
4851 (rust_language_data): ...this.
4852 (class rust_language): New class.
4853 (rust_language_defn): New static global.
4854
1313c56e
AB
48552020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4856
4857 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4858 member variable.
4859 <m_stmt_at_address>: New member variable.
4860 (lnp_state_machine::record_line): Don't record some lines, update
4861 tracking of is_stmt at the same address.
4862 (lnp_state_machine::lnp_state_machine): Initialise new member
4863 variables.
4864
b7ed9f3d
ST
48652020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4866
4867 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4868 "-include gnu-nat-mig.h".
4869 * gnu-nat-mig.h: New file.
4870 * gnu-nat.c: Include "gnu-nat-mig.h".
4871 (exc_server, msg_reply_server, notify_server,
4872 process_reply_server): Remove declarations.
4873
14a8ad62
ST
48742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4875
4876 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4877 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4878 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4879 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4880 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4881 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4882 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4883 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4884 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4885 to gnu_nat_target class.
4886 * gnu-nat.c: Likewise.
4887 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4888 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4889 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4890 object.
4891 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4892 instead of `gnu_target'.
4893
0af5e106
ST
48942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4895
4896 * i386-gnu-tdep.c: Include "gdbcore.h"
4897 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4898 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4899 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4900 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4901 i386_gnu_sigcontext_addr): New functions
4902 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4903 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4904 tdep.
4905
078f2fc9
ST
49062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4907
4908 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4909 before fork_inferior call. Avoid calling it if target_is_pushed returns
4910 true.
4911
53dff92c
ST
49122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4913
4914 * gnu-nat.h (gnu_target): New variable declaration.
4915 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4916 gnu_target.
4917 * gnu-nat.c (gnu_target): New variable.
4918 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4919 add_thread_silent, and add_thread calls.
4920 (gnu_nat_target::create_inferior): Pass gnu_target to
4921 add_thread_silent, thread_change_ptid call.
4922 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4923 call.
4924
5a8b8627
ST
49252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4926
4927 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4928 (gnu_nat_target::find_memory_regions): Remove unused
4929 `old_address' variable.
4930
366f550a
ST
49312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4932
4933 * gnu-nat.c: Include "gdbarch.h".
4934
f14871bf
ST
49352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4936
4937 * reply_mig_hack.awk (Error return): Cast function through
4938 void *, to bypass compiler function call check.
4939
c6887cfb
ST
49402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4941
4942 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4943 $(srcdir)/reply_mig_hack.awk.
4944
6930bffe
ST
49452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4946
4947 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4948
112c22ed
JG
49492020-05-30 Jonny Grant <jg@jguk.org>
4950
4951 * configure.ac (ACX_BUGURL): change bug URL to https.
4952
f68f85b5
PA
49532020-05-30 Pedro Alves <palves@redhat.com>
4954
4955 * cp-support.c (replace_typedefs_template): New.
4956 (replace_typedefs_qualified_name): Handle
4957 DEMANGLE_COMPONENT_TEMPLATE.
4958
976ca316
SM
49592020-05-29 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4962 dwarf2/index-cache.h, dwarf2/index-write.c,
4963 dwarf2/index-write.h, dwarf2/line-header.c,
4964 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4965 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4966 variables and fields from `dwarf2_per_objfile` to just
4967 `per_objfile` throughout.
4968
989ade05
SM
49692020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4970
4971 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4972 <push_dwarf_reg_entry_value>: Add comment.
4973
c47bae85
KB
49742020-05-28 Kevin Buettner <kevinb@redhat.com>
4975 Keith Seitz <keiths@redhat.com>
4976
4977 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4978 instead of PyEval_ReleaseLock.
4979 (class gdbpy_gil): Move to earlier in file.
4980 (finalize_python): Set gdb_python_initialized.
4981 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4982 when not initialized.
4983
44486dcf
SM
49842020-05-28 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4987 <push_dwarf_reg_entry_value>: Remove assert. Override
4988 per_objfile with caller_per_objfile.
4989
f030440d
TV
49902020-05-28 Tom de Vries <tdevries@suse.de>
4991
4992 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4993 PR gold/15646 workaround to symbol kind "type".
4994
f0fbb768
TT
49952020-05-27 Tom Tromey <tromey@adacore.com>
4996
4997 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4998
af0b2a3e
TT
49992020-05-27 Tom Tromey <tromey@adacore.com>
5000
5001 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5002 Use htab_find_with_hash.
5003 <add_abbrev>: Remove "abbrev_number" parameter.
5004 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5005 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5006 (hash_abbrev): Add comment.
5007 (abbrev_table::lookup_abbrev): Move to header file.
5008 (abbrev_table::read): Update.
5009
7d00ffec
TT
50102020-05-27 Tom Tromey <tromey@adacore.com>
5011
5012 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5013 method.
5014 <canonical_name>: New member.
5015 <raw_name>: Rename from "name".
5016 (partial_die_info): Initialize canonical_name.
5017 (scan_partial_symbols): Check raw_name.
5018 (partial_die_parent_scope, partial_die_full_name)
5019 (add_partial_symbol, add_partial_subprogram)
5020 (add_partial_enumeration, load_partial_dies): Use "name" method.
5021 (partial_die_info::name): New method.
5022 (partial_die_info::read, guess_partial_die_structure_name)
5023 (partial_die_info::fixup): Update.
5024
697bba18
TT
50252020-05-27 Tom Tromey <tromey@adacore.com>
5026
5027 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5028 <get_ref_die_offset>: Inline.
5029 <get_ref_die_offset_complaint>: New method.
5030 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5031 (attribute::get_ref_die_offset_complaint): Rename from
5032 get_ref_die_offset. Just issue complaint.
5033
c17ace43
HD
50342020-05-27 Hannes Domani <ssbssa@yahoo.de>
5035
5036 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5037
96445f0b
HD
50382020-05-27 Hannes Domani <ssbssa@yahoo.de>
5039
5040 * exec.c (exec_file_attach): Use errno value of first openp failure.
5041
ac637ec3
HD
50422020-05-27 Hannes Domani <ssbssa@yahoo.de>
5043
5044 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5045 Don't close thread handle.
5046
17ee85fc
TT
50472020-05-27 Tom Tromey <tom@tromey.com>
5048 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5051 shared_ptr.
5052 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5053 member.
5054 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5055 dwarf2_per_bfd_objfile_data_key>: New globals.
5056 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5057 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5058 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5059 shared.
5060 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5061 short-circuit when sharing.
5062 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5063 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5064
39b16f87
SM
50652020-05-27 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5068 to...
5069 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5070 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5071
fcf23d5b
SM
50722020-05-27 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5075 build_name_components, find_name_components_bounds>:
5076 Add per_objfile parameter.
5077 (struct mapped_index) <symbol_name_at>: Likewise.
5078 (struct mapped_debug_names): Remove constructor.
5079 <dwarf2_per_objfile>: Remove field.
5080 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5081 (mapped_index_base::find_name_components_bounds,
5082 mapped_index_base::build_name_components,
5083 dw2_expand_symtabs_matching_symbol): Likewise.
5084 (class mock_mapped_index) <symbol_name_at>: Likewise.
5085 (check_match): Likewise.
5086 (check_find_bounds_finds): Likewise.
5087 (test_mapped_index_find_name_component_bounds): Update.
5088 (CHECK_MATCH): Update.
5089 (dw2_expand_symtabs_matching): Update.
5090 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5091 per_objfile parameter.
5092 <find_vec_in_debug_names>: Likewise.
5093 <m_per_objfile>: New field.
5094 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5095 parameter.
5096 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5097 (dw2_debug_names_iterator::next): Update.
5098 (dw2_debug_names_lookup_symbol): Update.
5099 (dw2_debug_names_expand_symtabs_for_function): Update.
5100 (dw2_debug_names_map_matching_symbols): Update.
5101 (dw2_debug_names_expand_symtabs_matching): Update.
5102 (dwarf2_read_debug_names): Update.
5103
7188ed02
SM
51042020-05-27 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5107 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5108 move to dwarf2_per_objfile.
5109 <read_in_chain>: Remove.
5110 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5111 remove_all_cus, age_comp_units>: New methods.
5112 <m_dwarf2_cus>: New member.
5113 (struct dwarf2_per_cu_data) <cu>: Remove.
5114 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5115 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5116 moved to methods of dwarf2_per_objfile.
5117 (dwarf2_clear_marks): Remove.
5118 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5119 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5120 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5121 (dwarf2_per_objfile::remove_all_cus): New.
5122 (class free_cached_comp_units) <~free_cached_comp_units>:
5123 Update.
5124 (load_cu): Update.
5125 (dw2_do_instantiate_symtab): Adjust.
5126 (fill_in_sig_entry_from_dwo_entry): Adjust.
5127 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5128 (cutu_reader::cutu_reader): Likewise.
5129 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5130 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5131 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5132 and dwarf2_per_objfile::age_comp_units.
5133 (load_partial_comp_unit): Update.
5134 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5135 (process_queue): Likewise.
5136 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5137 backlink.
5138 (dwarf2_read_addr_index): Likewise.
5139 (follow_die_offset): Likewise.
5140 (dwarf2_fetch_die_loc_sect_off): Likewise.
5141 (dwarf2_fetch_constant_bytes): Likewise.
5142 (dwarf2_fetch_die_type_sect_off): Likewise.
5143 (follow_die_sig_1): Likewise.
5144 (load_full_type_unit): Likewise.
5145 (read_signatured_type): Likewise.
5146 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5147 (dwarf2_cu::~dwarf2_cu): Remove.
5148 (dwarf2_per_objfile::get_cu): New.
5149 (dwarf2_per_objfile::set_cu): New.
5150 (age_cached_comp_units): Rename to...
5151 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5152 to std::unordered_map.
5153 (free_one_cached_comp_unit): Rename to...
5154 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5155 to std::unordered_map.
5156 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5157 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5158 a dwarf2_per_objfile in data.
5159 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5160 (dwarf2_clear_marks): Remove.
5161
2e671100
SM
51622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5165 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5166 (init_tu_and_read_dwo_dies): Likewise.
5167 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5168 (cutu_reader::cutu_reader): Likewise.
5169 (load_partial_comp_unit): Likewise.
5170 (process_psymtab_comp_unit): Update.
5171 (build_type_psymtabs_1): Update.
5172 (process_skeletonless_type_unit): Update.
5173 (load_full_comp_unit): Update.
5174 (find_partial_die): Update.
5175 (dwarf2_read_addr_index): Update.
5176 (read_signatured_type): Update.
5177
2e6a9f79
SM
51782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5179
5180 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5181 m_header_read_in>: New fields.
5182 <get_header>: New method.
5183 * dwarf2/read.c (per_cu_header_read_in): Remove.
5184 (dwarf2_per_cu_data::get_header): New.
5185 (dwarf2_per_cu_data::addr_size): Update.
5186 (dwarf2_per_cu_data::offset_size): Update.
5187 (dwarf2_per_cu_data::ref_addr_size): Update.
5188
1b555f17
SM
51892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5192 (dw2_do_instantiate_symtab): Update.
5193 (queue_and_load_all_dwo_tus): Change parameter from
5194 dwarf2_per_cu_data to dwarf2_cu.
5195 (dwarf2_fetch_die_loc_sect_off): Update.
5196 (dwarf2_fetch_constant_bytes): Update.
5197 (dwarf2_fetch_die_type_sect_off): Update.
5198
8fc0b21d
SM
51992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5200
5201 * dwarf2/read.c (process_full_comp_unit,
5202 process_full_type_unit): Remove per_cu, per_objfile paramters.
5203 Add dwarf2_cu parameter.
5204 (process_queue): Update.
5205
168c9250
SM
52062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5207
5208 * dwarf2/read.c (create_cu_from_index_list): Replace
5209 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5210 (create_cus_from_index_list): Likewise.
5211 (create_cus_from_index): Likewise.
5212 (create_signatured_type_table_from_index): Likewise.
5213 (create_cus_from_debug_names_list): Likewise.
5214 (create_cus_from_debug_names): Likewise.
5215 (dwarf2_read_gdb_index): Update.
5216 (dwarf2_read_debug_names): Update.
5217
e286671b
TT
52182020-05-27 Tom Tromey <tom@tromey.com>
5219 Simon Marchi <simon.marchi@efficios.com>
5220
5221 * dwarf2/read.h (struct dwarf2_per_objfile)
5222 <get_type_for_signatured_type, set_type_for_signatured_type>:
5223 New methods.
5224 <m_type_map>: New member.
5225 (struct signatured_type) <type>: Remove.
5226 * dwarf2/read.c
5227 (dwarf2_per_objfile::get_type_for_signatured_type,
5228 dwarf2_per_objfile::set_type_for_signatured_type): New.
5229 (get_signatured_type): Use new methods.
5230
8adb8487
TT
52312020-05-27 Tom Tromey <tom@tromey.com>
5232 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5235 (struct dwarf2_per_objfile) <type_units>: New member.
5236 <get_type_unit_group_unshareable>: New method.
5237 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5238 num_symtabs, symtabs>: Remove; move to
5239 type_unit_group_unshareable.
5240 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5241 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5242 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5243
127bbf4b
SM
52442020-05-27 Simon Marchi <simon.marchi@efficios.com>
5245
5246 * dwarf2/read.h (struct dwarf2_per_cu_data):
5247 <dwarf2_per_objfile>: Remove.
5248 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5249 dwarf2_per_objfile.
5250 (create_signatured_type_table_from_index): Likewise.
5251 (create_signatured_type_table_from_debug_names): Likewise.
5252 (create_debug_type_hash_table): Likewise.
5253 (fill_in_sig_entry_from_dwo_entry): Likewise.
5254 (create_type_unit_group): Likewise.
5255 (read_comp_units_from_section): Likewise.
5256 (create_cus_hash_table): Likewise.
5257
f6e649dd
SM
52582020-05-27 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5261 dwarf2_per_cu_data::dwarf2_per_objfile.
5262 (compute_compunit_symtab_includes): Likewise.
5263 (dwarf2_cu::start_symtab): Likewise.
5264
aa66c379
SM
52652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5266
5267 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5268 parameter.
5269 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5270 (read_namespace_alias): Update.
5271 (lookup_die_type): Update.
5272 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5273 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5274 Update.
5275 (disassemble_dwarf_expression): Update.
5276
120ce1b5
SM
52772020-05-27 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * dwarf2/read.h (struct dwarf2_queue_item): Add
5280 dwarf2_per_objfile parameter, assign new parameter.
5281 <per_objfile>: New field.
5282 * dwarf2/read.c (free_one_cached_comp_unit): Add
5283 dwarf2_per_objfile parameter.
5284 (queue_comp_unit): Likewise.
5285 (dw2_do_instantiate_symtab): Update.
5286 (process_psymtab_comp_unit): Update.
5287 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5288 (process_imported_unit_die): Update.
5289 (queue_and_load_dwo_tu): Update.
5290 (follow_die_offset): Update.
5291 (follow_die_sig_1): Update.
5292
9f47c707
SM
52932020-05-27 Simon Marchi <simon.marchi@efficios.com>
5294
5295 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5296 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5297 (read_call_site_scope): Assign per_objfile.
5298 (dwarf2_per_cu_data::objfile): Remove.
5299 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5300 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5301 dwarf2_per_objfile parameter.
5302 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5303 dwarf2_per_objfile parameter.
5304 (dwarf_expr_reg_to_entry_parameter): Add output
5305 dwarf2_per_objfile parameter.
5306 (locexpr_get_frame_base): Update.
5307 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5308 <push_dwarf_reg_entry_value>: Update.
5309 <call_site_to_target_addr>: Update.
5310 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5311 parameter.
5312 (value_of_dwarf_reg_entry): Update.
5313 (rw_pieced_value): Update.
5314 (indirect_synthetic_pointer): Update.
5315 (dwarf2_evaluate_property): Update.
5316 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5317 parameter.
5318 (locexpr_read_variable): Update.
5319 (locexpr_get_symbol_read_needs): Update.
5320 (loclist_read_variable): Update.
5321
14095eb3
SM
53222020-05-27 Simon Marchi <simon.marchi@efficios.com>
5323
5324 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5325 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5326 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5327 parameter.
5328 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5329 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5330 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5331 parameter.
5332 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5333 sect_variable_value): Add dwarf2_per_objfile parameter.
5334 (class dwarf_evaluate_loc_desc) <dwarf_call,
5335 dwarf_variable_value>: Update.
5336 (fetch_const_value_from_synthetic_pointer): Add
5337 dwarf2_per_objfile parameter.
5338 (fetch_const_value_from_synthetic_pointer): Update.
5339 (coerced_pieced_ref): Update.
5340 (class symbol_needs_eval_context) <dwarf_call,
5341 dwarf_variable_value>: Update.
5342 (dwarf2_compile_expr_to_ax): Update.
5343
3c3cd3d4
SM
53442020-05-27 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5347 parameter.
5348 (dwarf2_evaluate_loc_desc_full): Update.
5349
82ca3f51
SM
53502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5353 parameter.
5354 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5355 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5356 dwarf2_per_objfile parameter.
5357 (decode_debug_loc_dwo_addresses): Likewise.
5358 (dwarf2_find_location_expression): Update.
5359 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5360 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5361 parameter.
5362 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5363 parameter.
5364 (locexpr_describe_location_1): Likewise.
5365 (locexpr_describe_location): Update.
5366
4b167ea1
SM
53672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5370 Remove.
5371 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5372 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5373 (dwarf2_compile_property_to_c): Update.
5374 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5375 use text offset from objfile.
5376 (locexpr_tracepoint_var_ref): Update.
5377 (locexpr_generate_c_location): Update.
5378 (loclist_describe_location): Update.
5379 (loclist_tracepoint_var_ref): Update.
5380 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5381 dwarf2_per_objfile parameter.
5382 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5383 use text offset from objfile.
5384 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5385
89b07335
SM
53862020-05-27 Simon Marchi <simon.marchi@efficios.com>
5387
5388 * dwarf2/expr.h (struct dwarf_expr_context)
5389 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5390 <offset>: Remove.
5391 <per_objfile>: New member.
5392 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5393 dwarf2_per_objfile parameter. Don't set offset, set
5394 per_objfile.
5395 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5396 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5397 a dwarf2_per_objfile object instead of an offset.
5398 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5399 constructor.
5400 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5401 to dwarf2_expr_executor constructor. Don't set offset.
5402 (dwarf2_fetch_cfa_info): Update.
5403 (struct dwarf2_frame_cache) <text_offset>: Remove.
5404 <per_objfile>: New field.
5405 (dwarf2_frame_cache): Update.
5406 (dwarf2_frame_prev_register): Update.
5407 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5408 <dwarf_evaluate_loc_desc>: Add constructor.
5409 (dwarf2_evaluate_loc_desc_full): Update.
5410 (dwarf2_locexpr_baton_eval): Update.
5411 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5412 Add constructor.
5413 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5414
293e7e51
SM
54152020-05-27 Simon Marchi <simon.marchi@efficios.com>
5416
5417 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5418 addr_sized_int_type>: Move to dwarf2_cu.
5419 <int_type>: Move to dwarf2_per_objfile.
5420 (struct dwarf2_per_objfile) <int_type>: Move here.
5421 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5422 addr_sized_int_type>: Move here.
5423 (read_func_scope): Update.
5424 (read_array_type): Update.
5425 (read_tag_string_type): Update.
5426 (attr_to_dynamic_prop): Update.
5427 (dwarf2_per_cu_data::int_type): Rename to...
5428 (dwarf2_per_objfile::int_type): ... this.
5429 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5430 (dwarf2_cu::addr_sized_int_type): ... this.
5431 (read_subrange_type): Update.
5432 (dwarf2_per_cu_data::addr_type): Rename to...
5433 (dwarf2_cu::addr_type): ... this.
5434 (set_die_type): Update.
5435
64874a40
SM
54362020-05-27 Simon Marchi <simon.marchi@efficios.com>
5437
5438 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5439 data through per_cu->cu.
5440
4ab09049
SM
54412020-05-27 Simon Marchi <simon.marchi@efficios.com>
5442
5443 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5444 dwarf2_per_cu_data parameter fo dwarf2_cu.
5445 (lookup_dwo_type_unit): Likewise.
5446 (read_cutu_die_from_dwo): Likewise.
5447 (lookup_dwo_unit): Likewise.
5448 (open_and_init_dwo_file): Likewise.
5449 (lookup_dwo_cutu): Likewise.
5450 (lookup_dwo_comp_unit): Likewise.
5451 (lookup_dwo_type_unit): Likewise.
5452 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5453 (cutu_reader::cutu_reader): Update.
5454
47b14e86
SM
54552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5456
5457 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5458 parameter.
5459 (process_full_type_unit): Likewise.
5460 (process_queue): Update.
5461
43182c09
SM
54622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5463
5464 * dwarf2/read.c (recursively_compute_inclusions): Add
5465 dwarf2_per_objfile parameter.
5466 (compute_compunit_symtab_includes): Likewise.
5467 (process_cu_includes): Update.
5468
7aa104c4
SM
54692020-05-27 Simon Marchi <simon.marchi@efficios.com>
5470
5471 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5472 parameter.
5473 (create_type_unit_group): Update.
5474 (process_psymtab_comp_unit_reader): Update.
5475 (build_type_psymtabs_reader): Update.
5476
e3beb21d
SM
54772020-05-27 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5480 object through m_this_cu->cu.
5481
d460f660
SM
54822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5483
5484 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5485 the info parameter.
5486 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5487
ab432490
SM
54882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5489
5490 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5491 per_objfile parameter.
5492 (load_full_type_unit): Add per_objfile parameter.
5493 (read_signatured_type): Likewise.
5494 (load_full_comp_unit): Likewise.
5495 (load_cu): Likewise.
5496 (dw2_do_instantiate_symtab): Likewise.
5497 (dw2_get_file_names): Likewise.
5498 (dw2_map_symtabs_matching_filename): Update.
5499 (dw_expand_symtabs_matching_file_matcher): Update.
5500 (dw2_map_symbol_filenames): Update.
5501 (process_psymtab_comp_unit): Add per_objfile parameter.
5502 (build_type_psymtabs_1): Update.
5503 (process_skeletonless_type_unit): Update.
5504 (dwarf2_build_psymtabs_hard): Update.
5505 (load_partial_comp_unit): Add per_objfile parameter.
5506 (scan_partial_symbols): Update.
5507 (load_full_comp_unit): Add per_objfile parameter.
5508 (process_imported_unit_die): Update.
5509 (create_cus_hash_table): Update.
5510 (find_partial_die): Update.
5511 (dwarf2_read_addr_index): Update.
5512 (follow_die_offset): Update.
5513 (dwarf2_fetch_die_loc_sect_off): Update.
5514 (dwarf2_fetch_constant_bytes): Update.
5515 (dwarf2_fetch_die_type_sect_off): Update.
5516 (follow_die_sig_1): Update.
5517 (load_full_type_unit): Add per_objfile parameter.
5518 (read_signatured_type): Likewise.
5519
313bad1b
SM
55202020-05-27 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5523 of objfile_name.
5524
c3699833
SM
55252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5528 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5529 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5530 field.
5531 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5532 (create_cus_from_index): Update.
5533 (dwarf2_read_gdb_index): Update.
5534 (create_cus_from_debug_names): Update.
5535 (dwarf2_read_debug_names): Update.
5536 (get_abbrev_section_for_cu): Update.
5537 (create_all_comp_units): Update.
5538 (read_attribute_value): Update.
5539 (get_debug_line_section): Update.
5540 * dwarf2/index-cache.c (index_cache::store): Update.
5541 * dwarf2/index-write.c (save_gdb_index_command): Update.
5542 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5543
1859c670
SM
55442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5545
5546 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5547 member.
5548 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5549 dwarf2_per_cu_data::per_bfd.
5550 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5551 (create_type_unit_group): Likewise.
5552 (queue_comp_unit): Remove reference to
5553 per_cu->dwarf2_per_objfile.
5554 (maybe_queue_comp_unit): Likewise.
5555 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5556 (create_cus_hash_table): Assign new field.
5557
5e22e966
SM
55582020-05-27 Simon Marchi <simon.marchi@efficios.com>
5559
5560 * dwarf2/read.c: Replace
5561 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5562 dwarf2_cu->per_objfile throughout.
5563
97a1449a
SM
55642020-05-27 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5567 parameter, don't use per_cu->dwarf2_per_objfile.
5568 (dw2_instantiate_symtab): Likewise.
5569 (dw2_find_last_source_symtab): Update.
5570 (dw2_map_expand_apply): Update.
5571 (dw2_lookup_symbol): Update.
5572 (dw2_expand_symtabs_for_function): Update.
5573 (dw2_expand_all_symtabs): Update.
5574 (dw2_expand_symtabs_with_fullname): Update.
5575 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5576 don't use per_cu->dwarf2_per_objfile.
5577 (dw2_expand_marked_cus): Update.
5578 (dw2_find_pc_sect_compunit_symtab): Update.
5579 (dw2_debug_names_lookup_symbol): Update.
5580 (dw2_debug_names_expand_symtabs_for_function): Update.
5581 (dw2_debug_names_map_matching_symbols): Update.
5582 (dwarf2_psymtab::expand_psymtab): Update.
5583
9e021579
SM
55842020-05-27 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5587 <per_objfile>: New member.
5588 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5589 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5590 call to dwarf2_cu.
5591 (cutu_reader::cutu_reader): Update.
5592 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5593
ae090bdb
SM
55942020-05-27 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5597 struct dwarf2_per_objfile.
5598 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5599 dwarf2_per_bfd.
5600 * dwarf2/read.c (set_die_type): Update.
5601 (get_die_type_at_offset): Update.
5602
af758d11
SM
56032020-05-27 Tom Tromey <tom@tromey.com>
5604 Simon Marchi <simon.marchi@efficios.com>
5605
5606 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5607 method.
5608 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5609 get_symtab, set_symtab>: New methods.
5610 <m_symtabs>: New field.
5611 (struct dwarf2_psymtab): Derive from partial_symtab.
5612 <readin_p, get_compunit_symtab>: Declare methods.
5613 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5614 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5615 New methods.
5616 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5617 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5618 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5619 (dw2_symtab_iter_next, dw2_print_stats)
5620 (dw2_expand_symtabs_with_fullname)
5621 (dw2_expand_symtabs_matching_one)
5622 (dw_expand_symtabs_matching_file_matcher)
5623 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5624 (dw2_debug_names_iterator::next)
5625 (dw2_debug_names_map_matching_symbols)
5626 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5627 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5628 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5629 New methods.
5630 (get_compunit_symtab, process_full_comp_unit)
5631 (process_full_type_unit): Update.
5632 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5633
5989a64e
SM
56342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5637 then introduce a new dwarf2_per_objfile type.
5638 <read_line_string>: Move to the new dwarf2_per_objfile type.
5639 <objfile>: Likewise.
5640 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5641 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5642 dwarf2_per_objfile->per_bfd.
5643 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5644 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5645 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5646 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5647 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5648 (dwarf2_per_objfile::locate_sections): Rename to...
5649 (dwarf2_per_bfd::locate_sections): ... this.
5650 (dwarf2_per_objfile::get_cutu): Rename to...
5651 (dwarf2_per_bfd::get_cutu): ... this.
5652 (dwarf2_per_objfile::get_cu): Rename to...
5653 (dwarf2_per_bfd::get_cu): ... this.
5654 (dwarf2_per_objfile::get_tu): Rename to...
5655 (dwarf2_per_bfd::get_tu): ... this.
5656 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5657 (dwarf2_per_bfd::allocate_per_cu): ... this.
5658 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5659 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5660 (get_gdb_index_contents_ftype): Change parameter from
5661 dwarf2_per_objfile to dwarf2_per_bfd.
5662 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5663 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5664
a50264ba
TT
56652020-05-27 Tom Tromey <tom@tromey.com>
5666 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5669 (allocate_piece_closure): Set "per_objfile" member.
5670 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5671 (locexpr_describe_location, loclist_describe_location): Use new
5672 member.
5673 * dwarf2/read.c (read_call_site_scope)
5674 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5675 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5676 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5677 handle_data_member_location): Set per_objfile member.
5678 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5679 member.
5680 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5681
d3473f0c
TT
56822020-05-27 Tom Tromey <tom@tromey.com>
5683
5684 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5685 allocate_signatured_type>: Declare new methods.
5686 <m_num_psymtabs>: New member.
5687 (struct dwarf2_per_cu_data) <index>: New member.
5688 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5689 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5690 (create_cu_from_index_list): Use allocate_per_cu.
5691 (create_signatured_type_table_from_index)
5692 (create_signatured_type_table_from_debug_names)
5693 (create_debug_type_hash_table, add_type_unit)
5694 (read_comp_units_from_section): Use allocate_signatured_type.
5695
5717c425
TT
56962020-05-27 Tom Tromey <tom@tromey.com>
5697
5698 * psymtab.c (partial_map_expand_apply)
5699 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5700 (psym_lookup_global_symbol_language)
5701 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5702 (psym_print_stats, psym_expand_symtabs_for_function)
5703 (psym_map_symbol_filenames, psym_map_matching_symbols)
5704 (psym_expand_symtabs_matching)
5705 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5706 (maintenance_check_psymtabs): Update.
5707 * psympriv.h (struct partial_symtab) <readin_p,
5708 get_compunit_symtab>: Add objfile parameter.
5709 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5710 Likewise.
5711 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5712 get_compunit_symtab>: Likewise.
5713 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5714
45940949
TT
57152020-05-27 Tom Tromey <tom@tromey.com>
5716
5717 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5718 member.
5719 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5720 (create_cu_from_index_list)
5721 (create_signatured_type_table_from_index)
5722 (create_signatured_type_table_from_debug_names)
5723 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5724 (dwarf2_create_include_psymtab)
5725 (create_debug_type_hash_table, add_type_unit)
5726 (create_type_unit_group, read_comp_units_from_section)
5727 (dwarf2_compute_name, create_cus_hash_table)
5728 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5729 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5730 obstack.
5731 (dw2_get_real_path): Likewise. Change argument to
5732 dwarf2_per_objfile.
5733
f8c6d152
LM
57342020-05-27 Luis Machado <luis.machado@linaro.org>
5735
5736 PR tdep/26000
5737 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5738 for ldrd (immediate).
5739
e98d2e6d
PW
57402020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5741
5742 * command.h: Add comment giving the name of class_tui.
5743 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5744 create the fake command for the help for class_tui.
5745
53a47a3e
TT
57462020-05-26 Tom Tromey <tromey@adacore.com>
5747
5748 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5749 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5750 (val_atr): New function.
5751 (value_val_atr): Use it.
5752 * ada-valprint.c (print_optional_low_bound): Change low bound
5753 handling for enums.
5754 (val_print_packed_array_elements): Don't call discrete_position.
5755 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5756 discrete_position for enum types.
5757 * language.c (default_print_array_index): Change type.
5758 * language.h (struct language_defn) <la_print_array_index>: Add
5759 index_type parameter, change type of index_value.
5760 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5761 (default_print_array_index): Update.
5762 * valprint.c (maybe_print_array_index): Don't call
5763 value_from_longest. Update.
5764 (value_print_array_elements): Don't call discrete_position.
5765
0bc2354b
TT
57662020-05-26 Tom Tromey <tromey@adacore.com>
5767
5768 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5769 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5770
1218a4bf
CDA
57712020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5772
5773 PR gdb/13519
5774 * avr-tdep.c (avr_integer_to_address): Return data or code
5775 address accordingly to the second 'type' argument of the
5776 function.
5777
92651b1d
MW
57782020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5779
5780 * infcmd.c, inferior.h: (construct_inferior_arguments):
5781 Moved function from here to gdbsupport/common-inferior.{h,cc}
5782
0a4f5f8c
TT
57832020-05-23 Tom Tromey <tom@tromey.com>
5784
5785 Revert commit eca1f90c:
5786 * NEWS: Remove entry for completion styling.
5787 * completer.c (_rl_completion_prefix_display_length): Move
5788 declaration later.
5789 (gdb_fnprint): Revert.
5790 (gdb_display_match_list_1): Likewise.
5791 * cli/cli-style.c (completion_prefix_style)
5792 (completion_difference_style, completion_suffix_style): Remove.
5793 (_initialize_cli_style): Revert.
5794 * cli/cli-style.h (completion_prefix_style)
5795 (completion_difference_style, completion_suffix_style): Don't
5796 declare.
5797
e08bd6c5
PA
57982020-05-24 Pedro Alves <palves@redhat.com>
5799
5800 * symtab.c (completion_list_add_name): Return boolean indication
5801 of whether the symbol matched.
5802 (completion_list_add_symbol): Don't try to remove C++ aliases if
5803 the symbol didn't match in the first place.
5804 * symtab.h (completion_list_add_name): Return bool.
5805
ceacbf6e
SM
58062020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5807
5808 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5809 type::field.
5810
26f16254
JB
58112020-05-23 Joel Brobecker <brobecker@adacore.com>
5812
5813 GDB 9.2 released.
5814
eca1f90c
TT
58152020-05-23 Tom Tromey <tom@tromey.com>
5816
5817 * NEWS: Add entry for completion styling.
5818 * completer.c (_rl_completion_prefix_display_length): Move
5819 declaration earlier.
5820 (gdb_fnprint): Use completion_style.
5821 (gdb_display_match_list_1): Likewise.
5822 * cli/cli-style.c (completion_prefix_style)
5823 (completion_difference_style, completion_suffix_style): New
5824 globals.
5825 (_initialize_cli_style): Register new globals.
5826 * cli/cli-style.h (completion_prefix_style)
5827 (completion_difference_style, completion_suffix_style): Declare.
5828
51e2cfa2
PA
58292020-05-23 Pedro Alves <palves@redhat.com>
5830
5831 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5832 (parse_escape): Use ISDIGIT instead of isdigit.
5833 (puts_debug): Use gdb_isprint instead of isprint.
5834 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5835 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5836 ISSPACE instead of isspace.
5837 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5838 instead of isspace.
5839 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5840 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5841 instead of isxdigit and ISDIGIT instead of isdigit.
5842
80fc5e77
SM
58432020-05-22 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * gdbtypes.h (struct type) <field>: New method.
5846 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5847 or type::field.
5848
3cabb6b0
SM
58492020-05-22 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5852 (TYPE_FIELDS): Use type::fields. Change all call sites that
5853 modify the propery to use type::set_fields instead.
5854
1f704f76
SM
58552020-05-22 Simon Marchi <simon.marchi@efficios.com>
5856
5857 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5858 type::num_fields instead.
5859
5e33d5f4
SM
58602020-05-22 Simon Marchi <simon.marchi@efficios.com>
5861
5862 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5863 methods.
5864 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5865 that modify the number of fields to use type::set_num_fields
5866 instead.
5867
9392ebb3
TT
58682020-05-22 Tom Tromey <tromey@adacore.com>
5869
5870 * compile/compile-object-load.h (munmap_list_free): Don't
5871 declare.
5872
7c13f4e8
AB
58732020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * annotate.c (annotate_source_line): Update return type, add call
5876 to update current symtab and line.
5877 * annotate.h (annotate_source_line): Update return type, and
5878 extend header comment.
5879 * source.c (info_line_command): Check annotation_level before
5880 calling annotate_source_line.
5881 * stack.c (print_frame_info): If calling annotate_source_line
5882 returns true, then don't print any other source line information.
5883
aa370940
SM
58842020-05-21 Simon Marchi <simon.marchi@efficios.com>
5885
5886 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5887
84d53fa9
SM
58882020-05-21 Simon Marchi <simon.marchi@efficios.com>
5889
5890 * coffread.c (patch_type): Remove NULL check before xfree.
5891 * corefile.c (set_gnutarget): Likewise.
5892 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5893 * exec.c (build_section_table): Likewise.
5894 * remote.c (remote_target::pass_signals): Likewise.
5895 * utils.c (n_spaces): Likewise.
5896 * cli/cli-script.c (document_command): Likewise.
5897 * i386-windows-tdep.c (core_process_module_section): Likewise.
5898 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5899
9d428aae
SM
59002020-05-20 Simon Marchi <simon.marchi@efficios.com>
5901
5902 * symfile.c (reread_symbols): Clear objfile's section_offsets
5903 vector and section indices, re-compute them by calling
5904 sym_offsets.
5905
250106a7
TT
59062020-05-20 Tom Tromey <tromey@adacore.com>
5907
5908 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5909 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5910
9a0bacfb
TV
59112020-05-20 Tom de Vries <tdevries@suse.de>
5912
5913 PR symtab/25833
5914 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5915
7b958a48
AM
59162020-05-20 Alan Modra <amodra@gmail.com>
5917
5918 PR 25993
5919 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5920 bfd_set_filename.
5921 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5922 passed to bfd_set_filename.
5923 * symfile-mem.c (add_vsyscall_page): Likewise for string
5924 passed to symbol_file_add_from_memory.
5925 (symbol_file_add_from_memory): Make name param a const char* and
5926 don't strdup.
5927
c7e97679
AM
59282020-05-20 Alan Modra <amodra@gmail.com>
5929
5930 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5931 rather than accessing bfd->filename directly.
5932 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5933 and use bfd_section_name.
5934 * dwarf2/frame.c (decode_frame_entry): Likewise.
5935 * exec.c (exec_set_section_address): Likewise.
5936 * solib-aix.c (solib_aix_bfd_open): Likewise.
5937 * stap-probe.c (get_stap_base_address): Likewise.
5938 * symfile.c (reread_symbols): Likewise.
5939
563c591b
TT
59402020-05-19 Tom Tromey <tromey@adacore.com>
5941
5942 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5943
f408d82c
SM
59442020-05-19 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5947
98c59b52
PA
59482020-05-19 Pedro Alves <palves@redhat.com>
5949
5950 * NEWS (set exec-file-mismatch): Adjust entry.
5951 * exec.c: Include "build-id.h".
5952 (validate_exec_file): Try to match build IDs instead of filenames.
5953 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5954 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5955 and pass down 'warn_if_slow'.
5956 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5957 gdb_bfd_open_closure to pass it down.
5958 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5959
4111f652
PA
59602020-05-19 Pedro Alves <palves@redhat.com>
5961
5962 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5963 * target.c (target_fileio_open_1): Rename to target_fileio_open
5964 and make extern. Use bool.
5965 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5966 (target_fileio_read_alloc_1): Adjust.
5967 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5968 (target_fileio_open_warn_if_slow): Delete declaration.
5969
ad80db5b
PA
59702020-05-19 Pedro Alves <palves@redhat.com>
5971
5972 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5973 Adjust all callers.
5974
1d6ce4d3
YS
59752020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5976
5977 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5978 whether disp is negative.
5979
9005fbbb
SM
59802020-05-19 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * symfile.h (struct symfile_segment_data)
5983 <~symfile_segment_data>: Remove.
5984 <segment_info>: Change to std::vector.
5985 * symfile.c (default_symfile_segments): Update.
5986 * elfread.c (elf_symfile_segments): Update.
5987
68b888ff
SM
59882020-05-19 Simon Marchi <simon.marchi@efficios.com>
5989
5990 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5991 <segments>: New.
5992 <segment_bases, segment_sizes>: Remove.
5993 * symfile.c (default_symfile_segments): Update.
5994 * elfread.c (elf_symfile_segments): Update.
5995 * remote.c (remote_target::get_offsets): Update.
5996 * solib-target.c (solib_target_relocate_section_addresses):
5997 Update.
5998
62982abd
SM
59992020-05-19 Simon Marchi <simon.marchi@efficios.com>
6000
6001 * symfile.h (struct symfile_segment_data): Initialize fields.
6002 <~symfile_segment_data>: Add.
6003 (symfile_segment_data_up): New.
6004 (struct sym_fns) <sym_segments>: Return a
6005 symfile_segment_data_up.
6006 (default_symfile_segments): Return a symfile_segment_data_up.
6007 (free_symfile_segment_data): Remove.
6008 (get_symfile_segment_data): Return a symfile_segment_data_up.
6009 * symfile.c (default_symfile_segments): Likewise.
6010 (get_symfile_segment_data): Likewise.
6011 (free_symfile_segment_data): Remove.
6012 (symfile_find_segment_sections): Update.
6013 * elfread.c (elf_symfile_segments): Return a
6014 symfile_segment_data_up.
6015 * remote.c (remote_target::get_offsets): Update.
6016 * solib-target.c (solib_target_relocate_section_addresses):
6017 Update.
6018 * symfile-debug.c (debug_sym_segments): Return a
6019 symfile_segment_data_up.
6020
7f204339
RO
60212020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6022
e52a0f1b
RO
6023 PR build/25981
6024 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6025 Hardcode register numbers.
6026
7f204339
RO
6027 PR build/25981
6028 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6029 procfs_find_LDT_entry): Remove.
6030 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6031 procfs_find_LDT_entry): Remove.
6032 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6033 Remove.
6034
7f32a4d5
PA
60352020-05-17 Pedro Alves <palves@redhat.com>
6036 Andrew Burgess <andrew.burgess@embecosm.com>
6037 Keno Fischer <keno@juliacomputing.com>
6038
6039 PR gdb/25741
6040 * breakpoint.c (build_target_condition_list): Update comments.
6041 (build_target_command_list): Update comments and skip matching
6042 locations.
6043 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6044 a separate function. Simplify "set breakpoint auto-hw off"
6045 handling.
6046 (insert_breakpoints): Update comment.
6047 (tracepoint_locations_match): New parameter. For breakpoints,
6048 compare location types too, if the caller wants to.
6049 (handle_automatic_hardware_breakpoints): New functions.
6050 (bp_location_is_less_than): Also sort by location type and
6051 hardware breakpoint length.
6052 (update_global_location_list): Handle "set breakpoint auto-hw on"
6053 here.
6054 (update_breakpoint_locations): Ask breakpoint_locations_match to
6055 ignore location types.
6056
7d93a1e0
SM
60572020-05-16 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6060 type::name instead.
6061
d0e39ea2
SM
60622020-05-16 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * gdbtypes.h (struct type) <name, set_name>: New methods.
6065 (TYPE_CODE): Use type::name. Change all call sites used to set
6066 the name to use type::set_name instead.
6067
2dab0c7b
TT
60682020-05-16 Tom Tromey <tom@tromey.com>
6069
6070 * top.c (quit_force): Update.
6071 * infrun.c (handle_no_resumed): Update.
6072 * top.h (all_uis): New function.
6073 (ALL_UIS): Remove.
6074
59f7bd8d
SM
60752020-05-16 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6078
9bf058f0
PA
60792020-05-16 Pedro Alves <palves@redhat.com>
6080
6081 * ia64-linux-nat.c
6082 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6083 Declare method.
6084 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6085
8f86ae1a
SM
60862020-05-15 Simon Marchi <simon.marchi@efficios.com>
6087
6088 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6089 (sparc64_adi_info): Likewise.
6090
d6bc0792
TT
60912020-05-15 Tom Tromey <tom@tromey.com>
6092
6093 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6094 block_objfile.
6095 (lookup_objfile_from_block): Remove.
6096 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6097 (lookup_global_symbol): Use block_objfile.
6098 * symtab.h (lookup_objfile_from_block): Don't declare.
6099 * printcmd.c (clear_dangling_display_expressions): Use
6100 block_objfile.
6101 * parse.c (operator_check_standard): Use block_objfile.
6102
8c14c3a3
TT
61032020-05-15 Tom Tromey <tom@tromey.com>
6104
6105 * language.c (language_alloc_type_symbol): Set
6106 SYMBOL_SECTION.
6107 * symtab.c (initialize_objfile_symbol): Remove.
6108 (allocate_symbol): Remove.
6109 (allocate_template_symbol): Remove.
6110 * dwarf2/read.c (fixup_go_packaging): Use "new".
6111 (new_symbol): Use "new".
6112 (read_variable): Don't call initialize_objfile_symbol. Use
6113 "new".
6114 (read_func_scope): Use "new".
6115 * xcoffread.c (process_xcoff_symbol): Don't call
6116 initialize_objfile_symbol.
6117 (SYMBOL_DUP): Remove.
6118 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6119 "new".
6120 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6121 (allocate_template_symbol): Don't declare.
6122 (struct symbol): Add copy constructor. Change defaults.
6123 * jit.c (finalize_symtab): Use "new".
6124 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6125 Use "new".
6126 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6127 (common_block_end): Use "new".
6128 * mdebugread.c (parse_symbol): Use "new".
6129 (new_symbol): Likewise.
6130
5b4a1a8d
PW
61312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6132
6133 * NEWS: Mention changes to help and apropos.
6134
57b4f16e
PW
61352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6136
6137 * command.h (enum command_class): Improve comments, document
6138 that class_alias is for user-defined aliases, give the class
6139 name for each class, remove unused class_xdb.
6140 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6141 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6142 by a precise class.
6143 * infcmd.c (_initialize_infcmd): Likewise.
6144 * reverse.c (_initialize_reverse): Likewise.
6145 * stack.c (_initialize_stack): Likewise.
6146 * symfile.c (_initialize_symfile): Likewise.
6147 * tracepoint.c (_initialize_tracepoint): Likewise.
6148
7c05caf7
PW
61492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6150
6151 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6152 when their aliased command is traversed.
6153 (help_cmd): Add fput_command_names_styled call to
6154 output command name and aliases when command has an alias.
6155
3b3aaacb
PW
61562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6157
6158 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6159 * cli/cli-decode.c (help_cmd_list): Declare as static,
6160 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6161 a command together with the command.
6162 (fput_command_name_styled, fput_command_names_styled): New functions.
6163 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6164 fput_command_name_styled.
6165 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6166 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6167
7aa1b46f
PW
61682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6169
6170 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6171 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6172 * command.h (cmd_show_list): Likewise.
6173 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6174 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6175
89bcba74
PW
61762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6177
6178 * unittests/command-def-selftests.c (traverse_command_structure):
6179 Verify all commands of a list have the same prefix command and
6180 that only the top cmdlist commands have a null prefix.
6181
3f4d92eb
PW
61822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6183
6184 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6185 as prefix, not one of its aliases.
6186 (set_cmd_prefix): Remove.
6187 (do_add_cmd): Centralize the setting of the prefix of a command, when
6188 command is defined after its full chain of prefix commands.
6189 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6190 (add_setshow_cmd_full): Likewise.
6191 (update_prefix_field_of_prefixed_commands): New function.
6192 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6193 update_prefix_field_of_prefixed_commands.
6194 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6195 addresses of remote_set_cmdlist and remote_show_cmdlist given
6196 as argument, not the address of an argument.
6197 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6198 * gdb/remote.c (_initialize_remote): Likewise.
6199
0605465f
PW
62002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6201
6202 * cli/cli-cmds.c (alias_command): Check for an existing alias
6203 using lookup_cmd_composition, as valid_command_p is too strict
6204 and forbids aliases that are the prefix of an existing alias
6205 or command.
6206 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6207 command is properly recognised as a valid command.
6208
58e6ac70
PW
62092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6210
6211 * unittests/help-doc-selftests.c: Rename to
6212 unittests/command-def-selftests.c
6213 * unittests/command-def-selftests.c (help_doc_tests): Update some
6214 comments.
6215 (command_structure_tests, traverse_command_structure): New namespace
6216 and function.
6217 (command_structure_invariants_tests): New function.
6218 (_initialize_command_def_selftests) Renamed from
6219 _initialize_help_doc_selftests, register command_structure_invariants
6220 selftest.
6221
a7b9ceb8
PW
62222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6223
6224 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6225 an alias of 'show'.
6226
b2188a06
JB
62272020-05-15 Joel Brobecker <brobecker@adacore.com>
6228
6229 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6230 ada_is_fixed_point_type. Update all callers.
6231 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6232 all callers.
6233 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6234 Update all callers.
6235 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6236 print_fixed_point_type. Update all callers.
6237 * ada-valprint.c (ada_value_print_num): Replace call to
6238 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6239
a51951c2
KB
62402020-05-14 Kevin Buettner <kevinb@redhat.com>
6241
6242 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6243 processors.
6244 (cpu_supports_bts): Add CV_AMD case.
6245
29d6859f
LM
62462020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6247 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * infrun.c (stop_all_threads): Collect multiple wait events at
6250 each pass.
6251
78134374
SM
62522020-05-14 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6255 type::code instead.
6256
67607e24
SM
62572020-05-14 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * gdbtypes.h (struct type) <code, set_code>: New methods.
6260 (TYPE_CODE): Use type::code. Change all call sites used to set
6261 the code to use type::set_code instead.
6262
a05575d3
TBA
62632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6264 Tom de Vries <tdevries@suse.de>
6265 Pedro Alves <palves@redhat.com>
6266
6267 PR threads/25478
6268 * infrun.c (stop_all_threads): Do NOT ignore
6269 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6270 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6271 received.
6272 (handle_no_resumed): Remove code handling a live inferior with no
6273 threads.
6274 * remote.c (has_single_non_exited_thread): New.
6275 (remote_target::update_thread_list): Do not delete a thread if is
6276 the last thread of the process.
6277 * thread.c (thread_select): Call delete_exited_threads instead of
6278 prune_threads.
6279
6ad82919
TBA
62802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6281
6282 * infrun.c (stop_all_threads): Enable/disable thread events of all
6283 targets. Move a debug message denoting the end of the function
6284 into the SCOPED_EXIT block.
6285
d890404b
TBA
62862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6287
6288 * process-stratum-target.h: Include <set>.
6289 (all_non_exited_process_targets, switch_to_target_no_thread): New
6290 function declarations.
6291 * process-stratum-target.c (all_non_exited_process_targets)
6292 (switch_to_target_no_thread): New function implementations.
6293
293b3ebc
TBA
62942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6295
6296 * infrun.c (handle_inferior_event): Extract out a piece of code
6297 into...
6298 (mark_non_executing_threads): ...this new function.
6299
7ca9b62a
TBA
63002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6301
6302 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6303 use.
6304
fc75c28b
TBA
63052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6306
6307 * regcache.c (regcache_read_pc_protected): New function
6308 implementation that returns 0 if the PC cannot read via
6309 'regcache_read_pc'.
6310 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6311 instead of 'regcache_read_pc'.
6312 (keep_going_pass_signal): Ditto.
6313
a89febbd
TT
63142020-05-13 Tom Tromey <tromey@adacore.com>
6315
6316 * ada-lang.c (align_value): Remove.
6317 (ada_template_to_fixed_record_type_1): Use align_up.
6318
f7e23710
TBA
63192020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6320
6321 * async-event.c: Update the copyright year.
6322 * async-event.h: Update the copyright year.
6323
02ff80c2
SM
63242020-05-12 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * objfiles.h (is_addr_in_objfile,
6327 shared_objfile_contains_address_p): Return bool.
6328 * objfile.c (is_addr_in_objfile,
6329 shared_objfile_contains_address_p): Return bool.
6330
4fd6c7e8
TT
63312020-05-11 Tom Tromey <tromey@adacore.com>
6332
6333 * cli/cli-cmds.c (info_command): Restore.
6334 (_initialize_cli_cmds): Use add_prefix_command for "info".
6335 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6336
5eb68a39
TT
63372020-05-11 Tom Tromey <tromey@adacore.com>
6338
6339 * ada-lang.c (ada_value_primitive_field): Now public.
6340 * ada-lang.h (ada_value_primitive_field): Declare.
6341 * ada-valprint.c (print_field_values): Use
6342 ada_value_primitive_field for wrapper fields.
6343
7666722f
TV
63442020-05-11 Tom de Vries <tdevries@suse.de>
6345
6346 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6347 MODULE_DOMAIN.
6348
3ee6bb11
TV
63492020-05-11 Tom de Vries <tdevries@suse.de>
6350
6351 PR symtab/25941
6352 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6353 with length 0, if not gdb-produced.
6354 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6355
43434996
TV
63562020-05-09 Tom de Vries <tdevries@suse.de>
6357
6358 PR gdb/25955
6359 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6360 calculation.
6361
2f78cffc
TT
63622020-05-09 Tom Tromey <tom@tromey.com>
6363
6364 * top.c (server_command): Now bool.
6365 * top.h (server_command): Now bool.
6366
4f7bc5ed
TT
63672020-05-08 Tom Tromey <tromey@adacore.com>
6368
6369 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6370 already being processed.
6371
8be4b118
TT
63722020-05-08 Tom Tromey <tom@tromey.com>
6373
6374 * printcmd.c (struct display) <next>: Remove.
6375 <display>: New constructor.
6376 <exp_string>: Now a std::string.
6377 <enabled_p>: Now a bool.
6378 (display_number): Move definition earlier.
6379 (displays): Rename from display_chain. Now a std::vector.
6380 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6381 (display_command): Update.
6382 (do_one_display, disable_display)
6383 (enable_disable_display_command, do_enable_disable_display):
6384 Update.
6385 (free_display): Remove.
6386 (clear_displays): Rewrite.
6387 (delete_display): Update.
6388 (map_display_numbers): Use function_view. Remove "data"
6389 parameter. Update.
6390 (do_delete_display): Remove.
6391 (undisplay_command): Update.
6392 (do_one_display, do_displays, disable_display)
6393 (info_display_command): Update.
6394 (do_enable_disable_display): Remove.
6395 (enable_disable_display_command)
6396 (clear_dangling_display_expressions): Update.
6397
94c93c35
TT
63982020-05-08 Tom Tromey <tom@tromey.com>
6399
6400 * symtab.c (set_symbol_cache_size)
6401 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6402 (maintenance_print_symbol_cache_statistics): Update.
6403 * symmisc.c (print_symbol_bcache_statistics)
6404 (print_objfile_statistics, maintenance_print_objfiles)
6405 (maintenance_info_symtabs, maintenance_check_symtabs)
6406 (maintenance_expand_symtabs, maintenance_info_line_tables):
6407 Update.
6408 * symfile-debug.c (set_debug_symfile): Update.
6409 * source.c (forget_cached_source_info): Update.
6410 * python/python.c (gdbpy_progspaces): Update.
6411 * psymtab.c (maintenance_info_psymtabs): Update.
6412 * probe.c (parse_probes): Update.
6413 * linespec.c (iterate_over_all_matching_symtabs)
6414 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6415 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6416 * exec.c (exec_target::close): Update.
6417 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6418 * breakpoint.c (print_one_breakpoint_location)
6419 (create_longjmp_master_breakpoint)
6420 (create_std_terminate_master_breakpoint): Update.
6421 * progspace.c (program_spaces): Now a std::vector.
6422 (maybe_new_address_space): Update.
6423 (add_program_space): Remove.
6424 (program_space::program_space): Update.
6425 (remove_program_space): Update.
6426 (number_of_program_spaces): Remove.
6427 (print_program_space, update_address_spaces): Update.
6428 * progspace.h (program_spaces): Change type.
6429 (ALL_PSPACES): Remove.
6430 (number_of_program_spaces): Don't declare.
6431 (struct program_space) <next>: Remove.
6432
a1fd1ac9
TT
64332020-05-08 Tom Tromey <tom@tromey.com>
6434
6435 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6436 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6437 (enable_break): Update.
6438 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6439 (frv_fdpic_find_canonical_descriptor): Update.
6440 (frv_fetch_objfile_link_map): Update.
6441 * progspace.c (program_space::free_all_objfiles): Update.
6442 (program_space::solibs): New method.
6443 * progspace.h (struct program_space) <solibs>: New method.
6444 * solist.h (master_so_list): Don't declare.
6445 (ALL_SO_LIBS): Remove.
6446 * solib.h (so_list_head): Remove.
6447 (update_solib_list): Update comment.
6448 * solib.c (master_so_list): Remove.
6449 (solib_used, update_solib_list, solib_add)
6450 (info_sharedlibrary_command, clear_solib)
6451 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6452
38eae084
TT
64532020-05-08 Tom Tromey <tom@tromey.com>
6454
6455 * extension.c (extension_languages): Now a std::array.
6456 (ALL_EXTENSION_LANGUAGES): Remove.
6457 (get_ext_lang_defn, get_ext_lang_of_file)
6458 (eval_ext_lang_from_control_command): Update.
6459 (finish_ext_lang_initialization)
6460 (auto_load_ext_lang_scripts_for_objfile)
6461 (ext_lang_type_printers::ext_lang_type_printers)
6462 (apply_ext_lang_type_printers)
6463 (ext_lang_type_printers::~ext_lang_type_printers)
6464 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6465 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6466 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6467 (get_matching_xmethod_workers, ext_lang_colorize)
6468 (ext_lang_before_prompt): Update.
6469 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6470
596dc4ad
TT
64712020-05-08 Tom Tromey <tom@tromey.com>
6472
6473 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6474 overload.
6475 <swap_string, m_string>: Remove.
6476 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6477 Update.
6478 * stabsread.c (define_symbol, read_type): Update.
6479 * linespec.c (find_linespec_symbols): Update.
6480 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6481 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6482 * dbxread.c (read_dbx_symtab): Update.
6483 * cp-support.h (cp_canonicalize_string_full)
6484 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6485 Return unique_xmalloc_ptr.
6486 * cp-support.c (inspect_type): Update.
6487 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6488 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6489 Likewise.
6490 * c-typeprint.c (print_name_maybe_canonical): Update.
6491 * break-catch-throw.c (check_status_exception_catchpoint):
6492 Update.
6493
bf4cb9be
TV
64942020-05-08 Tom de Vries <tdevries@suse.de>
6495
6496 * infrun.c (follow_fork): Copy current_line and current_symtab to
6497 child thread.
6498
a1b68f28
SM
64992020-05-07 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * async-event.c (struct async_signal_handler, struct
6502 async_event_handler): Reformat, remove typedef.
6503
98d48915
SM
65042020-05-07 Simon Marchi <simon.marchi@efficios.com>
6505
6506 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6507 access thistype->main_type->dyn_prop_list directly.
6508
7aa91313
SM
65092020-05-07 Simon Marchi <simon.marchi@efficios.com>
6510
6511 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6512 (remove_dyn_prop): Remove. Update all users to use
6513 type::remove_dyn_prop.
6514 * gdbtypes.c (remove_dyn_prop): Rename to...
6515 (type::remove_dyn_prop): ... this.
6516
5c54719c
SM
65172020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6518
6519 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6520 (add_dyn_prop): Remove. Update all users to use
6521 type::add_dyn_prop.
6522 * gdbtypes.c (add_dyn_prop): Rename to...
6523 (type::add_dyn_prop): ... this.
6524
24e99c6c
SM
65252020-05-07 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6528 (get_dyn_prop): Remove. Update all users to use
6529 type::dyn_prop.
6530 * gdbtypes.c (get_dyn_prop): Rename to...
6531 (type::dyn_prop): ... this.
6532
0d4bf016
SM
65332020-05-06 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6536
ac4a4f1c
SM
65372020-05-06 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6540 instruction, skip it if it's there.
6541
a3bbacc1
SM
65422020-05-05 Simon Marchi <simon.marchi@efficios.com>
6543
6544 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6545
c3236f84
SM
65462020-05-04 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6549 * gdbtypes.c (recursive_dump_type): Remove use of
6550 TYPE_INCOMPLETE.
6551
3b6acaee
TT
65522020-05-03 Tom Tromey <tom@tromey.com>
6553
6554 * breakpoint.c (catch_command, tcatch_command): Remove.
6555 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6556 add_show_prefix_cmd.
6557 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6558 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6559 Remove.
6560 (add_internal_problem_command): Use add_basic_prefix_cmd,
6561 add_show_prefix_cmd.
6562 * mips-tdep.c (set_mipsfpu_command): Remove.
6563 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6564 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6565 (_initialize_index_cache): Use add_basic_prefix_cmd.
6566 * memattr.c (dummy_cmd): Remove.
6567 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6568 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6569 (_initialize_tui_win): Use add_basic_prefix_cmd,
6570 add_show_prefix_cmd.
6571 * cli/cli-logging.c (set_logging_command): Remove.
6572 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6573 add_show_prefix_cmd.
6574 (show_logging_command): Remove.
6575 * target.c (target_command): Remove.
6576 (add_target): Use add_basic_prefix_cmd.
6577
a51119cd
HD
65782020-05-02 Hannes Domani <ssbssa@yahoo.de>
6579
6580 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6581
652fc23a 65822020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6583
652fc23a
PW
6584 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6585 info_command.
6586
117539e6
KR
65872020-04-30 Kamil Rytarowski <n54@gmx.com>
6588
6589 * nbsd-nat.c (nbsd_enable_proc_events)
6590 (nbsd_nat_target::post_startup_inferior): Add.
6591 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6592 (nbsd_nat_target::update_thread_list): Rewrite.
6593 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6594 "PTRACE_LWP_CREATE".
6595 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6596
102e38eb 65972020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6598
102e38eb
PW
6599 * stack.c (_initialize_stack): Remove duplicated creation
6600 of "frame" command and "f" alias.
6601
ee9d1e5f
HD
66022020-04-30 Hannes Domani <ssbssa@yahoo.de>
6603
6604 PR gdb/18706
6605 * gdbtypes.c (check_typedef): Calculate size of array of
6606 stubbed type.
6607
627c7fb8
HD
66082020-04-30 Hannes Domani <ssbssa@yahoo.de>
6609
6610 PR gdb/15559
6611 * i386-tdep.c (i386_push_dummy_call): Call
6612 i386_thiscall_push_dummy_call.
6613 (i386_thiscall_push_dummy_call): New function.
6614 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6615 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6616 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6617
ffc2844e
SM
66182020-04-29 Simon Marchi <simon.marchi@efficios.com>
6619
6620 * gdbarch.sh (do_read): Add shellcheck disable directive for
6621 warning SC2162.
6622
1207375d
SM
66232020-04-29 Simon Marchi <simon.marchi@efficios.com>
6624
6625 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6626 "referenced but not assigned" warning.
6627
9fdb2916
SM
66282020-04-29 Simon Marchi <simon.marchi@efficios.com>
6629
6630 * gdbarch.sh: Remove code that sets fallbackdefault.
6631
759cea5e
SM
66322020-04-29 Simon Marchi <simon.marchi@efficios.com>
6633
6634 * gdbarch.sh: Use shell operators && and || instead of
6635 -a and -o.
6636
cb02ab24
SM
66372020-04-29 Simon Marchi <simon.marchi@efficios.com>
6638
6639 * gdbarch.sh: Use $(...) instead of `...`.
6640
a6fc5ffc
SM
66412020-04-29 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * gdbarch.sh: Use double quotes around variables.
6644
8d113d13
SM
66452020-04-29 Simon Marchi <simon.marchi@efficios.com>
6646
6647 * gdbarch.sh: Use %s with printf, instead of variables in the
6648 format string.
6649
ed6acedd
TT
66502020-04-29 Tom Tromey <tromey@adacore.com>
6651
6652 PR ada/25875:
6653 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6654 type fields here.
6655 (read_enumeration_type): Call
6656 update_enumeration_type_from_children later. Update comments.
6657 (process_enumeration_scope): Don't create type fields.
6658
b68b1b58
KR
66592020-04-29 Kamil Rytarowski <n54@gmx.com>
6660
6661 * nbsd-tdep.c: Include "xml-syscall.h".
6662 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6663
f94b2e03
KR
66642020-04-29 Kamil Rytarowski <n54@gmx.com>
6665
6666 * nbsd-nat.c: Include "sys/wait.h".
6667 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6668 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6669 (nbsd_nat_target::remove_exec_catchpoint)
6670 (nbsd_nat_target::set_syscall_catchpoint): Add.
6671 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6672 (nbsd_nat_target::insert_exec_catchpoint)
6673 (nbsd_nat_target::remove_exec_catchpoint)
6674 (nbsd_nat_target::set_syscall_catchpoint): Add.
6675 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6676 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6677 `nbsd_get_syscall_number'.
6678
fc49bc72
TT
66792020-04-29 Tom Tromey <tom@tromey.com>
6680
6681 * stack.c (print_block_frame_labels): Remove.
6682
d642b692
HD
66832020-04-29 Hannes Domani <ssbssa@yahoo.de>
6684
6685 PR gdb/17320
6686 * ada-valprint.c (val_print_packed_array_elements): Move array
6687 end bracket to new line.
6688 (ada_val_print_string): Remove extra spaces before first array
6689 element.
6690 * c-valprint.c (c_value_print_array): Likewise.
6691 * m2-valprint.c (m2_print_array_contents): Likewise.
6692 (m2_value_print_inner): Likewise.
6693 * p-valprint.c (pascal_value_print_inner): Likewise.
6694 * valprint.c (generic_val_print_array): Likewise.
6695 (value_print_array_elements): Move first array element and array
6696 end bracket to new line.
6697
ea90f227
TV
66982020-04-29 Tom de Vries <tdevries@suse.de>
6699
6700 PR symtab/25889
6701 * linespec.c (find_method): Fix ix calculation.
6702
4498ef4f
KR
67032020-04-28 Kamil Rytarowski <n54@gmx.com>
6704
6705 * syscalls/update-netbsd.sh: New file.
6706 * syscalls/netbsd.xml: Regenerate.
6707 * data-directory/Makefile.in: Register `netbsd.xml' in
6708 `SYSCALLS_FILES'.
6709
a55e30b5
SM
67102020-04-28 Simon Marchi <simon.marchi@efficios.com>
6711
6712 * syscalls/update-freebsd.sh: Add double quotes.
6713
2b2fbab8
TT
67142020-04-28 Tom Tromey <tom@tromey.com>
6715
6716 * NEWS: Update.
6717 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6718 (cmdpy_init): Allow class_tui.
6719
a65189c9
TV
67202020-04-28 Mark Williams <mark@myosotissp.com>
6721
6722 PR gdb/24480
6723 * dwarf2read.c: Add missing assingments to list_in_scope when
6724 start_symtab was already called.
6725
1b95cdb7
SM
67262020-04-28 Simon Marchi <simon.marchi@efficios.com>
6727
6728 PR gdb/25881
6729 * dwarf2/read.c (offset_map_type): Use
6730 gdb:hash_enum<sect_offset> as hash function.
6731
15cd93d0
TV
67322020-04-28 Tom de Vries <tdevries@suse.de>
6733
6734 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6735 with DW_AT_signature.
6736
1eb39914
SM
67372020-04-27 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * configure.ac: Remove check for fs_base/gs_base in
6740 user_regs_struct.
6741 * configure: Re-generate.
6742 * config.in: Re-generate.
6743 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6744 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6745 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6746
991a3e2e
LM
67472020-04-27 Luis Machado <luis.machado@linaro.org>
6748
6749 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6750 problematic inline frame unwinding situation.
6751 * frame.c (frame_id_computed_p): New function.
6752 * frame.h (frame_id_computed_p): New prototype.
6753
361ba0e8
TT
67542020-04-26 Tom Tromey <tom@tromey.com>
6755
6756 * command.h (enum command_class) <class_pseudo>: Remove.
6757
bc3609fd
PW
67582020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6759
6760 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6761 and whitespace.
6762
b9771db7
KR
67632020-04-25 Kamil Rytarowski <n54@gmx.com>
6764
ec16513e
SM
6765 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6766 `PT_GET_PROCESS_STATE' block.
b9771db7 6767
7151c1af
TT
67682020-04-24 Tom Tromey <tom@tromey.com>
6769
6770 * symtab.h (symbol_get_demangled_name): Don't declare.
6771 * symtab.c (symbol_get_demangled_name): Remove.
6772 (general_symbol_info::natural_name)
6773 (general_symbol_info::demangled_name): Update.
6774
906bb4c5
TT
67752020-04-24 Tom Tromey <tom@tromey.com>
6776
6777 PR rust/25025:
6778 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6779
bcfe6157
TT
67802020-04-24 Tom Tromey <tom@tromey.com>
6781
6782 PR symtab/12707:
6783 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6784 exists.
6785 (new_symbol): Likewise.
6786 * compile/compile-object-load.c (get_out_value_type): Use
6787 symbol_matches_search_name.
6788
f049a313
TT
67892020-04-24 Tom Tromey <tom@tromey.com>
6790
6791 * dwarf2/read.c (add_partial_symbol): Do not call
6792 compute_and_set_names.
6793
76e288d1
TT
67942020-04-24 Tom Tromey <tom@tromey.com>
6795
6796 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6797 overload.
6798
2467f4f6
TT
67992020-04-24 Tom Tromey <tom@tromey.com>
6800
6801 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6802 (add_psymbol_to_list): New overload. Make old overload call new
6803 one.
6804 * psympriv.h (add_psymbol_to_list): New overload.
6805
e61108c9
TT
68062020-04-24 Tom Tromey <tom@tromey.com>
6807
6808 * dwarf2/read.c (partial_die_info::read) <case
6809 DW_AT_linkage_name>: Use value_as_string.
6810 (dwarf2_string_attr): Use value_as_string.
6811 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6812 method.
6813 * dwarf2/attribute.c (attribute::value_as_string): New method.
6814
8c87a452
TT
68152020-04-24 Tom Tromey <tom@tromey.com>
6816
6817 * symtab.c (general_symbol_info::natural_name)
6818 (general_symbol_info::demangled_name): Check for language_rust.
6819
787de330
TT
68202020-04-24 Tom Tromey <tom@tromey.com>
6821
6822 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6823 (dwarf2_physname): ... from here.
6824 (partial_die_info::read): Add Rust "{" hack.
6825
ff985671
TT
68262020-04-24 Tom Tromey <tom@tromey.com>
6827
6828 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6829 method.
6830 (symbol_set_demangled_name): Don't declare.
6831 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6832 symbol_set_demangled_name.
6833 (general_symbol_info::set_language)
6834 (general_symbol_info::compute_and_set_names): Update.
6835 * minsyms.c (minimal_symbol_reader::install): Update.
6836 * dwarf2/read.c (new_symbol): Update.
6837
1acda803
TT
68382020-04-24 Tom Tromey <tromey@adacore.com>
6839
6840 PR python/23662:
6841 * python/py-type.c (convert_field): Handle
6842 FIELD_LOC_KIND_DWARF_BLOCK.
6843 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6844 (typy_get_dynamic): Nw function.
6845 (type_object_getset): Add "dynamic".
6846 * NEWS: Add entry.
6847
d656f129
TT
68482020-04-24 Tom Tromey <tromey@adacore.com>
6849
6850 * ada-typeprint.c (print_choices, print_variant_part)
6851 (print_record_field_types_dynamic): New functions.
6852 (print_record_field_types): Use print_record_field_types_dynamic.
6853
7d79de9a
TT
68542020-04-24 Tom Tromey <tromey@adacore.com>
6855
6856 * dwarf2/read.c (handle_data_member_location): New overload.
6857 (dwarf2_add_field): Use it.
6858 (decode_locdesc): Add "computed" parameter. Update comment.
6859 * gdbtypes.c (is_dynamic_type_internal): Also look for
6860 FIELD_LOC_KIND_DWARF_BLOCK.
6861 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6862 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6863 virtual base classes.
6864 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6865 FIELD_LOC_KIND_DWARF_BLOCK.
6866
f8e89861
TT
68672020-04-24 Tom Tromey <tromey@adacore.com>
6868
6869 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6870 * gdbtypes.c (is_dynamic_type_internal): Check
6871 TYPE_HAS_DYNAMIC_LENGTH.
6872 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6873 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6874 New macros.
6875 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6876 constant.
6877
9c6a1327
TT
68782020-04-24 Tom Tromey <tromey@adacore.com>
6879
6880 * dwarf2/read.c (struct variant_field): Rewrite.
6881 (struct variant_part_builder): New.
6882 (struct nextfield): Remove "variant" field. Add "offset".
6883 (struct field_info): Add "current_variant_part" and
6884 "variant_parts".
6885 (alloc_discriminant_info): Remove.
6886 (alloc_rust_variant): New function.
6887 (quirk_rust_enum): Update.
6888 (dwarf2_add_field): Set "offset" member. Don't handle
6889 DW_TAG_variant_part.
6890 (offset_map_type): New typedef.
6891 (convert_variant_range, create_one_variant)
6892 (create_one_variant_part, create_variant_parts)
6893 (add_variant_property): New functions.
6894 (dwarf2_attach_fields_to_type): Call add_variant_property.
6895 (read_structure_type): Don't handle DW_TAG_variant_part.
6896 (handle_variant_part, handle_variant): New functions.
6897 (handle_struct_member_die): Use them.
6898 (process_structure_scope): Don't handle variant parts.
6899 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6900 (struct discriminant_info): Remove.
6901 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6902 (struct main_type) <flag_discriminated_union>: Remove.
6903 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6904 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6905 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6906 Update.
6907 * valops.c (value_union_variant): Remove.
6908 * value.h (value_union_variant): Don't declare.
6909
b249d2c2
TT
69102020-04-24 Tom Tromey <tromey@adacore.com>
6911
6912 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6913 (ada_value_primitive_packed_val): Update.
6914 * ada-valprint.c (ada_value_print_1): Update.
6915 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6916 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6917 just an address. Use evaluate_for_locexpr_baton.
6918 (dwarf2_evaluate_property): Update.
6919 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6920 array_view.
6921 * findvar.c (default_read_var_value): Update.
6922 * gdbtypes.c (compute_variant_fields_inner)
6923 (resolve_dynamic_type_internal): Update.
6924 (resolve_dynamic_type): Change type of valaddr parameter.
6925 * gdbtypes.h (resolve_dynamic_type): Update.
6926 * valarith.c (value_subscripted_rvalue): Update.
6927 * value.c (value_from_contents_and_address): Update.
6928
61122aa9
TT
69292020-04-24 Tom Tromey <tromey@adacore.com>
6930
6931 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6932 "push_initial_value" parameter.
6933 (dwarf2_evaluate_property): Likewise.
6934 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6935
ef83a141
TT
69362020-04-24 Tom Tromey <tromey@adacore.com>
6937
6938 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6939 (variant::matches, compute_variant_fields_recurse)
6940 (compute_variant_fields_inner, compute_variant_fields): New
6941 functions.
6942 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6943 Use resolved_type after type is made.
6944 (operator==): Add new cases.
6945 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6946 (struct discriminant_range, struct variant, struct variant_part):
6947 New.
6948 (union dynamic_prop_data) <variant_parts, original_type>: New
6949 members.
6950 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6951 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6952 constants.
6953 * value.c (unpack_bits_as_long): Now public.
6954 * value.h (unpack_bits_as_long): Declare.
6955
675127ec
TT
69562020-04-24 Tom Tromey <tromey@adacore.com>
6957
6958 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6959 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6960
9852ceef
HD
69612020-04-24 Hannes Domani <ssbssa@yahoo.de>
6962
6963 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6964
7632c6ce
KR
69652020-04-24 Kamil Rytarowski <n54@gmx.com>
6966
6967 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6968 (remove_fork_catchpoint, post_startup_inferior)
6969 (post_attach): Move...
6970 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6971 (remove_fork_catchpoint, post_startup_inferior)
6972 (post_attach): ...here.
6973 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6974 (remove_fork_catchpoint, post_startup_inferior)
6975 (post_attach): Move...
6976 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6977 (remove_fork_catchpoint, post_startup_inferior)
6978 (post_attach): ...here.
6979
7be2bb4f
TT
69802020-04-24 Tom Tromey <tromey@adacore.com>
6981
6982 * nat/windows-nat.h (struct windows_thread_info)
6983 <pc_adjusted>: New member.
6984 * windows-nat.c (windows_fetch_one_register): Check
6985 pc_adjusted.
6986 (windows_nat_target::get_windows_debug_event)
6987 (windows_nat_target::wait): Set pc_adjusted.
6988
f80cb3b4
TV
69892020-04-24 Tom de Vries <tdevries@suse.de>
6990
6991 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6992 Run gdb-add-index inside temp dir.
6993
29514b87
TT
69942020-04-23 Tom Tromey <tromey@adacore.com>
6995
6996 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6997 in loop.
6998
5939967b
LM
69992020-04-23 Luis Machado <luis.machado@linaro.org>
7000
7001 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7002 get_frame_register instead of gdbarch_unwind_pc.
7003
70bc38f5
TV
70042020-04-23 Tom de Vries <tdevries@suse.de>
7005
7006 * symtab.c (lookup_global_symbol): Prefer def over decl.
7007
de82891c
TV
70082020-04-23 Tom de Vries <tdevries@suse.de>
7009
7010 PR symtab/25807
7011 * block.c (best_symbol, better_symbol): Promote to external.
7012 * block.h (best_symbol, better_symbol): Declare.
7013 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7014 decl.
7015
ecc6c606
TT
70162020-04-23 Tom Tromey <tromey@adacore.com>
7017
7018 PR ada/25837:
7019 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7020 "const char *", not a "const std::string &".
7021 <name_and_matcher::operator==>: Update.
7022 * unittests/lookup_name_info-selftests.c: Change type of
7023 "result".
7024
740480b8
TT
70252020-04-23 Tom Tromey <tom@tromey.com>
7026
7027 * inferior.h (iterate_over_inferiors): Don't declare.
7028 * inferior.c (iterate_over_inferiors): Remove.
7029 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7030 Remove.
7031 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7032 use iterate_over_inferiors.
7033 (darwin_resume_inferior_it)
7034 (struct resume_inferior_threads_param)
7035 (darwin_resume_inferior_threads_it): Remove.
7036 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7037
ae3ab1f0
TV
70382020-04-23 Tom de Vries <tdevries@suse.de>
7039
7040 * blockframe.c (find_pc_partial_function): Use
7041 find_pc_sect_compunit_symtab rather than
7042 objfile->sf->qf->find_pc_sect_compunit_symtab.
7043
317d2668
TV
70442020-04-22 Tom de Vries <tdevries@suse.de>
7045
7046 PR symtab/25764
7047 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7048 in psymtabs.
7049
eea9e357
TV
70502020-04-22 Tom de Vries <tdevries@suse.de>
7051
7052 PR symtab/25801
7053 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7054 symtabs.
7055
3d5afab3
TV
70562020-04-22 Tom de Vries <tdevries@suse.de>
7057
7058 PR symtab/25700
7059 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7060 CU if already created.
7061
d43b7a2d
TBA
70622020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7063
7064 * infrun.c (displaced_step_fixup): Switch to the event_thread
7065 before calling displaced_step_restore, not after.
7066
d89edf9b
MM
70672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7068
7069 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7070 its inferior is not recorded by us.
7071 (record_btrace_target_open): Replace call to
7072 all_non_exited_threads () with call to current_inferior
7073 ()->non_exited_threads ().
7074 (record_btrace_target::stop_recording): Likewise.
7075 (record_btrace_target::close): Likewise.
7076 (record_btrace_target::wait): Likewise.
7077 (record_btrace_target::record_stop_replaying): Likewise.
7078
5897fd49
MM
70792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7080
7081 * btrace.c (btrace_enable): Throw an error on double enables and
7082 when enabling recording fails.
7083 (btrace_disable): Throw an error if the thread is not recorded.
7084
1a476b6d
MM
70852020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7086
7087 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7088 request if we do not have a thread_info.
7089
4778a5f8
TV
70902020-04-21 Tom de Vries <tdevries@suse.de>
7091
7092 PR gdb/25471
7093 * thread.c
7094 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7095 exception in get_frame_id.
7096
0fa7617d
TT
70972020-04-20 Tom Tromey <tromey@adacore.com>
7098
7099 * python/python.c (struct gdbpy_event): Mark move constructor as
7100 noexcept.
7101 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7102 constructor as noexcept.
7103 * completer.h (struct completion_result): Mark move constructor as
7104 noexcept.
7105 * completer.c (completion_result::completion_result): Use
7106 initialization style. Don't call reset_match_list.
7107
ad23bda0
MS
71082020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7109
7110 * MAINTAINERS (Write After Approval): Add myself.
7111
45e1f031
TT
71122020-04-18 Tom Tromey <tom@tromey.com>
7113
7114 * windows-tdep.c (init_w32_command_list)
7115 (w32_prefix_command_valid): Restore.
7116 (_initialize_windows_tdep): Call init_w32_command_list.
7117
08feed99
TT
71182020-04-18 Tom Tromey <tom@tromey.com>
7119
7120 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7121 * value.c (value_fn_field): Update.
7122 * valops.c (find_function_in_inferior)
7123 (value_allocate_space_in_inferior): Update.
7124 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7125 Update.
7126 * tui/tui-source.c (tui_source_window::set_contents): Update.
7127 * symtab.c (lookup_global_or_static_symbol)
7128 (find_function_start_sal_1, skip_prologue_sal)
7129 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7130 * symmisc.c (dump_msymbols, dump_symtab_1)
7131 (maintenance_print_one_line_table): Update.
7132 * symfile.c (init_entry_point_info, section_is_mapped)
7133 (list_overlays_command, simple_read_overlay_table)
7134 (simple_overlay_update_1): Update.
7135 * stap-probe.c (handle_stap_probe): Update.
7136 * stabsread.c (dbx_init_float_type, define_symbol)
7137 (read_one_struct_field, read_enum_type, read_range_type): Update.
7138 * source.c (info_line_command): Update.
7139 * python/python.c (gdbpy_source_objfile_script)
7140 (gdbpy_execute_objfile_script): Update.
7141 * python/py-type.c (save_objfile_types): Update.
7142 * python/py-objfile.c (py_free_objfile): Update.
7143 * python/py-inferior.c (python_new_objfile): Update.
7144 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7145 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7146 (maintenance_check_psymtabs): Update.
7147 * printcmd.c (info_address_command): Update.
7148 * objfiles.h (struct objfile) <arch>: New method, from
7149 get_objfile_arch.
7150 (get_objfile_arch): Don't declare.
7151 * objfiles.c (get_objfile_arch): Remove.
7152 (filter_overlapping_sections): Update.
7153 * minsyms.c (msymbol_is_function): Update.
7154 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7155 (output_nondebug_symbol): Update.
7156 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7157 (mdebug_expand_psymtab): Update.
7158 * machoread.c (macho_add_oso_symfile): Update.
7159 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7160 Update.
7161 * linux-fork.c (checkpoint_command): Update.
7162 * linespec.c (convert_linespec_to_sals): Update.
7163 * jit.c (finalize_symtab): Update.
7164 * infrun.c (insert_exception_resume_from_probe): Update.
7165 * ia64-tdep.c (ia64_find_unwind_table): Update.
7166 * hppa-tdep.c (internalize_unwinds): Update.
7167 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7168 Update.
7169 * gcore.c (call_target_sbrk): Update.
7170 * elfread.c (record_minimal_symbol, elf_symtab_read)
7171 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7172 (elf_gnu_ifunc_resolve_by_got): Update.
7173 * dwarf2/read.c (create_addrmap_from_index)
7174 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7175 (read_debug_names_from_section)
7176 (process_psymtab_comp_unit_reader, add_partial_symbol)
7177 (add_partial_subprogram, process_full_comp_unit)
7178 (read_file_scope, read_func_scope, read_lexical_block_scope)
7179 (read_call_site_scope, dwarf2_ranges_read)
7180 (dwarf2_record_block_ranges, dwarf2_add_field)
7181 (mark_common_block_symbol_computed, read_tag_pointer_type)
7182 (read_tag_string_type, dwarf2_init_float_type)
7183 (dwarf2_init_complex_target_type, read_base_type)
7184 (partial_die_info::read, partial_die_info::read)
7185 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7186 (dwarf2_fetch_die_loc_sect_off): Update.
7187 * dwarf2/loc.c (dwarf2_find_location_expression)
7188 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7189 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7190 (dwarf2_loc_desc_get_symbol_read_needs)
7191 (locexpr_describe_location_piece, locexpr_describe_location_1)
7192 (loclist_describe_location): Update.
7193 * dwarf2/index-write.c (write_debug_names): Update.
7194 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7195 * dtrace-probe.c (dtrace_process_dof): Update.
7196 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7197 (process_one_symbol): Update.
7198 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7199 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7200 (coff_read_enum_type): Update.
7201 * cli/cli-cmds.c (edit_command, list_command): Update.
7202 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7203 * breakpoint.c (create_overlay_event_breakpoint)
7204 (create_longjmp_master_breakpoint)
7205 (create_std_terminate_master_breakpoint)
7206 (create_exception_master_breakpoint, get_sal_arch): Update.
7207 * block.c (block_gdbarch): Update.
7208 * annotate.c (annotate_source_line): Update.
7209
0743fc83
TT
72102020-04-17 Tom Tromey <tromey@adacore.com>
7211
7212 * auto-load.c (show_auto_load_cmd): Remove.
7213 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7214 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7215 (maintenance_print_arc_command): Remove.
7216 * tui/tui-win.c (tui_command): Remove.
7217 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7218 * tui/tui-layout.c (tui_layout_command): Remove.
7219 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7220 * python/python.c (user_set_python, user_show_python): Remove.
7221 (_initialize_python): Use add_basic_prefix_cmd,
7222 add_show_prefix_cmd.
7223 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7224 (install_gdb_commands): Use add_basic_prefix_cmd,
7225 add_show_prefix_cmd.
7226 (info_guile_command): Remove.
7227 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7228 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7229 add_show_prefix_cmd.
7230 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7231 Remove do_set and do_show parameters.
7232 * cli/cli-style.c (set_style, show_style): Remove.
7233 (_initialize_cli_style): Use add_basic_prefix_cmd,
7234 add_show_prefix_cmd.
7235 (cli_style_option::add_setshow_commands): Remove do_set and
7236 do_show parameters.
7237 (cli_style_option::add_setshow_commands): Use
7238 add_basic_prefix_cmd, add_show_prefix_cmd.
7239 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7240 (set_style_name): Remove.
7241 * cli/cli-dump.c (dump_command, append_command): Remove.
7242 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7243 (tekhex_dump_command, binary_dump_command)
7244 (binary_append_command): Remove.
7245 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7246 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7247 (init_w32_command_list): Remove; move into ...
7248 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7249 * valprint.c (set_print, show_print, set_print_raw)
7250 (show_print_raw): Remove.
7251 (_initialize_valprint): Use add_basic_prefix_cmd,
7252 add_show_prefix_cmd.
7253 * typeprint.c (set_print_type, show_print_type): Remove.
7254 (_initialize_typeprint): Use add_basic_prefix_cmd,
7255 add_show_prefix_cmd.
7256 * record.c (set_record_command, show_record_command): Remove.
7257 (_initialize_record): Use add_basic_prefix_cmd,
7258 add_show_prefix_cmd.
7259 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7260 add_show_prefix_cmd.
7261 (info_command, show_command, set_debug, show_debug): Remove.
7262 * top.h (set_history, show_history): Don't declare.
7263 * top.c (set_history, show_history): Remove.
7264 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7265 (unset_tdesc_cmd): Remove.
7266 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7267 add_show_prefix_cmd.
7268 * symtab.c (info_module_command): Remove.
7269 (_initialize_symtab): Use add_basic_prefix_cmd.
7270 * symfile.c (overlay_command): Remove.
7271 (_initialize_symfile): Use add_basic_prefix_cmd.
7272 * sparc64-tdep.c (info_adi_command): Remove.
7273 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7274 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7275 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7276 add_show_prefix_cmd.
7277 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7278 (_initialize_serial): Use add_basic_prefix_cmd,
7279 add_show_prefix_cmd.
7280 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7281 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7282 add_show_prefix_cmd.
7283 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7284 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7285 add_show_prefix_cmd.
7286 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7287 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7288 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7289 add_show_prefix_cmd.
7290 * remote.c (remote_command, set_remote_cmd): Remove.
7291 (_initialize_remote): Use add_basic_prefix_cmd.
7292 * record-full.c (set_record_full_command)
7293 (show_record_full_command): Remove.
7294 (_initialize_record_full): Use add_basic_prefix_cmd,
7295 add_show_prefix_cmd.
7296 * record-btrace.c (cmd_set_record_btrace)
7297 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7298 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7299 (cmd_show_record_btrace_pt): Remove.
7300 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7301 add_show_prefix_cmd.
7302 * ravenscar-thread.c (set_ravenscar_command)
7303 (show_ravenscar_command): Remove.
7304 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7305 add_show_prefix_cmd.
7306 * mips-tdep.c (show_mips_command, set_mips_command)
7307 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7308 add_show_prefix_cmd.
7309 * maint.c (maintenance_command, maintenance_info_command)
7310 (maintenance_check_command, maintenance_print_command)
7311 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7312 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7313 add_show_prefix_cmd.
7314 (show_per_command_cmd): Remove.
7315 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7316 Remove.
7317 (maintenance_show_test_settings_cmd): Remove.
7318 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7319 add_show_prefix_cmd.
7320 * maint-test-options.c (maintenance_test_options_command):
7321 Remove.
7322 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7323 * macrocmd.c (macro_command): Remove
7324 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7325 * language.c (set_check, show_check): Remove.
7326 (_initialize_language): Use add_basic_prefix_cmd,
7327 add_show_prefix_cmd.
7328 * infcmd.c (unset_command): Remove.
7329 (_initialize_infcmd): Use add_basic_prefix_cmd.
7330 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7331 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7332 add_show_prefix_cmd.
7333 * go32-nat.c (go32_info_dos_command): Remove.
7334 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7335 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7336 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7337 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7338 (_initialize_frame): Use add_basic_prefix_cmd,
7339 add_show_prefix_cmd.
7340 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7341 (_initialize_dcache): Use add_basic_prefix_cmd,
7342 add_show_prefix_cmd.
7343 * cp-support.c (maint_cplus_command): Remove.
7344 (_initialize_cp_support): Use add_basic_prefix_cmd.
7345 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7346 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7347 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7348 add_basic_prefix_cmd, add_show_prefix_cmd.
7349 * breakpoint.c (save_command): Remove.
7350 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7351 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7352 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7353 add_show_prefix_cmd.
7354 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7355 (set_ada_command, show_ada_command): Remove.
7356 (_initialize_ada_language): Use add_basic_prefix_cmd,
7357 add_show_prefix_cmd.
7358 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7359
3557f442
KR
73602020-04-16 Kamil Rytarowski <n54@gmx.com>
7361
7362 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7363 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7364
16197208
SM
73652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7366
7367 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7368 warning messages.
7369
00ac85d3
SM
73702020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7371
7372 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7373 import table is not at beginning of .idata section.
7374
381ce63f
PA
73752020-04-16 Pedro Alves <palves@redhat.com>
7376
7377 * inferior.c (delete_inferior): Use delete operator directly
7378 instead of delete_program_space.
7379 * progspace.c (add_program_space): New, factored out from
7380 program_space::program_space.
7381 (remove_program_space): New, factored out from
7382 delete_program_space.
7383 (program_space::program_space): Remove intro comment. Rewrite.
7384 (program_space::~program_space): Remove intro comment. Call
7385 remove_program_space.
7386 (delete_program_space): Delete.
7387 * progspace.h (program_space::program_space): Make explicit. Move
7388 intro comment here, adjusted.
7389 (program_space::~program_space): Move intro comment here,
7390 adjusted.
7391 (delete_program_space): Remove.
7392
a010605f
TT
73932020-04-16 Tom Tromey <tromey@adacore.com>
7394
7395 * windows-nat.c (windows_nat::handle_access_violation): New
7396 function.
7397 * nat/windows-nat.h (handle_access_violation): Declare.
7398 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7399 windows-nat.c. Call handle_access_violation.
7400
efba5c23
TV
74012020-04-16 Tom de Vries <tdevries@suse.de>
7402
7403 PR symtab/25791
7404 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7405 CUs without psymtab.
7406
97ed802d
KB
74072020-04-16 Kevin Buettner <kevinb@redhat.com>
7408
7409 * python/python.c (do_start_initialization): Don't call
7410 PyEval_InitThreads for Python 3.9 and beyond.
7411
c7d64809
KR
74122020-04-15 Kamil Rytarowski <n54@gmx.com>
7413
7414 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7415 thread functions.
7416 (obsd_nat_target::wait): Likewise.
7417
ce127a96
TT
74182020-04-15 Tom Tromey <tromey@adacore.com>
7419
7420 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7421 (DEBUG_EXCEPT): Use debug_printf.
7422
99f1bc6a
AB
74232020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7424
7425 * completer.c (class completion_tracker::completion_hash_entry)
7426 <hash_name>: New member function.
7427 (completion_tracker::discard_completions): New callback to hash a
7428 completion_hash_entry, pass this to htab_create_alloc.
7429
a0e9b532
JT
74302016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7431
7432 * windows-nat.c (windows_make_so): Warn rather than stopping with
7433 an error if realpath() fails.
7434
06ca5dd4
KR
74352020-04-14 Kamil Rytarowski <n54@gmx.com>
7436
7437 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7438 (nbsd_nat_target::info_proc): Add do_status.
7439
194d088f
TV
74402020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7441 Tom de Vries <tdevries@suse.de>
7442
7443 PR symtab/25718
7444 * psympriv.h (struct partial_symtab::read_symtab)
7445 (struct partial_symtab::expand_psymtab)
7446 (struct partial_symtab::read_dependencies): Update comments.
7447 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7448 read_symtab for includer.
7449 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7450 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7451 (struct dwarf2_include_psymtab::m_readin): Remove.
7452 (struct dwarf2_include_psymtab::includer): New member function.
7453 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7454
c1a66c06
TV
74552020-04-14 Tom de Vries <tdevries@suse.de>
7456
7457 PR symtab/25720
7458 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7459 with NULL symbol_matcher and lookup_name.
7460 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7461 and lookup_name.
7462 * dwarf2/read.c (dw2_expand_symtabs_matching)
7463 (dw2_debug_names_expand_symtabs_matching): Same.
7464 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7465 Make lookup_name a pointer. Update comment.
7466 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7467 lookup_name being a pointer.
7468 * symfile.c (expand_symtabs_matching): Same.
7469 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7470 * linespec.c (iterate_over_all_matching_symtabs): Same.
7471
400b5eca
TT
74722020-04-13 Tom Tromey <tom@tromey.com>
7473
7474 * run-on-main-thread.c: Update include.
7475 * unittests/main-thread-selftests.c: Update include.
7476 * tui/tui-win.c: Update include.
7477 * tui/tui-io.c: Update include.
7478 * tui/tui-interp.c: Update include.
7479 * tui/tui-hooks.c: Update include.
7480 * top.h: Update include.
7481 * top.c: Update include.
7482 * ser-base.c: Update include.
7483 * remote.c: Update include.
7484 * remote-notif.c: Update include.
7485 * remote-fileio.c: Update include.
7486 * record-full.c: Update include.
7487 * record-btrace.c: Update include.
7488 * python/python.c: Update include.
7489 * posix-hdep.c: Update include.
7490 * mingw-hdep.c: Update include.
7491 * mi/mi-main.c: Update include.
7492 * mi/mi-interp.c: Update include.
7493 * main.c: Update include.
7494 * linux-nat.c: Update include.
7495 * interps.c: Update include.
7496 * infrun.c: Update include.
7497 * inf-loop.c: Update include.
7498 * event-top.c: Update include.
7499 * event-loop.c: Move to ../gdbsupport/.
7500 * event-loop.h: Move to ../gdbsupport/.
7501 * async-event.h: Update include.
7502 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7503
93b54c8e
TT
75042020-04-13 Tom Tromey <tom@tromey.com>
7505
7506 * tui/tui-win.c: Include async-event.h.
7507 * remote.c: Include async-event.h.
7508 * remote-notif.c: Include async-event.h.
7509 * record-full.c: Include async-event.h.
7510 * record-btrace.c: Include async-event.h.
7511 * infrun.c: Include async-event.h.
7512 * event-top.c: Include async-event.h.
7513 * event-loop.h: Move some declarations to async-event.h.
7514 * event-loop.c: Don't include ser-event.h or top.h. Move some
7515 code to async-event.c.
7516 * async-event.h: New file.
7517 * async-event.c: New file.
7518 * Makefile.in (COMMON_SFILES): Add async-event.c.
7519 (HFILES_NO_SRCDIR): Add async-event.h.
7520
c1cd3163
TT
75212020-04-13 Tom Tromey <tom@tromey.com>
7522
7523 * utils.c (flush_streams): New function.
7524 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7525
29f2bf4f
TT
75262020-04-13 Tom Tromey <tom@tromey.com>
7527
7528 * event-loop.c (handle_file_event): Use warning, not
7529 printf_unfiltered.
7530
98029d02
TT
75312020-04-13 Tom Tromey <tom@tromey.com>
7532
7533 * event-loop.c: Include <chrono>.
7534
06cc9596
TT
75352020-04-13 Tom Tromey <tom@tromey.com>
7536
7537 * gdb_select.h: Move to ../gdbsupport/.
7538 * event-loop.c: Update include path.
7539 * top.c: Update include path.
7540 * ser-base.c: Update include path.
7541 * ui-file.c: Update include path.
7542 * ser-tcp.c: Update include path.
7543 * guile/scm-ports.c: Update include path.
7544 * posix-hdep.c: Update include path.
7545 * ser-unix.c: Update include path.
7546 * gdb_usleep.c: Update include path.
7547 * mingw-hdep.c: Update include path.
7548 * inflow.c: Update include path.
7549 * infrun.c: Update include path.
7550 * event-top.c: Update include path.
7551
8ae8e197
TT
75522020-04-13 Tom Tromey <tom@tromey.com>
7553
7554 * configure: Rebuild.
7555 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7556
58cf28e8
TT
75572020-04-13 Tom Tromey <tom@tromey.com>
7558
7559 * event-loop.h (start_event_loop): Don't declare.
7560 * event-loop.c (start_event_loop): Move...
7561 * main.c (start_event_loop): ...here. Now static.
7562
b7f999ae
SDJ
75632020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7564
7565 * MAINTAINERS: Update my email address.
7566
1085dfd4
KR
75672020-04-12 Kamil Rytarowski <n54@gmx.com>
7568
7569 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7570 IP_ALL.
7571
49d1d1f5
KR
75722020-04-12 Kamil Rytarowski <n54@gmx.com>
7573
7574 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7575 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7576
b4848d2a
KR
75772020-04-12 Kamil Rytarowski <n54@gmx.com>
7578
7579 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7580 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7581
51c133d5
KR
75822020-04-12 Kamil Rytarowski <n54@gmx.com>
7583
7584 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7585
54b8cbd0
KR
75862020-04-11 Kamil Rytarowski <n54@gmx.com>
7587
7588 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7589 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7590 (nbsd_nat_target::info_proc): New functions.
7591 * nbsd-nat.c (kinfo_get_vmmap): New function.
7592 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7593 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7594 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7595 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7596 functions.
7597 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7598 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7599 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7600 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7601 (KINFO_VME_FLAG_GROWS_DOWN): New.
7602
cf83625d
AS
76032020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7604
7605 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7606 bit shift.
7607
0c4311ab
TT
76082020-04-10 Tom Tromey <tromey@adacore.com>
7609
7610 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7611
3e65b3e9
TT
76122020-04-10 Tom Tromey <tromey@adacore.com>
7613
7614 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7615 separate debug files.
7616
13302e95
HD
76172020-04-10 Hannes Domani <ssbssa@yahoo.de>
7618
7619 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7620 Move to...
7621 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7622 ... here.
7623 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7624 Check for STATUS_WX86_BREAKPOINT.
7625 (windows_nat_target::wait): Same.
7626
bdfc1e8a
TV
76272020-04-10 Tom de Vries <tdevries@suse.de>
7628
7629 PR cli/25808
7630 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7631
f4460aec
SM
76322020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7633
7634 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7635 (Write After Approval): Remove Tom de Vries.
7636
a25198bb
BE
76372020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7638
7639 revert partially:
7640 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7641
aac66a4c
SM
7642 * buildsym.c (record_line): Fix undefined behavior and preserve
7643 lines at eof.
a25198bb 7644
206c98a6
KR
76452020-04-09 Kamil Rytarowski <n54@gmx.com>
7646
7647 * auxv.h (svr4_auxv_parse): New.
7648 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7649 and generic_auxv_parse.
7650 (svr4_auxv_parse): Add.
7651 * obsd-tdep.c: Include "auxv.h".
7652 (obsd_auxv_parse): Remove.
7653 (obsd_init_abi): Remove comment.
7654 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7655 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7656 * nbsd-tdep.c: Include "auxv.h".
7657 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7658
71fbdbaf
TT
76592020-04-08 Tom Tromey <tromey@adacore.com>
7660
7661 * nat/windows-nat.h (last_wait_event): Don't declare.
7662 (wait_for_debug_event): Update comment.
7663 * nat/windows-nat.c (last_wait_event): Now static.
7664
2c1d95e8
TT
76652020-04-08 Tom Tromey <tromey@adacore.com>
7666
7667 * windows-nat.c (wait_for_debug_event): Move to
7668 nat/windows-nat.c.
7669 * nat/windows-nat.h (wait_for_debug_event): Declare.
7670 * nat/windows-nat.c (wait_for_debug_event): Move from
7671 windows-nat.c. No longer static.
7672
d2977bc4
TT
76732020-04-08 Tom Tromey <tromey@adacore.com>
7674
7675 * windows-nat.c (get_windows_debug_event): Use
7676 fetch_pending_stop.
7677 * nat/windows-nat.h (fetch_pending_stop): Declare.
7678 * nat/windows-nat.c (fetch_pending_stop): New function.
7679
e758e19c
TT
76802020-04-08 Tom Tromey <tromey@adacore.com>
7681
7682 * windows-nat.c (windows_continue): Use matching_pending_stop and
7683 continue_last_debug_event.
7684 * nat/windows-nat.h (matching_pending_stop)
7685 (continue_last_debug_event): Declare.
7686 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7687 (matching_pending_stop, continue_last_debug_event): New
7688 functions.
7689
8d30e395
TT
76902020-04-08 Tom Tromey <tromey@adacore.com>
7691
7692 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7693 (handle_exception_result): Move to nat/windows-nat.h.
7694 (DEBUG_EXCEPTION_SIMPLE): Remove.
7695 (windows_nat::handle_ms_vc_exception): New function.
7696 (handle_exception): Move to nat/windows-nat.c.
7697 (get_windows_debug_event): Update.
7698 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7699 nat/windows-nat.c.
7700 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7701 (handle_exception_result): Move from windows-nat.c.
7702 (handle_exception): Declare.
7703 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7704 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7705 windows-nat.c.
7706
29de418d
TT
77072020-04-08 Tom Tromey <tromey@adacore.com>
7708
7709 * windows-nat.c (exception_count, event_count): Remove.
7710 (handle_exception, get_windows_debug_event)
7711 (do_initial_windows_stuff): Update.
7712
a816ba18
TT
77132020-04-08 Tom Tromey <tromey@adacore.com>
7714
7715 * windows-nat.c (windows_nat::handle_load_dll)
7716 (windows_nat::handle_unload_dll): Rename. No longer static.
7717 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7718 Declare.
7719
a00caa12
TT
77202020-04-08 Tom Tromey <tromey@adacore.com>
7721
7722 * complaints.h (stop_whining): Declare at top-level.
7723 (complaint): Don't declare stop_whining.
7724
d41b524f
TT
77252020-04-08 Tom Tromey <tromey@adacore.com>
7726
7727 * windows-nat.c (windows_nat::handle_output_debug_string):
7728 Rename. No longer static.
7729 * nat/windows-nat.h (handle_output_debug_string): Declare.
7730
3c76026d
TT
77312020-04-08 Tom Tromey <tromey@adacore.com>
7732
7733 * windows-nat.c (current_process_handle, current_process_id)
7734 (main_thread_id, last_sig, current_event, last_wait_event)
7735 (current_windows_thread, desired_stop_thread_id, pending_stops)
7736 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7737 (display_selectors, fake_create_process)
7738 (get_windows_debug_event): Update.
7739 * nat/windows-nat.h (current_process_handle, current_process_id)
7740 (main_thread_id, last_sig, current_event, last_wait_event)
7741 (current_windows_thread, desired_stop_thread_id, pending_stops)
7742 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7743 * nat/windows-nat.c (current_process_handle, current_process_id)
7744 (main_thread_id, last_sig, current_event, last_wait_event)
7745 (current_windows_thread, desired_stop_thread_id, pending_stops)
7746 (siginfo_er): New globals. Move from windows-nat.c.
7747
9d8679cc
TT
77482020-04-08 Tom Tromey <tromey@adacore.com>
7749
7750 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7751 (handle_load_dll): Update.
7752 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7753
28688adf
TT
77542020-04-08 Tom Tromey <tromey@adacore.com>
7755
7756 * windows-nat.c (enum thread_disposition_type): Move to
7757 nat/windows-nat.h.
7758 (windows_nat::thread_rec): Rename from thread_rec. No longer
7759 static.
7760 (windows_add_thread, windows_nat_target::fetch_registers)
7761 (windows_nat_target::store_registers, handle_exception)
7762 (windows_nat_target::resume, get_windows_debug_event)
7763 (windows_nat_target::get_tib_address)
7764 (windows_nat_target::thread_name)
7765 (windows_nat_target::thread_alive): Update.
7766 * nat/windows-nat.h (enum thread_disposition_type): Move from
7767 windows-nat.c.
7768 (thread_rec): Declare.
7769
4834dad0
TT
77702020-04-08 Tom Tromey <tromey@adacore.com>
7771
7772 * windows-nat.c: Add "using namespace".
7773 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7774 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7775
65bafd5b
TT
77762020-04-08 Tom Tromey <tromey@adacore.com>
7777
7778 * nat/windows-nat.h (struct windows_thread_info): Declare
7779 destructor.
7780 * nat/windows-nat.c (~windows_thread_info): New.
7781
0a4afda3
TT
77822020-04-08 Tom Tromey <tromey@adacore.com>
7783
7784 PR gdb/22992
7785 * windows-nat.c (current_event): Update comment.
7786 (last_wait_event, desired_stop_thread_id): New globals.
7787 (struct pending_stop): New.
7788 (pending_stops): New global.
7789 (windows_nat_target) <stopped_by_sw_breakpoint>
7790 <supports_stopped_by_sw_breakpoint>: New methods.
7791 (windows_fetch_one_register): Add assertions. Adjust PC.
7792 (windows_continue): Handle pending stops. Suspend other threads
7793 when stepping. Use last_wait_event
7794 (wait_for_debug_event): New function.
7795 (get_windows_debug_event): Use wait_for_debug_event. Handle
7796 pending stops. Queue spurious stops.
7797 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7798 (windows_nat_target::kill): Use wait_for_debug_event.
7799 * nat/windows-nat.h (struct windows_thread_info)
7800 <stopped_at_software_breakpoint>: New field.
7801 * nat/windows-nat.c (windows_thread_info::resume): Clear
7802 stopped_at_software_breakpoint.
7803
8e61ebec
TT
78042020-04-08 Tom Tromey <tromey@adacore.com>
7805
7806 * windows-nat.c (enum thread_disposition_type): New.
7807 (thread_rec): Replace "get_context" parameter with "disposition";
7808 change type.
7809 (windows_add_thread, windows_nat_target::fetch_registers)
7810 (windows_nat_target::store_registers, handle_exception)
7811 (windows_nat_target::resume, get_windows_debug_event)
7812 (windows_nat_target::get_tib_address)
7813 (windows_nat_target::thread_name)
7814 (windows_nat_target::thread_alive): Update.
7815
98a03287
TT
78162020-04-08 Tom Tromey <tromey@adacore.com>
7817
7818 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7819 (windows_continue): Use windows_continue::resume.
7820 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7821 resume>: Declare new methods.
7822 * nat/windows-nat.c: New file.
7823 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7824
7c7411bc
TT
78252020-04-08 Tom Tromey <tromey@adacore.com>
7826
7827 * windows-nat.c (windows_add_thread, windows_delete_thread)
7828 (windows_nat_target::fetch_registers)
7829 (windows_nat_target::store_registers, fake_create_process)
7830 (windows_nat_target::resume, windows_nat_target::resume)
7831 (get_windows_debug_event, windows_nat_target::wait)
7832 (windows_nat_target::pid_to_str)
7833 (windows_nat_target::get_tib_address)
7834 (windows_nat_target::get_ada_task_ptid)
7835 (windows_nat_target::thread_name)
7836 (windows_nat_target::thread_alive): Use lwp, not tid.
7837
2950fdf7
TT
78382020-04-08 Tom Tromey <tromey@adacore.com>
7839
7840 * windows-nat.c (handle_exception)
7841 (windows_nat_target::thread_name): Update.
7842 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7843 <name>: Now unique_xmalloc_ptr.
7844
62fe396b
TT
78452020-04-08 Tom Tromey <tromey@adacore.com>
7846
7847 * windows-nat.c (thread_rec)
7848 (windows_nat_target::fetch_registers): Update.
7849 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7850 Update comment.
7851 <debug_registers_changed, reload_context>: Now bool.
7852
e9534bd2
TT
78532020-04-08 Tom Tromey <tromey@adacore.com>
7854
7855 * windows-nat.c (windows_add_thread): Use new.
7856 (windows_init_thread_list, windows_delete_thread): Use delete.
7857 (get_windows_debug_event): Update.
7858 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7859 destructor, and initializers.
7860
ae1f8880
TT
78612020-04-08 Tom Tromey <tromey@adacore.com>
7862
7863 * windows-nat.c (struct windows_thread_info): Remove.
7864 * nat/windows-nat.h: New file.
7865
55a1e039
TT
78662020-04-08 Tom Tromey <tromey@adacore.com>
7867
7868 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7869 (thread_rec, windows_add_thread, windows_delete_thread)
7870 (windows_continue): Update.
7871
93366324
TT
78722020-04-08 Tom Tromey <tromey@adacore.com>
7873
7874 * windows-nat.c (struct windows_thread_info): Remove typedef.
7875 (thread_head): Remove.
7876 (thread_list): New global.
7877 (thread_rec, windows_add_thread, windows_init_thread_list)
7878 (windows_delete_thread, windows_continue): Update.
7879
0f2265e2
SM
78802020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7881
7882 * windows-tdep.h (windows_init_abi): Add comment.
7883 (cygwin_init_abi): New declaration.
7884 * windows-tdep.c: Split signal enumeration in two, one for
7885 Windows and one for Cygwin.
7886 (windows_gdb_signal_to_target): Only deal with signal of the
7887 Windows OS ABI.
7888 (cygwin_gdb_signal_to_target): New function.
7889 (windows_init_abi): Rename to windows_init_abi_common, don't set
7890 gdb_signal_to_target gdbarch method. Add new new function with
7891 this name.
7892 (cygwin_init_abi): New function.
7893 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7894 comment. Don't call windows_init_abi.
7895 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7896 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7897 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7898 i386_windows_init_abi_common, don't call windows_init_abi. Add
7899 a new function of this name.
7900 (i386_cygwin_init_abi): New function.
7901 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7902 OS ABI Cygwin.
7903
3810f182
SM
79042020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7905
7906 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7907 parameter.c.
7908 (dwarf2_read_gdb_index): Update.
7909
063f8e80
KR
79102020-04-07 Kamil Rytarowski <n54@gmx.com>
7911
7912 * nbsd-tdep.c: Include "objfiles.h".
7913 (nbsd_skip_solib_resolver): New.
7914 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7915
85a9510c 79162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7917
7918 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7919 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7920 with DW_LLE_base_addressx are being emitted in DWARFv5.
7921 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7922 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7923 unsigned integer.
7924
9fc3eaae 79252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7926
7927 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7928 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7929 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7930 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7931 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7932 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7933 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7934
7935
41144253 79362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7937
7938 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7939 (read_loclist_index): New function definition.
7940 (lookup_loclist_base): New function definition.
7941 (read_loclist_header): New function definition.
7942 (dwarf2_cu): Add loclist_base and loclist_header field.
7943 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7944 (read_full_die_1): Read the value of DW_AT_loclists_base.
7945 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7946 (read_attribute_value): Handle DW_FORM_loclistx.
7947 (skip_one_die): Handle DW_FORM_loclistx.
7948 (loclist_header): New structure declaration.
7949 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7950
9f4e76a4
SM
79512020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7952
7953 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7954 constructor. Remove `addr` parameter from other constructor and
7955 add `per_cu` parameter.
7956 * dwarf2/read.c (create_partial_symtab): Update.
7957
25c11aca
TV
79582020-04-07 Tom de Vries <tdevries@suse.de>
7959
7960 PR symtab/25796
7961 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7962 (partial_die_info::fixup): Inherit has_const_value.
7963
5707e24b
TV
79642020-04-07 Tom de Vries <tdevries@suse.de>
7965
7966 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7967 symbols without address.
7968
05f00e22
KR
79692020-04-06 Kamil Rytarowski <n54@gmx.com>
7970
7971 * nbsd-nat.h (struct thread_info): Add forward declaration.
7972 (nbsd_nat_target::thread_alive): Add.
7973 (nbsd_nat_target::thread_name): Likewise.
7974 (nbsd_nat_target::update_thread_list): Likewise.
7975 (update_thread_list::post_attach): Likewise.
7976 (post_attach::pid_to_str): Likewise.
7977 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7978 (nbsd_thread_lister): Add.
7979 (nbsd_nat_target::thread_alive): Likewise.
7980 (nbsd_nat_target::thread_name): Likewise.
7981 (nbsd_add_threads): Likewise.
7982 (update_thread_list::post_attach): Likewise.
7983 (nbsd_nat_target::update_thread_list): Likewise.
7984 (post_attach::pid_to_str): Likewise.
7985
6ee448cc
TT
79862020-04-06 Tom Tromey <tromey@adacore.com>
7987
7988 * ada-valprint.c (print_variant_part): Extract the variant field.
7989 (print_field_values): Use the field as the outer value when
7990 recursing.
7991
dea34e8c
TT
79922020-04-06 Tom Tromey <tromey@adacore.com>
7993
7994 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7995 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7996 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7997 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7998 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7999
93689ce9
TT
80002020-04-06 Tom Tromey <tromey@adacore.com>
8001
8002 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8003 TYPE_CODE_ERROR.
8004
79743962
KR
80052020-04-06 Kamil Rytarowski <n54@gmx.com>
8006
8007 * nbsd-tdep.c: Include "gdbarch.h".
8008 Define enum with NetBSD signal numbers.
8009 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8010 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8011 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8012 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8013 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8014 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8015 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8016 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8017 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8018 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8019 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8020 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8021
9e7c9a03
HD
80222020-04-03 Hannes Domani <ssbssa@yahoo.de>
8023
8024 PR gdb/25325
8025 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8026
d9e49b61
TT
80272020-04-03 Tom Tromey <tromey@adacore.com>
8028
8029 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8030 Read constant block.
8031
e0fc5c3f
SM
80322020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8033
8034 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8035 (gdb_bfd_get_full_section_contents): New declaration.
8036 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8037 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8038 gdb_bfd_get_full_section_contents.
8039
e2ff18a0
SM
80402020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8041
8042 * exec.c (build_section_table): Replace internal_error with
8043 gdb_assert.
8044 (section_table_xfer_memory_partial): Likewise.
8045 * mdebugread.c (parse_partial_symbols): Likewise.
8046 * psymtab.c (lookup_partial_symbol): Likewise.
8047 * utils.c (wrap_here): Likewise.
8048
0830d301
TT
80492020-04-02 Tom Tromey <tromey@adacore.com>
8050
8051 * f-lang.c (build_fortran_types): Use arch_type to initialize
8052 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8053
e7da7f8f
TT
80542020-04-02 Tom Tromey <tromey@adacore.com>
8055
8056 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8057 of attributes.
8058
c90d28ac
AB
80592020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8060 Bernd Edlinger <bernd.edlinger@hotmail.de>
8061 Tom Tromey <tromey@adacore.com>
8062
8063 * buildsym.c (buildsym_compunit::record_line): Remove
8064 deduplication code.
8065
1aa98955
TV
80662020-04-02 Tom de Vries <tdevries@suse.de>
8067
8068 PR ada/24671
8069 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8070
d3214198
TV
80712020-04-02 Tom de Vries <tdevries@suse.de>
8072
8073 * dwarf2/read.c (dwarf2_gdb_index_functions,
8074 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8075 NULL.
8076 * psymtab.c (psym_lookup_global_symbol_language): New function.
8077 (psym_functions): Init psym_lookup_global_symbol_language with
8078 psym_lookup_global_symbol_language.
8079 * symfile-debug.c (debug_sym_quick_functions): Init
8080 lookup_global_symbol_language with NULL.
8081 * symfile.c (set_initial_language): Remove fixme comment.
8082 * symfile.h (struct quick_symbol_functions): Add
8083 lookup_global_symbol_language.
8084 * symtab.c (find_quick_global_symbol_language): New function.
8085 (find_main_name): Use find_quick_global_symbol_language.
8086
2836752f
SM
80872020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8088
8089 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8090
64dc2d4b
BE
80912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8092
8093 * buildsym.c (record_line): Fix undefined behavior and preserve
8094 lines at eof.
8095
bbe3dc41
BE
80962020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8097
8098 * buildsym.c (record_line): Fix the resizing condition.
8099
6b4a335b
TT
81002020-04-01 Tom Tromey <tom@tromey.com>
8101
8102 * value.h (value_literal_complex): Add comment.
8103 * valops.c (value_literal_complex): Refer to value.h.
8104
3638a098
TT
81052020-04-01 Tom Tromey <tom@tromey.com>
8106
8107 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8108 (scalar_type): New rule, from typebase.
8109 (typebase): Use scalar_type. Recognize complex types.
8110 (field_name): Handle FLOAT_KEYWORD.
8111 (ident_tokens): Add _Complex and __complex__.
8112
c34e8714
TT
81132020-04-01 Tom Tromey <tom@tromey.com>
8114
8115 PR exp/25299:
8116 * valarith.c (promotion_type, complex_binop): New functions.
8117 (scalar_binop): Handle complex numbers. Use promotion_type.
8118 (value_pos, value_neg, value_complement): Handle complex numbers.
8119
fa649bb7
TT
81202020-04-01 Tom Tromey <tom@tromey.com>
8121
8122 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8123 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8124 (parse_number): Handle complex numbers.
8125
981c08ce
TT
81262020-04-01 Tom Tromey <tom@tromey.com>
8127
8128 * c-valprint.c (c_decorations): Change complex suffix to "i".
8129
4c99290d
TT
81302020-04-01 Tom Tromey <tom@tromey.com>
8131
8132 * valprint.c (generic_value_print_complex): Use accessors.
8133 * value.h (value_real_part, value_imaginary_part): Declare.
8134 * valops.c (value_real_part, value_imaginary_part): New
8135 functions.
8136 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8137
5b930b45
TT
81382020-04-01 Tom Tromey <tom@tromey.com>
8139
8140 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8141 (read_range_type): Update.
8142 * mdebugread.c (basic_type): Update.
8143 * go-lang.c (build_go_types): Use init_complex_type.
8144 * gdbtypes.h (struct main_type) <complex_type>: New member.
8145 (init_complex_type): Update.
8146 (arch_complex_type): Don't declare.
8147 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8148 Make name if none given. Use alloc_type_copy. Look for cached
8149 complex type.
8150 (arch_complex_type): Remove.
8151 (gdbtypes_post_init): Use init_complex_type.
8152 * f-lang.c (build_fortran_types): Use init_complex_type.
8153 * dwarf2/read.c (read_base_type): Update.
8154 * d-lang.c (build_d_types): Use init_complex_type.
8155 * ctfread.c (read_base_type): Update.
8156
53cccef1
TBA
81572020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8158
8159 * infrun.c (stop_all_threads): Update assertion, plus when
8160 stopping threads, take into account that we might be trying
8161 to stop an all-stop target.
8162 (stop_waiting): Call 'stop_all_threads' if there exists a
8163 non-stop target.
8164
a0714d30
TBA
81652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8166
8167 * target.h (exists_non_stop_target): New function declaration.
8168 * target.c (exists_non_stop_target): New function.
8169
60e22c1e
HD
81702020-04-01 Hannes Domani <ssbssa@yahoo.de>
8171
8172 PR gdb/24789
8173 * eval.c (is_integral_or_integral_reference): New function.
8174 (evaluate_subexp_standard): Allow integer references in
8175 pointer arithmetic.
8176
e139a727
TBA
81772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8178
8179 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8180 check for no ptid in the stop reply when the target is non-stop.
8181
e0802d59
TT
81822020-04-01 Tom Tromey <tromey@adacore.com>
8183
8184 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8185 "name" parameter to rvalue reference. Initialize m_name_holder.
8186 <lookup_name_info>: New overloads.
8187 <name>: Return gdb::string_view.
8188 <c_str>: New method.
8189 <make_ignore_params>: Update.
8190 <search_name_hash>: Update.
8191 <language_lookup_name>: Return const char *.
8192 <m_name>: Change type.
8193 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8194 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8195 (lookup_name_info::match_any): Update.
8196 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8197 Update.
8198 * minsyms.c (linkage_name_str): Update.
8199 * language.c (default_symbol_name_matcher): Update.
8200 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8201 Update.
8202 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8203 (ada_lookup_name_info::ada_lookup_name_info): Update.
8204 (literal_symbol_name_matcher): Update.
8205
8c072cb6
TT
82062020-04-01 Tom Tromey <tromey@adacore.com>
8207
8208 * psymtab.c (psymtab_search_name): Remove function.
8209 (psym_lookup_symbol): Create search name and lookup name here.
8210 (lookup_partial_symbol): Remove "name" parameter; add
8211 lookup_name.
8212 (psym_expand_symtabs_for_function): Update.
8213
6f29a534
TT
82142020-03-31 Joel Jones <joelkevinjones@gmail.com>
8215
8216 PR tui/25597:
8217 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8218
af62665e
TT
82192020-03-31 Tom Tromey <tromey@adacore.com>
8220
8221 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8222 memcpy.
8223
d1a89da5
NC
82242020-03-30 Nelson Chu <nelson.chu@sifive.com>
8225
8226 * features/riscv/32bit-csr.xml: Regenerated.
8227 * features/riscv/64bit-csr.xml: Regenerated.
8228
d8af9068
TT
82292020-03-30 Tom Tromey <tromey@adacore.com>
8230
8231 * ada-valprint.c (print_variant_part): Update.
8232 * ada-lang.h (ada_which_variant_applies): Update.
8233 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8234 outer_valaddr parameters; replace with "outer" value parameter.
8235 (to_fixed_variant_branch_type): Update.
8236
227c0bf4
PFC
82372020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8238
8239 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8240 <list>. Remove inclusion of observable.h.
8241 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8242 (struct arch_lwp_info): New struct.
8243 (class ppc_linux_dreg_interface): New class.
8244 (struct ppc_linux_process_info): New struct.
8245 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8246 <low_new_clone, low_forget_process, low_prepare_to_resume>
8247 <copy_thread_dreg_state, mark_thread_stale>
8248 <mark_debug_registers_changed, register_hw_breakpoint>
8249 <clear_hw_breakpoint, register_wp, clear_wp>
8250 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8251 <num_memory_accesses, get_trigger_type>
8252 <create_watchpoint_request, hwdebug_point_cmp>
8253 <init_arch_lwp_info, get_arch_lwp_info>
8254 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8255 methods.
8256 <struct ptid_hash>: New inner struct.
8257 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8258 members.
8259 (saved_dabr_value, hwdebug_info, max_slots_number)
8260 (struct hw_break_tuple, struct thread_points, ppc_threads)
8261 (have_ptrace_hwdebug_interface)
8262 (hwdebug_find_thread_points_by_tid)
8263 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8264 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8265 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8266 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8267 use m_dreg_interface.
8268 (hwdebug_point_cmp): Change to...
8269 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8270 reference arguments instead of pointers.
8271 (ppc_linux_nat_target::ranged_break_num_registers): Use
8272 m_dreg_interface.
8273 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8274 m_dreg_interface. Call register_hw_breakpoint.
8275 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8276 m_dreg_interface. Call clear_hw_breakpoint.
8277 (get_trigger_type): Change to...
8278 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8279 comment.
8280 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8281 use m_dreg_interface. Call register_hw_breakpoint.
8282 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8283 use m_dreg_interface. Call clear_hw_breakpoint.
8284 (can_use_watchpoint_cond_accel): Change to...
8285 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8286 method. Update comment, use m_dreg_interface and
8287 m_process_info.
8288 (calculate_dvc): Change to...
8289 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8290 m_dreg_interface.
8291 (num_memory_accesses): Change to...
8292 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8293 (check_condition): Change to...
8294 (ppc_linux_nat_target::check_condition): ...this method.
8295 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8296 comment, use m_dreg_interface.
8297 (create_watchpoint_request): Change to...
8298 (ppc_linux_nat_target::create_watchpoint_request): ...this
8299 method. Use m_dreg_interface.
8300 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8301 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8302 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8303 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8304 (ppc_linux_nat_target::low_forget_process)
8305 (ppc_linux_nat_target::low_new_fork)
8306 (ppc_linux_nat_target::low_new_clone)
8307 (ppc_linux_nat_target::low_delete_thread)
8308 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8309 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8310 only call mark_thread_stale.
8311 (ppc_linux_thread_exit): Remove.
8312 (ppc_linux_nat_target::stopped_data_address): Change to...
8313 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8314 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8315 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8316 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8317 comment. Call low_stopped_data_address.
8318 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8319 m_dreg_interface.
8320 (ppc_linux_nat_target::masked_watch_num_registers): Use
8321 m_dreg_interface.
8322 (ppc_linux_nat_target::copy_thread_dreg_state)
8323 (ppc_linux_nat_target::mark_thread_stale)
8324 (ppc_linux_nat_target::mark_debug_registers_changed)
8325 (ppc_linux_nat_target::register_hw_breakpoint)
8326 (ppc_linux_nat_target::clear_hw_breakpoint)
8327 (ppc_linux_nat_target::register_wp)
8328 (ppc_linux_nat_target::clear_wp)
8329 (ppc_linux_nat_target::init_arch_lwp_info)
8330 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8331 (_initialize_ppc_linux_nat): Remove observer callback.
8332
4db10d8f
PFC
83332020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8334
8335 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8336 (ppc_linux_nat_target::auxv_parse)
8337 (ppc_linux_nat_target::read_description)
8338 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8339 Move up.
8340
1310c1b0
PFC
83412020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8342
8343 * linux-nat.h (low_new_clone): New method.
8344 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8345
69b037c3
SM
83462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8347
8348 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8349 (dbx_expand_psymtab): ... this.
8350 (start_psymtab): Update.
8351 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8352 (mdebug_expand_psymtab): ... this.
8353 (parse_partial_symbols): Update.
8354 (new_psymtab): Update.
8355 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8356 (xcoff_expand_psymtab): ... this.
8357 (xcoff_start_psymtab): Update.
8358
48993951
SM
83592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8360
8361 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8362 <expand_dependencies>: ... this.
8363 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8364 (partial_symtab::expand_dependencies): ... this.
8365 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8366 Update.
8367 (dwarf2_psymtab::expand_psymtab): Update.
8368 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8369 * mdebugread.c (psymtab_to_symtab_1): Update.
8370 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8371
3ad83046
SM
83722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8373
8374 * psympriv.h (discard_psymtab): Remove.
8375 * dbxread.c (dbx_end_psymtab): Update.
8376 * xcoffread.c (xcoff_end_psymtab): Update.
8377
4d1b9ab6
TT
83782020-03-28 Tom Tromey <tom@tromey.com>
8379
8380 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8381 comment.
8382
f1749218
TT
83832020-03-28 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8386
ebea7626
HD
83872020-03-27 Hannes Domani <ssbssa@yahoo.de>
8388
8389 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8390
a879b4d5
JB
83912020-03-26 John Baldwin <jhb@FreeBSD.org>
8392
8393 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8394
0826b30a
TT
83952020-03-26 Tom Tromey <tom@tromey.com>
8396
8397 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8398 (mark_common_block_symbol_computed, read_tag_string_type)
8399 (attr_to_dynamic_prop, read_subrange_type): Update.
8400 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8401 to be methods on struct attribute.
8402 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8403 (read_call_site_scope, partial_die_info::read)
8404 (partial_die_info::read, lookup_die_type, follow_die_ref):
8405 Update.
8406 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8407 from dwarf2_get_ref_die_offset.
8408 (attribute::constant_value): New method, from
8409 dwarf2_get_attr_constant_value.
8410 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8411 Declare method.
8412 <constant_value>: New method.
8413
2b2558bf
TT
84142020-03-26 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8417 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8418 (dwarf_type_encoding_name): Move to stringify.c.
8419 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8420 * dwarf2/stringify.c: New file.
8421 * dwarf2/stringify.h: New file.
8422
eeb64781
TT
84232020-03-26 Tom Tromey <tom@tromey.com>
8424
8425 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8426 Rewrite.
8427
a39fdb41
TT
84282020-03-26 Tom Tromey <tom@tromey.com>
8429
8430 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8431 methods.
8432 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8433 (lookup_ranges_base): Likewise.
8434 (read_cutu_die_from_dwo, read_full_die_1): Update.
8435
436c571c
TT
84362020-03-26 Tom Tromey <tom@tromey.com>
8437
8438 * dwarf2/read.c (read_import_statement, read_file_scope)
8439 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8440 (read_lexical_block_scope, read_call_site_scope)
8441 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8442 (handle_struct_member_die, process_structure_scope)
8443 (update_enumeration_type_from_children)
8444 (process_enumeration_scope, read_array_type, read_common_block)
8445 (read_namespace, read_module, read_subroutine_type): Update.
8446 (sibling_die): Remove.
8447
052c8bb8
TT
84482020-03-26 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8451 (build_type_psymtabs_reader, read_structure_type)
8452 (read_enumeration_type, read_full_die_1): Update.
8453 (dwarf2_attr_no_follow): Move to die.h.
8454 * dwarf2/die.h (struct die_info) <attr>: New method.
8455
2b24b6e4
TT
84562020-03-26 Tom Tromey <tom@tromey.com>
8457
8458 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8459 <base_address>: Now an optional.
8460 (dwarf2_find_base_address, dwarf2_rnglists_process)
8461 (dwarf2_ranges_process, fill_in_loclist_baton)
8462 (dwarf2_symbol_mark_computed): Update.
8463
c2d50fd0
TT
84642020-03-26 Tom Tromey <tom@tromey.com>
8465
8466 * dwarf2/read.c (struct die_info): Move to die.h.
8467 * dwarf2/die.h: New file.
8468
0df7ad3a
TT
84692020-03-26 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8472 * dwarf2/read.c
8473 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8474 Move to line-header.c.
8475 (read_checked_initial_length_and_offset, read_formatted_entries):
8476 Likewise.
8477 (dwarf_decode_line_header): Split into two.
8478 * dwarf2/line-header.c
8479 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8480 Move from read.c.
8481 (read_checked_initial_length_and_offset, read_formatted_entries):
8482 Likewise.
8483 (dwarf_decode_line_header): New function, split from read.c.
8484
86c0bb4c
TT
84852020-03-26 Tom Tromey <tom@tromey.com>
8486
8487 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8488 Declare method.
8489 * dwarf2/read.c (read_attribute_value): Update.
8490 (dwarf2_per_objfile::read_line_string): Rename from
8491 read_indirect_line_string.
8492 (read_formatted_entries): Update.
8493
2ef46c2f
TT
84942020-03-26 Tom Tromey <tom@tromey.com>
8495
8496 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8497 variable.
8498
4f9c1eda
TT
84992020-03-26 Tom Tromey <tom@tromey.com>
8500
8501 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8502 const.
8503 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8504 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8505 parameter const.
8506
5a0e026f
TT
85072020-03-26 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8510 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8511 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8512 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8513
8844c11b
TT
85142020-03-26 Tom Tromey <tom@tromey.com>
8515
8516 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8517 file_names_size, file_full_name, file_file_name>: Use const.
8518 <file_name_at, file_names>: Add const overload.
8519 * dwarf2/line-header.c (line_header::file_file_name)
8520 (line_header::file_full_name): Update.
8521
c90ec28a
TT
85222020-03-26 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8525 (macro_start_file, consume_improper_spaces)
8526 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8527 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8528 (dwarf_decode_macros): Move to macro.c.
8529 * dwarf2/macro.c: New file.
8530 * dwarf2/macro.h: New file.
8531 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8532
4f44ae6c
TT
85332020-03-26 Tom Tromey <tom@tromey.com>
8534
8535 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8536 method.
8537 * dwarf2/section.c: New method. From
8538 read_indirect_string_at_offset_from.
8539 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8540 (read_indirect_string_at_offset_from): Move to section.c.
8541 (read_indirect_string_at_offset): Rewrite.
8542 (read_indirect_line_string_at_offset): Remove.
8543 (read_indirect_string, read_indirect_line_string)
8544 (dwarf_decode_macro_bytes): Update.
8545
a0194fa8
TT
85462020-03-26 Tom Tromey <tom@tromey.com>
8547
8548 * dwarf2/section.h (struct dwarf2_section_info)
8549 <overload_complaint>: Declare.
8550 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8551 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8552 Rename from dwarf2_section_buffer_overflow_complaint.
8553 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8554 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8555
3d27bbdb
TT
85562020-03-26 Tom Tromey <tom@tromey.com>
8557
8558 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8559 Declare.
8560 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8561 Move from read.c.
8562 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8563 to section.c.
8564
9eac9650
TT
85652020-03-26 Tom Tromey <tom@tromey.com>
8566
8567 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8568
bf80d710
TT
85692020-03-26 Tom Tromey <tom@tromey.com>
8570
8571 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8572 "builder".
8573 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8574 parameter.
8575 (dwarf_decode_macros): Update.
8576
0314b390
TT
85772020-03-26 Tom Tromey <tom@tromey.com>
8578
8579 * dwarf2/read.c (read_attribute_value): Update.
8580 (read_indirect_string_from_dwz): Move to dwz.c; change into
8581 method.
8582 (dwarf_decode_macro_bytes): Update.
8583 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8584 * dwarf2/dwz.c: New file.
8585 * Makefile.in (COMMON_SFILES): Add dwz.c.
8586
9fda78b6
TT
85872020-03-26 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8590 * dwarf2/read.c: Add include.
8591 * dwarf2/index-write.c: Add include.
8592 * dwarf2/index-cache.c: Add include.
8593 * dwarf2/dwz.h: New file.
8594
33aa3c10
TT
85952020-03-25 Tom Tromey <tom@tromey.com>
8596
8597 * compile/compile-object-load.c (get_out_value_type): Mention
8598 correct symbol name in error message.
8599
d503b685
HD
86002020-03-25 Hannes Domani <ssbssa@yahoo.de>
8601
8602 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8603
7b1eff95
TV
86042020-03-25 Tom de Vries <tdevries@suse.de>
8605
8606 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8607 * symmisc.c (dump_symtab_1): Print user and includes fields.
8608 (maintenance_info_symtabs): Same.
8609
dd895392
AB
86102020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8611
8612 PR gdb/25534
8613 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8614 (riscv_regcache_cooked_write): New function.
8615 (riscv_push_dummy_call): Use new function.
8616 (riscv_return_value): Likewise.
8617
5ab2fbf1
SM
86182020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8619
8620 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8621 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8622 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8623 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8624 * infrun.c (follow_fork): Likewise.
8625 (follow_fork_inferior): Likewise.
8626 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8627 * linux-nat.h (class linux_nat_target): Likewise.
8628 * remote.c (class remote_target) <follow_fork>: Likewise.
8629 (remote_target::follow_fork): Likewise.
8630 * target-delegates.c: Re-generate.
8631 * target.c (default_follow_fork): Likewise.
8632 (target_follow_fork): Likewise.
8633 * target.h (struct target_ops) <follow_fork>: Likewise.
8634 (target_follow_fork): Likewise.
8635
a64fafb5
TV
86362020-03-24 Tom de Vries <tdevries@suse.de>
8637
8638 * psymtab.c (maintenance_info_psymtabs): Print user field.
8639
fe26d3a3
TT
86402020-03-20 Tom Tromey <tromey@adacore.com>
8641
8642 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8643 const.
8644 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8645 const.
8646
c884cc46
SM
86472020-03-20 Simon Marchi <simon.marchi@efficios.com>
8648
8649 * ptrace.m4: Don't check for ptrace declaration.
8650 * config.in: Re-generate.
8651 * configure: Re-generate.
8652 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8653 not defined.
8654
1ff700c2
KR
86552020-03-20 Kamil Rytarowski <n54@gmx.com>
8656
8657 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8658 `PTRACE_TYPE_RET'.
8659 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8660 * sparc-nat.c (gdb_ptrace): Likewise.
8661 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8662
f7d4f0b1
TT
86632020-03-20 Tom Tromey <tromey@adacore.com>
8664
8665 * c-exp.y (lex_one_token): Fix assert.
8666
f67210ff
TT
86672020-03-20 Tom Tromey <tromey@adacore.com>
8668
8669 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8670 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8671 strncpy call.
8672
1773be9e
TT
86732020-03-20 Tom Tromey <tromey@adacore.com>
8674
8675 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8676
70304be9
TT
86772020-03-20 Tom Tromey <tromey@adacore.com>
8678
8679 * ada-valprint.c (print_variant_part): Remove parameters; switch
8680 to value-based API.
8681 (print_field_values): Likewise.
8682 (ada_val_print_struct_union): Likewise.
8683 (ada_value_print_1): Update.
8684
9faa006d
KR
86852020-03-20 Kamil Rytarowski <n54@gmx.com>
8686
8687 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8688 nbsd_nat_target instead of inf_ptrace_target.
8689 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8690 nbsd_nat_target.
8691
4a90f062
KR
86922020-03-20 Kamil Rytarowski <n54@gmx.com>
8693
8694 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8695 it to the ptrace call.
8696 * (store_registers): Likewise.
8697
86982020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8699
8700 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8701 it to the ptrace call.
8702 * (store_registers): Likewise.
8703
2d07da27
LM
87042020-03-19 Luis Machado <luis.machado@linaro.org>
8705
8706 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8707 valid, fetch vg value from ptrace.
8708
f09db380
KR
87092020-03-19 Kamil Rytarowski <n54@gmx.com>
8710 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8711 * inf-ptrace.c: Likewise.
8712 * (gdb_ptrace): Add.
8713 * (inf_ptrace_target::resume): Update.
8714 * (inf_ptrace_target::xfer_partial): Likewise.
8715 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8716 * (inf_ptrace_peek_poke): Update.
8717
fcc7376e
KR
87182020-03-19 Kamil Rytarowski <n54@gmx.com>
8719
8720 * x86-bsd-nat.c (gdb_ptrace): New.
8721 * (x86bsd_dr_set): Add new argument `ptid'.
8722 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8723 x86bsd_dr_set_addr): Update.
8724
cada5fc9
AB
87252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * remote.c (remote_target::process_stop_reply): Handle events for
8728 all threads differently.
8729
19a2740f
AB
87302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * completer.c (completion_tracker::remove_completion): Define new
8733 function.
8734 * completer.h (completion_tracker::remove_completion): Declare new
8735 function.
8736 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8737 when adding a C++ function symbol.
8738
724fd9ba
AB
87392020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8740
8741 * completer.c (completion_tracker::completion_hash_entry): Define
8742 new class.
8743 (advance_to_filename_complete_word_point): Call
8744 recompute_lowest_common_denominator.
8745 (completion_tracker::completion_tracker): Call discard_completions
8746 to setup the hash table.
8747 (completion_tracker::discard_completions): Allow for being called
8748 from the constructor, pass new equal function, and element deleter
8749 when constructing the hash table. Initialise new class member
8750 variables.
8751 (completion_tracker::maybe_add_completion): Remove use of
8752 m_entries_vec, and store more information into m_entries_hash.
8753 (completion_tracker::recompute_lcd_visitor): New function, most
8754 content taken from...
8755 (completion_tracker::recompute_lowest_common_denominator):
8756 ...here, this now just visits each item in the hash calling the
8757 above visitor.
8758 (completion_tracker::build_completion_result): Remove use of
8759 m_entries_vec, call recompute_lowest_common_denominator.
8760 * completer.h (completion_tracker::have_completions): Remove use
8761 of m_entries_vec.
8762 (completion_tracker::completion_hash_entry): Declare new class.
8763 (completion_tracker::recompute_lowest_common_denominator): Change
8764 function signature.
8765 (completion_tracker::recompute_lcd_visitor): Declare new function.
8766 (completion_tracker::m_entries_vec): Delete.
8767 (completion_tracker::m_entries_hash): Initialize to NULL.
8768 (completion_tracker::m_lowest_common_denominator_valid): New
8769 member variable.
8770 (completion_tracker::m_lowest_common_denominator_max_length): New
8771 member variable.
8772
5a82b8a1
KR
87732020-03-17 Kamil Rytarowski <n54@gmx.com>
8774
8775 * regformats/regdef.h: Put reg in gdb namespace.
8776
fb516a69
KR
87772020-03-17 Kamil Rytarowski <n54@gmx.com>
8778
8779 * i386-bsd-nat.c (gdb_ptrace): New.
8780 * (i386bsd_fetch_inferior_registers,
8781 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8782 * (i386bsd_fetch_inferior_registers,
8783 i386bsd_store_inferior_registers) Use gdb_ptrace.
8784
1c0aa1fb
KR
87852020-03-17 Kamil Rytarowski <n54@gmx.com>
8786
8787 * amd64-bsd-nat.c (gdb_ptrace): New.
8788 * (amd64bsd_fetch_inferior_registers,
8789 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8790 * (amd64bsd_fetch_inferior_registers,
8791 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8792
5ccd2fb7
KR
87932020-03-17 Kamil Rytarowski <n54@gmx.com>
8794
8795 * user-regs.c (user_reg::read): Rename to...
8796 (user_reg::xread): ...this.
8797 * (append_user_reg): Rename argument `read' to `xread'.
8798 * (user_reg_add_builtin): Likewise.
8799 * (user_reg_add): Likewise.
8800 * (value_of_user_reg): Likewise.
8801
2108a63a
KR
88022020-03-17 Kamil Rytarowski <n54@gmx.com>
8803
8804 * sparc-nat.c (gdb_ptrace): New.
8805 * sparc-nat.c (sparc_fetch_inferior_registers)
8806 (sparc_store_inferior_registers) Remove obsolete comment.
8807 * sparc-nat.c (sparc_fetch_inferior_registers)
8808 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8809 * sparc-nat.c (sparc_fetch_inferior_registers)
8810 (sparc_store_inferior_registers) Use gdb_ptrace.
8811
a225c9a8
KR
88122020-03-17 Kamil Rytarowski <n54@gmx.com>
8813
8814 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8815 it to the ptrace call.
8816 * sh-nbsd-nat.c (store_registers): Likewise.
8817
98097623
KR
88182020-03-17 Kamil Rytarowski <n54@gmx.com>
8819
8820 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8821 nbsd_nat_target instead of inf_ptrace_target.
8822 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8823 nbsd_nat_target.
8824
9e38d619
KR
88252020-03-17 Kamil Rytarowski <n54@gmx.com>
8826
8827 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8828
a2ecbe9f
KR
88292020-03-17 Kamil Rytarowski <n54@gmx.com>
8830
8831 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8832 <sys/sysctl.h>.
8833 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8834
58990295
TV
88352020-03-17 Tom de Vries <tdevries@suse.de>
8836
8837 PR gdb/23710
8838 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8839 fields.
8840 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8841 fields.
8842 (process_imported_unit_die): Skip import of c++ CUs.
8843
771dd3a8
TT
88442020-03-16 Tom Tromey <tom@tromey.com>
8845
8846 * p-valprint.c (pascal_object_print_value): Initialize
8847 base_value.
8848
817a7585
AK
88492020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8850 Shahab Vahedi <shahab@synopsys.com>
8851
8852 * Makefile.in: Add arch/arc.o
8853 * configure.tgt: Likewise.
8854 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8855 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8856 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8857 * arc-tdep.h (arc_read_description): Add proto type.
8858 * arch/arc.c: New file.
8859 * arch/arc.h: Likewise.
8860 * features/Makefile: Replace old target descriptions with new.
8861 * features/arc-arcompact.c: Remove.
8862 * features/arc-arcompact.xml: Likewise.
8863 * features/arc-v2.c: Likewise
8864 * features/arc-v2.xml: Likewise
8865 * features/arc/aux-arcompact.xml: New file.
8866 * features/arc/aux-v2.xml: Likewise.
8867 * features/arc/core-arcompact.xml: Likewise.
8868 * features/arc/core-v2.xml: Likewise.
8869 * features/arc/aux-arcompact.c: Generate.
8870 * features/arc/aux-v2.c: Likewise.
8871 * features/arc/core-arcompact.c: Likewise.
8872 * features/arc/core-v2.c: Likewise.
8873 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8874
67430cd0
TT
88752020-03-16 Tom Tromey <tromey@adacore.com>
8876
8877 PR gdb/25663:
8878 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8879 putting value into bcache.
8880
30efb6c7
SM
88812020-03-16 Simon Marchi <simon.marchi@efficios.com>
8882
8883 PR gdb/21500
8884 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8885 to...
8886 (amd64_windows_init_abi_common): ... this. Don't set size of
8887 long type.
8888 (amd64_windows_init_abi): New function.
8889 (amd64_cygwin_init_abi): New function.
8890 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8891 the Cygwin OS ABI.
8892 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8893 comment.
8894
8db52437
SM
88952020-03-16 Simon Marchi <simon.marchi@efficios.com>
8896
8897 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8898 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8899 (pe_import_directory_entry): New struct type.
8900 (is_linked_with_cygwin_dll): New function.
8901 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8902 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8903 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8904
5982a56a
SM
89052020-03-16 Simon Marchi <simon.marchi@efficios.com>
8906
8907 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8908 i386_cygwin_core_osabi_sniffer.
8909
7a1998df
SM
89102020-03-16 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * i386-cygwin-tdep.c: Rename to...
8913 * i386-windows-tdep.c: ... this.
8914 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8915 i386-windows-tdep.c.
8916 * configure.tgt: Likewise.
8917
053205cc
SM
89182020-03-16 Simon Marchi <simon.marchi@efficios.com>
8919
8920 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8921 * osabi.c (gdb_osabi_names): Add "Windows".
8922 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8923 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8924 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8925 i386_cygwin_osabi_sniffer.
8926 (_initialize_i386_cygwin_tdep): Register OS ABI
8927 GDB_OSABI_WINDOWS for i386.
8928 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8929 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8930 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8931 for x86-64.
8932 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8933 when the target matches '*-*-mingw*'.
8934
fe4b2ee6
SM
89352020-03-16 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * defs.h (enum gdb_osabi): Move to...
8938 * osabi.h (enum gdb_osabi): ... here.
8939 * gdbarch.sh: Include osabi.h in gdbarch.h.
8940 * gdbarch.h: Re-generate.
8941
cb9b645d
SM
89422020-03-16 Simon Marchi <simon.marchi@efficios.com>
8943
8944 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8945 function.
8946 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8947
3293bbaf
TT
89482020-03-14 Tom Tromey <tom@tromey.com>
8949
8950 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8951 for C++.
8952 (c_type_print_modifier): Likewise. Add "language" parameter.
8953 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8954 (c_type_print_base_1): Update.
8955 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8956 constants.
8957 * type-stack.c (type_stack::insert): Handle tp_atomic and
8958 tp_restrict.
8959 (type_stack::follow_type_instance_flags): Likewise.
8960 (type_stack::follow_types): Likewise. Merge type-following code.
8961 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8962 (space_identifier, cv_with_space_id)
8963 (const_or_volatile_or_space_identifier_noopt)
8964 (const_or_volatile_or_space_identifier): Remove.
8965 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8966 rules.
8967 (ptr_operator, typebase): Update.
8968 (enum token_flag) <FLAG_C>: New constant.
8969 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8970 "_Atomic".
8971 (lex_one_token): Handle FLAG_C.
8972
154151a6
KR
89732020-03-14 Kamil Rytarowski <n54@gmx.com>
8974
8975 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8976 it to the ptrace call.
8977 * m68k-bsd-nat.c (store_registers): Likewise.
8978
bc107784
KR
89792020-03-14 Kamil Rytarowski <n54@gmx.com>
8980
8981 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8982 gdb_byte *.
8983 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8984 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8985 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8986
01a80117
KR
89872020-03-14 Kamil Rytarowski <n54@gmx.com>
8988
8989 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8990 nbsd_nat_target instead of inf_ptrace_target.
8991 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8992 nbsd_nat_target.
8993
f90280ca
KR
89942020-03-14 Kamil Rytarowski <n54@gmx.com>
8995
8996 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8997 register_t.
8998
6def66f1
KR
89992020-03-14 Kamil Rytarowski <n54@gmx.com>
9000
9001 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9002 it to the ptrace call.
9003 * alpha-bsd-nat.c (store_registers): Likewise.
9004
66eaca97
KR
90052020-03-14 Kamil Rytarowski <n54@gmx.com>
9006
9007 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9008 includes.
9009 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9010 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9011 fill_fpregset): Likewise.
9012
4fed520b
KR
90132020-03-14 Kamil Rytarowski <n54@gmx.com>
9014
9015 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9016 nbsd_nat_target instead of inf_ptrace_target.
9017 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9018 nbsd_nat_target.
9019
2190cf06
KR
90202020-03-14 Kamil Rytarowski <n54@gmx.com>
9021
9022 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9023 register_t.
9024
75c56d3d
KR
90252020-03-14 Kamil Rytarowski <n54@gmx.com>
9026
9027 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9028 it to the ptrace call.
9029 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9030 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9031 * arm-nbsd-nat.c (store_register): Likewise.
9032 * arm-nbsd-nat.c (store_regs): Likewise.
9033 * arm-nbsd-nat.c (store_fp_register): Likewise.
9034 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9035
6018d381
KR
90362020-03-14 Kamil Rytarowski <n54@gmx.com>
9037
9038 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9039 nbsd_nat_target instead of inf_ptrace_target.
9040 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9041 nbsd_nat_target.
9042
013f99f0
KR
90432020-03-14 Kamil Rytarowski <n54@gmx.com>
9044
9045 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9046 it to the ptrace call.
9047 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9048
12753073
KR
90492020-03-14 Kamil Rytarowski <n54@gmx.com>
9050
6227b330
KR
9051 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9052 it to the ptrace call.
9053 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9054
90552020-03-14 Kamil Rytarowski <n54@gmx.com>
9056
9057 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9058 gdb_byte *.
12753073
KR
9059 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9060
d5be5fa4
KR
90612020-03-14 Kamil Rytarowski <n54@gmx.com>
9062
9063 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9064 instead of inf_ptrace_target.
9065 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9066 nbsd_nat_target.
9067
8110f842
KR
90682020-03-14 Kamil Rytarowski <n54@gmx.com>
9069
9070 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9071 register_t.
9072
52feded7
KR
90732020-03-14 Kamil Rytarowski <n54@gmx.com>
9074
9075 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9076 register_t.
9077
25567eee
KR
90782020-03-14 Kamil Rytarowski <n54@gmx.com>
9079
9080 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9081 register_t.
9082
426a9c18
TT
90832020-03-13 Tom Tromey <tom@tromey.com>
9084
9085 * value.h (val_print): Don't declare.
9086 * valprint.h (val_print_array_elements)
9087 (val_print_scalar_formatted, generic_val_print): Don't declare.
9088 * valprint.c (generic_val_print_array): Take a struct value.
9089 (generic_val_print_ptr, generic_val_print_memberptr)
9090 (generic_val_print_bool, generic_val_print_int)
9091 (generic_val_print_char, generic_val_print_complex)
9092 (generic_val_print): Remove.
9093 (generic_value_print): Update.
9094 (do_val_print): Remove unused parameters. Don't call
9095 la_val_print.
9096 (val_print): Remove.
9097 (common_val_print): Update. Don't call value_check_printable.
9098 (val_print_scalar_formatted, val_print_array_elements): Remove.
9099 * rust-lang.c (rust_val_print): Remove.
9100 (rust_language_defn): Update.
9101 * p-valprint.c (pascal_val_print): Remove.
9102 (pascal_value_print_inner): Update.
9103 (pascal_object_print_val_fields, pascal_object_print_val):
9104 Remove.
9105 (pascal_object_print_static_field): Update.
9106 * p-lang.h (pascal_val_print): Don't declare.
9107 * p-lang.c (pascal_language_defn): Update.
9108 * opencl-lang.c (opencl_language_defn): Update.
9109 * objc-lang.c (objc_language_defn): Update.
9110 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9111 * m2-lang.h (m2_val_print): Don't declare.
9112 * m2-lang.c (m2_language_defn): Update.
9113 * language.h (struct language_defn) <la_val_print>: Remove.
9114 * language.c (unk_lang_value_print_inner): Rename. Change
9115 argument types.
9116 (unknown_language_defn, auto_language_defn): Update.
9117 * go-valprint.c (go_val_print): Remove.
9118 * go-lang.h (go_val_print): Don't declare.
9119 * go-lang.c (go_language_defn): Update.
9120 * f-valprint.c (f_val_print): Remove.
9121 * f-lang.h (f_value_print): Don't declare.
9122 * f-lang.c (f_language_defn): Update.
9123 * d-valprint.c (d_val_print): Remove.
9124 * d-lang.h (d_value_print): Don't declare.
9125 * d-lang.c (d_language_defn): Update.
9126 * cp-valprint.c (cp_print_value_fields)
9127 (cp_print_value_fields_rtti, cp_print_value): Remove.
9128 (cp_print_static_field): Update.
9129 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9130 (c_val_print_struct, c_val_print_union, c_val_print_int)
9131 (c_val_print_memberptr, c_val_print): Remove.
9132 * c-lang.h (c_val_print_array, cp_print_value_fields)
9133 (cp_print_value_fields_rtti): Don't declare.
9134 * c-lang.c (c_language_defn, cplus_language_defn)
9135 (asm_language_defn, minimal_language_defn): Update.
9136 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9137 (ada_val_print_enum): Take a struct value.
9138 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9139 (ada_val_print): Remove.
9140 (ada_value_print_1): Update.
9141 (printable_val_type): Remove.
9142 * ada-lang.h (ada_val_print): Don't declare.
9143 * ada-lang.c (ada_language_defn): Update.
9144
42331a1e
TT
91452020-03-13 Tom Tromey <tom@tromey.com>
9146
9147 * valprint.c (do_val_print): Update.
9148 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9149 a struct value.
9150 (value_to_value_object_no_release): Declare.
9151 * python/py-value.c (value_to_value_object_no_release): New
9152 function.
9153 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9154 struct value.
9155 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9156 function.
9157 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9158 a struct value.
9159 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9160 Declare.
9161 (gdbscm_apply_val_pretty_printer): Take a struct value.
9162 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9163 value.
9164 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9165 value.
9166 * extension-priv.h (struct extension_language_ops)
9167 <apply_val_pretty_printer>: Take a struct value.
9168 * cp-valprint.c (cp_print_value): Create a struct value.
9169 (cp_print_value): Update.
9170
3a916a97
TT
91712020-03-13 Tom Tromey <tom@tromey.com>
9172
9173 * ada-valprint.c (print_field_values): Call common_val_print.
9174
b59eac37
TT
91752020-03-13 Tom Tromey <tom@tromey.com>
9176
9177 * ada-valprint.c (val_print_packed_array_elements): Remove
9178 bitoffset and val parameters. Call common_val_print.
9179 (ada_val_print_string): Remove offset, address, and original_value
9180 parameters.
9181 (ada_val_print_array): Update.
9182 (ada_value_print_array): New function.
9183 (ada_value_print_1): Call it.
9184
03371129
TT
91852020-03-13 Tom Tromey <tom@tromey.com>
9186
9187 * ada-valprint.c (ada_value_print): Use common_val_print.
9188
2e088f8b
TT
91892020-03-13 Tom Tromey <tom@tromey.com>
9190
9191 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9192
39ef85a8
TT
91932020-03-13 Tom Tromey <tom@tromey.com>
9194
9195 * ada-valprint.c (ada_value_print_num): New function.
9196 (ada_value_print_1): Use it.
9197
b9fa6e07
TT
91982020-03-13 Tom Tromey <tom@tromey.com>
9199
9200 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9201
416595d6
TT
92022020-03-13 Tom Tromey <tom@tromey.com>
9203
9204 * ada-valprint.c (ada_value_print_ptr): New function.
9205 (ada_value_print_1): Use it.
9206
5b5e15ec
TT
92072020-03-13 Tom Tromey <tom@tromey.com>
9208
9209 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9210 call common_val_print.
9211 (ada_val_print_1): Update.
9212 (ada_value_print_1): New function.
9213 (ada_value_print_inner): Rewrite.
9214
fbf54e75
TT
92152020-03-13 Tom Tromey <tom@tromey.com>
9216
9217 * cp-valprint.c (cp_print_value_fields): Update.
9218 (cp_print_value): New function.
9219
64b653ca
TT
92202020-03-13 Tom Tromey <tom@tromey.com>
9221
9222 * m2-valprint.c (m2_value_print_inner): Use
9223 cp_print_value_fields.
9224 * cp-valprint.c (cp_print_value_fields): New function.
9225 * c-valprint.c (c_value_print_struct): New function.
9226 (c_value_print_inner): Use c_value_print_struct.
9227 * c-lang.h (cp_print_value_fields): Declare.
9228
6999f067
TT
92292020-03-13 Tom Tromey <tom@tromey.com>
9230
9231 * c-valprint.c (c_value_print_array): New function.
9232 (c_value_print_inner): Use it.
9233
ce80b8bd
TT
92342020-03-13 Tom Tromey <tom@tromey.com>
9235
9236 * c-valprint.c (c_value_print_memberptr): New function.
9237 (c_value_print_inner): Use it.
9238
2faac269
TT
92392020-03-13 Tom Tromey <tom@tromey.com>
9240
9241 * c-valprint.c (c_value_print_int): New function.
9242 (c_value_print_inner): Use it.
9243
da3e2c29
TT
92442020-03-13 Tom Tromey <tom@tromey.com>
9245
9246 * c-valprint.c (c_value_print_ptr): New function.
9247 (c_value_print_inner): Use it.
9248
50836231
TT
92492020-03-13 Tom Tromey <tom@tromey.com>
9250
9251 * c-valprint.c (c_value_print_inner): Rewrite.
9252
4f412b6e
TT
92532020-03-13 Tom Tromey <tom@tromey.com>
9254
9255 * valprint.c (generic_value_print_complex): New function.
9256 (generic_value_print): Use it.
9257
f5354008
TT
92582020-03-13 Tom Tromey <tom@tromey.com>
9259
9260 * valprint.c (generic_val_print_float): Don't call
9261 val_print_scalar_formatted.
9262 (generic_val_print, generic_value_print): Update.
9263
3eec3b05
TT
92642020-03-13 Tom Tromey <tom@tromey.com>
9265
9266 * valprint.c (generic_value_print_char): New function
9267 (generic_value_print): Use it.
9268
fdddfccb
TT
92692020-03-13 Tom Tromey <tom@tromey.com>
9270
9271 * valprint.c (generic_value_print_int): New function.
9272 (generic_value_print): Use it.
9273
6dde7521
TT
92742020-03-13 Tom Tromey <tom@tromey.com>
9275
9276 * valprint.c (generic_value_print_bool): New function.
9277 (generic_value_print): Use it.
9278
4112d2e6
TT
92792020-03-13 Tom Tromey <tom@tromey.com>
9280
9281 * valprint.c (generic_val_print_func): Simplify.
9282 (generic_val_print, generic_value_print): Update.
9283
65786af6
TT
92842020-03-13 Tom Tromey <tom@tromey.com>
9285
9286 * valprint.c (generic_val_print_flags): Remove.
9287 (generic_val_print, generic_value_print): Update.
9288 (val_print_type_code_flags): Add original_value parameter.
9289
40f3ce18
TT
92902020-03-13 Tom Tromey <tom@tromey.com>
9291
9292 * valprint.c (generic_val_print): Update.
9293 (generic_value_print): Update.
9294 * valprint.c (generic_val_print_enum): Don't call
9295 val_print_scalar_formatted.
9296
2a5b130b
TT
92972020-03-13 Tom Tromey <tom@tromey.com>
9298
9299 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9300 * valprint.c (generic_value_print_ptr): New function.
9301
abc66ce9
TT
93022020-03-13 Tom Tromey <tom@tromey.com>
9303
9304 * valprint.c (generic_value_print): Rewrite.
9305
07a32858
TT
93062020-03-13 Tom Tromey <tom@tromey.com>
9307
9308 * p-valprint.c (pascal_object_print_value_fields)
9309 (pascal_object_print_value): New functions.
9310
64d64d3a
TT
93112020-03-13 Tom Tromey <tom@tromey.com>
9312
9313 * p-valprint.c (pascal_value_print_inner): Rewrite.
9314
6a95a1f5
TT
93152020-03-13 Tom Tromey <tom@tromey.com>
9316
9317 * f-valprint.c (f_value_print_innner): Rewrite.
9318
59fcdac6
TT
93192020-03-13 Tom Tromey <tom@tromey.com>
9320
9321 * m2-valprint.c (m2_print_unbounded_array): New overload.
9322 (m2_print_unbounded_array): Update.
9323 (m2_print_array_contents): Take a struct value.
9324 (m2_value_print_inner): Rewrite.
9325
d133c3e1
TT
93262020-03-13 Tom Tromey <tom@tromey.com>
9327
9328 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9329 (d_value_print_inner): New function.
9330 * d-lang.h (d_value_print_inner): Declare.
9331 * d-lang.c (d_language_defn): Use d_value_print_inner.
9332
23b0f06b
TT
93332020-03-13 Tom Tromey <tom@tromey.com>
9334
9335 * go-valprint.c (go_value_print_inner): New function.
9336 * go-lang.h (go_value_print_inner): Declare.
9337 * go-lang.c (go_language_defn): Use go_value_print_inner.
9338
5f56f7cb
TT
93392020-03-13 Tom Tromey <tom@tromey.com>
9340
9341 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9342 API.
9343 (rust_val_print): Rewrite.
9344 (rust_value_print_inner): New function, from rust_val_print.
9345 (rust_language_defn): Use rust_value_print_inner.
9346
26792ee0
TT
93472020-03-13 Tom Tromey <tom@tromey.com>
9348
9349 * ada-valprint.c (ada_value_print_inner): New function.
9350 * ada-lang.h (ada_value_print_inner): Declare.
9351 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9352
24051bbe
TT
93532020-03-13 Tom Tromey <tom@tromey.com>
9354
9355 * f-valprint.c (f_value_print_innner): New function.
9356 * f-lang.h (f_value_print_innner): Declare.
9357 * f-lang.c (f_language_defn): Use f_value_print_innner.
9358
c0941be6
TT
93592020-03-13 Tom Tromey <tom@tromey.com>
9360
9361 * p-valprint.c (pascal_value_print_inner): New function.
9362 * p-lang.h (pascal_value_print_inner): Declare.
9363 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9364
62c4663d
TT
93652020-03-13 Tom Tromey <tom@tromey.com>
9366
9367 * m2-valprint.c (m2_value_print_inner): New function.
9368 * m2-lang.h (m2_value_print_inner): Declare.
9369 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9370
62182190
TT
93712020-03-13 Tom Tromey <tom@tromey.com>
9372
9373 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9374 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9375 * c-valprint.c (c_value_print_inner): New function.
9376 * c-lang.h (c_value_print_inner): Declare.
9377 * c-lang.c (c_language_defn, cplus_language_defn)
9378 (asm_language_defn, minimal_language_defn): Use
9379 c_value_print_inner.
9380
1e592a8a
TT
93812020-03-13 Tom Tromey <tom@tromey.com>
9382
9383 * p-valprint.c (pascal_object_print_value_fields): Now static.
9384 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9385
7fe471e9
TT
93862020-03-13 Tom Tromey <tom@tromey.com>
9387
9388 * c-valprint.c (c_val_print_array): Simplify.
9389
d121c6ce
TT
93902020-03-13 Tom Tromey <tom@tromey.com>
9391
9392 * valprint.c (value_print_array_elements): New function.
9393 * valprint.h (value_print_array_elements): Declare.
9394
4dba70ee
TT
93952020-03-13 Tom Tromey <tom@tromey.com>
9396
9397 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9398 * mips-tdep.c (mips_print_register): Use
9399 value_print_scalar_formatted.
9400
4f9ae810
TT
94012020-03-13 Tom Tromey <tom@tromey.com>
9402
9403 * valprint.h (value_print_scalar_formatted): Declare.
9404 * valprint.c (value_print_scalar_formatted): New function.
9405
156bfec9
TT
94062020-03-13 Tom Tromey <tom@tromey.com>
9407
9408 * valprint.h (generic_value_print): Declare.
9409 * valprint.c (generic_value_print): New function.
9410
2b4e573d
TT
94112020-03-13 Tom Tromey <tom@tromey.com>
9412
9413 * valprint.c (do_val_print): Call la_value_print_inner, if
9414 available.
9415 * rust-lang.c (rust_language_defn): Update.
9416 * p-lang.c (pascal_language_defn): Update.
9417 * opencl-lang.c (opencl_language_defn): Update.
9418 * objc-lang.c (objc_language_defn): Update.
9419 * m2-lang.c (m2_language_defn): Update.
9420 * language.h (struct language_defn) <la_value_print_inner>: New
9421 member.
9422 * language.c (unknown_language_defn, auto_language_defn): Update.
9423 * go-lang.c (go_language_defn): Update.
9424 * f-lang.c (f_language_defn): Update.
9425 * d-lang.c (d_language_defn): Update.
9426 * c-lang.c (c_language_defn, cplus_language_defn)
9427 (asm_language_defn, minimal_language_defn): Update.
9428 * ada-lang.c (ada_language_defn): Update.
9429
a1f6a07c
TT
94302020-03-13 Tom Tromey <tom@tromey.com>
9431
9432 * c-valprint.c (c_value_print): Use common_val_print.
9433
410cf315
TT
94342020-03-13 Tom Tromey <tom@tromey.com>
9435
9436 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9437
72a45c93
TT
94382020-03-13 Tom Tromey <tom@tromey.com>
9439
9440 * f-valprint.c (f77_print_array_1, f_val_print): Use
9441 common_val_print.
9442
040f66bd
TT
94432020-03-13 Tom Tromey <tom@tromey.com>
9444
9445 * riscv-tdep.c (riscv_print_one_register_info): Use
9446 common_val_print.
9447
a6e05a6c
TT
94482020-03-13 Tom Tromey <tom@tromey.com>
9449
9450 * mi/mi-main.c (output_register): Use common_val_print.
9451
3444c526
TT
94522020-03-13 Tom Tromey <tom@tromey.com>
9453
9454 * infcmd.c (default_print_one_register_info): Use
9455 common_val_print.
9456
c2a44efe
TT
94572020-03-13 Tom Tromey <tom@tromey.com>
9458
9459 * valprint.h (common_val_print_checked): Declare.
9460 * valprint.c (common_val_print_checked): New function.
9461 * stack.c (print_frame_arg): Use common_val_print_checked.
9462
b0c26e99
TT
94632020-03-13 Tom Tromey <tom@tromey.com>
9464
9465 * valprint.c (do_val_print): New function, from val_print.
9466 (val_print): Use do_val_print.
9467 (common_val_print): Use do_val_print.
9468
ce3acbe9
TT
94692020-03-13 Tom Tromey <tom@tromey.com>
9470
9471 * valprint.c (value_print): Use scoped_value_mark.
9472
96c7f873
TV
94732020-03-13 Tom de Vries <tdevries@suse.de>
9474
9475 PR symtab/25646
9476 * psymtab.c (partial_symtab::partial_symtab): Don't set
9477 globals_offset and statics_offset. Push element onto
9478 current_global_psymbols and current_static_psymbols stacks.
9479 (concat): New function.
9480 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9481 element from current_global_psymbols and current_static_psymbols
9482 stacks. Concat popped elements to global_psymbols and
9483 static_symbols.
9484 (add_psymbol_to_list): Use current_global_psymbols and
9485 current_static_psymbols stacks.
9486 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9487 current_static_psymbols fields.
9488
6ba0a321
CB
94892020-03-12 Christian Biesinger <cbiesinger@google.com>
9490
9491 * corelow.c (sniff_core_bfd): Remove.
9492 (class core_target) <m_core_vec>: Remove.
9493 (core_target::core_target): Update.
9494 (core_file_fns): Remove.
9495 (deprecated_add_core_fns): Remove.
9496 (default_core_sniffer): Remove.
9497 (sniff_core_bfd): Remove.
9498 (default_check_format): Remove.
9499 (gdb_check_format): Remove.
9500 (core_target_open): Update.
9501 (core_target::get_core_register_section): Update.
9502 (get_core_registers_cb): Update.
9503 (core_target::fetch_registers): Update.
9504 * gdbcore.h (struct core_fns): Remove.
9505 (deprecated_add_core_fns): Remove.
9506 (default_core_sniffer): Remove.
9507 (default_check_format): Remove.
9508
227031b2
TT
95092020-03-12 Tom Tromey <tom@tromey.com>
9510
9511 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9512 CORE_ADDR.
9513 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9514
53807e9f
TT
95152020-03-12 Tom Tromey <tom@tromey.com>
9516
9517 * remote.c (remote_target::download_tracepoint)
9518 (remote_target::enable_tracepoint)
9519 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9520 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9521 sprintf_vma.
9522
64f25102
TT
95232020-03-12 Tom Tromey <tom@tromey.com>
9524
9525 * symfile-mem.c: Update CORE_ADDR size assert.
9526
272cd5a3
SM
95272020-03-12 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * selftest.m4: Move to gdbsupport/.
9530 * acinclude.m4: Update path to selftest.m4.
9531
74cd3f9d
SM
95322020-03-12 Simon Marchi <simon.marchi@efficios.com>
9533
9534 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9535 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9536 gdbarch-selfselftests.c and selftest-arch.c.
9537 (SUBDIR_UNITTESTS_OBS): Rename to...
9538 (SELFTESTS_OBS): ... this.
9539 (COMMON_SFILES): Remove disasm-selftests.c and
9540 gdbarch-selftests.c.
9541 * configure.ac: Don't add selftest-arch.{c,o} to
9542 CONFIG_{SRCS,OBS}.
9543 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9544 preprocessor conditions.
9545
db6878ac
SM
95462020-03-12 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * configure.ac: Don't source bfd/development.sh.
9549 * selftest.m4: Modify comment.
9550 * configure: Re-generate.
9551
4d696a5c
SM
95522020-03-12 Simon Marchi <simon.marchi@efficios.com>
9553
9554 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9555 not "true" or "false".
9556 * configure: Re-generate.
9557
8dd8e1c7
CB
95582020-03-12 Christian Biesinger <cbiesinger@google.com>
9559
9560 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9561 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9562 renamed to arm_nbsd_supply_gregset.
9563 (fetch_register): Update to call arm_nbsd_supply_gregset.
9564 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9565 (arm_netbsd_nat_target::fetch_registers): Update.
9566 (fetch_elfcore_registers): Removed.
9567 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9568 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9569 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9570 not require NetBSD system headers.
9571 (arm_nbsd_regset): New struct.
9572 (arm_nbsd_iterate_over_regset_sections): New function.
9573 (arm_netbsd_init_abi_common): Updated to call
9574 set_gdbarch_iterate_over_regset_sections.
9575 * arm-nbsd-tdep.h: New file.
9576
dd69bf7a
KB
95772020-03-11 Kevin Buettner <kevinb@redhat.com>
9578
9579 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9580 recursion.
9581
a0761e34
SM
95822020-03-11 Simon Marchi <simon.marchi@efficios.com>
9583
9584 * configure: Re-generate.
9585
e7a82140
TT
95862020-03-11 Tom Tromey <tromey@adacore.com>
9587
9588 * ada-typeprint.c (print_choices): Fix comment.
9589
dcc050c8
AB
95902020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9593 previous item in the list, when the list has no items.
9594
1c33af77
TV
95952020-03-11 Tom de Vries <tdevries@suse.de>
9596
9597 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9598 PROP_LOCLIST handling code.
9599
8c95582d
AB
96002020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9601
9602 * buildsym-legacy.c (record_line): Pass extra parameter to
9603 record_line.
9604 * buildsym.c (buildsym_compunit::record_line): Take an extra
9605 parameter, reduce duplication in the line table, and record the
9606 is_stmt flag in the line table.
9607 * buildsym.h (buildsym_compunit::record_line): Add extra
9608 parameter.
9609 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9610 non-statement lines.
9611 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9612 this to the symtab builder.
9613 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9614 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9615 through to dwarf_record_line_1.
9616 * infrun.c (process_event_stop_test): When stepping, don't stop at
9617 a non-statement instruction, and only refresh the step info when
9618 we land in the middle of a line's range. Also add an extra
9619 comment.
9620 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9621 field.
9622 * record-btrace.c (btrace_find_line_range): Only record lines
9623 marked as is-statement.
9624 * stack.c (frame_show_address): Show the frame address if we are
9625 in a non-statement sal.
9626 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9627 (maintenance_print_one_line_table): Print a header for the is_stmt
9628 column, and include is_stmt information in the output.
9629 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9630 preference to non-statements.
9631 (find_pcs_for_symtab_line): Prefer is-statement entries.
9632 (find_line_common): Likewise.
9633 * symtab.h (struct linetable_entry): Add is_stmt field.
9634 (struct symtab_and_line): Likewise.
9635 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9636 arranging the line table.
9637
e4003a34
TV
96382020-03-07 Tom de Vries <tdevries@suse.de>
9639
9640 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9641 DIE.
9642
e8932576
TT
96432020-03-07 Tom Tromey <tom@tromey.com>
9644
9645 * valops.c (value_literal_complex): Remove obsolete comment.
9646 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9647 comment.
9648
29734269
SM
96492020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9650
9651 * infrun.h: Forward-declare thread_info.
9652 (set_step_info): Add thread_info parameter, add doc.
9653 * infrun.c (set_step_info): Add thread_info parameter, move doc
9654 to header.
9655 * infrun.c (process_event_stop_test): Pass thread to
9656 set_step_info call.
9657 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9658 set_step_info.
9659 (prepare_one_step): Add thread_info parameter, pass it to
9660 set_step_frame and prepare_one_step (recursive) call.
9661 (step_1): Pass thread to prepare_one_step call.
9662 (step_command_fsm::should_stop): Pass thread to
9663 prepare_one_step.
9664 (until_next_fsm): Pass thread to set_step_frame call.
9665 (finish_command): Pass thread to set_step_info call.
9666
b7d64b29
HD
96672020-03-06 Hannes Domani <ssbssa@yahoo.de>
9668
9669 * windows-tdep.c (windows_solib_create_inferior_hook):
9670 Check if inferior is running.
9671
09f2921c
TV
96722020-03-06 Tom de Vries <tdevries@suse.de>
9673
9674 * NEWS: Fix "the the".
9675 * ctfread.c: Same.
9676
fd760e79
TV
96772020-03-06 Tom de Vries <tdevries@suse.de>
9678
9679 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9680
20ea4a60
AB
96812020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9682
9683 * .dir-locals.el: Add a comment referencing the other copies of
9684 this file.
9685
0afbabf0
JB
96862020-03-05 John Baldwin <jhb@FreeBSD.org>
9687
9688 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9689 psargs.
9690
842806cb
TBA
96912020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9692
9693 * .gitattributes: New file.
9694
be1e3d3e
TT
96952020-03-04 Tom Tromey <tom@tromey.com>
9696
9697 * symmisc.c (print_symbol_bcache_statistics)
9698 (print_objfile_statistics): Update.
9699 * symfile.c (allocate_symtab): Use intern.
9700 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9701 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9702 macro_cache>: Remove.
9703 <string_cache>: New member.
9704 (struct objfile) <intern>: New methods.
9705 * elfread.c (elf_symtab_read): Use intern.
9706 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9707 (dwarf2_compute_name, dwarf2_physname)
9708 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9709 names.
9710 (guess_partial_die_structure_name): Update.
9711 (partial_die_info::fixup): Intern name.
9712 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9713 name.
9714 (dwarf2_name): Intern name. Update.
9715 * buildsym.c (buildsym_compunit::get_macro_table): Use
9716 string_cache.
9717
4e7625fd
TT
97182020-03-04 Tom Tromey <tom@tromey.com>
9719
9720 * jit.c (bfd_open_from_target_memory): Make "target" const.
9721 * corefile.c (gnutarget): Now const.
9722 * gdbcore.h (gnutarget): Now const.
9723
46f9f931
HD
97242020-03-04 Hannes Domani <ssbssa@yahoo.de>
9725
9726 * NEWS: Mention support for WOW64 processes.
9727 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9728 (amd64_windows_segment_register_p): Remove static.
9729 (_initialize_amd64_windows_nat): Update.
9730 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9731 * i386-windows-nat.c (context_offset): Update.
9732 (i386_mappings): Rename and remove static.
9733 (i386_windows_segment_register_p): Remove static.
9734 (_initialize_i386_windows_nat): Update.
9735 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9736 (STATUS_WX86_SINGLE_STEP): New macro.
9737 (EnumProcessModulesEx): New macro.
9738 (Wow64SuspendThread): New macro.
9739 (Wow64GetThreadContext): New macro.
9740 (Wow64SetThreadContext): New macro.
9741 (Wow64GetThreadSelectorEntry): New macro.
9742 (windows_set_context_register_offsets): Add static.
9743 (windows_set_segment_register_p): Likewise.
9744 (windows_add_thread): Adapt for WOW64 processes.
9745 (windows_fetch_one_register): Likewise.
9746 (windows_nat_target::fetch_registers): Likewise.
9747 (windows_store_one_register): Likewise.
9748 (display_selector): Likewise.
9749 (display_selectors): Likewise.
9750 (handle_exception): Likewise.
9751 (windows_continue): Likewise.
9752 (windows_nat_target::resume): Likewise.
9753 (windows_add_all_dlls): Likewise.
9754 (do_initial_windows_stuff): Likewise.
9755 (windows_nat_target::attach): Likewise.
9756 (windows_get_exec_module_filename): Likewise.
9757 (windows_nat_target::create_inferior): Likewise.
9758 (windows_xfer_siginfo): Likewise.
9759 (_initialize_loadable): Initialize Wow64SuspendThread,
9760 Wow64GetThreadContext, Wow64SetThreadContext,
9761 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9762 * windows-nat.h (windows_set_context_register_offsets):
9763 Remove declaration.
9764 (windows_set_segment_register_p): Likewise.
9765 (i386_windows_segment_register_p): Add declaration.
9766 (amd64_windows_segment_register_p): Likewise.
9767
440cf44e
LM
97682020-03-04 Luis Machado <luis.machado@linaro.org>
9769
9770 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9771 in "info registers" for AArch64/ARM.
9772
9773 The change caused "info registers" to not print GPR's.
9774
9775 gdb/ChangeLog:
9776
9777 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9778
9779 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9780 when reg->group is empty and reggroup is not.
9781
1009d92f
TT
97822020-03-03 Tom Tromey <tromey@adacore.com>
9783
9784 * dwarf2/frame.c (struct dwarf2_frame_cache)
9785 <checked_tailcall_bottom, entry_cfa_sp_offset,
9786 entry_cfa_sp_offset_p>: Remove members.
9787 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9788 (dwarf2_frame_prev_register): Don't call
9789 dwarf2_tailcall_sniffer_first.
9790 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9791 * frame-unwind.c (add_unwinder): New fuction.
9792 (frame_unwind_init): Use it. Add tailcall unwinder.
9793
5e5d66b6
AB
97942020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9795 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9796
9797 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9798 value should be printed as true.
9799
584cf46d
HD
98002020-03-03 Hannes Domani <ssbssa@yahoo.de>
9801
9802 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9803 (windows_init_abi): Set and use windows_so_ops.
9804
7b973adc
SDJ
98052020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9806
9807 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9808 when verifying if dealing with a convenience variable.
9809
bb7b70ab
LM
98102020-03-03 Luis Machado <luis.machado@linaro.org>
9811
9812 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9813
9822cb57
SM
98142020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9815
9816 * infrun.c (gdbarch_supports_displaced_stepping): New.
9817 (use_displaced_stepping): Break up conditions in smaller pieces.
9818 Use gdbarch_supports_displaced_stepping.
9819 (displaced_step_prepare_throw): Use
9820 gdbarch_supports_displaced_stepping.
9821
63e163f2
AB
98222020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * NEWS: Mention new behaviour of the history filename.
9825 * top.c (write_history_p): Add comment.
9826 (show_write_history_p): Add header comment, give a different
9827 message when history writing is on, but the history filename is
9828 empty.
9829 (history_filename): Add comment.
9830 (history_filename_empty): New function.
9831 (show_history_filename): Add header comment, give a different
9832 message when the filename is empty.
9833 (init_history): Compare history_filename against nullptr, and only
9834 read history if the filename is not empty.
9835 (set_history_filename): Add header comment, and only make
9836 non-empty filenames absolute.
9837 (init_main): Make the filename argument to 'set history filename'
9838 optional.
9839
81b86b97
CB
98402020-03-02 Christian Biesinger <cbiesinger@google.com>
9841
9842 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9843 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9844 (fetch_fp_register): Update.
9845 (fetch_fp_regs): Update.
9846 (store_fp_register): Update.
9847 (store_fp_regs): Update.
9848 (arm_netbsd_nat_target::read_description): New function.
9849 (fetch_elfcore_registers): Update.
9850
24ed6739
AB
98512020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9852
9853 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9854 general_thread if the stop reply is missing a thread-id.
9855 (remote_target::process_stop_reply): Use the first non-exited
9856 thread if the target didn't pass a thread-id.
9857 * infrun.c (do_target_wait): Move call to
9858 switch_to_inferior_no_thread to ....
9859 (do_target_wait_1): ... here.
9860
a84bb2a0
JT
98612020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9862
9863 * debuginfod-support.c: Include defs.h first.
9864
658dadf0
TV
98652020-02-28 Tom de Vries <tdevries@suse.de>
9866
9867 * symfile.c (set_initial_language): Use default language for lookup.
9868
4ebe4877
SM
98692020-02-28 Simon Marchi <simon.marchi@efficios.com>
9870
9871 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9872 reader variable, pass `this` to read_cutu_die_from_dwo.
9873
e5da1139
AM
98742020-02-27 Aaron Merey <amerey@redhat.com>
9875
9876 * source.c (open_source_file): Check for nullptr when computing
9877 srcpath.
9878
317f7127
TT
98792020-02-27 Tom Tromey <tromey@adacore.com>
9880
9881 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9882 member.
9883 (dwarf2_add_field): Don't update nfields.
9884 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9885
3104d9ee
AB
98862020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9887
9888 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9889 abs.
9890
b83470bf
TT
98912020-02-26 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9894 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9895 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9896 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9897 per_cu_data.
9898
edfe0a0c
TT
98992020-02-26 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2/index-write.c (psym_index_map): Change type.
9902 (add_address_entry_worker, write_one_signatured_type)
9903 (recursively_count_psymbols, recursively_write_psymbols)
9904 (class debug_names, psyms_seen_size, write_gdbindex)
9905 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9906
0d79cdc4
AM
99072020-02-26 Aaron Merey <amerey@redhat.com>
9908
9909 * Makefile.in: Handle optional debuginfod support.
9910 * NEWS: Update.
9911 * README: Add --with-debuginfod summary.
9912 * config.in: Regenerate.
9913 * configure: Regenerate.
9914 * configure.ac: Handle optional debuginfod support.
9915 * debuginfod-support.c: debuginfod helper functions.
9916 * debuginfod-support.h: Ditto.
9917 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9918 summary.
9919 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9920 when a dwz file cannot be found.
9921 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9922 debuginfo file cannot be found.
9923 * source.c (open_source_file): Query debuginfod servers when a
9924 source file cannot be found.
9925 * top.c (print_gdb_configuration): Include
9926 --{with,without}-debuginfod in the output.
9927
b65ce565
JG
99282020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9929
9930 * thread.c (thr_try_catch_cmd): Print thread name.
9931
d4c9a4f8
SM
99322020-02-26 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9935 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9936 dwarf2_fetch_die_type_sect_off): Move to...
9937 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9938 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9939 dwarf2_fetch_die_type_sect_off): ... here.
9940 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9941 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9942 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9943
0dce4280
TV
99442020-02-26 Tom de Vries <tdevries@suse.de>
9945
9946 PR gdb/25603
9947 * symfile.c (set_initial_language): Exit-early if
9948 language_mode == language_mode_manual.
9949
450a1bfc
SM
99502020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9951
9952 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9953 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9954 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9955
9e80cfa1
AB
99562020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9957
9958 * gdbtypes.c (create_array_type_with_stride): Handle negative
9959 array strides.
9960 * valarith.c (value_subscripted_rvalue): Likewise.
9961
09624f1f
LM
99622020-02-25 Luis Machado <luis.machado@linaro.org>
9963
9964 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9965
8cb5117c
SM
99662020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9967
9968 * loc.h (dwarf2_get_die_type): Move to...
9969 * read.h (dwarf2_get_die_type): ... here.
9970 * read.c (dwarf2_get_die_type): Move doc to header.
9971
c325c44e
JB
99722020-02-25 Joel Brobecker <brobecker@adacore.com>
9973
9974 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9975 'gnulib/Makefile.in' to the list.
9976
4ac93832
TT
99772020-02-24 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9980 Remove.
9981 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9982 XOBNEWVEC.
9983
197400e8
TT
99842020-02-24 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9987 New method.
9988 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9989 (dw2_do_instantiate_symtab, dw2_get_file_names)
9990 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9991
76935768
TT
99922020-02-24 Tom Tromey <tom@tromey.com>
9993
9994 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9995 make_scoped_restore.
9996 (dwarf2_psymtab::read_symtab): Don't clear
9997 reading_partial_symbols.
9998
a88ef40d
TV
99992020-02-24 Tom de Vries <tdevries@suse.de>
10000
10001 PR gdb/25592
10002 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10003
c9af6521
TV
100042020-02-24 Tom de Vries <tdevries@suse.de>
10005
10006 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10007 commands layout next/prev/regs.
10008
5707a07a
TT
100092020-02-22 Tom Tromey <tom@tromey.com>
10010
10011 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10012 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10013
3b0fb49e
TT
100142020-02-22 Tom Tromey <tom@tromey.com>
10015
10016 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10017
283be8bf
TT
100182020-02-22 Tom Tromey <tom@tromey.com>
10019
10020 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10021 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10022 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10023 * tui/tui.c (_initialize_tui): Add usage text.
10024
ca793b96
TT
100252020-02-22 Tom Tromey <tom@tromey.com>
10026
10027 * tui/tui-win.c (tui_set_focus_command)
10028 (tui_set_win_height_command): Use error_no_arg.
10029 (_initialize_tui_win): Update help text.
10030 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10031
432b5c40
TT
100322020-02-22 Tom Tromey <tom@tromey.com>
10033
10034 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10035 * tui/tui-disasm.h (struct tui_disasm_window)
10036 <display_start_addr>: Declare.
10037 * tui/tui-source.h (struct tui_source_window)
10038 <display_start_addr>: Declare.
10039 * tui/tui-winsource.h (struct tui_source_window_base)
10040 <show_source_line, display_start_addr>: New methods.
10041 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10042 Rename and move to protected section.
10043 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10044 (tui_source_window_base::do_erase_source_content): Update.
10045 (tui_source_window_base::show_source_line): Now a method.
10046 (tui_source_window_base::show_source_content)
10047 (tui_source_window_base::tui_source_window_base)
10048 (tui_source_window_base::rerender)
10049 (tui_source_window_base::refill)
10050 (tui_source_window_base::do_scroll_horizontal)
10051 (tui_source_window_base::set_is_exec_point_at)
10052 (tui_source_window_base::update_breakpoint_info)
10053 (tui_source_window_base::update_exec_info): Update.
10054 * tui/tui-source.c (tui_source_window::set_contents)
10055 (tui_source_window::showing_source_p)
10056 (tui_source_window::do_scroll_vertical)
10057 (tui_source_window::location_matches_p)
10058 (tui_source_window::line_is_displayed): Update.
10059 (tui_source_window::display_start_addr): New method.
10060 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10061 (tui_disasm_window::do_scroll_vertical)
10062 (tui_disasm_window::location_matches_p): Update.
10063 (tui_disasm_window::display_start_addr): New method.
10064
01b1af32
TT
100652020-02-22 Tom Tromey <tom@tromey.com>
10066
10067 * NEWS: Add entry for gdb.register_window_type.
10068 * tui/tui-layout.h (window_factory): New typedef.
10069 (tui_register_window): Declare.
10070 * tui/tui-layout.c (saved_tui_windows): New global.
10071 (tui_apply_current_layout): Use it.
10072 (tui_register_window): New function.
10073 * python/python.c (do_start_initialization): Call
10074 gdbpy_initialize_tui.
10075 (python_GdbMethods): Add "register_window_type" function.
10076 * python/python-internal.h (gdbpy_register_tui_window)
10077 (gdbpy_initialize_tui): Declare.
10078 * python/py-tui.c: New file.
10079 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10080
fc96d20b
TT
100812020-02-22 Tom Tromey <tom@tromey.com>
10082
10083 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10084
935c78c0
TT
100852020-02-22 Tom Tromey <tom@tromey.com>
10086
10087 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10088 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10089 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10090 (tui_set_win_focus_to): Move from tui-win.c.
10091
0240c8f1
TT
100922020-02-22 Tom Tromey <tom@tromey.com>
10093
10094 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10095 functions.
10096 (known_window_types): New global.
10097 (tui_get_window_by_name): Reimplement.
10098 (initialize_known_windows): New function.
10099 (validate_window_name): Rewrite.
10100 (_initialize_tui_layout): Call initialize_known_windows.
10101
fdb01f0c
TT
101022020-02-22 Tom Tromey <tom@tromey.com>
10103
10104 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10105 Remove constants.
10106 * tui/tui-winsource.h (struct tui_source_window_base)
10107 <tui_source_window_base>: Remove parameter.
10108 * tui/tui-winsource.c
10109 (tui_source_window_base::tui_source_window_base): Remove
10110 parameter.
10111 (tui_source_window_base::refill): Update.
10112 * tui/tui-stack.h (struct tui_locator_window)
10113 <tui_locator_window>: Update.
10114 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10115 Default the constructor.
10116 * tui/tui-regs.h (struct tui_data_item_window)
10117 <tui_data_item_window>: Default the constructor.
10118 (struct tui_data_window) <tui_data_window>: Likewise.
10119 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10120 Default the constructor.
10121 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10122 Default the constructor.
10123 <type>: Remove.
10124 (struct tui_win_info) <tui_win_info>: Default the constructor.
10125 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10126 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10127 Default the constructor.
10128
865a5aec
TT
101292020-02-22 Tom Tromey <tom@tromey.com>
10130
10131 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10132 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10133 * tui/tui-win.c (tui_resize_all): Don't call
10134 tui_delete_invisible_windows.
10135 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10136 done.
10137 (tui_set_layout): Update.
10138 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10139 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10140 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10141
e098d18c
TT
101422020-02-22 Tom Tromey <tom@tromey.com>
10143
10144 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10145 correctly.
10146
eb9c8874
TT
101472020-02-22 Tom Tromey <tom@tromey.com>
10148
10149 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10150
7eed1a8e
TT
101512020-02-22 Tom Tromey <tom@tromey.com>
10152
10153 * tui/tui-winsource.h (struct tui_source_window_iterator)
10154 <inner_iterator>: New etytypedef.
10155 <tui_source_window_iterator>: Take "end" parameter.
10156 <tui_source_window_iterator>: Take iterator.
10157 <operator*, advance>: Update.
10158 <m_iter>: Change type.
10159 <m_end>: New field.
10160 (struct tui_source_windows) <begin, end>: Update.
10161 * tui/tui-layout.c (tui_windows): New global.
10162 (tui_apply_current_layout): Clear tui_windows.
10163 (tui_layout_window::apply): Update tui_windows.
10164 * tui/tui-data.h (tui_windows): Declare.
10165 (all_tui_windows): Now inline function.
10166 (class tui_window_iterator, struct all_tui_windows): Remove.
10167
7c043ba6
TT
101682020-02-22 Tom Tromey <tom@tromey.com>
10169
10170 PR tui/17850:
10171 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10172 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10173 "height" argument.
10174 (class tui_layout_window) <get_sizes>: Likewise.
10175 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10176 argument.
10177 <get_sizes>: Add "height" argument.
10178 <m_vertical>: New field.
10179 * tui/tui-layout.c (tui_layout_split::clone): Update.
10180 (tui_layout_split::get_sizes): Add "height" argument.
10181 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10182 (tui_new_layout_command): Parse "-horizontal".
10183 (_initialize_tui_layout): Update help string.
10184 (tui_layout_split::specification): Add "-horizontal" when needed.
10185 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10186 argument.
10187 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10188 New methods.
10189
6bc56648
TT
101902020-02-22 Tom Tromey <tom@tromey.com>
10191
10192 * tui/tui-layout.h (enum tui_adjust_result): New.
10193 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10194 (class tui_layout_window) <adjust_size>: Return
10195 tui_adjust_result. Rewrite.
10196 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10197 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10198
c22fef7e
TT
101992020-02-22 Tom Tromey <tom@tromey.com>
10200
10201 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10202 parameter and return types.
10203 (class tui_layout_base) <specification>: Add "depth".
10204 (class tui_layout_window) <specification>: Add "depth".
10205 (class tui_layout_split) <specification>: Add "depth".
10206 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10207 and return types.
10208 (tui_new_layout_command): Parse sub-layouts.
10209 (_initialize_tui_layout): Update help string.
10210 (tui_layout_window::specification): Add "depth".
10211 (add_layout_command): Update.
10212
ee325b61
TT
102132020-02-22 Tom Tromey <tom@tromey.com>
10214
10215 * NEWS: Add "tui new-layout" item.
10216 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10217 Add new-layout command to help text.
10218 (validate_window_name): New function.
10219 (tui_new_layout_command): New function.
10220 (_initialize_tui_layout): Register "new-layout".
10221 (tui_layout_window::specification): New method.
10222 (tui_layout_window::specification): New method.
10223 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10224 method.
10225 (class tui_layout_window) <specification>: New method.
10226 (class tui_layout_split) <specification>: New method.
10227
416eb92d
TT
102282020-02-22 Tom Tromey <tom@tromey.com>
10229
10230 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10231 * tui/tui-win.c (window_name_completer): Update comment.
10232 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10233 Declare method.
10234 (class tui_layout_window) <replace_window>: Likewise.
10235 (class tui_layout_split) <replace_window>: Likewise.
10236 (tui_set_layout): Don't declare.
10237 (tui_set_initial_layout): Declare function.
10238 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10239 (asm_regs_layout): New globals.
10240 (tui_current_layout, show_layout): Remove.
10241 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10242 (find_layout, tui_apply_layout): New function.
10243 (layout_completer): Remove.
10244 (tui_next_layout): Reimplement.
10245 (tui_next_layout_command): New function.
10246 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10247 (tui_regs_layout): Reimplement.
10248 (tui_regs_layout_command): New function.
10249 (extract_display_start_addr): Rewrite.
10250 (next_layout, prev_layout): Remove.
10251 (tui_layout_window::replace_window): New method.
10252 (tui_layout_split::replace_window): New method.
10253 (destroy_layout): New function.
10254 (layout_list): New global.
10255 (add_layout_command): New function.
10256 (initialize_layouts): Update.
10257 (tui_layout_command): New function.
10258 (_initialize_tui_layout): Install "layout" commands.
10259 * tui/tui-data.h (enum tui_layout_type): Remove.
10260 (tui_current_layout): Don't declare.
10261
0dbc2fc7
TT
102622020-02-22 Tom Tromey <tom@tromey.com>
10263
10264 * tui/tui-regs.c (tui_reg_layout): Remove.
10265 (tui_reg_command): Use tui_regs_layout.
10266 * tui/tui-layout.h (tui_reg_command): Declare.
10267 * tui/tui-layout.c (tui_reg_command): New function.
10268
5afe342e
TT
102692020-02-22 Tom Tromey <tom@tromey.com>
10270
10271 * tui/tui.c (tui_rl_delete_other_windows): Call
10272 tui_remove_some_windows.
10273 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10274 Declare method.
10275 (class tui_layout_window) <remove_windows>: New method.
10276 (class tui_layout_split) <remove_windows>: Declare.
10277 (tui_remove_some_windows): Declare.
10278 * tui/tui-layout.c (tui_remove_some_windows): New function.
10279 (tui_layout_split::remove_windows): New method.
10280
427326a8
TT
102812020-02-22 Tom Tromey <tom@tromey.com>
10282
10283 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10284 * tui/tui-layout.h (tui_next_layout): Declare.
10285 * tui/tui-layout.c (tui_next_layout): New function.
10286
3fe12b6d
TT
102872020-02-22 Tom Tromey <tom@tromey.com>
10288
10289 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10290 correct coordinates.
10291
59b8b5d2
TT
102922020-02-22 Tom Tromey <tom@tromey.com>
10293
10294 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10295 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10296 DATA_WIN case.
10297
2a3d458b
TT
102982020-02-22 Tom Tromey <tom@tromey.com>
10299
10300 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10301 TUI_DISASM_WIN, not tui_win_list.
10302
3f0cbb04
TT
103032020-02-22 Tom Tromey <tom@tromey.com>
10304
10305 * valprint.c (generic_val_print_enum_1)
10306 (val_print_type_code_flags): Style member names.
10307 * rust-lang.c (val_print_struct, rust_print_enum)
10308 (rust_print_struct_def, rust_internal_print_type): Style member
10309 names.
10310 * p-valprint.c (pascal_object_print_value_fields): Style member
10311 names. Only call fprintf_symbol_filtered for static members.
10312 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10313 * f-valprint.c (f_val_print): Style member names.
10314 * f-typeprint.c (f_type_print_base): Style member names.
10315 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10316 call fprintf_symbol_filtered for static members.
10317 (cp_print_class_member): Style member names.
10318 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10319 member names.
10320 * ada-valprint.c (ada_print_scalar): Style enum names.
10321 (ada_val_print_enum): Likewise.
10322 * ada-typeprint.c (print_enum_type): Style enum names.
10323
d4d947ae
TT
103242020-02-21 Tom Tromey <tom@tromey.com>
10325
10326 * psympriv.h (struct partial_symtab): Update comment.
10327
e94e944b
TT
103282020-02-21 Tom Tromey <tromey@adacore.com>
10329
10330 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10331 type is CORE_ADDR.
10332
1eb73179
TV
103332020-02-21 Tom de Vries <tdevries@suse.de>
10334
10335 PR gdb/25534
10336 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10337 if dependencies[i]->user != NULL.
10338
4f180d53
AT
103392020-02-21 Ali Tamur <tamur@google.com>
10340
10341 * dwarf2/read.c (dwarf2_name): Add null check.
10342
22b6cd70
TT
103432020-02-20 Tom Tromey <tom@tromey.com>
10344
10345 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10346 ">=", in binary search.
10347 (dwarf2_find_containing_comp_unit): New overload.
10348 (run_test): New self-test.
10349 (_initialize_dwarf2_read): Register new test.
10350
bd0cf5a6
NC
103512020-02-20 Nelson Chu <nelson.chu@sifive.com>
10352
10353 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10354 * riscv-tdep.h: Likewise.
10355 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10356 rv32-only CSR.
10357 * features/riscv/64bit-csr.xml: Regenerated.
10358
3f702acd
SDJ
103592020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10360 Tom Tromey <tom@tromey.com>
10361
10362 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10363 of 'fputc_unfiltered'.
10364 (putchar_unfiltered): Call 'fputc_unfiltered'.
10365 (fputc_unfiltered): Call 'fputs_unfiltered'.
10366
d13c7322
AB
103672020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10368
10369 * config.in: Regenerate.
10370 * configure: Regenerate.
10371 * configure.ac: Add --with-python-libdir option.
10372 * main.c: Use WITH_PYTHON_LIBDIR.
10373
869d8950
TT
103742020-02-19 Tom Tromey <tom@tromey.com>
10375
10376 * symtab.c (general_symbol_info::compute_and_set_names): Use
10377 obstack_strndup. Simplify call to symbol_set_demangled_name.
10378
298e9637
SM
103792020-02-19 Simon Marchi <simon.marchi@efficios.com>
10380
10381 * dwarf2/read.c (allocate_signatured_type_table,
10382 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10383 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10384 Remove objfile parameter, update all callers.
10385
08410482
DE
103862020-02-19 Doug Evans <dje@google.com>
10387
10388 PR rust/25535
10389 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10390 rust_enum_variant calculation.
10391
dfdeeca1
TT
103922020-02-19 Tom Tromey <tromey@adacore.com>
10393
10394 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10395
2ef5453b
TT
103962020-02-19 Tom Tromey <tromey@adacore.com>
10397
10398 * ada-lang.c (cache_symbol): Use obstack_strdup.
10399
9f1528a1
AB
104002020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10401
10402 * configure: Regenerate.
10403
d3c22fa8
TT
104042020-02-19 Tom Tromey <tromey@adacore.com>
10405
10406 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10407 NULL check.
10408
bf84f706
MR
104092020-02-19 Maciej W. Rozycki <macro@wdc.com>
10410
10411 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10412
d1c9b20f
AB
104132020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10414
10415 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10416 if GDBSERVER is not defined.
10417 (riscv_tdesc_cache): Likewise, also store const target_desc.
10418 (STATIC_IN_GDB): Define.
10419 (riscv_create_target_description): Update declaration with
10420 STATIC_IN_GDB.
10421 (riscv_lookup_target_description): New function, only define if
10422 GDBSERVER is not defined.
10423 * arch/riscv.h (riscv_create_target_description): Declare only
10424 when GDBSERVER is defined.
10425 (riscv_lookup_target_description): New declaration when GDBSERVER
10426 is not defined.
10427 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10428 (riscv_linux_read_features): ...this, and return
10429 riscv_gdbarch_features instead of target_desc.
10430 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10431 (riscv_linux_read_description): Rename to...
10432 (riscv_linux_read_features): ...this.
10433 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10434 Update to use riscv_gdbarch_features and
10435 riscv_lookup_target_description.
10436 * riscv-tdep.c (riscv_find_default_target_description): Use
10437 riscv_lookup_target_description instead of
10438 riscv_create_target_description.
10439
373d7ac0
SM
104402020-02-18 Simon Marchi <simon.marchi@efficios.com>
10441
10442 * valprint.c (generic_val_print_enum_1): When printing a flag
10443 enum with value 0 and there is no enumerator with value 0, print
10444 just "0" instead of "(unknown: 0x0)".
10445
b29a2df0
SM
104462020-02-18 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * valprint.c (generic_val_print_enum_1): Print unknown part of
10449 flag enum in hex.
10450
6740f0cc
SM
104512020-02-18 Simon Marchi <simon.marchi@efficios.com>
10452
10453 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10454 flag enums to contain duplicate enumerators.
10455 * valprint.c (generic_val_print_enum_1): Update comment.
10456
edd45eb0
SM
104572020-02-18 Simon Marchi <simon.marchi@efficios.com>
10458
10459 * dwarf2/read.c: Include "count-one-bits.h".
10460 (update_enumeration_type_from_children): If an enumerator has
10461 multiple bits set, don't treat the enumeration as a "flag enum".
10462 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10463 of flag enums have 0 or 1 bit set.
10464
6d0cf446
BE
104652020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10466
10467 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10468 conversion.
10469 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10470 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10471 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10472 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10473 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10474
7001c1b7
SM
104752020-02-18 Simon Marchi <simon.marchi@efficios.com>
10476
10477 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10478
fdb61c6c
SM
104792020-02-14 Simon Marchi <simon.marchi@efficios.com>
10480
10481 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10482 displaced_step_closure_up.
10483 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10484 (struct displaced_step_closure_up):
10485 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10486 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10487 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10488 Likewise.
10489 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10490 * gdbarch.c, gdbarch.h: Re-generate.
10491 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10492 displaced_step_closure_up.
10493 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10494 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10495 * infrun.h (displaced_step_closure_up): New type alias.
10496 (struct displaced_step_inferior_state) <step_closure>: Change
10497 type to displaced_step_closure_up.
10498 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10499 displaced_step_closure_up.
10500 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10501
a4a38eb4
TT
105022020-02-14 Tom Tromey <tom@tromey.com>
10503
10504 * minidebug.c (gnu_debug_key): New global.
10505 (find_separate_debug_file_in_section): Use it.
10506
e8217e61
SM
105072020-02-14 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10510 std::unique_ptr.
10511 * gdbarch.c: Re-generate.
10512 * gdbarch.h: Re-generate.
10513 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10514 change.
10515 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10516 type to std::unique_ptr.
10517 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10518 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10519 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10520 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10521 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10522 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10523 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10524 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10525 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10526
d8d83535
SM
105272020-02-14 Simon Marchi <simon.marchi@efficios.com>
10528
10529 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10530 std::unique_ptr.
10531 (displaced_step_clear): Rename to...
10532 (displaced_step_reset): ... this. Just call displaced->reset ().
10533 (displaced_step_clear_cleanup): Rename to...
10534 (displaced_step_reset_cleanup): ... this.
10535 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10536 (displaced_step_fixup): Likewise.
10537 (resume_1): Likewise.
10538 (handle_inferior_event): Restore child's memory before calling
10539 displaced_step_fixup on the parent.
10540 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10541 to std::unique_ptr.
10542 <step_closure>: Change type to std::unique_ptr.
10543
5f661e03
SM
105442020-02-14 Simon Marchi <simon.marchi@efficios.com>
10545
10546 * arm-tdep.c: Include count-one-bits.h.
10547 (cleanup_block_store_pc): Use count_one_bits.
10548 (cleanup_block_load_pc): Use count_one_bits.
10549 (arm_copy_block_xfer): Use count_one_bits.
10550 (thumb2_copy_block_xfer): Use count_one_bits.
10551 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10552 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10553 (thumb_get_next_pcs_raw): Use count_one_bits.
10554 (arm_get_next_pcs_raw): Use count_one_bits_l.
10555 * arch/arm.c (bitcount): Remove.
10556 * arch/arm.h (bitcount): Remove.
10557
8084e579
TT
105582020-02-14 Tom Tromey <tromey@adacore.com>
10559
10560 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10561 Update.
10562 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10563 * dwarf2/loc.c (call_site_find_chain_1): Return
10564 unique_xmalloc_ptr.
10565 (call_site_find_chain): Likewise.
10566
258bf0ee
RB
105672020-02-14 Richard Biener <rguenther@suse.de>
10568
10569 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10570 on expression with division operators.
10571
f98a8458
AKS
105722020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10573
10574 * MAINTAINERS (Write After Approval): Adding myself.
10575
d1437c0e
TT
105762020-02-12 Tom Tromey <tom@tromey.com>
10577
10578 * event-loop.c (event_data, gdb_event, event_handler_func):
10579 Remove.
10580
3d4560f7
TT
105812020-02-12 Tom Tromey <tom@tromey.com>
10582
10583 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10584 (dwarf2_frame_objfile_data): Add comment.
10585 (find_comp_unit, set_comp_unit): New functions.
10586 (dwarf2_frame_find_fde): Use find_comp_unit.
10587 (dwarf2_build_frame_info): Use set_comp_unit.
10588
21982304
TT
105892020-02-12 Tom Tromey <tom@tromey.com>
10590
10591 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10592 (comp_unit): Don't initialize objfile.
10593 (execute_cfa_program): Add text_offset parameter.
10594 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10595 (dwarf2_frame_cache): Update.
10596 (dwarf2_build_frame_info): Don't set "objfile" member.
10597
4debb237
TT
105982020-02-12 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10601 (decode_frame_entry): Likewise.
10602 (dwarf2_build_frame_info): Update.
10603
0d404d44
TT
106042020-02-12 Tom Tromey <tom@tromey.com>
10605
10606 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10607 (decode_frame_entry_1): Use the comp_unit obstack.
10608
a7a3ae5c
TT
106092020-02-12 Tom Tromey <tom@tromey.com>
10610
10611 * dwarf2/frame.c (struct comp_unit): Add initializers and
10612 constructor.
10613 (dwarf2_frame_objfile_data): Store a comp_unit.
10614 (dwarf2_frame_find_fde): Update.
10615 (dwarf2_build_frame_info): Use "new".
10616
a9d65418
TT
106172020-02-12 Tom Tromey <tom@tromey.com>
10618
10619 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10620 (dwarf2_fde_table): Typedef for std::vector.
10621 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10622 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10623 (decode_frame_entry): Update.
10624 (dwarf2_build_frame_info): Use "new".
10625
7559c217
CB
106262020-02-12 Christian Biesinger <cbiesinger@google.com>
10627
10628 * arm-tdep.c (arm_gdbarch_init): Update.
10629 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10630 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10631 have_neon, is_m>: Change to bool.
10632
aeefc73c
CB
106332020-02-12 Christian Biesinger <cbiesinger@google.com>
10634
10635 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10636
d27b8e5f
TT
106372020-02-12 Tom Tromey <tom@tromey.com>
10638
10639 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10640
cd5900f3
HD
106412020-02-12 Hannes Domani <ssbssa@yahoo.de>
10642
10643 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10644 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10645
f056b22b
TT
106462020-02-11 Tom Tromey <tom@tromey.com>
10647
10648 * psymtab.h: Update comment.
10649
f92ff6b5
TT
106502020-02-11 Tom Tromey <tom@tromey.com>
10651
10652 * gdb_obstack.h (struct auto_obstack): Use
10653 DISABLE_COPY_AND_ASSIGN.
10654
3fd6912b
TT
106552020-02-11 Tom Tromey <tom@tromey.com>
10656
10657 * dwarf2/frame.h (struct objfile): Don't forward declare.
10658
69ed9b74
CB
106592020-02-11 Christian Biesinger <cbiesinger@google.com>
10660
10661 * cris-tdep.c (cris_supply_gregset): Change signature to match
10662 what struct regset expects.
10663 (cris_regset): New struct.
10664 (fetch_core_registers): Remove.
10665 (cris_iterate_over_regset_sections): New function.
10666 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10667 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10668
bda874f6
CB
106692020-02-11 Christian Biesinger <cbiesinger@google.com>
10670
10671 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10672 registers.
10673
754e1564
CB
106742020-02-11 Christian Biesinger <cbiesinger@google.com>
10675
10676 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10677
8ddd8e0e
SM
106782020-02-11 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * configure: Re-generate.
10681
898e7f60
SM
106822020-02-11 Simon Marchi <simon.marchi@efficios.com>
10683
10684 * configure: Re-generate.
10685
58df732b
SM
106862020-02-11 Simon Marchi <simon.marchi@efficios.com>
10687
10688 * acinclude: Update warning.m4 path.
10689 * warning.m4: Move to gdbsupport.
10690
da5bd37e
TT
106912020-02-11 Tom Tromey <tromey@adacore.com>
10692
10693 * remote.c (remote_console_output): Update.
10694 * printcmd.c (printf_command): Update.
10695 * event-loop.c (gdb_wait_for_event): Update.
10696 * linux-nat.c (sigchld_handler): Update.
10697 * remote-sim.c (gdb_os_write_stdout): Update.
10698 (gdb_os_flush_stdout): Update.
10699 (gdb_os_flush_stderr): Update.
10700 (gdb_os_write_stderr): Update.
10701 * exceptions.c (print_exception): Update.
10702 * remote-fileio.c (remote_fileio_func_read): Update.
10703 (remote_fileio_func_write): Update.
10704 * tui/tui.c (tui_enable): Update.
10705 * tui/tui-interp.c (tui_interp::init): Update.
10706 * utils.c (init_page_info): Update.
10707 (putchar_unfiltered, fputc_unfiltered): Update.
10708 (gdb_flush): Update.
10709 (emit_style_escape): Update.
10710 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10711 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10712 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10713 (stderr_file::write): Update.
10714 (stderr_file::puts): Update.
10715 * ui-file.h (ui_file_isatty, ui_file_write)
10716 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10717 (ui_file_puts): Don't declare.
10718
85f0dd3c
TV
107192020-02-10 Tom de Vries <tdevries@suse.de>
10720
10721 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10722 sentinel to char *.
10723
2e927613
TV
107242020-02-09 Tom de Vries <tdevries@suse.de>
10725
10726 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10727 filename if it matches "<artificial>".
10728
6bafc845
HD
107292020-02-09 Hannes Domani <ssbssa@yahoo.de>
10730
10731 * windows-tdep.c (struct enum_value_name): New struct.
10732 (create_enum): New function.
10733 (windows_get_siginfo_type): Create and use enum types.
10734
7928d571
HD
107352020-02-09 Hannes Domani <ssbssa@yahoo.de>
10736
10737 * NEWS: Mention $_siginfo support for Windows.
10738 * windows-nat.c (handle_exception): Set siginfo_er.
10739 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10740 (windows_xfer_siginfo): New function.
10741 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10742 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10743 (init_windows_gdbarch_data): New function.
10744 (get_windows_gdbarch_data): New function.
10745 (windows_get_siginfo_type): New function.
10746 (windows_init_abi): Register windows_get_siginfo_type.
10747 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10748
6751ebae
TT
107492020-02-08 Tom Tromey <tom@tromey.com>
10750
10751 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10752 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10753 <keep>: Declare method.
10754 <m_keep>: Remove member.
10755 <~cutu_reader>: Remove.
10756 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10757 (cutu_reader::cutu_reader): Update.
10758 (cutu_reader::keep): Rename from ~cutu_reader.
10759 (process_psymtab_comp_unit, build_type_psymtabs_1)
10760 (process_skeletonless_type_unit, load_partial_comp_unit)
10761 (load_full_comp_unit, dwarf2_read_addr_index)
10762 (read_signatured_type): Update.
10763
135f5437
TT
107642020-02-08 Tom Tromey <tom@tromey.com>
10765
10766 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10767 "want_partial_unit" parameter.
10768 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10769 Inline check for DW_TAG_partial_unit.
10770 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10771
9f66ff1c
TT
107722020-02-08 Tom Tromey <tom@tromey.com>
10773
10774 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10775 read.c.
10776 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10777 read.c.
10778
c8a7a66f
TT
107792020-02-08 Tom Tromey <tom@tromey.com>
10780
10781 * dwarf2/read.c (read_address): Move to comp-unit.c.
10782 (dwarf2_rnglists_process, dwarf2_ranges_process)
10783 (read_attribute_value, dwarf_decode_lines_1)
10784 (var_decode_location, decode_locdesc): Update.
10785 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10786 read.c. Remove "cu" parameter.
10787 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10788 method.
10789
8266302d
TT
107902020-02-08 Tom Tromey <tom@tromey.com>
10791
10792 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10793 (read_indirect_line_string): Update.
10794 * dwarf2/comp-unit.c (read_offset): Remove.
10795 (read_comp_unit_head): Update.
10796 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10797 method.
10798 (read_offset): Don't declare.
10799
4057dfde
TT
108002020-02-08 Tom Tromey <tom@tromey.com>
10801
10802 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10803 * dwarf2/read.c (struct comp_unit_head): Move to
10804 dwarf2/comp-unit.h.
10805 (enum class rcuh_kind): Move to comp-unit.h.
10806 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10807 (read_comp_unit_head, error_check_comp_unit_head)
10808 (read_and_check_comp_unit_head): Move to comp-unit.c.
10809 (read_offset, dwarf_unit_type_name): Likewise.
10810 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10811 (cutu_reader::cutu_reader, read_call_site_scope)
10812 (find_partial_die, follow_die_offset): Update.
10813 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10814
24aa364d
TT
108152020-02-08 Tom Tromey <tom@tromey.com>
10816
10817 * dwarf2/read.c (read_offset_1): Move to leb.c.
10818 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10819 (dwarf_decode_macro_bytes): Update.
10820 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10821 * dwarf2/leb.h (read_offset): Declare.
10822
2c7d5afc
TT
108232020-02-08 Tom Tromey <tom@tromey.com>
10824
10825 * dwarf2/read.c (dwarf2_section_size): Remove.
10826 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10827 Update.
10828 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10829
4075cb26
TT
108302020-02-08 Tom Tromey <tom@tromey.com>
10831
10832 * dwarf2/read.c (read_initial_length): Move to leb.c.
10833 * dwarf2/leb.h (read_initial_length): Declare.
10834 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10835 handle_nonstd parameter.
10836 * dwarf2/frame.c (read_initial_length): Remove.
10837 (decode_frame_entry_1): Update.
10838
09ba997f
TT
108392020-02-08 Tom Tromey <tom@tromey.com>
10840
10841 * dwarf2/loc.c (dwarf2_find_location_expression)
10842 (dwarf_evaluate_loc_desc::get_tls_address)
10843 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10844 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10845 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10846 (dwarf2_compile_property_to_c)
10847 (dwarf2_loc_desc_get_symbol_read_needs)
10848 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10849 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10850 (loclist_describe_location, loclist_tracepoint_var_ref)
10851 (loclist_generate_c_location): Update.
10852 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10853 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10854 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10855 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10856 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10857 (dwarf2_per_cu_data::addr_size)
10858 (dwarf2_per_cu_data::ref_addr_size)
10859 (dwarf2_per_cu_data::text_offset)
10860 (dwarf2_per_cu_data::addr_type): Now methods.
10861 (per_cu_header_read_in): Make per_cu "const".
10862 (dwarf2_version): Remove.
10863 (dwarf2_per_cu_data::int_type): Now a method.
10864 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10865 (set_die_type, read_array_type, read_subrange_index_type)
10866 (read_tag_string_type, read_subrange_type): Update.
10867 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10868 offset_size, ref_addr_size, text_offset, addr_type, version,
10869 objfile, int_type, addr_sized_int_type>: Declare methods.
10870
96c738c0
TT
108712020-02-08 Tom Tromey <tom@tromey.com>
10872
10873 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10874 Move earlier.
10875
8fdd972c
TT
108762020-02-08 Tom Tromey <tom@tromey.com>
10877
10878 * dwarf2/read.h (dwarf_line_debug): Declare.
10879 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10880 * dwarf2/read.c: Move line_header code to new files.
10881 (dwarf_line_debug): No longer static.
10882 * dwarf2/line-header.c: New file.
10883 * dwarf2/line-header.h: New file.
10884
03075812
TT
108852020-02-08 Tom Tromey <tom@tromey.com>
10886
10887 * dwarf2/read.c (struct line_header) <file_full_name,
10888 file_file_name>: Return unique_xmalloc_ptr.
10889 (line_header::file_file_name): Update.
10890 (line_header::file_full_name): Update.
10891 (dw2_get_file_names_reader): Update.
10892 (macro_start_file): Update.
10893
bb822404
TT
108942020-02-08 Tom Tromey <tom@tromey.com>
10895
10896 * dwarf2/read.c (struct line_header) <file_full_name,
10897 file_file_name>: Declare methods.
10898 (dw2_get_file_names_reader): Update.
10899 (file_file_name): Now a method.
10900 (file_full_name): Likewise.
10901 (macro_start_file): Update.
10902
009b64fc
TT
109032020-02-08 Tom Tromey <tom@tromey.com>
10904
10905 * dwarf2/read.c (dwarf_always_disassemble)
10906 (show_dwarf_always_disassemble): Move to loc.c.
10907 (_initialize_dwarf2_read): Move "always-disassemble" registration
10908 to loc.c.
10909 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10910 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10911 static.
10912 (show_dwarf_always_disassemble): Move from read.c.
10913 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10914
5895093f
TT
109152020-02-08 Tom Tromey <tom@tromey.com>
10916
10917 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10918 (create_quick_file_names_table): Return htab_up.
10919 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10920 Update.
10921 * dwarf2/read.h (struct dwarf2_per_objfile)
10922 <quick_file_names_table>: Now htab_up.
10923
b3b32279
TT
109242020-02-08 Tom Tromey <tom@tromey.com>
10925
10926 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10927
1d33d811
TT
109282020-02-08 Tom Tromey <tom@tromey.com>
10929
10930 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10931 Rewrite.
10932 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10933 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10934 (abbrev_table::abbrev_table): No longer inline.
10935 (ABBREV_HASH_SIZE): Remove.
10936 (abbrev_table::m_abbrevs): Now an htab_up.
10937
86de1d91
TT
109382020-02-08 Tom Tromey <tom@tromey.com>
10939
10940 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10941 (cutu_reader): Update.
10942 (build_type_psymtabs_1): Update.
10943 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10944 (abbrev_table::alloc_abbrev): Update.
10945 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10946 (abbrev_table::read): New static method, renamed from
10947 abbrev_table_read_table.
10948 (abbrev_table::alloc_abbrev)
10949 (abbrev_table::add_abbrev): Now private.
10950 (abbrev_table::abbrev_table): Now private.
10951 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10952
0335378b
TT
109532020-02-08 Tom Tromey <tom@tromey.com>
10954
10955 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10956 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10957 htab_up.
10958
48b490f2
TT
109592020-02-08 Tom Tromey <tom@tromey.com>
10960
10961 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10962 htab_up.
10963 (lookup_dwo_unit_in_dwp): Update.
10964 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10965 on obstack.
10966
bc68fb19
TT
109672020-02-08 Tom Tromey <tom@tromey.com>
10968
10969 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10970 obstack.
10971
d15acc42
TT
109722020-02-08 Tom Tromey <tom@tromey.com>
10973
10974 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10975 line_header_hash.
10976 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10977 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10978 Change type to htab_up.
10979
eaa5fa8b
TT
109802020-02-08 Tom Tromey <tom@tromey.com>
10981
10982 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10983 htab_up. Don't allocate on obstack.
10984 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10985 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10986 Change type to htab_up.
10987
b0b6a987
TT
109882020-02-08 Tom Tromey <tom@tromey.com>
10989
10990 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10991 Change type to htab_up.
10992 * dwarf2/read.c (create_signatured_type_table_from_index)
10993 (create_signatured_type_table_from_debug_names)
10994 (create_all_type_units, add_type_unit)
10995 (lookup_dwo_signatured_type, lookup_signatured_type)
10996 (process_skeletonless_type_unit): Update.
10997 (create_debug_type_hash_table, create_debug_types_hash_table):
10998 Change type of types_htab.
10999 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11000 htab_up. Don't allocate on obstack.
11001 (create_cus_hash_table): Change type of cus_htab parameter.
11002 (struct dwo_file) <cus, tus>: Now htab_up.
11003 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11004 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11005 (queue_and_load_all_dwo_tus): Update.
11006 * dwarf2/index-write.c (write_gdbindex): Update.
11007 (write_debug_names): Update.
11008
39856def
TT
110092020-02-08 Tom Tromey <tom@tromey.com>
11010
11011 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11012 dwarf2/read.c. Remove "next" member. Add constructor ntad
11013 destructor.
11014 (struct dwarf2_per_objfile) <queue>: New member.
11015 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11016 dwarf2/read.h.
11017 (dwarf2_queue, dwarf2_queue_tail): Remove.
11018 (class dwarf2_queue_guard): Add parameter to constructor. Use
11019 DISABLE_COPY_AND_ASSIGN.
11020 <m_per_objfile>: New member.
11021 <~dwarf2_queue_guard>: Rewrite.
11022 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11023 Update.
11024 (~dwarf2_queue_item): New.
11025
3e225074
TT
110262020-02-08 Tom Tromey <tom@tromey.com>
11027
11028 * dwarf2/read.c (struct die_info) <has_children>: New member.
11029 (dw2_get_file_names_reader): Remove has_children.
11030 (dw2_get_file_names): Update.
11031 (read_cutu_die_from_dwo): Remove has_children.
11032 (cutu_reader::init_tu_and_read_dwo_dies)
11033 (cutu_reader::cutu_reader): Update.
11034 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11035 Remove has_children.
11036 (build_type_psymtabs_1, process_skeletonless_type_unit)
11037 (load_partial_comp_unit, load_full_comp_unit): Update.
11038 (create_dwo_cu_reader): Remove has_children.
11039 (create_cus_hash_table, read_die_and_children): Update.
11040 (read_full_die_1,read_full_die): Remove has_children.
11041 (read_signatured_type): Update.
11042 (class cutu_reader) <has_children>: Remove.
11043
82ca8957
TT
110442020-02-08 Tom Tromey <tom@tromey.com>
11045
11046 * dwarf2/expr.c: Rename from dwarf2expr.c.
11047 * dwarf2/expr.h: Rename from dwarf2expr.h.
11048 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11049 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11050 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11051 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11052 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11053 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11054 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11055 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11056 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11057 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11058 * dwarf2/loc.c: Rename from dwarf2loc.c.
11059 * dwarf2/loc.h: Rename from dwarf2loc.h.
11060 * dwarf2/read.c: Rename from dwarf2read.c.
11061 * dwarf2/read.h: Rename from dwarf2read.h.
11062 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11063 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11064 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11065 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11066 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11067 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11068 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11069 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11070 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11071 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11072 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11073 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11074 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11075 Update.
11076 * Makefile.in (COMMON_SFILES): Update.
11077 (HFILES_NO_SRCDIR): Update.
11078
9e35d499
TT
110792020-02-08 Tom Tromey <tom@tromey.com>
11080
11081 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11082 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11083
1eba2311
TT
110842020-02-08 Tom Tromey <tom@tromey.com>
11085
11086 * dwarf2read.h (struct die_info): Don't declare.
11087
e41c2da2
TT
110882020-02-08 Tom Tromey <tom@tromey.com>
11089
11090 * dwarf2read.h (die_info_ptr): Remove typedef.
11091
4fc6c0d5
TT
110922020-02-08 Tom Tromey <tom@tromey.com>
11093
11094 * dwarf2read.c (read_call_site_scope)
11095 (handle_data_member_location, dwarf2_add_member_fn)
11096 (mark_common_block_symbol_computed, read_common_block)
11097 (attr_to_dynamic_prop, partial_die_info::read)
11098 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11099 (dwarf2_symbol_mark_computed, set_die_type): Update.
11100 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11101 method.
11102 (attr_form_is_block): Don't declare.
11103 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11104
cd6c91b4
TT
111052020-02-08 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2read.c (dwarf2_find_base_address, )
11108 (read_call_site_scope, rust_containing_type)
11109 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11110 (handle_data_member_location, dwarf2_add_member_fn)
11111 (get_alignment, read_structure_type, process_structure_scope)
11112 (mark_common_block_symbol_computed, read_common_block)
11113 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11114 (partial_die_info::read, read_attribute_value, new_symbol)
11115 (lookup_die_type, dwarf2_get_ref_die_offset)
11116 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11117 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11118 (dwarf2_symbol_mark_computed): Update.
11119 * dwarf2/attribute.h (struct attribute) <value_as_address,
11120 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11121 methods.
11122 (value_as_address, attr_form_is_section_offset)
11123 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11124 * dwarf2/attribute.c (attribute::value_as_address)
11125 (attribute::form_is_section_offset, attribute::form_is_constant)
11126 (attribute::form_is_ref): Now methods.
11127
162dce55
TT
111282020-02-08 Tom Tromey <tom@tromey.com>
11129
11130 * dwarf2read.c (struct attribute, DW_STRING)
11131 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11132 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11133 (attr_form_is_block, attr_form_is_section_offset)
11134 (attr_form_is_constant, attr_form_is_ref): Move.
11135 * dwarf2/attribute.h: New file.
11136 * dwarf2/attribute.c: New file, from dwarf2read.c.
11137 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11138
3054dd54
TT
111392020-02-08 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11142 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11143 Move.
11144 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11145 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11146 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11147 abbrev.c.
11148 * dwarf2/abbrev.h: New file.
11149 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11150 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11151
96b79293
TT
111522020-02-08 Tom Tromey <tom@tromey.com>
11153
11154 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11155 (dwarf2_section_size, dwarf2_get_section_info)
11156 (create_signatured_type_table_from_debug_names)
11157 (create_addrmap_from_aranges, read_debug_names_from_section)
11158 (get_gdb_index_contents_from_section, read_comp_unit_head)
11159 (error_check_comp_unit_head, read_abbrev_offset)
11160 (create_debug_type_hash_table, init_cu_die_reader)
11161 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11162 (read_comp_units_from_section, create_cus_hash_table)
11163 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11164 (create_dwp_v2_section, dwarf2_rnglists_process)
11165 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11166 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11167 (read_indirect_string_from_dwz, read_addr_index_1)
11168 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11169 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11170 (fill_in_loclist_baton): Update.
11171 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11172 get_containing_section, get_bfd_owner, get_bfd_section,
11173 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11174 (dwarf2_read_section, get_section_name, get_section_file_name)
11175 (get_containing_section, get_section_bfd_owner)
11176 (get_section_bfd_section, get_section_name, get_section_file_name)
11177 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11178 declare.
11179 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11180 (dwarf2_section_info::get_bfd_owner)
11181 (dwarf2_section_info::get_bfd_section)
11182 (dwarf2_section_info::get_name)
11183 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11184 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11185 (dwarf2_section_info::read): Now methods.
11186 * dwarf-index-write.c (class debug_names): Update.
11187
2c86cff9
TT
111882020-02-08 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11191 Move to dwarf2/section.h.
11192 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11193 (get_section_bfd_section, get_section_name)
11194 (get_section_file_name, get_section_id, get_section_flags)
11195 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11196 dwarf2/section.c.
11197 * dwarf2/section.h: New file.
11198 * dwarf2/section.c: New file, from dwarf2read.c.
11199 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11200
f4382c45
TT
112012020-02-08 Tom Tromey <tom@tromey.com>
11202
11203 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11204 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11205 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11206 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11207 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11208 * dwarf2/leb.h: New file, from dwarf2read.c.
11209 * dwarf2/leb.c: New file, from dwarf2read.c.
11210 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11211 Remove.
11212 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11213 (COMMON_SFILES): Add dwarf2/leb.c.
11214
01840b7a
JB
112152020-02-08 Joel Brobecker <brobecker@adacore.com>
11216
11217 GDB 9.1 released.
11218
dfcb27e4
IB
112192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11220
11221 PR gdb/25190:
aac66a4c
SM
11222 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11223 * gdb/remote.c (remote_console_output): Update.
11224 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11225 (ui_file_puts): ...this.
11226 * gdb/ui-file.h (ui_file_puts): Add declaration.
11227 * gdb/utils.c (emit_style_escape): Update.
11228 (flush_wrap_buffer): Update.
11229 (fputs_maybe_filtered): Update.
11230 (fputs_unfiltered): Add function.
dfcb27e4 11231
faa17681
IB
112322020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11233
aac66a4c
SM
11234 * gdb/event-loop.c (gdb_wait_for_event): Update.
11235 * gdb/printcmd.c (printf_command): Update.
11236 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11237 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11238 (gdb_os_flush_stderr): Update.
11239 * gdb/remote.c (remote_console_output): Update.
11240 * gdb/ui-file.c (gdb_flush): Rename to...
11241 (ui_file_flush): ...this.
11242 (stderr_file::write): Update.
11243 (stderr_file::puts): Update.
11244 * gdb/ui-file.h (gdb_flush): Rename to...
11245 (ui_file_flush): ...this.
11246 * gdb/utils.c (gdb_flush): Add function.
11247 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11248
5abbbe1d
TT
112492020-02-07 Tom Tromey <tromey@adacore.com>
11250
11251 PR breakpoints/24915:
11252 * source.c (find_and_open_source): Do not check basenames_may_differ.
11253
919adfe8
TT
112542020-02-07 Tom Tromey <tom@tromey.com>
11255
11256 * README: Update gdbserver documentation.
11257 * gdbserver: Move to top level.
11258 * configure.tgt (build_gdbserver): Remove.
11259 * configure.ac: Remove --enable-gdbserver.
11260 * configure: Rebuild.
11261 * Makefile.in (distclean): Don't mention gdbserver.
11262
1d5d29e7
SV
112632020-02-06 Shahab Vahedi <shahab@synopsys.com>
11264
11265 * source-cache.c (source_cache::ensure): Surround
11266 get_plain_source_lines with a try/catch.
11267 (source_cache::get_line_charpos): Get rid of try/catch
11268 and only check for the return value of "ensure".
11269 * tui/tui-source.c (tui_source_window::set_contents):
11270 Simplify "nlines" calculation.
11271
6eb1129c
SV
112722020-02-06 Shahab Vahedi <shahab@synopsys.com>
11273
11274 * MAINTAINERS (Write After Approval): Add myself.
11275
c6a42d11
CB
112762020-02-05 Christian Biesinger <cbiesinger@google.com>
11277
11278 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11279 function call.
11280
c8ecdda6
CB
112812020-02-05 Christian Biesinger <cbiesinger@google.com>
11282
11283 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11284
f6480e70
MR
112852020-02-05 Maciej W. Rozycki <macro@wdc.com>
11286
11287 * nat/riscv-linux-tdesc.h: New file.
11288 * nat/riscv-linux-tdesc.c: New file, taking code from...
11289 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11290 ... here.
11291 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11292 NATDEPFILES.
11293
dcc9fbc6
AB
112942020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11295
11296 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11297 we don't set the fake simulator ptid to the null_ptid.
11298
719546c4
SM
112992020-02-03 Simon Marchi <simon.marchi@efficios.com>
11300
11301 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11302 * gdbthread.h (class thread_info) <resumed>: Likewise.
11303 * infrun.c (resume_1): Likewise.
11304 (proceed): Likewise.
11305 (infrun_thread_stop_requested): Likewise.
11306 (stop_all_threads): Likewise.
11307 (handle_inferior_event): Likewise.
11308 (restart_threads): Likewise.
11309 (finish_step_over): Likewise.
11310 (keep_going_stepped_thread): Likewise.
11311 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11312 (linux_handle_extended_wait): Likewise.
11313 * record-btrace.c (get_thread_current_frame_id): Likewise.
11314 * record-full.c (record_full_wait_1): Likewise.
11315 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11316 * target.c (target_resume): Likewise.
11317 * thread.c (set_running_thread): Likewise.
11318
e409c542
AKS
113192020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11320
11321 * f-valprint.c (f77_print_array_1): Changed datatype of index
11322 variable to LONGEST from int to enable it to contain bound
11323 values correctly.
11324
ee98c0da
MR
113252020-02-03 Maciej W. Rozycki <macro@wdc.com>
11326
11327 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11328 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11329 offsets according to FLEN determined.
11330 (riscv_linux_nat_target::read_description): Determine FLEN
11331 dynamically.
11332 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11333 according to FLEN determined.
11334 (riscv_linux_nat_target::store_registers): Likewise.
11335
aa66aac4
SV
113362020-02-01 Shahab Vahedi <shahab@synopsys.com>
11337
11338 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11339 when reg->group is empty and reggroup is not.
11340
fd9faca8
TT
113412020-01-31 Tom Tromey <tromey@adacore.com>
11342
11343 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11344 Call beneath target's mourn_inferior after unpushing.
11345
42330a68
AB
113462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11347
11348 PR tui/9765
11349 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11350 have enough lines to fill the screen, still return the lowest
11351 address we found.
11352
7a27a45b
AB
113532020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11354
11355 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11356 '-', '<', and '>' commands.
11357
c47f70e2
PA
113582020-01-29 Pedro Alves <palves@redhat.com>
11359 Sergio Durigan Junior <sergiodj@redhat.com>
11360
11361 * infcmd.c (construct_inferior_arguments): Assert that
11362 'argc' is greater than 0.
11363
5133a315
LM
113642020-01-29 Luis Machado <luis.machado@linaro.org>
11365
11366 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11367 (BRK_INSN_MASK): Define to 0xd4200000.
11368 (aarch64_program_breakpoint_here_p): New function.
11369 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11370 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11371 breakpoint.c.
11372 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11373 breakpoint.h
11374 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11375 call gdbarch_program_breakpoint_here_p.
11376 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11377 default_program_breakpoint_here_p, changed return type to bool and
11378 simplified.
11379 * breakpoint.h (program_breakpoint_here): Moved prototype to
11380 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11381 return type to bool.
11382 * gdbarch.c: Regenerate.
11383 * gdbarch.h: Regenerate.
11384 * gdbarch.sh (program_breakpoint_here_p): New method.
11385 * infrun.c (handle_signal_stop): Call
11386 gdbarch_program_breakpoint_here_p.
11387
168f8c6b
TT
113882020-01-26 Tom Tromey <tom@tromey.com>
11389
11390 * ctfread.c (struct ctf_fp_info): Reindent.
11391 (_initialize_ctfread): Remove.
11392
128a391f
TT
113932020-01-26 Tom Tromey <tom@tromey.com>
11394
11395 * psymtab.c (partial_map_expand_apply)
11396 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11397 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11398 (psym_print_stats, psym_expand_symtabs_for_function)
11399 (psym_map_symbol_filenames, psym_map_matching_symbols)
11400 (psym_expand_symtabs_matching)
11401 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11402 (maintenance_check_psymtabs): Use new methods.
11403 * psympriv.h (struct partial_symtab) <readin_p,
11404 get_compunit_symtab>: New methods.
11405 <readin, compunit_symtab>: Remove members.
11406 (struct standard_psymtab): New.
11407 (struct legacy_psymtab): Derive from standard_psymtab.
11408 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11409 standard_psymtab.
11410 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11411
0494dbec
TT
114122020-01-26 Tom Tromey <tom@tromey.com>
11413
11414 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11415 read_dependencies. Add assert.
11416 * psymtab.c (partial_symtab::read_dependencies): New method.
11417 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11418 method.
11419 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11420 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11421 read_dependencies.
11422 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11423 Add assert.
11424
8566b89b
TT
114252020-01-26 Tom Tromey <tom@tromey.com>
11426
11427 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11428 Call expand_psymtab.
11429 (xcoff_read_symtab): Call expand_psymtab.
11430 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11431 legacy_expand_psymtab.
11432 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11433 method.
11434 (struct legacy_psymtab) <expand_psymtab>: Implement.
11435 <legacy_expand_psymtab>: New member.
11436 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11437 (parse_partial_symbols): Set legacy_expand_psymtab.
11438 (psymtab_to_symtab_1): Change argument order. Call
11439 expand_psymtab.
11440 (new_psymtab): Set legacy_expand_psymtab.
11441 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11442 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11443 expand_psymtab.
11444 (dwarf2_psymtab::expand_psymtab): Rename from
11445 psymtab_to_symtab_1. Call expand_psymtab.
11446 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11447 (dbx_end_psymtab): Likewise.
11448 (dbx_psymtab_to_symtab_1): Change argument order. Call
11449 expand_psymtab.
11450 (dbx_read_symtab): Call expand_psymtab.
11451 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11452 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11453 (ctf_psymtab::read_symtab): Call expand_psymtab.
11454
077cbab2
TT
114552020-01-26 Tom Tromey <tom@tromey.com>
11456
11457 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11458 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11459 messages.
11460 * mdebugread.c (mdebug_read_symtab): Remove prints.
11461 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11462 assert.
11463 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11464
891813be
TT
114652020-01-26 Tom Tromey <tom@tromey.com>
11466
11467 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11468 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11469 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11470 legacy_symtab.
11471 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11472 * psymtab.c (psymtab_to_symtab): Call method.
11473 (dump_psymtab): Update.
11474 * psympriv.h (struct partial_symtab): Add virtual destructor.
11475 <read_symtab>: New method.
11476 (struct legacy_symtab): New.
11477 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11478 (struct pst_map) <pst>: Now a legacy_psymtab.
11479 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11480 (new_psymtab): Use legacy_psymtab.
11481 * dwarf2read.h (struct dwarf2_psymtab): New.
11482 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11483 * dwarf2read.c (dwarf2_create_include_psymtab)
11484 (dwarf2_build_include_psymtabs, create_type_unit_group)
11485 (create_partial_symtab, process_psymtab_comp_unit_reader)
11486 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11487 (set_partial_user): Use dwarf2_psymtab.
11488 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11489 (psymtab_to_symtab_1, process_full_comp_unit)
11490 (process_full_type_unit, dwarf2_ranges_read)
11491 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11492 (dwarf_decode_lines): Use dwarf2_psymtab.
11493 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11494 (add_address_entry_worker, write_one_signatured_type)
11495 (recursively_count_psymbols, recursively_write_psymbols)
11496 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11497 (write_debug_names): Likewise.
11498 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11499 <pst>: Now a legacy_psymtab.
11500 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11501 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11502 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11503 * ctfread.c (struct ctf_psymtab): New.
11504 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11505 ctf_psymtab.
11506 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11507 (create_partial_symtab): Return a ctf_psymtab.
11508 (scan_partial_symbols): Update.
11509
c3693a1d
TT
115102020-01-26 Tom Tromey <tom@tromey.com>
11511
11512 * xcoffread.c (xcoff_start_psymtab): Use new.
11513 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11514 renamed from start_psymtab_common.
11515 * psympriv.h (struct partial_symtab): Add new constructor.
11516 (start_psymtab_common): Don't declare.
11517 * mdebugread.c (parse_partial_symbols): Use new.
11518 * dwarf2read.c (create_partial_symtab): Use new.
11519 * dbxread.c (start_psymtab): Use new.
11520 * ctfread.c (create_partial_symtab): Use new.
11521
32caafd0
TT
115222020-01-26 Tom Tromey <tom@tromey.com>
11523
11524 * xcoffread.c (xcoff_end_psymtab): Use new.
11525 * psymtab.c (start_psymtab_common): Use new.
11526 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11527 Update.
11528 * psympriv.h (struct partial_symtab): Add parameters to
11529 constructor. Don't inline.
11530 (allocate_psymtab): Don't declare.
11531 * mdebugread.c (new_psymtab): Use new.
11532 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11533 * dbxread.c (dbx_end_psymtab): Use new.
11534
abaa2f23
TT
115352020-01-26 Tom Tromey <tom@tromey.com>
11536
11537 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11538 allocate_psymtab. Update documentation.
11539 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11540 allocate_psymtab. Do not use new.
11541 (allocate_psymtab): Use new. Update.
11542
6d94535f
TT
115432020-01-26 Tom Tromey <tom@tromey.com>
11544
11545 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11546 * psymtab.c (psym_print_stats): Update.
11547 * psympriv.h (struct partial_symtab) <readin,
11548 psymtabs_addrmap_supported, anonymous>: Now bool.
11549 * mdebugread.c (psymtab_to_symtab_1): Update.
11550 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11551 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11552 (process_full_comp_unit, process_full_type_unit): Update.
11553 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11554 * ctfread.c (psymtab_to_symtab): Update.
11555
6f17252b
TT
115562020-01-26 Tom Tromey <tom@tromey.com>
11557
11558 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11559 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11560 * psymtab.c (psymtab_storage): Delete psymtabs.
11561 (psymtab_storage::allocate_psymtab): Use new.
11562 (psymtab_storage::discard_psymtab): Use delete.
11563 * psympriv.h (struct partial_symtab): Add constructor and
11564 initializers.
11565
f6f1cebc
TT
115662020-01-26 Tom Tromey <tom@tromey.com>
11567
11568 * machoread.c: Do not include psympriv.h.
11569
e47e48f6
PW
115702020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11571
11572 * NEWS: Mention the new option and the set/show commands.
11573
a2fedca9
PW
115742020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11575
11576 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11577 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11578 (validate_exec_file): New variables, enums, functions.
11579 (exec_file_locate_attach, print_section_info): Style the filenames.
11580 (_initialize_exec): Install show_exec_file_mismatch_command and
11581 set_exec_file_mismatch_command.
11582 * gdbcore.h (validate_exec_file): Declare.
11583 * infcmd.c (attach_command): Call validate_exec_file.
11584 * remote.c ( remote_target::remote_add_inferior): Likewise.
11585
7ffa82e1
AB
115862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11587
11588 * frame.c (find_frame_sal): Move call to get_next_frame into more
11589 inner scope.
11590 * inline-frame.c (inilne_state) <inline_state>: Update argument
11591 types.
11592 (inilne_state) <skipped_symbol>: Rename to...
11593 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11594 (skip_inline_frames): Build vector of skipped symbols and use this
11595 to reate the inline_state.
11596 (inline_skipped_symbol): Add a comment and some assertions, fetch
11597 skipped symbol from the list.
11598
3d92a3e3
AB
115992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11600
11601 * buildsym.c (lte_is_less_than): Delete.
11602 (buildsym_compunit::end_symtab_with_blockvector): Create local
11603 lambda function to sort line table entries, and use
11604 std::stable_sort instead of std::sort.
11605 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11606 markers when looking for a previous line.
11607
94a72be7
AB
116082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11609
11610 * dwarf2read.c (lnp_state_machine::record_line): Include
11611 end_sequence parameter in debug print out. Record the line if we
11612 are at an end_sequence marker even if it's not the start of a
11613 statement.
11614 * symmisc.c (maintenance_print_one_line_table): Print end of
11615 sequence markers with 'END' not '0'.
11616
53af73bf
PA
116172020-01-24 Pedro Alves <palves@redhat.com>
11618
11619 PR gdb/25410
11620 * thread.c (scoped_restore_current_thread::restore): Use
11621 switch_to_inferior_no_thread.
11622 * exec.c: Include "progspace-and-thread.h".
11623 (add_target_sections, remove_target_sections):
11624 scoped_restore_current_pspace_and_thread instead of
11625 scoped_restore_current_thread.
11626 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11627 and aspace to the inferior before calling clone_program_space.
11628 Remove stale comment.
11629
3050c6f4
CB
116302020-01-24 Christian Biesinger <cbiesinger@google.com>
11631
11632 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11633 (arm_netbsd_nat_target::fetch_registers): ...this.
11634 (arm_nbsd_nat_target::store_registers): Rename to...
11635 (arm_netbsd_nat_target::store_registers): ...this.
11636
73685c7e
CB
116372020-01-24 Christian Biesinger <cbiesinger@google.com>
11638
11639 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11640 register_t.
11641
89203d40
CB
116422020-01-24 Christian Biesinger <cbiesinger@google.com>
11643
11644 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11645 Update comment.
11646 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11647 Likewise.
11648 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11649 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11650 the correct replacement (iterate_over_regset_sections).
11651 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11652 Update comment.
11653
1ba1ac88
AB
116542020-01-24 Graham Markall <graham.markall@embecosm.com>
11655
11656 PR gdb/23718
11657 * gdb/python/python.c (execute_gdb_command): Call
11658 async_enable_stdin in catch block.
11659
f3364a6d
AB
116602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11661
11662 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11663 SWITCH_THRU_ALL_UIS.
11664
733d0a67
AB
116652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11666
11667 PR tui/9765
11668 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11669 comment, add extra parameter, and update to store previous symbol
11670 when appropriate.
11671 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11672 add extra parameter.
11673 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11674 remove unneeded parameter, add try/catch around gdb_print_insn,
11675 rewrite to add items to asm_lines vector.
11676 (tui_find_backward_disassembly_start_address): New function.
11677 (tui_find_disassembly_address): Updated throughout.
11678 (tui_disasm_window::set_contents): Update for changes to
11679 tui_disassemble.
11680 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11681 number of lines to scroll.
11682
b3b3bada
SM
116832020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11684
11685 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11686 (SECT_OFF_DATA): Likewise.
11687 (SECT_OFF_RODATA): Likewise.
11688 (SECT_OFF_TEXT): Likewise.
11689 (SECT_OFF_BSS): Likewise.
11690 (struct objfile) <text_section_offset, data_section_offset>: New
11691 methods.
11692 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11693 objfile::text_section_offset.
11694 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11695 * coffread.c (coff_symtab_read): Likewise.
11696 (enter_linenos): Likewise.
11697 (process_coff_symbol): Likewise.
11698 * ctfread.c (get_objfile_text_range): Likewise.
11699 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11700 Use objfile::data_section_offset.
11701 * dwarf2-frame.c (execute_cfa_program): Use
11702 objfile::text_section_offset.
11703 (dwarf2_frame_find_fde): Likewise.
11704 * dwarf2read.c (create_addrmap_from_index): Likewise.
11705 (create_addrmap_from_aranges): Likewise.
11706 (dw2_find_pc_sect_compunit_symtab): Likewise.
11707 (process_psymtab_comp_unit_reader): Likewise.
11708 (add_partial_symbol): Likewise.
11709 (add_partial_subprogram): Likewise.
11710 (process_full_comp_unit): Likewise.
11711 (read_file_scope): Likewise.
11712 (read_func_scope): Likewise.
11713 (read_lexical_block_scope): Likewise.
11714 (read_call_site_scope): Likewise.
11715 (dwarf2_rnglists_process): Likewise.
11716 (dwarf2_ranges_process): Likewise.
11717 (dwarf2_ranges_read): Likewise.
11718 (dwarf_decode_lines_1): Likewise.
11719 (new_symbol): Likewise.
11720 (dwarf2_fetch_die_loc_sect_off): Likewise.
11721 (dwarf2_per_cu_text_offset): Likewise.
11722 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11723 * hppa-tdep.c (read_unwind_info): Likewise.
11724 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11725 * psympriv.h (struct partial_symtab): Likewise.
11726 * psymtab.c (find_pc_sect_psymtab): Likewise.
11727 * solib-svr4.c (enable_break): Likewise.
11728 * stap-probe.c (relocate_address): Use
11729 objfile::data_section_offset.
11730 * xcoffread.c (enter_line_range): Use
11731 objfile::text_section_offset.
11732 (read_xcoff_symtab): Likewise.
11733
ab53f382
SM
117342020-01-23 Simon Marchi <simon.marchi@efficios.com>
11735
11736 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11737 declaration to narrower scopes.
11738
e7eee665
SM
117392020-01-23 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * darwin-nat.h (struct darwin_exception_msg, enum
11742 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11743 Move up.
11744 (class darwin_nat_target) <wait_1, check_new_threads,
11745 decode_exception_message, decode_message, stop_inferior,
11746 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11747 * darwin-nat.c (darwin_check_new_threads): Rename to...
11748 (darwin_nat_target::check_new_threads): ... this.
11749 (darwin_suspend_inferior_it): Remove.
11750 (darwin_decode_exception_message): Rename to...
11751 (darwin_nat_target::decode_exception_message): ... this.
11752 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11753 (darwin_decode_message): Rename to...
11754 (darwin_nat_target::decode_message): ... this.
11755 (cancel_breakpoint): Rename to...
11756 (darwin_nat_target::cancel_breakpoint): ... this.
11757 (darwin_wait): Rename to...
11758 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11759 instead of iterate_over_inferiors.
11760 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11761 (darwin_stop_inferior): Rename to...
11762 (darwin_nat_target::stop_inferior): ... this.
11763 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11764 (darwin_init_thread_list): Rename to...
11765 (darwin_nat_target::init_thread_list): ... this.
11766 (darwin_ptrace_him): Rename to...
11767 (darwin_nat_target::ptrace_him): ... this.
11768 (darwin_nat_target::create_inferior): Pass lambda function to
11769 fork_inferior.
11770 (darwin_nat_target::detach): Call stop_inferior instead of
11771 darwin_stop_inferior.
11772 * fork-inferior.h (fork_inferior): Change init_trace_fun
11773 parameter to gdb::function_view.
11774 * fork-inferior.c (fork_inferior): Likewise.
11775
c162ed3e
HD
117762020-01-23 Hannes Domani <ssbssa@yahoo.de>
11777
11778 * i386-cygwin-tdep.c (core_process_module_section): Update.
11779 * windows-nat.c (struct lm_info_windows): Add text_offset.
11780 (windows_xfer_shared_libraries): Update.
11781 * windows-tdep.c (windows_xfer_shared_library):
11782 Add text_offset_cached argument.
11783 * windows-tdep.h (windows_xfer_shared_library): Update.
11784
a1237872
SM
117852020-01-21 Simon Marchi <simon.marchi@efficios.com>
11786
11787 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11788
b3ee6dd9
SM
117892020-01-21 Simon Marchi <simon.marchi@efficios.com>
11790
11791 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11792 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11793 replace with range-based for.
11794 (gdbsim_interrupt_inferior): Remove.
11795 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11796 with a range-based for. Inline code from
11797 gdbsim_interrupt_inferior.
11798
f9fac3c8
SM
117992020-01-21 Simon Marchi <simon.marchi@efficios.com>
11800
11801 * infrun.c (proceed): Fix indentation.
11802
f6474de9
TT
118032020-01-21 Tom Tromey <tromey@adacore.com>
11804
11805 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11806 * python/python.c (python_extension_ops): Update.
11807 (gdbpy_colorize): New function.
11808 * python/lib/gdb/__init__.py (colorize): New function.
11809 * extension.h (ext_lang_colorize): Declare.
11810 * extension.c (ext_lang_colorize): New function.
11811 * extension-priv.h (struct extension_language_ops) <colorize>: New
11812 member.
11813 * cli/cli-style.c (_initialize_cli_style): Update help text.
11814
f0c702d4
LM
118152020-01-21 Luis Machado <luis.machado@linaro.org>
11816
11817 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11818 <cond>: Change type to bool.
11819 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11820 (aarch64_displaced_step_cb): Likewise.
11821 (aarch64_displaced_step_tb): Likewise.
11822
1ab139e5
LM
118232020-01-21 Luis Machado <luis.machado@linaro.org>
11824
11825 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11826 output.
11827
0c271889
LM
118282020-01-21 Luis Machado <luis.machado@linaro.org>
11829
11830 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11831 <pc_adjust>: Adjust the documentation.
11832 (aarch64_displaced_step_fixup): Check if PC really moved before
11833 adjusting it.
11834
4d89c1c7
TT
118352020-01-19 Tom Tromey <tom@tromey.com>
11836
11837 * disasm.c (~gdb_disassembler): New destructor.
11838 (gdb_buffered_insn_length): Call disassemble_free_target.
11839 * disasm.h (class gdb_disassembler): Declare destructor. Use
11840 DISABLE_COPY_AND_ASSIGN.
11841
c0ab21c2
TT
118422020-01-19 Tom Tromey <tom@tromey.com>
11843
11844 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11845 (die_reader_func_ftype): Remove.
11846 (cutu_reader): New class.
11847 (dw2_get_file_names_reader): Remove "data" parameter.
11848 (dw2_get_file_names): Use cutu_reader.
11849 (create_debug_type_hash_table): Update.
11850 (read_cutu_die_from_dwo): Update comment.
11851 (lookup_dwo_unit): Add dwo_name parameter.
11852 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11853 die_reader_func_ftype and data parameters.
11854 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11855 Remove die_reader_func_ftype and data parameters.
11856 (~cutu_reader): New; from init_cutu_and_read_dies.
11857 (cutu_reader::cutu_reader): Rename from
11858 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11859 and data parameters.
11860 (init_cutu_and_read_dies_simple): Remove.
11861 (struct process_psymtab_comp_unit_data): Remove.
11862 (process_psymtab_comp_unit_reader): Remove data parameter; add
11863 want_partial_unit and pretend_language parameters.
11864 (process_psymtab_comp_unit): Use cutu_reader.
11865 (build_type_psymtabs_reader): Remove data parameter.
11866 (build_type_psymtabs_1): Use cutu_reader.
11867 (process_skeletonless_type_unit): Likewise.
11868 (load_partial_comp_unit_reader): Remove.
11869 (load_partial_comp_unit): Use cutu_reader.
11870 (load_full_comp_unit_reader): Remove.
11871 (load_full_comp_unit): Use cutu_reader.
11872 (struct create_dwo_cu_data): Remove.
11873 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11874 dwo_unit parameters.
11875 (create_cus_hash_table): Use cutu_reader.
11876 (struct dwarf2_read_addr_index_data): Remove.
11877 (dwarf2_read_addr_index_reader): Remove.
11878 (dwarf2_read_addr_index): Use cutu_reader.
11879 (read_signatured_type_reader): Remove.
11880 (read_signatured_type): Use cutu_reader.
11881
45bbae5c
TT
118822020-01-19 Tom Tromey <tom@tromey.com>
11883
11884 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11885 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11886 (tui_wrefresh): Declare.
11887 * tui/tui-wingeneral.c (suppress_output): New global.
11888 (tui_suppress_output, ~tui_suppress_output): New constructor and
11889 destructor.
11890 (tui_wrefresh): New function.
11891 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11892 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11893 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11894 method.
11895 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11896 tui_wrefresh.
11897 (tui_data_window::no_refresh): New method.
11898 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11899 (tui_reg_command): Use tui_suppress_output
11900 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11901 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11902 method.
11903 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11904
4f13c1c0
TT
119052020-01-19 Tom Tromey <tom@tromey.com>
11906
11907 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11908 Handle case where symtab is null.
11909
fa47e446
SM
119102020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11911
11912 * linux-fork.c (one_fork_p): Simplify.
11913
26f42329
SM
119142020-01-17 Simon Marchi <simon.marchi@efficios.com>
11915
11916 * top.c (struct qt_args): Remove.
11917 (kill_or_detach): Change return type to void, replace `void *`
11918 parameter with a proper one.
11919 (print_inferior_quit_action): Likewise.
11920 (quit_confirm): Use range-based for loop to iterate over inferiors.
11921 (quit_force): Likewise.
11922
a9ac81b1
SM
119232020-01-17 Simon Marchi <simon.marchi@efficios.com>
11924
11925 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11926 `void *` parameter with proper parameters.
11927 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11928 (print_one_inferior): Change return type to void, replace `void *`
11929 parameter with proper parameters.
11930 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11931 inferiors.
11932 (get_other_inferior): Remove.
11933 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11934 inferiors.
11935
788eca49
SM
119362020-01-17 Simon Marchi <simon.marchi@efficios.com>
11937
11938 * mi/mi-interp.c (report_initial_inferior): Remove.
11939 (mi_interp::init): Use range-based for to iterate over inferiors.
11940
d9bc85b6
SM
119412020-01-17 Simon Marchi <simon.marchi@efficios.com>
11942
11943 * python/py-inferior.c (build_inferior_list): Remove.
11944 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11945
40c94099
CB
119462020-01-16 Christian Biesinger <cbiesinger@google.com>
11947
11948 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11949 (btrace_stitch_trace): Likewise.
11950 * charset.c (intermediate_encoding): Likewise (vaild).
11951 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11952 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11953 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11954
e0cdfe3c
HD
119552020-01-16 Hannes Domani <ssbssa@yahoo.de>
11956
11957 * windows-tdep.c (windows_get_tlb_type):
11958 Add rtl_user_process_parameters type.
11959
790f1718 119602020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11961 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11962
11963 PR build/24805
11964 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11965 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11966 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11967 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11968 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11969 (ps_plog): Redeclare exported functions with default visibility.
11970
3112ed97
NA
119712020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11972
11973 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11974 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11975
8dc3273e
SM
119762020-01-15 Simon Marchi <simon.marchi@efficios.com>
11977
11978 * infcmd.c (post_create_inferior): Use get_thread_regcache
11979 instead of get_current_regcache.
11980
ff47f4f0
TT
119812020-01-14 Tom Tromey <tom@tromey.com>
11982
11983 PR symtab/12535:
11984 * python/python.c (gdbpy_decode_line): Treat empty string the same
11985 as no argument.
11986
975f45b7
TT
119872020-01-14 Tom Tromey <tom@tromey.com>
11988
11989 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11990
25e57356
TT
119912020-01-14 Tom Tromey <tom@tromey.com>
11992
11993 * nat/linux-btrace.c: Don't include <config.h>.
11994 * nat/linux-ptrace.c: Don't include <config.h>.
11995 * nat/x86-linux-dregs.c: Don't include <config.h>.
11996
05ea2a05
TT
119972020-01-14 Tom Tromey <tom@tromey.com>
11998
11999 * configure: Rebuild.
12000 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12001
01027315
TT
120022020-01-14 Tom Tromey <tom@tromey.com>
12003
12004 * nat/x86-linux-dregs.c: Include configh.h.
12005 * nat/linux-ptrace.c: Include configh.h.
12006 * nat/linux-btrace.c: Include configh.h.
12007 * defs.h: Include config.h, bfd.h.
12008 * configure.ac: Don't source common.host.
12009 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12010 * configure: Rebuild.
12011 * acinclude.m4: Update path.
12012 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12013 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12014 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12015 (CLIBS): Add LIBSUPPORT.
12016 (CDEPS): Likewise.
12017 (COMMON_SFILES): Remove gdbsupport files.
12018 (HFILES_NO_SRCDIR): Likewise.
12019 (stamp-version): Update path to create-version.sh.
12020 (ALLDEPFILES): Remove gdbsupport files.
12021
b2ceabe8
TT
120222020-01-14 Tom Tromey <tom@tromey.com>
12023
12024 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12025 USE_WIN32API when needed.
12026 * configure.ac (USE_WIN32API): Don't define.
12027 (WIN32LIBS): Use WIN32APILIBS.
12028 * configure: Rebuild.
12029
25c51f71
TT
120302020-01-14 Tom Tromey <tom@tromey.com>
12031
12032 * configure: Rebuild.
12033 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12034
717c684d
BE
120352020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12036
12037 * skip.c (skip_function_command): Make skip w/o arguments use the
12038 name of the inlined function if pc is inside any inlined function.
12039
7da6a5b9
LM
120402020-01-14 Luis Machado <luis.machado@linaro.org>
12041
12042 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12043 * infrun.c (resume_1): Likewise.
12044 (handle_inferior_event): Remove stale comment.
12045 * linux-nat.c (linux_nat_target::resume): Update comments.
12046 (save_stop_reason): Likewise.
12047 (linux_nat_filter_event): Likewise.
12048 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12049
44e4c775
AB
120502020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12051
12052 * elfread.c (record_minimal_symbol): Set section index to 0 for
12053 non-allocatable sections.
12054
18a8505e
AT
12055
120562020-01-13 Ali Tamur <tamur@google.com>
12057
12058 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12059 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12060 to gdb::optional. Update comments.
12061 (dwo_file): Update comments.
12062 (read_attribute): Update API to take an additional out parameter,
12063 need_reprocess. This is used to mark attributes that need other
12064 attributes (e.g. str_offsets_base) for correct computation which may not
12065 have been read yet.
12066 (read_attribute_reprocess): New function declaration.
12067 (read_addr_index): Likewise.
12068 (read_dwo_str_index): Likewise.
12069 (read_stub_str_index): Likewise.
12070 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12071 (lookup_addr_base): New function definition.
12072 (lookup_ranges_base): Likewise.
12073 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12074 lookup_ranges_base.
12075 (init_cutu_and_read_dies): Update comments.
12076 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12077 unit. This is used to inherit parent's str_offsets_base and addr_base.
12078 Update comments.
12079 (init_cutu_and_read_dies_simple): Reflect API changes.
12080 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12081 (create_cus_hash_table): Change API to take parent compile unit.
12082 Reflect API changes.
12083 (open_and_init_dwo_file): Reflect API changes.
12084 (dwarf2_get_pc_bounds): Update comments.
12085 (dwarf2_record_block_ranges): Likewise.
12086 (read_full_die_1): Change implementation to reprocess attributes that
12087 need str_offsets_base and addr_base.
12088 (partial_die_info::read): Likewise.
12089 (read_attribute_reprocess): New function definition.
12090 (read_attribute_value): Change API to take an additional out parameter,
12091 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12092 when a non-dwo compile unit has index based attributes.
12093 (read_attribute): Reflect API changes.
12094 (read_addr_index_1): Reflect API changes. Update comments.
12095 (dwarf2_read_addr_index_data): Reflect API changes.
12096 (dwarf2_read_addr_index): Likewise.
12097 (read_str_index): Change API and implementation. This becomes a helper
12098 to be used by the new string index related methods. Update error
12099 message and comments.
12100 (read_dwo_str_index): New function definition.
12101 (read_stub_str_index): Likewise.
12102 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12103 * symfile.h (dwarf2_debug_sections): Likewise.
12104 * xcoffread.c (dwarf2_debug_sections): Likewise.
12105
0cac9354
SM
121062020-01-13 Simon Marchi <simon.marchi@efficios.com>
12107
12108 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12109 core_reg_sect type to gdb_byte *.
12110 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12111 * cris-tdep.c (fetch_core_registers): Likewise.
12112 * corelow.c (core_target::get_core_register_section): Change
12113 type of `contents` to gdb::byte_vector.
12114
9a6d629c
AB
121152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12116
12117 * tui/tui-wingeneral.c (box_win): Position the title in the center
12118 of the border.
12119
d8b2f9e3
SM
121202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12121
12122 * corelow.c (core_target::get_core_register_section): Use
12123 std::vector instead of alloca.
12124
bb564c58
SM
121252020-01-13 Simon Marchi <simon.marchi@efficios.com>
12126
12127 * warning.m4: Add -Wmissing-declarations to build_warnings.
12128 * configure: Re-generate.
12129
6b366111
SM
121302020-01-13 Simon Marchi <simon.marchi@efficios.com>
12131
12132 * python/python.c (init__gdb_module): Add declaration.
12133
6c265988
SM
121342020-01-13 Simon Marchi <simon.marchi@efficios.com>
12135
12136 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12137 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12138 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12139 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12140 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12141 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12142 * ada-exp.y (_initialize_ada_exp): Add declaration.
12143 * ada-lang.c (_initialize_ada_language): Add declaration.
12144 * ada-tasks.c (_initialize_tasks): Add declaration.
12145 * agent.c (_initialize_agent): Add declaration.
12146 * aix-thread.c (_initialize_aix_thread): Add declaration.
12147 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12148 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12149 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12150 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12151 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12152 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12153 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12154 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12155 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12156 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12157 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12158 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12159 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12160 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12161 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12162 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12163 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12164 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12165 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12166 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12167 * annotate.c (_initialize_annotate): Add declaration.
12168 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12169 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12170 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12171 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12172 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12173 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12174 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12175 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12176 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12177 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12178 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12179 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12180 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12181 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12182 * auto-load.c (_initialize_auto_load): Add declaration.
12183 * auxv.c (_initialize_auxv): Add declaration.
12184 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12185 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12186 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12187 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12188 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12189 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12190 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12191 * breakpoint.c (_initialize_breakpoint): Add declaration.
12192 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12193 * btrace.c (_initialize_btrace): Add declaration.
12194 * charset.c (_initialize_charset): Add declaration.
12195 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12196 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12197 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12198 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12199 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12200 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12201 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12202 * coffread.c (_initialize_coffread): Add declaration.
12203 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12204 * compile/compile.c (_initialize_compile): Add declaration.
12205 * complaints.c (_initialize_complaints): Add declaration.
12206 * completer.c (_initialize_completer): Add declaration.
12207 * copying.c (_initialize_copying): Add declaration.
12208 * corefile.c (_initialize_core): Add declaration.
12209 * corelow.c (_initialize_corelow): Add declaration.
12210 * cp-abi.c (_initialize_cp_abi): Add declaration.
12211 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12212 * cp-support.c (_initialize_cp_support): Add declaration.
12213 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12214 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12215 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12216 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12217 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12218 * ctfread.c (_initialize_ctfread): Add declaration.
12219 * d-lang.c (_initialize_d_language): Add declaration.
12220 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12221 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12222 * dbxread.c (_initialize_dbxread): Add declaration.
12223 * dcache.c (_initialize_dcache): Add declaration.
12224 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12225 * disasm.c (_initialize_disasm): Add declaration.
12226 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12227 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12228 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12229 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12230 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12231 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12232 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12233 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12234 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12235 * elfread.c (_initialize_elfread): Add declaration.
12236 * exec.c (_initialize_exec): Add declaration.
12237 * extension.c (_initialize_extension): Add declaration.
12238 * f-lang.c (_initialize_f_language): Add declaration.
12239 * f-valprint.c (_initialize_f_valprint): Add declaration.
12240 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12241 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12242 * filesystem.c (_initialize_filesystem): Add declaration.
12243 * findcmd.c (_initialize_mem_search): Add declaration.
12244 * findvar.c (_initialize_findvar): Add declaration.
12245 * fork-child.c (_initialize_fork_child): Add declaration.
12246 * frame-base.c (_initialize_frame_base): Add declaration.
12247 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12248 * frame.c (_initialize_frame): Add declaration.
12249 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12250 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12251 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12252 * gcore.c (_initialize_gcore): Add declaration.
12253 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12254 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12255 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12256 * gdbarch.c (_initialize_gdbarch): Add declaration.
12257 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12258 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12259 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12260 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12261 * go-lang.c (_initialize_go_language): Add declaration.
12262 * go32-nat.c (_initialize_go32_nat): Add declaration.
12263 * guile/guile.c (_initialize_guile): Add declaration.
12264 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12265 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12266 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12267 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12268 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12269 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12270 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12271 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12272 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12273 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12274 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12275 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12276 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12277 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12278 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12279 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12280 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12281 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12282 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12283 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12284 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12285 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12286 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12287 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12288 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12289 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12290 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12291 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12292 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12293 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12294 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12295 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12296 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12297 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12298 * infcall.c (_initialize_infcall): Add declaration.
12299 * infcmd.c (_initialize_infcmd): Add declaration.
12300 * inflow.c (_initialize_inflow): Add declaration.
12301 * infrun.c (_initialize_infrun): Add declaration.
12302 * interps.c (_initialize_interpreter): Add declaration.
12303 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12304 * jit.c (_initialize_jit): Add declaration.
12305 * language.c (_initialize_language): Add declaration.
12306 * linux-fork.c (_initialize_linux_fork): Add declaration.
12307 * linux-nat.c (_initialize_linux_nat): Add declaration.
12308 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12309 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12310 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12311 * m2-lang.c (_initialize_m2_language): Add declaration.
12312 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12313 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12314 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12315 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12316 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12317 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12318 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12319 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12320 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12321 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12322 * machoread.c (_initialize_machoread): Add declaration.
12323 * macrocmd.c (_initialize_macrocmd): Add declaration.
12324 * macroscope.c (_initialize_macroscope): Add declaration.
12325 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12326 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12327 * maint.c (_initialize_maint_cmds): Add declaration.
12328 * mdebugread.c (_initialize_mdebugread): Add declaration.
12329 * memattr.c (_initialize_mem): Add declaration.
12330 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12331 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12332 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12333 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12334 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12335 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12336 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12337 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12338 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12339 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12340 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12341 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12342 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12343 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12344 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12345 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12346 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12347 * mipsread.c (_initialize_mipsread): Add declaration.
12348 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12349 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12350 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12351 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12352 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12353 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12354 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12355 * nto-procfs.c (_initialize_procfs): Add declaration.
12356 * objc-lang.c (_initialize_objc_language): Add declaration.
12357 * observable.c (_initialize_observer): Add declaration.
12358 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12359 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12360 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12361 * osabi.c (_initialize_gdb_osabi): Add declaration.
12362 * osdata.c (_initialize_osdata): Add declaration.
12363 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12364 * parse.c (_initialize_parse): Add declaration.
12365 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12366 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12367 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12368 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12369 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12370 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12371 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12372 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12373 * printcmd.c (_initialize_printcmd): Add declaration.
12374 * probe.c (_initialize_probe): Add declaration.
12375 * proc-api.c (_initialize_proc_api): Add declaration.
12376 * proc-events.c (_initialize_proc_events): Add declaration.
12377 * proc-service.c (_initialize_proc_service): Add declaration.
12378 * procfs.c (_initialize_procfs): Add declaration.
12379 * producer.c (_initialize_producer): Add declaration.
12380 * psymtab.c (_initialize_psymtab): Add declaration.
12381 * python/python.c (_initialize_python): Add declaration.
12382 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12383 * record-btrace.c (_initialize_record_btrace): Add declaration.
12384 * record-full.c (_initialize_record_full): Add declaration.
12385 * record.c (_initialize_record): Add declaration.
12386 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12387 * regcache.c (_initialize_regcache): Add declaration.
12388 * reggroups.c (_initialize_reggroup): Add declaration.
12389 * remote-notif.c (_initialize_notif): Add declaration.
12390 * remote-sim.c (_initialize_remote_sim): Add declaration.
12391 * remote.c (_initialize_remote): Add declaration.
12392 * reverse.c (_initialize_reverse): Add declaration.
12393 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12394 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12395 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12396 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12397 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12398 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12399 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12400 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12401 Add declaration.
12402 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12403 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12404 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12405 * rust-exp.y (_initialize_rust_exp): Add declaration.
12406 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12407 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12408 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12409 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12410 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12411 * score-tdep.c (_initialize_score_tdep): Add declaration.
12412 * ser-go32.c (_initialize_ser_dos): Add declaration.
12413 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12414 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12415 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12416 * ser-uds.c (_initialize_ser_socket): Add declaration.
12417 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12418 * serial.c (_initialize_serial): Add declaration.
12419 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12420 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12421 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12422 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12423 * skip.c (_initialize_step_skip): Add declaration.
12424 * sol-thread.c (_initialize_sol_thread): Add declaration.
12425 * solib-aix.c (_initialize_solib_aix): Add declaration.
12426 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12427 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12428 * solib-frv.c (_initialize_frv_solib): Add declaration.
12429 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12430 * solib-target.c (_initialize_solib_target): Add declaration.
12431 * solib.c (_initialize_solib): Add declaration.
12432 * source-cache.c (_initialize_source_cache): Add declaration.
12433 * source.c (_initialize_source): Add declaration.
12434 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12435 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12436 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12437 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12438 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12439 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12440 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12441 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12442 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12443 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12444 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12445 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12446 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12447 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12448 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12449 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12450 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12451 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12452 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12453 * stabsread.c (_initialize_stabsread): Add declaration.
12454 * stack.c (_initialize_stack): Add declaration.
12455 * stap-probe.c (_initialize_stap_probe): Add declaration.
12456 * std-regs.c (_initialize_frame_reg): Add declaration.
12457 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12458 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12459 * symfile.c (_initialize_symfile): Add declaration.
12460 * symmisc.c (_initialize_symmisc): Add declaration.
12461 * symtab.c (_initialize_symtab): Add declaration.
12462 * target.c (_initialize_target): Add declaration.
12463 * target-connection.c (_initialize_target_connection): Add
12464 declaration.
12465 * target-dcache.c (_initialize_target_dcache): Add declaration.
12466 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12467 * thread.c (_initialize_thread): Add declaration.
12468 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12469 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12470 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12471 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12472 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12473 * tracectf.c (_initialize_ctf): Add declaration.
12474 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12475 * tracefile.c (_initialize_tracefile): Add declaration.
12476 * tracepoint.c (_initialize_tracepoint): Add declaration.
12477 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12478 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12479 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12480 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12481 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12482 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12483 * tui/tui.c (_initialize_tui): Add declaration.
12484 * typeprint.c (_initialize_typeprint): Add declaration.
12485 * ui-style.c (_initialize_ui_style): Add declaration.
12486 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12487 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12488 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12489 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12490 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12491 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12492 * unittests/filtered_iterator-selftests.c
12493 (_initialize_filtered_iterator_selftests): Add declaration.
12494 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12495 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12496 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12497 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12498 * unittests/main-thread-selftests.c
12499 (_initialize_main_thread_selftests): Add declaration.
12500 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12501 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12502 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12503 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12504 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12505 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12506 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12507 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12508 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12509 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12510 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12511 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12512 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12513 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12514 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12515 declaration.
12516 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12517 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12518 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12519 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12520 * user-regs.c (_initialize_user_regs): Add declaration.
12521 * utils.c (_initialize_utils): Add declaration.
12522 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12523 * valops.c (_initialize_valops): Add declaration.
12524 * valprint.c (_initialize_valprint): Add declaration.
12525 * value.c (_initialize_values): Add declaration.
12526 * varobj.c (_initialize_varobj): Add declaration.
12527 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12528 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12529 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12530 * windows-nat.c (_initialize_windows_nat): Add declaration.
12531 (_initialize_check_for_gdb_ini): Add declaration.
12532 (_initialize_loadable): Add declaration.
12533 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12534 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12535 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12536 * xcoffread.c (_initialize_xcoffread): Add declaration.
12537 * xml-support.c (_initialize_xml_support): Add declaration.
12538 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12539 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12540 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12541 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12542
e2de1eec
SM
125432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12544
12545 * regformats/regdat.sh: Generate declaration for init function.
12546
e0037b4c
SM
125472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12548
12549 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12550 up.
12551 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12552 close_one_inferior>: New methods.
12553 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12554 pass down target to find_inferior_pid.
12555 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12556 Pass down target to find_inferior_ptid.
12557 (gdbsim_target::create_inferior): Pass down target to
12558 add_thread_silent.
12559 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12560 target down to find_inferior_ptid and switch_to_thread.
12561 (gdbsim_target::close): Update to call close_one_inferior.
12562 (struct resume_data): Remove.
12563 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12564 directly, rather than through a void pointer.
12565 (gdbsim_target::resume): Update to call resume_one_inferior.
12566
58920b5b
SM
125672020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12568
12569 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12570
4ec89149
PA
125712020-01-12 Pedro Alves <palves@redhat.com>
12572
12573 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12574 directly for the current inferior instead of
12575 discard_all_inferiors.
12576 (discard_all_inferiors): Delete.
12577
7c392d1d
TT
125782020-01-11 Tom Tromey <tom@tromey.com>
12579
12580 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12581 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12582 deprecated_safe_get_selected_frame.
12583
d9ebdab7
TBA
125842020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12585
12586 * inferior.c (print_inferior): Switch inferior before printing it.
12587
f3c469b9
PA
125882020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12589 Pedro Alves <palves@redhat.com>
12590
12591 * progspace-and-thread.c (switch_to_program_space_and_thread):
12592 Assert there's an inferior for PSPACE. Use
12593 switch_to_inferior_no_thread to switch the inferior too.
12594 * progspace.c (program_space::~program_space): Call
12595 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12596 (program_space::free_all_objfiles): Don't call clear_symtab_users
12597 here.
12598 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12599
65c574f6
PA
126002020-01-10 Pedro Alves <palves@redhat.com>
12601
12602 * NEWS: Mention multi-target debugging, "info connections", and
12603 "add-inferior -no-connection".
12604
2f4fcf00
PA
126052020-01-10 Pedro Alves <palves@redhat.com>
12606
12607 * infrun.c: Include "target-connection.h".
12608 (check_multi_target_resumption): New.
12609 (proceed): Call it.
12610 * target-connection.c (make_target_connection_string): Make
12611 extern.
12612 * target-connection.h (make_target_connection_string): Declare.
12613
121b3efd
PA
126142020-01-10 Pedro Alves <palves@redhat.com>
12615
12616 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12617 * inferior.c (uiout_field_connection): New function.
12618 (print_inferior): Add new "connection-id" column.
12619 (add_inferior_command): Show connection number/string of added
12620 inferior.
12621 * process-stratum-target.h
12622 (process_stratum_target::connection_string): New virtual method.
12623 (process_stratum_target::connection_number): New field.
12624 * remote.c (remote_target::connection_string): New override.
12625 * target-connection.c: New file.
12626 * target-connection.h: New file.
12627 * target.c (decref_target): Remove process_stratum targets from
12628 the connection list.
12629 (target_stack::push): Add process_stratum targets to the
12630 connection list.
12631
4f837581
PA
126322020-01-10 Pedro Alves <palves@redhat.com>
12633
12634 Revert:
12635 2016-04-12 Pedro Alves <palves@redhat.com>
12636 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12637 Remove references to name.
12638 * serial.h (struct serial) <name>: Delete.
12639
f4ec508e
PA
126402020-01-10 Pedro Alves <palves@redhat.com>
12641
12642 * gdbarch-selftests.c (register_to_value_test): Remove "target
12643 already pushed" check.
12644
5b6d1e4f
PA
126452020-01-10 Pedro Alves <palves@redhat.com>
12646 John Baldwin <jhb@FreeBSD.org>
12647
12648 * aarch64-linux-nat.c
12649 (aarch64_linux_nat_target::thread_architecture): Adjust.
12650 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12651 (task_command_1): Likewise.
12652 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12653 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12654 (aix_thread_target::store_registers)
12655 (aix_thread_target::thread_alive): Adjust.
12656 * amd64-fbsd-tdep.c: Include "inferior.h".
12657 (amd64fbsd_get_thread_local_address): Pass down target.
12658 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12659 thread's gdbarch instead of target_gdbarch.
12660 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12661 get_last_target_status.
12662 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12663 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12664 inferiors.
12665 (update_inserted_breakpoint_locations): Skip if inferiors with no
12666 execution.
12667 (update_global_location_list): When handling moribund locations,
12668 find representative inferior for location's pspace, and use thread
12669 count of its process_stratum target.
12670 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12671 * bsd-uthread.c (bsd_uthread_target::wait): Use
12672 as_process_stratum_target and adjust thread_change_ptid and
12673 add_thread calls.
12674 (bsd_uthread_target::update_thread_list): Use
12675 as_process_stratum_target and adjust find_thread_ptid,
12676 thread_change_ptid and add_thread calls.
12677 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12678 find_thread_ptid call.
12679 * corelow.c (add_to_thread_list): Adjust add_thread call.
12680 (core_target_open): Adjust add_thread_silent and thread_count
12681 calls.
12682 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12683 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12684 * event-top.c (async_disconnect): Pop targets from all inferiors.
12685 * exec.c (add_target_sections): Push exec target on all inferiors
12686 sharing the program space.
12687 (remove_target_sections): Remove the exec target from all
12688 inferiors sharing the program space.
12689 (exec_on_vfork): New.
12690 * exec.h (exec_on_vfork): Declare.
12691 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12692 Pass it down.
12693 (fbsd_nat_target::update_thread_list): Adjust.
12694 (fbsd_nat_target::resume): Adjust.
12695 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12696 down.
12697 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12698 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12699 get_thread_arch_regcache call.
12700 * fork-child.c (gdb_startup_inferior): Pass target down to
12701 startup_inferior and set_executing.
12702 * gdbthread.h (struct process_stratum_target): Forward declare.
12703 (add_thread, add_thread_silent, add_thread_with_info)
12704 (in_thread_list): Add process_stratum_target parameter.
12705 (find_thread_ptid(inferior*, ptid_t)): New overload.
12706 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12707 parameter.
12708 (all_threads()): Delete overload.
12709 (all_threads, all_non_exited_threads): Add process_stratum_target
12710 parameter.
12711 (all_threads_safe): Use brace initialization.
12712 (thread_count): Add process_stratum_target parameter.
12713 (set_resumed, set_running, set_stop_requested, set_executing)
12714 (threads_are_executing, finish_thread_state): Add
12715 process_stratum_target parameter.
12716 (switch_to_thread): Use is_current_thread.
12717 * i386-fbsd-tdep.c: Include "inferior.h".
12718 (i386fbsd_get_thread_local_address): Pass down target.
12719 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12720 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12721 have_inferiors check.
12722 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12723 (inf_ptrace_target::attach): Adjust.
12724 * infcall.c (run_inferior_call): Adjust.
12725 * infcmd.c (run_command_1): Pass target to
12726 scoped_finish_thread_state.
12727 (proceed_thread_callback): Skip inferiors with no execution.
12728 (continue_command): Rename 'all_threads' local to avoid hiding
12729 'all_threads' function. Adjust get_last_target_status call.
12730 (prepare_one_step): Adjust set_running call.
12731 (signal_command): Use user_visible_resume_target. Compare thread
12732 pointers instead of inferior_ptid.
12733 (info_program_command): Adjust to pass down target.
12734 (attach_command): Mark target's 'thread_executing' flag.
12735 (stop_current_target_threads_ns): New, factored out from ...
12736 (interrupt_target_1): ... this. Switch inferior before making
12737 target calls.
12738 * inferior-iter.h
12739 (struct all_inferiors_iterator, struct all_inferiors_range)
12740 (struct all_inferiors_safe_range)
12741 (struct all_non_exited_inferiors_range): Filter on
12742 process_stratum_target too. Remove explicit.
12743 * inferior.c (inferior::inferior): Push dummy target on target
12744 stack.
12745 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12746 Add process_stratum_target parameter, and pass it down.
12747 (have_live_inferiors): Adjust.
12748 (switch_to_inferior_and_push_target): New.
12749 (add_inferior_command, clone_inferior_command): Handle
12750 "-no-connection" parameter. Use
12751 switch_to_inferior_and_push_target.
12752 (_initialize_inferior): Mention "-no-connection" option in
12753 the help of "add-inferior" and "clone-inferior" commands.
12754 * inferior.h: Include "process-stratum-target.h".
12755 (interrupt_target_1): Use bool.
12756 (struct inferior) <push_target, unpush_target, target_is_pushed,
12757 find_target_beneath, top_target, process_target, target_at,
12758 m_stack>: New.
12759 (discard_all_inferiors): Delete.
12760 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12761 (all_inferiors, all_non_exited_inferiors): Add
12762 process_stratum_target parameter.
12763 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12764 (target_last_proc_target): New global.
12765 (follow_fork_inferior): Push target on new inferior. Pass target
12766 to add_thread_silent. Call exec_on_vfork. Handle target's
12767 reference count.
12768 (follow_fork): Adjust get_last_target_status call. Also consider
12769 target.
12770 (follow_exec): Push target on new inferior.
12771 (struct execution_control_state) <target>: New field.
12772 (user_visible_resume_target): New.
12773 (do_target_resume): Call target_async.
12774 (resume_1): Set target's threads_executing flag. Consider resume
12775 target.
12776 (commit_resume_all_targets): New.
12777 (proceed): Also consider resume target. Skip threads of inferiors
12778 with no execution. Commit resumtion in all targets.
12779 (start_remote): Pass current inferior to wait_for_inferior.
12780 (infrun_thread_stop_requested): Consider target as well. Pass
12781 thread_info pointer to clear_inline_frame_state instead of ptid.
12782 (infrun_thread_thread_exit): Consider target as well.
12783 (random_pending_event_thread): New inferior parameter. Use it.
12784 (do_target_wait): Rename to ...
12785 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12786 down.
12787 (threads_are_resumed_pending_p, do_target_wait): New.
12788 (prepare_for_detach): Adjust calls.
12789 (wait_for_inferior): New inferior parameter. Handle it. Use
12790 do_target_wait_1 instead of do_target_wait.
12791 (fetch_inferior_event): Adjust. Switch to representative
12792 inferior. Pass target down.
12793 (set_last_target_status): Add process_stratum_target parameter.
12794 Save target in global.
12795 (get_last_target_status): Add process_stratum_target parameter and
12796 handle it.
12797 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12798 (context_switch): Check inferior_ptid == null_ptid before calling
12799 inferior_thread().
12800 (get_inferior_stop_soon): Pass down target.
12801 (wait_one): Rename to ...
12802 (poll_one_curr_target): ... this.
12803 (struct wait_one_event): New.
12804 (wait_one): New.
12805 (stop_all_threads): Adjust.
12806 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12807 event's target.
12808 (switch_back_to_stepped_thread): Also consider target.
12809 (print_stop_event): Update.
12810 (normal_stop): Update. Also consider the resume target.
12811 * infrun.h (wait_for_inferior): Remove declaration.
12812 (user_visible_resume_target): New declaration.
12813 (get_last_target_status, set_last_target_status): New
12814 process_stratum_target parameter.
12815 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12816 process_stratum_target parameter, and use it.
12817 (clear_inline_frame_state (thread_info*)): New.
12818 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12819 process_stratum_target parameter.
12820 (clear_inline_frame_state (thread_info*)): Declare.
12821 * linux-fork.c (delete_checkpoint_command): Pass target down to
12822 find_thread_ptid.
12823 (checkpoint_command): Adjust.
12824 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12825 instead of just tweaking inferior_ptid.
12826 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12827 (exit_lwp): Pass target down to find_thread_ptid.
12828 (attach_proc_task_lwp_callback): Pass target down to
12829 add_thread/set_running/set_executing.
12830 (linux_nat_target::attach): Pass target down to
12831 thread_change_ptid.
12832 (get_detach_signal): Pass target down to find_thread_ptid.
12833 Consider last target status's target.
12834 (linux_resume_one_lwp_throw, resume_lwp)
12835 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12836 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12837 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12838 (linux_nat_target::async_wait_fd): New.
12839 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12840 target down.
12841 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12842 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12843 * linux-thread-db.c (struct thread_db_info::process_target): New
12844 field.
12845 (add_thread_db_info): Save target.
12846 (get_thread_db_info): New process_stratum_target parameter. Also
12847 match target.
12848 (delete_thread_db_info): New process_stratum_target parameter.
12849 Also match target.
12850 (thread_from_lwp): Adjust to pass down target.
12851 (thread_db_notice_clone): Pass down target.
12852 (check_thread_db_callback): Pass down target.
12853 (try_thread_db_load_1): Always push the thread_db target.
12854 (try_thread_db_load, record_thread): Pass target down.
12855 (thread_db_target::detach): Pass target down. Always unpush the
12856 thread_db target.
12857 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12858 target down. Always unpush the thread_db target.
12859 (find_new_threads_callback, thread_db_find_new_threads_2)
12860 (thread_db_target::update_thread_list): Pass target down.
12861 (thread_db_target::pid_to_str): Pass current inferior down.
12862 (thread_db_target::get_thread_local_address): Pass target down.
12863 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12864 target down.
12865 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12866 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12867 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12868 (procfs_init_inferior): Rename to ...
12869 (procfs_target::procfs_init_inferior): ... this and adjust.
12870 (procfs_target::create_inferior, procfs_notice_thread)
12871 (procfs_do_thread_registers): Adjust.
12872 * ppc-fbsd-tdep.c: Include "inferior.h".
12873 (ppcfbsd_get_thread_local_address): Pass down target.
12874 * proc-service.c (ps_xfer_memory): Switch current inferior and
12875 program space as well.
12876 (get_ps_regcache): Pass target down.
12877 * process-stratum-target.c
12878 (process_stratum_target::thread_address_space)
12879 (process_stratum_target::thread_architecture): Pass target down.
12880 * process-stratum-target.h
12881 (process_stratum_target::threads_executing): New field.
12882 (as_process_stratum_target): New.
12883 * ravenscar-thread.c
12884 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12885 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12886 down.
12887 * record-btrace.c (record_btrace_target::info_record): Adjust.
12888 (record_btrace_target::record_method)
12889 (record_btrace_target::record_is_replaying)
12890 (record_btrace_target::fetch_registers)
12891 (get_thread_current_frame_id, record_btrace_target::resume)
12892 (record_btrace_target::wait, record_btrace_target::stop): Pass
12893 target down.
12894 * record-full.c (record_full_wait_1): Switch to event thread.
12895 Pass target down.
12896 * regcache.c (regcache::regcache)
12897 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12898 process_stratum_target parameter and handle it.
12899 (current_thread_target): New global.
12900 (get_thread_regcache): Add process_stratum_target parameter and
12901 handle it. Switch inferior before calling target method.
12902 (get_thread_regcache): Pass target down.
12903 (get_thread_regcache_for_ptid): Pass target down.
12904 (registers_changed_ptid): Add process_stratum_target parameter and
12905 handle it.
12906 (registers_changed_thread, registers_changed): Pass target down.
12907 (test_get_thread_arch_aspace_regcache): New.
12908 (current_regcache_test): Define a couple local test_target_ops
12909 instances and use them for testing.
12910 (readwrite_regcache): Pass process_stratum_target parameter.
12911 (cooked_read_test, cooked_write_test): Pass mock_target down.
12912 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12913 (get_thread_arch_aspace_regcache): Add process_stratum_target
12914 parameter.
12915 (regcache::target): New method.
12916 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12917 (regcache::registers_changed_ptid): Add process_stratum_target
12918 parameter.
12919 (regcache::m_target): New field.
12920 (registers_changed_ptid): Add process_stratum_target parameter.
12921 * remote.c (remote_state::supports_vCont_probed): New field.
12922 (remote_target::async_wait_fd): New method.
12923 (remote_unpush_and_throw): Add remote_target parameter.
12924 (get_current_remote_target): Adjust.
12925 (remote_target::remote_add_inferior): Push target.
12926 (remote_target::remote_add_thread)
12927 (remote_target::remote_notice_new_inferior)
12928 (get_remote_thread_info): Pass target down.
12929 (remote_target::update_thread_list): Skip threads of inferiors
12930 bound to other targets. (remote_target::close): Don't discard
12931 inferiors. (remote_target::add_current_inferior_and_thread)
12932 (remote_target::process_initial_stop_replies)
12933 (remote_target::start_remote)
12934 (remote_target::remote_serial_quit_handler): Pass down target.
12935 (remote_target::remote_unpush_target): New remote_target
12936 parameter. Unpush the target from all inferiors.
12937 (remote_target::remote_unpush_and_throw): New remote_target
12938 parameter. Pass it down.
12939 (remote_target::open_1): Check whether the current inferior has
12940 execution instead of checking whether any inferior is live. Pass
12941 target down.
12942 (remote_target::remote_detach_1): Pass down target. Use
12943 remote_unpush_target.
12944 (extended_remote_target::attach): Pass down target.
12945 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12946 (remote_target::append_resumption): Pass down target.
12947 (remote_target::append_pending_thread_resumptions)
12948 (remote_target::remote_resume_with_hc, remote_target::resume)
12949 (remote_target::commit_resume): Pass down target.
12950 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12951 (remote_target::interrupt_query)
12952 (remote_target::remove_new_fork_children)
12953 (remote_target::check_pending_events_prevent_wildcard_vcont)
12954 (remote_target::remote_parse_stop_reply)
12955 (remote_target::process_stop_reply): Pass down target.
12956 (first_remote_resumed_thread): New remote_target parameter. Pass
12957 it down.
12958 (remote_target::wait_as): Pass down target.
12959 (unpush_and_perror): New remote_target parameter. Pass it down.
12960 (remote_target::readchar, remote_target::remote_serial_write)
12961 (remote_target::getpkt_or_notif_sane_1)
12962 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12963 down target.
12964 (remote_target::mourn_inferior): Pass down target. Use
12965 remote_unpush_target.
12966 (remote_target::core_of_thread)
12967 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12968 (remote_target::pid_to_exec_file)
12969 (remote_target::thread_handle_to_thread_info): Pass down target.
12970 (remote_target::async_wait_fd): New.
12971 * riscv-fbsd-tdep.c: Include "inferior.h".
12972 (riscv_fbsd_get_thread_local_address): Pass down target.
12973 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12974 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12975 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12976 Adjust.
12977 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12978 * solib-svr4.c (enable_break): Pass down target.
12979 * spu-multiarch.c (parse_spufs_run): Pass down target.
12980 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12981 * target-delegates.c: Regenerate.
12982 * target.c (g_target_stack): Delete.
12983 (current_top_target): Return the current inferior's top target.
12984 (target_has_execution_1): Refer to the passed-in inferior's top
12985 target.
12986 (target_supports_terminal_ours): Check whether the initial
12987 inferior was already created.
12988 (decref_target): New.
12989 (target_stack::push): Incref/decref the target.
12990 (push_target, push_target, unpush_target): Adjust.
12991 (target_stack::unpush): Defref target.
12992 (target_is_pushed): Return bool. Adjust to refer to the current
12993 inferior's target stack.
12994 (dispose_inferior): Delete, and inline parts ...
12995 (target_preopen): ... here. Only dispose of the current inferior.
12996 (target_detach): Hold strong target reference while detaching.
12997 Pass target down.
12998 (target_thread_name): Add assertion.
12999 (target_resume): Pass down target.
13000 (target_ops::beneath, find_target_at): Adjust to refer to the
13001 current inferior's target stack.
13002 (get_dummy_target): New.
13003 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13004 has a thread running.
13005 (initialize_targets): Rename to ...
13006 (_initialize_target): ... this.
13007 * target.h: Include "gdbsupport/refcounted-object.h".
13008 (struct target_ops): Inherit refcounted_object.
13009 (target_ops::shortname, target_ops::longname): Make const.
13010 (target_ops::async_wait_fd): New method.
13011 (decref_target): Declare.
13012 (struct target_ops_ref_policy): New.
13013 (target_ops_ref): New typedef.
13014 (get_dummy_target): Declare function.
13015 (target_is_pushed): Return bool.
13016 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13017 (all_matching_threads_iterator::all_matching_threads_iterator):
13018 Handle filter target.
13019 * thread-iter.h (struct all_matching_threads_iterator, struct
13020 all_matching_threads_range, class all_non_exited_threads_range):
13021 Filter by target too. Remove explicit.
13022 * thread.c (threads_executing): Delete.
13023 (inferior_thread): Pass down current inferior.
13024 (clear_thread_inferior_resources): Pass down thread pointer
13025 instead of ptid_t.
13026 (add_thread_silent, add_thread_with_info, add_thread): Add
13027 process_stratum_target parameter. Use it for thread and inferior
13028 searches.
13029 (is_current_thread): New.
13030 (thread_info::deletable): Use it.
13031 (find_thread_ptid, thread_count, in_thread_list)
13032 (thread_change_ptid, set_resumed, set_running): New
13033 process_stratum_target parameter. Pass it down.
13034 (set_executing): New process_stratum_target parameter. Pass it
13035 down. Adjust reference to 'threads_executing'.
13036 (threads_are_executing): New process_stratum_target parameter.
13037 Adjust reference to 'threads_executing'.
13038 (set_stop_requested, finish_thread_state): New
13039 process_stratum_target parameter. Pass it down.
13040 (switch_to_thread): Also match inferior.
13041 (switch_to_thread): New process_stratum_target parameter. Pass it
13042 down.
13043 (update_threads_executing): Reimplement.
13044 * top.c (quit_force): Pop targets from all inferior.
13045 (gdb_init): Don't call initialize_targets.
13046 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13047 Declare.
13048 (windows_add_thread, windows_delete_thread): Adjust.
13049 (get_windows_debug_event): Rename to ...
13050 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13051 * tracefile-tfile.c (tfile_target_open): Pass down target.
13052 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13053 Forward declare.
13054 (switch_to_thread): Add process_stratum_target parameter.
13055 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13056 parameter. Use it.
13057 (mi_on_resume): Pass target down.
13058 * nat/fork-inferior.c (startup_inferior): Add
13059 process_stratum_target parameter. Pass it down.
13060 * nat/fork-inferior.h (startup_inferior): Add
13061 process_stratum_target parameter.
13062 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13063
75c6c844
PA
130642020-01-10 Pedro Alves <palves@redhat.com>
13065
13066 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13067 directly. Instead find the first thread in the thread list and
13068 use switch_to_thread.
13069
78f2c40a
PA
130702020-01-10 Pedro Alves <palves@redhat.com>
13071
13072 * remote.c (remote_target::remote_add_inferior): Don't bind a
13073 process to the current inferior if the current inferior is already
13074 bound to a process.
13075
e7af6c70
TBA
130762020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13077 Pedro Alves <palves@redhat.com>
13078
13079 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13080 If no process is specified, return null_ptid instead of
13081 inferior_ptid.
13082 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13083 TARGET_WAITKIND_SIGNALLED with no pid.
13084
31ba933e
PA
130852020-01-10 Pedro Alves <palves@redhat.com>
13086
13087 * remote.c (first_remote_resumed_thread): New.
13088 (remote_target::wait_as): Use it as default event_ptid instead of
13089 inferior_ptid.
13090
735fc2ca
PA
130912020-01-10 Pedro Alves <palves@redhat.com>
13092
13093 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13094
c17e02e1
PA
130952020-01-10 Pedro Alves <palves@redhat.com>
13096
13097 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13098 not -1.
13099
ab1ddbcf
PA
131002020-01-10 Pedro Alves <palves@redhat.com>
13101
13102 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13103 ptid to get_last_target_status.
13104 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13105 ptid to get_last_target_status.
13106 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13107 get_last_target_status.
13108 (info_program_command): Don't pass a target_waitstatus to
13109 get_last_target_status.
13110 * infrun.c (init_wait_for_inferior): Use
13111 nullify_last_target_wait_ptid.
13112 (get_last_target_status): Handle nullptr arguments.
13113 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13114 (print_stop_event): Don't pass a ptid to get_last_target_status.
13115 (normal_stop): Don't pass a ptid to get_last_target_status.
13116 * infrun.h (get_last_target_status, set_last_target_status): Move
13117 comments here and update.
13118 (nullify_last_target_wait_ptid): Declare.
13119 * linux-fork.c (fork_load_infrun_state): Remove local extern
13120 declaration of nullify_last_target_wait_ptid.
13121 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13122 to get_last_target_status.
13123
f3f8ece4
PA
131242020-01-10 Pedro Alves <palves@redhat.com>
13125
13126 * gdbthread.h (scoped_restore_current_thread)
13127 <dont_restore, restore, m_dont_restore>: Declare.
13128 * thread.c (thread_alive): Add assertion. Return bool.
13129 (switch_to_thread_if_alive): New.
13130 (prune_threads): Switch inferior/thread.
13131 (print_thread_info_1): Switch thread before calling target methods.
13132 (scoped_restore_current_thread::restore): New, factored out from
13133 ...
13134 (scoped_restore_current_thread::~scoped_restore_current_thread):
13135 ... this.
13136 (scoped_restore_current_thread::scoped_restore_current_thread):
13137 Add assertion.
13138 (thread_apply_all_command, thread_select): Use
13139 switch_to_thread_if_alive.
13140 * infrun.c (proceed, restart_threads, handle_signal_stop)
13141 (switch_back_to_stepped_thread): Switch current thread before
13142 calling target methods.
13143
db2d40f7
PA
131442020-01-10 Pedro Alves <palves@redhat.com>
13145
13146 * inferior.c (switch_to_inferior_no_thread): New function,
13147 factored out from ...
13148 (inferior_command): ... here.
13149 * inferior.h (switch_to_inferior_no_thread): Declare.
13150 * mi/mi-main.c (run_one_inferior): Use
13151 switch_to_inferior_no_thread.
13152
bd420a2d
PA
131532020-01-10 Pedro Alves <palves@redhat.com>
13154
13155 * infcmd.c (kill_command): Remove dead code.
13156
ddf5db90
PA
131572020-01-10 Pedro Alves <palves@redhat.com>
13158
13159 * remote.c (remote_target::mourn_inferior): No longer check
13160 whether the target is running.
13161
5018ce90
PA
131622020-01-10 Pedro Alves <palves@redhat.com>
13163
13164 * corelow.c (core_target::has_execution): Change parameter type to
13165 inferior pointer.
13166 * inferior.c (number_of_live_inferiors): Use
13167 inferior::has_execution instead of target_has_execution_1.
13168 * inferior.h (inferior::has_execution): New.
13169 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13170 inferior::has_execution instead of target_has_execution_1.
13171 * process-stratum-target.c
13172 (process_stratum_target::has_execution): Change parameter type to
13173 inferior pointer. Check the inferior's PID instead of
13174 inferior_ptid.
13175 * process-stratum-target.h
13176 (process_stratum_target::has_execution): Change parameter type to
13177 inferior pointer.
13178 * record-full.c (record_full_core_target::has_execution): Change
13179 parameter type to inferior pointer.
13180 * target.c (target_has_execution_1): Change parameter type to
13181 inferior pointer.
13182 (target_has_execution_current): Adjust.
13183 * target.h (target_ops::has_execution): Change parameter type to
13184 inferior pointer.
13185 (target_has_execution_1): Change parameter type to inferior
13186 pointer. Change return type to bool.
13187 * tracefile.h (tracefile_target::has_execution): Change parameter
13188 type to inferior pointer.
13189
74375d18
PA
131902020-01-10 Pedro Alves <palves@redhat.com>
13191
13192 * exceptions.c (print_flush): Remove current_top_target() check.
13193
acdf84a6
PA
131942020-01-10 Pedro Alves <palves@redhat.com>
13195
13196 * remote.c (show_remote_exec_file): Show the current inferior's
13197 exec-file instead of the command variable's value.
13198
ec506636
PA
131992020-01-10 Pedro Alves <palves@redhat.com>
13200
13201 * record-full.c (record_full_resume_ptid): New global.
13202 (record_full_target::resume): Set it.
13203 (record_full_wait_1): Use record_full_resume_ptid instead of
13204 inferior_ptid.
13205
873657b9
PA
132062020-01-10 Pedro Alves <palves@redhat.com>
13207
13208 * gdbthread.h (scoped_restore_current_thread)
13209 <dont_restore, restore, m_dont_restore>: Declare.
13210 * thread.c (thread_alive): Add assertion. Return bool.
13211 (switch_to_thread_if_alive): New.
13212 (prune_threads): Switch inferior/thread.
13213 (print_thread_info_1): Switch thread before calling target methods.
13214 (scoped_restore_current_thread::restore): New, factored out from
13215 ...
13216 (scoped_restore_current_thread::~scoped_restore_current_thread):
13217 ... this.
13218 (scoped_restore_current_thread::scoped_restore_current_thread):
13219 Add assertion.
13220 (thread_apply_all_command, thread_select): Use
13221 switch_to_thread_if_alive.
13222
7f0ae84c
GB
132232020-01-10 George Barrett <bob@bob131.so>
13224
13225 * stap-probe.c (stap_modify_semaphore): Don't check for null
13226 semaphores.
13227 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13228 for null semaphores.
13229
f5a7c406
AB
132302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13231
13232 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13233 all source windows, and maintain horizontal scroll status while
13234 doing so.
13235
9ae6bf64
TT
132362020-01-09 Tom Tromey <tom@tromey.com>
13237
13238 PR tui/18932:
13239 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13240 update_source_window, not print_source_lines.
13241
b2efe70c
AB
132422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * tui/tui.c (tui_enable): Register tui hooks after calling
13245 tui_display_main.
13246
5f23a082
CB
132472020-01-09 Christian Biesinger <cbiesinger@google.com>
13248
13249 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13250
3061113b
SM
132512020-01-08 Simon Marchi <simon.marchi@efficios.com>
13252
13253 * thread.c (print_thread_info_1): Fix indentation.
13254
57d75002
CB
132552020-01-09 Christian Biesinger <cbiesinger@google.com>
13256
13257 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13258 unique_xmalloc_ptr outside the if to always free the demangled name.
13259
6a053cb1
TT
132602020-01-08 Tom Tromey <tromey@adacore.com>
13261
13262 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13263 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13264 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13265 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13266 Remove.
13267 (section_offsets): New typedef.
13268 * symtab.c (fixup_section, get_msymbol_address): Update.
13269 * symmisc.c (dump_msymbols): Update.
13270 * symfile.h (relative_addr_info_to_section_offsets)
13271 (symfile_map_offsets_to_segments): Update.
13272 * symfile.c (build_section_addr_info_from_objfile)
13273 (init_objfile_sect_indices): Update.
13274 (struct place_section_arg): Change type of "offsets".
13275 (place_section): Update.
13276 (relative_addr_info_to_section_offsets): Change type of
13277 "section_offsets". Remove "num_sections" parameter.
13278 (default_symfile_offsets, syms_from_objfile_1)
13279 (set_objfile_default_section_offset): Update.
13280 (reread_symbols): No need to preserve section offsets by hand.
13281 (symfile_map_offsets_to_segments): Change type of "offsets".
13282 * stap-probe.c (relocate_address): Update.
13283 * stabsread.h (process_one_symbol): Update.
13284 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13285 (solib_target_relocate_section_addresses): Update.
13286 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13287 Update.
13288 * solib-frv.c (frv_relocate_main_executable): Update.
13289 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13290 * solib-aix.c (solib_aix_get_section_offsets): Change return
13291 type.
13292 (solib_aix_solib_create_inferior_hook): Update.
13293 * remote.c (remote_target::get_offsets): Update.
13294 * psymtab.c (find_pc_sect_psymtab): Update.
13295 * psympriv.h (struct partial_symbol) <address, text_low,
13296 text_high>: Update.
13297 * objfiles.h (obj_section_offset): Update.
13298 (struct objfile) <section_offsets>: Change type.
13299 <num_sections>: Remove.
13300 (objfile_relocate): Update.
13301 * objfiles.c (entry_point_address_query): Update
13302 (relocate_one_symbol): Change type of "section_offsets".
13303 (objfile_relocate1, objfile_relocate1): Change type of
13304 "new_offsets".
13305 (objfile_rebase1): Update.
13306 * mipsread.c (mipscoff_symfile_read): Update.
13307 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13308 parameter.
13309 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13310 (parse_external, psymtab_to_symtab_1): Update.
13311 * machoread.c (macho_symfile_offsets): Update.
13312 * ia64-tdep.c (ia64_find_unwind_table): Update.
13313 * hppa-tdep.c (read_unwind_info): Update.
13314 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13315 * dwarf2read.c (create_addrmap_from_index)
13316 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13317 (process_psymtab_comp_unit_reader, add_partial_symbol)
13318 (add_partial_subprogram, process_full_comp_unit)
13319 (read_file_scope, read_func_scope, read_lexical_block_scope)
13320 (read_call_site_scope, dwarf2_rnglists_process)
13321 (dwarf2_ranges_process, dwarf2_ranges_read)
13322 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13323 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13324 Update.
13325 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13326 Update.
13327 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13328 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13329 (process_one_symbol): Change type of "section_offsets".
13330 * ctfread.c (get_objfile_text_range): Update.
13331 * coffread.c (coff_symtab_read, enter_linenos)
13332 (process_coff_symbol): Update.
13333 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13334 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13335
456e800a
TT
133362020-01-08 Tom Tromey <tromey@adacore.com>
13337
13338 * dwarf2read.c (parse_macro_definition): Use std::string.
13339 (parse_macro_definition): Likewise.
13340
6dfa2fc2
TT
133412020-01-08 Tom Tromey <tromey@adacore.com>
13342
13343 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13344 (ATTR_ALLOC_CHUNK): Remove.
13345
421d1616
TT
133462020-01-08 Tom Tromey <tromey@adacore.com>
13347
13348 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13349
43816ebc
TT
133502020-01-08 Tom Tromey <tromey@adacore.com>
13351
13352 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13353 (dwarf2_compute_name, open_dwo_file): Likewise.
13354 (process_enumeration_scope): Use std::vector.
13355 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13356 (partial_die_info::fixup, dwarf2_start_subfile)
13357 (guess_full_die_structure_name, dwarf2_name): Likewise.
13358 (determine_prefix): Update.
13359 (guess_full_die_structure_name): Make return type const.
13360 (partial_die_full_name): Return unique_xmalloc_ptr.
13361 (DW_FIELD_ALLOC_CHUNK): Remove.
13362
4212d509
TT
133632020-01-07 Tom Tromey <tromey@adacore.com>
13364
13365 PR build/24937:
13366 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13367
06a6207a
JT
133682020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13369
13370 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13371
153d79c4
AB
133722020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * stack.c (print_frame_info): Move disassemble_next_line code
13375 inside source_print block.
13376
66182876
EZ
133772020-01-06 Eli Zaretskii <eliz@gnu.org>
13378
13379 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13380 gdb/signals.h, as we are now using native signal symbols.
13381
cbfa8581
SV
133822020-01-06 Shahab Vahedi <shahab@synopsys.com>
13383
13384 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13385 overflow by an early check of content vs threshold.
aac66a4c 13386 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13387 Likewise.
13388
3f602821
EZ
133892020-01-06 Eli Zaretskii <eliz@gnu.org>
13390
13391 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13392
a08c904d
JT
133932020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13394
13395 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13396 export table if no section contains it's RVA.
13397
89a65580
EZ
133982020-01-06 Eli Zaretskii <eliz@gnu.org>
13399
13400 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13401
8b7fcda2
HD
134022020-01-06 Hannes Domani <ssbssa@yahoo.de>
13403
13404 * source.c (print_source_lines_base): Set last_line_listed.
13405
a61b4f69
SV
134062020-01-06 Shahab Vahedi <shahab@synopsys.com>
13407
13408 * tui/tui-disasm.c: Remove trailing spaces.
13409
559e7e50
EZ
134102020-01-06 Eli Zaretskii <eliz@gnu.org>
13411 Pedro Alves <palves@redhat.com>
13412
13413 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13414 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13415 (windows_gdb_signal_to_target): New function, uses the above
13416 enumeration to convert GDB internal signal codes to equivalent
13417 Windows codes.
13418 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13419 * windows-nat.c: Include "gdb_wait.h".
13420 (get_windows_debug_event): Extract the fatal exception from the
13421 exit status and convert to the equivalent Posix signal number.
13422 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13423 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13424 * gdbsupport/gdb_wait.c: New file, implements
13425 windows_status_to_termsig.
13426 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13427 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13428
f2302a34
AB
134292020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13430
13431 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13432 show_layout.
13433
6a5206eb
LM
134342020-01-05 Luis Machado <luis.machado@linaro.org>
13435
13436 * aarch64-linux-nat.c
13437 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13438 and bfd_mach_aarch64.
13439
6ec1d75e
PW
134402020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13441
13442 * ui-file.c (stdio_file::can_emit_style_escape)
13443 (tee_file::can_emit_style_escape): Ensure style is used also on
13444 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13445 to gdb_stdout.
13446 * main.c (set_gdb_data_directory): Use file style to output the
13447 warning that the given pathname is not a directory.
13448 * top.c (show_history_filename, gdb_safe_append_history)
13449 (show_gdb_datadir): Use file style.
13450
44f81a76
HD
134512020-01-03 Hannes Domani <ssbssa@yahoo.de>
13452
13453 * solib-target.c (struct lm_info_target):
13454 Change offsets to be a unique_xmalloc_ptr.
13455 (solib_target_relocate_section_addresses): Update.
13456
25057eb0
HD
134572020-01-03 Hannes Domani <ssbssa@yahoo.de>
13458
13459 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13460
6e2118f5
BE
134612020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13462
13463 * MAINTAINERS (Write After Approval): Add myself.
13464
8133c7dc
LM
134652020-01-02 Luis Machado <luis.machado@linaro.org>
13466
13467 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13468 Cell BE architecture.
13469 * target.h (struct target_ops) <thread_architecture>: Likewise.
13470
48189bec
HD
134712020-01-01 Hannes Domani <ssbssa@yahoo.de>
13472
13473 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13474
ead1063b
HD
134752020-01-01 Hannes Domani <ssbssa@yahoo.de>
13476
13477 * MAINTAINERS (Write After Approval): Add myself.
13478
e5d78223
JB
134792020-01-01 Joel Brobecker <brobecker@adacore.com>
13480
13481 * gdbarch.sh: Update copyright year range of generated files.
13482
b811d2c2
JB
134832020-01-01 Joel Brobecker <brobecker@adacore.com>
13484
13485 Update copyright year range in all GDB files.
13486
5f4def5c
JB
134872020-01-01 Joel Brobecker <brobecker@adacore.com>
13488
13489 * copyright.py: Convert to Python 3.
13490
51fd4002
JB
134912020-01-01 Joel Brobecker <brobecker@adacore.com>
13492
13493 * copyright.py: Adapt after move of gnulib directory from gdb
13494 directory to toplevel directory.
13495
5fb651f2
JB
134962020-01-01 Joel Brobecker <brobecker@adacore.com>
13497
13498 * copyright.py (main): Exit if run from the wrong directory.
13499
5dd8bf88
JB
135002020-01-01 Joel Brobecker <brobecker@adacore.com>
13501
13502 * top.c (print_gdb_version): Change copyright year to 2020.
13503
9f71dacb 135042020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13505
9f71dacb 13506 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13507
9f71dacb 13508For older changes see ChangeLog-2019.
c906108c
SS
13509\f
13510Local Variables:
13511mode: change-log
13512left-margin: 8
13513fill-column: 74
13514version-control: never
57da7796 13515coding: utf-8
c906108c 13516End: