gdb: Delay releasing target_desc_up in more cases
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * arch/aarch32.c (aarch32_create_target_description): Release the
4 target_desc_up as late as possible.
5 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6 * arch/amd64.c (amd64_create_target_description): Likewise.
7 * arch/arc.c (arc_create_target_description): Return a
8 target_desc_up, don't release it.
9 * arch/arc.h (arc_create_target_description): Update declaration.
10 (arc_lookup_target_description): Move target_desc_up into the
11 cache, and return a borrowed pointer.
12 * arch/arm.c (arm_create_target_description): Release the
13 target_desc_up as late as possible.
14 * arch/i386.c (i386_create_target_description): Likewise.
15 * arch/riscv.h (riscv_create_target_description): Update
16 declaration to match definition.
17 * arch/tic6x.c (tic6x_create_target_description): Release the
18 target_desc_up as late as possible.
19
20 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
23 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
24
25 2020-10-09 Jan Vrany <jan.vrany@labware.com>
26
27 * source.c (directory_command): Notify observers that "directories"
28 parameter has changed.
29
30 2020-10-08 Tom Tromey <tom@tromey.com>
31
32 * cli/cli-cmds.c (print_disassembly): Style function name and
33 addresses. Add _() wrappers.
34
35 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
36
37 * NEWS: Mention ARC support in GDBserver.
38
39 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
40
41 * arch/aarch32.c (aarch32_create_target_description): Release
42 unique_ptr returned from allocate_target_description.
43 * arch/aarch64.c (aarch64_create_target_description): Likewise.
44 * arch/amd64.c (amd64_create_target_description): Likewise.
45 * arch/arc.c (arc_create_target_description): Likewise.
46 * arch/arm.c (arm_create_target_description): Likewise.
47 * arch/i386.c (i386_create_target_description): Likewise.
48 * arch/riscv.c (riscv_create_target_description): Update return
49 type. Handle allocate_target_description returning a unique_ptr.
50 (riscv_lookup_target_description): Update to handle unique_ptr.
51 * arch/tic6x.c (tic6x_create_target_description): Release
52 unique_ptr returned from allocate_target_description.
53 * features/microblaze-with-stack-protect.c: Regenerate.
54 * features/microblaze.c: Regenerate.
55 * features/mips-dsp-linux.c: Regenerate.
56 * features/mips-linux.c: Regenerate.
57 * features/mips64-dsp-linux.c: Regenerate.
58 * features/mips64-linux.c: Regenerate.
59 * features/nds32.c: Regenerate.
60 * features/nios2.c: Regenerate.
61 * features/or1k.c: Regenerate.
62 * features/rs6000/powerpc-32.c: Regenerate.
63 * features/rs6000/powerpc-32l.c: Regenerate.
64 * features/rs6000/powerpc-403.c: Regenerate.
65 * features/rs6000/powerpc-403gc.c: Regenerate.
66 * features/rs6000/powerpc-405.c: Regenerate.
67 * features/rs6000/powerpc-505.c: Regenerate.
68 * features/rs6000/powerpc-601.c: Regenerate.
69 * features/rs6000/powerpc-602.c: Regenerate.
70 * features/rs6000/powerpc-603.c: Regenerate.
71 * features/rs6000/powerpc-604.c: Regenerate.
72 * features/rs6000/powerpc-64.c: Regenerate.
73 * features/rs6000/powerpc-64l.c: Regenerate.
74 * features/rs6000/powerpc-7400.c: Regenerate.
75 * features/rs6000/powerpc-750.c: Regenerate.
76 * features/rs6000/powerpc-860.c: Regenerate.
77 * features/rs6000/powerpc-altivec32.c: Regenerate.
78 * features/rs6000/powerpc-altivec32l.c: Regenerate.
79 * features/rs6000/powerpc-altivec64.c: Regenerate.
80 * features/rs6000/powerpc-altivec64l.c: Regenerate.
81 * features/rs6000/powerpc-e500.c: Regenerate.
82 * features/rs6000/powerpc-e500l.c: Regenerate.
83 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
84 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
85 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
86 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
87 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
88 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
89 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
90 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
91 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
92 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
93 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
94 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
95 * features/rs6000/powerpc-vsx32.c: Regenerate.
96 * features/rs6000/powerpc-vsx32l.c: Regenerate.
97 * features/rs6000/powerpc-vsx64.c: Regenerate.
98 * features/rs6000/powerpc-vsx64l.c: Regenerate.
99 * features/rs6000/rs6000.c: Regenerate.
100 * features/rx.c: Regenerate.
101 * features/s390-gs-linux64.c: Regenerate.
102 * features/s390-linux32.c: Regenerate.
103 * features/s390-linux32v1.c: Regenerate.
104 * features/s390-linux32v2.c: Regenerate.
105 * features/s390-linux64.c: Regenerate.
106 * features/s390-linux64v1.c: Regenerate.
107 * features/s390-linux64v2.c: Regenerate.
108 * features/s390-te-linux64.c: Regenerate.
109 * features/s390-tevx-linux64.c: Regenerate.
110 * features/s390-vx-linux64.c: Regenerate.
111 * features/s390x-gs-linux64.c: Regenerate.
112 * features/s390x-linux64.c: Regenerate.
113 * features/s390x-linux64v1.c: Regenerate.
114 * features/s390x-linux64v2.c: Regenerate.
115 * features/s390x-te-linux64.c: Regenerate.
116 * features/s390x-tevx-linux64.c: Regenerate.
117 * features/s390x-vx-linux64.c: Regenerate.
118 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
119 from allocate_target_description.
120 * target-descriptions.c (allocate_target_description): Update
121 return type.
122 (print_c_tdesc::visit_pre): Release unique_ptr returned from
123 allocate_target_description.
124
125 2020-10-07 Tom Tromey <tromey@adacore.com>
126
127 * unittests/search-memory-selftests.c: New file.
128 * Makefile.in (SELFTESTS_SRCS): Add
129 unittests/search-memory-selftests.c.
130
131 2020-10-07 Tom Tromey <tromey@adacore.com>
132
133 PR gdb/16930:
134 * findcmd.c (_initialize_mem_search): Mention that the range is
135 inclusive.
136
137 2020-10-07 Tom Tromey <tromey@adacore.com>
138
139 * target.h (simple_search_memory): Don't declare.
140 * target.c (simple_search_memory): Move to gdbsupport.
141 (default_search_memory): Update.
142 * remote.c (remote_target::search_memory): Update.
143
144 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
145
146 * Makefile.in (COMPILE): Add CXXFLAGS.
147 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
148 (check-headers): Add CXXFLAGS.
149
150 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
151
152 * arc-linux-tdep.h: New file.
153 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
154 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
155 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
156 arc_linux_gregset, arc_linux_v2_regset,
157 arc_linux_iterate_over_regset_sections,
158 arc_linux_core_read_description): Implement.
159 (arc_linux_init_osabi): Set iterate_over_regset_sections.
160 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
161 (arc_gdbarch_features_create): Add.
162 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
163
164 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
165
166 * arch/arc.h: Rename "arc_gdbarch_features" to
167 "arc_arch_features".
168 * arc-tdep.h: Likewise.
169 * arc-tdep.c: Likewise.
170
171 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
172
173 * infcmd.c (attach_command): Remove the redundant call to
174 `clear_proceed_status`.
175
176 2020-10-07 Kamil Rytarowski <n54@gmx.com>
177
178 * nat/netbsd-nat.c (write_memory, read_memory): Update.
179
180 2020-10-07 Kamil Rytarowski <n54@gmx.com>
181
182 * nat/netbsd-nat.c (write_memory, read_memory): Add.
183 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
184 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
185
186 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
189 (_initialize_break_catch_sig): Don't allocate array.
190
191 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * symtab.c (find_pc_line): Return unmapped addresses when the
194 requested address is also unmapped.
195
196 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
197
198 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
199 tui/tui-out.h.
200
201 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
202
203 * amd64-windows-tdep.c (amd64_windows_return_value): Use
204 type::is_vector instead of TYPE_VECTOR.
205
206 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * auto-load.c (auto_load_objfile_script_1): Don't use
209 debugfile_holder as temporary variable when stripping drive
210 letter.
211
212 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
213
214 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
215 Add TYPE_CODE_COMPLEX.
216 (amd64_windows_return_value): Fix types returned via XMM0.
217
218 2020-10-05 Alan Hayward <alan.hayward@arm.com>
219
220 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
221 AArch64/ARM maintainers.
222
223 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * NEWS: Mention set/show debug event-loop.
226
227 2020-10-02 Tom Tromey <tromey@adacore.com>
228
229 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
230 REG_EXTENDED.
231
232 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
233
234 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
235 * procfs.c (procfs_inferior_created): Remove.
236 (_initialize_procfs): Don't register procfs_inferior_created.
237
238 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
239
240 * async-event.c (invoke_async_signal_handlers): Add debug
241 print.
242 (check_async_event_handlers): Likewise.
243 * event-top.c (show_debug_event_loop): New function.
244 (_initialize_event_top): Register "set debug event-loop"
245 setting.
246
247 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
248
249 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
250 * debug.h: Remove.
251 * infrun.c: Include gdbsupport/common-debug.h.
252 * linux-nat.c: Likewise.
253
254 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * async-event.h (create_async_signal_handler): Add name
257 parameter.
258 (create_async_event_handler): Likewise.
259 * async-event.c (struct async_signal_handler) <name>: New field.
260 (struct async_event_handler) <name>: New field.
261 (create_async_signal_handler): Assign name.
262 (create_async_event_handler): Assign name.
263 * event-top.c (async_init_signals): Pass name when creating
264 handler.
265 * infrun.c (_initialize_infrun): Likewise.
266 * record-btrace.c (record_btrace_push_target): Likewise.
267 * record-full.c (record_full_open): Likewise.
268 * remote-notif.c (remote_notif_state_allocate): Likewise.
269 * remote.c (remote_target::open_1): Likewise.
270 * tui/tui-win.c (tui_initialize_win): Likewise.
271
272 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * async-event.c (initialize_async_signal_handlers): Pass name to
275 add_file_handler
276 * event-top.c (ui_register_input_event_handler): Likewise.
277 * linux-nat.c (linux_nat_target::async): Likewise.
278 * run-on-main-thread.c (_initialize_run_on_main_thread):
279 Likewise
280 * ser-base.c (reschedule): Likewise.
281 (ser_base_async): Likewise.
282 * tui/tui-io.c: Likewise.
283 * top.h (struct ui) <num>: New field.
284 * top.c (highest_ui_num): New variable.
285 (ui::ui): Initialize num.
286
287 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * observable.h <inferior_created>: Remove parameters. Update all
290 listeners.
291 * inferior.h (post_create_inferior): Remove target parameter.
292 Update all callers.
293
294 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
295
296 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
297 and DW_MACRO_undef_strx.
298 (dwarf_decode_macros): Likewise
299 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
300 which is the value of DW_AT_str_offsets_base.
301 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
302 str_offsets_base.
303
304 2020-10-01 Kamil Rytarowski <n54@gmx.com>
305
306 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
307
308 2020-10-01 Kamil Rytarowski <n54@gmx.com>
309
310 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
311 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
312
313 2020-10-01 Kamil Rytarowski <n54@gmx.com>
314
315 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
316
317 2020-09-30 Tom de Vries <tdevries@suse.de>
318
319 PR symtab/26683
320 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
321
322 2020-09-30 Tom Tromey <tromey@adacore.com>
323
324 * dwarf2/read.c (handle_variant): Use constant_value.
325
326 2020-09-29 Tom Tromey <tom@tromey.com>
327
328 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
329 (read_file_scope, dwarf2_get_pc_bounds)
330 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
331 (read_structure_type, handle_struct_member_die)
332 (read_enumeration_type, read_array_type, read_set_type)
333 (read_tag_pointer_type, read_tag_reference_type)
334 (read_subroutine_type, read_base_type, read_subrange_type)
335 (read_full_die_1, partial_die_info::read)
336 (partial_die_info::read, by, new_symbol)
337 (dwarf2_const_value_data, dwarf2_const_value_attr)
338 (dump_die_shallow, dwarf2_fetch_constant_bytes)
339 (prepare_one_comp_unit): Update.
340 * dwarf2/attribute.h (DW_UNSND): Remove.
341
342 2020-09-29 Tom Tromey <tom@tromey.com>
343
344 * dwarf2/read.c (read_func_scope, prototyped_function_p)
345 (read_subroutine_type, partial_die_info::read)
346 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
347 (dwarf2_add_member_fn): Update.
348 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
349 * dwarf2/attribute.c (attribute::as_boolean): New method.
350
351 2020-09-29 Tom Tromey <tom@tromey.com>
352
353 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
354 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
355 method.
356 * dwarf2/attribute.c (attribute::as_virtuality): New method.
357
358 2020-09-29 Tom Tromey <tom@tromey.com>
359
360 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
361 the attribute's form.
362
363 2020-09-29 Tom Tromey <tom@tromey.com>
364
365 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
366 (dwarf2_add_member_fn): Update.
367 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
368 * dwarf2/attribute.c (attribute::defaulted): New method, from
369 is_valid_DW_AT_defaulted.
370
371 2020-09-29 Tom Tromey <tom@tromey.com>
372
373 * dwarf2/read.c (dw2_get_file_names_reader)
374 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
375 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
376 (dwarf2_symbol_mark_computed): Use as_unsigned.
377 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
378 method.
379 <form_is_section_offset>: Update comment.
380
381 2020-09-29 Tom Tromey <tom@tromey.com>
382
383 * dwarf2/read.c (dwarf2_access_attribute): Rename from
384 dwarf2_default_access_attribute. Look up attribute.
385 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
386 Update.
387
388 2020-09-29 Tom Tromey <tom@tromey.com>
389
390 * dwarf2/read.c (skip_one_die): Update.
391 (read_full_die_1): Change how reprocessing is done.
392 (partial_die_info::read): Update.
393 (read_attribute_value): Remove need_reprocess parameter.
394 (read_attribute): Likewise.
395 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
396 New method.
397
398 2020-09-29 Tom Tromey <tom@tromey.com>
399
400 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
401 (dwarf2_const_value_attr, dump_die_shallow)
402 (dwarf2_fetch_constant_bytes): Update.
403 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
404 comment.
405 <set_address>: New method.
406 (DW_ADDR): Remove.
407 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
408 (attribute::as_string, attribute::as_address): Add assert.
409
410 2020-09-29 Tom Tromey <tom@tromey.com>
411
412 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
413 (read_attribute_reprocess, read_attribute_value): Update.
414 (read_attribute): Clear requires_reprocessing.
415 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
416 form_requires_reprocessing>: New methods.
417 <string_init>: Clear requires_reprocessing.
418 <set_unsigned_reprocess>: New method.
419 <name>: Shrink by one bit.
420 <requires_reprocessing>: New member.
421 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
422 method.
423
424 2020-09-29 Tom Tromey <tom@tromey.com>
425
426 * dwarf2/read.c (read_attribute_value): Update.
427 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
428 set_unsigned>: New methods.
429 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
430
431 2020-09-29 Tom Tromey <tom@tromey.com>
432
433 * dwarf2/read.c (get_alignment, read_array_order)
434 (read_attribute_value, dwarf2_const_value_attr)
435 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
436 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
437 New methods.
438 (DW_SND): Remove.
439
440 2020-09-29 Tom Tromey <tom@tromey.com>
441
442 * dwarf2/read.c (read_attribute_value, lookup_die_type)
443 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
444 Update.
445 * dwarf2/attribute.h (struct attribute) <as_signature,
446 set_signature>: New methods.
447 (DW_SIGNATURE): Remove.
448
449 2020-09-29 Tom Tromey <tom@tromey.com>
450
451 * dwarf2/read.c (read_call_site_scope)
452 (handle_data_member_location, dwarf2_add_member_fn)
453 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
454 (partial_die_info::read, read_attribute_value)
455 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
456 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
457 (dwarf2_symbol_mark_computed): Update.
458 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
459 methods.
460 (DW_BLOCK): Remove.
461 * dwarf2/attribute.c (attribute::form_is_block): Add
462 DW_FORM_data16.
463
464 2020-09-29 Tom Tromey <tom@tromey.com>
465
466 * dwarf2/read.c (read_cutu_die_from_dwo)
467 (read_attribute_reprocess, read_attribute_value, read_attribute)
468 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
469 (dwarf2_fetch_constant_bytes): Update.
470 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
471 <set_string_noncanonical, set_string_canonical>: New methods.
472 <string_is_canonical>: Update comment.
473 <canonical_string_p>: Add assert.
474 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
475 * dwarf2/attribute.c (attribute::form_is_string): New method.
476 (attribute::string): Use it.
477
478 2020-09-29 Tom Tromey <tom@tromey.com>
479
480 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
481 (dump_die_shallow): Use canonical_string_p.
482 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
483 method.
484
485 2020-09-29 Tom Tromey <tom@tromey.com>
486
487 * dwarf2/read.c (partial_die_info::read)
488 (dwarf2_const_value_attr, anonymous_struct_prefix, )
489 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
490 attribute::as_string.
491
492 2020-09-29 Tom Tromey <tom@tromey.com>
493
494 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
495 DW_ADDR.
496 (attribute::string): Don't use DW_STRING.
497 (attribute::get_ref_die_offset): Don't use DW_UNSND.
498 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
499
500 2020-09-29 Tom Tromey <tom@tromey.com>
501
502 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
503 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
504 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
505 * dwarf2/attribute.h (struct attribute): Rename methods.
506 * dwarf2/attribute.c (attribute::as_address): Rename from
507 value_as_address.
508 (attribute::as_string): Rename from value_as_string.
509
510 2020-09-29 Tom Tromey <tom@tromey.com>
511
512 * dwarf2/read.c (partial_die_info::read) <case
513 DW_AT_linkage_name>: Use value_as_string.
514 (dwarf2_string_attr): Use value_as_string.
515 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
516 method.
517 * dwarf2/attribute.c (attribute::value_as_string): New method.
518
519 2020-09-29 Pedro Alves <pedro@palves.net>
520
521 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
522 defined before using '#pragma GCC diagnostic' instead of checking
523 __clang__.
524
525 2020-09-28 Tom Tromey <tom@tromey.com>
526
527 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
528 (handle_signal_stop): Update.
529 * procfs.c (procfs_target::insert_watchpoint): Update.
530 * target.h (target_have_steppable_watchpoint): Now a function.
531
532 2020-09-28 Tom Tromey <tom@tromey.com>
533
534 * infrun.c (set_schedlock_func): Update.
535 * target.h (target_can_lock_scheduler): Now a function.
536
537 2020-09-28 Tom Tromey <tom@tromey.com>
538
539 * inferior.h (class inferior) <has_execution>: Update.
540 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
541 * valops.c (find_function_in_inferior)
542 (value_allocate_space_in_inferior): Update.
543 * top.c (kill_or_detach): Update.
544 * target.c (target_preopen, set_target_permissions): Update.
545 (target_has_execution_current): Remove.
546 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
547 Update.
548 * solib.c (update_solib_list, reload_shared_libraries): Update.
549 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
550 * solib-dsbt.c (enable_break): Update.
551 * score-tdep.c (score7_fetch_inst): Update.
552 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
553 Update.
554 * remote.c (remote_target::start_remote)
555 (remote_target::remote_check_symbols, remote_target::open_1)
556 (remote_target::remote_detach_1, remote_target::verify_memory)
557 (remote_target::xfer_partial, remote_target::read_description)
558 (remote_target::get_min_fast_tracepoint_insn_len): Update.
559 * record-full.c (record_full_open_1): Update.
560 * record-btrace.c (record_btrace_target_open): Update.
561 * objc-lang.c (lookup_objc_class, lookup_child_selector)
562 (value_nsstring): Update.
563 * linux-thread-db.c (add_thread_db_info)
564 (thread_db_find_new_threads_silently, check_thread_db_callback)
565 (try_thread_db_load_1, record_thread): Update.
566 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
567 Update.
568 * linux-fork.c (checkpoint_command): Update.
569 * infrun.c (set_non_stop, set_observer_mode)
570 (check_multi_target_resumption, for_each_just_stopped_thread)
571 (maybe_remove_breakpoints, normal_stop)
572 (class infcall_suspend_state): Update.
573 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
574 (info_program_command, attach_command): Update.
575 * infcall.c (call_function_by_hand_dummy): Update.
576 * inf-loop.c (inferior_event_handler): Update.
577 * gcore.c (gcore_command, derive_heap_segment): Update.
578 * exec.c (exec_file_command): Update.
579 * eval.c (evaluate_subexp): Update.
580 * compile/compile.c (compile_to_object): Update.
581 * cli/cli-dump.c (restore_command): Update.
582 * breakpoint.c (update_watchpoint)
583 (update_inserted_breakpoint_locations)
584 (insert_breakpoint_locations, get_bpstat_thread): Update.
585 * target.h (target_has_execution): Remove macro.
586 (target_has_execution_current): Don't declare.
587 (target_has_execution): Rename from target_has_execution_1. Add
588 argument default.
589
590 2020-09-28 Tom Tromey <tom@tromey.com>
591
592 * mi/mi-main.c (exec_reverse_continue)
593 (mi_cmd_list_target_features): Update.
594 * infrun.c (set_exec_direction_func): Update.
595 * target.c (default_execution_direction): Update.
596 * reverse.c (exec_reverse_once): Update.
597 * target.h (target_can_execute_reverse): Now a function.
598
599 2020-09-28 Tom Tromey <tom@tromey.com>
600
601 * tui/tui-regs.c (tui_get_register)
602 (tui_data_window::show_registers): Update.
603 * thread.c (scoped_restore_current_thread::restore)
604 (scoped_restore_current_thread::scoped_restore_current_thread):
605 Update.
606 * regcache-dump.c (regcache_print): Update.
607 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
608 Update.
609 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
610 * mep-tdep.c (current_me_module, current_options): Update.
611 * linux-thread-db.c (thread_db_load): Update.
612 * infcmd.c (registers_info, info_vector_command)
613 (info_float_command): Update.
614 * ia64-tdep.c (ia64_frame_prev_register)
615 (ia64_sigtramp_frame_prev_register): Update.
616 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
617 * gcore.c (derive_stack_segment): Update.
618 * frame.c (get_current_frame, has_stack_frames): Update.
619 * findvar.c (language_defn::read_var_value): Update.
620 * arm-tdep.c (arm_pc_is_thumb): Update.
621 * target.c (target_has_registers): Rename from
622 target_has_registers_1.
623 * target.h (target_has_registers): Remove macro.
624 (target_has_registers): Rename from target_has_registers_1.
625
626 2020-09-28 Tom Tromey <tom@tromey.com>
627
628 * windows-tdep.c (tlb_make_value): Update.
629 * tui/tui-regs.c (tui_data_window::show_registers): Update.
630 * thread.c (scoped_restore_current_thread::restore)
631 (scoped_restore_current_thread::scoped_restore_current_thread)
632 (thread_command): Update.
633 * stack.c (backtrace_command_1, frame_apply_level_command)
634 (frame_apply_all_command, frame_apply_command): Update.
635 * infrun.c (siginfo_make_value, restore_infcall_control_state):
636 Update.
637 * gcore.c (derive_stack_segment): Update.
638 * frame.c (get_current_frame, has_stack_frames): Update.
639 * auxv.c (info_auxv_command): Update.
640 * ada-tasks.c (ada_build_task_list): Update.
641 * target.c (target_has_stack): Rename from target_has_stack_1.
642 * target.h (target_has_stack): Remove macro.
643 (target_has_stack): Rename from target_has_stack_1.
644
645 2020-09-28 Tom Tromey <tom@tromey.com>
646
647 * target.c (target_has_memory): Rename from target_has_memory_1.
648 * tui/tui-regs.c (tui_data_window::show_registers): Update.
649 * thread.c (scoped_restore_current_thread::restore)
650 (scoped_restore_current_thread::scoped_restore_current_thread):
651 Update.
652 * frame.c (get_current_frame, has_stack_frames): Update.
653 * target.h (target_has_memory): Remove macro.
654 (target_has_memory): Rename from target_has_memory_1.
655
656 2020-09-28 Tom Tromey <tom@tromey.com>
657
658 * target.c (target_has_all_memory_1): Remove.
659 * target.h (target_has_all_memory): Remove define.
660 (target_has_all_memory_1): Don't declare.
661
662 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * ser-base.c: Adjust comments formatting.
665
666 2020-09-27 Tom Tromey <tom@tromey.com>
667
668 PR tui/25342:
669 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
670
671 2020-09-27 Tom Tromey <tom@tromey.com>
672
673 PR tui/25342:
674 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
675
676 2020-09-27 Tom Tromey <tom@tromey.com>
677
678 * unittests/tui-selftests.c: Update.
679 * tui/tui-winsource.h (struct tui_source_window_base)
680 <extra_margin, show_line_number, refresh_pad>: New methods.
681 <m_max_length, m_pad>: New members.
682 (tui_copy_source_line): Update.
683 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
684 first_col, line_width, ndigits parameters. Add length.
685 (tui_source_window_base::show_source_line): Write to pad. Line
686 number now 0-based.
687 (tui_source_window_base::refresh_pad): New method.
688 (tui_source_window_base::show_source_content): Write to pad. Call
689 refresh_pad.
690 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
691 not refill.
692 (tui_source_window_base::update_exec_info): Call
693 show_line_number.
694 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
695 method.
696 <m_digits>: New member.
697 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
698 and m_max_length.
699 (tui_source_window::show_line_number): New method.
700 * tui/tui-io.h (tui_puts): Fix comment.
701 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
702 m_max_length.
703
704 2020-09-27 Tom Tromey <tom@tromey.com>
705
706 * tui/tui-winsource.c
707 (tui_source_window_base::set_is_exec_point_at): Don't call
708 show_source_line.
709
710 2020-09-27 Tom Tromey <tom@tromey.com>
711
712 * python/py-tui.c (class tui_py_window) <refresh_window>: New
713 method.
714 <erase>: Update.
715 <cursor_x, cursor_y>: Remove.
716 <m_inner_window>: New member.
717 (tui_py_window::rerender): Create inner window.
718 (tui_py_window::output): Write to inner window.
719
720 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
721
722 PR python/26586
723 * cli/cli-script.c (execute_control_commands): don't set
724 instream to nullptr here as this breaks the from_tty argument
725 to gdb.execute in Python.
726 (execute_user_command): set instream to nullptr here instead.
727
728 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
729
730 * infrun.h (infrun_debug_printf): Fix formatting.
731 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
732
733 2020-09-25 Saagar Jha <saagar@saagarjha.com>
734
735 * compile/compile-object-load.h (struct munmap_list): Add
736 explicitly-defined move constructor.
737
738 2020-09-24 Tom Tromey <tromey@adacore.com>
739
740 PR tui/26638:
741 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
742 method.
743 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
744 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
745 (tui_prev_win): Rewrite.
746
747 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
748
749 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
750 in WOW64 processes as SIGINT.
751 * nat/windows-nat.h: Make wow64_process a shared variable.
752 * windows-nat.c: Remove static wow64_process variable.
753
754 2020-09-23 Tom Tromey <tom@tromey.com>
755
756 PR symtab/25470:
757 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
758 offset and bit size.
759 * printcmd.c (print_scalar_formatted): Handle zero-length
760 integer.
761 (print_scalar_formatted): Use bit_size_differs_p.
762 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
763 constant.
764 (union type_specific): <int_stuff>: New member.
765 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
766 methods.
767 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
768 TYPE_SPECIFIC_FIELD.
769 (recursive_dump_type, copy_type_recursive): Update.
770 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
771 DW_AT_data_bit_offset.
772
773 2020-09-23 Tom Tromey <tom@tromey.com>
774
775 * utils.h (class gdb_argv): Add move operators.
776 <append>: New methods.
777 * compile/compile.c (build_argc_argv): Remove.
778 (compile_args_argc): Remove.
779 (compile_args_argv): Change type.
780 (set_compile_args): Simplify.
781 (append_args): Remove.
782 (filter_args): Remove argcp parameter.
783 (get_args): Return gdb_argv. Simplify.
784 (compile_to_object): Update.
785
786 2020-09-23 Tom Tromey <tom@tromey.com>
787
788 * compile/compile-object-run.c (do_module_cleanup)
789 <~do_module_cleanup> :Remove.
790 (do_module_cleanup): Update.
791 * compile/compile-object-load.h (struct munmap_list): Add move
792 assignment operator.
793 <source_file>: Now a std::string.
794 <munmap_list>: Rename. No longer a pointer.
795 * compile/compile-object-load.c (struct setup_sections_data): Add
796 constructor.
797 <setup_one_section>: Declare.
798 <munmap_list>: Move earlier.
799 <m_bfd>: New member.
800 <m_last_size, m_last_section_first, m_last_prot,
801 m_last_max_alignment>: Rename, add initializers where needed.
802 (setup_sections_data::setup_one_section): Rename from
803 setup_sections. Update.
804 (compile_object_load): Update. Don't use bfd_map_over_sections.
805
806 2020-09-23 Tom Tromey <tom@tromey.com>
807
808 * compile/compile-object-run.c (struct do_module_cleanup): Add
809 parameters to constructor. Update destructor.
810 <source_file, scope, scope_data, out_value_type, out_value_addr,
811 munmap_list_head, objfile_name_string>: Remove.
812 <module>: New member.
813 (do_module_cleanup): Update.
814 (compile_object_run): Update.
815
816 2020-09-23 Tom Tromey <tom@tromey.com>
817
818 * compile/compile.c (eval_compile_command): Update.
819 * compile/compile-object-run.h (compile_object_run): Take a
820 compile_module_up.
821 * compile/compile-object-run.c (compile_object_run): Take a
822 compile_module_up.
823 * compile/compile-object-load.h (struct compile_module): Add
824 constructor, destructor.
825 (compile_module_up): New typedef.
826 (compile_object_load): Return compile_object_up.
827 * compile/compile-object-load.c (compile_object_load): Return
828 compile_module_up.
829
830 2020-09-23 Tom Tromey <tom@tromey.com>
831
832 * compile/compile-object-run.c (struct do_module_cleanup): Add
833 constructor, destructor.
834 <objfile_name_string>: Don't use struct hack.
835 (do_module_cleanup): Use delete.
836 (compile_object_run): Use new.
837
838 2020-09-23 Tom Tromey <tom@tromey.com>
839
840 * compile/compile-cplus-types.c
841 (compile_cplus_convert_struct_or_union): Use std::vector.
842 (compile_cplus_convert_func): Likewise.
843 * compile/compile-c-types.c (convert_func): Use std::vector.
844
845 2020-09-21 Tom Tromey <tromey@adacore.com>
846
847 * sparc-tdep.c (sparc32_skip_prologue): Use
848 skip_prologue_using_sal.
849
850 2020-09-19 Tom Tromey <tom@tromey.com>
851
852 * symfile.c (add_section_size_callback): Remove.
853 (load_one_section): Rename from load_section_callback. Change
854 parameters.
855 (generic_load): Use foreach.
856
857 2020-09-19 Tom Tromey <tom@tromey.com>
858
859 * exec.c (add_to_section_table): Remove.
860 (build_section_table): Use foreach.
861
862 2020-09-19 Tom Tromey <tom@tromey.com>
863
864 * elfread.c (elf_locate_sections): Change parameters.
865 (elf_symfile_read): Use foreach.
866
867 2020-09-19 Tom Tromey <tom@tromey.com>
868
869 * cli/cli-dump.c (struct callback_data): Remove.
870 (restore_one_section): Rename from restore_section_callback.
871 Change parameters.
872 (restore_binary_file): Change parameters.
873 (restore_command): Use foreach.
874
875 2020-09-19 Tom Tromey <tom@tromey.com>
876
877 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
878 (gcore_copy_callback): Likewise.
879 (gcore_memory_sections): Use foreach.
880
881 2020-09-19 Tom Tromey <tom@tromey.com>
882
883 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
884 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
885 parameters.
886 (generic_elf_osabi_sniffer): Use foreach.
887 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
888 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
889
890 2020-09-19 Tom Tromey <tom@tromey.com>
891
892 * dwarf2/read.c (locate_dwz_sections): Change parameters.
893 (dwarf2_get_dwz_file): Use foreach.
894 (dwarf2_locate_dwo_sections): Change parameters.
895 (open_and_init_dwo_file): Use foreach.
896 (dwarf2_locate_common_dwp_sections): Change parameters.
897 (open_and_init_dwp_file): Use foreach.
898
899 2020-09-19 Tom Tromey <tom@tromey.com>
900
901 * symfile.h: (find_lowest_section): Don't declare.
902 * symfile.c (find_lowest_section): Now static. Change
903 parameters.
904 (struct place_section_arg): Remove.
905 (place_section): Change parameters.
906 (addr_info_make_relative): Use foreach.
907 (symfile_dummy_outputs): Remove.
908 (default_symfile_relocate): Use foreach.
909
910 2020-09-19 Tom Tromey <tom@tromey.com>
911
912 * objfiles.c (add_to_objfile_sections): Rename from
913 add_to_objfile_sections_full.
914 (add_to_objfile_sections): Remove.
915 (build_objfile_section_table): Use foreach.
916
917 2020-09-19 Tom Tromey <tom@tromey.com>
918
919 * stap-probe.c (get_stap_base_address_1): Remove.
920 (get_stap_base_address): Use foreach.
921
922 2020-09-19 Tom Tromey <tom@tromey.com>
923
924 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
925 parameters.
926 (gdb_bfd_close_or_warn): Use foreach.
927
928 2020-09-19 Tom Tromey <tom@tromey.com>
929
930 * corelow.c (add_to_thread_list): Change parameters.
931 (core_target_open): Use foreach.
932
933 2020-09-19 Tom Tromey <tom@tromey.com>
934
935 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
936 existing function.
937
938 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
941 for arrays.
942
943 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * eval.c: Remove 'f-lang.h' include.
946 (value_f90_subarray): Moved to f-lang.c.
947 (eval_call): Renamed to...
948 (evaluate_subexp_do_call): ...this, is no longer static, header
949 comment moved into header file.
950 (evaluate_funcall): Update call to eval_call.
951 (skip_undetermined_arglist): Moved to f-lang.c.
952 (fortran_value_subarray): Likewise.
953 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
954 moved to evaluate_subexp_f.
955 (calc_f77_array_dims): Moved to f-lang.c
956 * expprint.c (print_subexp_funcall): New function.
957 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
958 moved to print_subexp_f, OP_FUNCALL uses new function.
959 (dump_subexp_body_funcall): New function.
960 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
961 moved to dump_subexp_f, OP_FUNCALL uses new function.
962 * expression.h (evaluate_subexp_do_call): Declare.
963 * f-lang.c (value_f90_subarray): Moved from eval.c.
964 (skip_undetermined_arglist): Likewise.
965 (calc_f77_array_dims): Likewise.
966 (fortran_value_subarray): Likewise.
967 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
968 (operator_length_f): Likewise.
969 (print_subexp_f): Likewise.
970 (dump_subexp_body_f): Likewise.
971 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
972 declaration of this operation to here.
973 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
974 support moved to operator_length_f.
975 * parser-defs.h (dump_subexp_body_funcall): Declare.
976 (print_subexp_funcall): Declare.
977 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
978 fortran-operator.def.
979
980 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * eval.c (fortran_value_subarray): New function, content is taken
983 from...
984 (evaluate_subexp_standard): ...here, in two places. Now arrays
985 and strings both call the new function.
986 (calc_f77_array_dims): Add header comment, handle strings.
987
988 2020-09-18 Victor Collod <vcollod@nvidia.com>
989
990 PR gdb/26635
991 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
992 (i386_analyze_prologue): Call i386_skip_endbr.
993
994 2020-09-18 Tom Tromey <tromey@adacore.com>
995
996 * windows-nat.c (struct windows_nat_target) <wait>: Update.
997 (windows_nat_target::wait): Update.
998 * target/wait.h (enum target_wait_flag): New. Use
999 DEF_ENUM_FLAGS_TYPE.
1000 * target/target.h (target_wait): Change type of options.
1001 * target.h (target_options_to_string, default_target_wait):
1002 Update.
1003 (struct target_ops) <wait>: Change type of options.
1004 * target.c (target_wait, default_target_wait, do_option): Change
1005 type of "options".
1006 (target_options_to_string): Likewise.
1007 * target-delegates.c: Rebuild.
1008 * target-debug.h (target_debug_print_target_wait_flags): Rename
1009 from target_debug_print_options.
1010 * sol-thread.c (class sol_thread_target) <wait>: Update.
1011 (sol_thread_target::wait): Update.
1012 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1013 (rs6000_nat_target::wait): Update.
1014 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1015 Update.
1016 (remote_target::wait_ns, remote_target::wait_as): Change type of
1017 "options".
1018 (remote_target::wait): Update.
1019 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1020 (gdbsim_target::wait): Update.
1021 * record-full.c (class record_full_base_target) <wait>: Update.
1022 (record_full_wait_1): Change type of "options".
1023 (record_full_base_target::wait): Update.
1024 * record-btrace.c (class record_btrace_target) <wait>: Update.
1025 (record_btrace_target::wait): Update.
1026 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1027 Update.
1028 (ravenscar_thread_target::wait): Update.
1029 * procfs.c (class procfs_target) <wait>: Update.
1030 (procfs_target::wait): Update.
1031 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1032 * obsd-nat.c (obsd_nat_target::wait): Update.
1033 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1034 (nto_procfs_target::wait): Update.
1035 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1036 * nbsd-nat.c (nbsd_wait): Change type of "options".
1037 (nbsd_nat_target::wait): Update.
1038 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1039 (thread_db_target::wait): Update.
1040 * linux-nat.h (class linux_nat_target) <wait>: Update.
1041 * linux-nat.c (linux_nat_target::wait): Update.
1042 (linux_nat_wait_1): Update.
1043 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1044 "options".
1045 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1046 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1047 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1048 (go32_nat_target::wait): Update.
1049 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1050 * gnu-nat.c (gnu_nat_target::wait): Update.
1051 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1052 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1053 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1054 * darwin-nat.c (darwin_nat_target::wait): Update.
1055 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1056 (bsd_uthread_target::wait): Update.
1057 * aix-thread.c (class aix_thread_target) <wait>: Update.
1058 (aix_thread_target::wait): Update.
1059
1060 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * compile/compile-object-run.c (create_copied_type_recursive): New
1063 function.
1064 (compile_object_run): Use new function.
1065
1066 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1067
1068 * NEWS: Mention x86_64 Cygwin core file support.
1069
1070 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1071
1072 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1073 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1074
1075 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1076
1077 * windows-tdep.h: Add prototypes.
1078 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1079 (i386_windows_core_pid_to_str): Move and rename ...
1080 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1081 (windows_core_pid_to_str): ... and here.
1082 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1083
1084 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1085 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1086 (amd64_windows_init_abi_common): ... and register.
1087
1088 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1089
1090 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1091 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1092
1093 2020-09-18 Pedro Alves <pedro@palves.net>
1094
1095 PR gdb/26631
1096 * thread.c (thread_find_command): Switch inferior before calling
1097 target methods.
1098
1099 2020-09-17 Tom Tromey <tromey@adacore.com>
1100
1101 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1102 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1103 (tdesc_arch_data_up): New typedef.
1104 (tdesc_use_registers, tdesc_data_alloc): Update.
1105 (tdesc_data_cleanup): Don't declare.
1106 * target-descriptions.c (tdesc_data_alloc): Return a
1107 tdesc_arch_data_up.
1108 (tdesc_arch_data_deleter::operator()): Rename from
1109 tdesc_data_cleanup. Change argument type.
1110 (tdesc_use_registers): Change early_data to an rvalue reference.
1111 (tdesc_use_registers): Don't use delete.
1112 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1113 * s390-tdep.c (s390_gdbarch_init): Update.
1114 * rx-tdep.c (rx_gdbarch_init): Update.
1115 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1116 * riscv-tdep.c (riscv_gdbarch_init): Update.
1117 * or1k-tdep.c (or1k_gdbarch_init): Update.
1118 * nios2-tdep.c (nios2_gdbarch_init): Update.
1119 * nds32-tdep.c (nds32_gdbarch_init): Update.
1120 * mips-tdep.c (mips_gdbarch_init): Update.
1121 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1122 * m68k-tdep.c (m68k_gdbarch_init): Update.
1123 * i386-tdep.c (i386_gdbarch_init): Update.
1124 * arm-tdep.c (arm_gdbarch_init): Update.
1125 * arc-tdep.c (arc_tdesc_init): Update.
1126 (arc_gdbarch_init): Update.
1127 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1128
1129 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1130
1131 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1132 for WOW64 processes.
1133
1134 2020-09-17 Tom Tromey <tom@tromey.com>
1135
1136 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1137
1138 2020-09-17 Tom Tromey <tom@tromey.com>
1139
1140 * value.c (preserve_values): Update.
1141 * python/py-type.c (save_objfile_types): Update.
1142 * guile/scm-type.c (save_objfile_types): Update.
1143 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1144 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1145 * compile/compile-object-run.c (compile_object_run): Update.
1146
1147 2020-09-17 Tom Tromey <tom@tromey.com>
1148
1149 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1150 Remove.
1151 <m_table>: Now htab_up.
1152 * typeprint.c (typedef_hash_table::recursively_update)
1153 (typedef_hash_table::add_template_parameters)
1154 (typedef_hash_table::typedef_hash_table): Update.
1155 (typedef_hash_table::~typedef_hash_table): Remove.
1156 (typedef_hash_table::typedef_hash_table)
1157 (typedef_hash_table::find_global_typedef)
1158 (typedef_hash_table::find_typedef): Update.
1159
1160 2020-09-17 Tom Tromey <tom@tromey.com>
1161
1162 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1163
1164 2020-09-17 Tom Tromey <tom@tromey.com>
1165
1166 * linespec.c (class decode_compound_collector)
1167 <~decode_compound_collector>: Remove.
1168 <m_unique_syms>: Now htab_up.
1169 (decode_compound_collector::operator ()): Update.
1170 (class symtab_collector) <~symtab_collector>: Remove.
1171 <m_symtab_table>: Now htab_up.
1172 (symtab_collector::operator ()): Update.
1173
1174 2020-09-17 Tom Tromey <tom@tromey.com>
1175
1176 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1177 (filename_seen_cache::clear): Update.
1178 (~filename_seen_cache): Remove.
1179 (filename_seen_cache::seen): Update.
1180 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1181 htab_up.
1182 <~filename_seen_cache>: Remove.
1183 <traverse>: Update.
1184
1185 2020-09-17 Tom Tromey <tom@tromey.com>
1186
1187 * completer.c (completion_tracker::discard_completions)
1188 (completion_tracker::~completion_tracker)
1189 (completion_tracker::maybe_add_completion)
1190 (completion_tracker::remove_completion)
1191 (completion_tracker::recompute_lowest_common_denominator)
1192 (completion_tracker::build_completion_result): Update.
1193 * completer.h (class completion_tracker) <have_completions>:
1194 Update.
1195 <m_entries_hash>: Now htab_up.
1196
1197 2020-09-17 Tom Tromey <tom@tromey.com>
1198
1199 * breakpoint.c (ambiguous_names_p): Use htab_up.
1200
1201 2020-09-17 Tom Tromey <tom@tromey.com>
1202
1203 * auto-load.c (struct auto_load_pspace_info)
1204 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1205 <loaded_script_files, loaded_script_texts>: Change type to
1206 htab_up.
1207 (~auto_load_pspace_info) Remove.
1208 (init_loaded_scripts_info, maybe_add_script_file)
1209 (maybe_add_script_text, auto_load_info_scripts): Update.
1210
1211 2020-09-17 Tom Tromey <tromey@adacore.com>
1212
1213 * c-exp.y (name_obstack): Now static.
1214
1215 2020-09-17 Chungyi Chi <demonic@csie.io>
1216
1217 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1218
1219 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1220
1221 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1222 (add_solib_catchpoint): Likewise.
1223 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1224 to bool.
1225 (add_solib_catchpoint): Change int parameter/variable to bool.
1226 (catch_load_or_unload): Likewise.
1227 (init_catchpoint): Likewise.
1228 (create_fork_vfork_event_catchpoint): Likewise.
1229 (catch_fork_command_1): Likewise.
1230 (catch_exec_command_1): Likewise.
1231
1232 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1235 Change instance_flags to m_instance_flags.
1236
1237 2020-09-16 Tom Tromey <tromey@adacore.com>
1238
1239 PR gdb/26598:
1240 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1241
1242 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1243
1244 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1245 PL_FLAG_EXEC.
1246 (fbsd_nat_target::insert_exec_catchpoint)
1247 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1248 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1249 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1250
1251 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1252
1253 * configure.ac: Remove check for kinfo_getvmmap().
1254 * configure, config.in: Regenerate.
1255 * fbsd-nat.c (fbsd_read_mapping): Remove
1256 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1257 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1258 kinfo_get_vmmap() are always present.
1259
1260 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1261
1262 * fbsd-nat.c: Always include support for
1263 TARGET_OBJECT_SIGNAL_INFO.
1264
1265 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1266
1267 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1268 sysctl and remove procfs fallback.
1269
1270 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1271
1272 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1273 * fbsd-nat.h: Likewise.
1274
1275 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1276
1277 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1278 argument.
1279
1280 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * ada-lang.c (ada_language_data): Delete.
1283 (ada_language): Remove references to ada_language_data.
1284 * c-lang.c (c_language_data): Delete.
1285 (c_language): Remove references to c_language_data.
1286 (cplus_language_data): Delete.
1287 (cplus_language): Remove references to cplus_language_data.
1288 (asm_language_data): Delete.
1289 (asm_language): Remove references to asm_language_data.
1290 (minimal_language_data): Delete.
1291 (minimal_language): Remove references to minimal_language_data.
1292 * d-lang.c (d_language_data): Delete.
1293 (d_language): Remove references to d_language_data.
1294 * f-lang.c (f_language_data): Delete.
1295 (f_language): Remove references to f_language_data.
1296 * go-lang.c (go_language_data): Delete.
1297 (go_language): Remove references to go_language_data.
1298 * language.c (unknown_language_data): Delete.
1299 (unknown_language): Remove references to unknown_language_data.
1300 (auto_language_data): Delete.
1301 (auto_language): Remove references to auto_language_data.
1302 * language.h (language_data): Delete struct.
1303 (language_defn): No longer inherit from language_data.
1304 * m2-lang.c (m2_language_data): Delete.
1305 (m2_language): Remove references to m2_language_data.
1306 * objc-lang.c (objc_language_data): Delete.
1307 (objc_language): Remove references to objc_language_data.
1308 * opencl-lang.c (opencl_language_data): Delete.
1309 (opencl_language): Remove references to opencl_language_data.
1310 * p-lang.c (pascal_language_data): Delete.
1311 (pascal_language): Remove references to pascal_language_data.
1312 * rust-lang.c (rust_language_data): Delete.
1313 (rust_language): Remove references to rust_language_data.
1314
1315 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1316
1317 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1318 initializer.
1319 (ada_language::opcode_print_table): New member function.
1320 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1321 (c_language::opcode_print_table): New member function.
1322 (cplus_language_data): Remove la_op_print_tab initializer.
1323 (cplus_language::opcode_print_table): New member function.
1324 (asm_language_data): Remove la_op_print_tab initializer.
1325 (asm_language::opcode_print_table): New member function.
1326 (minimal_language_data): Remove la_op_print_tab initializer.
1327 (minimal_language::opcode_print_table): New member function.
1328 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1329 (d_language::opcode_print_table): New member function.
1330 * expprint.c (print_subexp_standard): Update call to
1331 opcode_print_table.
1332 (op_string): Likewise.
1333 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1334 (f_language::opcode_print_table): New member function.
1335 * go-lang.c (go_language_data): Remove la_op_print_tab
1336 initializer.
1337 (go_language::opcode_print_table): New member function.
1338 * language.c (unknown_language_data): Remove la_op_print_tab
1339 initializer.
1340 (unknown_language::opcode_print_table): New member function.
1341 (auto_language_data): Remove la_op_print_tab initializer.
1342 (auto_language::opcode_print_table): New member function.
1343 * language.h (language_data): Remove la_op_print_tab field.
1344 (language_defn::opcode_print_table): Declare new member function.
1345 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1346 initializer.
1347 (m2_language::opcode_print_table): New member function.
1348 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1349 initializer.
1350 (objc_language::opcode_print_table): New member function.
1351 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1352 initializer.
1353 (opencl_language::opcode_print_table): New member function.
1354 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1355 initializer.
1356 (pascal_language::opcode_print_table): New member function.
1357 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1358 initializer.
1359 (rust_language::opcode_print_table): New member function.
1360
1361 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1362
1363 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1364 (ada_language::expression_ops): New member function.
1365 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1366 (c_language::expression_ops): New member function.
1367 (cplus_language_data): Remove la_exp_desc initializer.
1368 (cplus_language::expression_ops): New member function.
1369 (asm_language_data): Remove la_exp_desc initializer.
1370 (asm_language::expression_ops): New member function.
1371 (minimal_language_data): Remove la_exp_desc initializer.
1372 (minimal_language::expression_ops): New member function.
1373 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1374 (d_language::expression_ops): New member function.
1375 * eval.c (evaluate_subexp): Update call to expression_ops.
1376 * expprint.c (print_subexp): Likewise.
1377 (op_name): Likewise.
1378 (dump_subexp_body): Likewise.
1379 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1380 (f_language::expression_ops): New member function.
1381 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1382 (go_language::expression_ops): New member function.
1383 * language.c (language_defn::expression_ops): New function.
1384 (unknown_language_data): Remove la_exp_desc initializer.
1385 (auto_language_data): Likewise.
1386 * language.h (language_data): Remove la_exp_desc field.
1387 (language_defn::expression_ops): Declare new member function.
1388 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1389 (m2_language::expression_ops): New member function.
1390 * objc-lang.c (objc_language_data): Remove la_exp_desc
1391 initializer.
1392 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1393 initializer.
1394 (opencl_language::expression_ops): New member function.
1395 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1396 * parse.c (operator_length): Update call to expression_ops.
1397 (exp_iterate): Likewise.
1398 * rust-lang.c (rust_language_data): Remove la_exp_desc
1399 initializer.
1400 (ruse_language::expression_ops): New member function.
1401
1402 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1405 initializer.
1406 (ada_language::varobj_ops): New member function.
1407 * c-lang.c (c_language_data): Remove la_varobj_ops
1408 initializer.
1409 (cplus_language_data): Likewise.
1410 (cplus_language::varobj_ops): New member function.
1411 (asm_language_data): Remove la_varobj_ops initializer.
1412 (minimal_language_data): Likewise.
1413 * d-lang.c (d_language_data): Likewise.
1414 * f-lang.c (f_language_data): Likewise.
1415 * go-lang.c (go_language_data): Likewise.
1416 * language.c (language_defn::varobj_ops): New function.
1417 (unknown_language_data): Remove la_varobj_ops
1418 initializer.
1419 (auto_language_data): Likewise.
1420 * language.h (language_data): Remove la_varobj_ops field.
1421 (language_defn::varobj_ops): Declare new member function.
1422 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1423 * objc-lang.c (objc_language_data): Likewise.
1424 * opencl-lang.c (opencl_language_data): Likewise.
1425 * p-lang.c (pascal_language_data): Likewise.
1426 * rust-lang.c (rust_language_data): Likewise.
1427 * varobj.c (varobj_create): Update call to varobj_ops.
1428 * varobj.h (default_varobj_ops): Delete define.
1429
1430 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1433 initializer.
1434 * c-lang.c (c_language_data): Likewise.
1435 (c_language::macro_expansion): New member function.
1436 (cplus_language_data): Likewise.
1437 (cplus_language::macro_expansion): New member function.
1438 (asm_language_data): Likewise.
1439 (asm_language::macro_expansion): New member function.
1440 (minimal_language_data): Likewise.
1441 (minimal_language::macro_expansion): New member function.
1442 * d-lang.c (d_language_data): Remove la_macro_expansion
1443 initializer.
1444 * f-lang.c (f_language_data): Likewise.
1445 * go-lang.c (go_language_data): Likewise.
1446 * language.c (unknown_language_data): Likewise.
1447 (auto_language_data): Likewise.
1448 * language.h (language_data): Remove la_macro_expansion field.
1449 (language_defn::macro_expansion): New member function.
1450 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1451 initializer.
1452 * objc-lang.c (objc_language_data): Likewise.
1453 (objc_language::macro_expansion): New member function.
1454 * opencl-lang.c (opencl_language_data): Likewise.
1455 (opencl_language::macro_expansion): New member function.
1456 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1457 initializer.
1458 * rust-lang.c (rust_language_data): Likewise.
1459 * symtab.c (default_collect_symbol_completion_matches_break_on):
1460 Update call to macro_expansion.
1461
1462 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1463
1464 * ada-lang.c (ada_language_data): Remove la_array_ordering
1465 initializer.
1466 * c-lang.c (c_language_data): Likewise.
1467 (cplus_language_data): Likewise.
1468 (asm_language_data): Likewise.
1469 (minimal_language_data): Likewise.
1470 * d-lang.c (d_language_data): Likewise.
1471 * dwarf2/read.c (read_array_order): Update for call to
1472 array_ordering.
1473 * f-lang.c (f_language_data): Remove la_array_ordering
1474 initializer.
1475 (f_language::array_ordering): New member function.
1476 * go-lang.c (go_language_data): Remove la_array_ordering
1477 initializer.
1478 * language.c (unknown_language_data): Likewise.
1479 (auto_language_data): Likewise.
1480 * language.h (language_data): Delete la_array_ordering field.
1481 (language_defn::array_ordering): New member function.
1482 * m2-lang.c (m2_language_data): Remove la_array_ordering
1483 initializer.
1484 * objc-lang.c (objc_language_data): Likewise.
1485 * opencl-lang.c (opencl_language_data): Likewise.
1486 * p-lang.c (pascal_language_data): Likewise.
1487 * rust-lang.c (rust_language_data): Likewise.
1488
1489 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1492 initializer.
1493 * c-lang.c (c_language_data): Likewise.
1494 (cplus_language_data): Likewise.
1495 (asm_language_data): Likewise.
1496 (minimal_language_data): Likewise.
1497 * d-lang.c (d_language_data): Likewise.
1498 * f-lang.c (f_language_data): Likewise.
1499 (f_language::case_sensitivity): New member function.
1500 * go-lang.c (go_language_data): Remove la_case_sensitivity
1501 initializer.
1502 * language.c (enum case_mode): Moved here from language.h.
1503 (case_mode): Make static.
1504 (show_case_command): Update for case_sensitivity being a method.
1505 (set_case_command): Likewise.
1506 (set_range_case): Likewise.
1507 (unknown_language_data): Remove la_case_sensitivity initializer.
1508 (auto_language_data): Likewise.
1509 * language.h (case_mode): Delete, move enum declaration to
1510 language.c.
1511 (language_data): Delete la_case_sensitivity field.
1512 (language_defn::case_sensitivity): New member function.
1513 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1514 initializer.
1515 * objc-lang.c (objc_language_data): Likewise.
1516 * opencl-lang.c (opencl_language_data): Likewise.
1517 * p-lang.c (pascal_language_data): Likewise.
1518 * rust-lang.c (rust_language_data): Likewise.
1519
1520 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * ada-lang.c (ada_language_data): Remove la_range_check
1523 initializer.
1524 * c-lang.c (c_language_data): Likewise.
1525 (cplus_language_data): Likewise.
1526 (asm_language_data): Likewise.
1527 (minimal_language_data): Likewise.
1528 * d-lang.c (d_language_data): Likewise.
1529 * f-lang.c (f_language_data): Likewise.
1530 (f_language::range_checking_on_by_default): New member function.
1531 * go-lang.c (go_language_data): Remove la_range_check initializer.
1532 * language.c (enum range_mode): Moved here from language.h.
1533 (range_mode): Made static.
1534 (show_range_command): Update to use
1535 range_checking_on_by_default.
1536 (set_range_command): Likewise.
1537 (set_range_case): Likewise.
1538 (unknown_language_data): Remove la_range_check initializer.
1539 (auto_language_data): Likewise.
1540 * language.h (range_mode): Delete. Enum definition moved to
1541 language.c.
1542 (language_data): Remove la_range_check field.
1543 (language_defn::range_checking_on_by_default): New member
1544 function.
1545 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1546 (m2_language::range_checking_on_by_default): New member function.
1547 * objc-lang.c (objc_language_data): Remove la_range_check
1548 initializer.
1549 * opencl-lang.c (opencl_language_data): Likewise.
1550 * p-lang.c (pascal_language_data): Likewise.
1551 (pascal_language::range_checking_on_by_default): New member
1552 function.
1553 * rust-lang.c (rust_language_data): Remove la_range_check
1554 initializer.
1555 (rust_language::range_checking_on_by_default): New member
1556 function.
1557
1558 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * dwarf2/read.c (dwarf2_physname): Remove special case for
1561 language_go.
1562 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1563 member function.
1564
1565 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1566
1567 * ada-lang.c (ada_language_data): Remove
1568 la_store_sym_names_in_linkage_form_p initializer.
1569 (ada_language::store_sym_names_in_linkage_form_p): New member
1570 function.
1571 * c-lang.c (c_language_data): Remove
1572 la_store_sym_names_in_linkage_form_p initializer.
1573 (c_language::store_sym_names_in_linkage_form_p): New member
1574 function.
1575 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1576 initializer.
1577 (asm_language_data): Likewise.
1578 (asm_language::store_sym_names_in_linkage_form_p): New member
1579 function.
1580 (minimal_language_data): Remove
1581 la_store_sym_names_in_linkage_form_p initializer.
1582 (minimal_language::store_sym_names_in_linkage_form_p): New member
1583 function.
1584 * d-lang.c (d_language_data): Remove
1585 la_store_sym_names_in_linkage_form_p initializer.
1586 * dwarf2/read.c (dwarf2_physname): Update call to
1587 store_sym_names_in_linkage_form_p.
1588 * f-lang.c (f_language_data): Remove
1589 la_store_sym_names_in_linkage_form_p initializer.
1590 * go-lang.c (go_language_data): Remove
1591 la_store_sym_names_in_linkage_form_p initializer.
1592 * language.c (unknown_language_data): Remove
1593 la_store_sym_names_in_linkage_form_p initializer.
1594 (unknown_language::store_sym_names_in_linkage_form_p): New member
1595 function.
1596 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1597 initializer.
1598 (auto_language::store_sym_names_in_linkage_form_p): New member
1599 function.
1600 * language.h (language_data): Remove
1601 la_store_sym_names_in_linkage_form_p member variable.
1602 (language_defn::store_sym_names_in_linkage_form_p): New member
1603 function.
1604 * m2-lang.c (m2_language_data): Remove
1605 la_store_sym_names_in_linkage_form_p initializer.
1606 * objc-lang.c (objc_language_data): Likewise.
1607 * opencl-lang.c (opencl_language_data): Likewise.
1608 * p-lang.c (pascal_language_data): Likewise.
1609 * rust-lang.c (rust_language_data): Likewise.
1610
1611 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * ada-lang.c (ada_language_data): Remove string_lower_bound
1614 initializer.
1615 * c-lang.c (c_language_data): Likewise.
1616 (cplus_language_data): Likewise.
1617 (asm_language_data): Likewise.
1618 (minimal_language_data): Likewise.
1619 * d-lang.c (d_language_data): Likewise.
1620 * f-lang.c (f_language_data): Likewise.
1621 * go-lang.c (go_language_data): Likewise.
1622 * language.c (unknown_language_data): Likewise.
1623 (auto_language_data): Likewise.
1624 * language.h (language_data): Remove string_lower_bound field.
1625 (language_defn::string_lower_bound): New member function.
1626 * m2-lang.c (m2_language_data): Remove string_lower_bound
1627 initializer.
1628 (m2_language::string_lower_bound): New member function.
1629 * objc-lang.c (objc_language_data): Remove string_lower_bound
1630 initializer.
1631 * opencl-lang.c (opencl_language_data): Likewise.
1632 * p-lang.c (pascal_language_data): Likewise.
1633 * rust-lang.c (rust_language_data): Likewise.
1634 * valops.c (value_cstring): Update call to string_lower_bound.
1635 (value_string): Likewise.
1636 * value.c (allocate_repeated_value): Likewise.
1637
1638 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * valops.c (value_repeat): Fix incorrect argument name in comment.
1641
1642 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 * ada-lang.c (ada_language_data): Remove c_style_arrays
1645 initializer.
1646 (ada_language::c_style_arrays_p): New member fuction.
1647 * c-lang.c (c_language_data): Remove c_style_arrays
1648 initializer.
1649 (cplus_language_data): Likewise.
1650 (asm_language_data): Likewise.
1651 (minimal_language_data): Likewise.
1652 * d-lang.c (d_language_data): Likewise.
1653 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1654 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1655 (f_language::c_style_arrays_p): New member function.
1656 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1657 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1658 * language.c (unknown_language_data): Remove c_style_arrays
1659 initializer.
1660 (auto_language_data): Likewise.
1661 * language.h (language_data): Remove c_style_arrays field.
1662 (language_defn::c_style_arrays_p): New member function.
1663 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1664 (m2_language::c_style_arrays_p): New member function.
1665 * objc-lang.c (objc_language_data): Remove c_style_arrays
1666 initializer.
1667 * opencl-lang.c (opencl_language_data): Likewise.
1668 * p-lang.c (pascal_language_data): Likewise.
1669 * rust-lang.c (rust_language_data): Likewise.
1670 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1671 and update local variable to a bool.
1672 * valops.c (value_cast): Update call to c_style_arrays_p.
1673 (value_array): Likewise.
1674 * value.c (coerce_array): Likewise.
1675
1676 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * ada-lang.c (ada_language_data): Remove la_language initializer.
1679 * c-lang.c (c_language_data): Likewise.
1680 (cplus_language_data): Likewise.
1681 (asm_language_data): Likewise.
1682 (minimal_language_data): Likewise.
1683 * d-lang.c (d_language_data): Likewise.
1684 * f-lang.c (f_language_data): Likewise.
1685 * go-lang.c (go_language_data): Likewise.
1686 * language.c (unknown_language_data): Likewise.
1687 (auto_language_data): Likewise.
1688 * language.h (language_data): Remove la_language field.
1689 (language_defn::language_defn): Initialise la_language field.
1690 (language_defn::la_language): New member variable.
1691 * m2-lang.c (m2_language_data): Remove la_language field.
1692 * objc-lang.c (objc_language_data): Likewise.
1693 * opencl-lang.c (opencl_language_data): Likewise.
1694 * p-lang.c (pascal_language_data): Likewise.
1695 * rust-lang.c (rust_language_data): Likewise.
1696
1697 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 * ada-lang.c (ada_extensions): Delete, moved into
1700 ada_language::filename_extensions.
1701 (ada_language_data): Remove la_filename_extensions initializer.
1702 (ada_language::filename_extensions): New member function.
1703 * c-lang.c (c_extensions): Delete, moved into
1704 c_language::filename_extensions.
1705 (c_language_data): Remove la_filename_extensions initializer.
1706 (c_language::filename_extensions): New member function.
1707 (cplus_extensions): Delete, moved into
1708 cplus_language::filename_extensions.
1709 (cplus_language_data): Remove la_filename_extensions initializer.
1710 (cplus_language::filename_extensions): New member function.
1711 (asm_extensions): Delete, moved into
1712 asm_language::filename_extensions.
1713 (asm_language_data): Remove la_filename_extensions initializer.
1714 (asm_language::filename_extensions): New member function.
1715 (minimal_language_data): Remove la_filename_extensions
1716 initializer.
1717 * d-lang.c (d_extensions): Delete, moved into
1718 d_language::filename_extensions.
1719 (d_language_data): Remove la_filename_extensions initializer.
1720 (d_language::filename_extensions): New member function.
1721 * f-lang.c (f_extensions): Delete, moved into
1722 f_language::filename_extensions.
1723 (f_language_data): Remove la_filename_extensions initializer.
1724 (f_language::filename_extensions): New member function.
1725 * go-lang.c (go_language_data): Remove la_filename_extensions
1726 initializer.
1727 * language.c (add_set_language_command): Update now that
1728 filename_extensions returns a vector.
1729 (unknown_language_data): Remove la_filename_extensions
1730 initializer.
1731 (auto_language_data): Likewise.
1732 * language.h (language_data): Remove la_filename_extensions field.
1733 (language_defn::filename_extensions): New member function.
1734 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1735 initializer.
1736 * objc-lang.c (objc_extensions): Delete, moved into
1737 objc_language::filename_extensions.
1738 (objc_language_data): Remove la_filename_extensions initializer.
1739 (objc_language::filename_extensions): New member function.
1740 * opencl-lang.c (opencl_language_data): Remove
1741 la_filename_extensions initializer.
1742 * p-lang.c (pascal_extensions): Delete, moved into
1743 pascal_language::filename_extensions.
1744 (pascal_language_data): Remove la_filename_extensions initializer.
1745 (pascal_language::filename_extensions): New member function.
1746 * rust-lang.c (rust_extensions): Delete, moved into
1747 rust_language::filename_extensions.
1748 (rust_language_data): Remove la_filename_extensions initializer.
1749 (rust_language::filename_extensions): New member function.
1750 * symfile.c (add_filename_language): Add new assert.
1751
1752 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 * ada-lang.c (ada_language_data): Remove la_name and
1755 la_natural_name initializers.
1756 (ada_language::name): New member function.
1757 (ada_language::natural_name): New member function.
1758 * c-lang.c (c_language_data): Remove la_name and
1759 la_natural_name initializers.
1760 (c_language::name): New member function.
1761 (c_language::natural_name): New member function.
1762 (cplus_language_data): Remove la_name and
1763 la_natural_name initializers.
1764 (cplus_language::name): New member function.
1765 (cplus_language::natural_name): New member function.
1766 (asm_language_data): Remove la_name and
1767 la_natural_name initializers.
1768 (asm_language::name): New member function.
1769 (asm_language::natural_name): New member function.
1770 (minimal_language_data): Remove la_name and
1771 la_natural_name initializers.
1772 (minimal_language::name): New member function.
1773 (minimal_language::natural_name): New member function.
1774 * compile/compile.c (compile_to_object): Update call to
1775 lanugage_defn::name.
1776 * d-lang.c (d_language_data): Remove la_name and
1777 la_natural_name initializers.
1778 (d_language::name): New member function.
1779 (d_language::natural_name): New member function.
1780 * expprint.c (print_subexp_standard): Update call to
1781 language_defn::name.
1782 (dump_raw_expression): Likewise
1783 (dump_prefix_expression): Likewise.
1784 * f-lang.c (f_language_data): Remove la_name and
1785 la_natural_name initializers.
1786 (f_language::name): New member function.
1787 (f_language::natural_name): New member function.
1788 * go-lang.c (go_language_data): Remove la_name and
1789 la_natural_name initializers.
1790 (go_language::name): New member function.
1791 (go_language::natural_name): New member function.
1792 * language.c (show_language_command): Update call to
1793 language_defn::name.
1794 (set_language_command): Likewise.
1795 (language_enum): Likewise.
1796 (language_str): Likewise.
1797 (add_set_language_command): Likewise, use
1798 language_defn::natural_name in the doc string.
1799 (unknown_language_data): Remove la_name and
1800 la_natural_name initializers.
1801 (unknown_language::name): New member function.
1802 (unknown_language::natural_name): New member function.
1803 (auto_language_data): Remove la_name and
1804 la_natural_name initializers.
1805 (auto_language::name): New member function.
1806 (auto_language::natural_name): New member function.
1807 (language_lookup_primitive_type_as_symbol): Update call to
1808 language_defn::name.
1809 * language.h (language_data): Remove la_name and la_natural_name
1810 member variables.
1811 (language_defn::name): New member function.
1812 (language_defn::natural_name): New member function.
1813 * m2-lang.c (m2_language_data): Remove la_name and
1814 la_natural_name initializers.
1815 (m2_language::name): New member function.
1816 (m2_language::natural_name): New member function.
1817 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1818 language_defn::natural_name.
1819 * objc-lang.c (objc_language_data): Remove la_name and
1820 la_natural_name initializers.
1821 (objc_language::name): New member function.
1822 (objc_language::natural_name): New member function.
1823 * opencl-lang.c (opencl_language_data): Remove la_name and
1824 la_natural_name initializers.
1825 (opencl_language::name): New member function.
1826 (opencl_language::natural_name): New member function.
1827 * p-lang.c (pascal_language_data): Remove la_name and
1828 la_natural_name initializers.
1829 (pascal_language::name): New member function.
1830 (pascal_language::natural_name): New member function.
1831 * rust-lang.c (rust_language_data): Remove la_name and
1832 la_natural_name initializers.
1833 (rust_language::name): New member function.
1834 (rust_language::natural_name): New member function.
1835 * symtab.c (lookup_language_this): Update call to
1836 language_defn::name.
1837
1838 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * ada-lang.c (ada_language_data): Remove la_name_of_this
1841 initializer.
1842 * ax-gdb.c (gen_expr): Update call to name_of_this.
1843 * c-exp.y (classify_name): Likewise.
1844 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1845 (cplus_language_data): Likewise.
1846 (cplus_language::name_of_this): New member function.
1847 (asm_language_data): Remove la_name_of_this initializer.
1848 (minimal_language_data): Likewise.
1849 * d-lang.c (d_language_data): Likewise.
1850 (d_language::name_of_this): New member function.
1851 * expprint.c (print_subexp_standard): Update call to name_of_this.
1852 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1853 * go-lang.c (go_language_data): Likewise.
1854 * language.c (unknown_language_data): Likewise.
1855 (unknown_language::name_of_this): New member function.
1856 (auto_language_data): Remove la_name_of_this initializer.
1857 (auto_language::name_of_this): New member function.
1858 * language.h (language_data): Delete la_name_of_this member
1859 variable.
1860 (language_defn::name_of_this): New member function.
1861 * m2-lang.c (m2_language_data): Remove la_name_of_this
1862 initializer.
1863 * objc-lang.c (objc_language_data): Likewise.
1864 (objc_language::name_of_this): New member function.
1865 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1866 initializer.
1867 * p-lang.c (pascal_language_data): Likewise.
1868 (pascal_language::name_of_this): New member function.
1869 * rust-lang.c (rust_language_data): Remove la_name_of_this
1870 initializer.
1871 * symtab.c (lookup_language_this): Update call to name_of_this.
1872 (lookup_symbol_aux): Likewise.
1873 * valops.c (value_of_this): Likewise.
1874
1875 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * ada-lang.c (ada_language_data): Remove
1878 la_struct_too_deep_ellipsis initializer.
1879 (ada_language::struct_too_deep_ellipsis): New member function.
1880 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1881 initializer.
1882 (cplus_language_data): Likewise.
1883 (asm_language_data): Likewise.
1884 (minimal_language_data): Likewise.
1885 * cp-valprint.c (cp_print_value): Update call to
1886 struct_too_deep_ellipsis.
1887 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1888 initializer.
1889 * f-lang.c (f_language_data): Likewise.
1890 (f_language::struct_too_deep_ellipsis): New member function.
1891 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1892 initializer.
1893 * language.c (unknown_language_data): Likewise.
1894 (auto_language_data): Likewise.
1895 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1896 member variable.
1897 (language_defn::struct_too_deep_ellipsis): New member function.
1898 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1899 initializer.Q
1900 * objc-lang.c (objc_language_data): Likewise.
1901 * opencl-lang.c (opencl_language_data): Likewise.
1902 * p-lang.c (pascal_language_data): Likewise.
1903 * rust-lang.c (rust_language_data): Likewise.
1904 * valprint.c (val_print_check_max_depth): Update call to
1905 struct_too_deep_ellipsis.
1906
1907 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1908
1909 * MAINTAINERS (Write After Approval): Add myself.
1910
1911 2020-09-15 Tom Tromey <tom@tromey.com>
1912
1913 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1914 Remove.
1915
1916 2020-09-15 Tom Tromey <tom@tromey.com>
1917
1918 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1919 and TYPE_CODE_METHODPTR cases.
1920 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1921 (c_value_print_inner): Update.
1922 * valprint.c (generic_value_print_memberptr): New function, from
1923 c_value_print_memberptr.
1924 (generic_value_print): Use it. Call cplus_print_method_ptr.
1925
1926 2020-09-15 Tom Tromey <tromey@adacore.com>
1927
1928 * python/python-internal.h (PyInt_FromLong): Remove define.
1929 * python/py-value.c (convert_value_from_python): Use
1930 gdb_py_object_from_longest.
1931 * python/py-type.c (typy_get_code): Use
1932 gdb_py_object_from_longest.
1933 * python/py-symtab.c (salpy_get_line): Use
1934 gdb_py_object_from_longest.
1935 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1936 gdb_py_object_from_longest.
1937 * python/py-record.c (recpy_gap_reason_code): Use
1938 gdb_py_object_from_longest.
1939 * python/py-record-btrace.c (recpy_bt_insn_size)
1940 (recpy_bt_func_level, btpy_list_count): Use
1941 gdb_py_object_from_longest.
1942 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1943 gdb_py_object_from_longest. Fix error handling.
1944 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1945 gdb_py_object_from_longest.
1946 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1947 gdb_py_object_from_longest.
1948 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1949 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1950 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1951
1952 2020-09-15 Tom Tromey <tromey@adacore.com>
1953
1954 * python/python.c (gdbpy_parameter_value): Use
1955 gdb_py_object_from_ulongest.
1956
1957 2020-09-15 Tom Tromey <tromey@adacore.com>
1958
1959 * python/py-infevents.c (create_register_changed_event_object):
1960 Use gdb_py_object_from_longest.
1961 * python/py-exitedevent.c (create_exited_event_object): Use
1962 gdb_py_object_from_longest.
1963
1964 2020-09-15 Tom Tromey <tromey@adacore.com>
1965
1966 * python/python.c (gdbpy_parameter_value): Use
1967 gdb_py_object_from_longest.
1968 * python/py-type.c (convert_field, typy_range): Use
1969 gdb_py_object_from_longest.
1970 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1971 gdb_py_object_from_longest.
1972 * python/py-lazy-string.c (stpy_get_length): Use
1973 gdb_py_object_from_longest.
1974 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1975 gdb_py_object_from_longest.
1976 * python/py-infevents.c (create_memory_changed_event_object): Use
1977 gdb_py_object_from_longest.
1978 * python/py-inferior.c (infpy_get_num): Use
1979 gdb_py_object_from_longest.
1980 (infpy_get_pid): Likewise.
1981
1982 2020-09-15 Tom Tromey <tromey@adacore.com>
1983
1984 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1985 defines.
1986 * python/py-value.c (valpy_long): Use
1987 gdb_py_object_from_ulongest.
1988 * python/py-symtab.c (salpy_get_pc): Use
1989 gdb_py_object_from_ulongest.
1990 (salpy_get_last): Likewise.
1991 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1992 gdb_py_object_from_ulongest.
1993 * python/py-lazy-string.c (stpy_get_address): Use
1994 gdb_py_object_from_ulongest.
1995 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1996 * python/py-arch.c (archpy_disassemble): Use
1997 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1998 error handling.
1999
2000 2020-09-15 Tom Tromey <tromey@adacore.com>
2001
2002 * python/python-internal.h (gdb_py_long_from_longest): Remove
2003 defines.
2004 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2005 * python/py-type.c (convert_field, typy_get_sizeof): Use
2006 gdb_py_object_from_longest.
2007 * python/py-record-btrace.c (btpy_list_index): Use
2008 gdb_py_object_from_longest.
2009
2010 2020-09-15 Tom Tromey <tromey@adacore.com>
2011
2012 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2013 * python/py-record.c (recpy_element_number): Use
2014 gdb_py_object_from_longest.
2015 (recpy_gap_number): Likewise.
2016
2017 2020-09-15 Tom Tromey <tromey@adacore.com>
2018
2019 * top.c (ui::ui): Update.
2020 (highest_ui_num): Remove.
2021 * top.h (struct ui) <num>: Remove.
2022
2023 2020-09-15 Tom Tromey <tromey@adacore.com>
2024
2025 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2026 * ui-style.c (ansi_regex_text): Now array.
2027 * rust-exp.y (number_regex_text): Now array.
2028 * linespec.c (linespec_quote_characters): Now array.
2029 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2030 Now arrays.
2031
2032 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2033
2034 * debuginfod-support.c (debuginfod_client_deleter): New.
2035 (debuginfod_client_up): New.
2036 (debuginfod_init): Return debuginfod_client_up.
2037 (debuginfod_source_query): Adjust.
2038 (debuginfod_debuginfo_query): Adjust.
2039
2040 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * debuginfod-support.c (debuginfod_source_query): Use
2043 make_unique_xstrdup.
2044
2045 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2046
2047 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2048 with `type::instance_flags`.
2049
2050 2020-09-14 Michael Mullin <masmullin@gmail.com>
2051
2052 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2053 Remove baton parameter.
2054
2055 2020-09-14 Pedro Alves <pedro@palves.net>
2056
2057 * Makefile.in (SELFTESTS_SRCS): Add
2058 unittests/enum-flags-selftests.c.
2059 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2060 btrace_function_flags instead of enum btrace_function_flag.
2061 * compile/compile-c-types.c (convert_qualified): Use
2062 enum_flags::raw.
2063 * compile/compile-cplus-symbols.c (convert_one_symbol)
2064 (convert_symbol_bmsym):
2065 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2066 (compile_cplus_convert_struct_or_union_methods)
2067 (compile_cplus_instance::convert_qualified_base):
2068 * go-exp.y (parse_string_or_char): Add cast to int.
2069 * unittests/enum-flags-selftests.c: New file.
2070 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2071 type to btrace_thread_flags from btrace_thread_flag.
2072 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2073 local's type to btrace_thread_flags from btrace_thread_flag. Add
2074 cast in DEBUG call.
2075
2076 2020-09-14 Pedro Alves <pedro@palves.net>
2077
2078 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2079 * gdbtypes.c (address_space_name_to_int): Rename to ...
2080 (address_space_name_to_type_instance_flags): ... this.
2081 (address_space_int_to_name): Rename to ...
2082 (address_space_type_instance_flags_to_name): ... this.
2083 * gdbtypes.h (address_space_name_to_int): Rename to ...
2084 (address_space_name_to_type_instance_flags): ... this.
2085 (address_space_int_to_name): Rename to ...
2086 (address_space_type_instance_flags_to_name): ... this.
2087 * type-stack.c (type_stack::insert): Adjust to rename.
2088 * type-stack.h (type_stack::insert): Likewise.
2089
2090 2020-09-14 Pedro Alves <pedro@palves.net>
2091 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * avr-tdep.c (avr_address_class_type_flags): Return
2094 type_instance_flags.
2095 (avr_address_class_type_flags_to_name): Take a
2096 type_instance_flags.
2097 (avr_address_class_name_to_type_flags): Return bool and take a
2098 type_instance_flags.
2099 * d-lang.c (build_d_types): Use type::set_instance_flags.
2100 * ft32-tdep.c (ft32_address_class_type_flags): Return
2101 type_instance_flags.
2102 (ft32_address_class_type_flags_to_name): Take a
2103 type_instance_flags.
2104 (ft32_address_class_name_to_type_flags): Return bool and take a
2105 type_instance_flags.
2106 (ft32_gdbarch_init): Use type::set_instance_flags.
2107 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2108 * gdbarch.h, gdbarch.c: Regenerate.
2109 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2110 (address_class_name_to_type_flags): Use type_instance_flags and
2111 bool.
2112 * gdbtypes.c (address_space_name_to_int)
2113 (address_space_int_to_name, make_qualified_type): Use
2114 type_instance_flags.
2115 (make_qualified_type): Use type_instance_flags and
2116 type::set_instance_flags.
2117 (make_type_with_address_space, make_cv_type, make_vector_type)
2118 (check_typedef): Use type_instance_flags.
2119 (recursive_dump_type): Cast type_instance_flags to unsigned for
2120 printing.
2121 (copy_type_recursive): Use type::set_instance_flags.
2122 (gdbtypes_post_init): Use type::set_instance_flags.
2123 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2124 <m_instance_flags>: ... this.
2125 <instance_flags, set_instance_flags>: New methods.
2126 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2127 (SET_TYPE_INSTANCE_FLAGS): New.
2128 (address_space_name_to_int, address_space_int_to_name)
2129 (make_type_with_address_space): Pass flags using
2130 type_instance_flags instead of int.
2131 * stabsread.c (cleanup_undefined_types_noname): Use
2132 type::set_instance_flags.
2133 * s390-tdep.c (s390_address_class_type_flags): Return
2134 type_instance_flags.
2135 (s390_address_class_type_flags_to_name): Take a
2136 type_instance_flags.
2137 (s390_address_class_name_to_type_flags): Return bool and take a
2138 type_instance_flags.
2139 * type-stack.c (type_stack::follow_types): Use
2140 type_instance_flags.
2141 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2142
2143 2020-09-14 Tom Tromey <tromey@adacore.com>
2144
2145 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2146 * x86-tdep.c (x86_is_thunk_register_name)
2147 (x86_in_indirect_branch_thunk): Update.
2148 * sparc64-tdep.c (sparc64_fpu_register_names)
2149 (sparc64_cp0_register_names, sparc64_register_names)
2150 (sparc64_pseudo_register_names): Now const.
2151 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2152 cp0_registers_num>: Now const.
2153 * sparc-tdep.c (sparc_core_register_names)
2154 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2155 (sparc32_pseudo_register_names): Now const.
2156 (validate_tdesc_registers): Update.
2157 * rust-lang.c (rust_extensions): Now const.
2158 * p-lang.c (p_extensions): Now const.
2159 * objc-lang.c (objc_extensions): Now const.
2160 * nto-tdep.c (nto_thread_state_str): Now const.
2161 * moxie-tdep.c (moxie_register_names): Now const.
2162 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2163 Now const.
2164 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2165 (mips_linux_reg_names): Now const.
2166 (mips_gdbarch_init): Update.
2167 * microblaze-tdep.c (microblaze_register_names): Now const.
2168 * m68k-tdep.c (m68k_register_names): Now const.
2169 * m32r-tdep.c (m32r_register_names): Now const.
2170 * ia64-tdep.c (ia64_register_names): Now const.
2171 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2172 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2173 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2174 ymm_avx512_register_names, pkeys_register_names>: Now const.
2175 * i386-tdep.c (i386_register_names, i386_zmm_names)
2176 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2177 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2178 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2179 * f-lang.c (f_extensions): Now const.
2180 * d-lang.c (d_extensions): Now const.
2181 * csky-tdep.c (csky_register_names): Now const.
2182 * charset.c (default_charset_names, charset_enum): Now const.
2183 (_initialize_charset): Update.
2184 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2185 const.
2186 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2187 (bsd_uthread_solib_loaded): Update.
2188 (bsd_uthread_state): Now const.
2189 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2190 (amd64_ymm_avx512_names, amd64_ymmh_names)
2191 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2192 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2193 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2194 (amd64_dword_names): Now const.
2195 * agent.c (can_use_agent_enum): Now const.
2196 * ada-tasks.c (task_states, long_task_states): Now const.
2197 * ada-lang.c (known_runtime_file_name_patterns)
2198 (known_auxiliary_function_name_patterns, attribute_names)
2199 (standard_exc, ada_extensions): Now const.
2200
2201 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * bcache.h (struct bcache) <bcache>: Remove constructor.
2204 <m_hash_function, m_compare_function>: Remove.
2205 <~bcache>: Make virtual.
2206 <compare>: Remove static method, introduce virtual method.
2207 <default_hash>: Remove.
2208 <hash>: New virtual method.
2209 * bcache.c (bcache::expand_hash_table): Update.
2210 (bcache::insert): Update.
2211 (bcache::hash): New.
2212 (bcache::compare): Update comment and parameter names.
2213 * gdbtypes.c (types_deeply_equal): Update.
2214 * psymtab.h (struct psymbol_bcache): New struct.
2215 (class psymtab_storage) <psymtab_storage>: Make default.
2216 <psymbol_cache>: Change type to psymbol_bcache.
2217 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2218 (psymbol_hash): Change to...
2219 (psymbol_bcache::hash): ... this.
2220 (psymbol_compare): Change to...
2221 (psymbol_bcache::compare): ... this.
2222
2223 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2226 checking for initial lwp.
2227
2228 2020-09-14 Tom Tromey <tromey@adacore.com>
2229
2230 * m68k-tdep.c (m68k_extract_return_value): Use
2231 pointer_result_regnum.
2232 (m68k_store_return_value): Likewise.
2233 (m68k_reg_struct_return_p): Handle vectors and arrays.
2234 (m68k_return_value): Handle arrays.
2235 (m68k_svr4_return_value): Fix single-element aggregate handling.
2236 Handle long double. Adjust for embedded ABI.
2237 (m68k_svr4_init_abi): Set pointer_result_regnum.
2238 (m68k_embedded_init_abi): New function.
2239 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2240 (m68k_osabi_sniffer): New function.
2241 (_initialize_m68k_tdep): Register osabi sniffer.
2242 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2243 member.
2244
2245 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2248 with gdb::unique_xmalloc_ptr<char>.
2249
2250 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2251
2252 * xml-support.h (xml_fetch_another): Change type to be a
2253 function_view.
2254 (xml_process_xincludes): Remove baton parameter.
2255 (xml_fetch_content_from_file): Change baton parameter to
2256 dirname.
2257 * xml-support.c (struct xinclude_parsing_data)
2258 <xinclude_parsing_data>: Remove baton parameter.
2259 <fetcher_baton>: Remove.
2260 (xinclude_start_include): Adjust.
2261 (xml_process_xincludes): Adjust.
2262 (xml_fetch_content_from_file): Replace baton parameter with
2263 dirname.
2264 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2265 (xml_init_syscalls_info): Use a lambda.
2266 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2267 (file_read_description_xml): Use a lambda.
2268 (fetch_available_features_from_target): Change baton parameter
2269 to target_ops.
2270 (target_read_description_xml): Use a lambda.
2271 (target_fetch_description_xml): Use a lambda.
2272 (string_read_description_xml): Update.
2273
2274 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2277 uses with type::endianity_is_not_default.
2278
2279 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * gdbtypes.h (struct type) <endianity_is_not_default,
2282 set_endianity_is_not_default>: New methods.
2283 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2284 type::endianity_is_not_default, change all write call sites to
2285 use type::set_endianity_is_not_default.
2286
2287 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2288
2289 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2290 uses with type::is_fixed_instance.
2291
2292 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * gdbtypes.h (struct type) <is_fixed_instance,
2295 set_is_fixed_instance>: New methods.
2296 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2297 write call sites to use type::set_is_fixed_instance.
2298
2299 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2300
2301 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2302 uses with type::is_gnu_ifunc.
2303
2304 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2305
2306 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2307 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2308 use type::set_is_gnu_ifunc.
2309
2310 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2311
2312 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2313 uses with type::stub_is_supported.
2314
2315 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2316
2317 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2318 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2319 use type::set_stub_is_supported.
2320
2321 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2322
2323 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2324 uses with type::is_vector.
2325
2326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2329 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2330 use type::set_is_vector.
2331
2332 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2333
2334 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2335 uses with type::has_varargs.
2336
2337 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2340 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2341 use type::set_has_varargs.
2342
2343 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2346 uses with type::is_prototyped.
2347
2348 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2349
2350 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2351 New methods.
2352 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2353 call sites to use type::set_is_prototyped.
2354
2355 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2356
2357 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2358 uses with type::target_is_stub.
2359
2360 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2361
2362 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2363 New methods.
2364 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2365 sites to use type::set_target_is_stub.
2366
2367 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * gdbtypes.h (TYPE_STUB): Remove, replace all
2370 uses with type::is_stub.
2371
2372 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2373
2374 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2375 (TYPE_STUB): Use type::is_stub, change all write call sites to
2376 use type::set_is_stub.
2377
2378 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2379
2380 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2381 type::has_no_signedness.
2382
2383 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * gdbtypes.h (struct type) <has_no_signedness,
2386 set_has_no_signedness>: New methods.
2387 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2388 call sites to use type::set_has_no_signedness.
2389
2390 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2391
2392 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2393 type::is_unsigned.
2394
2395 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2396
2397 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2398 methods.
2399 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2400 sites to use type::set_is_unsigned.
2401
2402 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2403 Adam Renquinha <arenquinha@cimeq.qc.ca>
2404
2405 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2406 pointer and stack frame offset when unwinding.
2407
2408 2020-09-13 Pedro Alves <pedro@palves.net>
2409
2410 * NEWS: Document "-break-insert --qualified".
2411 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2412
2413 2020-09-13 Pedro Alves <pedro@palves.net>
2414
2415 * linespec.c (classify_mtype, compare_msyms): Delete.
2416 (search_minsyms_for_name): Remove classification logic. Instead
2417 filter out trampoline symbols if we also found an external
2418 function of the same name.
2419
2420 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2421
2422 * NEWS: Create a new section for the next release branch.
2423 Rename the section of the current branch, now that it has
2424 been cut.
2425
2426 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2427
2428 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2429 * version.in: Bump version to 11.0.50.DATE-git.
2430
2431 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2432
2433 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2434
2435 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2436 Felix Willgerodt <Felix.Willgerodt@intel.com>
2437
2438 * gdbarch.sh: Added bfloat16 type.
2439 * gdbarch.c: Regenerated.
2440 * gdbarch.h: Regenerated.
2441 * gdbtypes.c (floatformats_bfloat16): New struct.
2442 (gdbtypes_post_init): Add builtin_bfloat16.
2443 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2444 (floatformats_bfloat16): New struct.
2445 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2446 (i386_ymm_type): Add field "v16_bfloat16"
2447 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2448 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2449 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2450 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2451 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2452 * features/i386/64bit-avx512.c: Regenerated.
2453 * features/i386/64bit-sse.xml: Add bfloat16 type.
2454 * features/i386/64bit-sse.c: Regenerated.
2455
2456 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2457
2458 * i386-tdep.c (i386_zmm_type): Fix field names.
2459 (i386_ymm_type): Fix field names.
2460
2461 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462
2463 * breakpoint.c: Fix typo in the help message of the
2464 "set breakpoint condition-evaluation" command.
2465
2466 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2467
2468 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2469 * (nbsd_nat_target::pid_to_exec_file)
2470 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2471 (nbsd_nat_target::post_startup_inferior)
2472 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2473 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2474 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2475 * (nbsd_thread_lister): Remove.
2476
2477 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2478
2479 * fork-inferior.c (startup_inferior): Avoid double free.
2480
2481 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2482
2483 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2484 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2485
2486 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2487
2488 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2489 * netbsd-nat.c: Include <sys/ptrace.h>.
2490 * (netbsd_nat::enable_proc_events): Add.
2491
2492 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2493
2494 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2495 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2496 (netbsd_nat::for_each_thread): Add.
2497 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2498 "gdbsupport/common-debug.h".
2499 * (netbsd_nat::netbsd_thread_lister)
2500 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2501 (netbsd_nat::for_each_thread): Add.
2502
2503 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2504
2505 * netbsd-nat.h: Include <unistd.h>.
2506 * (netbsd_nat::pid_to_exec_file): Add.
2507 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2508 * (netbsd_nat::pid_to_exec_file) Add.
2509
2510 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2511
2512 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2513
2514 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2515
2516 * netbsd-nat.h: New file.
2517 * netbsd-nat.c: Likewise.
2518
2519 2020-09-09 Tom Tromey <tromey@adacore.com>
2520
2521 * ada-lang.c (remove_extra_symbols): Do not increment when
2522 removing an element
2523
2524 2020-09-08 Tom Tromey <tromey@adacore.com>
2525
2526 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2527
2528 2020-09-08 Tom Tromey <tromey@adacore.com>
2529
2530 PR win32/25302:
2531 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2532 (gdb_bfd_init_data): New function.
2533 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2534
2535 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2536
2537 * infrun.c (fetch_inferior_event): Use
2538 `switch_to_target_no_thread` to switch the target.
2539
2540 2020-09-06 Tom Tromey <tom@tromey.com>
2541
2542 * symfile.h (dwarf2_free_objfile): Don't declare.
2543
2544 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2545
2546 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2547 to match 16 byte real/complex type generated by Flang compiler.
2548
2549 2020-09-03 Tom de Vries <tdevries@suse.de>
2550
2551 PR breakpoint/26546
2552 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2553 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2554
2555 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2556
2557 * maint.c (index_digits): New function.
2558 (struct maint_print_section_data): Remove.
2559 (print_bfd_section_info): Remove print_data parameter, add arg
2560 and index_digits.
2561 (print_objfile_section_info): Likewise.
2562 (print_bfd_section_info_maybe_relocated): Likewise (plus
2563 objfile).
2564 (maintenance_info_sections): Adjust calls.
2565
2566 2020-09-02 Tom Tromey <tromey@adacore.com>
2567
2568 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2569 for null pointers.
2570 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2571
2572 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2573
2574 * bcache.h (struct bcache) <insert>: Change type of `added` to
2575 pointer to bool.
2576 * bcache.c (bcache::insert): Likewise.
2577 * gdbtypes.c (check_types_worklist): Adjust.
2578 * psymtab.c (add_psymbol_to_bcache): Adjust.
2579
2580 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2581
2582 * corelow.c (unordered_set): Include.
2583 (class core_target): Add field 'm_core_unavailable_mappings'.
2584 (core_target::build_file_mappings): Print only one warning
2585 per inaccessible file. Add unavailable/broken mappings
2586 to m_core_unavailable_mappings.
2587 (core_target::xfer_partial): Call...
2588 (core_target::xfer_memory_via_mappings): New method.
2589
2590 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2593 type to bool.
2594
2595 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2596
2597 * dwarf2/read.c (struct field_info): Fix indentation.
2598
2599 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2600
2601 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2602 ordering in comment.
2603 * frame.c (frame_id_eq): Fix indentation.
2604
2605 2020-08-31 Scott Linder <scott@scottlinder.com>
2606 Simon Marchi <simon.marchi@efficios.com>
2607
2608 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2609 inline frame ids in outer frame.
2610
2611 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2614 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2615 (outer_frame_id): Use FID_STACK_OUTER instead of
2616 FID_STACK_INVALID.
2617 (frame_id_p): Don't check for outer_frame_id.
2618
2619 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2620
2621 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2622 regnum/frame in value. Call allocate_value_lazy.
2623 * frame.c (frame_unwind_register_value): Use
2624 val_print_not_saved.
2625
2626 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2627
2628 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2629
2630 2020-08-29 Pedro Alves <pedro@palves.net>
2631
2632 * progspace.c (print_program_space): Use all_inferiors. Switch to
2633 the inferior before calling target_pid_to_str.
2634
2635 2020-08-28 Tom Tromey <tom@tromey.com>
2636
2637 * xcoffread.c (xcoff_end_psymtab): Update comment.
2638 * dbxread.c (dbx_end_psymtab): Update comment.
2639
2640 2020-08-28 Tom de Vries <tdevries@suse.de>
2641
2642 PR breakpoint/26544
2643 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2644 event_location.
2645 (create_breakpoint): Same.
2646 (base_breakpoint_decode_location): Same.
2647 (bkpt_create_sals_from_location): Same.
2648 (bkpt_decode_location): Same.
2649 (bkpt_probe_create_sals_from_location): Same.
2650 (bkpt_probe_decode_location): Same.
2651 (tracepoint_create_sals_from_location): Same.
2652 (tracepoint_decode_location): Same.
2653 (tracepoint_probe_decode_location): Same.
2654 (strace_marker_create_sals_from_location): Same.
2655 (strace_marker_decode_location): Same.
2656 (create_sals_from_location_default): Same.
2657 (decode_location_default): Same.
2658 * breakpoint.h (struct breakpoint_ops): Same.
2659 (create_breakpoint): Same.
2660 * linespec.h (decode_line_full): Same.
2661 * linespec.c (decode_line_full): Same. Throw error if
2662 result.size () == 0.
2663
2664 2020-08-27 Pedro Alves <pedro@palves.net>
2665
2666 PR gdb/26524
2667 * breakpoint.c (until_break_fsm) <location_breakpoint,
2668 caller_breakpoint>: Delete fields.
2669 <breakpoints>: New field.
2670 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2671 two individual breakpoints.
2672 (until_break_fsm::should_stop): Loop over breakpoints in the
2673 breakpoint vector.
2674 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2675 vector.
2676 (until_break_command): Handle location expanding into multiple
2677 sals.
2678
2679 2020-08-27 Pedro Alves <pedro@palves.net>
2680
2681 PR gdb/26523
2682 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2683 bp_until breakpoints user-specified locations. Update intro
2684 comment.
2685
2686 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2689 gdb_bfd_sections): New.
2690 * maint.c (print_bfd_section_info): Change param type to
2691 maint_print_section_data.
2692 (print_objfile_section_info): Likewise.
2693 (print_bfd_section_info_maybe_relocated): Likewise.
2694 (maintenance_info_sections): Use gdb_bfd_sections.
2695
2696 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2697
2698 * MAINTAINERS: Add ARC target and maintainer.
2699
2700 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2701
2702 * configure.tgt: ARC support for GNU/Linux.
2703 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2704 * arc-linux-tdep.c: New file.
2705 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2706 * arc-tdep.c (arc_write_pc): Use it.
2707
2708 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2709
2710 * arc-tdep.c (arc_check_for_hardware_loop): New.
2711 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2712
2713 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2714
2715 * arc-tdep.h: Include "gdbarch.h".
2716
2717 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2718
2719 * arch/arc.h
2720 (arc_gdbarch_features): New class to stir the selection of target XML.
2721 (arc_create_target_description): Use FEATURES to choose XML target.
2722 (arc_lookup_target_description): Use arc_create_target_description
2723 to create _new_ target descriptions or return the already created
2724 ones if the FEATURES is the same.
2725 * arch/arc.c: Implementation of prototypes described above.
2726 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2727 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2728 * arc-tdep.c (*_feature_name): Make feature names consistent.
2729 (arc_register_feature): A new struct to hold information about
2730 registers of a particular target/feature.
2731 (arc_check_tdesc_feature): Check if XML provides registers in
2732 compliance with ARC_REGISTER_FEATURE structs.
2733 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2734 (determine_*_reg_feature_set): Which feature name to look for.
2735 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2736 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2737 to expected ISA enums to be used in arc_gdbarch_features structs.
2738 * features/Makefile (FEATURE_XMLFILES): Add new files.
2739 * gdb/features/arc/v1-aux.c: New file.
2740 * gdb/features/arc/v1-aux.xml: Likewise.
2741 * gdb/features/arc/v1-core.c: Likewise.
2742 * gdb/features/arc/v1-core.xml: Likewise.
2743 * gdb/features/arc/v2-aux.c: Likewise.
2744 * gdb/features/arc/v2-aux.xml: Likewise.
2745 * gdb/features/arc/v2-core.c: Likewise.
2746 * gdb/features/arc/v2-core.xml: Likewise.
2747 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2748
2749 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2750 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 PR m2/26372
2753 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2754 an assert. Remove single element array indexing pattern as the
2755 MULTI_SUBSCRIPT support will handle this case too.
2756
2757 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 * value.h (valprint_check_validity): Move declaration from
2760 here...
2761 * valprint.h (valprint_check_validity): ... to here.
2762
2763 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * debug.h: New file.
2766 * debug.c (debug_prefixed_vprintf): New function.
2767 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2768 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2769
2770 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * infrun.h (infrun_debug_printf_1): New function declaration.
2773 (infrun_debug_printf): New macro.
2774 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2775 throughout.
2776 (infrun_debug_printf): New function.
2777 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2778 (handle_jit_event): Likewise.
2779
2780 2020-08-21 Mark Wielaard <mark@klomp.org>
2781
2782 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2783
2784 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * frame.c (enum class frame_id_status): New.
2787 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2788 (fprintf_frame): Update.
2789 (compute_frame_id): Set frame id status to "computing" on entry.
2790 Set it back to "not_computed" on failure and to "computed" on
2791 success.
2792 (get_frame_id): Assert the frame id is not being computed.
2793 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2794 (create_new_frame): Likewise.
2795 (frame_cleanup_after_sniffer): Update assert.
2796
2797 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 * regcache.c (pid_ptid_regcache_map): New type.
2800 (target_ptid_regcache_map): Remove.
2801 (target_pid_ptid_regcache_map): New type.
2802 (regcaches): Change type to target_pid_ptid_regcache_map.
2803 (get_thread_arch_aspace_regcache): Update.
2804 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2805 case.
2806 (regcaches_size): Update.
2807 (regcache_count): Update.
2808 (registers_changed_ptid_target_pid_test): New.
2809 (_initialize_regcache): Register new test.
2810
2811 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2812
2813 * regcache.c (regcache_count): New.
2814 (struct regcache_test_data): New.
2815 (regcache_test_data_up): New.
2816 (populate_regcaches_for_test): New.
2817 (regcaches_test): Remove.
2818 (get_thread_arch_aspace_regcache_test): New.
2819 (registers_changed_ptid_all_test): New.
2820 (registers_changed_ptid_target_test): New.
2821 (registers_changed_ptid_target_ptid_test): New.
2822 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2823 (_initialize_regcache): Register new tests.
2824
2825 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2826
2827 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2828 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2829 gdbarch and aspace parameter. Use current inferior's aspace.
2830 Validate regcache's arch value.
2831 (regcaches_test): Update.
2832
2833 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2834
2835 * regcache.c (regcaches_test): Call registers_changed.
2836
2837 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2838
2839 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2840
2841 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2842
2843 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2844 to find the end of prologue for flang compiled binaries.
2845 * arm-tdep.c (arm_skip_prologue): Likewise.
2846 * i386-tdep.c (i386_skip_prologue): Likewise.
2847 * producer.c (producer_is_llvm): New function.
2848 (producer_parsing_tests): Added new tests for clang/flang.
2849 * producer.h (producer_is_llvm): New declaration.
2850
2851 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * linux-nat.c (linux_nat_debug_printf): New function.
2854 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2855
2856 2020-08-18 Aaron Merey <amerey@redhat.com>
2857
2858 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2859 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2860 (CLIBS): Add DEBUGINFOD_LIBS.
2861
2862 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2863
2864 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2865 'gdbarch_num_regs'.
2866
2867 2020-08-17 Tom Tromey <tromey@adacore.com>
2868
2869 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2870 ada_get_decoded_value returns NULL.
2871
2872 2020-08-17 Tom Tromey <tromey@adacore.com>
2873
2874 * python/py-inferior.c (infpy_search_memory): Use
2875 gdb_py_object_from_ulongest.
2876 * python/py-infevents.c (create_inferior_call_event_object)
2877 (create_memory_changed_event_object): Use
2878 gdb_py_object_from_ulongest.
2879 * python/py-linetable.c (ltpy_entry_get_pc): Use
2880 gdb_py_object_from_ulongest.
2881
2882 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2883
2884 * loc.c (class symbol_needs_eval_context): Fix indentation.
2885
2886 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2889 bool.
2890
2891 2020-08-17 Tom de Vries <tdevries@suse.de>
2892
2893 PR gdb/26393
2894 * gdbtypes.c (dump_dynamic_prop): New function.
2895 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2896
2897 2020-08-15 Tom de Vries <tdevries@suse.de>
2898
2899 PR backtrace/26390
2900 * stack.c (print_frame_args): Temporarily set the selected
2901 frame to FRAME while printing the frame's arguments.
2902
2903 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2904
2905 PR breakpoints/26385
2906 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2907 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2908
2909 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2910
2911 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2912 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2913 and >= to check return value instead of == -1 and != -1.
2914
2915 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * utils.h (class gdb_argv) <as_array_view>: New method.
2918 * utils.c (gdb_argv_as_array_view_test): New.
2919 (_initialize_utils): Register selftest.
2920 * maint.c (maintenance_selftest): Use the new method.
2921
2922 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2923
2924 * target.h (supports_dumpcore, dumpcore): New
2925 function declarations.
2926 * target.c (supports_dumpcore, dumpcore): New
2927 functions.
2928 * target-delegates.c: Rebuild.
2929 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2930 and target_dumpcore ().
2931
2932 2020-08-13 Aaron Merey <amerey@redhat.com>
2933
2934 * debuginfod-support.c: Replace global variables with user_data.
2935
2936 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * maint.c (maintenance_selftest): Split args and pass array_view
2939 to run_tests.
2940
2941 2020-08-12 Luis Machado <luis.machado@linaro.org>
2942
2943 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2944 type's length.
2945 Use %s and pulongest to print the length.
2946
2947 2020-08-12 Pedro Alves <palves@redhat.com>
2948
2949 * NEWS: Move "Multi-target debugging support" item to the
2950 "Changes since GDB 9" section.
2951
2952 2020-08-12 Pedro Alves <palves@redhat.com>
2953
2954 PR gdb/26336
2955 * progspace.c (program_space::remove_objfile): Invalidate the
2956 frame cache.
2957
2958 2020-08-11 Tom de Vries <tdevries@suse.de>
2959
2960 * MAINTAINERS: Mark ms1 as deleted.
2961
2962 2020-08-10 Luis Machado <luis.machado@linaro.org>
2963
2964 PR gdb/26310
2965
2966 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2967 act accordingly.
2968 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2969 movz/str/stur/stp skipping behavior.
2970
2971 2020-08-10 Luis Machado <luis.machado@linaro.org>
2972
2973 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2974 struct user_sve_header instead of struct sve_context.
2975
2976 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2977
2978 * read.h (dwarf2_fetch_die_loc_sect_off,
2979 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2980 `void *` parameter with function_view.
2981 * read.c (dwarf2_fetch_die_loc_sect_off,
2982 dwarf2_fetch_die_loc_cu_off): Likewise.
2983 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2984 (per_cu_dwarf_call): Adjust.
2985 (get_frame_address_in_block_wrapper): Remove.
2986 (indirect_synthetic_pointer): Adjust.
2987 (get_ax_pc): Remove.
2988 (dwarf2_compile_expr_to_ax): Adjust.
2989
2990 2020-08-08 Tom de Vries <tdevries@suse.de>
2991
2992 PR build/26344
2993 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2994 constructor.
2995 * regcache.c (get_thread_arch_aspace_regcache): Same.
2996
2997 2020-08-07 Tom Tromey <tromey@adacore.com>
2998
2999 * ravenscar-thread.c
3000 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3001 New method.
3002 (ravenscar_thread_target::wait): Check
3003 runtime_initialized.
3004 (ravenscar_thread_target::prepare_to_store)
3005 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3006 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3007 (ravenscar_thread_target::stopped_by_watchpoint)
3008 (ravenscar_thread_target::stopped_data_address)
3009 (ravenscar_thread_target::core_of_thread): Use
3010 scoped_restore_current_thread and
3011 set_base_thread_from_ravenscar_task.
3012
3013 2020-08-07 Tom Tromey <tromey@adacore.com>
3014
3015 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3016
3017 2020-08-07 Tom Tromey <tromey@adacore.com>
3018
3019 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3020 update_inferior_ptid before update_thread_list.
3021 (temporarily_change_regcache_ptid): New class.
3022 (ravenscar_thread_target::fetch_registers)
3023 (ravenscar_thread_target::store_registers)
3024 (ravenscar_thread_target::prepare_to_store): Use base thread when
3025 forwarding operation.
3026
3027 2020-08-07 Tom Tromey <tromey@adacore.com>
3028
3029 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3030 "is_pid" case.
3031
3032 2020-08-07 Tom Tromey <tromey@adacore.com>
3033
3034 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3035 New methods.
3036 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3037 first.
3038 (ravenscar_thread_target::add_thread): Rename from
3039 ravenscar_add_thread.
3040 (ravenscar_thread_target::update_thread_list): Use a lambda.
3041 (ravenscar_thread_target::xfer_partial): New method.
3042
3043 2020-08-07 Tom Tromey <tromey@adacore.com>
3044
3045 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3046 gdb::function_view.
3047 (iterate_over_live_ada_tasks): Change type of argument.
3048 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3049 of argument.
3050
3051 2020-08-07 Tom Tromey <tromey@adacore.com>
3052
3053 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3054 Remove.
3055 (ravenscar_thread_target::extra_thread_info): Remove.
3056 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3057 defer to target beneath for non-Ravenscar threads.
3058
3059 2020-08-07 Tom Tromey <tromey@adacore.com>
3060
3061 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3062 get_base_thread_from_ravenscar_task>: Now methods.
3063 <m_cpu_map>: New member.
3064 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3065 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3066 (ravenscar_thread_target::task_is_currently_active): Update.
3067 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3068 Now a method.
3069 (ravenscar_thread_target::add_active_thread): Put initial thread
3070 into the m_cpu_map.
3071
3072 2020-08-07 Tom Tromey <tromey@adacore.com>
3073
3074 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3075 event_ptid.
3076
3077 2020-08-07 Tom Tromey <tromey@adacore.com>
3078
3079 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3080 runtime_initialized.
3081
3082 2020-08-07 Tom Tromey <tromey@adacore.com>
3083
3084 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3085 add_active_thread.
3086 (ravenscar_thread_target::add_active_thread): Now public.
3087 (ravenscar_inferior_created): Call add_active_thread after pushing
3088 the target.
3089
3090 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3091
3092 * regcache.c (ptid_regcache_map): New type.
3093 (target_ptid_regcache_map): New type.
3094 (regcaches): Change type to target_ptid_regcache_map.
3095 (get_thread_arch_aspace_regcache): Update to regcaches' new
3096 type.
3097 (regcache_thread_ptid_changed): Likewise.
3098 (registers_changed_ptid): Likewise.
3099 (regcaches_size): Likewise.
3100 (regcaches_test): Update.
3101 (regcache_thread_ptid_changed): Update.
3102 * regcache.h (regcache_up): New type.
3103 * gdbsupport/ptid.h (hash_ptid): New struct.
3104
3105 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3106
3107 * observable.h (thread_ptid_changed): Add parameter
3108 `process_stratum_target *`.
3109 * infrun.c (infrun_thread_ptid_changed): Add parameter
3110 `process_stratum_target *` and use it.
3111 (selftests): New namespace.
3112 (infrun_thread_ptid_changed): New function.
3113 (_initialize_infrun): Register selftest.
3114 * regcache.c (regcache_thread_ptid_changed): Add parameter
3115 `process_stratum_target *` and use it.
3116 (regcache_thread_ptid_changed): New function.
3117 (_initialize_regcache): Register selftest.
3118 * thread.c (thread_change_ptid): Pass target to
3119 thread_ptid_changed observable.
3120
3121 2020-08-06 Caroline Tice <cmtice@google.com>
3122
3123 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3124 (struct dwp_sections): Update field comments. Add loclists and
3125 rnglists fields.
3126 (struct virtual_v2_dwo_sections): Rename struct to
3127 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3128 size & offset fields for loclists and rnglists.
3129 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3130 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3131 skipping dummy type units.
3132 (create_dwp_hash_table): Update the large comment above the function to
3133 discuss Version 5 DWP files as well, with references. Update all the
3134 version checks in the function to check for version 5 as well. Add new
3135 section at the end to create dwp hash table for version 5.
3136 (create_dwp_v2_section): Rename function to
3137 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3138 Add V5 to error message text.
3139 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3140 into calls to create_dwp_v2_or_v5_section.
3141 (create_dwo_unit_in_dwp_v5): New function.
3142 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3143 check for version2; add else clause to handle version 5.
3144 (open_and_init_dwo_file): Add code to check dwarf version & only call
3145 create_debug_types_hash_table (with sections.types) if version is not 5;
3146 else call create_debug_type_hash_table, with sections.info.
3147 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3148 version 5.
3149 (dwarf2_locate_v5_dwp_sections): New function.
3150 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3151 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3152
3153 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * regcache.h (class regcache): Remove friend
3156 registers_changed_ptid.
3157 <regcache_thread_ptid_changed>: Remove.
3158 <regcaches>: Remove.
3159 * regcache.c (regcache::regcaches): Rename to...
3160 (regcaches): ... this. Make static.
3161 (get_thread_arch_aspace_regcache): Update.
3162 (regcache::regcache_thread_ptid_changed): Rename to...
3163 (regcache_thread_ptid_changed): ... this. Update.
3164 (class regcache_access): Remove.
3165 (regcaches_test): Update.
3166 (_initialize_regcache): Update.
3167 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3168 <forward_list>.
3169
3170 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * regcache.h (class regcache) <current_regcache>: Rename to...
3173 <regcaches>: ... this. Move doc here.
3174 * regcache.c (regcache::current_regcache) Rename to...
3175 (regcache::regcaches): ... this. Move doc to header.
3176 (get_thread_arch_aspace_regcache): Update.
3177 (regcache::regcache_thread_ptid_changed): Update.
3178 (registers_changed_ptid): Update.
3179 (class regcache_access) <current_regcache_size>: Rename to...
3180 <regcaches_size>: ... this.
3181 (current_regcache_test): Rename to...
3182 (regcaches_test): ... this.
3183 (_initialize_regcache): Update.
3184
3185 2020-08-06 Victor Collod <vcollod@nvidia.com>
3186
3187 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3188
3189 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3190
3191 * corelow.c (core_target::build_file_mappings): Don't output
3192 null pathname in warning.
3193
3194 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3197 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3198 gdb.dwarf2/dw2-single-line-discriminators.exp,
3199 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3200
3201 2020-08-05 Tom Tromey <tromey@adacore.com>
3202
3203 PR rust/26197:
3204 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3205 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3206 Fix off-by-one and type size errors in ordinary case.
3207
3208 2020-08-05 Tom de Vries <tdevries@suse.de>
3209
3210 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3211 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3212
3213 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3214
3215 * frame.h (frame_id_p): Return bool.
3216 (frame_id_artificial_p): Return bool.
3217 (frame_id_eq): Return bool.
3218 (has_stack_frames): Return bool.
3219 (get_selected_frame): Fix typo in comment.
3220 (get_frame_pc_if_available): Return bool.
3221 (get_frame_address_in_block_if_available): Return bool.
3222 (get_frame_func_if_available): Return bool.
3223 (read_frame_register_unsigned): Return bool.
3224 (get_frame_register_bytes): Return bool.
3225 (safe_frame_unwind_memory): Return bool.
3226 (deprecated_frame_register_read): Return bool.
3227 (frame_unwinder_is): Return bool.
3228 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3229 bool.
3230 <this_id::p>: Likewise.
3231 <prev_p>: Likewise.
3232 (frame_stash_add): Return bool.
3233 (get_frame_id): Use bool.
3234 (frame_id_build_special) Use bool.
3235 (frame_id_build_unavailable_stack): Use bool.
3236 (frame_id_build): Use bool.
3237 (frame_id_p): Return bool, use true/false instead of 1/0.
3238 (frame_id_artificial_p): Likewise.
3239 (frame_id_eq): Likewise.
3240 (frame_id_inner): Likewise.
3241 (get_frame_func_if_available): Likewise.
3242 (read_frame_register_unsigned): Likewise.
3243 (deprecated_frame_register_read): Likewise.
3244 (get_frame_register_bytes): Likewise.
3245 (has_stack_frames): Likewise.
3246 (inside_main_func): Likewise.
3247 (inside_entry_func): Likewise.
3248 (get_frame_pc_if_available): Likewise.
3249 (get_frame_address_in_block_if_available): Likewise.
3250 (frame_unwinder_is): Likewise.
3251 (safe_frame_unwind_memory): Likewise.
3252 (frame_unwind_arch): Likewise.
3253
3254 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3257 type to cached_copy_status.
3258 (fprintf_frame): Adjust.
3259 (get_frame_func_if_available): Adjust.
3260 (frame_cleanup_after_sniffer): Adjust.
3261
3262 2020-08-04 Mark Wielaard <mark@klomp.org>
3263
3264 * MAINTAINERS (Write After Approval): Update email address.
3265
3266 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3267
3268 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3269 dynamic_prop::const_val.
3270
3271 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3272
3273 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3274 dynamic_prop::kind.
3275
3276 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3279
3280 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3281
3282 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3283
3284 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3285 Jose E. Marchesi <jose.marchesi@oracle.com>
3286
3287 * configure.tgt: Add entry for bpf-*-*.
3288 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3289 (ALLDEPFILES): Add bpf-tdep.c.
3290 * bpf-tdep.c: New file.
3291 * MAINTAINERS: Add bpf target and maintainer.
3292 * NEWS: Mention the support for the new target.
3293
3294 2020-08-04 Tom de Vries <tdevries@suse.de>
3295
3296 PR symtab/23270
3297 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3298 Error.
3299
3300 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3301
3302 * syscalls/freebsd.xml: Regenerate.
3303
3304 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3305
3306 * syscalls/update-freebsd.sh: Fix usage and year range.
3307
3308 2020-08-03 Tom de Vries <tdevries@suse.de>
3309
3310 PR symtab/26333
3311 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3312 DW_LNE_lo_user/DW_LNE_hi_user range.
3313
3314 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3315
3316 PR ada/26318
3317 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3318 kind.
3319
3320 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321
3322 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3323
3324 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3325
3326 * breakpoint.c (set_breakpoint_condition): Update the condition
3327 expressions after checking that the input condition string parses
3328 successfully and does not contain junk at the end.
3329
3330 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331
3332 * breakpoint.c (set_breakpoint_condition): Update the
3333 condition string after parsing the new condition successfully.
3334
3335 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3336
3337 * proc-api.c (_STRUCTURED_PROC): Don't define.
3338 * proc-events.c: Likewise.
3339 * proc-flags.c: Likewise.
3340 * proc-why.c: Likewise.
3341 * procfs.c: Likewise.
3342
3343 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3344 * configure, config.in: Regenerate.
3345
3346 2020-07-30 Tom de Vries <tdevries@suse.de>
3347
3348 PR build/26320
3349 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3350 m_red/m_green/m_blue in a union.
3351
3352 2020-07-29 Tom de Vries <tdevries@suse.de>
3353
3354 PR tdep/26280
3355 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3356
3357 2020-07-28 Tom Tromey <tromey@adacore.com>
3358
3359 PR symtab/26270:
3360 * symtab.h (find_pc_partial_function_sym): Declare.
3361 * cli/cli-cmds.c (disassemble_command): Use
3362 find_pc_partial_function_sym. Check asm_demangle.
3363 * blockframe.c (cache_pc_function_sym): New global.
3364 (cache_pc_function_name): Remove.
3365 (clear_pc_function_cache): Update.
3366 (find_pc_partial_function_sym): New function, from
3367 find_pc_partial_function.
3368 (find_pc_partial_function): Rewrite using
3369 find_pc_partial_function_sym.
3370
3371 2020-07-28 Tom Tromey <tromey@adacore.com>
3372
3373 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3374 help. Add usage.
3375
3376 2020-07-28 Tom Tromey <tromey@adacore.com>
3377
3378 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3379 <DW_OP_GNU_variable_value>: Cast to address type.
3380
3381 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3382
3383 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3384 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3385 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3386 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3387 (nbsd_get_siginfo_type): New.
3388 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3389 (_initialize_nbsd_tdep): New.
3390
3391 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3392
3393 PR binutils/26301
3394 * configure: Regenerated.
3395
3396 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3397
3398 PR binutils/26301
3399 * configure: Regenerated.
3400
3401 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3402
3403 * python/py-frame.c: Remove 'user-regs.h' include.
3404 (frapy_read_register): Rewrite to make use of
3405 gdbpy_parse_register_id.
3406 * python/py-registers.c (gdbpy_parse_register_id): New function,
3407 moved here from python/py-unwind.c. Updated the return type, and
3408 also accepts register descriptor objects.
3409 * python/py-unwind.c: Remove 'user-regs.h' include.
3410 (pyuw_parse_register_id): Moved to python/py-registers.c.
3411 (unwind_infopy_add_saved_register): Update to use
3412 gdbpy_parse_register_id.
3413 (pending_framepy_read_register): Likewise.
3414 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3415
3416 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3417
3418 * python/py-registers.c: Add 'user-regs.h' include.
3419 (register_descriptor_iter_find): New function.
3420 (register_descriptor_iterator_object_methods): New static global
3421 methods array.
3422 (register_descriptor_iterator_object_type): Add pointer to methods
3423 array.
3424
3425 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3426
3427 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3428 for all architectures on FreeBSD 11.3 and later.
3429
3430 2020-07-27 Tom Tromey <tromey@adacore.com>
3431
3432 * gcore.h (load_corefile): Don't declare.
3433
3434 2020-07-27 Tom de Vries <tdevries@suse.de>
3435
3436 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3437 * config.in: Regenerate.
3438 * configure: Regenerate.
3439
3440 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3441
3442 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3443 ws2tcpip.h. When checking whether socklen_t type is defined, use
3444 ws2tcpip.h if it is available and sys/socket.h isn't.
3445 * configure: Regenerate.
3446 * config.in: Regenerate.
3447
3448 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 PR fortran/23051
3451 PR fortran/26139
3452 * valops.c (value_ind): Pass address to
3453 readjust_indirect_value_type.
3454 * value.c (readjust_indirect_value_type): Make parameter
3455 non-const, and add extra address parameter. Resolve original type
3456 before using it.
3457 * value.h (readjust_indirect_value_type): Update function
3458 signature and comment.
3459
3460 2020-07-25 Tom de Vries <tdevries@suse.de>
3461
3462 PR symtab/26243
3463 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3464 entries.
3465
3466 2020-07-24 Aaron Merey <amerey@redhat.com>
3467
3468 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3469 * configure: Rebuild.
3470
3471 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3472
3473 PR corefiles/26294
3474 * corelow.c (_initialize_corelow): Add period to help text
3475 for "maintenance print core-file-backed-mappings".
3476
3477 2020-07-23 Pedro Alves <pedro@palves.net>
3478
3479 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3480 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3481 meanwhile.
3482 * frame.c (frame_cache_generation, get_frame_cache_generation):
3483 New.
3484 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3485 (get_prev_frame_if_no_cycle): On exception, don't touch
3486 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3487 * frame.h (get_frame_cache_generation): Declare.
3488
3489 2020-07-23 Tom de Vries <tdevries@suse.de>
3490
3491 PR tui/26282
3492 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3493 New default constructor.
3494
3495 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3498 exclude non-statement entries.
3499
3500 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3501
3502 * NEWS (New commands): Mention new command
3503 "maintenance print core-file-backed-mappings".
3504
3505 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3506
3507 * corelow.c (gdbcmd.h): Include.
3508 (core_target::info_proc_mappings): New method.
3509 (get_current_core_target): New function.
3510 (maintenance_print_core_file_backed_mappings): New function.
3511 (_initialize_corelow): Add core-file-backed-mappings to
3512 "maint print" commands.
3513
3514 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3515
3516 * linux-tdep.c (dump_note_entry_p): New function.
3517 (linux_dump_mapping_p_ftype): New typedef.
3518 (linux_find_memory_regions_full): Add new parameter,
3519 should_dump_mapping_p.
3520 (linux_find_memory_regions): Adjust call to
3521 linux_find_memory_regions_full.
3522 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3523 call to linux_find_memory_regions_full.
3524
3525 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3526
3527 * corelow.c (solist.h, unordered_map): Include.
3528 (class core_target): Add field m_core_file_mappings and
3529 method build_file_mappings.
3530 (core_target::core_target): Call build_file_mappings.
3531 (core_target::~core_target): Free memory associated with
3532 m_core_file_mappings.
3533 (core_target::build_file_mappings): New method.
3534 (core_target::xfer_partial): Use m_core_file_mappings
3535 for memory transfers.
3536 * linux-tdep.c (linux_read_core_file_mappings): New
3537 function.
3538 (linux_core_info_proc_mappings): Rewrite to use
3539 linux_read_core_file_mappings.
3540 (linux_init_abi): Register linux_read_core_file_mappings.
3541
3542 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3543
3544 * arch-utils.c (default_read_core_file_mappings): New function.
3545 * arch-utils.c (default_read_core_file_mappings): Declare.
3546 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3547 * gdbarch.h, gdbarch.c: Regenerate.
3548
3549 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3550
3551 PR corefiles/25631
3552 * corelow.c (core_target:xfer_partial): Revise
3553 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3554 case after first checking the stratum beneath the core
3555 target.
3556 (has_all_memory): Return true.
3557 * target.c (raw_memory_xfer_partial): Revise comment
3558 regarding use of has_all_memory.
3559
3560 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3561
3562 * exec.h (section_table_xfer_memory): Revise declaration,
3563 replacing section name parameter with an optional callback
3564 predicate.
3565 * exec.c (section_table_xfer_memory): Likewise.
3566 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3567 of section_table_xfer_memory.
3568
3569 2020-07-22 Tom Tromey <tromey@adacore.com>
3570
3571 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3572 lookup_symbol_search_name.
3573
3574 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3575
3576 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3577 redundant local variable.
3578 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3579 reference, not pointer, update code accordingly.
3580
3581 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3582 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3583
3584 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3585 * jit.c (jit_breakpoint_re_set_internal): Use the
3586 `skip_jit_symbol_lookup` field.
3587
3588 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3589 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3590
3591 * jit.c (jit_read_descriptor): Define the descriptor address once,
3592 use twice.
3593 (jit_breakpoint_deleted): Move the declaration of the loop variable
3594 `iter` into the loop header.
3595 (jit_breakpoint_re_set_internal): Move the declaration of the local
3596 variable `objf_data` to the first point of definition.
3597 (jit_event_handler): Move the declaration of local variables
3598 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3599 Rename `objf` to `jited`.
3600
3601 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3602
3603 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3604 Remove.
3605 * jit.c (get_jiter_objfile_data): Update.
3606
3607 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3608 Simon Marchi <simon.marchi@polymtl.ca>
3609
3610 * jit.c (struct jit_program_space_data): Remove.
3611 (jit_program_space_key): Remove.
3612 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3613 stuff.
3614 (get_jit_program_space_data): Remove.
3615 (jit_breakpoint_deleted): Iterate on all of the program space's
3616 objfiles.
3617 (jit_inferior_init): Likewise.
3618 (jit_breakpoint_re_set_internal): Likewise. Also change return
3619 type to void.
3620 (jit_breakpoint_re_set): Pass current_program_space to
3621 jit_breakpoint_re_set_internal.
3622
3623 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3624
3625 * jit.h (struct jiter_objfile_data) <cached_code_address,
3626 jit_breakpoint>: Move to here from ...
3627 * jit.c (jit_program_space_data): ... here.
3628 (jiter_objfile_data::~jiter_objfile_data): Update.
3629 (jit_breakpoint_deleted): Update.
3630 (jit_breakpoint_re_set_internal): Update.
3631
3632 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3633
3634 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3635 checks.
3636 (jit_read_descriptor): Remove NULL check.
3637 (jit_event_handler): Add an assertion.
3638
3639 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3640
3641 * jit.h (struct jit_objfile_data): Split into...
3642 (struct jiter_objfile_data): ... this ...
3643 (struct jited_objfile_data): ... and this.
3644 * objfiles.h (struct objfile) <jit_data>: Remove.
3645 <jiter_data, jited_data>: New fields.
3646 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3647 (jiter_objfile_data::~jiter_objfile_data): ... this.
3648 (get_jit_objfile_data): Rename to ...
3649 (get_jiter_objfile_data): ... this.
3650 (add_objfile_entry): Update.
3651 (jit_read_descriptor): Use get_jiter_objfile_data.
3652 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3653 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3654 (jit_inferior_exit_hook): Use objfile's jited_data field.
3655
3656 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3657
3658 * jit.h: Forward-declare `struct minimal_symbol`.
3659 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3660 constructor, destructor, and an objfile* field.
3661 * jit.c (jit_objfile_data): Remove.
3662 (struct jit_objfile_data): Migrate from here to jit.h.
3663 (jit_objfile_data::~jit_objfile_data): New destructor
3664 implementation with code moved from free_objfile_data.
3665 (free_objfile_data): Delete.
3666 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3667 (jit_find_objf_with_entry_addr): Ditto.
3668 (jit_inferior_exit_hook): Ditto.
3669 (_initialize_jit): Remove the call to
3670 register_objfile_data_with_cleanup.
3671 * objfiles.h (struct objfile) <jit_data>: New field.
3672
3673 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3674
3675 * jit.h: Forward-declare `struct objfile`.
3676 (jit_event_handler): Add a second parameter, the JITer objfile.
3677 * jit.c (jit_read_descriptor): Change the signature to take the
3678 JITer objfile as an argument instead of the jit_program_space_data.
3679 (jit_inferior_init): Update the call to jit_read_descriptor.
3680 (jit_event_handler): Use the new JITer objfile argument when calling
3681 jit_read_descriptor.
3682 * breakpoint.c (handle_jit_event): Update the call to
3683 jit_event_handler to pass the JITer objfile.
3684
3685 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3686
3687 * gdbarch.c: Regenerate.
3688 * gdbarch.h: Regenerate.
3689 * gdbarch.sh (handle_segmentation_fault): Remove method.
3690 * infrun.c (handle_segmentation_fault): Remove.
3691 (print_signal_received_reason): Remove call to
3692 handle_segmentation_fault.
3693
3694 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3695
3696 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3697 Rename to sparc64_linux_report_signal_info and add siggnal
3698 argument.
3699 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3700 instead of sparc64_linux_handle_segmentation_fault.
3701
3702 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3703
3704 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3705 i386_linux_report_signal_info instead of
3706 i386_linux_handle_segmentation_fault.
3707 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3708 to i386_linux_report_signal_info and add siggnal argument.
3709 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3710 of i386_linux_handle_segmentation_fault.
3711 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3712 to i386_linux_report_signal_info and add siggnal argument.
3713
3714 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3715
3716 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3717 hook if present.
3718
3719 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3720
3721 * gdbarch.c: Regenerate.
3722 * gdbarch.h: Regenerate.
3723 * gdbarch.sh (report_signal_info): New method.
3724 * infrun.c (print_signal_received_reason): Invoke gdbarch
3725 report_signal_info hook if present.
3726
3727 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * python/py-registers.c : Add 'unordered_map' include.
3730 (gdbpy_new_reggroup): Renamed to...
3731 (gdbpy_get_reggroup): ...this. Update to only create register
3732 group descriptors when needed.
3733 (gdbpy_reggroup_iter_next): Update.
3734
3735 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3736
3737 * python/py-registers.c (gdbpy_register_object_data): New static
3738 global.
3739 (gdbpy_register_object_data_init): New function.
3740 (gdbpy_new_register_descriptor): Renamed to...
3741 (gdbpy_get_register_descriptor): ...this, and update to reuse
3742 existing register descriptors where possible.
3743 (gdbpy_register_descriptor_iter_next): Update.
3744 (gdbpy_initialize_registers): Register new gdbarch data.
3745
3746 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * linux-nat.c (stopped_pids): Make static.
3749
3750 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3751
3752 PR ada/26235
3753 * gdbtypes.c (ada_discrete_type_low_bound,
3754 ada_discrete_type_high_bound): Handle undefined bounds.
3755
3756 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3757
3758 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3759 declaration.
3760 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3761 function.
3762
3763 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3764
3765 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3766 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3767 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3768 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3769 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3770 method.
3771
3772 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3773
3774 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3775 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3776 which are deprecated in Guile 3.0.
3777 * configure.ac (try_guile_versions): Add "guile-3.0".
3778 * configure (try_guile_versions): Regenerate.
3779 * NEWS: Update entry.
3780
3781 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3782 Doug Evans <dje@google.com>
3783
3784 PR gdb/21104
3785 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3786 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3787 USING_GUILE_BEFORE_2_2.
3788 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3789 Change type to 'scm_t_port_type *'.
3790 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3791 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3792 parameter and honor it. Update callers.
3793 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3794 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3795 functions.
3796 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3797 USING_GUILE_BEFORE_2_2.
3798 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3799 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3800 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3801 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3802 and 'SCM_PORT_TYPE'.
3803 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3804 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3805 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3806 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3807 [!USING_GUILE_BEFORE_2_2]: New functions.
3808 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3809 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3810 'gdbscm_memory_port_read'.
3811 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3812 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3813 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3814 function.
3815 (ioscm_init_memory_port): Remove.
3816 (ioscm_init_memory_port_stream): New function
3817 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3818 function.
3819 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3820 Return scm_from_uint (0).
3821 (gdbscm_set_memory_port_read_buffer_size_x)
3822 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3823 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3824 Return scm_from_uint (0).
3825 (gdbscm_set_memory_port_write_buffer_size_x)
3826 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3827 * configure.ac (try_guile_versions): Add "guile-2.2".
3828 * configure: Regenerate.
3829 * NEWS: Add entry.
3830
3831 2020-07-18 Tom Tromey <tom@tromey.com>
3832
3833 * linux-nat.c (linux_multi_process): Remove.
3834 (linux_nat_target::supports_multi_process): Return true.
3835
3836 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3839 (riscv_lookup_target_description): Return pointer out of
3840 unique_ptr.
3841 * target-descriptions.c (allocate_target_description): Add
3842 comment.
3843 (target_desc_deleter::operator()): Likewise.
3844 * target-descriptions.h (struct target_desc_deleter): Moved to
3845 gdbsupport/tdesc.h.
3846 (target_desc_up): Likewise.
3847
3848 2020-07-17 Tom Tromey <tromey@adacore.com>
3849
3850 * linux-nat.c (linux_nat_target::supports_non_stop)
3851 (linux_nat_target::always_non_stop_p): Use "true".
3852 (linux_nat_target::supports_disable_randomization): Use "true" and
3853 "false".
3854
3855 2020-07-16 Caroline Tice <cmtice@google.com>
3856
3857 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3858 (RNGLIST_HEADER_SIZE64): New constant definition.
3859 (struct dwop_section_names): Add rnglists_dwo.
3860 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3861 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3862 (struct dwo_sections): Add rnglists field.
3863 (read_attribut_reprocess): Add tag parameter.
3864 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3865 (cu_debug_rnglists_section): New function (decl & definition).
3866 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3867 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3868 die whose range is being checked; get rnglist section from
3869 cu_debug_rnglists_section, to get from either objfile or dwo file as
3870 appropriate. Add cases for DW_RLE_base_addressx,
3871 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3872 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3873 test inside if-condition and updating complaint message.
3874 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3875 dwarf2_rnglists_process.
3876 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3877 dwarf2_ranges_process.
3878 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3879 need_ranges_base and update comment appropriately. Also pass die tag
3880 to dwarf2_ranges_read.
3881 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3882 need_ranges_base and update comment appropriately. Also pass die tag
3883 to dwarf2_ranges_process.
3884 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3885 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3886 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3887 need_ranges_base and update comment appropriately. Also pass die tag
3888 to read_attribute_reprocess and dwarf2_ranges_read.
3889 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3890 and update function comment appropriately.
3891 (read_loclist_index): Call read_loclists_rnglists_header instead of
3892 read_loclist_header.
3893 (read_rnglist_index): New function.
3894 (read_attribute_reprocess): Add tag parameter. Add code for
3895 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3896 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3897
3898 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3901 being resolved.
3902
3903 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * arch-utils.c (show_architecture): Update formatting of messages.
3906
3907 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3908
3909 * gdbtypes.h (struct type) <bounds>: Handle array and string
3910 types.
3911 * ada-lang.c (assign_aggregate): Use type::bounds on
3912 array/string type.
3913 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3914 * c-varobj.c (c_number_of_children): Likewise.
3915 (c_describe_child): Likewise.
3916 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3917 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3918 (f_type_print_base): Likewise.
3919 * f-valprint.c (f77_array_offset_tbl): Likewise.
3920 (f77_get_upperbound): Likewise.
3921 (f77_print_array_1): Likewise.
3922 * guile/scm-type.c (gdbscm_type_range): Likewise.
3923 * m2-typeprint.c (m2_array): Likewise.
3924 (m2_is_long_set_of_type): Likewise.
3925 * m2-valprint.c (get_long_set_bounds): Likewise.
3926 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3927 * python/py-type.c (typy_range): Likewise.
3928 * rust-lang.c (rust_internal_print_type): Likewise.
3929 * type-stack.c (type_stack::follow_types): Likewise.
3930 * valarith.c (value_subscripted_rvalue): Likewise.
3931 * valops.c (value_cast): Likewise.
3932
3933 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3934
3935 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3936 callers to use the equivalent accessor methods.
3937
3938 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3941 (struct type) <bit_stride>: New method.
3942 (TYPE_BIT_STRIDE): Remove.
3943 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3944
3945 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3948 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3949 callers to use the equivalent accessor methods instead.
3950
3951 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3954 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3955 callers to use the equivalent accessor methods instead.
3956
3957 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3960 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3961 to use dynamic_prop::kind.
3962
3963 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3966 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3967 to get the bound property's kind and check against
3968 PROP_UNDEFINED.
3969
3970 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3973 all callers to use type::range_bounds followed by
3974 dynamic_prop::{low,high}.
3975
3976 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3979 const_val, set_const_val, baton, set_locexpr, set_loclist,
3980 set_addr_offset, variant_parts, set_variant_parts,
3981 original_type, set_original_type>: New methods.
3982 <kind>: Rename to...
3983 <m_kind>: ... this. Update all users to use the new methods
3984 instead.
3985 <data>: Rename to...
3986 <m_data>: ... this. Update all users to use the new methods
3987 instead.
3988
3989 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * gdbtypes.c (get_discrete_bounds): Return failure if
3992 the range type's bounds are not both defined and constant
3993 values.
3994 (get_array_bounds): Update comment. Remove undefined bound check.
3995
3996 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3997
3998 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3999 the type::bounds method directly.
4000
4001 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4004 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4005 are used to set the range type's bounds to use set_bounds.
4006
4007 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4008
4009 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4010
4011 2020-07-10 Pedro Alves <pedro@palves.net>
4012
4013 * gdbthread.h (inferior_ref): Define.
4014 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4015 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4016 * thread.c
4017 (scoped_restore_current_thread::restore):
4018 Adjust to gdb::ref_ptr.
4019 (scoped_restore_current_thread::~scoped_restore_current_thread):
4020 Remove manual decref handling.
4021 (scoped_restore_current_thread::scoped_restore_current_thread):
4022 Adjust to use
4023 inferior_ref::new_reference/thread_info_ref::new_reference.
4024 Incref the thread before calling get_frame_id instead of after.
4025 Let TARGET_CLOSE_ERROR propagate.
4026
4027 2020-07-10 Pedro Alves <pedro@palves.net>
4028
4029 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4030 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4031 NOT_AVAILABLE_ERROR.
4032 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4033 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4034
4035 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4036 Pedro Alves <pedro@palves.net>
4037
4038 PR gdb/26199
4039 * infrun.c (threads_are_resumed_pending_p): Delete.
4040 (do_target_wait): Remove threads_are_executing and
4041 threads_are_resumed_pending_p checks from the inferior_matches
4042 lambda. Update comments.
4043
4044 2020-07-10 Pedro Alves <pedro@palves.net>
4045
4046 PR gdb/26199
4047 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4048 executing threads.
4049
4050 2020-07-10 Pedro Alves <pedro@palves.net>
4051
4052 PR gdb/26199
4053 * infrun.c (handle_no_resumed): Handle multiple targets.
4054
4055 2020-07-10 Pedro Alves <pedro@palves.net>
4056
4057 PR gdb/26199
4058 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4059 target_is_async_p.
4060
4061 2020-07-10 Pedro Alves <pedro@palves.net>
4062
4063 PR gdb/26199
4064 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4065 threads, not all threads.
4066
4067 2020-07-10 Pedro Alves <pedro@palves.net>
4068
4069 PR gdb/26199
4070 * remote.c (remote_target::open_1): Pass remote target pointer as
4071 data to create_async_event_handler.
4072 (remote_async_inferior_event_handler): Mark async event handler
4073 before returning if the remote target still has either pending
4074 events or unacknowledged notifications.
4075
4076 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4077
4078 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4079 declaration.
4080 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4081 function.
4082
4083 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4084
4085 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4086 inferior_ptid.
4087
4088 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4089
4090 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4091 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4092 AT_FREEBSD_PS_STRINGS.
4093
4094 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4095
4096 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4097 of debugfile path on Windows.
4098
4099 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4100
4101 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4102 argument to 'data'.
4103
4104 2020-07-08 Tom Tromey <tromey@adacore.com>
4105
4106 * ada-lang.c (ada_exception_message_1): Use read_memory.
4107
4108 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4109
4110 PR python/22748
4111 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4112 special handling for inline frames.
4113 * findvar.c (value_of_register_lazy): Skip inline frames when
4114 creating lazy register values.
4115 * frame.c (frame_id_computed_p): Delete definition.
4116 * frame.h (frame_id_computed_p): Delete declaration.
4117
4118 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4119
4120 * NEWS: Mention additions to Python API.
4121 * python/py-arch.c (archpy_register_groups): New function.
4122 (arch_object_methods): Add 'register_groups' method.
4123 * python/py-registers.c (reggroup_iterator_object): New struct.
4124 (reggroup_object): New struct.
4125 (gdbpy_new_reggroup): New function.
4126 (gdbpy_reggroup_to_string): New function.
4127 (gdbpy_reggroup_name): New function.
4128 (gdbpy_reggroup_iter): New function.
4129 (gdbpy_reggroup_iter_next): New function.
4130 (gdbpy_new_reggroup_iterator): New function
4131 (gdbpy_initialize_registers): Register new types.
4132 (reggroup_iterator_object_type): Define new Python type.
4133 (gdbpy_reggroup_getset): New static global.
4134 (reggroup_object_type): Define new Python type.
4135 * python/python-internal.h
4136
4137 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4140 * python/py-arch.c (archpy_registers): New function.
4141 (arch_object_methods): Add 'registers' method.
4142 * python/py-registers.c: New file.
4143 * python/python-internal.h
4144 (gdbpy_new_register_descriptor_iterator): Declare.
4145 (gdbpy_initialize_registers): Declare.
4146 * python/python.c (do_start_initialization): Call
4147 gdbpy_initialize_registers.
4148 * NEWS: Mention additions to the Python API.
4149
4150 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4151
4152 * NEWS: Mention new Python API method.
4153 * python/py-unwind.c (pending_framepy_architecture): New function.
4154 (pending_frame_object_methods): Add architecture method.
4155
4156 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4157
4158 * gdbarch.c: Regenerate.
4159 * gdbarch.h: Regenerate.
4160 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4161 (gdbarch_data): Use internal_error for the case where
4162 deprecated_set_gdbarch_data was originally needed.
4163 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4164 and use passed in obstack.
4165 (libunwind_frame_set_descr): Should no longer get back NULL from
4166 gdbarch_data.
4167 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4168 type.
4169 * user-regs.c (user_regs_init): Update parameters, and use passed
4170 in obstack.
4171 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4172 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4173
4174 2020-07-06 Tom de Vries <tdevries@suse.de>
4175
4176 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4177 End-Of-Sequence in lte_is_less_than.
4178 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4179 "gdb: Don't reorder line table entries too much when sorting".
4180
4181 2020-07-06 Tom de Vries <tdevries@suse.de>
4182
4183 PR tui/26205
4184 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4185
4186 2020-07-05 Tom de Vries <tdevries@suse.de>
4187
4188 PR build/26187
4189 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4190 std::uncaught_exceptions instead of deprecated
4191 std::uncaught_exception.
4192
4193 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4194
4195 * macroexp.h (macro_stringify): Return
4196 gdb::unique_xmalloc_ptr<char>.
4197 * macroexp.c (macro_stringify): Likewise.
4198 * macrotab.c (fixup_definition): Update.
4199
4200 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4201
4202 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4203 (lex_one_token): Update.
4204 * macroexp.c (struct macro_buffer) <release>: Return
4205 gdb::unique_xmalloc_ptr<char>.
4206 (macro_stringify): Update.
4207 (macro_expand): Update.
4208 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4209 * macroexp.h (macro_expand_next): Likewise.
4210
4211 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * macroexp.h (macro_lookup_ftype): Remove.
4214 (macro_expand, macro_expand_once, macro_expand_next): Remove
4215 lookup function parameters, add scope parameter.
4216 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4217 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4218 * macroscope.h (standard_macro_lookup): Change parameter type
4219 to macro_scope.
4220 * macroscope.c (standard_macro_lookup): Likewise.
4221 * c-exp.y (lex_one_token): Update.
4222 * macrocmd.c (macro_expand_command): Likewise.
4223 (macro_expand_once_command): Likewise.
4224
4225 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4226
4227 * inf-loop.c (inferior_event_handler): Remove client_data param.
4228 * inf-loop.h (inferior_event_handler): Likewise.
4229 * infcmd.c (step_1): Adjust.
4230 * infrun.c (proceed): Adjust.
4231 (fetch_inferior_event): Remove client_data param.
4232 (infrun_async_inferior_event_handler): Adjust.
4233 * infrun.h (fetch_inferior_event): Remove `void *` param.
4234 * linux-nat.c (handle_target_event): Adjust.
4235 * record-btrace.c (record_btrace_handle_async_inferior_event):
4236 Adjust.
4237 * record-full.c (record_full_async_inferior_event_handler):
4238 Adjust.
4239 * remote.c (remote_async_inferior_event_handler): Adjust.
4240
4241 2020-07-01 Tom Tromey <tom@tromey.com>
4242
4243 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4244 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4245
4246 2020-07-01 Tom Tromey <tom@tromey.com>
4247
4248 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4249 tui_gen_win_info.
4250 (tui_win_info::make_window): Merge with
4251 tui_gen_win_info::make_window.
4252 (tui_win_info::make_visible): Move from tui_gen_win_info.
4253 * tui/tui-win.c (tui_win_info::max_width): Move from
4254 tui_gen_win_info.
4255 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4256 type.
4257 <window_factory>: Likewise.
4258 * tui/tui-layout.c (tui_win_info::resize): Move from
4259 tui_gen_win_info.
4260 (make_standard_window): Change return type.
4261 (get_locator_window, tui_get_window_by_name): Likewise.
4262 (tui_layout_window::apply): Remove a cast.
4263 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4264 (struct tui_win_info): Merge with tui_gen_win_info.
4265 (struct tui_gen_win_info): Remove.
4266
4267 2020-07-01 Tom Tromey <tom@tromey.com>
4268
4269 * tui/tui-stack.h (struct tui_locator_window): Derive from
4270 tui_win_info.
4271 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4272 <can_box>: New method.
4273
4274 2020-07-01 Tom Tromey <tom@tromey.com>
4275
4276 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4277
4278 2020-07-01 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-regs.c (tui_data_window::display_registers_from)
4281 (tui_data_window::display_registers_from)
4282 (tui_data_window::first_data_item_displayed)
4283 (tui_data_window::delete_data_content_windows): Update.
4284 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4285 Remove.
4286 (tui_data_window::check_register_values): Update.
4287 (tui_data_item_window::rerender): Add parameters. Update.
4288 (tui_data_item_window::refresh_window): Remove.
4289 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4290 virtual.
4291 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4292 tui_gen_win_info.
4293 <refresh_window, max_height, min_height>: Remove.
4294 <rerender>: Add parameters.
4295 <x, y, visible>: New members.
4296 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4297 <m_item_width>: New member.
4298
4299 2020-07-01 Tom Tromey <tom@tromey.com>
4300
4301 * tui/tui-regs.c (tui_data_window::show_register_group)
4302 (tui_data_window::check_register_values): Update.
4303 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4304 from item_no.
4305
4306 2020-07-01 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4309 useless "if".
4310
4311 2020-07-01 Tom Tromey <tom@tromey.com>
4312
4313 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4314 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4315
4316 2020-07-01 Tom Tromey <tom@tromey.com>
4317
4318 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4319 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4320 (struct tui_line_or_address): Move from tui-data.h.
4321 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4322 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4323 (tui_cmd_window, tui_source_window_base, tui_source_window)
4324 (tui_disasm_window): Don't declare.
4325 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4326 to tui-winsource.h.
4327 (SINGLE_KEY): Move to tui-stack.c.
4328
4329 2020-07-01 Tom Tromey <tom@tromey.com>
4330
4331 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4332 std::string.
4333 * tui/tui-regs.c (class tab_expansion_file): New.
4334 (tab_expansion_file::write): New method.
4335 (tui_register_format): Change return type. Use
4336 tab_expansion_file.
4337 (tui_get_register, tui_data_window::display_registers_from)
4338 (tui_data_item_window::rerender): Update.
4339 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4340 * tui/tui-io.c (tui_expand_tabs): Remove.
4341
4342 2020-07-01 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4345
4346 2020-07-01 Fangrui Song <maskray@google.com>
4347
4348 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4349
4350 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4351
4352 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4353 forms for DW_AT_associated and DW_AT_allocated attributes,
4354 which is already checked in function attr_to_dynamic_prop.
4355
4356 2020-06-30 Tom Tromey <tromey@adacore.com>
4357
4358 * dwarf2/read.c (quirk_rust_enum): Correctly call
4359 alloc_rust_variant for default-less enum.
4360
4361 2020-06-30 Tom Tromey <tromey@adacore.com>
4362
4363 PR build/26183:
4364 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4365 gdb::to_string.
4366
4367 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4370 * gdbarch.h: Re-generate.
4371
4372 2020-06-28 Tom Tromey <tom@tromey.com>
4373
4374 * command.h (cmd_types): Remove.
4375 (cmd_type): Don't declare.
4376 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4377 typedef.
4378 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4379 * cli/cli-decode.c (cmd_type): Remove.
4380
4381 2020-06-27 Pedro Alves <palves@redhat.com>
4382
4383 * fork-child.c (prefork_hook): Adjust.
4384 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4385 Delete.
4386 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4387 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4388 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4389 Remove declarations.
4390 (struct inferior) <set_tty, tty>: New methods.
4391 (struct inferior) <terminal>: Rename to ...
4392 (struct inferior) <m_terminal>: ... this and make private.
4393 * main.c (captured_main_1): Adjust.
4394 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4395 (mi_cmd_inferior_tty_show): Adjust.
4396 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4397 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4398
4399 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4400
4401 * configure.ac: Add --enable-libctf: handle --disable-static
4402 properly.
4403 * acinclude.m4: sinclude ../config/enable.m4.
4404 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4405 (LIBCTF): Substitute in.
4406 (CTF_DEPS): New, likewise.
4407 (CLIBS): libctf needs symbols from libbfd: move earlier.
4408 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4409 flags.
4410 * ctfread.c: Surround in ENABLE_LIBCTF.
4411 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4412 * configure: Regenerate.
4413 * config.in: Likewise.
4414
4415 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4418
4419 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * inferior.h (struct inferior) <terminal>: Change type to
4422 gdb::unique_xmalloc_ptr<char>.
4423 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4424 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4425 field, adjust to unique pointer.
4426 (get_inferior_io_terminal): Adjust to unique pointer.
4427
4428 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4429
4430 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4431 registers, not just the known core set of registers.
4432
4433 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4436 fflags, frm, and fcsr registers.
4437 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4438 restore groups.
4439 (riscv_tdesc_unknown_reg): New function.
4440 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4441 tdesc_use_registers.
4442 * riscv-tdep.h (struct gdbarch_tdep): Add
4443 unknown_csrs_first_regnum, unknown_csrs_count,
4444 duplicate_fflags_regnum, duplicate_frm_regnum, and
4445 duplicate_fcsr_regnum fields.
4446
4447 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4448
4449 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4450 callback, use the callback (when not null) to help number unknown
4451 registers.
4452 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4453 (tdesc_use_registers): Add extra parameter to declaration.
4454
4455 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4458 in the file.
4459 (class riscv_pending_register_alias): Likewise.
4460 (riscv_register_feature::register_info): Change 'required_p' field
4461 to 'required', and change its type. Add 'check' member function.
4462 (riscv_register_feature::register_info::check): Define new member
4463 function.
4464 (riscv_xreg_feature): Change initialisation of 'required' field.
4465 (riscv_freg_feature): Likewise.
4466 (riscv_virtual_feature): Likewise.
4467 (riscv_csr_feature): Likewise.
4468 (riscv_check_tdesc_feature): Take extra parameter, the csr
4469 tdesc_feature, rewrite the function to use the new
4470 riscv_register_feature::register_info::check function.
4471 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4472
4473 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4474
4475 * features/Makefile: Remove all references to the deleted files
4476 below.
4477 * features/riscv/32bit-csr.c: Deleted.
4478 * features/riscv/32bit-csr.xml: Deleted.
4479 * features/riscv/64bit-csr.c: Deleted.
4480 * features/riscv/64bit-csr.xml: Deleted.
4481 * features/riscv/rebuild-csr-xml.sh: Deleted.
4482
4483 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4484
4485 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4486 whitespace error for declaration of names member variable.
4487 (struct riscv_register_feature): Add new prefer_first_name member
4488 variable, and fix whitespace error in declaration of registers.
4489 (riscv_xreg_feature): Initialize prefer_first_name field.
4490 (riscv_freg_feature): Likewise.
4491 (riscv_virtual_feature): Likewise.
4492 (riscv_csr_feature): Likewise.
4493 (riscv_register_name): Expand on comments. Remove register name
4494 modifications for CSR and virtual registers.
4495
4496 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4499 errors.
4500
4501 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4504 riscv-opc.h.
4505 (class riscv_pending_register_alias): New class.
4506 (riscv_check_tdesc_feature): Take vector of pending aliases and
4507 populate it as appropriate.
4508 (riscv_setup_register_aliases): Delete.
4509 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4510 to riscv_check_tdesc_feature in all cases. Use the vector to
4511 create the register aliases.
4512
4513 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4514
4515 * sol2-tdep.c (sol2_static_transform_name): Remove.
4516 (sol2_init_abi): Don't register it.
4517 * gdbarch.sh (static_transform_name): Remove.
4518 * gdbarch.c, gdbarch.h: Regenerate.
4519
4520 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4521 gdbarch_static_transform_name.
4522 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4523 * stabsread.c (define_symbol) <'X'>: Remove.
4524 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4525 handling.
4526 <'V'>: Likewise.
4527 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4528 <'S'>: Remove call to gdbarch_static_transform_name.
4529
4530 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4531
4532 * procfs.c (procfs_pre_trace): New function.
4533 (procfs_target::create_inferior): Pass it to fork_inferior.
4534
4535 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4536
4537 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4538 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4539 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4540 sol2-tdep.o, sparc-sol2-tdep.o.
4541 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4542 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4543 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4544 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4545
4546 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4547
4548 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4549 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4550 Call sol2_init_abi.
4551 Remove calls to set_gdbarch_skip_solib_resolver,
4552 set_gdbarch_core_pid_to_str.
4553 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4554 (i386_sol2_static_transform_name): Remove.
4555 (i386_sol2_init_abi): Call sol2_init_abi.
4556 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4557 set_gdbarch_static_transform_name,
4558 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4559 Use sol2_sigtramp_p.
4560 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4561 (sol2_sigtramp_p): New function.
4562 (sol2_static_transform_name): New function.
4563 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4564 (sol2_init_abi): New function.
4565 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4566 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4567 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4568 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4569 (sparc_sol2_static_transform_name): Remove.
4570 (sparc32_sol2_init_abi): Call sol2_init_abi.
4571 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4572 set_gdbarch_static_transform_name,
4573 set_gdbarch_skip_solib_resolver,
4574 set_gdbarch_core_pid_to_str.
4575 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4576 (sparc_sol2_static_transform_name): Remove
4577 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4578 call sol2_sigtramp_p.
4579 (sparc64_sol2_init_abi): Call sol2_init_abi.
4580 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4581 set_gdbarch_static_transform_name,
4582 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4583
4584 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4585
4586 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4587 * exec.c (validate_exec_file): If from_tty, set both
4588 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4589 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4590 and from_tty, unconditionally ask a confirmation.
4591
4592 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4593
4594 * target-descriptions.c (tdesc_architecture_name): Protect against
4595 NULL pointer dereference.
4596 (maint_print_xml_tdesc_cmd): New function.
4597 (_initialize_target_descriptions): Register new 'maint print
4598 xml-tdesc' command and give it the filename completer.
4599 * NEWS: Mention new 'maint print xml-tdesc' command.
4600
4601 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4602
4603 * target-descriptions.c (class tdesc_compatible_info): New class.
4604 (struct target_desc): Change type of compatible vector.
4605 (tdesc_compatible_p): Update for change in type of
4606 target_desc::compatible.
4607 (tdesc_compatible_info_list): New function.
4608 (tdesc_compatible_info_arch_name): New function.
4609 (tdesc_add_compatible): Update for change in type of
4610 target_desc::compatible.
4611 (print_c_tdesc::visit_pre): Likewise.
4612
4613 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4616 whitespace to underscore.
4617 (maint_print_c_tdesc_cmd): Use fake filename for target
4618 descriptions that came from the target.
4619 (_initialize_target_descriptions): Add filename command completion
4620 for 'maint print c-tdesc'.
4621
4622 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4625 lines.
4626
4627 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4630 lines.
4631 (dwarf2_find_location_expression): Likewise.
4632 (call_site_parameter_matches): Likewise.
4633 (dwarf2_compile_expr_to_ax): Likewise.
4634 (disassemble_dwarf_expression): Likewise.
4635 (loclist_describe_location): Likewise.
4636
4637 2020-06-23 Pedro Alves <palves@redhat.com>
4638
4639 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4640 progspace-and-thread.h. Include scoped-mock-context.h instead.
4641 (register_to_value_test): Use scoped_mock_context.
4642 * regcache.c: Include "scoped-mock-context.h".
4643 (cooked_read_test): Don't error out if a target is already pushed.
4644 Use scoped_mock_context. Adjust.
4645 * scoped-mock-context.h: New file.
4646
4647 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4648
4649 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4650 initializer.
4651 (ada_language::is_string_type_p): New member function.
4652 * c-lang.c (c_language_data): Delete la_is_string_type_p
4653 initializer.
4654 (cplus_language_data): Likewise.
4655 (asm_language_data): Likewise.
4656 (minimal_language_data): Likewise.
4657 * d-lang.c (d_language_data): Likewise.
4658 * f-lang.c (f_is_string_type_p): Delete function, implementation
4659 moved to f_language::is_string_type_p.
4660 (f_language_data): Delete la_is_string_type_p initializer.
4661 (f_language::is_string_type_p): New member function,
4662 implementation from f_is_string_type_p.
4663 * go-lang.c (go_is_string_type_p): Delete function, implementation
4664 moved to go_language::is_string_type_p.
4665 (go_language_data): Delete la_is_string_type_p initializer.
4666 (go_language::is_string_type_p): New member function,
4667 implementation from go_is_string_type_p.
4668 * language.c (language_defn::is_string_type_p): Define new member
4669 function.
4670 (default_is_string_type_p): Make static, add comment copied from
4671 header file.
4672 (unknown_language_data): Delete la_is_string_type_p initializer.
4673 (unknown_language::is_string_type_p): New member function.
4674 (auto_language_data): Delete la_is_string_type_p initializer.
4675 (auto_language::is_string_type_p): New member function.
4676 * language.h (language_data): Delete la_is_string_type_p field.
4677 (language_defn::is_string_type_p): Declare new function.
4678 (default_is_string_type_p): Delete desclaration, move comment to
4679 definition.
4680 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4681 moved to m2_language::is_string_type_p.
4682 (m2_language_data): Delete la_is_string_type_p initializer.
4683 (m2_language::is_string_type_p): New member function,
4684 implementation from m2_is_string_type_p.
4685 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4686 initializer.
4687 * opencl-lang.c (opencl_language_data): Likewise.
4688 * p-lang.c (pascal_is_string_type_p): Delete function,
4689 implementation moved to pascal_language::is_string_type_p.
4690 (pascal_language_data): Delete la_is_string_type_p initializer.
4691 (pascal_language::is_string_type_p): New member function,
4692 implementation from pascal_is_string_type_p.
4693 * rust-lang.c (rust_is_string_type_p): Delete function,
4694 implementation moved to rust_language::is_string_type_p.
4695 (rust_language_data): Delete la_is_string_type_p initializer.
4696 (rust_language::is_string_type_p): New member function,
4697 implementation from rust_is_string_type_p.
4698 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4699 is_string_type_p.
4700
4701 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4702
4703 * ada-lang.c (ada_language_data): Delete la_print_typedef
4704 initializer.
4705 (ada_language::print_typedef): New member function.
4706 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4707 (cplus_language_data): Likewise.
4708 (asm_language_data): Likewise.
4709 (minimal_language_data): Likewise.
4710 * d-lang.c (d_language_data): Likewise.
4711 * f-lang.c (f_language_data): Likewise.
4712 (f_language::print_typedef): New member function.
4713 * go-lang.c (go_language_data): Delete la_print_typedef
4714 initializer.
4715 * language.c (language_defn::print_typedef): Define member
4716 function.
4717 (unknown_language_data): Delete la_print_typedef initializer.
4718 (unknown_language::print_typedef): New member function.
4719 (auto_language_data): Delete la_print_typedef initializer.
4720 (auto_language::print_typedef): New member function.
4721 * language.h (language_data): Delete la_print_typedef field.
4722 (language_defn::print_typedef): Declare new member function.
4723 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4724 (default_print_typedef): Delete declaration.
4725 * m2-lang.c (m2_language_data): Delete la_print_typedef
4726 initializer.
4727 (m2_language::print_typedef): New member function.
4728 * objc-lang.c (objc_language_data): Delete la_print_typedef
4729 initializer.
4730 * opencl-lang.c (opencl_language_data): Likewise.
4731 * p-lang.c (pascal_language_data): Likewise.
4732 (pascal_language::print_typedef): New member function.
4733 * rust-lang.c (rust_print_typedef): Delete function,
4734 implementation moved to rust_language::print_typedef.
4735 (rust_language): Delete la_print_typedef initializer.
4736 (rust_language::print_typedef): New member function,
4737 implementation from rust_print_typedef.
4738 * typeprint.c (default_print_typedef): Delete.
4739
4740 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4741
4742 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4743 (ada_language::printstr): New member function.
4744 * c-lang.c (c_language_data): Delete la_printstr initializer.
4745 (cplus_language_data): Likewise.
4746 (asm_language_data): Likewise.
4747 (minimal_language_data): Likewise.
4748 * d-lang.c (d_language_data): Likewise.
4749 * f-lang.c (f_printstr): Rename to f_language::printstr.
4750 (f_language_data): Delete la_printstr initializer.
4751 (f_language::printstr): New member function, implementation from
4752 f_printstr.
4753 * go-lang.c (go_language_data): Delete la_printstr initializer.
4754 * language.c (language_defn::printstr): Define new member
4755 function.
4756 (unk_lang_printstr): Delete.
4757 (unknown_language_data): Delete la_printstr initializer.
4758 (unknown_language::printstr): New member function.
4759 (auto_language_data): Delete la_printstr initializer.
4760 (auto_language::printstr): New member function.
4761 * language.h (language_data): Delete la_printstr field.
4762 (language_defn::printstr): Declare new member function.
4763 (LA_PRINT_STRING): Update call to printstr.
4764 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4765 (m2_language_data): Delete la_printstr initializer.
4766 (m2_language::printstr): New member function, implementation from
4767 m2_printstr.
4768 * objc-lang.c (objc_language_data): Delete la_printstr
4769 initializer.
4770 * opencl-lang.c (opencl_language_data): Likewise.
4771 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4772 (pascal_language_data): Delete la_printstr initializer.
4773 (pascal_language::printstr): New member function, implementation
4774 from pascal_printstr.
4775 * p-lang.h (pascal_printstr): Delete declaration.
4776 * rust-lang.c (rust_printstr): Update header comment.
4777 (rust_language_data): Delete la_printstr initializer.
4778 (rust_language::printstr): New member function.
4779
4780 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4781
4782 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4783 (ada_language::printchar): New member function.
4784 * c-lang.c (c_language_data): Delete la_printchar initializer.
4785 (cplus_language_data): Likewise.
4786 (asm_language_data): Likewise.
4787 (minimal_language_data): Likewise.
4788 * d-lang.c (d_language_data): Likewise.
4789 * f-lang.c (f_printchar): Rename to f_language::printchar.
4790 (f_language_data): Delete la_printchar initializer.
4791 (f_language::printchar): New member function, implementation from
4792 f_printchar.
4793 * go-lang.c (go_language_data): Delete la_printchar initializer.
4794 * language.c (unk_lang_printchar): Delete.
4795 (language_defn::printchar): Define new member function.
4796 (unknown_language_data): Delete la_printchar initializer.
4797 (unknown_language::printchar): New member function.
4798 (auto_language_data): Delete la_printchar initializer.
4799 (auto_language::printchar): New member function.
4800 * language.h (language_data): Delete la_printchar field.
4801 (language_defn::printchar): Declare new member function.
4802 (LA_PRINT_CHAR): Update call to printchar.
4803 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4804 (m2_language::printchar): New member function.
4805 * objc-lang.c (objc_language_data): Delete la_printchar
4806 initializer.
4807 * opencl-lang.c (opencl_language_data): Likewise.
4808 * p-lang.c (pascal_language_data): Delete la_printchar
4809 initializer.
4810 (pascal_language::printchar): New member function.
4811 * rust-lang.c (rust_printchar): Rename to
4812 rust_language::printchar.
4813 (rust_language_data): Delete la_printchar initializer.
4814 (rust_language::printchar): New member function, implementation
4815 from rust_printchar.
4816
4817 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4818
4819 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4820 (ada_language_data): Delete la_emitchar initializer.
4821 (ada_language::emitchar): New member function, implementation from
4822 emit_char.
4823 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4824 (cplus_language_data): Likewise.
4825 (asm_language_data): Likewise.
4826 (minimal_language_data): Likewise.
4827 * d-lang.c (d_language_data): Likewise.
4828 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4829 (f_language_data): Delete la_emitchar initializer.
4830 (f_language::emitchar): New member function, implementation from
4831 f_emit_char.
4832 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4833 * language.c (unk_lang_emit_char): Delete.
4834 (language_defn::emitchar): New member function definition.
4835 (unknown_language_data): Delete la_emitchar initializer.
4836 (unknown_language::emitchar): New member function.
4837 (auto_language_data): Delete la_emitchar initializer.
4838 (auto_language::emitchar): New member function.
4839 * language.h (language_data): Delete la_emitchar field.
4840 (language_defn::emitchar): New member field declaration.
4841 (LA_EMIT_CHAR): Update call to emitchar.
4842 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4843 (m2_language_data): Delete la_emitchar initializer.
4844 (m2_language::emitchar): New member function, implementation from
4845 m2_emit_char.
4846 * objc-lang.c (objc_language_data): Delete la_emitchar
4847 initializer.
4848 * opencl-lang.c (opencl_language_data): Likewise.
4849 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4850 (pascal_language_data): Delete la_emitchar initializer.
4851 (pascal_language::emitchar): New member function, implementation
4852 from pascal_emit_char.
4853 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4854 (rust_language_data): Delete la_emitchar initializer.
4855 (rust_language::emitchar): New member function, implementation
4856 from rust_emitchar.
4857
4858 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4859
4860 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4861 (ada_language_data): Delete la_post_parser initializer.
4862 (ada_language::post_parser): New member function.
4863 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4864 (cplus_language_data): Likewise.
4865 (asm_language_data): Likewise.
4866 (minimal_language_data): Likewise.
4867 * d-lang.c (d_language_data): Likewise.
4868 * f-lang.c (f_language_data): Likewise.
4869 * go-lang.c (go_language_data): Likewise.
4870 * language.c (unknown_language_data): Likewise.
4871 (auto_language_data): Likewise.
4872 * language.h (language_data): Delete la_post_parser field.
4873 (language_defn::post_parser): New member function.
4874 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4875 * objc-lang.c (objc_language_data): Likewise.
4876 * opencl-lang.c (opencl_language_data): Likewise.
4877 * p-lang.c (pascal_language_data): Likewise.
4878 * parse.c (parse_exp_in_context): Update call to post_parser.
4879 (null_post_parser): Delete definition.
4880 * parser-defs.h (null_post_parser): Delete declaration.
4881 * rust-lang.c (rust_language_data): Delete la_post_parser
4882 initializer.
4883
4884 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * ada-lang.c (parse): Rename to ada_language::parser.
4887 (ada_language_data): Delete la_parser initializer.
4888 (ada_language::parser): New member function, implementation from
4889 parse.
4890 * c-lang.c (c_language_data): Delete la_parser initializer.
4891 (cplus_language_data): Likewise.
4892 (asm_language_data): Likewise.
4893 (minimal_language_data): Likewise.
4894 * d-lang.c (d_language_data): Likewise.
4895 (d_language::parser): New member function.
4896 * f-lang.c (f_language_data): Delete la_parser initializer.
4897 (f_language::parser): New member function.
4898 * go-lang.c (go_language_data): Delete la_parser initializer.
4899 (go_language::parser): New member function.
4900 * language.c (unk_lang_parser): Delete.
4901 (language_defn::parser): Define new member function.
4902 (unknown_language_data): Delete la_parser initializer.
4903 (unknown_language::parser): New member function.
4904 (auto_language_data): Delete la_parser initializer.
4905 (auto_language::parser): New member function.
4906 * language.h (language_data): Delete la_parser field.
4907 (language_defn::parser): Declare new member function.
4908 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4909 (m2_language::parser): New member function.
4910 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4911 * opencl-lang.c (opencl_language_data): Likewise.
4912 * p-lang.c (pascal_language_data): Likewise.
4913 (pascal_language::parser): New member function.
4914 * parse.c (parse_exp_in_context): Update call to parser.
4915 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4916 (rust_language::parser): New member function.
4917
4918 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4919
4920 * top.c (print_gdb_configuration): Print --with-python-libdir
4921 configuration value.
4922
4923 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4924
4925 * NEWS: Mention change to the alias command.
4926
4927 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4928
4929 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4930 (alias_command_completer)
4931 (make_alias_options_def_group): New functions.
4932 (alias_opts, alias_option_defs): New struct and array.
4933 (alias_usage_error): Update usage.
4934 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4935 Use option framework.
4936 (_initialize_cli_cmds): Update alias command help.
4937 Update aliases command help.
4938 (show_user):
4939 Add NULL for new default_args lookup_cmd argument.
4940 (valid_command_p): Rename to validate_aliased_command.
4941 Add NULL for new default_args lookup_cmd argument. Verify that the
4942 aliased_command has no default args.
4943 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4944 (lookup_cmd_1, lookup_cmd): New argument default_args.
4945 (add_alias_cmd):
4946 Add NULL for new default_args lookup_cmd argument.
4947 (print_help_for_command): Show default args under the layout
4948 alias some_alias = some_aliased_cmd some_alias_default_arg.
4949 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4950 xfree default_args in destructor.
4951 * cli/cli-script.c (process_next_line, do_define_command):
4952 Add NULL for new default_args lookup_cmd argument.
4953 * command.h: Declare new default_args argument in lookup_cmd
4954 and lookup_cmd_1.
4955 * completer.c (complete_line_internal_1):
4956 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4957 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4958 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4959 Likewise.
4960 * infcmd.c (_initialize_infcmd): Likewise.
4961 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4962 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4963 * python/py-param.c (add_setshow_generic): Likewise.
4964 * remote.c (_initialize_remote): Likewise.
4965 * top.c (execute_command): Prepend default_args if command has some.
4966 (set_verbose):
4967 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4968 * tracepoint.c (validate_actionline, encode_actions_1):
4969 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4970
4971 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4972
4973 * jit.c (jit_read_descriptor): Use bool as the return type.
4974 (jit_breakpoint_re_set_internal): Use bool as the return type.
4975 Invert the return value logic; return true if the jit breakpoint
4976 has been successfully initialized.
4977 (jit_inferior_init): Update the call to
4978 jit_breakpoint_re_set_internal.
4979
4980 2020-06-22 Pedro Alves <palves@redhat.com>
4981
4982 PR gdb/25939
4983 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4984 Use the current inferior instead. Don't return
4985 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4986 wait again.
4987 * sol-thread.c (sol_thread_target::wait): Don't reference
4988 inferior_ptid.
4989 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4990 (sol_update_thread_list_callback): Use the current inferior's pid
4991 instead of inferior_ptid.
4992
4993 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4994
4995 * procfs.c: Cleanup many comments.
4996
4997 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4998 (AFTER_WATCHFLAG): Replace by value.
4999
5000 (MAIN_PROC_NAME_FORMAT): Inline ...
5001 (create_procinfo): ... here.
5002
5003 (procfs_debug_inferior): Remove SYS_exec handling.
5004 (syscall_is_exec): Likewise.
5005 (procfs_set_exec_trap): Likewise.
5006
5007 (syscall_is_lwp_exit): Inline in callers.
5008 (syscall_is_exit): Likewise.
5009 (syscall_is_exec): Likewise.
5010 (syscall_is_lwp_create): Likewise.
5011
5012 (invalidate_cache): Remove #if 0 code.
5013
5014 (make_signal_thread_runnable): Remove.
5015 (procfs_target::resume): Remove #if 0 code.
5016
5017 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5018
5019 PR gdb/25939
5020 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5021 call ...
5022 (procfs_target::create_inferior): ... here.
5023
5024 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5025
5026 * exec.c (validate_exec_file): Ensure the build-id is up to
5027 date by calling reopen_exec_file (that checks file timestamp
5028 to decide to re-read the file).
5029
5030 2020-06-18 Pedro Alves <palves@redhat.com>
5031
5032 PR gdb/25412
5033 * gdbthread.h (delete_thread, delete_thread_silent)
5034 (find_thread_ptid): Update comments.
5035 * thread.c (current_thread_): New global.
5036 (is_current_thread): Move higher, and reimplement.
5037 (inferior_thread): Reimplement.
5038 (set_thread_exited): Use bool. Add assertions.
5039 (add_thread_silent): Simplify thread-reuse handling by always
5040 calling delete_thread.
5041 (delete_thread): Remove intro comment.
5042 (find_thread_ptid): Skip exited threads.
5043 (switch_to_thread_no_regs): Write to current_thread_.
5044 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5045 INFERIOR_PTID. Clear current_thread_.
5046
5047 2020-06-18 Pedro Alves <palves@redhat.com>
5048
5049 * aix-thread.c (pd_update): Use switch_to_thread.
5050
5051 2020-06-18 Pedro Alves <palves@redhat.com>
5052
5053 * ravenscar-thread.c (ravenscar_thread_target): Update.
5054 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5055 (ravenscar_thread_target::add_active_thread): ... this. Don't
5056 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5057 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5058
5059 2020-06-18 Pedro Alves <palves@redhat.com>
5060
5061 * nat/windows-nat.c (current_windows_thread): Remove.
5062 * nat/windows-nat.h (current_windows_thread): Remove.
5063 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5064 Adjust.
5065 (display_selectors): Adjust to fetch the current
5066 windows_thread_info based on inferior_ptid.
5067 (fake_create_process): No longer write to current_windows_thread.
5068 (windows_nat_target::get_windows_debug_event):
5069 Don't set inferior_ptid or current_windows_thread.
5070 (windows_nat_target::wait): Adjust to not rely on
5071 current_windows_thread.
5072 (do_initial_windows_stuff): Now a method of windows_nat_target.
5073 Switch to the last_ptid thread.
5074 (windows_nat_target::attach): Adjust.
5075 (windows_nat_target::detach): Use switch_to_no_thread instead of
5076 writing to inferior_ptid directly.
5077 (windows_nat_target::create_inferior): Adjust.
5078
5079 2020-06-18 Pedro Alves <palves@redhat.com>
5080
5081 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5082
5083 2020-06-18 Pedro Alves <palves@redhat.com>
5084
5085 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5086 after creating it, instead of writing to inferior_ptid. Don't
5087 write to inferior_ptid.
5088
5089 2020-06-18 Pedro Alves <palves@redhat.com>
5090
5091 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5092
5093 2020-06-18 Pedro Alves <palves@redhat.com>
5094
5095 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5096 it, instead of writing to inferior_ptid.
5097
5098 2020-06-18 Pedro Alves <palves@redhat.com>
5099
5100 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5101 to inferior_ptid.
5102
5103 2020-06-18 Pedro Alves <palves@redhat.com>
5104
5105 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5106 instead of writing to inferior_ptid directly.
5107
5108 2020-06-18 Pedro Alves <palves@redhat.com>
5109
5110 * corelow.c (core_target::close): Use switch_to_no_thread instead
5111 of writing to inferior_ptid directly.
5112 (add_to_thread_list, core_target_open): Use switch_to_thread
5113 instead of writing to inferior_ptid directly.
5114
5115 2020-06-18 Pedro Alves <palves@redhat.com>
5116
5117 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5118 inferior_ptid.
5119 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5120 inferior_ptid.
5121 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5122 inferior_ptid directly.
5123 (darwin_nat_target::init_thread_list): Switch to thread, instead
5124 of writing to inferior_ptid.
5125 (darwin_nat_target::attach): Don't write to inferior_ptid.
5126 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5127
5128 2020-06-18 Pedro Alves <palves@redhat.com>
5129
5130 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5131 thread.
5132 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5133 Instead use switch_to_thread.
5134 (gnu_nat_target::detach): Use switch_to_no_thread
5135 instead of writing to inferior_ptid directly. Used passed-in
5136 inferior instead of looking up the inferior by pid.
5137
5138 2020-06-18 Pedro Alves <palves@redhat.com>
5139
5140 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5141 inferior_ptid.
5142
5143 2020-06-18 Pedro Alves <palves@redhat.com>
5144
5145 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5146 inferior_ptid.
5147 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5148 thread.
5149 (nto_procfs_target::detach): Avoid referencing
5150 inferior_ptid. Use switch_to_no_thread instead of writing to
5151 inferior_ptid directly.
5152 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5153 instead of writing to inferior_ptid directly.
5154 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5155 to thread.
5156
5157 2020-06-18 Pedro Alves <palves@redhat.com>
5158
5159 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5160 after creating it, instead of writing to inferior_ptid.
5161 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5162 to inferior_ptid directly.
5163 (gdbsim_target::wait): Don't write to inferior_ptid.
5164
5165 2020-06-18 Pedro Alves <palves@redhat.com>
5166
5167 * remote.c (remote_target::remote_notice_new_inferior): Use
5168 switch_to_thread instead of writing to inferior_ptid directly.
5169 (remote_target::add_current_inferior_and_thread): Use
5170 switch_to_no_thread instead of writing to inferior_ptid directly.
5171 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5172 and switch_to_thread instead of using set_current_inferior or
5173 writing to inferior_ptid directly.
5174
5175 2020-06-18 Pedro Alves <palves@redhat.com>
5176
5177 * tracectf.c (ctf_target_open): Switch to added thread instead of
5178 writing to inferior_ptid directly.
5179 (ctf_target::close): Use switch_to_no_thread instead of writing to
5180 inferior_ptid directly.
5181
5182 2020-06-18 Pedro Alves <palves@redhat.com>
5183
5184 * tracefile-tfile.c (tfile_target_open): Don't write to
5185 inferior_ptid directly, instead switch to added thread.
5186 (tfile_target::close): Use switch_to_no_thread instead of writing
5187 to inferior_ptid directly.
5188
5189 2020-06-18 Pedro Alves <palves@redhat.com>
5190
5191 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5192 (procfs_target::detach): Use switch_to_no_thread
5193 instead of writing to inferior_ptid directly.
5194 (do_attach): Change return type to void. Switch to the added
5195 thread.
5196 (procfs_target::create_inferior): Switch to the added thread.
5197 (procfs_do_thread_registers): Don't write to inferior_ptid.
5198
5199 2020-06-18 Pedro Alves <palves@redhat.com>
5200
5201 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5202 of writing to inferior_ptid.
5203 (scoped_restore_exited_inferior): Delete.
5204 (handle_vfork_child_exec_or_exit): Simplify using
5205 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5206 instead of writing to inferior_ptid.
5207 (THREAD_STOPPED_BY): Delete.
5208 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5209 (thread_stopped_by_hw_breakpoint): Delete.
5210 (save_waitstatus): Use
5211 scoped_restore_current_thread+switch_to_thread, and call
5212 target_stopped_by_watchpoint instead of
5213 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5214 instead of thread_stopped_by_sw_breakpoint, and
5215 target_stopped_by_hw_breakpoint instead of
5216 thread_stopped_by_hw_breakpoint.
5217 (handle_inferior_event)
5218 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5219 inferior_ptid directly, nor
5220 set_current_inferior/set_current_program_space. Use
5221 switch_to_thread / switch_to_inferior_no_thread instead.
5222
5223 2020-06-18 Pedro Alves <palves@redhat.com>
5224
5225 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5226 instead of writing to inferior_ptid.
5227
5228 2020-06-18 Pedro Alves <palves@redhat.com>
5229
5230 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5231 added thread.
5232 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5233 to the added thread.
5234 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5235 instead of writing to inferior_ptid.
5236
5237 2020-06-18 Pedro Alves <palves@redhat.com>
5238
5239 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5240 (register_to_value_test): Mock a program_space too. Heap-allocate
5241 the address space. Don't write to inferior_ptid. Use
5242 switch_to_thread instead.
5243
5244 2020-06-18 Pedro Alves <palves@redhat.com>
5245
5246 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5247 Delete.
5248 (find_signalled_thread()): New, factored out from
5249 linux_make_corefile_notes and adjusted to handle exited threads.
5250 (linux_make_corefile_notes): Adjust to use the new
5251 find_signalled_thread.
5252
5253 2020-06-18 Pedro Alves <palves@redhat.com>
5254
5255 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5256 of saving/restoring inferior_ptid.
5257
5258 2020-06-17 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5261 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5262 declare.
5263 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5264
5265 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5266
5267 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5268 of partial symtabs.
5269
5270 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5271
5272 * regformats/reg-arm.dat: Remove.
5273 * regformats/reg-bfin.dat: Remove.
5274 * regformats/reg-cris.dat: Remove.
5275 * regformats/reg-crisv32.dat: Remove.
5276 * regformats/reg-m32r.dat: Remove.
5277 * regformats/reg-tilegx.dat: Remove.
5278 * regformats/reg-tilegx32.dat: Remove.
5279
5280 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * features/Makefile (WHICH): Remove arm files.
5283 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5284 * regformats/arm/arm-with-neon.dat: Remove.
5285 * regformats/arm/arm-with-vfpv2.dat: Remove.
5286 * regformats/arm/arm-with-vfpv3.dat: Remove.
5287
5288 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5289
5290 * features/Makefile (XMLTOC): Remove rx.xml.
5291
5292 2020-06-17 Pedro Alves <palves@redhat.com>
5293
5294 * gdbthread.h (thread_control_state) <trap_expected> Update
5295 comments.
5296
5297 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5300 ada_language::lookup_symbol_nonlocal.
5301 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5302 (ada_language::lookup_symbol_nonlocal): New member function,
5303 implementation from ada_lookup_symbol_nonlocal.
5304 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5305 initializer.
5306 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5307 initializer.
5308 (cplus_language::lookup_symbol_nonlocal): New member function.
5309 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5310 (minimal_language_data) Likewise.
5311 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5312 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5313 initializer.
5314 (d_language::lookup_symbol_nonlocal): New member function.
5315 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5316 initializer.
5317 (f_language::lookup_symbol_nonlocal): New member function.
5318 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5319 initializer.
5320 * language.c (unknown_language_data): Likewise.
5321 (auto_language_data): Likewise.
5322 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5323 field.
5324 (language_defn::lookup_symbol_nonlocal): New member function.
5325 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5326 initializer.
5327 * objc-lang.c (objc_language_data): Likewise.
5328 * opencl-lang.c (opencl_language_data): Likewise.
5329 * p-lang.c (pascal_language_data): Likewise.
5330 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5331 rust_language::lookup_symbol_nonlocal.
5332 (rust_language_data): Delete la_lookup_symbol_nonlocal
5333 initializer.
5334 (rust_language::lookup_symbol_nonlocal): New member function,
5335 implementation from rust_lookup_symbol_nonlocal.
5336 * symtab.c (lookup_symbol_aux): Update call to
5337 lookup_symbol_nonlocal.
5338 (basic_lookup_symbol_nonlocal): Rename to...
5339 (language_defn::lookup_symbol_nonlocal): ...this, and update
5340 header comment. Remove language_defn parameter, and replace with
5341 uses of `this'.
5342 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5343
5344 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5345
5346 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5347 initializer.
5348 (ada_language::value_print_inner): New member function.
5349 * c-lang.c (c_language_data): Delete la_value_print_inner
5350 initializer.
5351 (cplus_language_data): Likewise.
5352 (asm_language_data): Likewise.
5353 (minimal_language_data): Likewise.
5354 * d-lang.c (d_language_data): Likewise.
5355 (d_language::value_print_inner): New member function.
5356 * f-lang.c (f_language_data): Delete la_value_print_inner
5357 initializer.
5358 (f_language::value_print_inner): New member function.
5359 * f-lang.h (f_value_print_innner): Rename to...
5360 (f_value_print_inner): ...this (note spelling of 'inner').
5361 * f-valprint.c (f_value_print_innner): Rename to...
5362 (f_value_print_inner): ...this (note spelling of 'inner').
5363 * go-lang.c (go_language_data): Delete la_value_print_inner
5364 initializer.
5365 (go_language::value_print_inner): New member function.
5366 * language.c (language_defn::value_print_inner): Define new member
5367 function.
5368 (unk_lang_value_print_inner): Delete.
5369 (unknown_language_data): Delete la_value_print_inner initializer.
5370 (unknown_language::value_print_inner): New member function.
5371 (auto_language_data): Delete la_value_print_inner initializer.
5372 (auto_language::value_print_inner): New member function.
5373 * language.h (language_data): Delete la_value_print_inner field.
5374 (language_defn::value_print_inner): Delcare new member function.
5375 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5376 initializer.
5377 (m2_language::value_print_inner): New member function.
5378 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5379 initializer.
5380 * opencl-lang.c (opencl_language_data): Likewise.
5381 * p-lang.c (pascal_language_data): Likewise.
5382 (pascal_language::value_print_inner): New member function.
5383 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5384 initializer.
5385 (rust_language::value_print_inner): New member function.
5386 * valprint.c (do_val_print): Update call to value_print_inner.
5387
5388 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * ada-lang.c (ada_language_data): Delete la_value_print
5391 initializer.
5392 (ada_language::value_print): New member function.
5393 * c-lang.c (c_language_data): Delete la_value_print initializer.
5394 (cplus_language_data): Likewise.
5395 (asm_language_data): Likewise.
5396 (minimal_language_data): Likewise.
5397 * d-lang.c (d_language_data): Likewise.
5398 * f-lang.c (f_language_data): Likewise.
5399 * go-lang.c (go_language_data): Likewise.
5400 * language.c (unk_lang_value_print): Delete.
5401 (language_defn::value_print): Define new member function.
5402 (unknown_language_data): Delete la_value_print initializer.
5403 (unknown_language::value_print): New member function.
5404 (auto_language_data): Delete la_value_print initializer.
5405 (auto_language::value_print): New member function.
5406 * language.h (language_data): Delete la_value_print field.
5407 (language_defn::value_print): Declare new member function.
5408 (LA_VALUE_PRINT): Update call to value_print.
5409 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5410 * objc-lang.c (objc_language_data): Likewise.
5411 * opencl-lang.c (opencl_language_data): Likewise.
5412 * p-lang.c (pascal_language_data): Likewise.
5413 (pascal_language::value_print): New member function.
5414 * rust-lang.c (rust_language_data): Delete la_value_print
5415 initializer.
5416
5417 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5418
5419 * ada-lang.c (ada_watch_location_expression): Rename to
5420 ada_language::watch_location_expression.
5421 (ada_language_data): Delete la_watch_location_expression
5422 initializer.
5423 (ada_language::watch_location_expression): New member function,
5424 implementation from ada_watch_location_expression.
5425 * breakpoint.c (watch_command_1): Update call to
5426 watch_location_expression.
5427 * c-lang.c (c_watch_location_expression): Rename to
5428 language_defn::watch_location_expression.
5429 (c_language_data): Delete la_watch_location_expression
5430 initializer.
5431 (cplus_language_data): Likewise.
5432 (asm_language_data): Likewise.
5433 (minimal_language_data): Likewise.
5434 * c-lang.h (c_watch_location_expression): Delete declaration.
5435 * d-lang.c (d_language_data): Delete la_watch_location_expression
5436 initializer.
5437 * f-lang.c (f_language_data): Likewise.
5438 * go-lang.c (go_language_data): Likewise.
5439 * language.c (language_defn::watch_location_expression): Member
5440 function implementation from c_watch_location_expression.
5441 (unknown_language_data): Delete la_watch_location_expression
5442 initializer.
5443 (auto_language_data): Likewise.
5444 * language.h (language_data): Delete la_watch_location_expression
5445 field.
5446 (language_defn::watch_location_expression): Declare new member
5447 function.
5448 * m2-lang.c (m2_language_data): Delete
5449 la_watch_location_expression initializer.
5450 * objc-lang.c (objc_language_data): Likewise.
5451 * opencl-lang.c (opencl_language_data): Likewise.
5452 * p-lang.c (pascal_language_data): Likewise.
5453 * rust-lang.c (rust_watch_location_expression): Rename to
5454 rust_language::watch_location_expression.
5455 (rust_language_data): Delete la_watch_location_expression
5456 initializer.
5457 (rust_language::watch_location_expression): New member function,
5458 implementation from rust_watch_location_expression.
5459
5460 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5461
5462 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5463 ada_language::collect_symbol_completion_matches.
5464 (ada_language_data): Delete la_collect_symbol_completion_matches
5465 initializer.
5466 (ada_language::collect_symbol_completion_matches): New member
5467 function, implementation from
5468 ada_collect_symbol_completion_matches.
5469 * c-lang.c (c_language_data): Delete
5470 la_collect_symbol_completion_matches initializer.
5471 (cplus_language_data): Likewise.
5472 (asm_language_data): Likewise.
5473 (minimal_language_data): Likewise.
5474 * d-lang.c (d_language_data): Likewise.
5475 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5476 f_language::collect_symbol_completion_matches.
5477 (f_language_data): Delete la_collect_symbol_completion_matches
5478 initializer.
5479 (f_language::collect_symbol_completion_matches) New member
5480 function, implementation from f_collect_symbol_completion_matches.
5481 * go-lang.c (go_language_data): Delete
5482 la_collect_symbol_completion_matches initializer.
5483 * language.c (unknown_language_data): Likewise.
5484 (auto_language_data): Likewise.
5485 * language.h (language_data): Delete
5486 la_collect_symbol_completion_matches field.
5487 (language_defn::collect_symbol_completion_matches): New member
5488 function.
5489 * m2-lang.c (m2_language_data): Delete
5490 la_collect_symbol_completion_matches initializer.
5491 * objc-lang.c (objc_language_data): Likewise.
5492 * opencl-lang.c (opencl_language_data): Likewise.
5493 * p-lang.c (pascal_language_data): Likewise.
5494 * rust-lang.c (rust_language_data): Likewise.
5495 * symtab.c (default_collect_symbol_completion_matches): Delete.
5496 (collect_symbol_completion_matches): Update call to
5497 collect_symbol_completion_matches.
5498 (collect_symbol_completion_matches_type): Likewise.
5499 * symtab.h (default_collect_symbol_completion_matches): Delete
5500 declaration.
5501
5502 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5505 (ada_language_data): Delete la_word_break_characters initializer.
5506 (ada_language::word_break_characters): New member function.
5507 * c-lang.c (c_language_data): Delete la_word_break_characters
5508 initializer.
5509 (cplus_language_data): Likewise.
5510 (asm_language_data): Likewise.
5511 (minimal_language_data): Likewise.
5512 * completer.c: Update global comment.
5513 (advance_to_expression_complete_word_point): Update call to
5514 word_break_characters.
5515 (complete_files_symbols): Likewise.
5516 (complete_line_internal_1): Likewise.
5517 (default_completer_handle_brkchars): Likewise.
5518 (skip_quoted_chars): Likewise.
5519 * d-lang.c (d_language_data): Delete la_word_break_characters
5520 initializer.
5521 * f-lang.c (f_word_break_characters): Delete.
5522 (f_language_data): Delete la_word_break_characters initializer.
5523 (f_language::word_break_characters): New member function.
5524 * go-lang.c (go_language_data): Delete la_word_break_characters
5525 initializer.
5526 * language.c (unknown_language_data): Likewise.
5527 (auto_language_data): Likewise.
5528 * language.h (default_word_break_characters): Move declaration to
5529 earlier in the file.
5530 (language_data): Delete la_word_break_characters field.
5531 (language_defn::word_break_characters): New member function.
5532 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5533 initializer.
5534 * objc-lang.c (objc_language_data): Likewise.
5535 * opencl-lang.c (opencl_language_data): Likewise.
5536 * p-lang.c (pascal_language_data): Likewise.
5537 * rust-lang.c (rust_language_data): Likewise.
5538
5539 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5542 (ada_language_data): Delete la_get_symbol_name_matcher
5543 initializer.
5544 (language_defn::get_symbol_name_matcher_inner): New member
5545 function.
5546 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5547 initializer.
5548 (cplus_language_data): Likewise.
5549 (cplus_language::get_symbol_name_matcher_inner): New member
5550 function.
5551 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5552 (minimal_language_data): Likewise.
5553 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5554 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5555 initializer.
5556 * dictionary.c (iter_match_first_hashed): Update call to
5557 get_symbol_name_matcher.
5558 (iter_match_next_hashed): Likewise.
5559 (iter_match_next_linear): Likewise.
5560 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5561 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5562 initializer.
5563 (f_language::get_symbol_name_matcher_inner): New member function.
5564 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5565 initializer.
5566 * language.c (default_symbol_name_matcher): Update header comment,
5567 make static.
5568 (language_defn::get_symbol_name_matcher): New definition.
5569 (language_defn::get_symbol_name_matcher_inner): Likewise.
5570 (get_symbol_name_matcher): Delete.
5571 (unknown_language_data): Delete la_get_symbol_name_matcher
5572 initializer.
5573 (auto_language_data): Likewise.
5574 * language.h (language_data): Delete la_get_symbol_name_matcher
5575 field.
5576 (language_defn::get_symbol_name_matcher): New member function.
5577 (language_defn::get_symbol_name_matcher_inner): Likewise.
5578 (default_symbol_name_matcher): Delete declaration.
5579 * linespec.c (find_methods): Update call to
5580 get_symbol_name_matcher.
5581 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5582 initializer.
5583 * minsyms.c (lookup_minimal_symbol): Update call to
5584 get_symbol_name_matcher.
5585 (iterate_over_minimal_symbols): Likewise.
5586 * objc-lang.c (objc_language_data): Delete
5587 la_get_symbol_name_matcher initializer.
5588 * opencl-lang.c (opencl_language_data): Likewise.
5589 * p-lang.c (pascal_language_data): Likewise.
5590 * psymtab.c (psymbol_name_matches): Update call to
5591 get_symbol_name_matcher.
5592 * rust-lang.c (rust_language_data): Delete
5593 la_get_symbol_name_matcher initializer.
5594 * symtab.c (symbol_matches_search_name): Update call to
5595 get_symbol_name_matcher.
5596 (compare_symbol_name): Likewise.
5597
5598 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5599
5600 * ada-lang.c (ada_language_data): Delete la_compute_program
5601 initializer.
5602 * c-lang.c (c_language_data): Likewise.
5603 (c_language::compute_program): New member function.
5604 (cplus_language_data): Delete la_compute_program initializer.
5605 (cplus_language::compute_program): New member function.
5606 (asm_language_data): Delete la_compute_program initializer.
5607 (minimal_language_data): Likewise.
5608 * c-lang.h (c_compute_program): Update comment.
5609 (cplus_compute_program): Likewise.
5610 * compile/compile-c-support.c (c_compute_program): Likewise.
5611 (cplus_compute_program): Likewise.
5612 * compile/compile.c (compile_to_object): Update call to
5613 la_compute_program.
5614 * d-lang.c (d_language_data): Delete la_compute_program
5615 initializer.
5616 * f-lang.c (f_language_data): Likewise.
5617 * go-lang.c (go_language_data): Likewise.
5618 * language.c (unknown_language_data): Likewise.
5619 (auto_language_data): Likewise.
5620 * language.h (language_data): Delete la_compute_program field.
5621 (language_defn::compute_program): New member function.
5622 * m2-lang.c (m2_language_data): Delete la_compute_program
5623 initializer.
5624 * objc-lang.c (objc_language_data): Likewise.
5625 * opencl-lang.c (opencl_language_data): Likewise.
5626 * p-lang.c (pascal_language_data): Likewise.
5627 * rust-lang.c (rust_language_data): Likewise.
5628
5629 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5630
5631 * ada-lang.c (ada_language_data) Delete
5632 la_class_name_from_physname initializer.
5633 * c-lang.c (c_language_data): Likewise.
5634 (cplus_language_data): Likewise.
5635 (cplus_language::class_name_from_physname): New member function.
5636 (asm_language_data): Delete la_class_name_from_physname
5637 initializer.
5638 (minimal_language_data): Likewise.
5639 * d-lang.c (d_language_data): Likewise.
5640 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5641 method on language_defn class.
5642 (guess_full_die_structure_name): Likewise.
5643 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5644 initializer.
5645 * go-lang.c (go_language_data): Likewise.
5646 * language.c (language_class_name_from_physname): Delete.
5647 (unk_lang_class_name): Delete.
5648 (unknown_language_data): Delete la_class_name_from_physname
5649 initializer.
5650 (auto_language_data): Likewise.
5651 * language.h (language_data): Delete la_class_name_from_physname
5652 field.
5653 (language_defn::class_name_from_physname): New function.
5654 (language_class_name_from_physname): Delete declaration.
5655 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5656 initializer.
5657 * objc-lang.c (objc_language_data): Likewise.
5658 * opencl-lang.c (opencl_language_data): Likewise.
5659 * p-lang.c (pascal_language_data): Likewise.
5660 * rust-lang.c (rust_language_data): Likewise.
5661
5662 2020-06-16 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-data.h (STATUS_NAME): New macro.
5665 * tui/tui-layout.c (tui_remove_some_windows)
5666 (initialize_known_windows, tui_register_window)
5667 (tui_layout_split::remove_windows, initialize_layouts)
5668 (tui_new_layout_command): Don't use hard-coded window names.
5669
5670 2020-06-16 Tom Tromey <tom@tromey.com>
5671
5672 PR tui/25348:
5673 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5674 tui_initialize_readline. Only run once. Call rl_initialize.
5675 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5676 tui_initialize_readline.
5677 * tui/tui-io.c (tui_setup_io): Call
5678 tui_ensure_readline_initialized.
5679 * tui/tui-interp.c (tui_interp::init): Update.
5680
5681 2020-06-16 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5684 Also preserve the status window.
5685
5686 2020-06-16 Tom Tromey <tom@tromey.com>
5687
5688 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5689 where m_window==nullptr.
5690
5691 2020-06-15 Tom Tromey <tromey@adacore.com>
5692
5693 * windows-nat.c (windows_nat::handle_output_debug_string):
5694 Update.
5695 (windows_nat::handle_ms_vc_exception): Update.
5696 * target.h (target_read_string): Change API.
5697 * target.c (target_read_string): Change API.
5698 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5699 Update.
5700 * solib-frv.c (frv_current_sos): Update.
5701 * solib-dsbt.c (dsbt_current_sos): Update.
5702 * solib-darwin.c (darwin_current_sos): Update.
5703 * linux-thread-db.c (inferior_has_bug): Update.
5704 * expprint.c (print_subexp_standard): Update.
5705 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5706 (ada_exception_message_1): Update.
5707
5708 2020-06-15 Tom Tromey <tromey@adacore.com>
5709
5710 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5711
5712 2020-06-15 Tom Tromey <tromey@adacore.com>
5713
5714 * valprint.c (read_string): Update comment.
5715 * target.c (MIN): Remove.
5716 (target_read_string): Rewrite.
5717
5718 2020-06-15 Tom Tromey <tromey@adacore.com>
5719
5720 * corefile.c (read_memory_string): Remove.
5721 * ada-valprint.c (ada_value_print_ptr): Update.
5722 * ada-lang.h (ada_tag_name): Change return type.
5723 * ada-lang.c (type_from_tag): Update.
5724 (ada_tag_name_from_tsd): Change return type. Use
5725 target_read_string.
5726 (ada_tag_name): Likewise.
5727 * gdbcore.h (read_memory_string): Don't declare.
5728
5729 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5730
5731 * symtab.c (rbreak_command): Ignore Windows drive colon.
5732
5733 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5734
5735 * NEWS: Mention removed GDBserver host support.
5736
5737 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5738
5739 * features/riscv/rebuild-csr-xml.sh: Updated.
5740
5741 2020-06-11 Tom Tromey <tom@tromey.com>
5742
5743 PR gdb/18318:
5744 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5745
5746 2020-06-09 Jonny Grant <jg@jguk.org>
5747 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5748
5749 * main.c (captured_main_1): Don't print new line after help.
5750 (print_gdb_help): add mailing list and IRC channel information
5751 to --help. Add new lines between items in the footer. Remove
5752 quotes around bug url.
5753
5754 2020-06-11 Keith Seitz <keiths@redhat.com>
5755
5756 PR gdb/21356
5757 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5758 Resolve typedefs for type length calculations.
5759
5760 2020-06-10 Tom de Vries <tdevries@suse.de>
5761
5762 PR ada/24713
5763 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5764 (write_psymbols): Enable .gdb_index for ada.
5765 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5766 ada.
5767
5768 2020-06-10 Tom de Vries <tdevries@suse.de>
5769
5770 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5771 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5772 namei" instead of "const char *name" argument.
5773 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5774 dw2_symtab_iter_init.
5775
5776 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5779 to use type::field and field::type instead.
5780
5781 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5782
5783 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5784 to use field::type instead.
5785
5786 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5787
5788 * gdbtypes.h (struct field) <type, set_type>: New methods.
5789 Rename `type` field to...
5790 <m_type>: ... this. Change references throughout to use type or
5791 set_type methods.
5792 (FIELD_TYPE): Use field::type. Change call sites that modify
5793 the field's type to use field::set_type instead.
5794
5795 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5796
5797 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5798 to use type::index_type instead.
5799
5800 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5803 methods.
5804 (TYPE_INDEX_TYPE): Use type::index_type.
5805 * gdbtypes.c (create_array_type_with_stride): Likewise.
5806
5807 2020-06-07 Tom Tromey <tom@tromey.com>
5808
5809 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5810 parameter.
5811 (generic_value_print): Update.
5812
5813 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5814
5815 Revert commit 982a38f60b0.
5816 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5817
5818 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5819
5820 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5821 avoid use after free.
5822
5823 2020-06-05 Tom de Vries <tdevries@suse.de>
5824
5825 * NEWS: Fix typos.
5826
5827 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5828
5829 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5830 the per_bfd object.
5831 (dwarf2_read_debug_names): Likewise.
5832 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5833 object when re-using a per_bfd object with an index.
5834
5835 2020-06-03 Tom de Vries <tdevries@suse.de>
5836
5837 PR symtab/26046
5838 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5839 children for C++.
5840 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5841 DW_TAG_subprogram.
5842
5843 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5844
5845 * ada-lang.c (ada_language_data): Delete skip_trampoline
5846 initializer.
5847 * c-lang.c (c_language_data): Likewise.
5848 (cplus_language_data): Likewise.
5849 (cplus_language::skip_trampoline): New member function.
5850 (asm_language_data): Delete skip_trampoline initializer.
5851 (minimal_language_data): Likewise.
5852 * d-lang.c (d_language_data): Likewise.
5853 * f-lang.c (f_language_data): Likewise.
5854 * go-lang.c (go_language_data): Likewise.
5855 * language.c (unk_lang_trampoline): Delete function.
5856 (skip_language_trampoline): Update.
5857 (unknown_language_data): Delete skip_trampoline initializer.
5858 (auto_language_data): Likewise.
5859 * language.h (language_data): Delete skip_trampoline field.
5860 (language_defn::skip_trampoline): New function.
5861 * m2-lang.c (m2_language_data): Delete skip_trampoline
5862 initializer.
5863 * objc-lang.c (objc_skip_trampoline): Delete function, move
5864 implementation to objc_language::skip_trampoline.
5865 (objc_language_data): Delete skip_trampoline initializer.
5866 (objc_language::skip_trampoline): New member function with
5867 implementation from objc_skip_trampoline.
5868 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5869 initializer.
5870 * p-lang.c (pascal_language_data): Likewise.
5871 * rust-lang.c (rust_language_data): Likewise.
5872
5873 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5876 (ada_language::demangle): New member function.
5877 * c-lang.c (c_language_data): Delete la_demangle initializer.
5878 (cplus_language_data): Delete la_demangle initializer.
5879 (cplus_language::demangle): New member function.
5880 (asm_language_data): Delete la_demangle initializer.
5881 (minimal_language_data): Delete la_demangle initializer.
5882 * d-lang.c (d_language_data): Delete la_demangle initializer.
5883 (d_language::demangle): New member function.
5884 * f-lang.c (f_language_data): Delete la_demangle initializer.
5885 (f_language::demangle): New member function.
5886 * go-lang.c (go_language_data): Delete la_demangle initializer.
5887 (go_language::demangle): New member function.
5888 * language.c (language_demangle): Update.
5889 (unk_lang_demangle): Delete.
5890 (unknown_language_data): Delete la_demangle initializer.
5891 (unknown_language::demangle): New member function.
5892 (auto_language_data): Delete la_demangle initializer.
5893 (auto_language::demangle): New member function.
5894 * language.h (language_data): Delete la_demangle field.
5895 (language_defn::demangle): New function.
5896 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5897 * objc-lang.c (objc_language_data): Delete la_demangle
5898 initializer.
5899 (objc_language::demangle): New member function.
5900 * opencl-lang.c (opencl_language_data): Delete la_demangle
5901 initializer.
5902 * p-lang.c (pascal_language_data): Likewise.
5903 * rust-lang.c (rust_language_data): Likewise.
5904 (rust_language::demangle): New member function.
5905
5906 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5907
5908 * ada-lang.c (ada_language_data): Delete la_print_type
5909 initializer.
5910 (ada_language::print_type): New member function.
5911 * c-lang.c (c_language_data): Delete la_print_type initializer.
5912 (c_language::print_type): New member function.
5913 (cplus_language_data): Delete la_print_type initializer.
5914 (cplus_language::print_type): New member function.
5915 (asm_language_data): Delete la_print_type initializer.
5916 (asm_language::print_type): New member function.
5917 (minimal_language_data): Delete la_print_type initializer.
5918 (minimal_language::print_type): New member function.
5919 * d-lang.c (d_language_data): Delete la_print_type initializer.
5920 (d_language::print_type): New member function.
5921 * f-lang.c (f_language_data): Delete la_print_type initializer.
5922 (f_language::print_type): New member function.
5923 * go-lang.c (go_language_data): Delete la_print_type initializer.
5924 (go_language::print_type): New member function.
5925 * language.c (unk_lang_print_type): Delete.
5926 (unknown_language_data): Delete la_print_type initializer.
5927 (unknown_language::print_type): New member function.
5928 (auto_language_data): Delete la_print_type initializer.
5929 (auto_language::print_type): New member function.
5930 * language.h (language_data): Delete la_print_type field.
5931 (language_defn::print_type): New function.
5932 (LA_PRINT_TYPE): Update.
5933 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5934 (m2_language::print_type): New member function.
5935 * objc-lang.c (objc_language_data): Delete la_print_type
5936 initializer.
5937 (objc_language::print_type): New member function.
5938 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5939 to opencl_language::print_type.
5940 (opencl_language_data): Delete la_print_type initializer.
5941 (opencl_language::print_type): New member function, implementation
5942 from opencl_print_type.
5943 * p-lang.c (pascal_language_data): Delete la_print_type
5944 initializer.
5945 (pascal_language::print_type): New member function.
5946 * rust-lang.c (rust_print_type): Delete, implementation moved to
5947 rust_language::print_type.
5948 (rust_language_data): Delete la_print_type initializer.
5949 (rust_language::print_type): New member function, implementation
5950 from rust_print_type.
5951
5952 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5953
5954 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5955 implementation moves to...
5956 (ada_language::sniff_from_mangled_name): ...here. Update return
5957 type.
5958 (ada_language_data): Delete la_sniff_from_mangled_name
5959 initializer.
5960 * c-lang.c (c_language_data): Likewise.
5961 (cplus_language_data): Likewise.
5962 (cplus_language::sniff_from_mangled_name): New member function,
5963 implementation taken from gdb_sniff_from_mangled_name.
5964 (asm_language_data): Delete la_sniff_from_mangled_name
5965 initializer.
5966 (minimal_language_data): Likewise.
5967 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5968 implementation moves to cplus_language::sniff_from_mangled_name.
5969 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5970 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5971 moves to...
5972 (d_language::sniff_from_mangled_name): ...here.
5973 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5974 * f-lang.c (f_language_data): Likewise.
5975 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5976 moves to...
5977 (go_language::sniff_from_mangled_name): ...here.
5978 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5979 * language.c (language_sniff_from_mangled_name): Delete.
5980 (unknown_language_data): Delete la_sniff_from_mangled_name
5981 initializer.
5982 (auto_language_data): Likewise.
5983 * language.h (language_data): Delete la_sniff_from_mangled_name
5984 field.
5985 (language_defn::sniff_from_mangled_name): New function.
5986 (language_sniff_from_mangled_name): Delete declaration.
5987 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5988 field.
5989 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5990 implementation moves to...
5991 (objc_language::sniff_from_mangled_name): ...here.
5992 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5993 * opencl-lang.c (opencl_language_data): Likewise.
5994 * p-lang.c (pascal_language_data): Likewise.
5995 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5996 implementation moves to...
5997 (rust_language::sniff_from_mangled_name): ...here.
5998 (rust_language_data): Delete la_sniff_from_mangled_name
5999 initializer.
6000 * symtab.c (symbol_find_demangled_name): Call
6001 sniff_from_mangled_name member function.
6002
6003 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6004
6005 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6006 initializer.
6007 * c-lang.c (c_language_data): Likewise.
6008 (cplus_language_data): Likewise.
6009 (cplus_language::search_name_hash): New member function.
6010 (asm_language_data): Delete la_search_name_hash initializer.
6011 (minimal_language_data): Likewise.
6012 * d-lang.c (d_language_data): Likewise.
6013 * dictionary.c (default_search_name_hash): Rename to...
6014 (language_defn::search_name_hash): ...this.
6015 * f-lang.c (f_language_data): Likewise.
6016 (f_language::search_name_hash): New member function.
6017 * go-lang.c (go_language_data): Delete la_search_name_hash
6018 initializer.
6019 * language.c (unknown_language_data): Likewise.
6020 (auto_language_data): Likewise.
6021 * language.h (struct language_data): Delete la_search_name_hash
6022 field.
6023 (language_defn::search_name_hash): Declare new member function.
6024 (default_search_name_hash): Delete declaration.
6025 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6026 initializer.
6027 * objc-lang.c (objc_language_data): Likewise.
6028 * opencl-lang.c (opencl_language_data): Likewise.
6029 * p-lang.c (pascal_language_data): Likewise.
6030 * rust-lang.c (rust_language_data): Likewise.
6031 * symtab.c (search_name_hash): Update call.
6032
6033 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6034
6035 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6036 initializer.
6037 * c-lang.c (class compile_instance): Declare.
6038 (c_language_data): Delete la_get_compile_instance initializer.
6039 (c_language::get_compile_instance): New member function.
6040 (cplus_language_data): Delete la_get_compile_instance initializer.
6041 (cplus_language::get_compile_instance): New member function.
6042 (asm_language_data): Delete la_get_compile_instance initializer.
6043 (minimal_language_data): Likewise.
6044 * c-lang.h (c_get_compile_context): Update comment.
6045 (cplus_get_compile_context): Update comment.
6046 * compile/compile.c (compile_to_object): Update calls, don't rely
6047 on function pointer being NULL.
6048 * d-lang.c (d_language_data): Delete la_get_compile_instance
6049 initializer.
6050 * f-lang.c (f_language_data): Likewise.
6051 * go-lang.c (go_language_data): Likewise.
6052 * language.c (unknown_language_data): Likewise.
6053 (auto_language_data): Likewise.
6054 * language.h (language_data): Delete la_get_compile_instance field.
6055 (language_defn::get_compile_instance): New member function.
6056 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6057 initializer.
6058 * objc-lang.c (objc_language_data): Likewise.
6059 * opencl-lang.c (opencl_language_data): Likewise.
6060 * p-lang.c (pascal_language_data): Likewise.
6061 * rust-lang.c (rust_language_data): Likewise.
6062
6063 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6064
6065 * ada-lang.c (ada_add_all_symbols): Update comment.
6066 (ada_iterate_over_symbols): Delete, move implementation to...
6067 (ada_language::iterate_over_symbols): ...here, a new member
6068 function, rewrite to use range based for loop.
6069 (ada_language_data): Delete la_iterate_over_symbols initializer.
6070 * c-lang.c (c_language_data): Likewise.
6071 (cplus_language_data): Likewise.
6072 (asm_language_data): Likewise.
6073 (minimal_language_data): Likewise.
6074 * d-lang.c (d_language_data): Likewise.
6075 * f-lang.c (f_language_data): Likewise.
6076 * go-lang.c (go_language_data): Likewise.
6077 * language.c (unknown_language_data): Likewise.
6078 (auto_language_data): Likewise.
6079 * language.h (language_data): Delete la_iterate_over_symbols field.
6080 (language_defn::iterate_over_symbols): New member function.
6081 (LA_ITERATE_OVER_SYMBOLS): Update.
6082 * linespec.c (iterate_over_all_matching_symtabs): Update.
6083 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6084 initializer.
6085 * objc-lang.c (objc_language_data): Likewise.
6086 * opencl-lang.c (opencl_language_data): Likewise.
6087 * p-lang.c (pascal_language_data): Likewise.
6088 * rust-lang.c (rust_language_data): Likewise.
6089
6090 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6091
6092 * ada-lang.c (ada_language_data): Delete
6093 la_lookup_transparent_type initializer.
6094 * c-lang.c (c_language_data): Likewise.
6095 (cplus_language_data): Likewise.
6096 (cplus_language::lookup_transparent_type): New member function.
6097 (asm_language_data): Delete la_lookup_transparent_type
6098 initializer.
6099 (minimal_language_data): Likewise.
6100 * d-lang.c (d_language_data): Likewise.
6101 * f-lang.c (f_language_data): Likewise.
6102 * go-lang.c (go_language_data): Likewise.
6103 * language.c (unknown_language_data): Likewise.
6104 (auto_language_data): Likewise.
6105 * language.h (struct language_data): Delete
6106 la_lookup_transparent_type field.
6107 (language_defn::lookup_transparent_type): New member function.
6108 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6109 initializer.
6110 * objc-lang.c (objc_language_data): Likewise.
6111 * opencl-lang.c (opencl_language_data): Likewise.
6112 * p-lang.c (pascal_language_data): Likewise.
6113 * rust-lang.c (rust_language_data): Likewise.
6114 * symtab.c (symbol_matches_domain): Update call.
6115
6116 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6117
6118 * ada-lang.c (ada_language_arch_info): Delete function, move
6119 implementation to...
6120 (ada_language::language_arch_info): ...here, a new member
6121 function.
6122 (ada_language_data): Delete la_language_arch_info.
6123 * c-lang.c (c_language_data): Likewise.
6124 (c_language::language_arch_info): New member function.
6125 (cplus_language_arch_info): Delete function, move
6126 implementation to...
6127 (cplus_language::language_arch_info): ...here, a new member
6128 function.
6129 (cplus_language_data): Delete la_language_arch_info.
6130 (asm_language_data): Likewise.
6131 (asm_language::language_arch_info): New member function.
6132 (minimal_language_data): Delete la_language_arch_info.
6133 (minimal_language::language_arch_info): New member function.
6134 * d-lang.c (d_language_arch_info): Delete function, move
6135 implementation to...
6136 (d_language::language_arch_info): ...here, a new member
6137 function.
6138 (d_language_data): Delete la_language_arch_info.
6139 * f-lang.c (f_language_arch_info): Delete function, move
6140 implementation to...
6141 (f_language::language_arch_info): ...here, a new member
6142 function.
6143 (f_language_data): Delete la_language_arch_info.
6144 * go-lang.c (go_language_arch_info): Delete function, move
6145 implementation to...
6146 (go_language::language_arch_info): ...here, a new member
6147 function.
6148 (go_language_data): Delete la_language_arch_info.
6149 * language.c (unknown_language_data): Likewise.
6150 (unknown_language::language_arch_info): New member function.
6151 (auto_language_data): Delete la_language_arch_info.
6152 (auto_language::language_arch_info): New member function.
6153 (language_gdbarch_post_init): Update call to
6154 la_language_arch_info.
6155 * language.h (language_data): Delete la_language_arch_info
6156 function pointer.
6157 (language_defn::language_arch_info): New function.
6158 * m2-lang.c (m2_language_arch_info): Delete function, move
6159 implementation to...
6160 (m2_language::language_arch_info): ...here, a new member
6161 function.
6162 (m2_language_data): Delete la_language_arch_info.
6163 * objc-lang.c (objc_language_arch_info): Delete function, move
6164 implementation to...
6165 (objc_language::language_arch_info): ...here, a new member
6166 function.
6167 (objc_language_data): Delete la_language_arch_info.
6168 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6169 implementation to...
6170 (opencl_language::language_arch_info): ...here, a new member
6171 function.
6172 (opencl_language_data): Delete la_language_arch_info.
6173 * p-lang.c (pascal_language_arch_info): Delete function, move
6174 implementation to...
6175 (pascal_language::language_arch_info): ...here, a new member
6176 function.
6177 (pascal_language_data): Delete la_language_arch_info.
6178 * rust-lang.c (rust_language_arch_info): Delete function, move
6179 implementation to...
6180 (rust_language::language_arch_info): ...here, a new member
6181 function.
6182 (rust_language_data): Delete la_language_arch_info.
6183
6184 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6185
6186 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6187 initializer.
6188 * c-lang.c (c_language_data): Likewise.
6189 (cplus_language_data): Likewise.
6190 (cplus_language::pass_by_reference_info): New method.
6191 (asm_language_data): Delete la_pass_by_reference initializer.
6192 (minimal_language_data): Likewise.
6193 * cp-abi.c (cp_pass_by_reference): Remove use of
6194 default_pass_by_reference.
6195 * d-lang.c (d_language_data): Likewise.
6196 * f-lang.c (f_language_data): Likewise.
6197 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6198 default_pass_by_reference.
6199 * go-lang.c (go_language_data): Likewise.
6200 * language.c (language_pass_by_reference): Update.
6201 (default_pass_by_reference): Delete.
6202 (unknown_language_data): Delete la_pass_by_reference
6203 initializer.
6204 (auto_language_data): Likewise.
6205 * language.h (struct language_data): Delete la_pass_by_reference
6206 field.
6207 (language_defn::pass_by_reference_info): New member function.
6208 (default_pass_by_reference): Delete declaration.
6209 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6210 initializer.
6211 * objc-lang.c (objc_language_data): Likewise.
6212 * opencl-lang.c (opencl_language_data): Likewise.
6213 * p-lang.c (pascal_language_data): Likewise.
6214 * rust-lang.c (rust_language_data): Likewise.
6215
6216 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6217
6218 * ada-lang.c (ada_read_var_value): Delete function, move
6219 implementation to...
6220 (ada_language::read_var_value): ...here.
6221 (ada_language_data): Delete la_read_var_value initializer.
6222 * c-lang.c (c_language_data): Likewise.
6223 (cplus_language_data): Likewise.
6224 (minimal_language_data): Likewise.
6225 * d-lang.c (d_language_data): Likewise.
6226 * f-lang.c (f_language_data): Likewise.
6227 * findvar.c (default_read_var_value): Rename to...
6228 (language_defn::read_var_value): ...this.
6229 * findvar.c (read_var_value): Update header comment, and change to
6230 call member function instead of function pointer.
6231 * go-lang.c (go_language_data): Likewise.
6232 * language.c (unknown_language_data): Delete la_read_var_value
6233 initializer.
6234 (auto_language_data): Likewise.
6235 * language.h (struct language_data): Delete la_read_var_value
6236 field.
6237 (language_defn::read_var_value): New member function.
6238 (default_read_var_value): Delete declaration.
6239 * m2-lang.c (m2_language_data): Delete la_read_var_value
6240 initializer.
6241 * objc-lang.c (objc_language_data): Likewise.
6242 * opencl-lang.c (opencl_language_data): Likewise.
6243 * p-lang.c (pascal_language_data): Likewise.
6244 * rust-lang.c (rust_language_data): Likewise.
6245 * value.h (default_read_var_value): Delete declaration.
6246
6247 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * ada-lang.c (ada_print_array_index): Delete function, move
6250 implementation to...
6251 (ada_language::print_array_index): ...here.
6252 (ada_language_data): Delete la_print_array_index initializer.
6253 * c-lang.c (c_language_data): Likewise.
6254 (cplus_language_data): Likewise.
6255 (minimal_language_data): Likewise.
6256 * d-lang.c (d_language_data): Likewise.
6257 * f-lang.c (f_language_data): Likewise.
6258 * go-lang.c (go_language_data): Likewise.
6259 * language.c (default_print_array_index): Delete function, move
6260 implementation to...
6261 (language_defn::print_array_index): ...here.
6262 (unknown_language_data): Delete la_print_array_index initializer.
6263 (auto_language_data): Likewise.
6264 * language.h (struct language_data): Delete la_print_array_index
6265 field.
6266 (language_defn::print_array_index): New member function.
6267 (LA_PRINT_ARRAY_INDEX): Update.
6268 (default_print_array_index): Delete declaration.
6269 * m2-lang.c (m2_language_data): Delete la_print_array_index
6270 initializer.
6271 * objc-lang.c (objc_language_data): Likewise.
6272 * opencl-lang.c (opencl_language_data): Likewise.
6273 * p-lang.c (pascal_language_data): Likewise.
6274 * rust-lang.c (rust_language_data): Likewise.
6275
6276 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6277
6278 * gdb/ada-lang.c (ada_language_defn): Convert to...
6279 (ada_language_data): ...this.
6280 (class ada_language): New class.
6281 (ada_language_defn): New static global.
6282 * gdb/c-lang.c (c_language_defn): Convert to...
6283 (c_language_data): ...this.
6284 (class c_language): New class.
6285 (c_language_defn): New static global.
6286 (cplus_language_defn): Convert to...
6287 (cplus_language_data): ...this.
6288 (class cplus_language): New class.
6289 (cplus_language_defn): New static global.
6290 (asm_language_defn): Convert to...
6291 (asm_language_data): ...this.
6292 (class asm_language): New class.
6293 (asm_language_defn): New static global.
6294 (minimal_language_defn): Convert to...
6295 (minimal_language_data): ...this.
6296 (class minimal_language): New class.
6297 (minimal_language_defn): New static global.
6298 * gdb/d-lang.c (d_language_defn): Convert to...
6299 (d_language_data): ...this.
6300 (class d_language): New class.
6301 (d_language_defn): New static global.
6302 * gdb/f-lang.c (f_language_defn): Convert to...
6303 (f_language_data): ...this.
6304 (class f_language): New class.
6305 (f_language_defn): New static global.
6306 * gdb/go-lang.c (go_language_defn): Convert to...
6307 (go_language_data): ...this.
6308 (class go_language): New class.
6309 (go_language_defn): New static global.
6310 * gdb/language.c (unknown_language_defn): Remove declaration.
6311 (current_language): Initialize to nullptr, real initialization is
6312 moved to _initialize_language.
6313 (languages): Delete global.
6314 (language_defn::languages): Define.
6315 (set_language_command): Use language_defn::languages.
6316 (set_language): Likewise.
6317 (range_error): Likewise.
6318 (language_enum): Likewise.
6319 (language_def): Likewise.
6320 (add_set_language_command): Use language_def::languages for the
6321 language list, and language_def to lookup language pointers.
6322 (skip_language_trampoline): Use language_defn::languages.
6323 (unknown_language_defn): Convert to...
6324 (unknown_language_data): ...this.
6325 (class unknown_language): New class.
6326 (unknown_language_defn): New static global.
6327 (auto_language_defn): Convert to...
6328 (auto_language_data): ...this.
6329 (class auto_language): New class.
6330 (auto_language_defn): New static global.
6331 (language_gdbarch_post_init): Use language_defn::languages.
6332 (_initialize_language): Initialize current_language.
6333 * gdb/language.h (struct language_defn): Rename to...
6334 (struct language_data): ...this.
6335 (struct language_defn): New.
6336 (auto_language_defn): Delete.
6337 (unknown_language_defn): Delete.
6338 (minimal_language_defn): Delete.
6339 (ada_language_defn): Delete.
6340 (asm_language_defn): Delete.
6341 (c_language_defn): Delete.
6342 (cplus_language_defn): Delete.
6343 (d_language_defn): Delete.
6344 (f_language_defn): Delete.
6345 (go_language_defn): Delete.
6346 (m2_language_defn): Delete.
6347 (objc_language_defn): Delete.
6348 (opencl_language_defn): Delete.
6349 (pascal_language_defn): Delete.
6350 (rust_language_defn): Delete.
6351 * gdb/m2-lang.c (m2_language_defn): Convert to...
6352 (m2_language_data): ...this.
6353 (class m2_language): New class.
6354 (m2_language_defn): New static global.
6355 * gdb/objc-lang.c (objc_language_defn): Convert to...
6356 (objc_language_data): ...this.
6357 (class objc_language): New class.
6358 (objc_language_defn): New static global.
6359 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6360 (opencl_language_data): ...this.
6361 (class opencl_language): New class.
6362 (opencl_language_defn): New static global.
6363 * gdb/p-lang.c (pascal_language_defn): Convert to...
6364 (pascal_language_data): ...this.
6365 (class pascal_language): New class.
6366 (pascal_language_defn): New static global.
6367 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6368 language pointer, update comment format.
6369 * gdb/rust-lang.c (rust_language_defn): Convert to...
6370 (rust_language_data): ...this.
6371 (class rust_language): New class.
6372 (rust_language_defn): New static global.
6373
6374 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6375
6376 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6377 member variable.
6378 <m_stmt_at_address>: New member variable.
6379 (lnp_state_machine::record_line): Don't record some lines, update
6380 tracking of is_stmt at the same address.
6381 (lnp_state_machine::lnp_state_machine): Initialise new member
6382 variables.
6383
6384 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6385
6386 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6387 "-include gnu-nat-mig.h".
6388 * gnu-nat-mig.h: New file.
6389 * gnu-nat.c: Include "gnu-nat-mig.h".
6390 (exc_server, msg_reply_server, notify_server,
6391 process_reply_server): Remove declarations.
6392
6393 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6394
6395 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6396 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6397 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6398 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6399 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6400 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6401 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6402 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6403 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6404 to gnu_nat_target class.
6405 * gnu-nat.c: Likewise.
6406 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6407 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6408 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6409 object.
6410 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6411 instead of `gnu_target'.
6412
6413 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6414
6415 * i386-gnu-tdep.c: Include "gdbcore.h"
6416 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6417 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6418 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6419 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6420 i386_gnu_sigcontext_addr): New functions
6421 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6422 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6423 tdep.
6424
6425 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6426
6427 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6428 before fork_inferior call. Avoid calling it if target_is_pushed returns
6429 true.
6430
6431 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6432
6433 * gnu-nat.h (gnu_target): New variable declaration.
6434 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6435 gnu_target.
6436 * gnu-nat.c (gnu_target): New variable.
6437 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6438 add_thread_silent, and add_thread calls.
6439 (gnu_nat_target::create_inferior): Pass gnu_target to
6440 add_thread_silent, thread_change_ptid call.
6441 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6442 call.
6443
6444 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6445
6446 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6447 (gnu_nat_target::find_memory_regions): Remove unused
6448 `old_address' variable.
6449
6450 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6451
6452 * gnu-nat.c: Include "gdbarch.h".
6453
6454 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6455
6456 * reply_mig_hack.awk (Error return): Cast function through
6457 void *, to bypass compiler function call check.
6458
6459 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6460
6461 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6462 $(srcdir)/reply_mig_hack.awk.
6463
6464 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6465
6466 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6467
6468 2020-05-30 Jonny Grant <jg@jguk.org>
6469
6470 * configure.ac (ACX_BUGURL): change bug URL to https.
6471
6472 2020-05-30 Pedro Alves <palves@redhat.com>
6473
6474 * cp-support.c (replace_typedefs_template): New.
6475 (replace_typedefs_qualified_name): Handle
6476 DEMANGLE_COMPONENT_TEMPLATE.
6477
6478 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6479
6480 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6481 dwarf2/index-cache.h, dwarf2/index-write.c,
6482 dwarf2/index-write.h, dwarf2/line-header.c,
6483 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6484 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6485 variables and fields from `dwarf2_per_objfile` to just
6486 `per_objfile` throughout.
6487
6488 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6491 <push_dwarf_reg_entry_value>: Add comment.
6492
6493 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6494 Keith Seitz <keiths@redhat.com>
6495
6496 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6497 instead of PyEval_ReleaseLock.
6498 (class gdbpy_gil): Move to earlier in file.
6499 (finalize_python): Set gdb_python_initialized.
6500 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6501 when not initialized.
6502
6503 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6504
6505 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6506 <push_dwarf_reg_entry_value>: Remove assert. Override
6507 per_objfile with caller_per_objfile.
6508
6509 2020-05-28 Tom de Vries <tdevries@suse.de>
6510
6511 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6512 PR gold/15646 workaround to symbol kind "type".
6513
6514 2020-05-27 Tom Tromey <tromey@adacore.com>
6515
6516 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6517
6518 2020-05-27 Tom Tromey <tromey@adacore.com>
6519
6520 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6521 Use htab_find_with_hash.
6522 <add_abbrev>: Remove "abbrev_number" parameter.
6523 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6524 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6525 (hash_abbrev): Add comment.
6526 (abbrev_table::lookup_abbrev): Move to header file.
6527 (abbrev_table::read): Update.
6528
6529 2020-05-27 Tom Tromey <tromey@adacore.com>
6530
6531 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6532 method.
6533 <canonical_name>: New member.
6534 <raw_name>: Rename from "name".
6535 (partial_die_info): Initialize canonical_name.
6536 (scan_partial_symbols): Check raw_name.
6537 (partial_die_parent_scope, partial_die_full_name)
6538 (add_partial_symbol, add_partial_subprogram)
6539 (add_partial_enumeration, load_partial_dies): Use "name" method.
6540 (partial_die_info::name): New method.
6541 (partial_die_info::read, guess_partial_die_structure_name)
6542 (partial_die_info::fixup): Update.
6543
6544 2020-05-27 Tom Tromey <tromey@adacore.com>
6545
6546 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6547 <get_ref_die_offset>: Inline.
6548 <get_ref_die_offset_complaint>: New method.
6549 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6550 (attribute::get_ref_die_offset_complaint): Rename from
6551 get_ref_die_offset. Just issue complaint.
6552
6553 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6554
6555 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6556
6557 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6558
6559 * exec.c (exec_file_attach): Use errno value of first openp failure.
6560
6561 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6562
6563 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6564 Don't close thread handle.
6565
6566 2020-05-27 Tom Tromey <tom@tromey.com>
6567 Simon Marchi <simon.marchi@efficios.com>
6568
6569 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6570 shared_ptr.
6571 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6572 member.
6573 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6574 dwarf2_per_bfd_objfile_data_key>: New globals.
6575 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6576 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6577 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6578 shared.
6579 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6580 short-circuit when sharing.
6581 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6582 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6583
6584 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6585
6586 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6587 to...
6588 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6589 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6590
6591 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6594 build_name_components, find_name_components_bounds>:
6595 Add per_objfile parameter.
6596 (struct mapped_index) <symbol_name_at>: Likewise.
6597 (struct mapped_debug_names): Remove constructor.
6598 <dwarf2_per_objfile>: Remove field.
6599 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6600 (mapped_index_base::find_name_components_bounds,
6601 mapped_index_base::build_name_components,
6602 dw2_expand_symtabs_matching_symbol): Likewise.
6603 (class mock_mapped_index) <symbol_name_at>: Likewise.
6604 (check_match): Likewise.
6605 (check_find_bounds_finds): Likewise.
6606 (test_mapped_index_find_name_component_bounds): Update.
6607 (CHECK_MATCH): Update.
6608 (dw2_expand_symtabs_matching): Update.
6609 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6610 per_objfile parameter.
6611 <find_vec_in_debug_names>: Likewise.
6612 <m_per_objfile>: New field.
6613 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6614 parameter.
6615 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6616 (dw2_debug_names_iterator::next): Update.
6617 (dw2_debug_names_lookup_symbol): Update.
6618 (dw2_debug_names_expand_symtabs_for_function): Update.
6619 (dw2_debug_names_map_matching_symbols): Update.
6620 (dw2_debug_names_expand_symtabs_matching): Update.
6621 (dwarf2_read_debug_names): Update.
6622
6623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6624
6625 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6626 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6627 move to dwarf2_per_objfile.
6628 <read_in_chain>: Remove.
6629 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6630 remove_all_cus, age_comp_units>: New methods.
6631 <m_dwarf2_cus>: New member.
6632 (struct dwarf2_per_cu_data) <cu>: Remove.
6633 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6634 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6635 moved to methods of dwarf2_per_objfile.
6636 (dwarf2_clear_marks): Remove.
6637 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6638 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6639 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6640 (dwarf2_per_objfile::remove_all_cus): New.
6641 (class free_cached_comp_units) <~free_cached_comp_units>:
6642 Update.
6643 (load_cu): Update.
6644 (dw2_do_instantiate_symtab): Adjust.
6645 (fill_in_sig_entry_from_dwo_entry): Adjust.
6646 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6647 (cutu_reader::cutu_reader): Likewise.
6648 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6649 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6650 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6651 and dwarf2_per_objfile::age_comp_units.
6652 (load_partial_comp_unit): Update.
6653 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6654 (process_queue): Likewise.
6655 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6656 backlink.
6657 (dwarf2_read_addr_index): Likewise.
6658 (follow_die_offset): Likewise.
6659 (dwarf2_fetch_die_loc_sect_off): Likewise.
6660 (dwarf2_fetch_constant_bytes): Likewise.
6661 (dwarf2_fetch_die_type_sect_off): Likewise.
6662 (follow_die_sig_1): Likewise.
6663 (load_full_type_unit): Likewise.
6664 (read_signatured_type): Likewise.
6665 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6666 (dwarf2_cu::~dwarf2_cu): Remove.
6667 (dwarf2_per_objfile::get_cu): New.
6668 (dwarf2_per_objfile::set_cu): New.
6669 (age_cached_comp_units): Rename to...
6670 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6671 to std::unordered_map.
6672 (free_one_cached_comp_unit): Rename to...
6673 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6674 to std::unordered_map.
6675 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6676 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6677 a dwarf2_per_objfile in data.
6678 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6679 (dwarf2_clear_marks): Remove.
6680
6681 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6682
6683 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6684 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6685 (init_tu_and_read_dwo_dies): Likewise.
6686 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6687 (cutu_reader::cutu_reader): Likewise.
6688 (load_partial_comp_unit): Likewise.
6689 (process_psymtab_comp_unit): Update.
6690 (build_type_psymtabs_1): Update.
6691 (process_skeletonless_type_unit): Update.
6692 (load_full_comp_unit): Update.
6693 (find_partial_die): Update.
6694 (dwarf2_read_addr_index): Update.
6695 (read_signatured_type): Update.
6696
6697 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6698
6699 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6700 m_header_read_in>: New fields.
6701 <get_header>: New method.
6702 * dwarf2/read.c (per_cu_header_read_in): Remove.
6703 (dwarf2_per_cu_data::get_header): New.
6704 (dwarf2_per_cu_data::addr_size): Update.
6705 (dwarf2_per_cu_data::offset_size): Update.
6706 (dwarf2_per_cu_data::ref_addr_size): Update.
6707
6708 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6711 (dw2_do_instantiate_symtab): Update.
6712 (queue_and_load_all_dwo_tus): Change parameter from
6713 dwarf2_per_cu_data to dwarf2_cu.
6714 (dwarf2_fetch_die_loc_sect_off): Update.
6715 (dwarf2_fetch_constant_bytes): Update.
6716 (dwarf2_fetch_die_type_sect_off): Update.
6717
6718 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6719
6720 * dwarf2/read.c (process_full_comp_unit,
6721 process_full_type_unit): Remove per_cu, per_objfile paramters.
6722 Add dwarf2_cu parameter.
6723 (process_queue): Update.
6724
6725 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6726
6727 * dwarf2/read.c (create_cu_from_index_list): Replace
6728 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6729 (create_cus_from_index_list): Likewise.
6730 (create_cus_from_index): Likewise.
6731 (create_signatured_type_table_from_index): Likewise.
6732 (create_cus_from_debug_names_list): Likewise.
6733 (create_cus_from_debug_names): Likewise.
6734 (dwarf2_read_gdb_index): Update.
6735 (dwarf2_read_debug_names): Update.
6736
6737 2020-05-27 Tom Tromey <tom@tromey.com>
6738 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * dwarf2/read.h (struct dwarf2_per_objfile)
6741 <get_type_for_signatured_type, set_type_for_signatured_type>:
6742 New methods.
6743 <m_type_map>: New member.
6744 (struct signatured_type) <type>: Remove.
6745 * dwarf2/read.c
6746 (dwarf2_per_objfile::get_type_for_signatured_type,
6747 dwarf2_per_objfile::set_type_for_signatured_type): New.
6748 (get_signatured_type): Use new methods.
6749
6750 2020-05-27 Tom Tromey <tom@tromey.com>
6751 Simon Marchi <simon.marchi@efficios.com>
6752
6753 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6754 (struct dwarf2_per_objfile) <type_units>: New member.
6755 <get_type_unit_group_unshareable>: New method.
6756 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6757 num_symtabs, symtabs>: Remove; move to
6758 type_unit_group_unshareable.
6759 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6760 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6761 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6762
6763 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6764
6765 * dwarf2/read.h (struct dwarf2_per_cu_data):
6766 <dwarf2_per_objfile>: Remove.
6767 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6768 dwarf2_per_objfile.
6769 (create_signatured_type_table_from_index): Likewise.
6770 (create_signatured_type_table_from_debug_names): Likewise.
6771 (create_debug_type_hash_table): Likewise.
6772 (fill_in_sig_entry_from_dwo_entry): Likewise.
6773 (create_type_unit_group): Likewise.
6774 (read_comp_units_from_section): Likewise.
6775 (create_cus_hash_table): Likewise.
6776
6777 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6778
6779 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6780 dwarf2_per_cu_data::dwarf2_per_objfile.
6781 (compute_compunit_symtab_includes): Likewise.
6782 (dwarf2_cu::start_symtab): Likewise.
6783
6784 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6787 parameter.
6788 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6789 (read_namespace_alias): Update.
6790 (lookup_die_type): Update.
6791 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6792 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6793 Update.
6794 (disassemble_dwarf_expression): Update.
6795
6796 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * dwarf2/read.h (struct dwarf2_queue_item): Add
6799 dwarf2_per_objfile parameter, assign new parameter.
6800 <per_objfile>: New field.
6801 * dwarf2/read.c (free_one_cached_comp_unit): Add
6802 dwarf2_per_objfile parameter.
6803 (queue_comp_unit): Likewise.
6804 (dw2_do_instantiate_symtab): Update.
6805 (process_psymtab_comp_unit): Update.
6806 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6807 (process_imported_unit_die): Update.
6808 (queue_and_load_dwo_tu): Update.
6809 (follow_die_offset): Update.
6810 (follow_die_sig_1): Update.
6811
6812 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6813
6814 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6815 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6816 (read_call_site_scope): Assign per_objfile.
6817 (dwarf2_per_cu_data::objfile): Remove.
6818 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6819 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6820 dwarf2_per_objfile parameter.
6821 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6822 dwarf2_per_objfile parameter.
6823 (dwarf_expr_reg_to_entry_parameter): Add output
6824 dwarf2_per_objfile parameter.
6825 (locexpr_get_frame_base): Update.
6826 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6827 <push_dwarf_reg_entry_value>: Update.
6828 <call_site_to_target_addr>: Update.
6829 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6830 parameter.
6831 (value_of_dwarf_reg_entry): Update.
6832 (rw_pieced_value): Update.
6833 (indirect_synthetic_pointer): Update.
6834 (dwarf2_evaluate_property): Update.
6835 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6836 parameter.
6837 (locexpr_read_variable): Update.
6838 (locexpr_get_symbol_read_needs): Update.
6839 (loclist_read_variable): Update.
6840
6841 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6844 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6845 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6846 parameter.
6847 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6848 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6849 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6850 parameter.
6851 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6852 sect_variable_value): Add dwarf2_per_objfile parameter.
6853 (class dwarf_evaluate_loc_desc) <dwarf_call,
6854 dwarf_variable_value>: Update.
6855 (fetch_const_value_from_synthetic_pointer): Add
6856 dwarf2_per_objfile parameter.
6857 (fetch_const_value_from_synthetic_pointer): Update.
6858 (coerced_pieced_ref): Update.
6859 (class symbol_needs_eval_context) <dwarf_call,
6860 dwarf_variable_value>: Update.
6861 (dwarf2_compile_expr_to_ax): Update.
6862
6863 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6864
6865 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6866 parameter.
6867 (dwarf2_evaluate_loc_desc_full): Update.
6868
6869 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6872 parameter.
6873 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6874 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6875 dwarf2_per_objfile parameter.
6876 (decode_debug_loc_dwo_addresses): Likewise.
6877 (dwarf2_find_location_expression): Update.
6878 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6879 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6880 parameter.
6881 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6882 parameter.
6883 (locexpr_describe_location_1): Likewise.
6884 (locexpr_describe_location): Update.
6885
6886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6889 Remove.
6890 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6891 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6892 (dwarf2_compile_property_to_c): Update.
6893 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6894 use text offset from objfile.
6895 (locexpr_tracepoint_var_ref): Update.
6896 (locexpr_generate_c_location): Update.
6897 (loclist_describe_location): Update.
6898 (loclist_tracepoint_var_ref): Update.
6899 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6900 dwarf2_per_objfile parameter.
6901 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6902 use text offset from objfile.
6903 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6904
6905 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * dwarf2/expr.h (struct dwarf_expr_context)
6908 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6909 <offset>: Remove.
6910 <per_objfile>: New member.
6911 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6912 dwarf2_per_objfile parameter. Don't set offset, set
6913 per_objfile.
6914 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6915 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6916 a dwarf2_per_objfile object instead of an offset.
6917 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6918 constructor.
6919 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6920 to dwarf2_expr_executor constructor. Don't set offset.
6921 (dwarf2_fetch_cfa_info): Update.
6922 (struct dwarf2_frame_cache) <text_offset>: Remove.
6923 <per_objfile>: New field.
6924 (dwarf2_frame_cache): Update.
6925 (dwarf2_frame_prev_register): Update.
6926 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6927 <dwarf_evaluate_loc_desc>: Add constructor.
6928 (dwarf2_evaluate_loc_desc_full): Update.
6929 (dwarf2_locexpr_baton_eval): Update.
6930 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6931 Add constructor.
6932 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6933
6934 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6935
6936 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6937 addr_sized_int_type>: Move to dwarf2_cu.
6938 <int_type>: Move to dwarf2_per_objfile.
6939 (struct dwarf2_per_objfile) <int_type>: Move here.
6940 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6941 addr_sized_int_type>: Move here.
6942 (read_func_scope): Update.
6943 (read_array_type): Update.
6944 (read_tag_string_type): Update.
6945 (attr_to_dynamic_prop): Update.
6946 (dwarf2_per_cu_data::int_type): Rename to...
6947 (dwarf2_per_objfile::int_type): ... this.
6948 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6949 (dwarf2_cu::addr_sized_int_type): ... this.
6950 (read_subrange_type): Update.
6951 (dwarf2_per_cu_data::addr_type): Rename to...
6952 (dwarf2_cu::addr_type): ... this.
6953 (set_die_type): Update.
6954
6955 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6956
6957 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6958 data through per_cu->cu.
6959
6960 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6963 dwarf2_per_cu_data parameter fo dwarf2_cu.
6964 (lookup_dwo_type_unit): Likewise.
6965 (read_cutu_die_from_dwo): Likewise.
6966 (lookup_dwo_unit): Likewise.
6967 (open_and_init_dwo_file): Likewise.
6968 (lookup_dwo_cutu): Likewise.
6969 (lookup_dwo_comp_unit): Likewise.
6970 (lookup_dwo_type_unit): Likewise.
6971 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6972 (cutu_reader::cutu_reader): Update.
6973
6974 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6975
6976 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6977 parameter.
6978 (process_full_type_unit): Likewise.
6979 (process_queue): Update.
6980
6981 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * dwarf2/read.c (recursively_compute_inclusions): Add
6984 dwarf2_per_objfile parameter.
6985 (compute_compunit_symtab_includes): Likewise.
6986 (process_cu_includes): Update.
6987
6988 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6989
6990 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6991 parameter.
6992 (create_type_unit_group): Update.
6993 (process_psymtab_comp_unit_reader): Update.
6994 (build_type_psymtabs_reader): Update.
6995
6996 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6999 object through m_this_cu->cu.
7000
7001 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7002
7003 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7004 the info parameter.
7005 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7006
7007 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7008
7009 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7010 per_objfile parameter.
7011 (load_full_type_unit): Add per_objfile parameter.
7012 (read_signatured_type): Likewise.
7013 (load_full_comp_unit): Likewise.
7014 (load_cu): Likewise.
7015 (dw2_do_instantiate_symtab): Likewise.
7016 (dw2_get_file_names): Likewise.
7017 (dw2_map_symtabs_matching_filename): Update.
7018 (dw_expand_symtabs_matching_file_matcher): Update.
7019 (dw2_map_symbol_filenames): Update.
7020 (process_psymtab_comp_unit): Add per_objfile parameter.
7021 (build_type_psymtabs_1): Update.
7022 (process_skeletonless_type_unit): Update.
7023 (dwarf2_build_psymtabs_hard): Update.
7024 (load_partial_comp_unit): Add per_objfile parameter.
7025 (scan_partial_symbols): Update.
7026 (load_full_comp_unit): Add per_objfile parameter.
7027 (process_imported_unit_die): Update.
7028 (create_cus_hash_table): Update.
7029 (find_partial_die): Update.
7030 (dwarf2_read_addr_index): Update.
7031 (follow_die_offset): Update.
7032 (dwarf2_fetch_die_loc_sect_off): Update.
7033 (dwarf2_fetch_constant_bytes): Update.
7034 (dwarf2_fetch_die_type_sect_off): Update.
7035 (follow_die_sig_1): Update.
7036 (load_full_type_unit): Add per_objfile parameter.
7037 (read_signatured_type): Likewise.
7038
7039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7042 of objfile_name.
7043
7044 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7045
7046 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7047 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7048 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7049 field.
7050 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7051 (create_cus_from_index): Update.
7052 (dwarf2_read_gdb_index): Update.
7053 (create_cus_from_debug_names): Update.
7054 (dwarf2_read_debug_names): Update.
7055 (get_abbrev_section_for_cu): Update.
7056 (create_all_comp_units): Update.
7057 (read_attribute_value): Update.
7058 (get_debug_line_section): Update.
7059 * dwarf2/index-cache.c (index_cache::store): Update.
7060 * dwarf2/index-write.c (save_gdb_index_command): Update.
7061 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7062
7063 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7064
7065 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7066 member.
7067 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7068 dwarf2_per_cu_data::per_bfd.
7069 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7070 (create_type_unit_group): Likewise.
7071 (queue_comp_unit): Remove reference to
7072 per_cu->dwarf2_per_objfile.
7073 (maybe_queue_comp_unit): Likewise.
7074 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7075 (create_cus_hash_table): Assign new field.
7076
7077 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * dwarf2/read.c: Replace
7080 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7081 dwarf2_cu->per_objfile throughout.
7082
7083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7086 parameter, don't use per_cu->dwarf2_per_objfile.
7087 (dw2_instantiate_symtab): Likewise.
7088 (dw2_find_last_source_symtab): Update.
7089 (dw2_map_expand_apply): Update.
7090 (dw2_lookup_symbol): Update.
7091 (dw2_expand_symtabs_for_function): Update.
7092 (dw2_expand_all_symtabs): Update.
7093 (dw2_expand_symtabs_with_fullname): Update.
7094 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7095 don't use per_cu->dwarf2_per_objfile.
7096 (dw2_expand_marked_cus): Update.
7097 (dw2_find_pc_sect_compunit_symtab): Update.
7098 (dw2_debug_names_lookup_symbol): Update.
7099 (dw2_debug_names_expand_symtabs_for_function): Update.
7100 (dw2_debug_names_map_matching_symbols): Update.
7101 (dwarf2_psymtab::expand_psymtab): Update.
7102
7103 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7106 <per_objfile>: New member.
7107 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7108 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7109 call to dwarf2_cu.
7110 (cutu_reader::cutu_reader): Update.
7111 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7112
7113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7114
7115 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7116 struct dwarf2_per_objfile.
7117 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7118 dwarf2_per_bfd.
7119 * dwarf2/read.c (set_die_type): Update.
7120 (get_die_type_at_offset): Update.
7121
7122 2020-05-27 Tom Tromey <tom@tromey.com>
7123 Simon Marchi <simon.marchi@efficios.com>
7124
7125 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7126 method.
7127 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7128 get_symtab, set_symtab>: New methods.
7129 <m_symtabs>: New field.
7130 (struct dwarf2_psymtab): Derive from partial_symtab.
7131 <readin_p, get_compunit_symtab>: Declare methods.
7132 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7133 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7134 New methods.
7135 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7136 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7137 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7138 (dw2_symtab_iter_next, dw2_print_stats)
7139 (dw2_expand_symtabs_with_fullname)
7140 (dw2_expand_symtabs_matching_one)
7141 (dw_expand_symtabs_matching_file_matcher)
7142 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7143 (dw2_debug_names_iterator::next)
7144 (dw2_debug_names_map_matching_symbols)
7145 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7146 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7147 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7148 New methods.
7149 (get_compunit_symtab, process_full_comp_unit)
7150 (process_full_type_unit): Update.
7151 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7152
7153 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7156 then introduce a new dwarf2_per_objfile type.
7157 <read_line_string>: Move to the new dwarf2_per_objfile type.
7158 <objfile>: Likewise.
7159 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7160 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7161 dwarf2_per_objfile->per_bfd.
7162 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7163 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7164 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7165 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7166 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7167 (dwarf2_per_objfile::locate_sections): Rename to...
7168 (dwarf2_per_bfd::locate_sections): ... this.
7169 (dwarf2_per_objfile::get_cutu): Rename to...
7170 (dwarf2_per_bfd::get_cutu): ... this.
7171 (dwarf2_per_objfile::get_cu): Rename to...
7172 (dwarf2_per_bfd::get_cu): ... this.
7173 (dwarf2_per_objfile::get_tu): Rename to...
7174 (dwarf2_per_bfd::get_tu): ... this.
7175 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7176 (dwarf2_per_bfd::allocate_per_cu): ... this.
7177 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7178 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7179 (get_gdb_index_contents_ftype): Change parameter from
7180 dwarf2_per_objfile to dwarf2_per_bfd.
7181 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7182 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7183
7184 2020-05-27 Tom Tromey <tom@tromey.com>
7185 Simon Marchi <simon.marchi@efficios.com>
7186
7187 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7188 (allocate_piece_closure): Set "per_objfile" member.
7189 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7190 (locexpr_describe_location, loclist_describe_location): Use new
7191 member.
7192 * dwarf2/read.c (read_call_site_scope)
7193 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7194 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7195 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7196 handle_data_member_location): Set per_objfile member.
7197 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7198 member.
7199 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7200
7201 2020-05-27 Tom Tromey <tom@tromey.com>
7202
7203 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7204 allocate_signatured_type>: Declare new methods.
7205 <m_num_psymtabs>: New member.
7206 (struct dwarf2_per_cu_data) <index>: New member.
7207 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7208 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7209 (create_cu_from_index_list): Use allocate_per_cu.
7210 (create_signatured_type_table_from_index)
7211 (create_signatured_type_table_from_debug_names)
7212 (create_debug_type_hash_table, add_type_unit)
7213 (read_comp_units_from_section): Use allocate_signatured_type.
7214
7215 2020-05-27 Tom Tromey <tom@tromey.com>
7216
7217 * psymtab.c (partial_map_expand_apply)
7218 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7219 (psym_lookup_global_symbol_language)
7220 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7221 (psym_print_stats, psym_expand_symtabs_for_function)
7222 (psym_map_symbol_filenames, psym_map_matching_symbols)
7223 (psym_expand_symtabs_matching)
7224 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7225 (maintenance_check_psymtabs): Update.
7226 * psympriv.h (struct partial_symtab) <readin_p,
7227 get_compunit_symtab>: Add objfile parameter.
7228 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7229 Likewise.
7230 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7231 get_compunit_symtab>: Likewise.
7232 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7233
7234 2020-05-27 Tom Tromey <tom@tromey.com>
7235
7236 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7237 member.
7238 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7239 (create_cu_from_index_list)
7240 (create_signatured_type_table_from_index)
7241 (create_signatured_type_table_from_debug_names)
7242 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7243 (dwarf2_create_include_psymtab)
7244 (create_debug_type_hash_table, add_type_unit)
7245 (create_type_unit_group, read_comp_units_from_section)
7246 (dwarf2_compute_name, create_cus_hash_table)
7247 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7248 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7249 obstack.
7250 (dw2_get_real_path): Likewise. Change argument to
7251 dwarf2_per_objfile.
7252
7253 2020-05-27 Luis Machado <luis.machado@linaro.org>
7254
7255 PR tdep/26000
7256 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7257 for ldrd (immediate).
7258
7259 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7260
7261 * command.h: Add comment giving the name of class_tui.
7262 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7263 create the fake command for the help for class_tui.
7264
7265 2020-05-26 Tom Tromey <tromey@adacore.com>
7266
7267 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7268 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7269 (val_atr): New function.
7270 (value_val_atr): Use it.
7271 * ada-valprint.c (print_optional_low_bound): Change low bound
7272 handling for enums.
7273 (val_print_packed_array_elements): Don't call discrete_position.
7274 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7275 discrete_position for enum types.
7276 * language.c (default_print_array_index): Change type.
7277 * language.h (struct language_defn) <la_print_array_index>: Add
7278 index_type parameter, change type of index_value.
7279 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7280 (default_print_array_index): Update.
7281 * valprint.c (maybe_print_array_index): Don't call
7282 value_from_longest. Update.
7283 (value_print_array_elements): Don't call discrete_position.
7284
7285 2020-05-26 Tom Tromey <tromey@adacore.com>
7286
7287 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7288 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7289
7290 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7291
7292 PR gdb/13519
7293 * avr-tdep.c (avr_integer_to_address): Return data or code
7294 address accordingly to the second 'type' argument of the
7295 function.
7296
7297 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7298
7299 * infcmd.c, inferior.h: (construct_inferior_arguments):
7300 Moved function from here to gdbsupport/common-inferior.{h,cc}
7301
7302 2020-05-23 Tom Tromey <tom@tromey.com>
7303
7304 Revert commit eca1f90c:
7305 * NEWS: Remove entry for completion styling.
7306 * completer.c (_rl_completion_prefix_display_length): Move
7307 declaration later.
7308 (gdb_fnprint): Revert.
7309 (gdb_display_match_list_1): Likewise.
7310 * cli/cli-style.c (completion_prefix_style)
7311 (completion_difference_style, completion_suffix_style): Remove.
7312 (_initialize_cli_style): Revert.
7313 * cli/cli-style.h (completion_prefix_style)
7314 (completion_difference_style, completion_suffix_style): Don't
7315 declare.
7316
7317 2020-05-24 Pedro Alves <palves@redhat.com>
7318
7319 * symtab.c (completion_list_add_name): Return boolean indication
7320 of whether the symbol matched.
7321 (completion_list_add_symbol): Don't try to remove C++ aliases if
7322 the symbol didn't match in the first place.
7323 * symtab.h (completion_list_add_name): Return bool.
7324
7325 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7326
7327 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7328 type::field.
7329
7330 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7331
7332 GDB 9.2 released.
7333
7334 2020-05-23 Tom Tromey <tom@tromey.com>
7335
7336 * NEWS: Add entry for completion styling.
7337 * completer.c (_rl_completion_prefix_display_length): Move
7338 declaration earlier.
7339 (gdb_fnprint): Use completion_style.
7340 (gdb_display_match_list_1): Likewise.
7341 * cli/cli-style.c (completion_prefix_style)
7342 (completion_difference_style, completion_suffix_style): New
7343 globals.
7344 (_initialize_cli_style): Register new globals.
7345 * cli/cli-style.h (completion_prefix_style)
7346 (completion_difference_style, completion_suffix_style): Declare.
7347
7348 2020-05-23 Pedro Alves <palves@redhat.com>
7349
7350 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7351 (parse_escape): Use ISDIGIT instead of isdigit.
7352 (puts_debug): Use gdb_isprint instead of isprint.
7353 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7354 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7355 ISSPACE instead of isspace.
7356 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7357 instead of isspace.
7358 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7359 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7360 instead of isxdigit and ISDIGIT instead of isdigit.
7361
7362 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7363
7364 * gdbtypes.h (struct type) <field>: New method.
7365 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7366 or type::field.
7367
7368 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7369
7370 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7371 (TYPE_FIELDS): Use type::fields. Change all call sites that
7372 modify the propery to use type::set_fields instead.
7373
7374 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7375
7376 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7377 type::num_fields instead.
7378
7379 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7382 methods.
7383 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7384 that modify the number of fields to use type::set_num_fields
7385 instead.
7386
7387 2020-05-22 Tom Tromey <tromey@adacore.com>
7388
7389 * compile/compile-object-load.h (munmap_list_free): Don't
7390 declare.
7391
7392 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7393
7394 * annotate.c (annotate_source_line): Update return type, add call
7395 to update current symtab and line.
7396 * annotate.h (annotate_source_line): Update return type, and
7397 extend header comment.
7398 * source.c (info_line_command): Check annotation_level before
7399 calling annotate_source_line.
7400 * stack.c (print_frame_info): If calling annotate_source_line
7401 returns true, then don't print any other source line information.
7402
7403 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7404
7405 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7406
7407 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7408
7409 * coffread.c (patch_type): Remove NULL check before xfree.
7410 * corefile.c (set_gnutarget): Likewise.
7411 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7412 * exec.c (build_section_table): Likewise.
7413 * remote.c (remote_target::pass_signals): Likewise.
7414 * utils.c (n_spaces): Likewise.
7415 * cli/cli-script.c (document_command): Likewise.
7416 * i386-windows-tdep.c (core_process_module_section): Likewise.
7417 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7418
7419 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * symfile.c (reread_symbols): Clear objfile's section_offsets
7422 vector and section indices, re-compute them by calling
7423 sym_offsets.
7424
7425 2020-05-20 Tom Tromey <tromey@adacore.com>
7426
7427 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7428 (desc_one_bound, desc_index_type): Compute field name.
7429
7430 2020-05-20 Tom de Vries <tdevries@suse.de>
7431
7432 PR symtab/25833
7433 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7434
7435 2020-05-20 Alan Modra <amodra@gmail.com>
7436
7437 PR 25993
7438 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7439 bfd_set_filename.
7440 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7441 passed to bfd_set_filename.
7442 * symfile-mem.c (add_vsyscall_page): Likewise for string
7443 passed to symbol_file_add_from_memory.
7444 (symbol_file_add_from_memory): Make name param a const char* and
7445 don't strdup.
7446
7447 2020-05-20 Alan Modra <amodra@gmail.com>
7448
7449 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7450 rather than accessing bfd->filename directly.
7451 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7452 and use bfd_section_name.
7453 * dwarf2/frame.c (decode_frame_entry): Likewise.
7454 * exec.c (exec_set_section_address): Likewise.
7455 * solib-aix.c (solib_aix_bfd_open): Likewise.
7456 * stap-probe.c (get_stap_base_address): Likewise.
7457 * symfile.c (reread_symbols): Likewise.
7458
7459 2020-05-19 Tom Tromey <tromey@adacore.com>
7460
7461 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7462
7463 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7466
7467 2020-05-19 Pedro Alves <palves@redhat.com>
7468
7469 * NEWS (set exec-file-mismatch): Adjust entry.
7470 * exec.c: Include "build-id.h".
7471 (validate_exec_file): Try to match build IDs instead of filenames.
7472 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7473 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7474 and pass down 'warn_if_slow'.
7475 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7476 gdb_bfd_open_closure to pass it down.
7477 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7478
7479 2020-05-19 Pedro Alves <palves@redhat.com>
7480
7481 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7482 * target.c (target_fileio_open_1): Rename to target_fileio_open
7483 and make extern. Use bool.
7484 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7485 (target_fileio_read_alloc_1): Adjust.
7486 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7487 (target_fileio_open_warn_if_slow): Delete declaration.
7488
7489 2020-05-19 Pedro Alves <palves@redhat.com>
7490
7491 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7492 Adjust all callers.
7493
7494 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7495
7496 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7497 whether disp is negative.
7498
7499 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7500
7501 * symfile.h (struct symfile_segment_data)
7502 <~symfile_segment_data>: Remove.
7503 <segment_info>: Change to std::vector.
7504 * symfile.c (default_symfile_segments): Update.
7505 * elfread.c (elf_symfile_segments): Update.
7506
7507 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7508
7509 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7510 <segments>: New.
7511 <segment_bases, segment_sizes>: Remove.
7512 * symfile.c (default_symfile_segments): Update.
7513 * elfread.c (elf_symfile_segments): Update.
7514 * remote.c (remote_target::get_offsets): Update.
7515 * solib-target.c (solib_target_relocate_section_addresses):
7516 Update.
7517
7518 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7519
7520 * symfile.h (struct symfile_segment_data): Initialize fields.
7521 <~symfile_segment_data>: Add.
7522 (symfile_segment_data_up): New.
7523 (struct sym_fns) <sym_segments>: Return a
7524 symfile_segment_data_up.
7525 (default_symfile_segments): Return a symfile_segment_data_up.
7526 (free_symfile_segment_data): Remove.
7527 (get_symfile_segment_data): Return a symfile_segment_data_up.
7528 * symfile.c (default_symfile_segments): Likewise.
7529 (get_symfile_segment_data): Likewise.
7530 (free_symfile_segment_data): Remove.
7531 (symfile_find_segment_sections): Update.
7532 * elfread.c (elf_symfile_segments): Return a
7533 symfile_segment_data_up.
7534 * remote.c (remote_target::get_offsets): Update.
7535 * solib-target.c (solib_target_relocate_section_addresses):
7536 Update.
7537 * symfile-debug.c (debug_sym_segments): Return a
7538 symfile_segment_data_up.
7539
7540 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7541
7542 PR build/25981
7543 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7544 Hardcode register numbers.
7545
7546 PR build/25981
7547 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7548 procfs_find_LDT_entry): Remove.
7549 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7550 procfs_find_LDT_entry): Remove.
7551 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7552 Remove.
7553
7554 2020-05-17 Pedro Alves <palves@redhat.com>
7555 Andrew Burgess <andrew.burgess@embecosm.com>
7556 Keno Fischer <keno@juliacomputing.com>
7557
7558 PR gdb/25741
7559 * breakpoint.c (build_target_condition_list): Update comments.
7560 (build_target_command_list): Update comments and skip matching
7561 locations.
7562 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7563 a separate function. Simplify "set breakpoint auto-hw off"
7564 handling.
7565 (insert_breakpoints): Update comment.
7566 (tracepoint_locations_match): New parameter. For breakpoints,
7567 compare location types too, if the caller wants to.
7568 (handle_automatic_hardware_breakpoints): New functions.
7569 (bp_location_is_less_than): Also sort by location type and
7570 hardware breakpoint length.
7571 (update_global_location_list): Handle "set breakpoint auto-hw on"
7572 here.
7573 (update_breakpoint_locations): Ask breakpoint_locations_match to
7574 ignore location types.
7575
7576 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7579 type::name instead.
7580
7581 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * gdbtypes.h (struct type) <name, set_name>: New methods.
7584 (TYPE_CODE): Use type::name. Change all call sites used to set
7585 the name to use type::set_name instead.
7586
7587 2020-05-16 Tom Tromey <tom@tromey.com>
7588
7589 * top.c (quit_force): Update.
7590 * infrun.c (handle_no_resumed): Update.
7591 * top.h (all_uis): New function.
7592 (ALL_UIS): Remove.
7593
7594 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7595
7596 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7597
7598 2020-05-16 Pedro Alves <palves@redhat.com>
7599
7600 * ia64-linux-nat.c
7601 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7602 Declare method.
7603 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7604
7605 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7608 (sparc64_adi_info): Likewise.
7609
7610 2020-05-15 Tom Tromey <tom@tromey.com>
7611
7612 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7613 block_objfile.
7614 (lookup_objfile_from_block): Remove.
7615 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7616 (lookup_global_symbol): Use block_objfile.
7617 * symtab.h (lookup_objfile_from_block): Don't declare.
7618 * printcmd.c (clear_dangling_display_expressions): Use
7619 block_objfile.
7620 * parse.c (operator_check_standard): Use block_objfile.
7621
7622 2020-05-15 Tom Tromey <tom@tromey.com>
7623
7624 * language.c (language_alloc_type_symbol): Set
7625 SYMBOL_SECTION.
7626 * symtab.c (initialize_objfile_symbol): Remove.
7627 (allocate_symbol): Remove.
7628 (allocate_template_symbol): Remove.
7629 * dwarf2/read.c (fixup_go_packaging): Use "new".
7630 (new_symbol): Use "new".
7631 (read_variable): Don't call initialize_objfile_symbol. Use
7632 "new".
7633 (read_func_scope): Use "new".
7634 * xcoffread.c (process_xcoff_symbol): Don't call
7635 initialize_objfile_symbol.
7636 (SYMBOL_DUP): Remove.
7637 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7638 "new".
7639 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7640 (allocate_template_symbol): Don't declare.
7641 (struct symbol): Add copy constructor. Change defaults.
7642 * jit.c (finalize_symtab): Use "new".
7643 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7644 Use "new".
7645 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7646 (common_block_end): Use "new".
7647 * mdebugread.c (parse_symbol): Use "new".
7648 (new_symbol): Likewise.
7649
7650 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7651
7652 * NEWS: Mention changes to help and apropos.
7653
7654 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7655
7656 * command.h (enum command_class): Improve comments, document
7657 that class_alias is for user-defined aliases, give the class
7658 name for each class, remove unused class_xdb.
7659 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7660 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7661 by a precise class.
7662 * infcmd.c (_initialize_infcmd): Likewise.
7663 * reverse.c (_initialize_reverse): Likewise.
7664 * stack.c (_initialize_stack): Likewise.
7665 * symfile.c (_initialize_symfile): Likewise.
7666 * tracepoint.c (_initialize_tracepoint): Likewise.
7667
7668 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7669
7670 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7671 when their aliased command is traversed.
7672 (help_cmd): Add fput_command_names_styled call to
7673 output command name and aliases when command has an alias.
7674
7675 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7676
7677 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7678 * cli/cli-decode.c (help_cmd_list): Declare as static,
7679 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7680 a command together with the command.
7681 (fput_command_name_styled, fput_command_names_styled): New functions.
7682 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7683 fput_command_name_styled.
7684 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7685 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7686
7687 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7688
7689 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7690 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7691 * command.h (cmd_show_list): Likewise.
7692 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7693 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7694
7695 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7696
7697 * unittests/command-def-selftests.c (traverse_command_structure):
7698 Verify all commands of a list have the same prefix command and
7699 that only the top cmdlist commands have a null prefix.
7700
7701 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7702
7703 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7704 as prefix, not one of its aliases.
7705 (set_cmd_prefix): Remove.
7706 (do_add_cmd): Centralize the setting of the prefix of a command, when
7707 command is defined after its full chain of prefix commands.
7708 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7709 (add_setshow_cmd_full): Likewise.
7710 (update_prefix_field_of_prefixed_commands): New function.
7711 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7712 update_prefix_field_of_prefixed_commands.
7713 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7714 addresses of remote_set_cmdlist and remote_show_cmdlist given
7715 as argument, not the address of an argument.
7716 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7717 * gdb/remote.c (_initialize_remote): Likewise.
7718
7719 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7720
7721 * cli/cli-cmds.c (alias_command): Check for an existing alias
7722 using lookup_cmd_composition, as valid_command_p is too strict
7723 and forbids aliases that are the prefix of an existing alias
7724 or command.
7725 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7726 command is properly recognised as a valid command.
7727
7728 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7729
7730 * unittests/help-doc-selftests.c: Rename to
7731 unittests/command-def-selftests.c
7732 * unittests/command-def-selftests.c (help_doc_tests): Update some
7733 comments.
7734 (command_structure_tests, traverse_command_structure): New namespace
7735 and function.
7736 (command_structure_invariants_tests): New function.
7737 (_initialize_command_def_selftests) Renamed from
7738 _initialize_help_doc_selftests, register command_structure_invariants
7739 selftest.
7740
7741 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7742
7743 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7744 an alias of 'show'.
7745
7746 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7747
7748 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7749 ada_is_fixed_point_type. Update all callers.
7750 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7751 all callers.
7752 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7753 Update all callers.
7754 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7755 print_fixed_point_type. Update all callers.
7756 * ada-valprint.c (ada_value_print_num): Replace call to
7757 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7758
7759 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7760
7761 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7762 processors.
7763 (cpu_supports_bts): Add CV_AMD case.
7764
7765 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7766 Simon Marchi <simon.marchi@efficios.com>
7767
7768 * infrun.c (stop_all_threads): Collect multiple wait events at
7769 each pass.
7770
7771 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7772
7773 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7774 type::code instead.
7775
7776 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7777
7778 * gdbtypes.h (struct type) <code, set_code>: New methods.
7779 (TYPE_CODE): Use type::code. Change all call sites used to set
7780 the code to use type::set_code instead.
7781
7782 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7783 Tom de Vries <tdevries@suse.de>
7784 Pedro Alves <palves@redhat.com>
7785
7786 PR threads/25478
7787 * infrun.c (stop_all_threads): Do NOT ignore
7788 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7789 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7790 received.
7791 (handle_no_resumed): Remove code handling a live inferior with no
7792 threads.
7793 * remote.c (has_single_non_exited_thread): New.
7794 (remote_target::update_thread_list): Do not delete a thread if is
7795 the last thread of the process.
7796 * thread.c (thread_select): Call delete_exited_threads instead of
7797 prune_threads.
7798
7799 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7800
7801 * infrun.c (stop_all_threads): Enable/disable thread events of all
7802 targets. Move a debug message denoting the end of the function
7803 into the SCOPED_EXIT block.
7804
7805 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7806
7807 * process-stratum-target.h: Include <set>.
7808 (all_non_exited_process_targets, switch_to_target_no_thread): New
7809 function declarations.
7810 * process-stratum-target.c (all_non_exited_process_targets)
7811 (switch_to_target_no_thread): New function implementations.
7812
7813 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7814
7815 * infrun.c (handle_inferior_event): Extract out a piece of code
7816 into...
7817 (mark_non_executing_threads): ...this new function.
7818
7819 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7820
7821 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7822 use.
7823
7824 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7825
7826 * regcache.c (regcache_read_pc_protected): New function
7827 implementation that returns 0 if the PC cannot read via
7828 'regcache_read_pc'.
7829 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7830 instead of 'regcache_read_pc'.
7831 (keep_going_pass_signal): Ditto.
7832
7833 2020-05-13 Tom Tromey <tromey@adacore.com>
7834
7835 * ada-lang.c (align_value): Remove.
7836 (ada_template_to_fixed_record_type_1): Use align_up.
7837
7838 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7839
7840 * async-event.c: Update the copyright year.
7841 * async-event.h: Update the copyright year.
7842
7843 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * objfiles.h (is_addr_in_objfile,
7846 shared_objfile_contains_address_p): Return bool.
7847 * objfile.c (is_addr_in_objfile,
7848 shared_objfile_contains_address_p): Return bool.
7849
7850 2020-05-11 Tom Tromey <tromey@adacore.com>
7851
7852 * cli/cli-cmds.c (info_command): Restore.
7853 (_initialize_cli_cmds): Use add_prefix_command for "info".
7854 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7855
7856 2020-05-11 Tom Tromey <tromey@adacore.com>
7857
7858 * ada-lang.c (ada_value_primitive_field): Now public.
7859 * ada-lang.h (ada_value_primitive_field): Declare.
7860 * ada-valprint.c (print_field_values): Use
7861 ada_value_primitive_field for wrapper fields.
7862
7863 2020-05-11 Tom de Vries <tdevries@suse.de>
7864
7865 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7866 MODULE_DOMAIN.
7867
7868 2020-05-11 Tom de Vries <tdevries@suse.de>
7869
7870 PR symtab/25941
7871 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7872 with length 0, if not gdb-produced.
7873 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7874
7875 2020-05-09 Tom de Vries <tdevries@suse.de>
7876
7877 PR gdb/25955
7878 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7879 calculation.
7880
7881 2020-05-09 Tom Tromey <tom@tromey.com>
7882
7883 * top.c (server_command): Now bool.
7884 * top.h (server_command): Now bool.
7885
7886 2020-05-08 Tom Tromey <tromey@adacore.com>
7887
7888 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7889 already being processed.
7890
7891 2020-05-08 Tom Tromey <tom@tromey.com>
7892
7893 * printcmd.c (struct display) <next>: Remove.
7894 <display>: New constructor.
7895 <exp_string>: Now a std::string.
7896 <enabled_p>: Now a bool.
7897 (display_number): Move definition earlier.
7898 (displays): Rename from display_chain. Now a std::vector.
7899 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7900 (display_command): Update.
7901 (do_one_display, disable_display)
7902 (enable_disable_display_command, do_enable_disable_display):
7903 Update.
7904 (free_display): Remove.
7905 (clear_displays): Rewrite.
7906 (delete_display): Update.
7907 (map_display_numbers): Use function_view. Remove "data"
7908 parameter. Update.
7909 (do_delete_display): Remove.
7910 (undisplay_command): Update.
7911 (do_one_display, do_displays, disable_display)
7912 (info_display_command): Update.
7913 (do_enable_disable_display): Remove.
7914 (enable_disable_display_command)
7915 (clear_dangling_display_expressions): Update.
7916
7917 2020-05-08 Tom Tromey <tom@tromey.com>
7918
7919 * symtab.c (set_symbol_cache_size)
7920 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7921 (maintenance_print_symbol_cache_statistics): Update.
7922 * symmisc.c (print_symbol_bcache_statistics)
7923 (print_objfile_statistics, maintenance_print_objfiles)
7924 (maintenance_info_symtabs, maintenance_check_symtabs)
7925 (maintenance_expand_symtabs, maintenance_info_line_tables):
7926 Update.
7927 * symfile-debug.c (set_debug_symfile): Update.
7928 * source.c (forget_cached_source_info): Update.
7929 * python/python.c (gdbpy_progspaces): Update.
7930 * psymtab.c (maintenance_info_psymtabs): Update.
7931 * probe.c (parse_probes): Update.
7932 * linespec.c (iterate_over_all_matching_symtabs)
7933 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7934 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7935 * exec.c (exec_target::close): Update.
7936 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7937 * breakpoint.c (print_one_breakpoint_location)
7938 (create_longjmp_master_breakpoint)
7939 (create_std_terminate_master_breakpoint): Update.
7940 * progspace.c (program_spaces): Now a std::vector.
7941 (maybe_new_address_space): Update.
7942 (add_program_space): Remove.
7943 (program_space::program_space): Update.
7944 (remove_program_space): Update.
7945 (number_of_program_spaces): Remove.
7946 (print_program_space, update_address_spaces): Update.
7947 * progspace.h (program_spaces): Change type.
7948 (ALL_PSPACES): Remove.
7949 (number_of_program_spaces): Don't declare.
7950 (struct program_space) <next>: Remove.
7951
7952 2020-05-08 Tom Tromey <tom@tromey.com>
7953
7954 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7955 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7956 (enable_break): Update.
7957 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7958 (frv_fdpic_find_canonical_descriptor): Update.
7959 (frv_fetch_objfile_link_map): Update.
7960 * progspace.c (program_space::free_all_objfiles): Update.
7961 (program_space::solibs): New method.
7962 * progspace.h (struct program_space) <solibs>: New method.
7963 * solist.h (master_so_list): Don't declare.
7964 (ALL_SO_LIBS): Remove.
7965 * solib.h (so_list_head): Remove.
7966 (update_solib_list): Update comment.
7967 * solib.c (master_so_list): Remove.
7968 (solib_used, update_solib_list, solib_add)
7969 (info_sharedlibrary_command, clear_solib)
7970 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7971
7972 2020-05-08 Tom Tromey <tom@tromey.com>
7973
7974 * extension.c (extension_languages): Now a std::array.
7975 (ALL_EXTENSION_LANGUAGES): Remove.
7976 (get_ext_lang_defn, get_ext_lang_of_file)
7977 (eval_ext_lang_from_control_command): Update.
7978 (finish_ext_lang_initialization)
7979 (auto_load_ext_lang_scripts_for_objfile)
7980 (ext_lang_type_printers::ext_lang_type_printers)
7981 (apply_ext_lang_type_printers)
7982 (ext_lang_type_printers::~ext_lang_type_printers)
7983 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7984 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7985 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7986 (get_matching_xmethod_workers, ext_lang_colorize)
7987 (ext_lang_before_prompt): Update.
7988 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7989
7990 2020-05-08 Tom Tromey <tom@tromey.com>
7991
7992 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7993 overload.
7994 <swap_string, m_string>: Remove.
7995 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7996 Update.
7997 * stabsread.c (define_symbol, read_type): Update.
7998 * linespec.c (find_linespec_symbols): Update.
7999 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8000 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8001 * dbxread.c (read_dbx_symtab): Update.
8002 * cp-support.h (cp_canonicalize_string_full)
8003 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8004 Return unique_xmalloc_ptr.
8005 * cp-support.c (inspect_type): Update.
8006 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8007 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8008 Likewise.
8009 * c-typeprint.c (print_name_maybe_canonical): Update.
8010 * break-catch-throw.c (check_status_exception_catchpoint):
8011 Update.
8012
8013 2020-05-08 Tom de Vries <tdevries@suse.de>
8014
8015 * infrun.c (follow_fork): Copy current_line and current_symtab to
8016 child thread.
8017
8018 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * async-event.c (struct async_signal_handler, struct
8021 async_event_handler): Reformat, remove typedef.
8022
8023 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8026 access thistype->main_type->dyn_prop_list directly.
8027
8028 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8031 (remove_dyn_prop): Remove. Update all users to use
8032 type::remove_dyn_prop.
8033 * gdbtypes.c (remove_dyn_prop): Rename to...
8034 (type::remove_dyn_prop): ... this.
8035
8036 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8037
8038 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8039 (add_dyn_prop): Remove. Update all users to use
8040 type::add_dyn_prop.
8041 * gdbtypes.c (add_dyn_prop): Rename to...
8042 (type::add_dyn_prop): ... this.
8043
8044 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8045
8046 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8047 (get_dyn_prop): Remove. Update all users to use
8048 type::dyn_prop.
8049 * gdbtypes.c (get_dyn_prop): Rename to...
8050 (type::dyn_prop): ... this.
8051
8052 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8055
8056 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8059 instruction, skip it if it's there.
8060
8061 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8062
8063 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8064
8065 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8068 * gdbtypes.c (recursive_dump_type): Remove use of
8069 TYPE_INCOMPLETE.
8070
8071 2020-05-03 Tom Tromey <tom@tromey.com>
8072
8073 * breakpoint.c (catch_command, tcatch_command): Remove.
8074 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8075 add_show_prefix_cmd.
8076 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8077 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8078 Remove.
8079 (add_internal_problem_command): Use add_basic_prefix_cmd,
8080 add_show_prefix_cmd.
8081 * mips-tdep.c (set_mipsfpu_command): Remove.
8082 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8083 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8084 (_initialize_index_cache): Use add_basic_prefix_cmd.
8085 * memattr.c (dummy_cmd): Remove.
8086 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8087 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8088 (_initialize_tui_win): Use add_basic_prefix_cmd,
8089 add_show_prefix_cmd.
8090 * cli/cli-logging.c (set_logging_command): Remove.
8091 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8092 add_show_prefix_cmd.
8093 (show_logging_command): Remove.
8094 * target.c (target_command): Remove.
8095 (add_target): Use add_basic_prefix_cmd.
8096
8097 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8098
8099 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8100
8101 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8102
8103 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8104 info_command.
8105
8106 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8107
8108 * nbsd-nat.c (nbsd_enable_proc_events)
8109 (nbsd_nat_target::post_startup_inferior): Add.
8110 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8111 (nbsd_nat_target::update_thread_list): Rewrite.
8112 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8113 "PTRACE_LWP_CREATE".
8114 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8115
8116 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8117
8118 * stack.c (_initialize_stack): Remove duplicated creation
8119 of "frame" command and "f" alias.
8120
8121 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8122
8123 PR gdb/18706
8124 * gdbtypes.c (check_typedef): Calculate size of array of
8125 stubbed type.
8126
8127 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8128
8129 PR gdb/15559
8130 * i386-tdep.c (i386_push_dummy_call): Call
8131 i386_thiscall_push_dummy_call.
8132 (i386_thiscall_push_dummy_call): New function.
8133 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8134 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8135 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8136
8137 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * gdbarch.sh (do_read): Add shellcheck disable directive for
8140 warning SC2162.
8141
8142 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8143
8144 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8145 "referenced but not assigned" warning.
8146
8147 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8148
8149 * gdbarch.sh: Remove code that sets fallbackdefault.
8150
8151 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * gdbarch.sh: Use shell operators && and || instead of
8154 -a and -o.
8155
8156 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * gdbarch.sh: Use $(...) instead of `...`.
8159
8160 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8161
8162 * gdbarch.sh: Use double quotes around variables.
8163
8164 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8165
8166 * gdbarch.sh: Use %s with printf, instead of variables in the
8167 format string.
8168
8169 2020-04-29 Tom Tromey <tromey@adacore.com>
8170
8171 PR ada/25875:
8172 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8173 type fields here.
8174 (read_enumeration_type): Call
8175 update_enumeration_type_from_children later. Update comments.
8176 (process_enumeration_scope): Don't create type fields.
8177
8178 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8179
8180 * nbsd-tdep.c: Include "xml-syscall.h".
8181 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8182
8183 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8184
8185 * nbsd-nat.c: Include "sys/wait.h".
8186 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8187 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8188 (nbsd_nat_target::remove_exec_catchpoint)
8189 (nbsd_nat_target::set_syscall_catchpoint): Add.
8190 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8191 (nbsd_nat_target::insert_exec_catchpoint)
8192 (nbsd_nat_target::remove_exec_catchpoint)
8193 (nbsd_nat_target::set_syscall_catchpoint): Add.
8194 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8195 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8196 `nbsd_get_syscall_number'.
8197
8198 2020-04-29 Tom Tromey <tom@tromey.com>
8199
8200 * stack.c (print_block_frame_labels): Remove.
8201
8202 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8203
8204 PR gdb/17320
8205 * ada-valprint.c (val_print_packed_array_elements): Move array
8206 end bracket to new line.
8207 (ada_val_print_string): Remove extra spaces before first array
8208 element.
8209 * c-valprint.c (c_value_print_array): Likewise.
8210 * m2-valprint.c (m2_print_array_contents): Likewise.
8211 (m2_value_print_inner): Likewise.
8212 * p-valprint.c (pascal_value_print_inner): Likewise.
8213 * valprint.c (generic_val_print_array): Likewise.
8214 (value_print_array_elements): Move first array element and array
8215 end bracket to new line.
8216
8217 2020-04-29 Tom de Vries <tdevries@suse.de>
8218
8219 PR symtab/25889
8220 * linespec.c (find_method): Fix ix calculation.
8221
8222 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8223
8224 * syscalls/update-netbsd.sh: New file.
8225 * syscalls/netbsd.xml: Regenerate.
8226 * data-directory/Makefile.in: Register `netbsd.xml' in
8227 `SYSCALLS_FILES'.
8228
8229 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8230
8231 * syscalls/update-freebsd.sh: Add double quotes.
8232
8233 2020-04-28 Tom Tromey <tom@tromey.com>
8234
8235 * NEWS: Update.
8236 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8237 (cmdpy_init): Allow class_tui.
8238
8239 2020-04-28 Mark Williams <mark@myosotissp.com>
8240
8241 PR gdb/24480
8242 * dwarf2read.c: Add missing assingments to list_in_scope when
8243 start_symtab was already called.
8244
8245 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8246
8247 PR gdb/25881
8248 * dwarf2/read.c (offset_map_type): Use
8249 gdb:hash_enum<sect_offset> as hash function.
8250
8251 2020-04-28 Tom de Vries <tdevries@suse.de>
8252
8253 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8254 with DW_AT_signature.
8255
8256 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8257
8258 * configure.ac: Remove check for fs_base/gs_base in
8259 user_regs_struct.
8260 * configure: Re-generate.
8261 * config.in: Re-generate.
8262 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8263 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8264 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8265
8266 2020-04-27 Luis Machado <luis.machado@linaro.org>
8267
8268 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8269 problematic inline frame unwinding situation.
8270 * frame.c (frame_id_computed_p): New function.
8271 * frame.h (frame_id_computed_p): New prototype.
8272
8273 2020-04-26 Tom Tromey <tom@tromey.com>
8274
8275 * command.h (enum command_class) <class_pseudo>: Remove.
8276
8277 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8278
8279 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8280 and whitespace.
8281
8282 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8283
8284 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8285 `PT_GET_PROCESS_STATE' block.
8286
8287 2020-04-24 Tom Tromey <tom@tromey.com>
8288
8289 * symtab.h (symbol_get_demangled_name): Don't declare.
8290 * symtab.c (symbol_get_demangled_name): Remove.
8291 (general_symbol_info::natural_name)
8292 (general_symbol_info::demangled_name): Update.
8293
8294 2020-04-24 Tom Tromey <tom@tromey.com>
8295
8296 PR rust/25025:
8297 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8298
8299 2020-04-24 Tom Tromey <tom@tromey.com>
8300
8301 PR symtab/12707:
8302 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8303 exists.
8304 (new_symbol): Likewise.
8305 * compile/compile-object-load.c (get_out_value_type): Use
8306 symbol_matches_search_name.
8307
8308 2020-04-24 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.c (add_partial_symbol): Do not call
8311 compute_and_set_names.
8312
8313 2020-04-24 Tom Tromey <tom@tromey.com>
8314
8315 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8316 overload.
8317
8318 2020-04-24 Tom Tromey <tom@tromey.com>
8319
8320 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8321 (add_psymbol_to_list): New overload. Make old overload call new
8322 one.
8323 * psympriv.h (add_psymbol_to_list): New overload.
8324
8325 2020-04-24 Tom Tromey <tom@tromey.com>
8326
8327 * dwarf2/read.c (partial_die_info::read) <case
8328 DW_AT_linkage_name>: Use value_as_string.
8329 (dwarf2_string_attr): Use value_as_string.
8330 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8331 method.
8332 * dwarf2/attribute.c (attribute::value_as_string): New method.
8333
8334 2020-04-24 Tom Tromey <tom@tromey.com>
8335
8336 * symtab.c (general_symbol_info::natural_name)
8337 (general_symbol_info::demangled_name): Check for language_rust.
8338
8339 2020-04-24 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8342 (dwarf2_physname): ... from here.
8343 (partial_die_info::read): Add Rust "{" hack.
8344
8345 2020-04-24 Tom Tromey <tom@tromey.com>
8346
8347 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8348 method.
8349 (symbol_set_demangled_name): Don't declare.
8350 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8351 symbol_set_demangled_name.
8352 (general_symbol_info::set_language)
8353 (general_symbol_info::compute_and_set_names): Update.
8354 * minsyms.c (minimal_symbol_reader::install): Update.
8355 * dwarf2/read.c (new_symbol): Update.
8356
8357 2020-04-24 Tom Tromey <tromey@adacore.com>
8358
8359 PR python/23662:
8360 * python/py-type.c (convert_field): Handle
8361 FIELD_LOC_KIND_DWARF_BLOCK.
8362 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8363 (typy_get_dynamic): Nw function.
8364 (type_object_getset): Add "dynamic".
8365 * NEWS: Add entry.
8366
8367 2020-04-24 Tom Tromey <tromey@adacore.com>
8368
8369 * ada-typeprint.c (print_choices, print_variant_part)
8370 (print_record_field_types_dynamic): New functions.
8371 (print_record_field_types): Use print_record_field_types_dynamic.
8372
8373 2020-04-24 Tom Tromey <tromey@adacore.com>
8374
8375 * dwarf2/read.c (handle_data_member_location): New overload.
8376 (dwarf2_add_field): Use it.
8377 (decode_locdesc): Add "computed" parameter. Update comment.
8378 * gdbtypes.c (is_dynamic_type_internal): Also look for
8379 FIELD_LOC_KIND_DWARF_BLOCK.
8380 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8381 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8382 virtual base classes.
8383 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8384 FIELD_LOC_KIND_DWARF_BLOCK.
8385
8386 2020-04-24 Tom Tromey <tromey@adacore.com>
8387
8388 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8389 * gdbtypes.c (is_dynamic_type_internal): Check
8390 TYPE_HAS_DYNAMIC_LENGTH.
8391 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8392 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8393 New macros.
8394 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8395 constant.
8396
8397 2020-04-24 Tom Tromey <tromey@adacore.com>
8398
8399 * dwarf2/read.c (struct variant_field): Rewrite.
8400 (struct variant_part_builder): New.
8401 (struct nextfield): Remove "variant" field. Add "offset".
8402 (struct field_info): Add "current_variant_part" and
8403 "variant_parts".
8404 (alloc_discriminant_info): Remove.
8405 (alloc_rust_variant): New function.
8406 (quirk_rust_enum): Update.
8407 (dwarf2_add_field): Set "offset" member. Don't handle
8408 DW_TAG_variant_part.
8409 (offset_map_type): New typedef.
8410 (convert_variant_range, create_one_variant)
8411 (create_one_variant_part, create_variant_parts)
8412 (add_variant_property): New functions.
8413 (dwarf2_attach_fields_to_type): Call add_variant_property.
8414 (read_structure_type): Don't handle DW_TAG_variant_part.
8415 (handle_variant_part, handle_variant): New functions.
8416 (handle_struct_member_die): Use them.
8417 (process_structure_scope): Don't handle variant parts.
8418 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8419 (struct discriminant_info): Remove.
8420 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8421 (struct main_type) <flag_discriminated_union>: Remove.
8422 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8423 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8424 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8425 Update.
8426 * valops.c (value_union_variant): Remove.
8427 * value.h (value_union_variant): Don't declare.
8428
8429 2020-04-24 Tom Tromey <tromey@adacore.com>
8430
8431 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8432 (ada_value_primitive_packed_val): Update.
8433 * ada-valprint.c (ada_value_print_1): Update.
8434 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8435 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8436 just an address. Use evaluate_for_locexpr_baton.
8437 (dwarf2_evaluate_property): Update.
8438 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8439 array_view.
8440 * findvar.c (default_read_var_value): Update.
8441 * gdbtypes.c (compute_variant_fields_inner)
8442 (resolve_dynamic_type_internal): Update.
8443 (resolve_dynamic_type): Change type of valaddr parameter.
8444 * gdbtypes.h (resolve_dynamic_type): Update.
8445 * valarith.c (value_subscripted_rvalue): Update.
8446 * value.c (value_from_contents_and_address): Update.
8447
8448 2020-04-24 Tom Tromey <tromey@adacore.com>
8449
8450 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8451 "push_initial_value" parameter.
8452 (dwarf2_evaluate_property): Likewise.
8453 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8454
8455 2020-04-24 Tom Tromey <tromey@adacore.com>
8456
8457 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8458 (variant::matches, compute_variant_fields_recurse)
8459 (compute_variant_fields_inner, compute_variant_fields): New
8460 functions.
8461 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8462 Use resolved_type after type is made.
8463 (operator==): Add new cases.
8464 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8465 (struct discriminant_range, struct variant, struct variant_part):
8466 New.
8467 (union dynamic_prop_data) <variant_parts, original_type>: New
8468 members.
8469 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8470 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8471 constants.
8472 * value.c (unpack_bits_as_long): Now public.
8473 * value.h (unpack_bits_as_long): Declare.
8474
8475 2020-04-24 Tom Tromey <tromey@adacore.com>
8476
8477 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8478 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8479
8480 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8481
8482 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8483
8484 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8485
8486 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8487 (remove_fork_catchpoint, post_startup_inferior)
8488 (post_attach): Move...
8489 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8490 (remove_fork_catchpoint, post_startup_inferior)
8491 (post_attach): ...here.
8492 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8493 (remove_fork_catchpoint, post_startup_inferior)
8494 (post_attach): Move...
8495 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8496 (remove_fork_catchpoint, post_startup_inferior)
8497 (post_attach): ...here.
8498
8499 2020-04-24 Tom Tromey <tromey@adacore.com>
8500
8501 * nat/windows-nat.h (struct windows_thread_info)
8502 <pc_adjusted>: New member.
8503 * windows-nat.c (windows_fetch_one_register): Check
8504 pc_adjusted.
8505 (windows_nat_target::get_windows_debug_event)
8506 (windows_nat_target::wait): Set pc_adjusted.
8507
8508 2020-04-24 Tom de Vries <tdevries@suse.de>
8509
8510 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8511 Run gdb-add-index inside temp dir.
8512
8513 2020-04-23 Tom Tromey <tromey@adacore.com>
8514
8515 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8516 in loop.
8517
8518 2020-04-23 Luis Machado <luis.machado@linaro.org>
8519
8520 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8521 get_frame_register instead of gdbarch_unwind_pc.
8522
8523 2020-04-23 Tom de Vries <tdevries@suse.de>
8524
8525 * symtab.c (lookup_global_symbol): Prefer def over decl.
8526
8527 2020-04-23 Tom de Vries <tdevries@suse.de>
8528
8529 PR symtab/25807
8530 * block.c (best_symbol, better_symbol): Promote to external.
8531 * block.h (best_symbol, better_symbol): Declare.
8532 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8533 decl.
8534
8535 2020-04-23 Tom Tromey <tromey@adacore.com>
8536
8537 PR ada/25837:
8538 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8539 "const char *", not a "const std::string &".
8540 <name_and_matcher::operator==>: Update.
8541 * unittests/lookup_name_info-selftests.c: Change type of
8542 "result".
8543
8544 2020-04-23 Tom Tromey <tom@tromey.com>
8545
8546 * inferior.h (iterate_over_inferiors): Don't declare.
8547 * inferior.c (iterate_over_inferiors): Remove.
8548 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8549 Remove.
8550 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8551 use iterate_over_inferiors.
8552 (darwin_resume_inferior_it)
8553 (struct resume_inferior_threads_param)
8554 (darwin_resume_inferior_threads_it): Remove.
8555 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8556
8557 2020-04-23 Tom de Vries <tdevries@suse.de>
8558
8559 * blockframe.c (find_pc_partial_function): Use
8560 find_pc_sect_compunit_symtab rather than
8561 objfile->sf->qf->find_pc_sect_compunit_symtab.
8562
8563 2020-04-22 Tom de Vries <tdevries@suse.de>
8564
8565 PR symtab/25764
8566 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8567 in psymtabs.
8568
8569 2020-04-22 Tom de Vries <tdevries@suse.de>
8570
8571 PR symtab/25801
8572 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8573 symtabs.
8574
8575 2020-04-22 Tom de Vries <tdevries@suse.de>
8576
8577 PR symtab/25700
8578 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8579 CU if already created.
8580
8581 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8582
8583 * infrun.c (displaced_step_fixup): Switch to the event_thread
8584 before calling displaced_step_restore, not after.
8585
8586 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8587
8588 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8589 its inferior is not recorded by us.
8590 (record_btrace_target_open): Replace call to
8591 all_non_exited_threads () with call to current_inferior
8592 ()->non_exited_threads ().
8593 (record_btrace_target::stop_recording): Likewise.
8594 (record_btrace_target::close): Likewise.
8595 (record_btrace_target::wait): Likewise.
8596 (record_btrace_target::record_stop_replaying): Likewise.
8597
8598 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8599
8600 * btrace.c (btrace_enable): Throw an error on double enables and
8601 when enabling recording fails.
8602 (btrace_disable): Throw an error if the thread is not recorded.
8603
8604 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8605
8606 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8607 request if we do not have a thread_info.
8608
8609 2020-04-21 Tom de Vries <tdevries@suse.de>
8610
8611 PR gdb/25471
8612 * thread.c
8613 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8614 exception in get_frame_id.
8615
8616 2020-04-20 Tom Tromey <tromey@adacore.com>
8617
8618 * python/python.c (struct gdbpy_event): Mark move constructor as
8619 noexcept.
8620 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8621 constructor as noexcept.
8622 * completer.h (struct completion_result): Mark move constructor as
8623 noexcept.
8624 * completer.c (completion_result::completion_result): Use
8625 initialization style. Don't call reset_match_list.
8626
8627 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8628
8629 * MAINTAINERS (Write After Approval): Add myself.
8630
8631 2020-04-18 Tom Tromey <tom@tromey.com>
8632
8633 * windows-tdep.c (init_w32_command_list)
8634 (w32_prefix_command_valid): Restore.
8635 (_initialize_windows_tdep): Call init_w32_command_list.
8636
8637 2020-04-18 Tom Tromey <tom@tromey.com>
8638
8639 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8640 * value.c (value_fn_field): Update.
8641 * valops.c (find_function_in_inferior)
8642 (value_allocate_space_in_inferior): Update.
8643 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8644 Update.
8645 * tui/tui-source.c (tui_source_window::set_contents): Update.
8646 * symtab.c (lookup_global_or_static_symbol)
8647 (find_function_start_sal_1, skip_prologue_sal)
8648 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8649 * symmisc.c (dump_msymbols, dump_symtab_1)
8650 (maintenance_print_one_line_table): Update.
8651 * symfile.c (init_entry_point_info, section_is_mapped)
8652 (list_overlays_command, simple_read_overlay_table)
8653 (simple_overlay_update_1): Update.
8654 * stap-probe.c (handle_stap_probe): Update.
8655 * stabsread.c (dbx_init_float_type, define_symbol)
8656 (read_one_struct_field, read_enum_type, read_range_type): Update.
8657 * source.c (info_line_command): Update.
8658 * python/python.c (gdbpy_source_objfile_script)
8659 (gdbpy_execute_objfile_script): Update.
8660 * python/py-type.c (save_objfile_types): Update.
8661 * python/py-objfile.c (py_free_objfile): Update.
8662 * python/py-inferior.c (python_new_objfile): Update.
8663 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8664 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8665 (maintenance_check_psymtabs): Update.
8666 * printcmd.c (info_address_command): Update.
8667 * objfiles.h (struct objfile) <arch>: New method, from
8668 get_objfile_arch.
8669 (get_objfile_arch): Don't declare.
8670 * objfiles.c (get_objfile_arch): Remove.
8671 (filter_overlapping_sections): Update.
8672 * minsyms.c (msymbol_is_function): Update.
8673 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8674 (output_nondebug_symbol): Update.
8675 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8676 (mdebug_expand_psymtab): Update.
8677 * machoread.c (macho_add_oso_symfile): Update.
8678 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8679 Update.
8680 * linux-fork.c (checkpoint_command): Update.
8681 * linespec.c (convert_linespec_to_sals): Update.
8682 * jit.c (finalize_symtab): Update.
8683 * infrun.c (insert_exception_resume_from_probe): Update.
8684 * ia64-tdep.c (ia64_find_unwind_table): Update.
8685 * hppa-tdep.c (internalize_unwinds): Update.
8686 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8687 Update.
8688 * gcore.c (call_target_sbrk): Update.
8689 * elfread.c (record_minimal_symbol, elf_symtab_read)
8690 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8691 (elf_gnu_ifunc_resolve_by_got): Update.
8692 * dwarf2/read.c (create_addrmap_from_index)
8693 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8694 (read_debug_names_from_section)
8695 (process_psymtab_comp_unit_reader, add_partial_symbol)
8696 (add_partial_subprogram, process_full_comp_unit)
8697 (read_file_scope, read_func_scope, read_lexical_block_scope)
8698 (read_call_site_scope, dwarf2_ranges_read)
8699 (dwarf2_record_block_ranges, dwarf2_add_field)
8700 (mark_common_block_symbol_computed, read_tag_pointer_type)
8701 (read_tag_string_type, dwarf2_init_float_type)
8702 (dwarf2_init_complex_target_type, read_base_type)
8703 (partial_die_info::read, partial_die_info::read)
8704 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8705 (dwarf2_fetch_die_loc_sect_off): Update.
8706 * dwarf2/loc.c (dwarf2_find_location_expression)
8707 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8708 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8709 (dwarf2_loc_desc_get_symbol_read_needs)
8710 (locexpr_describe_location_piece, locexpr_describe_location_1)
8711 (loclist_describe_location): Update.
8712 * dwarf2/index-write.c (write_debug_names): Update.
8713 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8714 * dtrace-probe.c (dtrace_process_dof): Update.
8715 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8716 (process_one_symbol): Update.
8717 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8718 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8719 (coff_read_enum_type): Update.
8720 * cli/cli-cmds.c (edit_command, list_command): Update.
8721 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8722 * breakpoint.c (create_overlay_event_breakpoint)
8723 (create_longjmp_master_breakpoint)
8724 (create_std_terminate_master_breakpoint)
8725 (create_exception_master_breakpoint, get_sal_arch): Update.
8726 * block.c (block_gdbarch): Update.
8727 * annotate.c (annotate_source_line): Update.
8728
8729 2020-04-17 Tom Tromey <tromey@adacore.com>
8730
8731 * auto-load.c (show_auto_load_cmd): Remove.
8732 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8733 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8734 (maintenance_print_arc_command): Remove.
8735 * tui/tui-win.c (tui_command): Remove.
8736 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8737 * tui/tui-layout.c (tui_layout_command): Remove.
8738 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8739 * python/python.c (user_set_python, user_show_python): Remove.
8740 (_initialize_python): Use add_basic_prefix_cmd,
8741 add_show_prefix_cmd.
8742 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8743 (install_gdb_commands): Use add_basic_prefix_cmd,
8744 add_show_prefix_cmd.
8745 (info_guile_command): Remove.
8746 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8747 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8748 add_show_prefix_cmd.
8749 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8750 Remove do_set and do_show parameters.
8751 * cli/cli-style.c (set_style, show_style): Remove.
8752 (_initialize_cli_style): Use add_basic_prefix_cmd,
8753 add_show_prefix_cmd.
8754 (cli_style_option::add_setshow_commands): Remove do_set and
8755 do_show parameters.
8756 (cli_style_option::add_setshow_commands): Use
8757 add_basic_prefix_cmd, add_show_prefix_cmd.
8758 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8759 (set_style_name): Remove.
8760 * cli/cli-dump.c (dump_command, append_command): Remove.
8761 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8762 (tekhex_dump_command, binary_dump_command)
8763 (binary_append_command): Remove.
8764 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8765 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8766 (init_w32_command_list): Remove; move into ...
8767 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8768 * valprint.c (set_print, show_print, set_print_raw)
8769 (show_print_raw): Remove.
8770 (_initialize_valprint): Use add_basic_prefix_cmd,
8771 add_show_prefix_cmd.
8772 * typeprint.c (set_print_type, show_print_type): Remove.
8773 (_initialize_typeprint): Use add_basic_prefix_cmd,
8774 add_show_prefix_cmd.
8775 * record.c (set_record_command, show_record_command): Remove.
8776 (_initialize_record): Use add_basic_prefix_cmd,
8777 add_show_prefix_cmd.
8778 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8779 add_show_prefix_cmd.
8780 (info_command, show_command, set_debug, show_debug): Remove.
8781 * top.h (set_history, show_history): Don't declare.
8782 * top.c (set_history, show_history): Remove.
8783 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8784 (unset_tdesc_cmd): Remove.
8785 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8786 add_show_prefix_cmd.
8787 * symtab.c (info_module_command): Remove.
8788 (_initialize_symtab): Use add_basic_prefix_cmd.
8789 * symfile.c (overlay_command): Remove.
8790 (_initialize_symfile): Use add_basic_prefix_cmd.
8791 * sparc64-tdep.c (info_adi_command): Remove.
8792 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8793 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8794 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8795 add_show_prefix_cmd.
8796 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8797 (_initialize_serial): Use add_basic_prefix_cmd,
8798 add_show_prefix_cmd.
8799 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8800 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8801 add_show_prefix_cmd.
8802 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8803 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8804 add_show_prefix_cmd.
8805 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8806 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8807 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8808 add_show_prefix_cmd.
8809 * remote.c (remote_command, set_remote_cmd): Remove.
8810 (_initialize_remote): Use add_basic_prefix_cmd.
8811 * record-full.c (set_record_full_command)
8812 (show_record_full_command): Remove.
8813 (_initialize_record_full): Use add_basic_prefix_cmd,
8814 add_show_prefix_cmd.
8815 * record-btrace.c (cmd_set_record_btrace)
8816 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8817 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8818 (cmd_show_record_btrace_pt): Remove.
8819 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8820 add_show_prefix_cmd.
8821 * ravenscar-thread.c (set_ravenscar_command)
8822 (show_ravenscar_command): Remove.
8823 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8824 add_show_prefix_cmd.
8825 * mips-tdep.c (show_mips_command, set_mips_command)
8826 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8827 add_show_prefix_cmd.
8828 * maint.c (maintenance_command, maintenance_info_command)
8829 (maintenance_check_command, maintenance_print_command)
8830 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8831 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8832 add_show_prefix_cmd.
8833 (show_per_command_cmd): Remove.
8834 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8835 Remove.
8836 (maintenance_show_test_settings_cmd): Remove.
8837 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8838 add_show_prefix_cmd.
8839 * maint-test-options.c (maintenance_test_options_command):
8840 Remove.
8841 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8842 * macrocmd.c (macro_command): Remove
8843 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8844 * language.c (set_check, show_check): Remove.
8845 (_initialize_language): Use add_basic_prefix_cmd,
8846 add_show_prefix_cmd.
8847 * infcmd.c (unset_command): Remove.
8848 (_initialize_infcmd): Use add_basic_prefix_cmd.
8849 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8850 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8851 add_show_prefix_cmd.
8852 * go32-nat.c (go32_info_dos_command): Remove.
8853 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8854 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8855 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8856 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8857 (_initialize_frame): Use add_basic_prefix_cmd,
8858 add_show_prefix_cmd.
8859 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8860 (_initialize_dcache): Use add_basic_prefix_cmd,
8861 add_show_prefix_cmd.
8862 * cp-support.c (maint_cplus_command): Remove.
8863 (_initialize_cp_support): Use add_basic_prefix_cmd.
8864 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8865 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8866 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8867 add_basic_prefix_cmd, add_show_prefix_cmd.
8868 * breakpoint.c (save_command): Remove.
8869 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8870 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8871 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8872 add_show_prefix_cmd.
8873 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8874 (set_ada_command, show_ada_command): Remove.
8875 (_initialize_ada_language): Use add_basic_prefix_cmd,
8876 add_show_prefix_cmd.
8877 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8878
8879 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8880
8881 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8882 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8883
8884 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8885
8886 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8887 warning messages.
8888
8889 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8890
8891 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8892 import table is not at beginning of .idata section.
8893
8894 2020-04-16 Pedro Alves <palves@redhat.com>
8895
8896 * inferior.c (delete_inferior): Use delete operator directly
8897 instead of delete_program_space.
8898 * progspace.c (add_program_space): New, factored out from
8899 program_space::program_space.
8900 (remove_program_space): New, factored out from
8901 delete_program_space.
8902 (program_space::program_space): Remove intro comment. Rewrite.
8903 (program_space::~program_space): Remove intro comment. Call
8904 remove_program_space.
8905 (delete_program_space): Delete.
8906 * progspace.h (program_space::program_space): Make explicit. Move
8907 intro comment here, adjusted.
8908 (program_space::~program_space): Move intro comment here,
8909 adjusted.
8910 (delete_program_space): Remove.
8911
8912 2020-04-16 Tom Tromey <tromey@adacore.com>
8913
8914 * windows-nat.c (windows_nat::handle_access_violation): New
8915 function.
8916 * nat/windows-nat.h (handle_access_violation): Declare.
8917 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8918 windows-nat.c. Call handle_access_violation.
8919
8920 2020-04-16 Tom de Vries <tdevries@suse.de>
8921
8922 PR symtab/25791
8923 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8924 CUs without psymtab.
8925
8926 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8927
8928 * python/python.c (do_start_initialization): Don't call
8929 PyEval_InitThreads for Python 3.9 and beyond.
8930
8931 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8932
8933 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8934 thread functions.
8935 (obsd_nat_target::wait): Likewise.
8936
8937 2020-04-15 Tom Tromey <tromey@adacore.com>
8938
8939 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8940 (DEBUG_EXCEPT): Use debug_printf.
8941
8942 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8943
8944 * completer.c (class completion_tracker::completion_hash_entry)
8945 <hash_name>: New member function.
8946 (completion_tracker::discard_completions): New callback to hash a
8947 completion_hash_entry, pass this to htab_create_alloc.
8948
8949 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8950
8951 * windows-nat.c (windows_make_so): Warn rather than stopping with
8952 an error if realpath() fails.
8953
8954 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8955
8956 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8957 (nbsd_nat_target::info_proc): Add do_status.
8958
8959 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8960 Tom de Vries <tdevries@suse.de>
8961
8962 PR symtab/25718
8963 * psympriv.h (struct partial_symtab::read_symtab)
8964 (struct partial_symtab::expand_psymtab)
8965 (struct partial_symtab::read_dependencies): Update comments.
8966 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8967 read_symtab for includer.
8968 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8969 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8970 (struct dwarf2_include_psymtab::m_readin): Remove.
8971 (struct dwarf2_include_psymtab::includer): New member function.
8972 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8973
8974 2020-04-14 Tom de Vries <tdevries@suse.de>
8975
8976 PR symtab/25720
8977 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8978 with NULL symbol_matcher and lookup_name.
8979 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8980 and lookup_name.
8981 * dwarf2/read.c (dw2_expand_symtabs_matching)
8982 (dw2_debug_names_expand_symtabs_matching): Same.
8983 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8984 Make lookup_name a pointer. Update comment.
8985 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8986 lookup_name being a pointer.
8987 * symfile.c (expand_symtabs_matching): Same.
8988 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8989 * linespec.c (iterate_over_all_matching_symtabs): Same.
8990
8991 2020-04-13 Tom Tromey <tom@tromey.com>
8992
8993 * run-on-main-thread.c: Update include.
8994 * unittests/main-thread-selftests.c: Update include.
8995 * tui/tui-win.c: Update include.
8996 * tui/tui-io.c: Update include.
8997 * tui/tui-interp.c: Update include.
8998 * tui/tui-hooks.c: Update include.
8999 * top.h: Update include.
9000 * top.c: Update include.
9001 * ser-base.c: Update include.
9002 * remote.c: Update include.
9003 * remote-notif.c: Update include.
9004 * remote-fileio.c: Update include.
9005 * record-full.c: Update include.
9006 * record-btrace.c: Update include.
9007 * python/python.c: Update include.
9008 * posix-hdep.c: Update include.
9009 * mingw-hdep.c: Update include.
9010 * mi/mi-main.c: Update include.
9011 * mi/mi-interp.c: Update include.
9012 * main.c: Update include.
9013 * linux-nat.c: Update include.
9014 * interps.c: Update include.
9015 * infrun.c: Update include.
9016 * inf-loop.c: Update include.
9017 * event-top.c: Update include.
9018 * event-loop.c: Move to ../gdbsupport/.
9019 * event-loop.h: Move to ../gdbsupport/.
9020 * async-event.h: Update include.
9021 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9022
9023 2020-04-13 Tom Tromey <tom@tromey.com>
9024
9025 * tui/tui-win.c: Include async-event.h.
9026 * remote.c: Include async-event.h.
9027 * remote-notif.c: Include async-event.h.
9028 * record-full.c: Include async-event.h.
9029 * record-btrace.c: Include async-event.h.
9030 * infrun.c: Include async-event.h.
9031 * event-top.c: Include async-event.h.
9032 * event-loop.h: Move some declarations to async-event.h.
9033 * event-loop.c: Don't include ser-event.h or top.h. Move some
9034 code to async-event.c.
9035 * async-event.h: New file.
9036 * async-event.c: New file.
9037 * Makefile.in (COMMON_SFILES): Add async-event.c.
9038 (HFILES_NO_SRCDIR): Add async-event.h.
9039
9040 2020-04-13 Tom Tromey <tom@tromey.com>
9041
9042 * utils.c (flush_streams): New function.
9043 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9044
9045 2020-04-13 Tom Tromey <tom@tromey.com>
9046
9047 * event-loop.c (handle_file_event): Use warning, not
9048 printf_unfiltered.
9049
9050 2020-04-13 Tom Tromey <tom@tromey.com>
9051
9052 * event-loop.c: Include <chrono>.
9053
9054 2020-04-13 Tom Tromey <tom@tromey.com>
9055
9056 * gdb_select.h: Move to ../gdbsupport/.
9057 * event-loop.c: Update include path.
9058 * top.c: Update include path.
9059 * ser-base.c: Update include path.
9060 * ui-file.c: Update include path.
9061 * ser-tcp.c: Update include path.
9062 * guile/scm-ports.c: Update include path.
9063 * posix-hdep.c: Update include path.
9064 * ser-unix.c: Update include path.
9065 * gdb_usleep.c: Update include path.
9066 * mingw-hdep.c: Update include path.
9067 * inflow.c: Update include path.
9068 * infrun.c: Update include path.
9069 * event-top.c: Update include path.
9070
9071 2020-04-13 Tom Tromey <tom@tromey.com>
9072
9073 * configure: Rebuild.
9074 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9075
9076 2020-04-13 Tom Tromey <tom@tromey.com>
9077
9078 * event-loop.h (start_event_loop): Don't declare.
9079 * event-loop.c (start_event_loop): Move...
9080 * main.c (start_event_loop): ...here. Now static.
9081
9082 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9083
9084 * MAINTAINERS: Update my email address.
9085
9086 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9087
9088 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9089 IP_ALL.
9090
9091 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9092
9093 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9094 (nbsd_nat_target::info_proc): Add do_cmdline.
9095
9096 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9097
9098 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9099 (nbsd_nat_target::info_proc): Add do_cwd.
9100
9101 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9102
9103 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9104
9105 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9106
9107 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9108 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9109 (nbsd_nat_target::info_proc): New functions.
9110 * nbsd-nat.c (kinfo_get_vmmap): New function.
9111 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9112 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9113 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9114 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9115 functions.
9116 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9117 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9118 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9119 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9120 (KINFO_VME_FLAG_GROWS_DOWN): New.
9121
9122 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9123
9124 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9125 bit shift.
9126
9127 2020-04-10 Tom Tromey <tromey@adacore.com>
9128
9129 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9130
9131 2020-04-10 Tom Tromey <tromey@adacore.com>
9132
9133 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9134 separate debug files.
9135
9136 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9137
9138 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9139 Move to...
9140 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9141 ... here.
9142 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9143 Check for STATUS_WX86_BREAKPOINT.
9144 (windows_nat_target::wait): Same.
9145
9146 2020-04-10 Tom de Vries <tdevries@suse.de>
9147
9148 PR cli/25808
9149 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9150
9151 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9152
9153 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9154 (Write After Approval): Remove Tom de Vries.
9155
9156 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9157
9158 revert partially:
9159 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9160
9161 * buildsym.c (record_line): Fix undefined behavior and preserve
9162 lines at eof.
9163
9164 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9165
9166 * auxv.h (svr4_auxv_parse): New.
9167 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9168 and generic_auxv_parse.
9169 (svr4_auxv_parse): Add.
9170 * obsd-tdep.c: Include "auxv.h".
9171 (obsd_auxv_parse): Remove.
9172 (obsd_init_abi): Remove comment.
9173 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9174 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9175 * nbsd-tdep.c: Include "auxv.h".
9176 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9177
9178 2020-04-08 Tom Tromey <tromey@adacore.com>
9179
9180 * nat/windows-nat.h (last_wait_event): Don't declare.
9181 (wait_for_debug_event): Update comment.
9182 * nat/windows-nat.c (last_wait_event): Now static.
9183
9184 2020-04-08 Tom Tromey <tromey@adacore.com>
9185
9186 * windows-nat.c (wait_for_debug_event): Move to
9187 nat/windows-nat.c.
9188 * nat/windows-nat.h (wait_for_debug_event): Declare.
9189 * nat/windows-nat.c (wait_for_debug_event): Move from
9190 windows-nat.c. No longer static.
9191
9192 2020-04-08 Tom Tromey <tromey@adacore.com>
9193
9194 * windows-nat.c (get_windows_debug_event): Use
9195 fetch_pending_stop.
9196 * nat/windows-nat.h (fetch_pending_stop): Declare.
9197 * nat/windows-nat.c (fetch_pending_stop): New function.
9198
9199 2020-04-08 Tom Tromey <tromey@adacore.com>
9200
9201 * windows-nat.c (windows_continue): Use matching_pending_stop and
9202 continue_last_debug_event.
9203 * nat/windows-nat.h (matching_pending_stop)
9204 (continue_last_debug_event): Declare.
9205 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9206 (matching_pending_stop, continue_last_debug_event): New
9207 functions.
9208
9209 2020-04-08 Tom Tromey <tromey@adacore.com>
9210
9211 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9212 (handle_exception_result): Move to nat/windows-nat.h.
9213 (DEBUG_EXCEPTION_SIMPLE): Remove.
9214 (windows_nat::handle_ms_vc_exception): New function.
9215 (handle_exception): Move to nat/windows-nat.c.
9216 (get_windows_debug_event): Update.
9217 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9218 nat/windows-nat.c.
9219 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9220 (handle_exception_result): Move from windows-nat.c.
9221 (handle_exception): Declare.
9222 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9223 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9224 windows-nat.c.
9225
9226 2020-04-08 Tom Tromey <tromey@adacore.com>
9227
9228 * windows-nat.c (exception_count, event_count): Remove.
9229 (handle_exception, get_windows_debug_event)
9230 (do_initial_windows_stuff): Update.
9231
9232 2020-04-08 Tom Tromey <tromey@adacore.com>
9233
9234 * windows-nat.c (windows_nat::handle_load_dll)
9235 (windows_nat::handle_unload_dll): Rename. No longer static.
9236 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9237 Declare.
9238
9239 2020-04-08 Tom Tromey <tromey@adacore.com>
9240
9241 * complaints.h (stop_whining): Declare at top-level.
9242 (complaint): Don't declare stop_whining.
9243
9244 2020-04-08 Tom Tromey <tromey@adacore.com>
9245
9246 * windows-nat.c (windows_nat::handle_output_debug_string):
9247 Rename. No longer static.
9248 * nat/windows-nat.h (handle_output_debug_string): Declare.
9249
9250 2020-04-08 Tom Tromey <tromey@adacore.com>
9251
9252 * windows-nat.c (current_process_handle, current_process_id)
9253 (main_thread_id, last_sig, current_event, last_wait_event)
9254 (current_windows_thread, desired_stop_thread_id, pending_stops)
9255 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9256 (display_selectors, fake_create_process)
9257 (get_windows_debug_event): Update.
9258 * nat/windows-nat.h (current_process_handle, current_process_id)
9259 (main_thread_id, last_sig, current_event, last_wait_event)
9260 (current_windows_thread, desired_stop_thread_id, pending_stops)
9261 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9262 * nat/windows-nat.c (current_process_handle, current_process_id)
9263 (main_thread_id, last_sig, current_event, last_wait_event)
9264 (current_windows_thread, desired_stop_thread_id, pending_stops)
9265 (siginfo_er): New globals. Move from windows-nat.c.
9266
9267 2020-04-08 Tom Tromey <tromey@adacore.com>
9268
9269 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9270 (handle_load_dll): Update.
9271 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9272
9273 2020-04-08 Tom Tromey <tromey@adacore.com>
9274
9275 * windows-nat.c (enum thread_disposition_type): Move to
9276 nat/windows-nat.h.
9277 (windows_nat::thread_rec): Rename from thread_rec. No longer
9278 static.
9279 (windows_add_thread, windows_nat_target::fetch_registers)
9280 (windows_nat_target::store_registers, handle_exception)
9281 (windows_nat_target::resume, get_windows_debug_event)
9282 (windows_nat_target::get_tib_address)
9283 (windows_nat_target::thread_name)
9284 (windows_nat_target::thread_alive): Update.
9285 * nat/windows-nat.h (enum thread_disposition_type): Move from
9286 windows-nat.c.
9287 (thread_rec): Declare.
9288
9289 2020-04-08 Tom Tromey <tromey@adacore.com>
9290
9291 * windows-nat.c: Add "using namespace".
9292 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9293 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9294
9295 2020-04-08 Tom Tromey <tromey@adacore.com>
9296
9297 * nat/windows-nat.h (struct windows_thread_info): Declare
9298 destructor.
9299 * nat/windows-nat.c (~windows_thread_info): New.
9300
9301 2020-04-08 Tom Tromey <tromey@adacore.com>
9302
9303 PR gdb/22992
9304 * windows-nat.c (current_event): Update comment.
9305 (last_wait_event, desired_stop_thread_id): New globals.
9306 (struct pending_stop): New.
9307 (pending_stops): New global.
9308 (windows_nat_target) <stopped_by_sw_breakpoint>
9309 <supports_stopped_by_sw_breakpoint>: New methods.
9310 (windows_fetch_one_register): Add assertions. Adjust PC.
9311 (windows_continue): Handle pending stops. Suspend other threads
9312 when stepping. Use last_wait_event
9313 (wait_for_debug_event): New function.
9314 (get_windows_debug_event): Use wait_for_debug_event. Handle
9315 pending stops. Queue spurious stops.
9316 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9317 (windows_nat_target::kill): Use wait_for_debug_event.
9318 * nat/windows-nat.h (struct windows_thread_info)
9319 <stopped_at_software_breakpoint>: New field.
9320 * nat/windows-nat.c (windows_thread_info::resume): Clear
9321 stopped_at_software_breakpoint.
9322
9323 2020-04-08 Tom Tromey <tromey@adacore.com>
9324
9325 * windows-nat.c (enum thread_disposition_type): New.
9326 (thread_rec): Replace "get_context" parameter with "disposition";
9327 change type.
9328 (windows_add_thread, windows_nat_target::fetch_registers)
9329 (windows_nat_target::store_registers, handle_exception)
9330 (windows_nat_target::resume, get_windows_debug_event)
9331 (windows_nat_target::get_tib_address)
9332 (windows_nat_target::thread_name)
9333 (windows_nat_target::thread_alive): Update.
9334
9335 2020-04-08 Tom Tromey <tromey@adacore.com>
9336
9337 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9338 (windows_continue): Use windows_continue::resume.
9339 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9340 resume>: Declare new methods.
9341 * nat/windows-nat.c: New file.
9342 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9343
9344 2020-04-08 Tom Tromey <tromey@adacore.com>
9345
9346 * windows-nat.c (windows_add_thread, windows_delete_thread)
9347 (windows_nat_target::fetch_registers)
9348 (windows_nat_target::store_registers, fake_create_process)
9349 (windows_nat_target::resume, windows_nat_target::resume)
9350 (get_windows_debug_event, windows_nat_target::wait)
9351 (windows_nat_target::pid_to_str)
9352 (windows_nat_target::get_tib_address)
9353 (windows_nat_target::get_ada_task_ptid)
9354 (windows_nat_target::thread_name)
9355 (windows_nat_target::thread_alive): Use lwp, not tid.
9356
9357 2020-04-08 Tom Tromey <tromey@adacore.com>
9358
9359 * windows-nat.c (handle_exception)
9360 (windows_nat_target::thread_name): Update.
9361 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9362 <name>: Now unique_xmalloc_ptr.
9363
9364 2020-04-08 Tom Tromey <tromey@adacore.com>
9365
9366 * windows-nat.c (thread_rec)
9367 (windows_nat_target::fetch_registers): Update.
9368 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9369 Update comment.
9370 <debug_registers_changed, reload_context>: Now bool.
9371
9372 2020-04-08 Tom Tromey <tromey@adacore.com>
9373
9374 * windows-nat.c (windows_add_thread): Use new.
9375 (windows_init_thread_list, windows_delete_thread): Use delete.
9376 (get_windows_debug_event): Update.
9377 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9378 destructor, and initializers.
9379
9380 2020-04-08 Tom Tromey <tromey@adacore.com>
9381
9382 * windows-nat.c (struct windows_thread_info): Remove.
9383 * nat/windows-nat.h: New file.
9384
9385 2020-04-08 Tom Tromey <tromey@adacore.com>
9386
9387 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9388 (thread_rec, windows_add_thread, windows_delete_thread)
9389 (windows_continue): Update.
9390
9391 2020-04-08 Tom Tromey <tromey@adacore.com>
9392
9393 * windows-nat.c (struct windows_thread_info): Remove typedef.
9394 (thread_head): Remove.
9395 (thread_list): New global.
9396 (thread_rec, windows_add_thread, windows_init_thread_list)
9397 (windows_delete_thread, windows_continue): Update.
9398
9399 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9400
9401 * windows-tdep.h (windows_init_abi): Add comment.
9402 (cygwin_init_abi): New declaration.
9403 * windows-tdep.c: Split signal enumeration in two, one for
9404 Windows and one for Cygwin.
9405 (windows_gdb_signal_to_target): Only deal with signal of the
9406 Windows OS ABI.
9407 (cygwin_gdb_signal_to_target): New function.
9408 (windows_init_abi): Rename to windows_init_abi_common, don't set
9409 gdb_signal_to_target gdbarch method. Add new new function with
9410 this name.
9411 (cygwin_init_abi): New function.
9412 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9413 comment. Don't call windows_init_abi.
9414 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9415 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9416 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9417 i386_windows_init_abi_common, don't call windows_init_abi. Add
9418 a new function of this name.
9419 (i386_cygwin_init_abi): New function.
9420 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9421 OS ABI Cygwin.
9422
9423 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9424
9425 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9426 parameter.c.
9427 (dwarf2_read_gdb_index): Update.
9428
9429 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9430
9431 * nbsd-tdep.c: Include "objfiles.h".
9432 (nbsd_skip_solib_resolver): New.
9433 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9434
9435 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9436
9437 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9438 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9439 with DW_LLE_base_addressx are being emitted in DWARFv5.
9440 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9441 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9442 unsigned integer.
9443
9444 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9445
9446 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9447 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9448 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9449 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9450 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9451 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9452 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9453
9454
9455 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9456
9457 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9458 (read_loclist_index): New function definition.
9459 (lookup_loclist_base): New function definition.
9460 (read_loclist_header): New function definition.
9461 (dwarf2_cu): Add loclist_base and loclist_header field.
9462 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9463 (read_full_die_1): Read the value of DW_AT_loclists_base.
9464 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9465 (read_attribute_value): Handle DW_FORM_loclistx.
9466 (skip_one_die): Handle DW_FORM_loclistx.
9467 (loclist_header): New structure declaration.
9468 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9469
9470 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9471
9472 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9473 constructor. Remove `addr` parameter from other constructor and
9474 add `per_cu` parameter.
9475 * dwarf2/read.c (create_partial_symtab): Update.
9476
9477 2020-04-07 Tom de Vries <tdevries@suse.de>
9478
9479 PR symtab/25796
9480 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9481 (partial_die_info::fixup): Inherit has_const_value.
9482
9483 2020-04-07 Tom de Vries <tdevries@suse.de>
9484
9485 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9486 symbols without address.
9487
9488 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9489
9490 * nbsd-nat.h (struct thread_info): Add forward declaration.
9491 (nbsd_nat_target::thread_alive): Add.
9492 (nbsd_nat_target::thread_name): Likewise.
9493 (nbsd_nat_target::update_thread_list): Likewise.
9494 (update_thread_list::post_attach): Likewise.
9495 (post_attach::pid_to_str): Likewise.
9496 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9497 (nbsd_thread_lister): Add.
9498 (nbsd_nat_target::thread_alive): Likewise.
9499 (nbsd_nat_target::thread_name): Likewise.
9500 (nbsd_add_threads): Likewise.
9501 (update_thread_list::post_attach): Likewise.
9502 (nbsd_nat_target::update_thread_list): Likewise.
9503 (post_attach::pid_to_str): Likewise.
9504
9505 2020-04-06 Tom Tromey <tromey@adacore.com>
9506
9507 * ada-valprint.c (print_variant_part): Extract the variant field.
9508 (print_field_values): Use the field as the outer value when
9509 recursing.
9510
9511 2020-04-06 Tom Tromey <tromey@adacore.com>
9512
9513 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9514 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9515 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9516 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9517 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9518
9519 2020-04-06 Tom Tromey <tromey@adacore.com>
9520
9521 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9522 TYPE_CODE_ERROR.
9523
9524 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9525
9526 * nbsd-tdep.c: Include "gdbarch.h".
9527 Define enum with NetBSD signal numbers.
9528 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9529 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9530 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9531 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9532 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9533 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9534 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9535 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9536 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9537 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9538 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9539 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9540
9541 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9542
9543 PR gdb/25325
9544 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9545
9546 2020-04-03 Tom Tromey <tromey@adacore.com>
9547
9548 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9549 Read constant block.
9550
9551 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9552
9553 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9554 (gdb_bfd_get_full_section_contents): New declaration.
9555 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9556 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9557 gdb_bfd_get_full_section_contents.
9558
9559 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9560
9561 * exec.c (build_section_table): Replace internal_error with
9562 gdb_assert.
9563 (section_table_xfer_memory_partial): Likewise.
9564 * mdebugread.c (parse_partial_symbols): Likewise.
9565 * psymtab.c (lookup_partial_symbol): Likewise.
9566 * utils.c (wrap_here): Likewise.
9567
9568 2020-04-02 Tom Tromey <tromey@adacore.com>
9569
9570 * f-lang.c (build_fortran_types): Use arch_type to initialize
9571 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9572
9573 2020-04-02 Tom Tromey <tromey@adacore.com>
9574
9575 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9576 of attributes.
9577
9578 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9579 Bernd Edlinger <bernd.edlinger@hotmail.de>
9580 Tom Tromey <tromey@adacore.com>
9581
9582 * buildsym.c (buildsym_compunit::record_line): Remove
9583 deduplication code.
9584
9585 2020-04-02 Tom de Vries <tdevries@suse.de>
9586
9587 PR ada/24671
9588 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9589
9590 2020-04-02 Tom de Vries <tdevries@suse.de>
9591
9592 * dwarf2/read.c (dwarf2_gdb_index_functions,
9593 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9594 NULL.
9595 * psymtab.c (psym_lookup_global_symbol_language): New function.
9596 (psym_functions): Init psym_lookup_global_symbol_language with
9597 psym_lookup_global_symbol_language.
9598 * symfile-debug.c (debug_sym_quick_functions): Init
9599 lookup_global_symbol_language with NULL.
9600 * symfile.c (set_initial_language): Remove fixme comment.
9601 * symfile.h (struct quick_symbol_functions): Add
9602 lookup_global_symbol_language.
9603 * symtab.c (find_quick_global_symbol_language): New function.
9604 (find_main_name): Use find_quick_global_symbol_language.
9605
9606 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9607
9608 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9609
9610 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9611
9612 * buildsym.c (record_line): Fix undefined behavior and preserve
9613 lines at eof.
9614
9615 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9616
9617 * buildsym.c (record_line): Fix the resizing condition.
9618
9619 2020-04-01 Tom Tromey <tom@tromey.com>
9620
9621 * value.h (value_literal_complex): Add comment.
9622 * valops.c (value_literal_complex): Refer to value.h.
9623
9624 2020-04-01 Tom Tromey <tom@tromey.com>
9625
9626 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9627 (scalar_type): New rule, from typebase.
9628 (typebase): Use scalar_type. Recognize complex types.
9629 (field_name): Handle FLOAT_KEYWORD.
9630 (ident_tokens): Add _Complex and __complex__.
9631
9632 2020-04-01 Tom Tromey <tom@tromey.com>
9633
9634 PR exp/25299:
9635 * valarith.c (promotion_type, complex_binop): New functions.
9636 (scalar_binop): Handle complex numbers. Use promotion_type.
9637 (value_pos, value_neg, value_complement): Handle complex numbers.
9638
9639 2020-04-01 Tom Tromey <tom@tromey.com>
9640
9641 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9642 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9643 (parse_number): Handle complex numbers.
9644
9645 2020-04-01 Tom Tromey <tom@tromey.com>
9646
9647 * c-valprint.c (c_decorations): Change complex suffix to "i".
9648
9649 2020-04-01 Tom Tromey <tom@tromey.com>
9650
9651 * valprint.c (generic_value_print_complex): Use accessors.
9652 * value.h (value_real_part, value_imaginary_part): Declare.
9653 * valops.c (value_real_part, value_imaginary_part): New
9654 functions.
9655 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9656
9657 2020-04-01 Tom Tromey <tom@tromey.com>
9658
9659 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9660 (read_range_type): Update.
9661 * mdebugread.c (basic_type): Update.
9662 * go-lang.c (build_go_types): Use init_complex_type.
9663 * gdbtypes.h (struct main_type) <complex_type>: New member.
9664 (init_complex_type): Update.
9665 (arch_complex_type): Don't declare.
9666 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9667 Make name if none given. Use alloc_type_copy. Look for cached
9668 complex type.
9669 (arch_complex_type): Remove.
9670 (gdbtypes_post_init): Use init_complex_type.
9671 * f-lang.c (build_fortran_types): Use init_complex_type.
9672 * dwarf2/read.c (read_base_type): Update.
9673 * d-lang.c (build_d_types): Use init_complex_type.
9674 * ctfread.c (read_base_type): Update.
9675
9676 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9677
9678 * infrun.c (stop_all_threads): Update assertion, plus when
9679 stopping threads, take into account that we might be trying
9680 to stop an all-stop target.
9681 (stop_waiting): Call 'stop_all_threads' if there exists a
9682 non-stop target.
9683
9684 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9685
9686 * target.h (exists_non_stop_target): New function declaration.
9687 * target.c (exists_non_stop_target): New function.
9688
9689 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9690
9691 PR gdb/24789
9692 * eval.c (is_integral_or_integral_reference): New function.
9693 (evaluate_subexp_standard): Allow integer references in
9694 pointer arithmetic.
9695
9696 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9697
9698 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9699 check for no ptid in the stop reply when the target is non-stop.
9700
9701 2020-04-01 Tom Tromey <tromey@adacore.com>
9702
9703 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9704 "name" parameter to rvalue reference. Initialize m_name_holder.
9705 <lookup_name_info>: New overloads.
9706 <name>: Return gdb::string_view.
9707 <c_str>: New method.
9708 <make_ignore_params>: Update.
9709 <search_name_hash>: Update.
9710 <language_lookup_name>: Return const char *.
9711 <m_name>: Change type.
9712 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9713 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9714 (lookup_name_info::match_any): Update.
9715 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9716 Update.
9717 * minsyms.c (linkage_name_str): Update.
9718 * language.c (default_symbol_name_matcher): Update.
9719 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9720 Update.
9721 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9722 (ada_lookup_name_info::ada_lookup_name_info): Update.
9723 (literal_symbol_name_matcher): Update.
9724
9725 2020-04-01 Tom Tromey <tromey@adacore.com>
9726
9727 * psymtab.c (psymtab_search_name): Remove function.
9728 (psym_lookup_symbol): Create search name and lookup name here.
9729 (lookup_partial_symbol): Remove "name" parameter; add
9730 lookup_name.
9731 (psym_expand_symtabs_for_function): Update.
9732
9733 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9734
9735 PR tui/25597:
9736 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9737
9738 2020-03-31 Tom Tromey <tromey@adacore.com>
9739
9740 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9741 memcpy.
9742
9743 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9744
9745 * features/riscv/32bit-csr.xml: Regenerated.
9746 * features/riscv/64bit-csr.xml: Regenerated.
9747
9748 2020-03-30 Tom Tromey <tromey@adacore.com>
9749
9750 * ada-valprint.c (print_variant_part): Update.
9751 * ada-lang.h (ada_which_variant_applies): Update.
9752 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9753 outer_valaddr parameters; replace with "outer" value parameter.
9754 (to_fixed_variant_branch_type): Update.
9755
9756 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9757
9758 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9759 <list>. Remove inclusion of observable.h.
9760 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9761 (struct arch_lwp_info): New struct.
9762 (class ppc_linux_dreg_interface): New class.
9763 (struct ppc_linux_process_info): New struct.
9764 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9765 <low_new_clone, low_forget_process, low_prepare_to_resume>
9766 <copy_thread_dreg_state, mark_thread_stale>
9767 <mark_debug_registers_changed, register_hw_breakpoint>
9768 <clear_hw_breakpoint, register_wp, clear_wp>
9769 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9770 <num_memory_accesses, get_trigger_type>
9771 <create_watchpoint_request, hwdebug_point_cmp>
9772 <init_arch_lwp_info, get_arch_lwp_info>
9773 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9774 methods.
9775 <struct ptid_hash>: New inner struct.
9776 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9777 members.
9778 (saved_dabr_value, hwdebug_info, max_slots_number)
9779 (struct hw_break_tuple, struct thread_points, ppc_threads)
9780 (have_ptrace_hwdebug_interface)
9781 (hwdebug_find_thread_points_by_tid)
9782 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9783 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9784 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9785 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9786 use m_dreg_interface.
9787 (hwdebug_point_cmp): Change to...
9788 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9789 reference arguments instead of pointers.
9790 (ppc_linux_nat_target::ranged_break_num_registers): Use
9791 m_dreg_interface.
9792 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9793 m_dreg_interface. Call register_hw_breakpoint.
9794 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9795 m_dreg_interface. Call clear_hw_breakpoint.
9796 (get_trigger_type): Change to...
9797 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9798 comment.
9799 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9800 use m_dreg_interface. Call register_hw_breakpoint.
9801 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9802 use m_dreg_interface. Call clear_hw_breakpoint.
9803 (can_use_watchpoint_cond_accel): Change to...
9804 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9805 method. Update comment, use m_dreg_interface and
9806 m_process_info.
9807 (calculate_dvc): Change to...
9808 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9809 m_dreg_interface.
9810 (num_memory_accesses): Change to...
9811 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9812 (check_condition): Change to...
9813 (ppc_linux_nat_target::check_condition): ...this method.
9814 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9815 comment, use m_dreg_interface.
9816 (create_watchpoint_request): Change to...
9817 (ppc_linux_nat_target::create_watchpoint_request): ...this
9818 method. Use m_dreg_interface.
9819 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9820 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9821 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9822 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9823 (ppc_linux_nat_target::low_forget_process)
9824 (ppc_linux_nat_target::low_new_fork)
9825 (ppc_linux_nat_target::low_new_clone)
9826 (ppc_linux_nat_target::low_delete_thread)
9827 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9828 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9829 only call mark_thread_stale.
9830 (ppc_linux_thread_exit): Remove.
9831 (ppc_linux_nat_target::stopped_data_address): Change to...
9832 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9833 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9834 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9835 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9836 comment. Call low_stopped_data_address.
9837 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9838 m_dreg_interface.
9839 (ppc_linux_nat_target::masked_watch_num_registers): Use
9840 m_dreg_interface.
9841 (ppc_linux_nat_target::copy_thread_dreg_state)
9842 (ppc_linux_nat_target::mark_thread_stale)
9843 (ppc_linux_nat_target::mark_debug_registers_changed)
9844 (ppc_linux_nat_target::register_hw_breakpoint)
9845 (ppc_linux_nat_target::clear_hw_breakpoint)
9846 (ppc_linux_nat_target::register_wp)
9847 (ppc_linux_nat_target::clear_wp)
9848 (ppc_linux_nat_target::init_arch_lwp_info)
9849 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9850 (_initialize_ppc_linux_nat): Remove observer callback.
9851
9852 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9853
9854 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9855 (ppc_linux_nat_target::auxv_parse)
9856 (ppc_linux_nat_target::read_description)
9857 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9858 Move up.
9859
9860 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9861
9862 * linux-nat.h (low_new_clone): New method.
9863 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9864
9865 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9866
9867 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9868 (dbx_expand_psymtab): ... this.
9869 (start_psymtab): Update.
9870 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9871 (mdebug_expand_psymtab): ... this.
9872 (parse_partial_symbols): Update.
9873 (new_psymtab): Update.
9874 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9875 (xcoff_expand_psymtab): ... this.
9876 (xcoff_start_psymtab): Update.
9877
9878 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9879
9880 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9881 <expand_dependencies>: ... this.
9882 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9883 (partial_symtab::expand_dependencies): ... this.
9884 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9885 Update.
9886 (dwarf2_psymtab::expand_psymtab): Update.
9887 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9888 * mdebugread.c (psymtab_to_symtab_1): Update.
9889 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9890
9891 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9892
9893 * psympriv.h (discard_psymtab): Remove.
9894 * dbxread.c (dbx_end_psymtab): Update.
9895 * xcoffread.c (xcoff_end_psymtab): Update.
9896
9897 2020-03-28 Tom Tromey <tom@tromey.com>
9898
9899 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9900 comment.
9901
9902 2020-03-28 Tom Tromey <tom@tromey.com>
9903
9904 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9905
9906 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9907
9908 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9909
9910 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9911
9912 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9913
9914 2020-03-26 Tom Tromey <tom@tromey.com>
9915
9916 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9917 (mark_common_block_symbol_computed, read_tag_string_type)
9918 (attr_to_dynamic_prop, read_subrange_type): Update.
9919 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9920 to be methods on struct attribute.
9921 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9922 (read_call_site_scope, partial_die_info::read)
9923 (partial_die_info::read, lookup_die_type, follow_die_ref):
9924 Update.
9925 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9926 from dwarf2_get_ref_die_offset.
9927 (attribute::constant_value): New method, from
9928 dwarf2_get_attr_constant_value.
9929 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9930 Declare method.
9931 <constant_value>: New method.
9932
9933 2020-03-26 Tom Tromey <tom@tromey.com>
9934
9935 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9936 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9937 (dwarf_type_encoding_name): Move to stringify.c.
9938 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9939 * dwarf2/stringify.c: New file.
9940 * dwarf2/stringify.h: New file.
9941
9942 2020-03-26 Tom Tromey <tom@tromey.com>
9943
9944 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9945 Rewrite.
9946
9947 2020-03-26 Tom Tromey <tom@tromey.com>
9948
9949 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9950 methods.
9951 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9952 (lookup_ranges_base): Likewise.
9953 (read_cutu_die_from_dwo, read_full_die_1): Update.
9954
9955 2020-03-26 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2/read.c (read_import_statement, read_file_scope)
9958 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9959 (read_lexical_block_scope, read_call_site_scope)
9960 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9961 (handle_struct_member_die, process_structure_scope)
9962 (update_enumeration_type_from_children)
9963 (process_enumeration_scope, read_array_type, read_common_block)
9964 (read_namespace, read_module, read_subroutine_type): Update.
9965 (sibling_die): Remove.
9966
9967 2020-03-26 Tom Tromey <tom@tromey.com>
9968
9969 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9970 (build_type_psymtabs_reader, read_structure_type)
9971 (read_enumeration_type, read_full_die_1): Update.
9972 (dwarf2_attr_no_follow): Move to die.h.
9973 * dwarf2/die.h (struct die_info) <attr>: New method.
9974
9975 2020-03-26 Tom Tromey <tom@tromey.com>
9976
9977 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9978 <base_address>: Now an optional.
9979 (dwarf2_find_base_address, dwarf2_rnglists_process)
9980 (dwarf2_ranges_process, fill_in_loclist_baton)
9981 (dwarf2_symbol_mark_computed): Update.
9982
9983 2020-03-26 Tom Tromey <tom@tromey.com>
9984
9985 * dwarf2/read.c (struct die_info): Move to die.h.
9986 * dwarf2/die.h: New file.
9987
9988 2020-03-26 Tom Tromey <tom@tromey.com>
9989
9990 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9991 * dwarf2/read.c
9992 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9993 Move to line-header.c.
9994 (read_checked_initial_length_and_offset, read_formatted_entries):
9995 Likewise.
9996 (dwarf_decode_line_header): Split into two.
9997 * dwarf2/line-header.c
9998 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9999 Move from read.c.
10000 (read_checked_initial_length_and_offset, read_formatted_entries):
10001 Likewise.
10002 (dwarf_decode_line_header): New function, split from read.c.
10003
10004 2020-03-26 Tom Tromey <tom@tromey.com>
10005
10006 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10007 Declare method.
10008 * dwarf2/read.c (read_attribute_value): Update.
10009 (dwarf2_per_objfile::read_line_string): Rename from
10010 read_indirect_line_string.
10011 (read_formatted_entries): Update.
10012
10013 2020-03-26 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10016 variable.
10017
10018 2020-03-26 Tom Tromey <tom@tromey.com>
10019
10020 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10021 const.
10022 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10023 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10024 parameter const.
10025
10026 2020-03-26 Tom Tromey <tom@tromey.com>
10027
10028 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10029 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10030 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10031 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10032
10033 2020-03-26 Tom Tromey <tom@tromey.com>
10034
10035 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10036 file_names_size, file_full_name, file_file_name>: Use const.
10037 <file_name_at, file_names>: Add const overload.
10038 * dwarf2/line-header.c (line_header::file_file_name)
10039 (line_header::file_full_name): Update.
10040
10041 2020-03-26 Tom Tromey <tom@tromey.com>
10042
10043 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10044 (macro_start_file, consume_improper_spaces)
10045 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10046 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10047 (dwarf_decode_macros): Move to macro.c.
10048 * dwarf2/macro.c: New file.
10049 * dwarf2/macro.h: New file.
10050 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10051
10052 2020-03-26 Tom Tromey <tom@tromey.com>
10053
10054 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10055 method.
10056 * dwarf2/section.c: New method. From
10057 read_indirect_string_at_offset_from.
10058 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10059 (read_indirect_string_at_offset_from): Move to section.c.
10060 (read_indirect_string_at_offset): Rewrite.
10061 (read_indirect_line_string_at_offset): Remove.
10062 (read_indirect_string, read_indirect_line_string)
10063 (dwarf_decode_macro_bytes): Update.
10064
10065 2020-03-26 Tom Tromey <tom@tromey.com>
10066
10067 * dwarf2/section.h (struct dwarf2_section_info)
10068 <overload_complaint>: Declare.
10069 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10070 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10071 Rename from dwarf2_section_buffer_overflow_complaint.
10072 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10073 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10074
10075 2020-03-26 Tom Tromey <tom@tromey.com>
10076
10077 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10078 Declare.
10079 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10080 Move from read.c.
10081 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10082 to section.c.
10083
10084 2020-03-26 Tom Tromey <tom@tromey.com>
10085
10086 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10087
10088 2020-03-26 Tom Tromey <tom@tromey.com>
10089
10090 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10091 "builder".
10092 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10093 parameter.
10094 (dwarf_decode_macros): Update.
10095
10096 2020-03-26 Tom Tromey <tom@tromey.com>
10097
10098 * dwarf2/read.c (read_attribute_value): Update.
10099 (read_indirect_string_from_dwz): Move to dwz.c; change into
10100 method.
10101 (dwarf_decode_macro_bytes): Update.
10102 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10103 * dwarf2/dwz.c: New file.
10104 * Makefile.in (COMMON_SFILES): Add dwz.c.
10105
10106 2020-03-26 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10109 * dwarf2/read.c: Add include.
10110 * dwarf2/index-write.c: Add include.
10111 * dwarf2/index-cache.c: Add include.
10112 * dwarf2/dwz.h: New file.
10113
10114 2020-03-25 Tom Tromey <tom@tromey.com>
10115
10116 * compile/compile-object-load.c (get_out_value_type): Mention
10117 correct symbol name in error message.
10118
10119 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10120
10121 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10122
10123 2020-03-25 Tom de Vries <tdevries@suse.de>
10124
10125 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10126 * symmisc.c (dump_symtab_1): Print user and includes fields.
10127 (maintenance_info_symtabs): Same.
10128
10129 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10130
10131 PR gdb/25534
10132 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10133 (riscv_regcache_cooked_write): New function.
10134 (riscv_push_dummy_call): Use new function.
10135 (riscv_return_value): Likewise.
10136
10137 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10138
10139 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10140 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10141 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10142 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10143 * infrun.c (follow_fork): Likewise.
10144 (follow_fork_inferior): Likewise.
10145 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10146 * linux-nat.h (class linux_nat_target): Likewise.
10147 * remote.c (class remote_target) <follow_fork>: Likewise.
10148 (remote_target::follow_fork): Likewise.
10149 * target-delegates.c: Re-generate.
10150 * target.c (default_follow_fork): Likewise.
10151 (target_follow_fork): Likewise.
10152 * target.h (struct target_ops) <follow_fork>: Likewise.
10153 (target_follow_fork): Likewise.
10154
10155 2020-03-24 Tom de Vries <tdevries@suse.de>
10156
10157 * psymtab.c (maintenance_info_psymtabs): Print user field.
10158
10159 2020-03-20 Tom Tromey <tromey@adacore.com>
10160
10161 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10162 const.
10163 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10164 const.
10165
10166 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10167
10168 * ptrace.m4: Don't check for ptrace declaration.
10169 * config.in: Re-generate.
10170 * configure: Re-generate.
10171 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10172 not defined.
10173
10174 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10175
10176 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10177 `PTRACE_TYPE_RET'.
10178 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10179 * sparc-nat.c (gdb_ptrace): Likewise.
10180 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10181
10182 2020-03-20 Tom Tromey <tromey@adacore.com>
10183
10184 * c-exp.y (lex_one_token): Fix assert.
10185
10186 2020-03-20 Tom Tromey <tromey@adacore.com>
10187
10188 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10189 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10190 strncpy call.
10191
10192 2020-03-20 Tom Tromey <tromey@adacore.com>
10193
10194 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10195
10196 2020-03-20 Tom Tromey <tromey@adacore.com>
10197
10198 * ada-valprint.c (print_variant_part): Remove parameters; switch
10199 to value-based API.
10200 (print_field_values): Likewise.
10201 (ada_val_print_struct_union): Likewise.
10202 (ada_value_print_1): Update.
10203
10204 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10205
10206 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10207 nbsd_nat_target instead of inf_ptrace_target.
10208 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10209 nbsd_nat_target.
10210
10211 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10212
10213 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10214 it to the ptrace call.
10215 * (store_registers): Likewise.
10216
10217 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10218
10219 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10220 it to the ptrace call.
10221 * (store_registers): Likewise.
10222
10223 2020-03-19 Luis Machado <luis.machado@linaro.org>
10224
10225 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10226 valid, fetch vg value from ptrace.
10227
10228 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10229 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10230 * inf-ptrace.c: Likewise.
10231 * (gdb_ptrace): Add.
10232 * (inf_ptrace_target::resume): Update.
10233 * (inf_ptrace_target::xfer_partial): Likewise.
10234 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10235 * (inf_ptrace_peek_poke): Update.
10236
10237 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10238
10239 * x86-bsd-nat.c (gdb_ptrace): New.
10240 * (x86bsd_dr_set): Add new argument `ptid'.
10241 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10242 x86bsd_dr_set_addr): Update.
10243
10244 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * remote.c (remote_target::process_stop_reply): Handle events for
10247 all threads differently.
10248
10249 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10250
10251 * completer.c (completion_tracker::remove_completion): Define new
10252 function.
10253 * completer.h (completion_tracker::remove_completion): Declare new
10254 function.
10255 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10256 when adding a C++ function symbol.
10257
10258 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10259
10260 * completer.c (completion_tracker::completion_hash_entry): Define
10261 new class.
10262 (advance_to_filename_complete_word_point): Call
10263 recompute_lowest_common_denominator.
10264 (completion_tracker::completion_tracker): Call discard_completions
10265 to setup the hash table.
10266 (completion_tracker::discard_completions): Allow for being called
10267 from the constructor, pass new equal function, and element deleter
10268 when constructing the hash table. Initialise new class member
10269 variables.
10270 (completion_tracker::maybe_add_completion): Remove use of
10271 m_entries_vec, and store more information into m_entries_hash.
10272 (completion_tracker::recompute_lcd_visitor): New function, most
10273 content taken from...
10274 (completion_tracker::recompute_lowest_common_denominator):
10275 ...here, this now just visits each item in the hash calling the
10276 above visitor.
10277 (completion_tracker::build_completion_result): Remove use of
10278 m_entries_vec, call recompute_lowest_common_denominator.
10279 * completer.h (completion_tracker::have_completions): Remove use
10280 of m_entries_vec.
10281 (completion_tracker::completion_hash_entry): Declare new class.
10282 (completion_tracker::recompute_lowest_common_denominator): Change
10283 function signature.
10284 (completion_tracker::recompute_lcd_visitor): Declare new function.
10285 (completion_tracker::m_entries_vec): Delete.
10286 (completion_tracker::m_entries_hash): Initialize to NULL.
10287 (completion_tracker::m_lowest_common_denominator_valid): New
10288 member variable.
10289 (completion_tracker::m_lowest_common_denominator_max_length): New
10290 member variable.
10291
10292 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10293
10294 * regformats/regdef.h: Put reg in gdb namespace.
10295
10296 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10297
10298 * i386-bsd-nat.c (gdb_ptrace): New.
10299 * (i386bsd_fetch_inferior_registers,
10300 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10301 * (i386bsd_fetch_inferior_registers,
10302 i386bsd_store_inferior_registers) Use gdb_ptrace.
10303
10304 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10305
10306 * amd64-bsd-nat.c (gdb_ptrace): New.
10307 * (amd64bsd_fetch_inferior_registers,
10308 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10309 * (amd64bsd_fetch_inferior_registers,
10310 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10311
10312 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10313
10314 * user-regs.c (user_reg::read): Rename to...
10315 (user_reg::xread): ...this.
10316 * (append_user_reg): Rename argument `read' to `xread'.
10317 * (user_reg_add_builtin): Likewise.
10318 * (user_reg_add): Likewise.
10319 * (value_of_user_reg): Likewise.
10320
10321 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10322
10323 * sparc-nat.c (gdb_ptrace): New.
10324 * sparc-nat.c (sparc_fetch_inferior_registers)
10325 (sparc_store_inferior_registers) Remove obsolete comment.
10326 * sparc-nat.c (sparc_fetch_inferior_registers)
10327 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10328 * sparc-nat.c (sparc_fetch_inferior_registers)
10329 (sparc_store_inferior_registers) Use gdb_ptrace.
10330
10331 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10332
10333 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10334 it to the ptrace call.
10335 * sh-nbsd-nat.c (store_registers): Likewise.
10336
10337 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10338
10339 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10340 nbsd_nat_target instead of inf_ptrace_target.
10341 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10342 nbsd_nat_target.
10343
10344 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10345
10346 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10347
10348 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10349
10350 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10351 <sys/sysctl.h>.
10352 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10353
10354 2020-03-17 Tom de Vries <tdevries@suse.de>
10355
10356 PR gdb/23710
10357 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10358 fields.
10359 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10360 fields.
10361 (process_imported_unit_die): Skip import of c++ CUs.
10362
10363 2020-03-16 Tom Tromey <tom@tromey.com>
10364
10365 * p-valprint.c (pascal_object_print_value): Initialize
10366 base_value.
10367
10368 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10369 Shahab Vahedi <shahab@synopsys.com>
10370
10371 * Makefile.in: Add arch/arc.o
10372 * configure.tgt: Likewise.
10373 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10374 (_initialize_arc_tdep): Don't initialize old target descriptions.
10375 (arc_read_description): New function to cache target descriptions.
10376 * arc-tdep.h (arc_read_description): Add proto type.
10377 * arch/arc.c: New file.
10378 * arch/arc.h: Likewise.
10379 * features/Makefile: Replace old target descriptions with new.
10380 * features/arc-arcompact.c: Remove.
10381 * features/arc-arcompact.xml: Likewise.
10382 * features/arc-v2.c: Likewise
10383 * features/arc-v2.xml: Likewise
10384 * features/arc/aux-arcompact.xml: New file.
10385 * features/arc/aux-v2.xml: Likewise.
10386 * features/arc/core-arcompact.xml: Likewise.
10387 * features/arc/core-v2.xml: Likewise.
10388 * features/arc/aux-arcompact.c: Generate.
10389 * features/arc/aux-v2.c: Likewise.
10390 * features/arc/core-arcompact.c: Likewise.
10391 * features/arc/core-v2.c: Likewise.
10392 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10393
10394 2020-03-16 Tom Tromey <tromey@adacore.com>
10395
10396 PR gdb/25663:
10397 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10398 putting value into bcache.
10399
10400 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10401
10402 PR gdb/21500
10403 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10404 to...
10405 (amd64_windows_init_abi_common): ... this. Don't set size of
10406 long type.
10407 (amd64_windows_init_abi): New function.
10408 (amd64_cygwin_init_abi): New function.
10409 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10410 the Cygwin OS ABI.
10411 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10412 comment.
10413
10414 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10415
10416 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10417 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10418 (pe_import_directory_entry): New struct type.
10419 (is_linked_with_cygwin_dll): New function.
10420 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10421 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10422 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10423
10424 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10425
10426 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10427 i386_cygwin_core_osabi_sniffer.
10428
10429 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10430
10431 * i386-cygwin-tdep.c: Rename to...
10432 * i386-windows-tdep.c: ... this.
10433 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10434 i386-windows-tdep.c.
10435 * configure.tgt: Likewise.
10436
10437 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10440 * osabi.c (gdb_osabi_names): Add "Windows".
10441 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10442 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10443 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10444 i386_cygwin_osabi_sniffer.
10445 (_initialize_i386_cygwin_tdep): Register OS ABI
10446 GDB_OSABI_WINDOWS for i386.
10447 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10448 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10449 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10450 for x86-64.
10451 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10452 when the target matches '*-*-mingw*'.
10453
10454 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10455
10456 * defs.h (enum gdb_osabi): Move to...
10457 * osabi.h (enum gdb_osabi): ... here.
10458 * gdbarch.sh: Include osabi.h in gdbarch.h.
10459 * gdbarch.h: Re-generate.
10460
10461 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10462
10463 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10464 function.
10465 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10466
10467 2020-03-14 Tom Tromey <tom@tromey.com>
10468
10469 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10470 for C++.
10471 (c_type_print_modifier): Likewise. Add "language" parameter.
10472 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10473 (c_type_print_base_1): Update.
10474 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10475 constants.
10476 * type-stack.c (type_stack::insert): Handle tp_atomic and
10477 tp_restrict.
10478 (type_stack::follow_type_instance_flags): Likewise.
10479 (type_stack::follow_types): Likewise. Merge type-following code.
10480 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10481 (space_identifier, cv_with_space_id)
10482 (const_or_volatile_or_space_identifier_noopt)
10483 (const_or_volatile_or_space_identifier): Remove.
10484 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10485 rules.
10486 (ptr_operator, typebase): Update.
10487 (enum token_flag) <FLAG_C>: New constant.
10488 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10489 "_Atomic".
10490 (lex_one_token): Handle FLAG_C.
10491
10492 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10493
10494 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10495 it to the ptrace call.
10496 * m68k-bsd-nat.c (store_registers): Likewise.
10497
10498 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10499
10500 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10501 gdb_byte *.
10502 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10503 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10504 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10505
10506 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10507
10508 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10509 nbsd_nat_target instead of inf_ptrace_target.
10510 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10511 nbsd_nat_target.
10512
10513 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10514
10515 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10516 register_t.
10517
10518 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10519
10520 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10521 it to the ptrace call.
10522 * alpha-bsd-nat.c (store_registers): Likewise.
10523
10524 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10525
10526 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10527 includes.
10528 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10529 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10530 fill_fpregset): Likewise.
10531
10532 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10533
10534 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10535 nbsd_nat_target instead of inf_ptrace_target.
10536 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10537 nbsd_nat_target.
10538
10539 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10540
10541 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10542 register_t.
10543
10544 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10545
10546 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10547 it to the ptrace call.
10548 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10549 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10550 * arm-nbsd-nat.c (store_register): Likewise.
10551 * arm-nbsd-nat.c (store_regs): Likewise.
10552 * arm-nbsd-nat.c (store_fp_register): Likewise.
10553 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10554
10555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10556
10557 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10558 nbsd_nat_target instead of inf_ptrace_target.
10559 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10560 nbsd_nat_target.
10561
10562 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10563
10564 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10565 it to the ptrace call.
10566 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10567
10568 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10569
10570 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10571 it to the ptrace call.
10572 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10573
10574 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10575
10576 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10577 gdb_byte *.
10578 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10579
10580 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10581
10582 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10583 instead of inf_ptrace_target.
10584 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10585 nbsd_nat_target.
10586
10587 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10588
10589 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10590 register_t.
10591
10592 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10593
10594 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10595 register_t.
10596
10597 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10598
10599 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10600 register_t.
10601
10602 2020-03-13 Tom Tromey <tom@tromey.com>
10603
10604 * value.h (val_print): Don't declare.
10605 * valprint.h (val_print_array_elements)
10606 (val_print_scalar_formatted, generic_val_print): Don't declare.
10607 * valprint.c (generic_val_print_array): Take a struct value.
10608 (generic_val_print_ptr, generic_val_print_memberptr)
10609 (generic_val_print_bool, generic_val_print_int)
10610 (generic_val_print_char, generic_val_print_complex)
10611 (generic_val_print): Remove.
10612 (generic_value_print): Update.
10613 (do_val_print): Remove unused parameters. Don't call
10614 la_val_print.
10615 (val_print): Remove.
10616 (common_val_print): Update. Don't call value_check_printable.
10617 (val_print_scalar_formatted, val_print_array_elements): Remove.
10618 * rust-lang.c (rust_val_print): Remove.
10619 (rust_language_defn): Update.
10620 * p-valprint.c (pascal_val_print): Remove.
10621 (pascal_value_print_inner): Update.
10622 (pascal_object_print_val_fields, pascal_object_print_val):
10623 Remove.
10624 (pascal_object_print_static_field): Update.
10625 * p-lang.h (pascal_val_print): Don't declare.
10626 * p-lang.c (pascal_language_defn): Update.
10627 * opencl-lang.c (opencl_language_defn): Update.
10628 * objc-lang.c (objc_language_defn): Update.
10629 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10630 * m2-lang.h (m2_val_print): Don't declare.
10631 * m2-lang.c (m2_language_defn): Update.
10632 * language.h (struct language_defn) <la_val_print>: Remove.
10633 * language.c (unk_lang_value_print_inner): Rename. Change
10634 argument types.
10635 (unknown_language_defn, auto_language_defn): Update.
10636 * go-valprint.c (go_val_print): Remove.
10637 * go-lang.h (go_val_print): Don't declare.
10638 * go-lang.c (go_language_defn): Update.
10639 * f-valprint.c (f_val_print): Remove.
10640 * f-lang.h (f_value_print): Don't declare.
10641 * f-lang.c (f_language_defn): Update.
10642 * d-valprint.c (d_val_print): Remove.
10643 * d-lang.h (d_value_print): Don't declare.
10644 * d-lang.c (d_language_defn): Update.
10645 * cp-valprint.c (cp_print_value_fields)
10646 (cp_print_value_fields_rtti, cp_print_value): Remove.
10647 (cp_print_static_field): Update.
10648 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10649 (c_val_print_struct, c_val_print_union, c_val_print_int)
10650 (c_val_print_memberptr, c_val_print): Remove.
10651 * c-lang.h (c_val_print_array, cp_print_value_fields)
10652 (cp_print_value_fields_rtti): Don't declare.
10653 * c-lang.c (c_language_defn, cplus_language_defn)
10654 (asm_language_defn, minimal_language_defn): Update.
10655 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10656 (ada_val_print_enum): Take a struct value.
10657 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10658 (ada_val_print): Remove.
10659 (ada_value_print_1): Update.
10660 (printable_val_type): Remove.
10661 * ada-lang.h (ada_val_print): Don't declare.
10662 * ada-lang.c (ada_language_defn): Update.
10663
10664 2020-03-13 Tom Tromey <tom@tromey.com>
10665
10666 * valprint.c (do_val_print): Update.
10667 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10668 a struct value.
10669 (value_to_value_object_no_release): Declare.
10670 * python/py-value.c (value_to_value_object_no_release): New
10671 function.
10672 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10673 struct value.
10674 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10675 function.
10676 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10677 a struct value.
10678 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10679 Declare.
10680 (gdbscm_apply_val_pretty_printer): Take a struct value.
10681 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10682 value.
10683 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10684 value.
10685 * extension-priv.h (struct extension_language_ops)
10686 <apply_val_pretty_printer>: Take a struct value.
10687 * cp-valprint.c (cp_print_value): Create a struct value.
10688 (cp_print_value): Update.
10689
10690 2020-03-13 Tom Tromey <tom@tromey.com>
10691
10692 * ada-valprint.c (print_field_values): Call common_val_print.
10693
10694 2020-03-13 Tom Tromey <tom@tromey.com>
10695
10696 * ada-valprint.c (val_print_packed_array_elements): Remove
10697 bitoffset and val parameters. Call common_val_print.
10698 (ada_val_print_string): Remove offset, address, and original_value
10699 parameters.
10700 (ada_val_print_array): Update.
10701 (ada_value_print_array): New function.
10702 (ada_value_print_1): Call it.
10703
10704 2020-03-13 Tom Tromey <tom@tromey.com>
10705
10706 * ada-valprint.c (ada_value_print): Use common_val_print.
10707
10708 2020-03-13 Tom Tromey <tom@tromey.com>
10709
10710 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10711
10712 2020-03-13 Tom Tromey <tom@tromey.com>
10713
10714 * ada-valprint.c (ada_value_print_num): New function.
10715 (ada_value_print_1): Use it.
10716
10717 2020-03-13 Tom Tromey <tom@tromey.com>
10718
10719 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10720
10721 2020-03-13 Tom Tromey <tom@tromey.com>
10722
10723 * ada-valprint.c (ada_value_print_ptr): New function.
10724 (ada_value_print_1): Use it.
10725
10726 2020-03-13 Tom Tromey <tom@tromey.com>
10727
10728 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10729 call common_val_print.
10730 (ada_val_print_1): Update.
10731 (ada_value_print_1): New function.
10732 (ada_value_print_inner): Rewrite.
10733
10734 2020-03-13 Tom Tromey <tom@tromey.com>
10735
10736 * cp-valprint.c (cp_print_value_fields): Update.
10737 (cp_print_value): New function.
10738
10739 2020-03-13 Tom Tromey <tom@tromey.com>
10740
10741 * m2-valprint.c (m2_value_print_inner): Use
10742 cp_print_value_fields.
10743 * cp-valprint.c (cp_print_value_fields): New function.
10744 * c-valprint.c (c_value_print_struct): New function.
10745 (c_value_print_inner): Use c_value_print_struct.
10746 * c-lang.h (cp_print_value_fields): Declare.
10747
10748 2020-03-13 Tom Tromey <tom@tromey.com>
10749
10750 * c-valprint.c (c_value_print_array): New function.
10751 (c_value_print_inner): Use it.
10752
10753 2020-03-13 Tom Tromey <tom@tromey.com>
10754
10755 * c-valprint.c (c_value_print_memberptr): New function.
10756 (c_value_print_inner): Use it.
10757
10758 2020-03-13 Tom Tromey <tom@tromey.com>
10759
10760 * c-valprint.c (c_value_print_int): New function.
10761 (c_value_print_inner): Use it.
10762
10763 2020-03-13 Tom Tromey <tom@tromey.com>
10764
10765 * c-valprint.c (c_value_print_ptr): New function.
10766 (c_value_print_inner): Use it.
10767
10768 2020-03-13 Tom Tromey <tom@tromey.com>
10769
10770 * c-valprint.c (c_value_print_inner): Rewrite.
10771
10772 2020-03-13 Tom Tromey <tom@tromey.com>
10773
10774 * valprint.c (generic_value_print_complex): New function.
10775 (generic_value_print): Use it.
10776
10777 2020-03-13 Tom Tromey <tom@tromey.com>
10778
10779 * valprint.c (generic_val_print_float): Don't call
10780 val_print_scalar_formatted.
10781 (generic_val_print, generic_value_print): Update.
10782
10783 2020-03-13 Tom Tromey <tom@tromey.com>
10784
10785 * valprint.c (generic_value_print_char): New function
10786 (generic_value_print): Use it.
10787
10788 2020-03-13 Tom Tromey <tom@tromey.com>
10789
10790 * valprint.c (generic_value_print_int): New function.
10791 (generic_value_print): Use it.
10792
10793 2020-03-13 Tom Tromey <tom@tromey.com>
10794
10795 * valprint.c (generic_value_print_bool): New function.
10796 (generic_value_print): Use it.
10797
10798 2020-03-13 Tom Tromey <tom@tromey.com>
10799
10800 * valprint.c (generic_val_print_func): Simplify.
10801 (generic_val_print, generic_value_print): Update.
10802
10803 2020-03-13 Tom Tromey <tom@tromey.com>
10804
10805 * valprint.c (generic_val_print_flags): Remove.
10806 (generic_val_print, generic_value_print): Update.
10807 (val_print_type_code_flags): Add original_value parameter.
10808
10809 2020-03-13 Tom Tromey <tom@tromey.com>
10810
10811 * valprint.c (generic_val_print): Update.
10812 (generic_value_print): Update.
10813 * valprint.c (generic_val_print_enum): Don't call
10814 val_print_scalar_formatted.
10815
10816 2020-03-13 Tom Tromey <tom@tromey.com>
10817
10818 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10819 * valprint.c (generic_value_print_ptr): New function.
10820
10821 2020-03-13 Tom Tromey <tom@tromey.com>
10822
10823 * valprint.c (generic_value_print): Rewrite.
10824
10825 2020-03-13 Tom Tromey <tom@tromey.com>
10826
10827 * p-valprint.c (pascal_object_print_value_fields)
10828 (pascal_object_print_value): New functions.
10829
10830 2020-03-13 Tom Tromey <tom@tromey.com>
10831
10832 * p-valprint.c (pascal_value_print_inner): Rewrite.
10833
10834 2020-03-13 Tom Tromey <tom@tromey.com>
10835
10836 * f-valprint.c (f_value_print_innner): Rewrite.
10837
10838 2020-03-13 Tom Tromey <tom@tromey.com>
10839
10840 * m2-valprint.c (m2_print_unbounded_array): New overload.
10841 (m2_print_unbounded_array): Update.
10842 (m2_print_array_contents): Take a struct value.
10843 (m2_value_print_inner): Rewrite.
10844
10845 2020-03-13 Tom Tromey <tom@tromey.com>
10846
10847 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10848 (d_value_print_inner): New function.
10849 * d-lang.h (d_value_print_inner): Declare.
10850 * d-lang.c (d_language_defn): Use d_value_print_inner.
10851
10852 2020-03-13 Tom Tromey <tom@tromey.com>
10853
10854 * go-valprint.c (go_value_print_inner): New function.
10855 * go-lang.h (go_value_print_inner): Declare.
10856 * go-lang.c (go_language_defn): Use go_value_print_inner.
10857
10858 2020-03-13 Tom Tromey <tom@tromey.com>
10859
10860 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10861 API.
10862 (rust_val_print): Rewrite.
10863 (rust_value_print_inner): New function, from rust_val_print.
10864 (rust_language_defn): Use rust_value_print_inner.
10865
10866 2020-03-13 Tom Tromey <tom@tromey.com>
10867
10868 * ada-valprint.c (ada_value_print_inner): New function.
10869 * ada-lang.h (ada_value_print_inner): Declare.
10870 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10871
10872 2020-03-13 Tom Tromey <tom@tromey.com>
10873
10874 * f-valprint.c (f_value_print_innner): New function.
10875 * f-lang.h (f_value_print_innner): Declare.
10876 * f-lang.c (f_language_defn): Use f_value_print_innner.
10877
10878 2020-03-13 Tom Tromey <tom@tromey.com>
10879
10880 * p-valprint.c (pascal_value_print_inner): New function.
10881 * p-lang.h (pascal_value_print_inner): Declare.
10882 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10883
10884 2020-03-13 Tom Tromey <tom@tromey.com>
10885
10886 * m2-valprint.c (m2_value_print_inner): New function.
10887 * m2-lang.h (m2_value_print_inner): Declare.
10888 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10889
10890 2020-03-13 Tom Tromey <tom@tromey.com>
10891
10892 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10893 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10894 * c-valprint.c (c_value_print_inner): New function.
10895 * c-lang.h (c_value_print_inner): Declare.
10896 * c-lang.c (c_language_defn, cplus_language_defn)
10897 (asm_language_defn, minimal_language_defn): Use
10898 c_value_print_inner.
10899
10900 2020-03-13 Tom Tromey <tom@tromey.com>
10901
10902 * p-valprint.c (pascal_object_print_value_fields): Now static.
10903 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10904
10905 2020-03-13 Tom Tromey <tom@tromey.com>
10906
10907 * c-valprint.c (c_val_print_array): Simplify.
10908
10909 2020-03-13 Tom Tromey <tom@tromey.com>
10910
10911 * valprint.c (value_print_array_elements): New function.
10912 * valprint.h (value_print_array_elements): Declare.
10913
10914 2020-03-13 Tom Tromey <tom@tromey.com>
10915
10916 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10917 * mips-tdep.c (mips_print_register): Use
10918 value_print_scalar_formatted.
10919
10920 2020-03-13 Tom Tromey <tom@tromey.com>
10921
10922 * valprint.h (value_print_scalar_formatted): Declare.
10923 * valprint.c (value_print_scalar_formatted): New function.
10924
10925 2020-03-13 Tom Tromey <tom@tromey.com>
10926
10927 * valprint.h (generic_value_print): Declare.
10928 * valprint.c (generic_value_print): New function.
10929
10930 2020-03-13 Tom Tromey <tom@tromey.com>
10931
10932 * valprint.c (do_val_print): Call la_value_print_inner, if
10933 available.
10934 * rust-lang.c (rust_language_defn): Update.
10935 * p-lang.c (pascal_language_defn): Update.
10936 * opencl-lang.c (opencl_language_defn): Update.
10937 * objc-lang.c (objc_language_defn): Update.
10938 * m2-lang.c (m2_language_defn): Update.
10939 * language.h (struct language_defn) <la_value_print_inner>: New
10940 member.
10941 * language.c (unknown_language_defn, auto_language_defn): Update.
10942 * go-lang.c (go_language_defn): Update.
10943 * f-lang.c (f_language_defn): Update.
10944 * d-lang.c (d_language_defn): Update.
10945 * c-lang.c (c_language_defn, cplus_language_defn)
10946 (asm_language_defn, minimal_language_defn): Update.
10947 * ada-lang.c (ada_language_defn): Update.
10948
10949 2020-03-13 Tom Tromey <tom@tromey.com>
10950
10951 * c-valprint.c (c_value_print): Use common_val_print.
10952
10953 2020-03-13 Tom Tromey <tom@tromey.com>
10954
10955 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10956
10957 2020-03-13 Tom Tromey <tom@tromey.com>
10958
10959 * f-valprint.c (f77_print_array_1, f_val_print): Use
10960 common_val_print.
10961
10962 2020-03-13 Tom Tromey <tom@tromey.com>
10963
10964 * riscv-tdep.c (riscv_print_one_register_info): Use
10965 common_val_print.
10966
10967 2020-03-13 Tom Tromey <tom@tromey.com>
10968
10969 * mi/mi-main.c (output_register): Use common_val_print.
10970
10971 2020-03-13 Tom Tromey <tom@tromey.com>
10972
10973 * infcmd.c (default_print_one_register_info): Use
10974 common_val_print.
10975
10976 2020-03-13 Tom Tromey <tom@tromey.com>
10977
10978 * valprint.h (common_val_print_checked): Declare.
10979 * valprint.c (common_val_print_checked): New function.
10980 * stack.c (print_frame_arg): Use common_val_print_checked.
10981
10982 2020-03-13 Tom Tromey <tom@tromey.com>
10983
10984 * valprint.c (do_val_print): New function, from val_print.
10985 (val_print): Use do_val_print.
10986 (common_val_print): Use do_val_print.
10987
10988 2020-03-13 Tom Tromey <tom@tromey.com>
10989
10990 * valprint.c (value_print): Use scoped_value_mark.
10991
10992 2020-03-13 Tom de Vries <tdevries@suse.de>
10993
10994 PR symtab/25646
10995 * psymtab.c (partial_symtab::partial_symtab): Don't set
10996 globals_offset and statics_offset. Push element onto
10997 current_global_psymbols and current_static_psymbols stacks.
10998 (concat): New function.
10999 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11000 element from current_global_psymbols and current_static_psymbols
11001 stacks. Concat popped elements to global_psymbols and
11002 static_symbols.
11003 (add_psymbol_to_list): Use current_global_psymbols and
11004 current_static_psymbols stacks.
11005 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11006 current_static_psymbols fields.
11007
11008 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11009
11010 * corelow.c (sniff_core_bfd): Remove.
11011 (class core_target) <m_core_vec>: Remove.
11012 (core_target::core_target): Update.
11013 (core_file_fns): Remove.
11014 (deprecated_add_core_fns): Remove.
11015 (default_core_sniffer): Remove.
11016 (sniff_core_bfd): Remove.
11017 (default_check_format): Remove.
11018 (gdb_check_format): Remove.
11019 (core_target_open): Update.
11020 (core_target::get_core_register_section): Update.
11021 (get_core_registers_cb): Update.
11022 (core_target::fetch_registers): Update.
11023 * gdbcore.h (struct core_fns): Remove.
11024 (deprecated_add_core_fns): Remove.
11025 (default_core_sniffer): Remove.
11026 (default_check_format): Remove.
11027
11028 2020-03-12 Tom Tromey <tom@tromey.com>
11029
11030 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11031 CORE_ADDR.
11032 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11033
11034 2020-03-12 Tom Tromey <tom@tromey.com>
11035
11036 * remote.c (remote_target::download_tracepoint)
11037 (remote_target::enable_tracepoint)
11038 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11039 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11040 sprintf_vma.
11041
11042 2020-03-12 Tom Tromey <tom@tromey.com>
11043
11044 * symfile-mem.c: Update CORE_ADDR size assert.
11045
11046 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11047
11048 * selftest.m4: Move to gdbsupport/.
11049 * acinclude.m4: Update path to selftest.m4.
11050
11051 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11052
11053 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11054 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11055 gdbarch-selfselftests.c and selftest-arch.c.
11056 (SUBDIR_UNITTESTS_OBS): Rename to...
11057 (SELFTESTS_OBS): ... this.
11058 (COMMON_SFILES): Remove disasm-selftests.c and
11059 gdbarch-selftests.c.
11060 * configure.ac: Don't add selftest-arch.{c,o} to
11061 CONFIG_{SRCS,OBS}.
11062 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11063 preprocessor conditions.
11064
11065 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11066
11067 * configure.ac: Don't source bfd/development.sh.
11068 * selftest.m4: Modify comment.
11069 * configure: Re-generate.
11070
11071 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11072
11073 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11074 not "true" or "false".
11075 * configure: Re-generate.
11076
11077 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11078
11079 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11080 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11081 renamed to arm_nbsd_supply_gregset.
11082 (fetch_register): Update to call arm_nbsd_supply_gregset.
11083 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11084 (arm_netbsd_nat_target::fetch_registers): Update.
11085 (fetch_elfcore_registers): Removed.
11086 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11087 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11088 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11089 not require NetBSD system headers.
11090 (arm_nbsd_regset): New struct.
11091 (arm_nbsd_iterate_over_regset_sections): New function.
11092 (arm_netbsd_init_abi_common): Updated to call
11093 set_gdbarch_iterate_over_regset_sections.
11094 * arm-nbsd-tdep.h: New file.
11095
11096 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11097
11098 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11099 recursion.
11100
11101 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * configure: Re-generate.
11104
11105 2020-03-11 Tom Tromey <tromey@adacore.com>
11106
11107 * ada-typeprint.c (print_choices): Fix comment.
11108
11109 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11112 previous item in the list, when the list has no items.
11113
11114 2020-03-11 Tom de Vries <tdevries@suse.de>
11115
11116 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11117 PROP_LOCLIST handling code.
11118
11119 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11120
11121 * buildsym-legacy.c (record_line): Pass extra parameter to
11122 record_line.
11123 * buildsym.c (buildsym_compunit::record_line): Take an extra
11124 parameter, reduce duplication in the line table, and record the
11125 is_stmt flag in the line table.
11126 * buildsym.h (buildsym_compunit::record_line): Add extra
11127 parameter.
11128 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11129 non-statement lines.
11130 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11131 this to the symtab builder.
11132 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11133 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11134 through to dwarf_record_line_1.
11135 * infrun.c (process_event_stop_test): When stepping, don't stop at
11136 a non-statement instruction, and only refresh the step info when
11137 we land in the middle of a line's range. Also add an extra
11138 comment.
11139 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11140 field.
11141 * record-btrace.c (btrace_find_line_range): Only record lines
11142 marked as is-statement.
11143 * stack.c (frame_show_address): Show the frame address if we are
11144 in a non-statement sal.
11145 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11146 (maintenance_print_one_line_table): Print a header for the is_stmt
11147 column, and include is_stmt information in the output.
11148 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11149 preference to non-statements.
11150 (find_pcs_for_symtab_line): Prefer is-statement entries.
11151 (find_line_common): Likewise.
11152 * symtab.h (struct linetable_entry): Add is_stmt field.
11153 (struct symtab_and_line): Likewise.
11154 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11155 arranging the line table.
11156
11157 2020-03-07 Tom de Vries <tdevries@suse.de>
11158
11159 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11160 DIE.
11161
11162 2020-03-07 Tom Tromey <tom@tromey.com>
11163
11164 * valops.c (value_literal_complex): Remove obsolete comment.
11165 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11166 comment.
11167
11168 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11169
11170 * infrun.h: Forward-declare thread_info.
11171 (set_step_info): Add thread_info parameter, add doc.
11172 * infrun.c (set_step_info): Add thread_info parameter, move doc
11173 to header.
11174 * infrun.c (process_event_stop_test): Pass thread to
11175 set_step_info call.
11176 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11177 set_step_info.
11178 (prepare_one_step): Add thread_info parameter, pass it to
11179 set_step_frame and prepare_one_step (recursive) call.
11180 (step_1): Pass thread to prepare_one_step call.
11181 (step_command_fsm::should_stop): Pass thread to
11182 prepare_one_step.
11183 (until_next_fsm): Pass thread to set_step_frame call.
11184 (finish_command): Pass thread to set_step_info call.
11185
11186 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11187
11188 * windows-tdep.c (windows_solib_create_inferior_hook):
11189 Check if inferior is running.
11190
11191 2020-03-06 Tom de Vries <tdevries@suse.de>
11192
11193 * NEWS: Fix "the the".
11194 * ctfread.c: Same.
11195
11196 2020-03-06 Tom de Vries <tdevries@suse.de>
11197
11198 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11199
11200 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * .dir-locals.el: Add a comment referencing the other copies of
11203 this file.
11204
11205 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11206
11207 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11208 psargs.
11209
11210 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11211
11212 * .gitattributes: New file.
11213
11214 2020-03-04 Tom Tromey <tom@tromey.com>
11215
11216 * symmisc.c (print_symbol_bcache_statistics)
11217 (print_objfile_statistics): Update.
11218 * symfile.c (allocate_symtab): Use intern.
11219 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11220 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11221 macro_cache>: Remove.
11222 <string_cache>: New member.
11223 (struct objfile) <intern>: New methods.
11224 * elfread.c (elf_symtab_read): Use intern.
11225 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11226 (dwarf2_compute_name, dwarf2_physname)
11227 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11228 names.
11229 (guess_partial_die_structure_name): Update.
11230 (partial_die_info::fixup): Intern name.
11231 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11232 name.
11233 (dwarf2_name): Intern name. Update.
11234 * buildsym.c (buildsym_compunit::get_macro_table): Use
11235 string_cache.
11236
11237 2020-03-04 Tom Tromey <tom@tromey.com>
11238
11239 * jit.c (bfd_open_from_target_memory): Make "target" const.
11240 * corefile.c (gnutarget): Now const.
11241 * gdbcore.h (gnutarget): Now const.
11242
11243 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11244
11245 * NEWS: Mention support for WOW64 processes.
11246 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11247 (amd64_windows_segment_register_p): Remove static.
11248 (_initialize_amd64_windows_nat): Update.
11249 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11250 * i386-windows-nat.c (context_offset): Update.
11251 (i386_mappings): Rename and remove static.
11252 (i386_windows_segment_register_p): Remove static.
11253 (_initialize_i386_windows_nat): Update.
11254 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11255 (STATUS_WX86_SINGLE_STEP): New macro.
11256 (EnumProcessModulesEx): New macro.
11257 (Wow64SuspendThread): New macro.
11258 (Wow64GetThreadContext): New macro.
11259 (Wow64SetThreadContext): New macro.
11260 (Wow64GetThreadSelectorEntry): New macro.
11261 (windows_set_context_register_offsets): Add static.
11262 (windows_set_segment_register_p): Likewise.
11263 (windows_add_thread): Adapt for WOW64 processes.
11264 (windows_fetch_one_register): Likewise.
11265 (windows_nat_target::fetch_registers): Likewise.
11266 (windows_store_one_register): Likewise.
11267 (display_selector): Likewise.
11268 (display_selectors): Likewise.
11269 (handle_exception): Likewise.
11270 (windows_continue): Likewise.
11271 (windows_nat_target::resume): Likewise.
11272 (windows_add_all_dlls): Likewise.
11273 (do_initial_windows_stuff): Likewise.
11274 (windows_nat_target::attach): Likewise.
11275 (windows_get_exec_module_filename): Likewise.
11276 (windows_nat_target::create_inferior): Likewise.
11277 (windows_xfer_siginfo): Likewise.
11278 (_initialize_loadable): Initialize Wow64SuspendThread,
11279 Wow64GetThreadContext, Wow64SetThreadContext,
11280 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11281 * windows-nat.h (windows_set_context_register_offsets):
11282 Remove declaration.
11283 (windows_set_segment_register_p): Likewise.
11284 (i386_windows_segment_register_p): Add declaration.
11285 (amd64_windows_segment_register_p): Likewise.
11286
11287 2020-03-04 Luis Machado <luis.machado@linaro.org>
11288
11289 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11290 in "info registers" for AArch64/ARM.
11291
11292 The change caused "info registers" to not print GPR's.
11293
11294 gdb/ChangeLog:
11295
11296 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11297
11298 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11299 when reg->group is empty and reggroup is not.
11300
11301 2020-03-03 Tom Tromey <tromey@adacore.com>
11302
11303 * dwarf2/frame.c (struct dwarf2_frame_cache)
11304 <checked_tailcall_bottom, entry_cfa_sp_offset,
11305 entry_cfa_sp_offset_p>: Remove members.
11306 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11307 (dwarf2_frame_prev_register): Don't call
11308 dwarf2_tailcall_sniffer_first.
11309 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11310 * frame-unwind.c (add_unwinder): New fuction.
11311 (frame_unwind_init): Use it. Add tailcall unwinder.
11312
11313 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11314 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11315
11316 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11317 value should be printed as true.
11318
11319 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11320
11321 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11322 (windows_init_abi): Set and use windows_so_ops.
11323
11324 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11325
11326 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11327 when verifying if dealing with a convenience variable.
11328
11329 2020-03-03 Luis Machado <luis.machado@linaro.org>
11330
11331 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11332
11333 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11334
11335 * infrun.c (gdbarch_supports_displaced_stepping): New.
11336 (use_displaced_stepping): Break up conditions in smaller pieces.
11337 Use gdbarch_supports_displaced_stepping.
11338 (displaced_step_prepare_throw): Use
11339 gdbarch_supports_displaced_stepping.
11340
11341 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11342
11343 * NEWS: Mention new behaviour of the history filename.
11344 * top.c (write_history_p): Add comment.
11345 (show_write_history_p): Add header comment, give a different
11346 message when history writing is on, but the history filename is
11347 empty.
11348 (history_filename): Add comment.
11349 (history_filename_empty): New function.
11350 (show_history_filename): Add header comment, give a different
11351 message when the filename is empty.
11352 (init_history): Compare history_filename against nullptr, and only
11353 read history if the filename is not empty.
11354 (set_history_filename): Add header comment, and only make
11355 non-empty filenames absolute.
11356 (init_main): Make the filename argument to 'set history filename'
11357 optional.
11358
11359 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11360
11361 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11362 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11363 (fetch_fp_register): Update.
11364 (fetch_fp_regs): Update.
11365 (store_fp_register): Update.
11366 (store_fp_regs): Update.
11367 (arm_netbsd_nat_target::read_description): New function.
11368 (fetch_elfcore_registers): Update.
11369
11370 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11371
11372 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11373 general_thread if the stop reply is missing a thread-id.
11374 (remote_target::process_stop_reply): Use the first non-exited
11375 thread if the target didn't pass a thread-id.
11376 * infrun.c (do_target_wait): Move call to
11377 switch_to_inferior_no_thread to ....
11378 (do_target_wait_1): ... here.
11379
11380 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11381
11382 * debuginfod-support.c: Include defs.h first.
11383
11384 2020-02-28 Tom de Vries <tdevries@suse.de>
11385
11386 * symfile.c (set_initial_language): Use default language for lookup.
11387
11388 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11389
11390 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11391 reader variable, pass `this` to read_cutu_die_from_dwo.
11392
11393 2020-02-27 Aaron Merey <amerey@redhat.com>
11394
11395 * source.c (open_source_file): Check for nullptr when computing
11396 srcpath.
11397
11398 2020-02-27 Tom Tromey <tromey@adacore.com>
11399
11400 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11401 member.
11402 (dwarf2_add_field): Don't update nfields.
11403 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11404
11405 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11406
11407 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11408 abs.
11409
11410 2020-02-26 Tom Tromey <tom@tromey.com>
11411
11412 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11413 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11414 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11415 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11416 per_cu_data.
11417
11418 2020-02-26 Tom Tromey <tom@tromey.com>
11419
11420 * dwarf2/index-write.c (psym_index_map): Change type.
11421 (add_address_entry_worker, write_one_signatured_type)
11422 (recursively_count_psymbols, recursively_write_psymbols)
11423 (class debug_names, psyms_seen_size, write_gdbindex)
11424 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11425
11426 2020-02-26 Aaron Merey <amerey@redhat.com>
11427
11428 * Makefile.in: Handle optional debuginfod support.
11429 * NEWS: Update.
11430 * README: Add --with-debuginfod summary.
11431 * config.in: Regenerate.
11432 * configure: Regenerate.
11433 * configure.ac: Handle optional debuginfod support.
11434 * debuginfod-support.c: debuginfod helper functions.
11435 * debuginfod-support.h: Ditto.
11436 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11437 summary.
11438 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11439 when a dwz file cannot be found.
11440 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11441 debuginfo file cannot be found.
11442 * source.c (open_source_file): Query debuginfod servers when a
11443 source file cannot be found.
11444 * top.c (print_gdb_configuration): Include
11445 --{with,without}-debuginfod in the output.
11446
11447 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11448
11449 * thread.c (thr_try_catch_cmd): Print thread name.
11450
11451 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11452
11453 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11454 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11455 dwarf2_fetch_die_type_sect_off): Move to...
11456 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11457 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11458 dwarf2_fetch_die_type_sect_off): ... here.
11459 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11460 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11461 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11462
11463 2020-02-26 Tom de Vries <tdevries@suse.de>
11464
11465 PR gdb/25603
11466 * symfile.c (set_initial_language): Exit-early if
11467 language_mode == language_mode_manual.
11468
11469 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11470
11471 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11472 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11473 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11474
11475 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11476
11477 * gdbtypes.c (create_array_type_with_stride): Handle negative
11478 array strides.
11479 * valarith.c (value_subscripted_rvalue): Likewise.
11480
11481 2020-02-25 Luis Machado <luis.machado@linaro.org>
11482
11483 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11484
11485 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11486
11487 * loc.h (dwarf2_get_die_type): Move to...
11488 * read.h (dwarf2_get_die_type): ... here.
11489 * read.c (dwarf2_get_die_type): Move doc to header.
11490
11491 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11492
11493 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11494 'gnulib/Makefile.in' to the list.
11495
11496 2020-02-24 Tom Tromey <tom@tromey.com>
11497
11498 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11499 Remove.
11500 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11501 XOBNEWVEC.
11502
11503 2020-02-24 Tom Tromey <tom@tromey.com>
11504
11505 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11506 New method.
11507 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11508 (dw2_do_instantiate_symtab, dw2_get_file_names)
11509 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11510
11511 2020-02-24 Tom Tromey <tom@tromey.com>
11512
11513 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11514 make_scoped_restore.
11515 (dwarf2_psymtab::read_symtab): Don't clear
11516 reading_partial_symbols.
11517
11518 2020-02-24 Tom de Vries <tdevries@suse.de>
11519
11520 PR gdb/25592
11521 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11522
11523 2020-02-24 Tom de Vries <tdevries@suse.de>
11524
11525 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11526 commands layout next/prev/regs.
11527
11528 2020-02-22 Tom Tromey <tom@tromey.com>
11529
11530 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11531 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11532
11533 2020-02-22 Tom Tromey <tom@tromey.com>
11534
11535 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11536
11537 2020-02-22 Tom Tromey <tom@tromey.com>
11538
11539 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11540 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11541 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11542 * tui/tui.c (_initialize_tui): Add usage text.
11543
11544 2020-02-22 Tom Tromey <tom@tromey.com>
11545
11546 * tui/tui-win.c (tui_set_focus_command)
11547 (tui_set_win_height_command): Use error_no_arg.
11548 (_initialize_tui_win): Update help text.
11549 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11550
11551 2020-02-22 Tom Tromey <tom@tromey.com>
11552
11553 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11554 * tui/tui-disasm.h (struct tui_disasm_window)
11555 <display_start_addr>: Declare.
11556 * tui/tui-source.h (struct tui_source_window)
11557 <display_start_addr>: Declare.
11558 * tui/tui-winsource.h (struct tui_source_window_base)
11559 <show_source_line, display_start_addr>: New methods.
11560 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11561 Rename and move to protected section.
11562 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11563 (tui_source_window_base::do_erase_source_content): Update.
11564 (tui_source_window_base::show_source_line): Now a method.
11565 (tui_source_window_base::show_source_content)
11566 (tui_source_window_base::tui_source_window_base)
11567 (tui_source_window_base::rerender)
11568 (tui_source_window_base::refill)
11569 (tui_source_window_base::do_scroll_horizontal)
11570 (tui_source_window_base::set_is_exec_point_at)
11571 (tui_source_window_base::update_breakpoint_info)
11572 (tui_source_window_base::update_exec_info): Update.
11573 * tui/tui-source.c (tui_source_window::set_contents)
11574 (tui_source_window::showing_source_p)
11575 (tui_source_window::do_scroll_vertical)
11576 (tui_source_window::location_matches_p)
11577 (tui_source_window::line_is_displayed): Update.
11578 (tui_source_window::display_start_addr): New method.
11579 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11580 (tui_disasm_window::do_scroll_vertical)
11581 (tui_disasm_window::location_matches_p): Update.
11582 (tui_disasm_window::display_start_addr): New method.
11583
11584 2020-02-22 Tom Tromey <tom@tromey.com>
11585
11586 * NEWS: Add entry for gdb.register_window_type.
11587 * tui/tui-layout.h (window_factory): New typedef.
11588 (tui_register_window): Declare.
11589 * tui/tui-layout.c (saved_tui_windows): New global.
11590 (tui_apply_current_layout): Use it.
11591 (tui_register_window): New function.
11592 * python/python.c (do_start_initialization): Call
11593 gdbpy_initialize_tui.
11594 (python_GdbMethods): Add "register_window_type" function.
11595 * python/python-internal.h (gdbpy_register_tui_window)
11596 (gdbpy_initialize_tui): Declare.
11597 * python/py-tui.c: New file.
11598 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11599
11600 2020-02-22 Tom Tromey <tom@tromey.com>
11601
11602 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11603
11604 2020-02-22 Tom Tromey <tom@tromey.com>
11605
11606 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11607 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11608 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11609 (tui_set_win_focus_to): Move from tui-win.c.
11610
11611 2020-02-22 Tom Tromey <tom@tromey.com>
11612
11613 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11614 functions.
11615 (known_window_types): New global.
11616 (tui_get_window_by_name): Reimplement.
11617 (initialize_known_windows): New function.
11618 (validate_window_name): Rewrite.
11619 (_initialize_tui_layout): Call initialize_known_windows.
11620
11621 2020-02-22 Tom Tromey <tom@tromey.com>
11622
11623 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11624 Remove constants.
11625 * tui/tui-winsource.h (struct tui_source_window_base)
11626 <tui_source_window_base>: Remove parameter.
11627 * tui/tui-winsource.c
11628 (tui_source_window_base::tui_source_window_base): Remove
11629 parameter.
11630 (tui_source_window_base::refill): Update.
11631 * tui/tui-stack.h (struct tui_locator_window)
11632 <tui_locator_window>: Update.
11633 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11634 Default the constructor.
11635 * tui/tui-regs.h (struct tui_data_item_window)
11636 <tui_data_item_window>: Default the constructor.
11637 (struct tui_data_window) <tui_data_window>: Likewise.
11638 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11639 Default the constructor.
11640 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11641 Default the constructor.
11642 <type>: Remove.
11643 (struct tui_win_info) <tui_win_info>: Default the constructor.
11644 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11645 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11646 Default the constructor.
11647
11648 2020-02-22 Tom Tromey <tom@tromey.com>
11649
11650 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11651 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11652 * tui/tui-win.c (tui_resize_all): Don't call
11653 tui_delete_invisible_windows.
11654 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11655 done.
11656 (tui_set_layout): Update.
11657 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11658 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11659 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11660
11661 2020-02-22 Tom Tromey <tom@tromey.com>
11662
11663 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11664 correctly.
11665
11666 2020-02-22 Tom Tromey <tom@tromey.com>
11667
11668 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11669
11670 2020-02-22 Tom Tromey <tom@tromey.com>
11671
11672 * tui/tui-winsource.h (struct tui_source_window_iterator)
11673 <inner_iterator>: New etytypedef.
11674 <tui_source_window_iterator>: Take "end" parameter.
11675 <tui_source_window_iterator>: Take iterator.
11676 <operator*, advance>: Update.
11677 <m_iter>: Change type.
11678 <m_end>: New field.
11679 (struct tui_source_windows) <begin, end>: Update.
11680 * tui/tui-layout.c (tui_windows): New global.
11681 (tui_apply_current_layout): Clear tui_windows.
11682 (tui_layout_window::apply): Update tui_windows.
11683 * tui/tui-data.h (tui_windows): Declare.
11684 (all_tui_windows): Now inline function.
11685 (class tui_window_iterator, struct all_tui_windows): Remove.
11686
11687 2020-02-22 Tom Tromey <tom@tromey.com>
11688
11689 PR tui/17850:
11690 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11691 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11692 "height" argument.
11693 (class tui_layout_window) <get_sizes>: Likewise.
11694 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11695 argument.
11696 <get_sizes>: Add "height" argument.
11697 <m_vertical>: New field.
11698 * tui/tui-layout.c (tui_layout_split::clone): Update.
11699 (tui_layout_split::get_sizes): Add "height" argument.
11700 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11701 (tui_new_layout_command): Parse "-horizontal".
11702 (_initialize_tui_layout): Update help string.
11703 (tui_layout_split::specification): Add "-horizontal" when needed.
11704 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11705 argument.
11706 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11707 New methods.
11708
11709 2020-02-22 Tom Tromey <tom@tromey.com>
11710
11711 * tui/tui-layout.h (enum tui_adjust_result): New.
11712 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11713 (class tui_layout_window) <adjust_size>: Return
11714 tui_adjust_result. Rewrite.
11715 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11716 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11717
11718 2020-02-22 Tom Tromey <tom@tromey.com>
11719
11720 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11721 parameter and return types.
11722 (class tui_layout_base) <specification>: Add "depth".
11723 (class tui_layout_window) <specification>: Add "depth".
11724 (class tui_layout_split) <specification>: Add "depth".
11725 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11726 and return types.
11727 (tui_new_layout_command): Parse sub-layouts.
11728 (_initialize_tui_layout): Update help string.
11729 (tui_layout_window::specification): Add "depth".
11730 (add_layout_command): Update.
11731
11732 2020-02-22 Tom Tromey <tom@tromey.com>
11733
11734 * NEWS: Add "tui new-layout" item.
11735 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11736 Add new-layout command to help text.
11737 (validate_window_name): New function.
11738 (tui_new_layout_command): New function.
11739 (_initialize_tui_layout): Register "new-layout".
11740 (tui_layout_window::specification): New method.
11741 (tui_layout_window::specification): New method.
11742 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11743 method.
11744 (class tui_layout_window) <specification>: New method.
11745 (class tui_layout_split) <specification>: New method.
11746
11747 2020-02-22 Tom Tromey <tom@tromey.com>
11748
11749 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11750 * tui/tui-win.c (window_name_completer): Update comment.
11751 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11752 Declare method.
11753 (class tui_layout_window) <replace_window>: Likewise.
11754 (class tui_layout_split) <replace_window>: Likewise.
11755 (tui_set_layout): Don't declare.
11756 (tui_set_initial_layout): Declare function.
11757 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11758 (asm_regs_layout): New globals.
11759 (tui_current_layout, show_layout): Remove.
11760 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11761 (find_layout, tui_apply_layout): New function.
11762 (layout_completer): Remove.
11763 (tui_next_layout): Reimplement.
11764 (tui_next_layout_command): New function.
11765 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11766 (tui_regs_layout): Reimplement.
11767 (tui_regs_layout_command): New function.
11768 (extract_display_start_addr): Rewrite.
11769 (next_layout, prev_layout): Remove.
11770 (tui_layout_window::replace_window): New method.
11771 (tui_layout_split::replace_window): New method.
11772 (destroy_layout): New function.
11773 (layout_list): New global.
11774 (add_layout_command): New function.
11775 (initialize_layouts): Update.
11776 (tui_layout_command): New function.
11777 (_initialize_tui_layout): Install "layout" commands.
11778 * tui/tui-data.h (enum tui_layout_type): Remove.
11779 (tui_current_layout): Don't declare.
11780
11781 2020-02-22 Tom Tromey <tom@tromey.com>
11782
11783 * tui/tui-regs.c (tui_reg_layout): Remove.
11784 (tui_reg_command): Use tui_regs_layout.
11785 * tui/tui-layout.h (tui_reg_command): Declare.
11786 * tui/tui-layout.c (tui_reg_command): New function.
11787
11788 2020-02-22 Tom Tromey <tom@tromey.com>
11789
11790 * tui/tui.c (tui_rl_delete_other_windows): Call
11791 tui_remove_some_windows.
11792 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11793 Declare method.
11794 (class tui_layout_window) <remove_windows>: New method.
11795 (class tui_layout_split) <remove_windows>: Declare.
11796 (tui_remove_some_windows): Declare.
11797 * tui/tui-layout.c (tui_remove_some_windows): New function.
11798 (tui_layout_split::remove_windows): New method.
11799
11800 2020-02-22 Tom Tromey <tom@tromey.com>
11801
11802 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11803 * tui/tui-layout.h (tui_next_layout): Declare.
11804 * tui/tui-layout.c (tui_next_layout): New function.
11805
11806 2020-02-22 Tom Tromey <tom@tromey.com>
11807
11808 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11809 correct coordinates.
11810
11811 2020-02-22 Tom Tromey <tom@tromey.com>
11812
11813 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11814 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11815 DATA_WIN case.
11816
11817 2020-02-22 Tom Tromey <tom@tromey.com>
11818
11819 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11820 TUI_DISASM_WIN, not tui_win_list.
11821
11822 2020-02-22 Tom Tromey <tom@tromey.com>
11823
11824 * valprint.c (generic_val_print_enum_1)
11825 (val_print_type_code_flags): Style member names.
11826 * rust-lang.c (val_print_struct, rust_print_enum)
11827 (rust_print_struct_def, rust_internal_print_type): Style member
11828 names.
11829 * p-valprint.c (pascal_object_print_value_fields): Style member
11830 names. Only call fprintf_symbol_filtered for static members.
11831 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11832 * f-valprint.c (f_val_print): Style member names.
11833 * f-typeprint.c (f_type_print_base): Style member names.
11834 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11835 call fprintf_symbol_filtered for static members.
11836 (cp_print_class_member): Style member names.
11837 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11838 member names.
11839 * ada-valprint.c (ada_print_scalar): Style enum names.
11840 (ada_val_print_enum): Likewise.
11841 * ada-typeprint.c (print_enum_type): Style enum names.
11842
11843 2020-02-21 Tom Tromey <tom@tromey.com>
11844
11845 * psympriv.h (struct partial_symtab): Update comment.
11846
11847 2020-02-21 Tom Tromey <tromey@adacore.com>
11848
11849 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11850 type is CORE_ADDR.
11851
11852 2020-02-21 Tom de Vries <tdevries@suse.de>
11853
11854 PR gdb/25534
11855 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11856 if dependencies[i]->user != NULL.
11857
11858 2020-02-21 Ali Tamur <tamur@google.com>
11859
11860 * dwarf2/read.c (dwarf2_name): Add null check.
11861
11862 2020-02-20 Tom Tromey <tom@tromey.com>
11863
11864 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11865 ">=", in binary search.
11866 (dwarf2_find_containing_comp_unit): New overload.
11867 (run_test): New self-test.
11868 (_initialize_dwarf2_read): Register new test.
11869
11870 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11871
11872 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11873 * riscv-tdep.h: Likewise.
11874 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11875 rv32-only CSR.
11876 * features/riscv/64bit-csr.xml: Regenerated.
11877
11878 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11879 Tom Tromey <tom@tromey.com>
11880
11881 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11882 of 'fputc_unfiltered'.
11883 (putchar_unfiltered): Call 'fputc_unfiltered'.
11884 (fputc_unfiltered): Call 'fputs_unfiltered'.
11885
11886 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11887
11888 * config.in: Regenerate.
11889 * configure: Regenerate.
11890 * configure.ac: Add --with-python-libdir option.
11891 * main.c: Use WITH_PYTHON_LIBDIR.
11892
11893 2020-02-19 Tom Tromey <tom@tromey.com>
11894
11895 * symtab.c (general_symbol_info::compute_and_set_names): Use
11896 obstack_strndup. Simplify call to symbol_set_demangled_name.
11897
11898 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11899
11900 * dwarf2/read.c (allocate_signatured_type_table,
11901 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11902 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11903 Remove objfile parameter, update all callers.
11904
11905 2020-02-19 Doug Evans <dje@google.com>
11906
11907 PR rust/25535
11908 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11909 rust_enum_variant calculation.
11910
11911 2020-02-19 Tom Tromey <tromey@adacore.com>
11912
11913 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11914
11915 2020-02-19 Tom Tromey <tromey@adacore.com>
11916
11917 * ada-lang.c (cache_symbol): Use obstack_strdup.
11918
11919 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11920
11921 * configure: Regenerate.
11922
11923 2020-02-19 Tom Tromey <tromey@adacore.com>
11924
11925 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11926 NULL check.
11927
11928 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11929
11930 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11931
11932 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11933
11934 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11935 if GDBSERVER is not defined.
11936 (riscv_tdesc_cache): Likewise, also store const target_desc.
11937 (STATIC_IN_GDB): Define.
11938 (riscv_create_target_description): Update declaration with
11939 STATIC_IN_GDB.
11940 (riscv_lookup_target_description): New function, only define if
11941 GDBSERVER is not defined.
11942 * arch/riscv.h (riscv_create_target_description): Declare only
11943 when GDBSERVER is defined.
11944 (riscv_lookup_target_description): New declaration when GDBSERVER
11945 is not defined.
11946 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11947 (riscv_linux_read_features): ...this, and return
11948 riscv_gdbarch_features instead of target_desc.
11949 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11950 (riscv_linux_read_description): Rename to...
11951 (riscv_linux_read_features): ...this.
11952 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11953 Update to use riscv_gdbarch_features and
11954 riscv_lookup_target_description.
11955 * riscv-tdep.c (riscv_find_default_target_description): Use
11956 riscv_lookup_target_description instead of
11957 riscv_create_target_description.
11958
11959 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11960
11961 * valprint.c (generic_val_print_enum_1): When printing a flag
11962 enum with value 0 and there is no enumerator with value 0, print
11963 just "0" instead of "(unknown: 0x0)".
11964
11965 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11966
11967 * valprint.c (generic_val_print_enum_1): Print unknown part of
11968 flag enum in hex.
11969
11970 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11971
11972 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11973 flag enums to contain duplicate enumerators.
11974 * valprint.c (generic_val_print_enum_1): Update comment.
11975
11976 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11977
11978 * dwarf2/read.c: Include "count-one-bits.h".
11979 (update_enumeration_type_from_children): If an enumerator has
11980 multiple bits set, don't treat the enumeration as a "flag enum".
11981 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11982 of flag enums have 0 or 1 bit set.
11983
11984 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11985
11986 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11987 conversion.
11988 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11989 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11990 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11991 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11992 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11993
11994 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11995
11996 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11997
11998 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11999
12000 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12001 displaced_step_closure_up.
12002 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12003 (struct displaced_step_closure_up):
12004 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12005 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12006 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12007 Likewise.
12008 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12009 * gdbarch.c, gdbarch.h: Re-generate.
12010 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12011 displaced_step_closure_up.
12012 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12013 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12014 * infrun.h (displaced_step_closure_up): New type alias.
12015 (struct displaced_step_inferior_state) <step_closure>: Change
12016 type to displaced_step_closure_up.
12017 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12018 displaced_step_closure_up.
12019 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12020
12021 2020-02-14 Tom Tromey <tom@tromey.com>
12022
12023 * minidebug.c (gnu_debug_key): New global.
12024 (find_separate_debug_file_in_section): Use it.
12025
12026 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12027
12028 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12029 std::unique_ptr.
12030 * gdbarch.c: Re-generate.
12031 * gdbarch.h: Re-generate.
12032 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12033 change.
12034 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12035 type to std::unique_ptr.
12036 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12037 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12038 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12039 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12040 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12041 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12042 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12043 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12044 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12045
12046 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12047
12048 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12049 std::unique_ptr.
12050 (displaced_step_clear): Rename to...
12051 (displaced_step_reset): ... this. Just call displaced->reset ().
12052 (displaced_step_clear_cleanup): Rename to...
12053 (displaced_step_reset_cleanup): ... this.
12054 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12055 (displaced_step_fixup): Likewise.
12056 (resume_1): Likewise.
12057 (handle_inferior_event): Restore child's memory before calling
12058 displaced_step_fixup on the parent.
12059 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12060 to std::unique_ptr.
12061 <step_closure>: Change type to std::unique_ptr.
12062
12063 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12064
12065 * arm-tdep.c: Include count-one-bits.h.
12066 (cleanup_block_store_pc): Use count_one_bits.
12067 (cleanup_block_load_pc): Use count_one_bits.
12068 (arm_copy_block_xfer): Use count_one_bits.
12069 (thumb2_copy_block_xfer): Use count_one_bits.
12070 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12071 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12072 (thumb_get_next_pcs_raw): Use count_one_bits.
12073 (arm_get_next_pcs_raw): Use count_one_bits_l.
12074 * arch/arm.c (bitcount): Remove.
12075 * arch/arm.h (bitcount): Remove.
12076
12077 2020-02-14 Tom Tromey <tromey@adacore.com>
12078
12079 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12080 Update.
12081 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12082 * dwarf2/loc.c (call_site_find_chain_1): Return
12083 unique_xmalloc_ptr.
12084 (call_site_find_chain): Likewise.
12085
12086 2020-02-14 Richard Biener <rguenther@suse.de>
12087
12088 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12089 on expression with division operators.
12090
12091 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12092
12093 * MAINTAINERS (Write After Approval): Adding myself.
12094
12095 2020-02-12 Tom Tromey <tom@tromey.com>
12096
12097 * event-loop.c (event_data, gdb_event, event_handler_func):
12098 Remove.
12099
12100 2020-02-12 Tom Tromey <tom@tromey.com>
12101
12102 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12103 (dwarf2_frame_objfile_data): Add comment.
12104 (find_comp_unit, set_comp_unit): New functions.
12105 (dwarf2_frame_find_fde): Use find_comp_unit.
12106 (dwarf2_build_frame_info): Use set_comp_unit.
12107
12108 2020-02-12 Tom Tromey <tom@tromey.com>
12109
12110 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12111 (comp_unit): Don't initialize objfile.
12112 (execute_cfa_program): Add text_offset parameter.
12113 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12114 (dwarf2_frame_cache): Update.
12115 (dwarf2_build_frame_info): Don't set "objfile" member.
12116
12117 2020-02-12 Tom Tromey <tom@tromey.com>
12118
12119 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12120 (decode_frame_entry): Likewise.
12121 (dwarf2_build_frame_info): Update.
12122
12123 2020-02-12 Tom Tromey <tom@tromey.com>
12124
12125 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12126 (decode_frame_entry_1): Use the comp_unit obstack.
12127
12128 2020-02-12 Tom Tromey <tom@tromey.com>
12129
12130 * dwarf2/frame.c (struct comp_unit): Add initializers and
12131 constructor.
12132 (dwarf2_frame_objfile_data): Store a comp_unit.
12133 (dwarf2_frame_find_fde): Update.
12134 (dwarf2_build_frame_info): Use "new".
12135
12136 2020-02-12 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12139 (dwarf2_fde_table): Typedef for std::vector.
12140 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12141 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12142 (decode_frame_entry): Update.
12143 (dwarf2_build_frame_info): Use "new".
12144
12145 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12146
12147 * arm-tdep.c (arm_gdbarch_init): Update.
12148 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12149 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12150 have_neon, is_m>: Change to bool.
12151
12152 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12153
12154 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12155
12156 2020-02-12 Tom Tromey <tom@tromey.com>
12157
12158 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12159
12160 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12161
12162 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12163 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12164
12165 2020-02-11 Tom Tromey <tom@tromey.com>
12166
12167 * psymtab.h: Update comment.
12168
12169 2020-02-11 Tom Tromey <tom@tromey.com>
12170
12171 * gdb_obstack.h (struct auto_obstack): Use
12172 DISABLE_COPY_AND_ASSIGN.
12173
12174 2020-02-11 Tom Tromey <tom@tromey.com>
12175
12176 * dwarf2/frame.h (struct objfile): Don't forward declare.
12177
12178 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12179
12180 * cris-tdep.c (cris_supply_gregset): Change signature to match
12181 what struct regset expects.
12182 (cris_regset): New struct.
12183 (fetch_core_registers): Remove.
12184 (cris_iterate_over_regset_sections): New function.
12185 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12186 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12187
12188 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12189
12190 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12191 registers.
12192
12193 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12194
12195 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12196
12197 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12198
12199 * configure: Re-generate.
12200
12201 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12202
12203 * configure: Re-generate.
12204
12205 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12206
12207 * acinclude: Update warning.m4 path.
12208 * warning.m4: Move to gdbsupport.
12209
12210 2020-02-11 Tom Tromey <tromey@adacore.com>
12211
12212 * remote.c (remote_console_output): Update.
12213 * printcmd.c (printf_command): Update.
12214 * event-loop.c (gdb_wait_for_event): Update.
12215 * linux-nat.c (sigchld_handler): Update.
12216 * remote-sim.c (gdb_os_write_stdout): Update.
12217 (gdb_os_flush_stdout): Update.
12218 (gdb_os_flush_stderr): Update.
12219 (gdb_os_write_stderr): Update.
12220 * exceptions.c (print_exception): Update.
12221 * remote-fileio.c (remote_fileio_func_read): Update.
12222 (remote_fileio_func_write): Update.
12223 * tui/tui.c (tui_enable): Update.
12224 * tui/tui-interp.c (tui_interp::init): Update.
12225 * utils.c (init_page_info): Update.
12226 (putchar_unfiltered, fputc_unfiltered): Update.
12227 (gdb_flush): Update.
12228 (emit_style_escape): Update.
12229 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12230 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12231 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12232 (stderr_file::write): Update.
12233 (stderr_file::puts): Update.
12234 * ui-file.h (ui_file_isatty, ui_file_write)
12235 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12236 (ui_file_puts): Don't declare.
12237
12238 2020-02-10 Tom de Vries <tdevries@suse.de>
12239
12240 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12241 sentinel to char *.
12242
12243 2020-02-09 Tom de Vries <tdevries@suse.de>
12244
12245 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12246 filename if it matches "<artificial>".
12247
12248 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12249
12250 * windows-tdep.c (struct enum_value_name): New struct.
12251 (create_enum): New function.
12252 (windows_get_siginfo_type): Create and use enum types.
12253
12254 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12255
12256 * NEWS: Mention $_siginfo support for Windows.
12257 * windows-nat.c (handle_exception): Set siginfo_er.
12258 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12259 (windows_xfer_siginfo): New function.
12260 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12261 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12262 (init_windows_gdbarch_data): New function.
12263 (get_windows_gdbarch_data): New function.
12264 (windows_get_siginfo_type): New function.
12265 (windows_init_abi): Register windows_get_siginfo_type.
12266 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12267
12268 2020-02-08 Tom Tromey <tom@tromey.com>
12269
12270 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12271 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12272 <keep>: Declare method.
12273 <m_keep>: Remove member.
12274 <~cutu_reader>: Remove.
12275 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12276 (cutu_reader::cutu_reader): Update.
12277 (cutu_reader::keep): Rename from ~cutu_reader.
12278 (process_psymtab_comp_unit, build_type_psymtabs_1)
12279 (process_skeletonless_type_unit, load_partial_comp_unit)
12280 (load_full_comp_unit, dwarf2_read_addr_index)
12281 (read_signatured_type): Update.
12282
12283 2020-02-08 Tom Tromey <tom@tromey.com>
12284
12285 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12286 "want_partial_unit" parameter.
12287 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12288 Inline check for DW_TAG_partial_unit.
12289 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12290
12291 2020-02-08 Tom Tromey <tom@tromey.com>
12292
12293 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12294 read.c.
12295 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12296 read.c.
12297
12298 2020-02-08 Tom Tromey <tom@tromey.com>
12299
12300 * dwarf2/read.c (read_address): Move to comp-unit.c.
12301 (dwarf2_rnglists_process, dwarf2_ranges_process)
12302 (read_attribute_value, dwarf_decode_lines_1)
12303 (var_decode_location, decode_locdesc): Update.
12304 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12305 read.c. Remove "cu" parameter.
12306 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12307 method.
12308
12309 2020-02-08 Tom Tromey <tom@tromey.com>
12310
12311 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12312 (read_indirect_line_string): Update.
12313 * dwarf2/comp-unit.c (read_offset): Remove.
12314 (read_comp_unit_head): Update.
12315 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12316 method.
12317 (read_offset): Don't declare.
12318
12319 2020-02-08 Tom Tromey <tom@tromey.com>
12320
12321 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12322 * dwarf2/read.c (struct comp_unit_head): Move to
12323 dwarf2/comp-unit.h.
12324 (enum class rcuh_kind): Move to comp-unit.h.
12325 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12326 (read_comp_unit_head, error_check_comp_unit_head)
12327 (read_and_check_comp_unit_head): Move to comp-unit.c.
12328 (read_offset, dwarf_unit_type_name): Likewise.
12329 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12330 (cutu_reader::cutu_reader, read_call_site_scope)
12331 (find_partial_die, follow_die_offset): Update.
12332 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12333
12334 2020-02-08 Tom Tromey <tom@tromey.com>
12335
12336 * dwarf2/read.c (read_offset_1): Move to leb.c.
12337 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12338 (dwarf_decode_macro_bytes): Update.
12339 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12340 * dwarf2/leb.h (read_offset): Declare.
12341
12342 2020-02-08 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/read.c (dwarf2_section_size): Remove.
12345 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12346 Update.
12347 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12348
12349 2020-02-08 Tom Tromey <tom@tromey.com>
12350
12351 * dwarf2/read.c (read_initial_length): Move to leb.c.
12352 * dwarf2/leb.h (read_initial_length): Declare.
12353 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12354 handle_nonstd parameter.
12355 * dwarf2/frame.c (read_initial_length): Remove.
12356 (decode_frame_entry_1): Update.
12357
12358 2020-02-08 Tom Tromey <tom@tromey.com>
12359
12360 * dwarf2/loc.c (dwarf2_find_location_expression)
12361 (dwarf_evaluate_loc_desc::get_tls_address)
12362 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12363 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12364 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12365 (dwarf2_compile_property_to_c)
12366 (dwarf2_loc_desc_get_symbol_read_needs)
12367 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12368 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12369 (loclist_describe_location, loclist_tracepoint_var_ref)
12370 (loclist_generate_c_location): Update.
12371 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12372 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12373 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12374 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12375 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12376 (dwarf2_per_cu_data::addr_size)
12377 (dwarf2_per_cu_data::ref_addr_size)
12378 (dwarf2_per_cu_data::text_offset)
12379 (dwarf2_per_cu_data::addr_type): Now methods.
12380 (per_cu_header_read_in): Make per_cu "const".
12381 (dwarf2_version): Remove.
12382 (dwarf2_per_cu_data::int_type): Now a method.
12383 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12384 (set_die_type, read_array_type, read_subrange_index_type)
12385 (read_tag_string_type, read_subrange_type): Update.
12386 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12387 offset_size, ref_addr_size, text_offset, addr_type, version,
12388 objfile, int_type, addr_sized_int_type>: Declare methods.
12389
12390 2020-02-08 Tom Tromey <tom@tromey.com>
12391
12392 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12393 Move earlier.
12394
12395 2020-02-08 Tom Tromey <tom@tromey.com>
12396
12397 * dwarf2/read.h (dwarf_line_debug): Declare.
12398 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12399 * dwarf2/read.c: Move line_header code to new files.
12400 (dwarf_line_debug): No longer static.
12401 * dwarf2/line-header.c: New file.
12402 * dwarf2/line-header.h: New file.
12403
12404 2020-02-08 Tom Tromey <tom@tromey.com>
12405
12406 * dwarf2/read.c (struct line_header) <file_full_name,
12407 file_file_name>: Return unique_xmalloc_ptr.
12408 (line_header::file_file_name): Update.
12409 (line_header::file_full_name): Update.
12410 (dw2_get_file_names_reader): Update.
12411 (macro_start_file): Update.
12412
12413 2020-02-08 Tom Tromey <tom@tromey.com>
12414
12415 * dwarf2/read.c (struct line_header) <file_full_name,
12416 file_file_name>: Declare methods.
12417 (dw2_get_file_names_reader): Update.
12418 (file_file_name): Now a method.
12419 (file_full_name): Likewise.
12420 (macro_start_file): Update.
12421
12422 2020-02-08 Tom Tromey <tom@tromey.com>
12423
12424 * dwarf2/read.c (dwarf_always_disassemble)
12425 (show_dwarf_always_disassemble): Move to loc.c.
12426 (_initialize_dwarf2_read): Move "always-disassemble" registration
12427 to loc.c.
12428 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12429 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12430 static.
12431 (show_dwarf_always_disassemble): Move from read.c.
12432 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12433
12434 2020-02-08 Tom Tromey <tom@tromey.com>
12435
12436 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12437 (create_quick_file_names_table): Return htab_up.
12438 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12439 Update.
12440 * dwarf2/read.h (struct dwarf2_per_objfile)
12441 <quick_file_names_table>: Now htab_up.
12442
12443 2020-02-08 Tom Tromey <tom@tromey.com>
12444
12445 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12446
12447 2020-02-08 Tom Tromey <tom@tromey.com>
12448
12449 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12450 Rewrite.
12451 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12452 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12453 (abbrev_table::abbrev_table): No longer inline.
12454 (ABBREV_HASH_SIZE): Remove.
12455 (abbrev_table::m_abbrevs): Now an htab_up.
12456
12457 2020-02-08 Tom Tromey <tom@tromey.com>
12458
12459 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12460 (cutu_reader): Update.
12461 (build_type_psymtabs_1): Update.
12462 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12463 (abbrev_table::alloc_abbrev): Update.
12464 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12465 (abbrev_table::read): New static method, renamed from
12466 abbrev_table_read_table.
12467 (abbrev_table::alloc_abbrev)
12468 (abbrev_table::add_abbrev): Now private.
12469 (abbrev_table::abbrev_table): Now private.
12470 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12471
12472 2020-02-08 Tom Tromey <tom@tromey.com>
12473
12474 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12475 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12476 htab_up.
12477
12478 2020-02-08 Tom Tromey <tom@tromey.com>
12479
12480 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12481 htab_up.
12482 (lookup_dwo_unit_in_dwp): Update.
12483 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12484 on obstack.
12485
12486 2020-02-08 Tom Tromey <tom@tromey.com>
12487
12488 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12489 obstack.
12490
12491 2020-02-08 Tom Tromey <tom@tromey.com>
12492
12493 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12494 line_header_hash.
12495 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12496 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12497 Change type to htab_up.
12498
12499 2020-02-08 Tom Tromey <tom@tromey.com>
12500
12501 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12502 htab_up. Don't allocate on obstack.
12503 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12504 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12505 Change type to htab_up.
12506
12507 2020-02-08 Tom Tromey <tom@tromey.com>
12508
12509 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12510 Change type to htab_up.
12511 * dwarf2/read.c (create_signatured_type_table_from_index)
12512 (create_signatured_type_table_from_debug_names)
12513 (create_all_type_units, add_type_unit)
12514 (lookup_dwo_signatured_type, lookup_signatured_type)
12515 (process_skeletonless_type_unit): Update.
12516 (create_debug_type_hash_table, create_debug_types_hash_table):
12517 Change type of types_htab.
12518 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12519 htab_up. Don't allocate on obstack.
12520 (create_cus_hash_table): Change type of cus_htab parameter.
12521 (struct dwo_file) <cus, tus>: Now htab_up.
12522 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12523 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12524 (queue_and_load_all_dwo_tus): Update.
12525 * dwarf2/index-write.c (write_gdbindex): Update.
12526 (write_debug_names): Update.
12527
12528 2020-02-08 Tom Tromey <tom@tromey.com>
12529
12530 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12531 dwarf2/read.c. Remove "next" member. Add constructor ntad
12532 destructor.
12533 (struct dwarf2_per_objfile) <queue>: New member.
12534 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12535 dwarf2/read.h.
12536 (dwarf2_queue, dwarf2_queue_tail): Remove.
12537 (class dwarf2_queue_guard): Add parameter to constructor. Use
12538 DISABLE_COPY_AND_ASSIGN.
12539 <m_per_objfile>: New member.
12540 <~dwarf2_queue_guard>: Rewrite.
12541 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12542 Update.
12543 (~dwarf2_queue_item): New.
12544
12545 2020-02-08 Tom Tromey <tom@tromey.com>
12546
12547 * dwarf2/read.c (struct die_info) <has_children>: New member.
12548 (dw2_get_file_names_reader): Remove has_children.
12549 (dw2_get_file_names): Update.
12550 (read_cutu_die_from_dwo): Remove has_children.
12551 (cutu_reader::init_tu_and_read_dwo_dies)
12552 (cutu_reader::cutu_reader): Update.
12553 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12554 Remove has_children.
12555 (build_type_psymtabs_1, process_skeletonless_type_unit)
12556 (load_partial_comp_unit, load_full_comp_unit): Update.
12557 (create_dwo_cu_reader): Remove has_children.
12558 (create_cus_hash_table, read_die_and_children): Update.
12559 (read_full_die_1,read_full_die): Remove has_children.
12560 (read_signatured_type): Update.
12561 (class cutu_reader) <has_children>: Remove.
12562
12563 2020-02-08 Tom Tromey <tom@tromey.com>
12564
12565 * dwarf2/expr.c: Rename from dwarf2expr.c.
12566 * dwarf2/expr.h: Rename from dwarf2expr.h.
12567 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12568 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12569 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12570 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12571 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12572 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12573 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12574 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12575 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12576 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12577 * dwarf2/loc.c: Rename from dwarf2loc.c.
12578 * dwarf2/loc.h: Rename from dwarf2loc.h.
12579 * dwarf2/read.c: Rename from dwarf2read.c.
12580 * dwarf2/read.h: Rename from dwarf2read.h.
12581 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12582 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12583 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12584 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12585 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12586 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12587 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12588 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12589 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12590 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12591 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12592 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12593 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12594 Update.
12595 * Makefile.in (COMMON_SFILES): Update.
12596 (HFILES_NO_SRCDIR): Update.
12597
12598 2020-02-08 Tom Tromey <tom@tromey.com>
12599
12600 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12601 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12602
12603 2020-02-08 Tom Tromey <tom@tromey.com>
12604
12605 * dwarf2read.h (struct die_info): Don't declare.
12606
12607 2020-02-08 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2read.h (die_info_ptr): Remove typedef.
12610
12611 2020-02-08 Tom Tromey <tom@tromey.com>
12612
12613 * dwarf2read.c (read_call_site_scope)
12614 (handle_data_member_location, dwarf2_add_member_fn)
12615 (mark_common_block_symbol_computed, read_common_block)
12616 (attr_to_dynamic_prop, partial_die_info::read)
12617 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12618 (dwarf2_symbol_mark_computed, set_die_type): Update.
12619 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12620 method.
12621 (attr_form_is_block): Don't declare.
12622 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12623
12624 2020-02-08 Tom Tromey <tom@tromey.com>
12625
12626 * dwarf2read.c (dwarf2_find_base_address, )
12627 (read_call_site_scope, rust_containing_type)
12628 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12629 (handle_data_member_location, dwarf2_add_member_fn)
12630 (get_alignment, read_structure_type, process_structure_scope)
12631 (mark_common_block_symbol_computed, read_common_block)
12632 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12633 (partial_die_info::read, read_attribute_value, new_symbol)
12634 (lookup_die_type, dwarf2_get_ref_die_offset)
12635 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12636 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12637 (dwarf2_symbol_mark_computed): Update.
12638 * dwarf2/attribute.h (struct attribute) <value_as_address,
12639 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12640 methods.
12641 (value_as_address, attr_form_is_section_offset)
12642 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12643 * dwarf2/attribute.c (attribute::value_as_address)
12644 (attribute::form_is_section_offset, attribute::form_is_constant)
12645 (attribute::form_is_ref): Now methods.
12646
12647 2020-02-08 Tom Tromey <tom@tromey.com>
12648
12649 * dwarf2read.c (struct attribute, DW_STRING)
12650 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12651 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12652 (attr_form_is_block, attr_form_is_section_offset)
12653 (attr_form_is_constant, attr_form_is_ref): Move.
12654 * dwarf2/attribute.h: New file.
12655 * dwarf2/attribute.c: New file, from dwarf2read.c.
12656 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12657
12658 2020-02-08 Tom Tromey <tom@tromey.com>
12659
12660 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12661 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12662 Move.
12663 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12664 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12665 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12666 abbrev.c.
12667 * dwarf2/abbrev.h: New file.
12668 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12669 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12670
12671 2020-02-08 Tom Tromey <tom@tromey.com>
12672
12673 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12674 (dwarf2_section_size, dwarf2_get_section_info)
12675 (create_signatured_type_table_from_debug_names)
12676 (create_addrmap_from_aranges, read_debug_names_from_section)
12677 (get_gdb_index_contents_from_section, read_comp_unit_head)
12678 (error_check_comp_unit_head, read_abbrev_offset)
12679 (create_debug_type_hash_table, init_cu_die_reader)
12680 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12681 (read_comp_units_from_section, create_cus_hash_table)
12682 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12683 (create_dwp_v2_section, dwarf2_rnglists_process)
12684 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12685 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12686 (read_indirect_string_from_dwz, read_addr_index_1)
12687 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12688 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12689 (fill_in_loclist_baton): Update.
12690 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12691 get_containing_section, get_bfd_owner, get_bfd_section,
12692 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12693 (dwarf2_read_section, get_section_name, get_section_file_name)
12694 (get_containing_section, get_section_bfd_owner)
12695 (get_section_bfd_section, get_section_name, get_section_file_name)
12696 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12697 declare.
12698 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12699 (dwarf2_section_info::get_bfd_owner)
12700 (dwarf2_section_info::get_bfd_section)
12701 (dwarf2_section_info::get_name)
12702 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12703 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12704 (dwarf2_section_info::read): Now methods.
12705 * dwarf-index-write.c (class debug_names): Update.
12706
12707 2020-02-08 Tom Tromey <tom@tromey.com>
12708
12709 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12710 Move to dwarf2/section.h.
12711 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12712 (get_section_bfd_section, get_section_name)
12713 (get_section_file_name, get_section_id, get_section_flags)
12714 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12715 dwarf2/section.c.
12716 * dwarf2/section.h: New file.
12717 * dwarf2/section.c: New file, from dwarf2read.c.
12718 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12719
12720 2020-02-08 Tom Tromey <tom@tromey.com>
12721
12722 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12723 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12724 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12725 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12726 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12727 * dwarf2/leb.h: New file, from dwarf2read.c.
12728 * dwarf2/leb.c: New file, from dwarf2read.c.
12729 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12730 Remove.
12731 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12732 (COMMON_SFILES): Add dwarf2/leb.c.
12733
12734 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12735
12736 GDB 9.1 released.
12737
12738 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12739
12740 PR gdb/25190:
12741 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12742 * gdb/remote.c (remote_console_output): Update.
12743 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12744 (ui_file_puts): ...this.
12745 * gdb/ui-file.h (ui_file_puts): Add declaration.
12746 * gdb/utils.c (emit_style_escape): Update.
12747 (flush_wrap_buffer): Update.
12748 (fputs_maybe_filtered): Update.
12749 (fputs_unfiltered): Add function.
12750
12751 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12752
12753 * gdb/event-loop.c (gdb_wait_for_event): Update.
12754 * gdb/printcmd.c (printf_command): Update.
12755 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12756 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12757 (gdb_os_flush_stderr): Update.
12758 * gdb/remote.c (remote_console_output): Update.
12759 * gdb/ui-file.c (gdb_flush): Rename to...
12760 (ui_file_flush): ...this.
12761 (stderr_file::write): Update.
12762 (stderr_file::puts): Update.
12763 * gdb/ui-file.h (gdb_flush): Rename to...
12764 (ui_file_flush): ...this.
12765 * gdb/utils.c (gdb_flush): Add function.
12766 * gdb/utils.h (gdb_flush): Add declaration.
12767
12768 2020-02-07 Tom Tromey <tromey@adacore.com>
12769
12770 PR breakpoints/24915:
12771 * source.c (find_and_open_source): Do not check basenames_may_differ.
12772
12773 2020-02-07 Tom Tromey <tom@tromey.com>
12774
12775 * README: Update gdbserver documentation.
12776 * gdbserver: Move to top level.
12777 * configure.tgt (build_gdbserver): Remove.
12778 * configure.ac: Remove --enable-gdbserver.
12779 * configure: Rebuild.
12780 * Makefile.in (distclean): Don't mention gdbserver.
12781
12782 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12783
12784 * source-cache.c (source_cache::ensure): Surround
12785 get_plain_source_lines with a try/catch.
12786 (source_cache::get_line_charpos): Get rid of try/catch
12787 and only check for the return value of "ensure".
12788 * tui/tui-source.c (tui_source_window::set_contents):
12789 Simplify "nlines" calculation.
12790
12791 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12792
12793 * MAINTAINERS (Write After Approval): Add myself.
12794
12795 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12796
12797 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12798 function call.
12799
12800 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12801
12802 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12803
12804 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12805
12806 * nat/riscv-linux-tdesc.h: New file.
12807 * nat/riscv-linux-tdesc.c: New file, taking code from...
12808 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12809 ... here.
12810 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12811 NATDEPFILES.
12812
12813 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12814
12815 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12816 we don't set the fake simulator ptid to the null_ptid.
12817
12818 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12819
12820 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12821 * gdbthread.h (class thread_info) <resumed>: Likewise.
12822 * infrun.c (resume_1): Likewise.
12823 (proceed): Likewise.
12824 (infrun_thread_stop_requested): Likewise.
12825 (stop_all_threads): Likewise.
12826 (handle_inferior_event): Likewise.
12827 (restart_threads): Likewise.
12828 (finish_step_over): Likewise.
12829 (keep_going_stepped_thread): Likewise.
12830 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12831 (linux_handle_extended_wait): Likewise.
12832 * record-btrace.c (get_thread_current_frame_id): Likewise.
12833 * record-full.c (record_full_wait_1): Likewise.
12834 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12835 * target.c (target_resume): Likewise.
12836 * thread.c (set_running_thread): Likewise.
12837
12838 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12839
12840 * f-valprint.c (f77_print_array_1): Changed datatype of index
12841 variable to LONGEST from int to enable it to contain bound
12842 values correctly.
12843
12844 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12845
12846 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12847 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12848 offsets according to FLEN determined.
12849 (riscv_linux_nat_target::read_description): Determine FLEN
12850 dynamically.
12851 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12852 according to FLEN determined.
12853 (riscv_linux_nat_target::store_registers): Likewise.
12854
12855 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12856
12857 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12858 when reg->group is empty and reggroup is not.
12859
12860 2020-01-31 Tom Tromey <tromey@adacore.com>
12861
12862 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12863 Call beneath target's mourn_inferior after unpushing.
12864
12865 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12866
12867 PR tui/9765
12868 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12869 have enough lines to fill the screen, still return the lowest
12870 address we found.
12871
12872 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12873
12874 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12875 '-', '<', and '>' commands.
12876
12877 2020-01-29 Pedro Alves <palves@redhat.com>
12878 Sergio Durigan Junior <sergiodj@redhat.com>
12879
12880 * infcmd.c (construct_inferior_arguments): Assert that
12881 'argc' is greater than 0.
12882
12883 2020-01-29 Luis Machado <luis.machado@linaro.org>
12884
12885 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12886 (BRK_INSN_MASK): Define to 0xd4200000.
12887 (aarch64_program_breakpoint_here_p): New function.
12888 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12889 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12890 breakpoint.c.
12891 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12892 breakpoint.h
12893 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12894 call gdbarch_program_breakpoint_here_p.
12895 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12896 default_program_breakpoint_here_p, changed return type to bool and
12897 simplified.
12898 * breakpoint.h (program_breakpoint_here): Moved prototype to
12899 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12900 return type to bool.
12901 * gdbarch.c: Regenerate.
12902 * gdbarch.h: Regenerate.
12903 * gdbarch.sh (program_breakpoint_here_p): New method.
12904 * infrun.c (handle_signal_stop): Call
12905 gdbarch_program_breakpoint_here_p.
12906
12907 2020-01-26 Tom Tromey <tom@tromey.com>
12908
12909 * ctfread.c (struct ctf_fp_info): Reindent.
12910 (_initialize_ctfread): Remove.
12911
12912 2020-01-26 Tom Tromey <tom@tromey.com>
12913
12914 * psymtab.c (partial_map_expand_apply)
12915 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12916 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12917 (psym_print_stats, psym_expand_symtabs_for_function)
12918 (psym_map_symbol_filenames, psym_map_matching_symbols)
12919 (psym_expand_symtabs_matching)
12920 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12921 (maintenance_check_psymtabs): Use new methods.
12922 * psympriv.h (struct partial_symtab) <readin_p,
12923 get_compunit_symtab>: New methods.
12924 <readin, compunit_symtab>: Remove members.
12925 (struct standard_psymtab): New.
12926 (struct legacy_psymtab): Derive from standard_psymtab.
12927 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12928 standard_psymtab.
12929 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12930
12931 2020-01-26 Tom Tromey <tom@tromey.com>
12932
12933 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12934 read_dependencies. Add assert.
12935 * psymtab.c (partial_symtab::read_dependencies): New method.
12936 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12937 method.
12938 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12939 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12940 read_dependencies.
12941 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12942 Add assert.
12943
12944 2020-01-26 Tom Tromey <tom@tromey.com>
12945
12946 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12947 Call expand_psymtab.
12948 (xcoff_read_symtab): Call expand_psymtab.
12949 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12950 legacy_expand_psymtab.
12951 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12952 method.
12953 (struct legacy_psymtab) <expand_psymtab>: Implement.
12954 <legacy_expand_psymtab>: New member.
12955 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12956 (parse_partial_symbols): Set legacy_expand_psymtab.
12957 (psymtab_to_symtab_1): Change argument order. Call
12958 expand_psymtab.
12959 (new_psymtab): Set legacy_expand_psymtab.
12960 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12961 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12962 expand_psymtab.
12963 (dwarf2_psymtab::expand_psymtab): Rename from
12964 psymtab_to_symtab_1. Call expand_psymtab.
12965 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12966 (dbx_end_psymtab): Likewise.
12967 (dbx_psymtab_to_symtab_1): Change argument order. Call
12968 expand_psymtab.
12969 (dbx_read_symtab): Call expand_psymtab.
12970 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12971 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12972 (ctf_psymtab::read_symtab): Call expand_psymtab.
12973
12974 2020-01-26 Tom Tromey <tom@tromey.com>
12975
12976 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12977 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12978 messages.
12979 * mdebugread.c (mdebug_read_symtab): Remove prints.
12980 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12981 assert.
12982 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12983
12984 2020-01-26 Tom Tromey <tom@tromey.com>
12985
12986 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12987 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12988 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12989 legacy_symtab.
12990 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12991 * psymtab.c (psymtab_to_symtab): Call method.
12992 (dump_psymtab): Update.
12993 * psympriv.h (struct partial_symtab): Add virtual destructor.
12994 <read_symtab>: New method.
12995 (struct legacy_symtab): New.
12996 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12997 (struct pst_map) <pst>: Now a legacy_psymtab.
12998 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12999 (new_psymtab): Use legacy_psymtab.
13000 * dwarf2read.h (struct dwarf2_psymtab): New.
13001 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13002 * dwarf2read.c (dwarf2_create_include_psymtab)
13003 (dwarf2_build_include_psymtabs, create_type_unit_group)
13004 (create_partial_symtab, process_psymtab_comp_unit_reader)
13005 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13006 (set_partial_user): Use dwarf2_psymtab.
13007 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13008 (psymtab_to_symtab_1, process_full_comp_unit)
13009 (process_full_type_unit, dwarf2_ranges_read)
13010 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13011 (dwarf_decode_lines): Use dwarf2_psymtab.
13012 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13013 (add_address_entry_worker, write_one_signatured_type)
13014 (recursively_count_psymbols, recursively_write_psymbols)
13015 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13016 (write_debug_names): Likewise.
13017 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13018 <pst>: Now a legacy_psymtab.
13019 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13020 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13021 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13022 * ctfread.c (struct ctf_psymtab): New.
13023 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13024 ctf_psymtab.
13025 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13026 (create_partial_symtab): Return a ctf_psymtab.
13027 (scan_partial_symbols): Update.
13028
13029 2020-01-26 Tom Tromey <tom@tromey.com>
13030
13031 * xcoffread.c (xcoff_start_psymtab): Use new.
13032 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13033 renamed from start_psymtab_common.
13034 * psympriv.h (struct partial_symtab): Add new constructor.
13035 (start_psymtab_common): Don't declare.
13036 * mdebugread.c (parse_partial_symbols): Use new.
13037 * dwarf2read.c (create_partial_symtab): Use new.
13038 * dbxread.c (start_psymtab): Use new.
13039 * ctfread.c (create_partial_symtab): Use new.
13040
13041 2020-01-26 Tom Tromey <tom@tromey.com>
13042
13043 * xcoffread.c (xcoff_end_psymtab): Use new.
13044 * psymtab.c (start_psymtab_common): Use new.
13045 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13046 Update.
13047 * psympriv.h (struct partial_symtab): Add parameters to
13048 constructor. Don't inline.
13049 (allocate_psymtab): Don't declare.
13050 * mdebugread.c (new_psymtab): Use new.
13051 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13052 * dbxread.c (dbx_end_psymtab): Use new.
13053
13054 2020-01-26 Tom Tromey <tom@tromey.com>
13055
13056 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13057 allocate_psymtab. Update documentation.
13058 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13059 allocate_psymtab. Do not use new.
13060 (allocate_psymtab): Use new. Update.
13061
13062 2020-01-26 Tom Tromey <tom@tromey.com>
13063
13064 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13065 * psymtab.c (psym_print_stats): Update.
13066 * psympriv.h (struct partial_symtab) <readin,
13067 psymtabs_addrmap_supported, anonymous>: Now bool.
13068 * mdebugread.c (psymtab_to_symtab_1): Update.
13069 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13070 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13071 (process_full_comp_unit, process_full_type_unit): Update.
13072 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13073 * ctfread.c (psymtab_to_symtab): Update.
13074
13075 2020-01-26 Tom Tromey <tom@tromey.com>
13076
13077 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13078 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13079 * psymtab.c (psymtab_storage): Delete psymtabs.
13080 (psymtab_storage::allocate_psymtab): Use new.
13081 (psymtab_storage::discard_psymtab): Use delete.
13082 * psympriv.h (struct partial_symtab): Add constructor and
13083 initializers.
13084
13085 2020-01-26 Tom Tromey <tom@tromey.com>
13086
13087 * machoread.c: Do not include psympriv.h.
13088
13089 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13090
13091 * NEWS: Mention the new option and the set/show commands.
13092
13093 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13094
13095 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13096 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13097 (validate_exec_file): New variables, enums, functions.
13098 (exec_file_locate_attach, print_section_info): Style the filenames.
13099 (_initialize_exec): Install show_exec_file_mismatch_command and
13100 set_exec_file_mismatch_command.
13101 * gdbcore.h (validate_exec_file): Declare.
13102 * infcmd.c (attach_command): Call validate_exec_file.
13103 * remote.c ( remote_target::remote_add_inferior): Likewise.
13104
13105 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13106
13107 * frame.c (find_frame_sal): Move call to get_next_frame into more
13108 inner scope.
13109 * inline-frame.c (inilne_state) <inline_state>: Update argument
13110 types.
13111 (inilne_state) <skipped_symbol>: Rename to...
13112 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13113 (skip_inline_frames): Build vector of skipped symbols and use this
13114 to reate the inline_state.
13115 (inline_skipped_symbol): Add a comment and some assertions, fetch
13116 skipped symbol from the list.
13117
13118 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13119
13120 * buildsym.c (lte_is_less_than): Delete.
13121 (buildsym_compunit::end_symtab_with_blockvector): Create local
13122 lambda function to sort line table entries, and use
13123 std::stable_sort instead of std::sort.
13124 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13125 markers when looking for a previous line.
13126
13127 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13128
13129 * dwarf2read.c (lnp_state_machine::record_line): Include
13130 end_sequence parameter in debug print out. Record the line if we
13131 are at an end_sequence marker even if it's not the start of a
13132 statement.
13133 * symmisc.c (maintenance_print_one_line_table): Print end of
13134 sequence markers with 'END' not '0'.
13135
13136 2020-01-24 Pedro Alves <palves@redhat.com>
13137
13138 PR gdb/25410
13139 * thread.c (scoped_restore_current_thread::restore): Use
13140 switch_to_inferior_no_thread.
13141 * exec.c: Include "progspace-and-thread.h".
13142 (add_target_sections, remove_target_sections):
13143 scoped_restore_current_pspace_and_thread instead of
13144 scoped_restore_current_thread.
13145 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13146 and aspace to the inferior before calling clone_program_space.
13147 Remove stale comment.
13148
13149 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13150
13151 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13152 (arm_netbsd_nat_target::fetch_registers): ...this.
13153 (arm_nbsd_nat_target::store_registers): Rename to...
13154 (arm_netbsd_nat_target::store_registers): ...this.
13155
13156 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13157
13158 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13159 register_t.
13160
13161 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13162
13163 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13164 Update comment.
13165 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13166 Likewise.
13167 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13168 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13169 the correct replacement (iterate_over_regset_sections).
13170 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13171 Update comment.
13172
13173 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13174
13175 PR gdb/23718
13176 * gdb/python/python.c (execute_gdb_command): Call
13177 async_enable_stdin in catch block.
13178
13179 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13180
13181 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13182 SWITCH_THRU_ALL_UIS.
13183
13184 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13185
13186 PR tui/9765
13187 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13188 comment, add extra parameter, and update to store previous symbol
13189 when appropriate.
13190 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13191 add extra parameter.
13192 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13193 remove unneeded parameter, add try/catch around gdb_print_insn,
13194 rewrite to add items to asm_lines vector.
13195 (tui_find_backward_disassembly_start_address): New function.
13196 (tui_find_disassembly_address): Updated throughout.
13197 (tui_disasm_window::set_contents): Update for changes to
13198 tui_disassemble.
13199 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13200 number of lines to scroll.
13201
13202 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13203
13204 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13205 (SECT_OFF_DATA): Likewise.
13206 (SECT_OFF_RODATA): Likewise.
13207 (SECT_OFF_TEXT): Likewise.
13208 (SECT_OFF_BSS): Likewise.
13209 (struct objfile) <text_section_offset, data_section_offset>: New
13210 methods.
13211 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13212 objfile::text_section_offset.
13213 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13214 * coffread.c (coff_symtab_read): Likewise.
13215 (enter_linenos): Likewise.
13216 (process_coff_symbol): Likewise.
13217 * ctfread.c (get_objfile_text_range): Likewise.
13218 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13219 Use objfile::data_section_offset.
13220 * dwarf2-frame.c (execute_cfa_program): Use
13221 objfile::text_section_offset.
13222 (dwarf2_frame_find_fde): Likewise.
13223 * dwarf2read.c (create_addrmap_from_index): Likewise.
13224 (create_addrmap_from_aranges): Likewise.
13225 (dw2_find_pc_sect_compunit_symtab): Likewise.
13226 (process_psymtab_comp_unit_reader): Likewise.
13227 (add_partial_symbol): Likewise.
13228 (add_partial_subprogram): Likewise.
13229 (process_full_comp_unit): Likewise.
13230 (read_file_scope): Likewise.
13231 (read_func_scope): Likewise.
13232 (read_lexical_block_scope): Likewise.
13233 (read_call_site_scope): Likewise.
13234 (dwarf2_rnglists_process): Likewise.
13235 (dwarf2_ranges_process): Likewise.
13236 (dwarf2_ranges_read): Likewise.
13237 (dwarf_decode_lines_1): Likewise.
13238 (new_symbol): Likewise.
13239 (dwarf2_fetch_die_loc_sect_off): Likewise.
13240 (dwarf2_per_cu_text_offset): Likewise.
13241 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13242 * hppa-tdep.c (read_unwind_info): Likewise.
13243 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13244 * psympriv.h (struct partial_symtab): Likewise.
13245 * psymtab.c (find_pc_sect_psymtab): Likewise.
13246 * solib-svr4.c (enable_break): Likewise.
13247 * stap-probe.c (relocate_address): Use
13248 objfile::data_section_offset.
13249 * xcoffread.c (enter_line_range): Use
13250 objfile::text_section_offset.
13251 (read_xcoff_symtab): Likewise.
13252
13253 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13254
13255 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13256 declaration to narrower scopes.
13257
13258 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13259
13260 * darwin-nat.h (struct darwin_exception_msg, enum
13261 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13262 Move up.
13263 (class darwin_nat_target) <wait_1, check_new_threads,
13264 decode_exception_message, decode_message, stop_inferior,
13265 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13266 * darwin-nat.c (darwin_check_new_threads): Rename to...
13267 (darwin_nat_target::check_new_threads): ... this.
13268 (darwin_suspend_inferior_it): Remove.
13269 (darwin_decode_exception_message): Rename to...
13270 (darwin_nat_target::decode_exception_message): ... this.
13271 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13272 (darwin_decode_message): Rename to...
13273 (darwin_nat_target::decode_message): ... this.
13274 (cancel_breakpoint): Rename to...
13275 (darwin_nat_target::cancel_breakpoint): ... this.
13276 (darwin_wait): Rename to...
13277 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13278 instead of iterate_over_inferiors.
13279 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13280 (darwin_stop_inferior): Rename to...
13281 (darwin_nat_target::stop_inferior): ... this.
13282 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13283 (darwin_init_thread_list): Rename to...
13284 (darwin_nat_target::init_thread_list): ... this.
13285 (darwin_ptrace_him): Rename to...
13286 (darwin_nat_target::ptrace_him): ... this.
13287 (darwin_nat_target::create_inferior): Pass lambda function to
13288 fork_inferior.
13289 (darwin_nat_target::detach): Call stop_inferior instead of
13290 darwin_stop_inferior.
13291 * fork-inferior.h (fork_inferior): Change init_trace_fun
13292 parameter to gdb::function_view.
13293 * fork-inferior.c (fork_inferior): Likewise.
13294
13295 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13296
13297 * i386-cygwin-tdep.c (core_process_module_section): Update.
13298 * windows-nat.c (struct lm_info_windows): Add text_offset.
13299 (windows_xfer_shared_libraries): Update.
13300 * windows-tdep.c (windows_xfer_shared_library):
13301 Add text_offset_cached argument.
13302 * windows-tdep.h (windows_xfer_shared_library): Update.
13303
13304 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13305
13306 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13307
13308 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13309
13310 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13311 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13312 replace with range-based for.
13313 (gdbsim_interrupt_inferior): Remove.
13314 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13315 with a range-based for. Inline code from
13316 gdbsim_interrupt_inferior.
13317
13318 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13319
13320 * infrun.c (proceed): Fix indentation.
13321
13322 2020-01-21 Tom Tromey <tromey@adacore.com>
13323
13324 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13325 * python/python.c (python_extension_ops): Update.
13326 (gdbpy_colorize): New function.
13327 * python/lib/gdb/__init__.py (colorize): New function.
13328 * extension.h (ext_lang_colorize): Declare.
13329 * extension.c (ext_lang_colorize): New function.
13330 * extension-priv.h (struct extension_language_ops) <colorize>: New
13331 member.
13332 * cli/cli-style.c (_initialize_cli_style): Update help text.
13333
13334 2020-01-21 Luis Machado <luis.machado@linaro.org>
13335
13336 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13337 <cond>: Change type to bool.
13338 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13339 (aarch64_displaced_step_cb): Likewise.
13340 (aarch64_displaced_step_tb): Likewise.
13341
13342 2020-01-21 Luis Machado <luis.machado@linaro.org>
13343
13344 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13345 output.
13346
13347 2020-01-21 Luis Machado <luis.machado@linaro.org>
13348
13349 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13350 <pc_adjust>: Adjust the documentation.
13351 (aarch64_displaced_step_fixup): Check if PC really moved before
13352 adjusting it.
13353
13354 2020-01-19 Tom Tromey <tom@tromey.com>
13355
13356 * disasm.c (~gdb_disassembler): New destructor.
13357 (gdb_buffered_insn_length): Call disassemble_free_target.
13358 * disasm.h (class gdb_disassembler): Declare destructor. Use
13359 DISABLE_COPY_AND_ASSIGN.
13360
13361 2020-01-19 Tom Tromey <tom@tromey.com>
13362
13363 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13364 (die_reader_func_ftype): Remove.
13365 (cutu_reader): New class.
13366 (dw2_get_file_names_reader): Remove "data" parameter.
13367 (dw2_get_file_names): Use cutu_reader.
13368 (create_debug_type_hash_table): Update.
13369 (read_cutu_die_from_dwo): Update comment.
13370 (lookup_dwo_unit): Add dwo_name parameter.
13371 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13372 die_reader_func_ftype and data parameters.
13373 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13374 Remove die_reader_func_ftype and data parameters.
13375 (~cutu_reader): New; from init_cutu_and_read_dies.
13376 (cutu_reader::cutu_reader): Rename from
13377 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13378 and data parameters.
13379 (init_cutu_and_read_dies_simple): Remove.
13380 (struct process_psymtab_comp_unit_data): Remove.
13381 (process_psymtab_comp_unit_reader): Remove data parameter; add
13382 want_partial_unit and pretend_language parameters.
13383 (process_psymtab_comp_unit): Use cutu_reader.
13384 (build_type_psymtabs_reader): Remove data parameter.
13385 (build_type_psymtabs_1): Use cutu_reader.
13386 (process_skeletonless_type_unit): Likewise.
13387 (load_partial_comp_unit_reader): Remove.
13388 (load_partial_comp_unit): Use cutu_reader.
13389 (load_full_comp_unit_reader): Remove.
13390 (load_full_comp_unit): Use cutu_reader.
13391 (struct create_dwo_cu_data): Remove.
13392 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13393 dwo_unit parameters.
13394 (create_cus_hash_table): Use cutu_reader.
13395 (struct dwarf2_read_addr_index_data): Remove.
13396 (dwarf2_read_addr_index_reader): Remove.
13397 (dwarf2_read_addr_index): Use cutu_reader.
13398 (read_signatured_type_reader): Remove.
13399 (read_signatured_type): Use cutu_reader.
13400
13401 2020-01-19 Tom Tromey <tom@tromey.com>
13402
13403 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13404 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13405 (tui_wrefresh): Declare.
13406 * tui/tui-wingeneral.c (suppress_output): New global.
13407 (tui_suppress_output, ~tui_suppress_output): New constructor and
13408 destructor.
13409 (tui_wrefresh): New function.
13410 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13411 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13412 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13413 method.
13414 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13415 tui_wrefresh.
13416 (tui_data_window::no_refresh): New method.
13417 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13418 (tui_reg_command): Use tui_suppress_output
13419 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13420 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13421 method.
13422 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13423
13424 2020-01-19 Tom Tromey <tom@tromey.com>
13425
13426 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13427 Handle case where symtab is null.
13428
13429 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13430
13431 * linux-fork.c (one_fork_p): Simplify.
13432
13433 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13434
13435 * top.c (struct qt_args): Remove.
13436 (kill_or_detach): Change return type to void, replace `void *`
13437 parameter with a proper one.
13438 (print_inferior_quit_action): Likewise.
13439 (quit_confirm): Use range-based for loop to iterate over inferiors.
13440 (quit_force): Likewise.
13441
13442 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13443
13444 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13445 `void *` parameter with proper parameters.
13446 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13447 (print_one_inferior): Change return type to void, replace `void *`
13448 parameter with proper parameters.
13449 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13450 inferiors.
13451 (get_other_inferior): Remove.
13452 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13453 inferiors.
13454
13455 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13456
13457 * mi/mi-interp.c (report_initial_inferior): Remove.
13458 (mi_interp::init): Use range-based for to iterate over inferiors.
13459
13460 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13461
13462 * python/py-inferior.c (build_inferior_list): Remove.
13463 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13464
13465 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13466
13467 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13468 (btrace_stitch_trace): Likewise.
13469 * charset.c (intermediate_encoding): Likewise (vaild).
13470 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13471 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13472 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13473
13474 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13475
13476 * windows-tdep.c (windows_get_tlb_type):
13477 Add rtl_user_process_parameters type.
13478
13479 2020-01-16 Pedro Alves <palves@redhat.com>
13480 Norbert Lange <nolange79@gmail.com>
13481
13482 PR build/24805
13483 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13484 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13485 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13486 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13487 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13488 (ps_plog): Redeclare exported functions with default visibility.
13489
13490 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13491
13492 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13493 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13494
13495 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13496
13497 * infcmd.c (post_create_inferior): Use get_thread_regcache
13498 instead of get_current_regcache.
13499
13500 2020-01-14 Tom Tromey <tom@tromey.com>
13501
13502 PR symtab/12535:
13503 * python/python.c (gdbpy_decode_line): Treat empty string the same
13504 as no argument.
13505
13506 2020-01-14 Tom Tromey <tom@tromey.com>
13507
13508 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13509
13510 2020-01-14 Tom Tromey <tom@tromey.com>
13511
13512 * nat/linux-btrace.c: Don't include <config.h>.
13513 * nat/linux-ptrace.c: Don't include <config.h>.
13514 * nat/x86-linux-dregs.c: Don't include <config.h>.
13515
13516 2020-01-14 Tom Tromey <tom@tromey.com>
13517
13518 * configure: Rebuild.
13519 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13520
13521 2020-01-14 Tom Tromey <tom@tromey.com>
13522
13523 * nat/x86-linux-dregs.c: Include configh.h.
13524 * nat/linux-ptrace.c: Include configh.h.
13525 * nat/linux-btrace.c: Include configh.h.
13526 * defs.h: Include config.h, bfd.h.
13527 * configure.ac: Don't source common.host.
13528 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13529 * configure: Rebuild.
13530 * acinclude.m4: Update path.
13531 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13532 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13533 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13534 (CLIBS): Add LIBSUPPORT.
13535 (CDEPS): Likewise.
13536 (COMMON_SFILES): Remove gdbsupport files.
13537 (HFILES_NO_SRCDIR): Likewise.
13538 (stamp-version): Update path to create-version.sh.
13539 (ALLDEPFILES): Remove gdbsupport files.
13540
13541 2020-01-14 Tom Tromey <tom@tromey.com>
13542
13543 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13544 USE_WIN32API when needed.
13545 * configure.ac (USE_WIN32API): Don't define.
13546 (WIN32LIBS): Use WIN32APILIBS.
13547 * configure: Rebuild.
13548
13549 2020-01-14 Tom Tromey <tom@tromey.com>
13550
13551 * configure: Rebuild.
13552 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13553
13554 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13555
13556 * skip.c (skip_function_command): Make skip w/o arguments use the
13557 name of the inlined function if pc is inside any inlined function.
13558
13559 2020-01-14 Luis Machado <luis.machado@linaro.org>
13560
13561 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13562 * infrun.c (resume_1): Likewise.
13563 (handle_inferior_event): Remove stale comment.
13564 * linux-nat.c (linux_nat_target::resume): Update comments.
13565 (save_stop_reason): Likewise.
13566 (linux_nat_filter_event): Likewise.
13567 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13568
13569 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13570
13571 * elfread.c (record_minimal_symbol): Set section index to 0 for
13572 non-allocatable sections.
13573
13574
13575 2020-01-13 Ali Tamur <tamur@google.com>
13576
13577 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13578 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13579 to gdb::optional. Update comments.
13580 (dwo_file): Update comments.
13581 (read_attribute): Update API to take an additional out parameter,
13582 need_reprocess. This is used to mark attributes that need other
13583 attributes (e.g. str_offsets_base) for correct computation which may not
13584 have been read yet.
13585 (read_attribute_reprocess): New function declaration.
13586 (read_addr_index): Likewise.
13587 (read_dwo_str_index): Likewise.
13588 (read_stub_str_index): Likewise.
13589 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13590 (lookup_addr_base): New function definition.
13591 (lookup_ranges_base): Likewise.
13592 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13593 lookup_ranges_base.
13594 (init_cutu_and_read_dies): Update comments.
13595 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13596 unit. This is used to inherit parent's str_offsets_base and addr_base.
13597 Update comments.
13598 (init_cutu_and_read_dies_simple): Reflect API changes.
13599 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13600 (create_cus_hash_table): Change API to take parent compile unit.
13601 Reflect API changes.
13602 (open_and_init_dwo_file): Reflect API changes.
13603 (dwarf2_get_pc_bounds): Update comments.
13604 (dwarf2_record_block_ranges): Likewise.
13605 (read_full_die_1): Change implementation to reprocess attributes that
13606 need str_offsets_base and addr_base.
13607 (partial_die_info::read): Likewise.
13608 (read_attribute_reprocess): New function definition.
13609 (read_attribute_value): Change API to take an additional out parameter,
13610 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13611 when a non-dwo compile unit has index based attributes.
13612 (read_attribute): Reflect API changes.
13613 (read_addr_index_1): Reflect API changes. Update comments.
13614 (dwarf2_read_addr_index_data): Reflect API changes.
13615 (dwarf2_read_addr_index): Likewise.
13616 (read_str_index): Change API and implementation. This becomes a helper
13617 to be used by the new string index related methods. Update error
13618 message and comments.
13619 (read_dwo_str_index): New function definition.
13620 (read_stub_str_index): Likewise.
13621 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13622 * symfile.h (dwarf2_debug_sections): Likewise.
13623 * xcoffread.c (dwarf2_debug_sections): Likewise.
13624
13625 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13626
13627 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13628 core_reg_sect type to gdb_byte *.
13629 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13630 * cris-tdep.c (fetch_core_registers): Likewise.
13631 * corelow.c (core_target::get_core_register_section): Change
13632 type of `contents` to gdb::byte_vector.
13633
13634 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13635
13636 * tui/tui-wingeneral.c (box_win): Position the title in the center
13637 of the border.
13638
13639 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13640
13641 * corelow.c (core_target::get_core_register_section): Use
13642 std::vector instead of alloca.
13643
13644 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13645
13646 * warning.m4: Add -Wmissing-declarations to build_warnings.
13647 * configure: Re-generate.
13648
13649 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13650
13651 * python/python.c (init__gdb_module): Add declaration.
13652
13653 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13654
13655 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13656 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13657 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13658 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13659 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13660 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13661 * ada-exp.y (_initialize_ada_exp): Add declaration.
13662 * ada-lang.c (_initialize_ada_language): Add declaration.
13663 * ada-tasks.c (_initialize_tasks): Add declaration.
13664 * agent.c (_initialize_agent): Add declaration.
13665 * aix-thread.c (_initialize_aix_thread): Add declaration.
13666 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13667 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13668 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13669 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13670 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13671 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13672 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13673 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13674 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13675 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13676 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13677 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13678 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13679 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13680 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13681 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13682 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13683 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13684 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13685 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13686 * annotate.c (_initialize_annotate): Add declaration.
13687 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13688 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13689 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13690 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13691 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13692 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13693 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13694 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13695 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13696 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13697 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13698 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13699 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13700 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13701 * auto-load.c (_initialize_auto_load): Add declaration.
13702 * auxv.c (_initialize_auxv): Add declaration.
13703 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13704 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13705 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13706 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13707 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13708 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13709 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13710 * breakpoint.c (_initialize_breakpoint): Add declaration.
13711 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13712 * btrace.c (_initialize_btrace): Add declaration.
13713 * charset.c (_initialize_charset): Add declaration.
13714 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13715 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13716 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13717 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13718 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13719 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13720 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13721 * coffread.c (_initialize_coffread): Add declaration.
13722 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13723 * compile/compile.c (_initialize_compile): Add declaration.
13724 * complaints.c (_initialize_complaints): Add declaration.
13725 * completer.c (_initialize_completer): Add declaration.
13726 * copying.c (_initialize_copying): Add declaration.
13727 * corefile.c (_initialize_core): Add declaration.
13728 * corelow.c (_initialize_corelow): Add declaration.
13729 * cp-abi.c (_initialize_cp_abi): Add declaration.
13730 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13731 * cp-support.c (_initialize_cp_support): Add declaration.
13732 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13733 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13734 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13735 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13736 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13737 * ctfread.c (_initialize_ctfread): Add declaration.
13738 * d-lang.c (_initialize_d_language): Add declaration.
13739 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13740 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13741 * dbxread.c (_initialize_dbxread): Add declaration.
13742 * dcache.c (_initialize_dcache): Add declaration.
13743 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13744 * disasm.c (_initialize_disasm): Add declaration.
13745 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13746 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13747 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13748 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13749 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13750 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13751 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13752 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13753 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13754 * elfread.c (_initialize_elfread): Add declaration.
13755 * exec.c (_initialize_exec): Add declaration.
13756 * extension.c (_initialize_extension): Add declaration.
13757 * f-lang.c (_initialize_f_language): Add declaration.
13758 * f-valprint.c (_initialize_f_valprint): Add declaration.
13759 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13760 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13761 * filesystem.c (_initialize_filesystem): Add declaration.
13762 * findcmd.c (_initialize_mem_search): Add declaration.
13763 * findvar.c (_initialize_findvar): Add declaration.
13764 * fork-child.c (_initialize_fork_child): Add declaration.
13765 * frame-base.c (_initialize_frame_base): Add declaration.
13766 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13767 * frame.c (_initialize_frame): Add declaration.
13768 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13769 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13770 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13771 * gcore.c (_initialize_gcore): Add declaration.
13772 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13773 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13774 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13775 * gdbarch.c (_initialize_gdbarch): Add declaration.
13776 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13777 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13778 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13779 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13780 * go-lang.c (_initialize_go_language): Add declaration.
13781 * go32-nat.c (_initialize_go32_nat): Add declaration.
13782 * guile/guile.c (_initialize_guile): Add declaration.
13783 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13784 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13785 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13786 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13787 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13788 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13789 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13790 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13791 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13792 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13793 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13794 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13795 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13796 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13797 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13798 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13799 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13800 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13801 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13802 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13803 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13804 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13805 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13806 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13807 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13808 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13809 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13810 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13811 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13812 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13813 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13814 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13815 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13816 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13817 * infcall.c (_initialize_infcall): Add declaration.
13818 * infcmd.c (_initialize_infcmd): Add declaration.
13819 * inflow.c (_initialize_inflow): Add declaration.
13820 * infrun.c (_initialize_infrun): Add declaration.
13821 * interps.c (_initialize_interpreter): Add declaration.
13822 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13823 * jit.c (_initialize_jit): Add declaration.
13824 * language.c (_initialize_language): Add declaration.
13825 * linux-fork.c (_initialize_linux_fork): Add declaration.
13826 * linux-nat.c (_initialize_linux_nat): Add declaration.
13827 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13828 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13829 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13830 * m2-lang.c (_initialize_m2_language): Add declaration.
13831 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13832 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13833 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13834 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13835 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13836 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13837 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13838 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13839 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13840 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13841 * machoread.c (_initialize_machoread): Add declaration.
13842 * macrocmd.c (_initialize_macrocmd): Add declaration.
13843 * macroscope.c (_initialize_macroscope): Add declaration.
13844 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13845 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13846 * maint.c (_initialize_maint_cmds): Add declaration.
13847 * mdebugread.c (_initialize_mdebugread): Add declaration.
13848 * memattr.c (_initialize_mem): Add declaration.
13849 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13850 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13851 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13852 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13853 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13854 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13855 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13856 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13857 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13858 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13859 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13860 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13861 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13862 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13863 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13864 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13865 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13866 * mipsread.c (_initialize_mipsread): Add declaration.
13867 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13868 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13869 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13870 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13871 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13872 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13873 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13874 * nto-procfs.c (_initialize_procfs): Add declaration.
13875 * objc-lang.c (_initialize_objc_language): Add declaration.
13876 * observable.c (_initialize_observer): Add declaration.
13877 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13878 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13879 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13880 * osabi.c (_initialize_gdb_osabi): Add declaration.
13881 * osdata.c (_initialize_osdata): Add declaration.
13882 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13883 * parse.c (_initialize_parse): Add declaration.
13884 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13885 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13886 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13887 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13888 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13889 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13890 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13891 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13892 * printcmd.c (_initialize_printcmd): Add declaration.
13893 * probe.c (_initialize_probe): Add declaration.
13894 * proc-api.c (_initialize_proc_api): Add declaration.
13895 * proc-events.c (_initialize_proc_events): Add declaration.
13896 * proc-service.c (_initialize_proc_service): Add declaration.
13897 * procfs.c (_initialize_procfs): Add declaration.
13898 * producer.c (_initialize_producer): Add declaration.
13899 * psymtab.c (_initialize_psymtab): Add declaration.
13900 * python/python.c (_initialize_python): Add declaration.
13901 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13902 * record-btrace.c (_initialize_record_btrace): Add declaration.
13903 * record-full.c (_initialize_record_full): Add declaration.
13904 * record.c (_initialize_record): Add declaration.
13905 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13906 * regcache.c (_initialize_regcache): Add declaration.
13907 * reggroups.c (_initialize_reggroup): Add declaration.
13908 * remote-notif.c (_initialize_notif): Add declaration.
13909 * remote-sim.c (_initialize_remote_sim): Add declaration.
13910 * remote.c (_initialize_remote): Add declaration.
13911 * reverse.c (_initialize_reverse): Add declaration.
13912 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13913 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13914 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13915 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13916 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13917 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13918 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13919 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13920 Add declaration.
13921 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13922 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13923 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13924 * rust-exp.y (_initialize_rust_exp): Add declaration.
13925 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13926 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13927 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13928 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13929 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13930 * score-tdep.c (_initialize_score_tdep): Add declaration.
13931 * ser-go32.c (_initialize_ser_dos): Add declaration.
13932 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13933 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13934 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13935 * ser-uds.c (_initialize_ser_socket): Add declaration.
13936 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13937 * serial.c (_initialize_serial): Add declaration.
13938 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13939 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13940 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13941 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13942 * skip.c (_initialize_step_skip): Add declaration.
13943 * sol-thread.c (_initialize_sol_thread): Add declaration.
13944 * solib-aix.c (_initialize_solib_aix): Add declaration.
13945 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13946 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13947 * solib-frv.c (_initialize_frv_solib): Add declaration.
13948 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13949 * solib-target.c (_initialize_solib_target): Add declaration.
13950 * solib.c (_initialize_solib): Add declaration.
13951 * source-cache.c (_initialize_source_cache): Add declaration.
13952 * source.c (_initialize_source): Add declaration.
13953 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13954 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13955 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13956 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13957 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13958 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13959 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13960 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13961 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13962 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13963 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13964 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13965 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13966 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13967 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13968 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13969 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13970 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13971 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13972 * stabsread.c (_initialize_stabsread): Add declaration.
13973 * stack.c (_initialize_stack): Add declaration.
13974 * stap-probe.c (_initialize_stap_probe): Add declaration.
13975 * std-regs.c (_initialize_frame_reg): Add declaration.
13976 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13977 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13978 * symfile.c (_initialize_symfile): Add declaration.
13979 * symmisc.c (_initialize_symmisc): Add declaration.
13980 * symtab.c (_initialize_symtab): Add declaration.
13981 * target.c (_initialize_target): Add declaration.
13982 * target-connection.c (_initialize_target_connection): Add
13983 declaration.
13984 * target-dcache.c (_initialize_target_dcache): Add declaration.
13985 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13986 * thread.c (_initialize_thread): Add declaration.
13987 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13988 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13989 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13990 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13991 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13992 * tracectf.c (_initialize_ctf): Add declaration.
13993 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13994 * tracefile.c (_initialize_tracefile): Add declaration.
13995 * tracepoint.c (_initialize_tracepoint): Add declaration.
13996 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13997 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13998 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13999 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14000 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14001 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14002 * tui/tui.c (_initialize_tui): Add declaration.
14003 * typeprint.c (_initialize_typeprint): Add declaration.
14004 * ui-style.c (_initialize_ui_style): Add declaration.
14005 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14006 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14007 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14008 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14009 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14010 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14011 * unittests/filtered_iterator-selftests.c
14012 (_initialize_filtered_iterator_selftests): Add declaration.
14013 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14014 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14015 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14016 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14017 * unittests/main-thread-selftests.c
14018 (_initialize_main_thread_selftests): Add declaration.
14019 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14020 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14021 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14022 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14023 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14024 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14025 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14026 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14027 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14028 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14029 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14030 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14031 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14032 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14033 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14034 declaration.
14035 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14036 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14037 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14038 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14039 * user-regs.c (_initialize_user_regs): Add declaration.
14040 * utils.c (_initialize_utils): Add declaration.
14041 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14042 * valops.c (_initialize_valops): Add declaration.
14043 * valprint.c (_initialize_valprint): Add declaration.
14044 * value.c (_initialize_values): Add declaration.
14045 * varobj.c (_initialize_varobj): Add declaration.
14046 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14047 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14048 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14049 * windows-nat.c (_initialize_windows_nat): Add declaration.
14050 (_initialize_check_for_gdb_ini): Add declaration.
14051 (_initialize_loadable): Add declaration.
14052 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14053 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14054 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14055 * xcoffread.c (_initialize_xcoffread): Add declaration.
14056 * xml-support.c (_initialize_xml_support): Add declaration.
14057 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14058 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14059 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14060 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14061
14062 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14063
14064 * regformats/regdat.sh: Generate declaration for init function.
14065
14066 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14067
14068 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14069 up.
14070 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14071 close_one_inferior>: New methods.
14072 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14073 pass down target to find_inferior_pid.
14074 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14075 Pass down target to find_inferior_ptid.
14076 (gdbsim_target::create_inferior): Pass down target to
14077 add_thread_silent.
14078 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14079 target down to find_inferior_ptid and switch_to_thread.
14080 (gdbsim_target::close): Update to call close_one_inferior.
14081 (struct resume_data): Remove.
14082 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14083 directly, rather than through a void pointer.
14084 (gdbsim_target::resume): Update to call resume_one_inferior.
14085
14086 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14087
14088 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14089
14090 2020-01-12 Pedro Alves <palves@redhat.com>
14091
14092 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14093 directly for the current inferior instead of
14094 discard_all_inferiors.
14095 (discard_all_inferiors): Delete.
14096
14097 2020-01-11 Tom Tromey <tom@tromey.com>
14098
14099 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14100 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14101 deprecated_safe_get_selected_frame.
14102
14103 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14104
14105 * inferior.c (print_inferior): Switch inferior before printing it.
14106
14107 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14108 Pedro Alves <palves@redhat.com>
14109
14110 * progspace-and-thread.c (switch_to_program_space_and_thread):
14111 Assert there's an inferior for PSPACE. Use
14112 switch_to_inferior_no_thread to switch the inferior too.
14113 * progspace.c (program_space::~program_space): Call
14114 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14115 (program_space::free_all_objfiles): Don't call clear_symtab_users
14116 here.
14117 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14118
14119 2020-01-10 Pedro Alves <palves@redhat.com>
14120
14121 * NEWS: Mention multi-target debugging, "info connections", and
14122 "add-inferior -no-connection".
14123
14124 2020-01-10 Pedro Alves <palves@redhat.com>
14125
14126 * infrun.c: Include "target-connection.h".
14127 (check_multi_target_resumption): New.
14128 (proceed): Call it.
14129 * target-connection.c (make_target_connection_string): Make
14130 extern.
14131 * target-connection.h (make_target_connection_string): Declare.
14132
14133 2020-01-10 Pedro Alves <palves@redhat.com>
14134
14135 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14136 * inferior.c (uiout_field_connection): New function.
14137 (print_inferior): Add new "connection-id" column.
14138 (add_inferior_command): Show connection number/string of added
14139 inferior.
14140 * process-stratum-target.h
14141 (process_stratum_target::connection_string): New virtual method.
14142 (process_stratum_target::connection_number): New field.
14143 * remote.c (remote_target::connection_string): New override.
14144 * target-connection.c: New file.
14145 * target-connection.h: New file.
14146 * target.c (decref_target): Remove process_stratum targets from
14147 the connection list.
14148 (target_stack::push): Add process_stratum targets to the
14149 connection list.
14150
14151 2020-01-10 Pedro Alves <palves@redhat.com>
14152
14153 Revert:
14154 2016-04-12 Pedro Alves <palves@redhat.com>
14155 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14156 Remove references to name.
14157 * serial.h (struct serial) <name>: Delete.
14158
14159 2020-01-10 Pedro Alves <palves@redhat.com>
14160
14161 * gdbarch-selftests.c (register_to_value_test): Remove "target
14162 already pushed" check.
14163
14164 2020-01-10 Pedro Alves <palves@redhat.com>
14165 John Baldwin <jhb@FreeBSD.org>
14166
14167 * aarch64-linux-nat.c
14168 (aarch64_linux_nat_target::thread_architecture): Adjust.
14169 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14170 (task_command_1): Likewise.
14171 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14172 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14173 (aix_thread_target::store_registers)
14174 (aix_thread_target::thread_alive): Adjust.
14175 * amd64-fbsd-tdep.c: Include "inferior.h".
14176 (amd64fbsd_get_thread_local_address): Pass down target.
14177 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14178 thread's gdbarch instead of target_gdbarch.
14179 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14180 get_last_target_status.
14181 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14182 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14183 inferiors.
14184 (update_inserted_breakpoint_locations): Skip if inferiors with no
14185 execution.
14186 (update_global_location_list): When handling moribund locations,
14187 find representative inferior for location's pspace, and use thread
14188 count of its process_stratum target.
14189 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14190 * bsd-uthread.c (bsd_uthread_target::wait): Use
14191 as_process_stratum_target and adjust thread_change_ptid and
14192 add_thread calls.
14193 (bsd_uthread_target::update_thread_list): Use
14194 as_process_stratum_target and adjust find_thread_ptid,
14195 thread_change_ptid and add_thread calls.
14196 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14197 find_thread_ptid call.
14198 * corelow.c (add_to_thread_list): Adjust add_thread call.
14199 (core_target_open): Adjust add_thread_silent and thread_count
14200 calls.
14201 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14202 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14203 * event-top.c (async_disconnect): Pop targets from all inferiors.
14204 * exec.c (add_target_sections): Push exec target on all inferiors
14205 sharing the program space.
14206 (remove_target_sections): Remove the exec target from all
14207 inferiors sharing the program space.
14208 (exec_on_vfork): New.
14209 * exec.h (exec_on_vfork): Declare.
14210 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14211 Pass it down.
14212 (fbsd_nat_target::update_thread_list): Adjust.
14213 (fbsd_nat_target::resume): Adjust.
14214 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14215 down.
14216 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14217 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14218 get_thread_arch_regcache call.
14219 * fork-child.c (gdb_startup_inferior): Pass target down to
14220 startup_inferior and set_executing.
14221 * gdbthread.h (struct process_stratum_target): Forward declare.
14222 (add_thread, add_thread_silent, add_thread_with_info)
14223 (in_thread_list): Add process_stratum_target parameter.
14224 (find_thread_ptid(inferior*, ptid_t)): New overload.
14225 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14226 parameter.
14227 (all_threads()): Delete overload.
14228 (all_threads, all_non_exited_threads): Add process_stratum_target
14229 parameter.
14230 (all_threads_safe): Use brace initialization.
14231 (thread_count): Add process_stratum_target parameter.
14232 (set_resumed, set_running, set_stop_requested, set_executing)
14233 (threads_are_executing, finish_thread_state): Add
14234 process_stratum_target parameter.
14235 (switch_to_thread): Use is_current_thread.
14236 * i386-fbsd-tdep.c: Include "inferior.h".
14237 (i386fbsd_get_thread_local_address): Pass down target.
14238 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14239 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14240 have_inferiors check.
14241 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14242 (inf_ptrace_target::attach): Adjust.
14243 * infcall.c (run_inferior_call): Adjust.
14244 * infcmd.c (run_command_1): Pass target to
14245 scoped_finish_thread_state.
14246 (proceed_thread_callback): Skip inferiors with no execution.
14247 (continue_command): Rename 'all_threads' local to avoid hiding
14248 'all_threads' function. Adjust get_last_target_status call.
14249 (prepare_one_step): Adjust set_running call.
14250 (signal_command): Use user_visible_resume_target. Compare thread
14251 pointers instead of inferior_ptid.
14252 (info_program_command): Adjust to pass down target.
14253 (attach_command): Mark target's 'thread_executing' flag.
14254 (stop_current_target_threads_ns): New, factored out from ...
14255 (interrupt_target_1): ... this. Switch inferior before making
14256 target calls.
14257 * inferior-iter.h
14258 (struct all_inferiors_iterator, struct all_inferiors_range)
14259 (struct all_inferiors_safe_range)
14260 (struct all_non_exited_inferiors_range): Filter on
14261 process_stratum_target too. Remove explicit.
14262 * inferior.c (inferior::inferior): Push dummy target on target
14263 stack.
14264 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14265 Add process_stratum_target parameter, and pass it down.
14266 (have_live_inferiors): Adjust.
14267 (switch_to_inferior_and_push_target): New.
14268 (add_inferior_command, clone_inferior_command): Handle
14269 "-no-connection" parameter. Use
14270 switch_to_inferior_and_push_target.
14271 (_initialize_inferior): Mention "-no-connection" option in
14272 the help of "add-inferior" and "clone-inferior" commands.
14273 * inferior.h: Include "process-stratum-target.h".
14274 (interrupt_target_1): Use bool.
14275 (struct inferior) <push_target, unpush_target, target_is_pushed,
14276 find_target_beneath, top_target, process_target, target_at,
14277 m_stack>: New.
14278 (discard_all_inferiors): Delete.
14279 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14280 (all_inferiors, all_non_exited_inferiors): Add
14281 process_stratum_target parameter.
14282 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14283 (target_last_proc_target): New global.
14284 (follow_fork_inferior): Push target on new inferior. Pass target
14285 to add_thread_silent. Call exec_on_vfork. Handle target's
14286 reference count.
14287 (follow_fork): Adjust get_last_target_status call. Also consider
14288 target.
14289 (follow_exec): Push target on new inferior.
14290 (struct execution_control_state) <target>: New field.
14291 (user_visible_resume_target): New.
14292 (do_target_resume): Call target_async.
14293 (resume_1): Set target's threads_executing flag. Consider resume
14294 target.
14295 (commit_resume_all_targets): New.
14296 (proceed): Also consider resume target. Skip threads of inferiors
14297 with no execution. Commit resumtion in all targets.
14298 (start_remote): Pass current inferior to wait_for_inferior.
14299 (infrun_thread_stop_requested): Consider target as well. Pass
14300 thread_info pointer to clear_inline_frame_state instead of ptid.
14301 (infrun_thread_thread_exit): Consider target as well.
14302 (random_pending_event_thread): New inferior parameter. Use it.
14303 (do_target_wait): Rename to ...
14304 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14305 down.
14306 (threads_are_resumed_pending_p, do_target_wait): New.
14307 (prepare_for_detach): Adjust calls.
14308 (wait_for_inferior): New inferior parameter. Handle it. Use
14309 do_target_wait_1 instead of do_target_wait.
14310 (fetch_inferior_event): Adjust. Switch to representative
14311 inferior. Pass target down.
14312 (set_last_target_status): Add process_stratum_target parameter.
14313 Save target in global.
14314 (get_last_target_status): Add process_stratum_target parameter and
14315 handle it.
14316 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14317 (context_switch): Check inferior_ptid == null_ptid before calling
14318 inferior_thread().
14319 (get_inferior_stop_soon): Pass down target.
14320 (wait_one): Rename to ...
14321 (poll_one_curr_target): ... this.
14322 (struct wait_one_event): New.
14323 (wait_one): New.
14324 (stop_all_threads): Adjust.
14325 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14326 event's target.
14327 (switch_back_to_stepped_thread): Also consider target.
14328 (print_stop_event): Update.
14329 (normal_stop): Update. Also consider the resume target.
14330 * infrun.h (wait_for_inferior): Remove declaration.
14331 (user_visible_resume_target): New declaration.
14332 (get_last_target_status, set_last_target_status): New
14333 process_stratum_target parameter.
14334 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14335 process_stratum_target parameter, and use it.
14336 (clear_inline_frame_state (thread_info*)): New.
14337 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14338 process_stratum_target parameter.
14339 (clear_inline_frame_state (thread_info*)): Declare.
14340 * linux-fork.c (delete_checkpoint_command): Pass target down to
14341 find_thread_ptid.
14342 (checkpoint_command): Adjust.
14343 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14344 instead of just tweaking inferior_ptid.
14345 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14346 (exit_lwp): Pass target down to find_thread_ptid.
14347 (attach_proc_task_lwp_callback): Pass target down to
14348 add_thread/set_running/set_executing.
14349 (linux_nat_target::attach): Pass target down to
14350 thread_change_ptid.
14351 (get_detach_signal): Pass target down to find_thread_ptid.
14352 Consider last target status's target.
14353 (linux_resume_one_lwp_throw, resume_lwp)
14354 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14355 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14356 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14357 (linux_nat_target::async_wait_fd): New.
14358 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14359 target down.
14360 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14361 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14362 * linux-thread-db.c (struct thread_db_info::process_target): New
14363 field.
14364 (add_thread_db_info): Save target.
14365 (get_thread_db_info): New process_stratum_target parameter. Also
14366 match target.
14367 (delete_thread_db_info): New process_stratum_target parameter.
14368 Also match target.
14369 (thread_from_lwp): Adjust to pass down target.
14370 (thread_db_notice_clone): Pass down target.
14371 (check_thread_db_callback): Pass down target.
14372 (try_thread_db_load_1): Always push the thread_db target.
14373 (try_thread_db_load, record_thread): Pass target down.
14374 (thread_db_target::detach): Pass target down. Always unpush the
14375 thread_db target.
14376 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14377 target down. Always unpush the thread_db target.
14378 (find_new_threads_callback, thread_db_find_new_threads_2)
14379 (thread_db_target::update_thread_list): Pass target down.
14380 (thread_db_target::pid_to_str): Pass current inferior down.
14381 (thread_db_target::get_thread_local_address): Pass target down.
14382 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14383 target down.
14384 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14385 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14386 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14387 (procfs_init_inferior): Rename to ...
14388 (procfs_target::procfs_init_inferior): ... this and adjust.
14389 (procfs_target::create_inferior, procfs_notice_thread)
14390 (procfs_do_thread_registers): Adjust.
14391 * ppc-fbsd-tdep.c: Include "inferior.h".
14392 (ppcfbsd_get_thread_local_address): Pass down target.
14393 * proc-service.c (ps_xfer_memory): Switch current inferior and
14394 program space as well.
14395 (get_ps_regcache): Pass target down.
14396 * process-stratum-target.c
14397 (process_stratum_target::thread_address_space)
14398 (process_stratum_target::thread_architecture): Pass target down.
14399 * process-stratum-target.h
14400 (process_stratum_target::threads_executing): New field.
14401 (as_process_stratum_target): New.
14402 * ravenscar-thread.c
14403 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14404 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14405 down.
14406 * record-btrace.c (record_btrace_target::info_record): Adjust.
14407 (record_btrace_target::record_method)
14408 (record_btrace_target::record_is_replaying)
14409 (record_btrace_target::fetch_registers)
14410 (get_thread_current_frame_id, record_btrace_target::resume)
14411 (record_btrace_target::wait, record_btrace_target::stop): Pass
14412 target down.
14413 * record-full.c (record_full_wait_1): Switch to event thread.
14414 Pass target down.
14415 * regcache.c (regcache::regcache)
14416 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14417 process_stratum_target parameter and handle it.
14418 (current_thread_target): New global.
14419 (get_thread_regcache): Add process_stratum_target parameter and
14420 handle it. Switch inferior before calling target method.
14421 (get_thread_regcache): Pass target down.
14422 (get_thread_regcache_for_ptid): Pass target down.
14423 (registers_changed_ptid): Add process_stratum_target parameter and
14424 handle it.
14425 (registers_changed_thread, registers_changed): Pass target down.
14426 (test_get_thread_arch_aspace_regcache): New.
14427 (current_regcache_test): Define a couple local test_target_ops
14428 instances and use them for testing.
14429 (readwrite_regcache): Pass process_stratum_target parameter.
14430 (cooked_read_test, cooked_write_test): Pass mock_target down.
14431 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14432 (get_thread_arch_aspace_regcache): Add process_stratum_target
14433 parameter.
14434 (regcache::target): New method.
14435 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14436 (regcache::registers_changed_ptid): Add process_stratum_target
14437 parameter.
14438 (regcache::m_target): New field.
14439 (registers_changed_ptid): Add process_stratum_target parameter.
14440 * remote.c (remote_state::supports_vCont_probed): New field.
14441 (remote_target::async_wait_fd): New method.
14442 (remote_unpush_and_throw): Add remote_target parameter.
14443 (get_current_remote_target): Adjust.
14444 (remote_target::remote_add_inferior): Push target.
14445 (remote_target::remote_add_thread)
14446 (remote_target::remote_notice_new_inferior)
14447 (get_remote_thread_info): Pass target down.
14448 (remote_target::update_thread_list): Skip threads of inferiors
14449 bound to other targets. (remote_target::close): Don't discard
14450 inferiors. (remote_target::add_current_inferior_and_thread)
14451 (remote_target::process_initial_stop_replies)
14452 (remote_target::start_remote)
14453 (remote_target::remote_serial_quit_handler): Pass down target.
14454 (remote_target::remote_unpush_target): New remote_target
14455 parameter. Unpush the target from all inferiors.
14456 (remote_target::remote_unpush_and_throw): New remote_target
14457 parameter. Pass it down.
14458 (remote_target::open_1): Check whether the current inferior has
14459 execution instead of checking whether any inferior is live. Pass
14460 target down.
14461 (remote_target::remote_detach_1): Pass down target. Use
14462 remote_unpush_target.
14463 (extended_remote_target::attach): Pass down target.
14464 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14465 (remote_target::append_resumption): Pass down target.
14466 (remote_target::append_pending_thread_resumptions)
14467 (remote_target::remote_resume_with_hc, remote_target::resume)
14468 (remote_target::commit_resume): Pass down target.
14469 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14470 (remote_target::interrupt_query)
14471 (remote_target::remove_new_fork_children)
14472 (remote_target::check_pending_events_prevent_wildcard_vcont)
14473 (remote_target::remote_parse_stop_reply)
14474 (remote_target::process_stop_reply): Pass down target.
14475 (first_remote_resumed_thread): New remote_target parameter. Pass
14476 it down.
14477 (remote_target::wait_as): Pass down target.
14478 (unpush_and_perror): New remote_target parameter. Pass it down.
14479 (remote_target::readchar, remote_target::remote_serial_write)
14480 (remote_target::getpkt_or_notif_sane_1)
14481 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14482 down target.
14483 (remote_target::mourn_inferior): Pass down target. Use
14484 remote_unpush_target.
14485 (remote_target::core_of_thread)
14486 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14487 (remote_target::pid_to_exec_file)
14488 (remote_target::thread_handle_to_thread_info): Pass down target.
14489 (remote_target::async_wait_fd): New.
14490 * riscv-fbsd-tdep.c: Include "inferior.h".
14491 (riscv_fbsd_get_thread_local_address): Pass down target.
14492 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14493 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14494 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14495 Adjust.
14496 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14497 * solib-svr4.c (enable_break): Pass down target.
14498 * spu-multiarch.c (parse_spufs_run): Pass down target.
14499 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14500 * target-delegates.c: Regenerate.
14501 * target.c (g_target_stack): Delete.
14502 (current_top_target): Return the current inferior's top target.
14503 (target_has_execution_1): Refer to the passed-in inferior's top
14504 target.
14505 (target_supports_terminal_ours): Check whether the initial
14506 inferior was already created.
14507 (decref_target): New.
14508 (target_stack::push): Incref/decref the target.
14509 (push_target, push_target, unpush_target): Adjust.
14510 (target_stack::unpush): Defref target.
14511 (target_is_pushed): Return bool. Adjust to refer to the current
14512 inferior's target stack.
14513 (dispose_inferior): Delete, and inline parts ...
14514 (target_preopen): ... here. Only dispose of the current inferior.
14515 (target_detach): Hold strong target reference while detaching.
14516 Pass target down.
14517 (target_thread_name): Add assertion.
14518 (target_resume): Pass down target.
14519 (target_ops::beneath, find_target_at): Adjust to refer to the
14520 current inferior's target stack.
14521 (get_dummy_target): New.
14522 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14523 has a thread running.
14524 (initialize_targets): Rename to ...
14525 (_initialize_target): ... this.
14526 * target.h: Include "gdbsupport/refcounted-object.h".
14527 (struct target_ops): Inherit refcounted_object.
14528 (target_ops::shortname, target_ops::longname): Make const.
14529 (target_ops::async_wait_fd): New method.
14530 (decref_target): Declare.
14531 (struct target_ops_ref_policy): New.
14532 (target_ops_ref): New typedef.
14533 (get_dummy_target): Declare function.
14534 (target_is_pushed): Return bool.
14535 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14536 (all_matching_threads_iterator::all_matching_threads_iterator):
14537 Handle filter target.
14538 * thread-iter.h (struct all_matching_threads_iterator, struct
14539 all_matching_threads_range, class all_non_exited_threads_range):
14540 Filter by target too. Remove explicit.
14541 * thread.c (threads_executing): Delete.
14542 (inferior_thread): Pass down current inferior.
14543 (clear_thread_inferior_resources): Pass down thread pointer
14544 instead of ptid_t.
14545 (add_thread_silent, add_thread_with_info, add_thread): Add
14546 process_stratum_target parameter. Use it for thread and inferior
14547 searches.
14548 (is_current_thread): New.
14549 (thread_info::deletable): Use it.
14550 (find_thread_ptid, thread_count, in_thread_list)
14551 (thread_change_ptid, set_resumed, set_running): New
14552 process_stratum_target parameter. Pass it down.
14553 (set_executing): New process_stratum_target parameter. Pass it
14554 down. Adjust reference to 'threads_executing'.
14555 (threads_are_executing): New process_stratum_target parameter.
14556 Adjust reference to 'threads_executing'.
14557 (set_stop_requested, finish_thread_state): New
14558 process_stratum_target parameter. Pass it down.
14559 (switch_to_thread): Also match inferior.
14560 (switch_to_thread): New process_stratum_target parameter. Pass it
14561 down.
14562 (update_threads_executing): Reimplement.
14563 * top.c (quit_force): Pop targets from all inferior.
14564 (gdb_init): Don't call initialize_targets.
14565 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14566 Declare.
14567 (windows_add_thread, windows_delete_thread): Adjust.
14568 (get_windows_debug_event): Rename to ...
14569 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14570 * tracefile-tfile.c (tfile_target_open): Pass down target.
14571 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14572 Forward declare.
14573 (switch_to_thread): Add process_stratum_target parameter.
14574 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14575 parameter. Use it.
14576 (mi_on_resume): Pass target down.
14577 * nat/fork-inferior.c (startup_inferior): Add
14578 process_stratum_target parameter. Pass it down.
14579 * nat/fork-inferior.h (startup_inferior): Add
14580 process_stratum_target parameter.
14581 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14582
14583 2020-01-10 Pedro Alves <palves@redhat.com>
14584
14585 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14586 directly. Instead find the first thread in the thread list and
14587 use switch_to_thread.
14588
14589 2020-01-10 Pedro Alves <palves@redhat.com>
14590
14591 * remote.c (remote_target::remote_add_inferior): Don't bind a
14592 process to the current inferior if the current inferior is already
14593 bound to a process.
14594
14595 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14596 Pedro Alves <palves@redhat.com>
14597
14598 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14599 If no process is specified, return null_ptid instead of
14600 inferior_ptid.
14601 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14602 TARGET_WAITKIND_SIGNALLED with no pid.
14603
14604 2020-01-10 Pedro Alves <palves@redhat.com>
14605
14606 * remote.c (first_remote_resumed_thread): New.
14607 (remote_target::wait_as): Use it as default event_ptid instead of
14608 inferior_ptid.
14609
14610 2020-01-10 Pedro Alves <palves@redhat.com>
14611
14612 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14613
14614 2020-01-10 Pedro Alves <palves@redhat.com>
14615
14616 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14617 not -1.
14618
14619 2020-01-10 Pedro Alves <palves@redhat.com>
14620
14621 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14622 ptid to get_last_target_status.
14623 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14624 ptid to get_last_target_status.
14625 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14626 get_last_target_status.
14627 (info_program_command): Don't pass a target_waitstatus to
14628 get_last_target_status.
14629 * infrun.c (init_wait_for_inferior): Use
14630 nullify_last_target_wait_ptid.
14631 (get_last_target_status): Handle nullptr arguments.
14632 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14633 (print_stop_event): Don't pass a ptid to get_last_target_status.
14634 (normal_stop): Don't pass a ptid to get_last_target_status.
14635 * infrun.h (get_last_target_status, set_last_target_status): Move
14636 comments here and update.
14637 (nullify_last_target_wait_ptid): Declare.
14638 * linux-fork.c (fork_load_infrun_state): Remove local extern
14639 declaration of nullify_last_target_wait_ptid.
14640 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14641 to get_last_target_status.
14642
14643 2020-01-10 Pedro Alves <palves@redhat.com>
14644
14645 * gdbthread.h (scoped_restore_current_thread)
14646 <dont_restore, restore, m_dont_restore>: Declare.
14647 * thread.c (thread_alive): Add assertion. Return bool.
14648 (switch_to_thread_if_alive): New.
14649 (prune_threads): Switch inferior/thread.
14650 (print_thread_info_1): Switch thread before calling target methods.
14651 (scoped_restore_current_thread::restore): New, factored out from
14652 ...
14653 (scoped_restore_current_thread::~scoped_restore_current_thread):
14654 ... this.
14655 (scoped_restore_current_thread::scoped_restore_current_thread):
14656 Add assertion.
14657 (thread_apply_all_command, thread_select): Use
14658 switch_to_thread_if_alive.
14659 * infrun.c (proceed, restart_threads, handle_signal_stop)
14660 (switch_back_to_stepped_thread): Switch current thread before
14661 calling target methods.
14662
14663 2020-01-10 Pedro Alves <palves@redhat.com>
14664
14665 * inferior.c (switch_to_inferior_no_thread): New function,
14666 factored out from ...
14667 (inferior_command): ... here.
14668 * inferior.h (switch_to_inferior_no_thread): Declare.
14669 * mi/mi-main.c (run_one_inferior): Use
14670 switch_to_inferior_no_thread.
14671
14672 2020-01-10 Pedro Alves <palves@redhat.com>
14673
14674 * infcmd.c (kill_command): Remove dead code.
14675
14676 2020-01-10 Pedro Alves <palves@redhat.com>
14677
14678 * remote.c (remote_target::mourn_inferior): No longer check
14679 whether the target is running.
14680
14681 2020-01-10 Pedro Alves <palves@redhat.com>
14682
14683 * corelow.c (core_target::has_execution): Change parameter type to
14684 inferior pointer.
14685 * inferior.c (number_of_live_inferiors): Use
14686 inferior::has_execution instead of target_has_execution_1.
14687 * inferior.h (inferior::has_execution): New.
14688 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14689 inferior::has_execution instead of target_has_execution_1.
14690 * process-stratum-target.c
14691 (process_stratum_target::has_execution): Change parameter type to
14692 inferior pointer. Check the inferior's PID instead of
14693 inferior_ptid.
14694 * process-stratum-target.h
14695 (process_stratum_target::has_execution): Change parameter type to
14696 inferior pointer.
14697 * record-full.c (record_full_core_target::has_execution): Change
14698 parameter type to inferior pointer.
14699 * target.c (target_has_execution_1): Change parameter type to
14700 inferior pointer.
14701 (target_has_execution_current): Adjust.
14702 * target.h (target_ops::has_execution): Change parameter type to
14703 inferior pointer.
14704 (target_has_execution_1): Change parameter type to inferior
14705 pointer. Change return type to bool.
14706 * tracefile.h (tracefile_target::has_execution): Change parameter
14707 type to inferior pointer.
14708
14709 2020-01-10 Pedro Alves <palves@redhat.com>
14710
14711 * exceptions.c (print_flush): Remove current_top_target() check.
14712
14713 2020-01-10 Pedro Alves <palves@redhat.com>
14714
14715 * remote.c (show_remote_exec_file): Show the current inferior's
14716 exec-file instead of the command variable's value.
14717
14718 2020-01-10 Pedro Alves <palves@redhat.com>
14719
14720 * record-full.c (record_full_resume_ptid): New global.
14721 (record_full_target::resume): Set it.
14722 (record_full_wait_1): Use record_full_resume_ptid instead of
14723 inferior_ptid.
14724
14725 2020-01-10 Pedro Alves <palves@redhat.com>
14726
14727 * gdbthread.h (scoped_restore_current_thread)
14728 <dont_restore, restore, m_dont_restore>: Declare.
14729 * thread.c (thread_alive): Add assertion. Return bool.
14730 (switch_to_thread_if_alive): New.
14731 (prune_threads): Switch inferior/thread.
14732 (print_thread_info_1): Switch thread before calling target methods.
14733 (scoped_restore_current_thread::restore): New, factored out from
14734 ...
14735 (scoped_restore_current_thread::~scoped_restore_current_thread):
14736 ... this.
14737 (scoped_restore_current_thread::scoped_restore_current_thread):
14738 Add assertion.
14739 (thread_apply_all_command, thread_select): Use
14740 switch_to_thread_if_alive.
14741
14742 2020-01-10 George Barrett <bob@bob131.so>
14743
14744 * stap-probe.c (stap_modify_semaphore): Don't check for null
14745 semaphores.
14746 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14747 for null semaphores.
14748
14749 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14750
14751 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14752 all source windows, and maintain horizontal scroll status while
14753 doing so.
14754
14755 2020-01-09 Tom Tromey <tom@tromey.com>
14756
14757 PR tui/18932:
14758 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14759 update_source_window, not print_source_lines.
14760
14761 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14762
14763 * tui/tui.c (tui_enable): Register tui hooks after calling
14764 tui_display_main.
14765
14766 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14767
14768 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14769
14770 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14771
14772 * thread.c (print_thread_info_1): Fix indentation.
14773
14774 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14775
14776 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14777 unique_xmalloc_ptr outside the if to always free the demangled name.
14778
14779 2020-01-08 Tom Tromey <tromey@adacore.com>
14780
14781 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14782 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14783 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14784 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14785 Remove.
14786 (section_offsets): New typedef.
14787 * symtab.c (fixup_section, get_msymbol_address): Update.
14788 * symmisc.c (dump_msymbols): Update.
14789 * symfile.h (relative_addr_info_to_section_offsets)
14790 (symfile_map_offsets_to_segments): Update.
14791 * symfile.c (build_section_addr_info_from_objfile)
14792 (init_objfile_sect_indices): Update.
14793 (struct place_section_arg): Change type of "offsets".
14794 (place_section): Update.
14795 (relative_addr_info_to_section_offsets): Change type of
14796 "section_offsets". Remove "num_sections" parameter.
14797 (default_symfile_offsets, syms_from_objfile_1)
14798 (set_objfile_default_section_offset): Update.
14799 (reread_symbols): No need to preserve section offsets by hand.
14800 (symfile_map_offsets_to_segments): Change type of "offsets".
14801 * stap-probe.c (relocate_address): Update.
14802 * stabsread.h (process_one_symbol): Update.
14803 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14804 (solib_target_relocate_section_addresses): Update.
14805 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14806 Update.
14807 * solib-frv.c (frv_relocate_main_executable): Update.
14808 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14809 * solib-aix.c (solib_aix_get_section_offsets): Change return
14810 type.
14811 (solib_aix_solib_create_inferior_hook): Update.
14812 * remote.c (remote_target::get_offsets): Update.
14813 * psymtab.c (find_pc_sect_psymtab): Update.
14814 * psympriv.h (struct partial_symbol) <address, text_low,
14815 text_high>: Update.
14816 * objfiles.h (obj_section_offset): Update.
14817 (struct objfile) <section_offsets>: Change type.
14818 <num_sections>: Remove.
14819 (objfile_relocate): Update.
14820 * objfiles.c (entry_point_address_query): Update
14821 (relocate_one_symbol): Change type of "section_offsets".
14822 (objfile_relocate1, objfile_relocate1): Change type of
14823 "new_offsets".
14824 (objfile_rebase1): Update.
14825 * mipsread.c (mipscoff_symfile_read): Update.
14826 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14827 parameter.
14828 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14829 (parse_external, psymtab_to_symtab_1): Update.
14830 * machoread.c (macho_symfile_offsets): Update.
14831 * ia64-tdep.c (ia64_find_unwind_table): Update.
14832 * hppa-tdep.c (read_unwind_info): Update.
14833 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14834 * dwarf2read.c (create_addrmap_from_index)
14835 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14836 (process_psymtab_comp_unit_reader, add_partial_symbol)
14837 (add_partial_subprogram, process_full_comp_unit)
14838 (read_file_scope, read_func_scope, read_lexical_block_scope)
14839 (read_call_site_scope, dwarf2_rnglists_process)
14840 (dwarf2_ranges_process, dwarf2_ranges_read)
14841 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14842 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14843 Update.
14844 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14845 Update.
14846 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14847 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14848 (process_one_symbol): Change type of "section_offsets".
14849 * ctfread.c (get_objfile_text_range): Update.
14850 * coffread.c (coff_symtab_read, enter_linenos)
14851 (process_coff_symbol): Update.
14852 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14853 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14854
14855 2020-01-08 Tom Tromey <tromey@adacore.com>
14856
14857 * dwarf2read.c (parse_macro_definition): Use std::string.
14858 (parse_macro_definition): Likewise.
14859
14860 2020-01-08 Tom Tromey <tromey@adacore.com>
14861
14862 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14863 (ATTR_ALLOC_CHUNK): Remove.
14864
14865 2020-01-08 Tom Tromey <tromey@adacore.com>
14866
14867 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14868
14869 2020-01-08 Tom Tromey <tromey@adacore.com>
14870
14871 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14872 (dwarf2_compute_name, open_dwo_file): Likewise.
14873 (process_enumeration_scope): Use std::vector.
14874 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14875 (partial_die_info::fixup, dwarf2_start_subfile)
14876 (guess_full_die_structure_name, dwarf2_name): Likewise.
14877 (determine_prefix): Update.
14878 (guess_full_die_structure_name): Make return type const.
14879 (partial_die_full_name): Return unique_xmalloc_ptr.
14880 (DW_FIELD_ALLOC_CHUNK): Remove.
14881
14882 2020-01-07 Tom Tromey <tromey@adacore.com>
14883
14884 PR build/24937:
14885 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14886
14887 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14888
14889 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14890
14891 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14892
14893 * stack.c (print_frame_info): Move disassemble_next_line code
14894 inside source_print block.
14895
14896 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14897
14898 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14899 gdb/signals.h, as we are now using native signal symbols.
14900
14901 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14902
14903 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14904 overflow by an early check of content vs threshold.
14905 * tui/tui-source.c (tui_source_window::line_is_displayed):
14906 Likewise.
14907
14908 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14909
14910 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14911
14912 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14913
14914 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14915 export table if no section contains it's RVA.
14916
14917 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14918
14919 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14920
14921 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14922
14923 * source.c (print_source_lines_base): Set last_line_listed.
14924
14925 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14926
14927 * tui/tui-disasm.c: Remove trailing spaces.
14928
14929 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14930 Pedro Alves <palves@redhat.com>
14931
14932 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14933 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14934 (windows_gdb_signal_to_target): New function, uses the above
14935 enumeration to convert GDB internal signal codes to equivalent
14936 Windows codes.
14937 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14938 * windows-nat.c: Include "gdb_wait.h".
14939 (get_windows_debug_event): Extract the fatal exception from the
14940 exit status and convert to the equivalent Posix signal number.
14941 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14942 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14943 * gdbsupport/gdb_wait.c: New file, implements
14944 windows_status_to_termsig.
14945 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14946 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14947
14948 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14949
14950 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14951 show_layout.
14952
14953 2020-01-05 Luis Machado <luis.machado@linaro.org>
14954
14955 * aarch64-linux-nat.c
14956 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14957 and bfd_mach_aarch64.
14958
14959 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14960
14961 * ui-file.c (stdio_file::can_emit_style_escape)
14962 (tee_file::can_emit_style_escape): Ensure style is used also on
14963 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14964 to gdb_stdout.
14965 * main.c (set_gdb_data_directory): Use file style to output the
14966 warning that the given pathname is not a directory.
14967 * top.c (show_history_filename, gdb_safe_append_history)
14968 (show_gdb_datadir): Use file style.
14969
14970 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14971
14972 * solib-target.c (struct lm_info_target):
14973 Change offsets to be a unique_xmalloc_ptr.
14974 (solib_target_relocate_section_addresses): Update.
14975
14976 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14977
14978 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14979
14980 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14981
14982 * MAINTAINERS (Write After Approval): Add myself.
14983
14984 2020-01-02 Luis Machado <luis.machado@linaro.org>
14985
14986 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14987 Cell BE architecture.
14988 * target.h (struct target_ops) <thread_architecture>: Likewise.
14989
14990 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14991
14992 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14993
14994 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14995
14996 * MAINTAINERS (Write After Approval): Add myself.
14997
14998 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14999
15000 * gdbarch.sh: Update copyright year range of generated files.
15001
15002 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15003
15004 Update copyright year range in all GDB files.
15005
15006 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15007
15008 * copyright.py: Convert to Python 3.
15009
15010 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15011
15012 * copyright.py: Adapt after move of gnulib directory from gdb
15013 directory to toplevel directory.
15014
15015 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15016
15017 * copyright.py (main): Exit if run from the wrong directory.
15018
15019 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15020
15021 * top.c (print_gdb_version): Change copyright year to 2020.
15022
15023 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15024
15025 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15026
15027 For older changes see ChangeLog-2019.
15028 \f
15029 Local Variables:
15030 mode: change-log
15031 left-margin: 8
15032 fill-column: 74
15033 version-control: never
15034 coding: utf-8
15035 End:
This page took 0.383796 seconds and 5 git commands to generate.