Simplify add_target_sections_of_objfile
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-12 Tom Tromey <tom@tromey.com>
2
3 * exec.c (add_target_sections_of_objfile): Simplify.
4
5 2020-10-12 Tom Tromey <tom@tromey.com>
6
7 * solib.c (solib_map_sections): Update.
8 * record-full.c (record_full_core_open_1): Update.
9 * exec.h (build_section_table): Return a target_section_table.
10 * exec.c (exec_file_attach): Update.
11 (build_section_table): Return a target_section_table.
12 * corelow.c (core_target::core_target): Update.
13 * bfd-target.c (target_bfd::target_bfd): Update.
14
15 2020-10-12 Tom Tromey <tom@tromey.com>
16
17 * target.c (target_section_by_addr, memory_xfer_partial_1):
18 Update.
19 * target-section.h (struct target_section_table): Use
20 std::vector.
21 * symfile.h (build_section_addr_info_from_section_table): Take a
22 target_section_table.
23 * symfile.c (build_section_addr_info_from_section_table): Take a
24 target_section_table.
25 * solist.h (struct so_list) <sections>: Change type.
26 <sections_end>: Remove.
27 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
28 (solib_contains_address_p): Update.
29 * solib-svr4.c (scan_dyntag): Update.
30 * solib-dsbt.c (scan_dyntag): Update.
31 * remote.c (remote_target::remote_xfer_live_readonly_partial):
32 Update.
33 * record-full.c (record_full_core_start, record_full_core_end):
34 Remove.
35 (record_full_core_sections): New global.
36 (record_full_core_open_1, record_full_core_target::xfer_partial):
37 Update.
38 * exec.h (build_section_table, section_table_xfer_memory_partial)
39 (add_target_sections): Take a target_section_table.
40 * exec.c (exec_file_attach, clear_section_table): Update.
41 (resize_section_table): Remove.
42 (build_section_table, add_target_sections): Take a
43 target_section_table.
44 (add_target_sections_of_objfile, remove_target_sections)
45 (exec_on_vfork): Update.
46 (section_table_available_memory): Take a target_section_table.
47 (section_table_read_available_memory): Update.
48 (section_table_xfer_memory_partial): Take a target_section_table.
49 (print_section_info, set_section_command)
50 (exec_set_section_address, exec_target::has_memory): Update.
51 * corelow.c (class core_target) <m_core_section_table,
52 m_core_file_mappings>: Remove braces.
53 <~core_target>: Remove.
54 (core_target::core_target): Update.
55 (core_target::~core_target): Remove.
56 (core_target::build_file_mappings)
57 (core_target::xfer_memory_via_mappings)
58 (core_target::xfer_partial, core_target::info_proc_mappings):
59 Update.
60 * bfd-target.c (target_bfd::xfer_partial): Update.
61 (target_bfd::target_bfd): Update.
62 (target_bfd::~target_bfd): Remove.
63
64 2020-10-12 Tom Tromey <tom@tromey.com>
65
66 * target.h (struct target_section, struct target_section_table):
67 Move to target-section.h.
68 * target-section.h: New file.
69
70 2020-10-12 Pedro Alves <pedro@palves.net>
71
72 PR exp/26602
73 * valops.c (struct struct_field_searcher): New.
74 (update_search_result): Rename to ...
75 (struct_field_searcher::update_result): ... this. Simplify
76 prototype. Record all found fields.
77 (do_search_struct_field): Rename to ...
78 (struct_field_searcher::search): ... this. Simplify prototype.
79 Maintain stack of visited baseclass path. Call update_result for
80 fields too. Keep searching fields in baseclasses instead of
81 stopping at the first found field.
82 (search_struct_field): Use struct_field_searcher. When looking
83 for fields, report ambiguous access attempts.
84
85 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
86
87 * frame.c (inside_main_func): Check full symbols as well as
88 minimal symbols.
89
90 2020-10-09 Joel Brobecker <brobecker@adacore.com>
91
92 * ada-lang.c (advance_wild_match): Rewrite the function's
93 description. Change the type of target0, t0 and t1 to char.
94
95 2020-10-09 Tom Tromey <tromey@adacore.com>
96
97 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
98
99 2020-10-09 Tom Tromey <tromey@adacore.com>
100
101 * ada-lang.h (ada_encode): Return std::string.
102 * ada-lang.c (ada_encode_1): Return std::string.
103 (ada_encode): Likewise.
104 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
105 Update.
106 * ada-exp.y (block_lookup, write_var_or_type): Update.
107
108 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
109
110 PR exp/26714
111 * printcmd.c (print_formatted): Handle void results as
112 unformatted prints.
113
114 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * arch/aarch32.c (aarch32_create_target_description): Release the
117 target_desc_up as late as possible.
118 * arch/aarch64.c (aarch64_create_target_description): Likewise.
119 * arch/amd64.c (amd64_create_target_description): Likewise.
120 * arch/arc.c (arc_create_target_description): Return a
121 target_desc_up, don't release it.
122 * arch/arc.h (arc_create_target_description): Update declaration.
123 (arc_lookup_target_description): Move target_desc_up into the
124 cache, and return a borrowed pointer.
125 * arch/arm.c (arm_create_target_description): Release the
126 target_desc_up as late as possible.
127 * arch/i386.c (i386_create_target_description): Likewise.
128 * arch/riscv.h (riscv_create_target_description): Update
129 declaration to match definition.
130 * arch/tic6x.c (tic6x_create_target_description): Release the
131 target_desc_up as late as possible.
132
133 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
136 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
137
138 2020-10-09 Jan Vrany <jan.vrany@labware.com>
139
140 * source.c (directory_command): Notify observers that "directories"
141 parameter has changed.
142
143 2020-10-08 Tom Tromey <tom@tromey.com>
144
145 * cli/cli-cmds.c (print_disassembly): Style function name and
146 addresses. Add _() wrappers.
147
148 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
149
150 * NEWS: Mention ARC support in GDBserver.
151
152 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * arch/aarch32.c (aarch32_create_target_description): Release
155 unique_ptr returned from allocate_target_description.
156 * arch/aarch64.c (aarch64_create_target_description): Likewise.
157 * arch/amd64.c (amd64_create_target_description): Likewise.
158 * arch/arc.c (arc_create_target_description): Likewise.
159 * arch/arm.c (arm_create_target_description): Likewise.
160 * arch/i386.c (i386_create_target_description): Likewise.
161 * arch/riscv.c (riscv_create_target_description): Update return
162 type. Handle allocate_target_description returning a unique_ptr.
163 (riscv_lookup_target_description): Update to handle unique_ptr.
164 * arch/tic6x.c (tic6x_create_target_description): Release
165 unique_ptr returned from allocate_target_description.
166 * features/microblaze-with-stack-protect.c: Regenerate.
167 * features/microblaze.c: Regenerate.
168 * features/mips-dsp-linux.c: Regenerate.
169 * features/mips-linux.c: Regenerate.
170 * features/mips64-dsp-linux.c: Regenerate.
171 * features/mips64-linux.c: Regenerate.
172 * features/nds32.c: Regenerate.
173 * features/nios2.c: Regenerate.
174 * features/or1k.c: Regenerate.
175 * features/rs6000/powerpc-32.c: Regenerate.
176 * features/rs6000/powerpc-32l.c: Regenerate.
177 * features/rs6000/powerpc-403.c: Regenerate.
178 * features/rs6000/powerpc-403gc.c: Regenerate.
179 * features/rs6000/powerpc-405.c: Regenerate.
180 * features/rs6000/powerpc-505.c: Regenerate.
181 * features/rs6000/powerpc-601.c: Regenerate.
182 * features/rs6000/powerpc-602.c: Regenerate.
183 * features/rs6000/powerpc-603.c: Regenerate.
184 * features/rs6000/powerpc-604.c: Regenerate.
185 * features/rs6000/powerpc-64.c: Regenerate.
186 * features/rs6000/powerpc-64l.c: Regenerate.
187 * features/rs6000/powerpc-7400.c: Regenerate.
188 * features/rs6000/powerpc-750.c: Regenerate.
189 * features/rs6000/powerpc-860.c: Regenerate.
190 * features/rs6000/powerpc-altivec32.c: Regenerate.
191 * features/rs6000/powerpc-altivec32l.c: Regenerate.
192 * features/rs6000/powerpc-altivec64.c: Regenerate.
193 * features/rs6000/powerpc-altivec64l.c: Regenerate.
194 * features/rs6000/powerpc-e500.c: Regenerate.
195 * features/rs6000/powerpc-e500l.c: Regenerate.
196 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
197 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
198 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
199 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
200 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
201 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
202 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
203 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
204 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
205 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
206 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
207 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
208 * features/rs6000/powerpc-vsx32.c: Regenerate.
209 * features/rs6000/powerpc-vsx32l.c: Regenerate.
210 * features/rs6000/powerpc-vsx64.c: Regenerate.
211 * features/rs6000/powerpc-vsx64l.c: Regenerate.
212 * features/rs6000/rs6000.c: Regenerate.
213 * features/rx.c: Regenerate.
214 * features/s390-gs-linux64.c: Regenerate.
215 * features/s390-linux32.c: Regenerate.
216 * features/s390-linux32v1.c: Regenerate.
217 * features/s390-linux32v2.c: Regenerate.
218 * features/s390-linux64.c: Regenerate.
219 * features/s390-linux64v1.c: Regenerate.
220 * features/s390-linux64v2.c: Regenerate.
221 * features/s390-te-linux64.c: Regenerate.
222 * features/s390-tevx-linux64.c: Regenerate.
223 * features/s390-vx-linux64.c: Regenerate.
224 * features/s390x-gs-linux64.c: Regenerate.
225 * features/s390x-linux64.c: Regenerate.
226 * features/s390x-linux64v1.c: Regenerate.
227 * features/s390x-linux64v2.c: Regenerate.
228 * features/s390x-te-linux64.c: Regenerate.
229 * features/s390x-tevx-linux64.c: Regenerate.
230 * features/s390x-vx-linux64.c: Regenerate.
231 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
232 from allocate_target_description.
233 * target-descriptions.c (allocate_target_description): Update
234 return type.
235 (print_c_tdesc::visit_pre): Release unique_ptr returned from
236 allocate_target_description.
237
238 2020-10-07 Tom Tromey <tromey@adacore.com>
239
240 * unittests/search-memory-selftests.c: New file.
241 * Makefile.in (SELFTESTS_SRCS): Add
242 unittests/search-memory-selftests.c.
243
244 2020-10-07 Tom Tromey <tromey@adacore.com>
245
246 PR gdb/16930:
247 * findcmd.c (_initialize_mem_search): Mention that the range is
248 inclusive.
249
250 2020-10-07 Tom Tromey <tromey@adacore.com>
251
252 * target.h (simple_search_memory): Don't declare.
253 * target.c (simple_search_memory): Move to gdbsupport.
254 (default_search_memory): Update.
255 * remote.c (remote_target::search_memory): Update.
256
257 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
258
259 * Makefile.in (COMPILE): Add CXXFLAGS.
260 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
261 (check-headers): Add CXXFLAGS.
262
263 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
264
265 * arc-linux-tdep.h: New file.
266 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
267 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
268 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
269 arc_linux_gregset, arc_linux_v2_regset,
270 arc_linux_iterate_over_regset_sections,
271 arc_linux_core_read_description): Implement.
272 (arc_linux_init_osabi): Set iterate_over_regset_sections.
273 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
274 (arc_gdbarch_features_create): Add.
275 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
276
277 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
278
279 * arch/arc.h: Rename "arc_gdbarch_features" to
280 "arc_arch_features".
281 * arc-tdep.h: Likewise.
282 * arc-tdep.c: Likewise.
283
284 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
285
286 * infcmd.c (attach_command): Remove the redundant call to
287 `clear_proceed_status`.
288
289 2020-10-07 Kamil Rytarowski <n54@gmx.com>
290
291 * nat/netbsd-nat.c (write_memory, read_memory): Update.
292
293 2020-10-07 Kamil Rytarowski <n54@gmx.com>
294
295 * nat/netbsd-nat.c (write_memory, read_memory): Add.
296 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
297 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
298
299 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
300
301 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
302 (_initialize_break_catch_sig): Don't allocate array.
303
304 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
305
306 * symtab.c (find_pc_line): Return unmapped addresses when the
307 requested address is also unmapped.
308
309 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
310
311 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
312 tui/tui-out.h.
313
314 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
315
316 * amd64-windows-tdep.c (amd64_windows_return_value): Use
317 type::is_vector instead of TYPE_VECTOR.
318
319 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * auto-load.c (auto_load_objfile_script_1): Don't use
322 debugfile_holder as temporary variable when stripping drive
323 letter.
324
325 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
326
327 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
328 Add TYPE_CODE_COMPLEX.
329 (amd64_windows_return_value): Fix types returned via XMM0.
330
331 2020-10-05 Alan Hayward <alan.hayward@arm.com>
332
333 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
334 AArch64/ARM maintainers.
335
336 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * NEWS: Mention set/show debug event-loop.
339
340 2020-10-02 Tom Tromey <tromey@adacore.com>
341
342 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
343 REG_EXTENDED.
344
345 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
346
347 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
348 * procfs.c (procfs_inferior_created): Remove.
349 (_initialize_procfs): Don't register procfs_inferior_created.
350
351 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * async-event.c (invoke_async_signal_handlers): Add debug
354 print.
355 (check_async_event_handlers): Likewise.
356 * event-top.c (show_debug_event_loop): New function.
357 (_initialize_event_top): Register "set debug event-loop"
358 setting.
359
360 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
363 * debug.h: Remove.
364 * infrun.c: Include gdbsupport/common-debug.h.
365 * linux-nat.c: Likewise.
366
367 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * async-event.h (create_async_signal_handler): Add name
370 parameter.
371 (create_async_event_handler): Likewise.
372 * async-event.c (struct async_signal_handler) <name>: New field.
373 (struct async_event_handler) <name>: New field.
374 (create_async_signal_handler): Assign name.
375 (create_async_event_handler): Assign name.
376 * event-top.c (async_init_signals): Pass name when creating
377 handler.
378 * infrun.c (_initialize_infrun): Likewise.
379 * record-btrace.c (record_btrace_push_target): Likewise.
380 * record-full.c (record_full_open): Likewise.
381 * remote-notif.c (remote_notif_state_allocate): Likewise.
382 * remote.c (remote_target::open_1): Likewise.
383 * tui/tui-win.c (tui_initialize_win): Likewise.
384
385 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
386
387 * async-event.c (initialize_async_signal_handlers): Pass name to
388 add_file_handler
389 * event-top.c (ui_register_input_event_handler): Likewise.
390 * linux-nat.c (linux_nat_target::async): Likewise.
391 * run-on-main-thread.c (_initialize_run_on_main_thread):
392 Likewise
393 * ser-base.c (reschedule): Likewise.
394 (ser_base_async): Likewise.
395 * tui/tui-io.c: Likewise.
396 * top.h (struct ui) <num>: New field.
397 * top.c (highest_ui_num): New variable.
398 (ui::ui): Initialize num.
399
400 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * observable.h <inferior_created>: Remove parameters. Update all
403 listeners.
404 * inferior.h (post_create_inferior): Remove target parameter.
405 Update all callers.
406
407 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
408
409 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
410 and DW_MACRO_undef_strx.
411 (dwarf_decode_macros): Likewise
412 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
413 which is the value of DW_AT_str_offsets_base.
414 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
415 str_offsets_base.
416
417 2020-10-01 Kamil Rytarowski <n54@gmx.com>
418
419 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
420
421 2020-10-01 Kamil Rytarowski <n54@gmx.com>
422
423 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
424 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
425
426 2020-10-01 Kamil Rytarowski <n54@gmx.com>
427
428 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
429
430 2020-09-30 Tom de Vries <tdevries@suse.de>
431
432 PR symtab/26683
433 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
434
435 2020-09-30 Tom Tromey <tromey@adacore.com>
436
437 * dwarf2/read.c (handle_variant): Use constant_value.
438
439 2020-09-29 Tom Tromey <tom@tromey.com>
440
441 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
442 (read_file_scope, dwarf2_get_pc_bounds)
443 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
444 (read_structure_type, handle_struct_member_die)
445 (read_enumeration_type, read_array_type, read_set_type)
446 (read_tag_pointer_type, read_tag_reference_type)
447 (read_subroutine_type, read_base_type, read_subrange_type)
448 (read_full_die_1, partial_die_info::read)
449 (partial_die_info::read, by, new_symbol)
450 (dwarf2_const_value_data, dwarf2_const_value_attr)
451 (dump_die_shallow, dwarf2_fetch_constant_bytes)
452 (prepare_one_comp_unit): Update.
453 * dwarf2/attribute.h (DW_UNSND): Remove.
454
455 2020-09-29 Tom Tromey <tom@tromey.com>
456
457 * dwarf2/read.c (read_func_scope, prototyped_function_p)
458 (read_subroutine_type, partial_die_info::read)
459 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
460 (dwarf2_add_member_fn): Update.
461 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
462 * dwarf2/attribute.c (attribute::as_boolean): New method.
463
464 2020-09-29 Tom Tromey <tom@tromey.com>
465
466 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
467 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
468 method.
469 * dwarf2/attribute.c (attribute::as_virtuality): New method.
470
471 2020-09-29 Tom Tromey <tom@tromey.com>
472
473 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
474 the attribute's form.
475
476 2020-09-29 Tom Tromey <tom@tromey.com>
477
478 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
479 (dwarf2_add_member_fn): Update.
480 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
481 * dwarf2/attribute.c (attribute::defaulted): New method, from
482 is_valid_DW_AT_defaulted.
483
484 2020-09-29 Tom Tromey <tom@tromey.com>
485
486 * dwarf2/read.c (dw2_get_file_names_reader)
487 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
488 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
489 (dwarf2_symbol_mark_computed): Use as_unsigned.
490 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
491 method.
492 <form_is_section_offset>: Update comment.
493
494 2020-09-29 Tom Tromey <tom@tromey.com>
495
496 * dwarf2/read.c (dwarf2_access_attribute): Rename from
497 dwarf2_default_access_attribute. Look up attribute.
498 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
499 Update.
500
501 2020-09-29 Tom Tromey <tom@tromey.com>
502
503 * dwarf2/read.c (skip_one_die): Update.
504 (read_full_die_1): Change how reprocessing is done.
505 (partial_die_info::read): Update.
506 (read_attribute_value): Remove need_reprocess parameter.
507 (read_attribute): Likewise.
508 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
509 New method.
510
511 2020-09-29 Tom Tromey <tom@tromey.com>
512
513 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
514 (dwarf2_const_value_attr, dump_die_shallow)
515 (dwarf2_fetch_constant_bytes): Update.
516 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
517 comment.
518 <set_address>: New method.
519 (DW_ADDR): Remove.
520 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
521 (attribute::as_string, attribute::as_address): Add assert.
522
523 2020-09-29 Tom Tromey <tom@tromey.com>
524
525 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
526 (read_attribute_reprocess, read_attribute_value): Update.
527 (read_attribute): Clear requires_reprocessing.
528 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
529 form_requires_reprocessing>: New methods.
530 <string_init>: Clear requires_reprocessing.
531 <set_unsigned_reprocess>: New method.
532 <name>: Shrink by one bit.
533 <requires_reprocessing>: New member.
534 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
535 method.
536
537 2020-09-29 Tom Tromey <tom@tromey.com>
538
539 * dwarf2/read.c (read_attribute_value): Update.
540 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
541 set_unsigned>: New methods.
542 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
543
544 2020-09-29 Tom Tromey <tom@tromey.com>
545
546 * dwarf2/read.c (get_alignment, read_array_order)
547 (read_attribute_value, dwarf2_const_value_attr)
548 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
549 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
550 New methods.
551 (DW_SND): Remove.
552
553 2020-09-29 Tom Tromey <tom@tromey.com>
554
555 * dwarf2/read.c (read_attribute_value, lookup_die_type)
556 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
557 Update.
558 * dwarf2/attribute.h (struct attribute) <as_signature,
559 set_signature>: New methods.
560 (DW_SIGNATURE): Remove.
561
562 2020-09-29 Tom Tromey <tom@tromey.com>
563
564 * dwarf2/read.c (read_call_site_scope)
565 (handle_data_member_location, dwarf2_add_member_fn)
566 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
567 (partial_die_info::read, read_attribute_value)
568 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
569 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
570 (dwarf2_symbol_mark_computed): Update.
571 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
572 methods.
573 (DW_BLOCK): Remove.
574 * dwarf2/attribute.c (attribute::form_is_block): Add
575 DW_FORM_data16.
576
577 2020-09-29 Tom Tromey <tom@tromey.com>
578
579 * dwarf2/read.c (read_cutu_die_from_dwo)
580 (read_attribute_reprocess, read_attribute_value, read_attribute)
581 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
582 (dwarf2_fetch_constant_bytes): Update.
583 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
584 <set_string_noncanonical, set_string_canonical>: New methods.
585 <string_is_canonical>: Update comment.
586 <canonical_string_p>: Add assert.
587 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
588 * dwarf2/attribute.c (attribute::form_is_string): New method.
589 (attribute::string): Use it.
590
591 2020-09-29 Tom Tromey <tom@tromey.com>
592
593 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
594 (dump_die_shallow): Use canonical_string_p.
595 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
596 method.
597
598 2020-09-29 Tom Tromey <tom@tromey.com>
599
600 * dwarf2/read.c (partial_die_info::read)
601 (dwarf2_const_value_attr, anonymous_struct_prefix, )
602 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
603 attribute::as_string.
604
605 2020-09-29 Tom Tromey <tom@tromey.com>
606
607 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
608 DW_ADDR.
609 (attribute::string): Don't use DW_STRING.
610 (attribute::get_ref_die_offset): Don't use DW_UNSND.
611 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
612
613 2020-09-29 Tom Tromey <tom@tromey.com>
614
615 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
616 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
617 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
618 * dwarf2/attribute.h (struct attribute): Rename methods.
619 * dwarf2/attribute.c (attribute::as_address): Rename from
620 value_as_address.
621 (attribute::as_string): Rename from value_as_string.
622
623 2020-09-29 Tom Tromey <tom@tromey.com>
624
625 * dwarf2/read.c (partial_die_info::read) <case
626 DW_AT_linkage_name>: Use value_as_string.
627 (dwarf2_string_attr): Use value_as_string.
628 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
629 method.
630 * dwarf2/attribute.c (attribute::value_as_string): New method.
631
632 2020-09-29 Pedro Alves <pedro@palves.net>
633
634 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
635 defined before using '#pragma GCC diagnostic' instead of checking
636 __clang__.
637
638 2020-09-28 Tom Tromey <tom@tromey.com>
639
640 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
641 (handle_signal_stop): Update.
642 * procfs.c (procfs_target::insert_watchpoint): Update.
643 * target.h (target_have_steppable_watchpoint): Now a function.
644
645 2020-09-28 Tom Tromey <tom@tromey.com>
646
647 * infrun.c (set_schedlock_func): Update.
648 * target.h (target_can_lock_scheduler): Now a function.
649
650 2020-09-28 Tom Tromey <tom@tromey.com>
651
652 * inferior.h (class inferior) <has_execution>: Update.
653 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
654 * valops.c (find_function_in_inferior)
655 (value_allocate_space_in_inferior): Update.
656 * top.c (kill_or_detach): Update.
657 * target.c (target_preopen, set_target_permissions): Update.
658 (target_has_execution_current): Remove.
659 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
660 Update.
661 * solib.c (update_solib_list, reload_shared_libraries): Update.
662 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
663 * solib-dsbt.c (enable_break): Update.
664 * score-tdep.c (score7_fetch_inst): Update.
665 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
666 Update.
667 * remote.c (remote_target::start_remote)
668 (remote_target::remote_check_symbols, remote_target::open_1)
669 (remote_target::remote_detach_1, remote_target::verify_memory)
670 (remote_target::xfer_partial, remote_target::read_description)
671 (remote_target::get_min_fast_tracepoint_insn_len): Update.
672 * record-full.c (record_full_open_1): Update.
673 * record-btrace.c (record_btrace_target_open): Update.
674 * objc-lang.c (lookup_objc_class, lookup_child_selector)
675 (value_nsstring): Update.
676 * linux-thread-db.c (add_thread_db_info)
677 (thread_db_find_new_threads_silently, check_thread_db_callback)
678 (try_thread_db_load_1, record_thread): Update.
679 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
680 Update.
681 * linux-fork.c (checkpoint_command): Update.
682 * infrun.c (set_non_stop, set_observer_mode)
683 (check_multi_target_resumption, for_each_just_stopped_thread)
684 (maybe_remove_breakpoints, normal_stop)
685 (class infcall_suspend_state): Update.
686 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
687 (info_program_command, attach_command): Update.
688 * infcall.c (call_function_by_hand_dummy): Update.
689 * inf-loop.c (inferior_event_handler): Update.
690 * gcore.c (gcore_command, derive_heap_segment): Update.
691 * exec.c (exec_file_command): Update.
692 * eval.c (evaluate_subexp): Update.
693 * compile/compile.c (compile_to_object): Update.
694 * cli/cli-dump.c (restore_command): Update.
695 * breakpoint.c (update_watchpoint)
696 (update_inserted_breakpoint_locations)
697 (insert_breakpoint_locations, get_bpstat_thread): Update.
698 * target.h (target_has_execution): Remove macro.
699 (target_has_execution_current): Don't declare.
700 (target_has_execution): Rename from target_has_execution_1. Add
701 argument default.
702
703 2020-09-28 Tom Tromey <tom@tromey.com>
704
705 * mi/mi-main.c (exec_reverse_continue)
706 (mi_cmd_list_target_features): Update.
707 * infrun.c (set_exec_direction_func): Update.
708 * target.c (default_execution_direction): Update.
709 * reverse.c (exec_reverse_once): Update.
710 * target.h (target_can_execute_reverse): Now a function.
711
712 2020-09-28 Tom Tromey <tom@tromey.com>
713
714 * tui/tui-regs.c (tui_get_register)
715 (tui_data_window::show_registers): Update.
716 * thread.c (scoped_restore_current_thread::restore)
717 (scoped_restore_current_thread::scoped_restore_current_thread):
718 Update.
719 * regcache-dump.c (regcache_print): Update.
720 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
721 Update.
722 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
723 * mep-tdep.c (current_me_module, current_options): Update.
724 * linux-thread-db.c (thread_db_load): Update.
725 * infcmd.c (registers_info, info_vector_command)
726 (info_float_command): Update.
727 * ia64-tdep.c (ia64_frame_prev_register)
728 (ia64_sigtramp_frame_prev_register): Update.
729 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
730 * gcore.c (derive_stack_segment): Update.
731 * frame.c (get_current_frame, has_stack_frames): Update.
732 * findvar.c (language_defn::read_var_value): Update.
733 * arm-tdep.c (arm_pc_is_thumb): Update.
734 * target.c (target_has_registers): Rename from
735 target_has_registers_1.
736 * target.h (target_has_registers): Remove macro.
737 (target_has_registers): Rename from target_has_registers_1.
738
739 2020-09-28 Tom Tromey <tom@tromey.com>
740
741 * windows-tdep.c (tlb_make_value): Update.
742 * tui/tui-regs.c (tui_data_window::show_registers): Update.
743 * thread.c (scoped_restore_current_thread::restore)
744 (scoped_restore_current_thread::scoped_restore_current_thread)
745 (thread_command): Update.
746 * stack.c (backtrace_command_1, frame_apply_level_command)
747 (frame_apply_all_command, frame_apply_command): Update.
748 * infrun.c (siginfo_make_value, restore_infcall_control_state):
749 Update.
750 * gcore.c (derive_stack_segment): Update.
751 * frame.c (get_current_frame, has_stack_frames): Update.
752 * auxv.c (info_auxv_command): Update.
753 * ada-tasks.c (ada_build_task_list): Update.
754 * target.c (target_has_stack): Rename from target_has_stack_1.
755 * target.h (target_has_stack): Remove macro.
756 (target_has_stack): Rename from target_has_stack_1.
757
758 2020-09-28 Tom Tromey <tom@tromey.com>
759
760 * target.c (target_has_memory): Rename from target_has_memory_1.
761 * tui/tui-regs.c (tui_data_window::show_registers): Update.
762 * thread.c (scoped_restore_current_thread::restore)
763 (scoped_restore_current_thread::scoped_restore_current_thread):
764 Update.
765 * frame.c (get_current_frame, has_stack_frames): Update.
766 * target.h (target_has_memory): Remove macro.
767 (target_has_memory): Rename from target_has_memory_1.
768
769 2020-09-28 Tom Tromey <tom@tromey.com>
770
771 * target.c (target_has_all_memory_1): Remove.
772 * target.h (target_has_all_memory): Remove define.
773 (target_has_all_memory_1): Don't declare.
774
775 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * ser-base.c: Adjust comments formatting.
778
779 2020-09-27 Tom Tromey <tom@tromey.com>
780
781 PR tui/25342:
782 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
783
784 2020-09-27 Tom Tromey <tom@tromey.com>
785
786 PR tui/25342:
787 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
788
789 2020-09-27 Tom Tromey <tom@tromey.com>
790
791 * unittests/tui-selftests.c: Update.
792 * tui/tui-winsource.h (struct tui_source_window_base)
793 <extra_margin, show_line_number, refresh_pad>: New methods.
794 <m_max_length, m_pad>: New members.
795 (tui_copy_source_line): Update.
796 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
797 first_col, line_width, ndigits parameters. Add length.
798 (tui_source_window_base::show_source_line): Write to pad. Line
799 number now 0-based.
800 (tui_source_window_base::refresh_pad): New method.
801 (tui_source_window_base::show_source_content): Write to pad. Call
802 refresh_pad.
803 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
804 not refill.
805 (tui_source_window_base::update_exec_info): Call
806 show_line_number.
807 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
808 method.
809 <m_digits>: New member.
810 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
811 and m_max_length.
812 (tui_source_window::show_line_number): New method.
813 * tui/tui-io.h (tui_puts): Fix comment.
814 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
815 m_max_length.
816
817 2020-09-27 Tom Tromey <tom@tromey.com>
818
819 * tui/tui-winsource.c
820 (tui_source_window_base::set_is_exec_point_at): Don't call
821 show_source_line.
822
823 2020-09-27 Tom Tromey <tom@tromey.com>
824
825 * python/py-tui.c (class tui_py_window) <refresh_window>: New
826 method.
827 <erase>: Update.
828 <cursor_x, cursor_y>: Remove.
829 <m_inner_window>: New member.
830 (tui_py_window::rerender): Create inner window.
831 (tui_py_window::output): Write to inner window.
832
833 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
834
835 PR python/26586
836 * cli/cli-script.c (execute_control_commands): don't set
837 instream to nullptr here as this breaks the from_tty argument
838 to gdb.execute in Python.
839 (execute_user_command): set instream to nullptr here instead.
840
841 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
842
843 * infrun.h (infrun_debug_printf): Fix formatting.
844 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
845
846 2020-09-25 Saagar Jha <saagar@saagarjha.com>
847
848 * compile/compile-object-load.h (struct munmap_list): Add
849 explicitly-defined move constructor.
850
851 2020-09-24 Tom Tromey <tromey@adacore.com>
852
853 PR tui/26638:
854 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
855 method.
856 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
857 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
858 (tui_prev_win): Rewrite.
859
860 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
861
862 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
863 in WOW64 processes as SIGINT.
864 * nat/windows-nat.h: Make wow64_process a shared variable.
865 * windows-nat.c: Remove static wow64_process variable.
866
867 2020-09-23 Tom Tromey <tom@tromey.com>
868
869 PR symtab/25470:
870 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
871 offset and bit size.
872 * printcmd.c (print_scalar_formatted): Handle zero-length
873 integer.
874 (print_scalar_formatted): Use bit_size_differs_p.
875 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
876 constant.
877 (union type_specific): <int_stuff>: New member.
878 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
879 methods.
880 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
881 TYPE_SPECIFIC_FIELD.
882 (recursive_dump_type, copy_type_recursive): Update.
883 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
884 DW_AT_data_bit_offset.
885
886 2020-09-23 Tom Tromey <tom@tromey.com>
887
888 * utils.h (class gdb_argv): Add move operators.
889 <append>: New methods.
890 * compile/compile.c (build_argc_argv): Remove.
891 (compile_args_argc): Remove.
892 (compile_args_argv): Change type.
893 (set_compile_args): Simplify.
894 (append_args): Remove.
895 (filter_args): Remove argcp parameter.
896 (get_args): Return gdb_argv. Simplify.
897 (compile_to_object): Update.
898
899 2020-09-23 Tom Tromey <tom@tromey.com>
900
901 * compile/compile-object-run.c (do_module_cleanup)
902 <~do_module_cleanup> :Remove.
903 (do_module_cleanup): Update.
904 * compile/compile-object-load.h (struct munmap_list): Add move
905 assignment operator.
906 <source_file>: Now a std::string.
907 <munmap_list>: Rename. No longer a pointer.
908 * compile/compile-object-load.c (struct setup_sections_data): Add
909 constructor.
910 <setup_one_section>: Declare.
911 <munmap_list>: Move earlier.
912 <m_bfd>: New member.
913 <m_last_size, m_last_section_first, m_last_prot,
914 m_last_max_alignment>: Rename, add initializers where needed.
915 (setup_sections_data::setup_one_section): Rename from
916 setup_sections. Update.
917 (compile_object_load): Update. Don't use bfd_map_over_sections.
918
919 2020-09-23 Tom Tromey <tom@tromey.com>
920
921 * compile/compile-object-run.c (struct do_module_cleanup): Add
922 parameters to constructor. Update destructor.
923 <source_file, scope, scope_data, out_value_type, out_value_addr,
924 munmap_list_head, objfile_name_string>: Remove.
925 <module>: New member.
926 (do_module_cleanup): Update.
927 (compile_object_run): Update.
928
929 2020-09-23 Tom Tromey <tom@tromey.com>
930
931 * compile/compile.c (eval_compile_command): Update.
932 * compile/compile-object-run.h (compile_object_run): Take a
933 compile_module_up.
934 * compile/compile-object-run.c (compile_object_run): Take a
935 compile_module_up.
936 * compile/compile-object-load.h (struct compile_module): Add
937 constructor, destructor.
938 (compile_module_up): New typedef.
939 (compile_object_load): Return compile_object_up.
940 * compile/compile-object-load.c (compile_object_load): Return
941 compile_module_up.
942
943 2020-09-23 Tom Tromey <tom@tromey.com>
944
945 * compile/compile-object-run.c (struct do_module_cleanup): Add
946 constructor, destructor.
947 <objfile_name_string>: Don't use struct hack.
948 (do_module_cleanup): Use delete.
949 (compile_object_run): Use new.
950
951 2020-09-23 Tom Tromey <tom@tromey.com>
952
953 * compile/compile-cplus-types.c
954 (compile_cplus_convert_struct_or_union): Use std::vector.
955 (compile_cplus_convert_func): Likewise.
956 * compile/compile-c-types.c (convert_func): Use std::vector.
957
958 2020-09-21 Tom Tromey <tromey@adacore.com>
959
960 * sparc-tdep.c (sparc32_skip_prologue): Use
961 skip_prologue_using_sal.
962
963 2020-09-19 Tom Tromey <tom@tromey.com>
964
965 * symfile.c (add_section_size_callback): Remove.
966 (load_one_section): Rename from load_section_callback. Change
967 parameters.
968 (generic_load): Use foreach.
969
970 2020-09-19 Tom Tromey <tom@tromey.com>
971
972 * exec.c (add_to_section_table): Remove.
973 (build_section_table): Use foreach.
974
975 2020-09-19 Tom Tromey <tom@tromey.com>
976
977 * elfread.c (elf_locate_sections): Change parameters.
978 (elf_symfile_read): Use foreach.
979
980 2020-09-19 Tom Tromey <tom@tromey.com>
981
982 * cli/cli-dump.c (struct callback_data): Remove.
983 (restore_one_section): Rename from restore_section_callback.
984 Change parameters.
985 (restore_binary_file): Change parameters.
986 (restore_command): Use foreach.
987
988 2020-09-19 Tom Tromey <tom@tromey.com>
989
990 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
991 (gcore_copy_callback): Likewise.
992 (gcore_memory_sections): Use foreach.
993
994 2020-09-19 Tom Tromey <tom@tromey.com>
995
996 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
997 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
998 parameters.
999 (generic_elf_osabi_sniffer): Use foreach.
1000 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1001 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1002
1003 2020-09-19 Tom Tromey <tom@tromey.com>
1004
1005 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1006 (dwarf2_get_dwz_file): Use foreach.
1007 (dwarf2_locate_dwo_sections): Change parameters.
1008 (open_and_init_dwo_file): Use foreach.
1009 (dwarf2_locate_common_dwp_sections): Change parameters.
1010 (open_and_init_dwp_file): Use foreach.
1011
1012 2020-09-19 Tom Tromey <tom@tromey.com>
1013
1014 * symfile.h: (find_lowest_section): Don't declare.
1015 * symfile.c (find_lowest_section): Now static. Change
1016 parameters.
1017 (struct place_section_arg): Remove.
1018 (place_section): Change parameters.
1019 (addr_info_make_relative): Use foreach.
1020 (symfile_dummy_outputs): Remove.
1021 (default_symfile_relocate): Use foreach.
1022
1023 2020-09-19 Tom Tromey <tom@tromey.com>
1024
1025 * objfiles.c (add_to_objfile_sections): Rename from
1026 add_to_objfile_sections_full.
1027 (add_to_objfile_sections): Remove.
1028 (build_objfile_section_table): Use foreach.
1029
1030 2020-09-19 Tom Tromey <tom@tromey.com>
1031
1032 * stap-probe.c (get_stap_base_address_1): Remove.
1033 (get_stap_base_address): Use foreach.
1034
1035 2020-09-19 Tom Tromey <tom@tromey.com>
1036
1037 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1038 parameters.
1039 (gdb_bfd_close_or_warn): Use foreach.
1040
1041 2020-09-19 Tom Tromey <tom@tromey.com>
1042
1043 * corelow.c (add_to_thread_list): Change parameters.
1044 (core_target_open): Use foreach.
1045
1046 2020-09-19 Tom Tromey <tom@tromey.com>
1047
1048 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1049 existing function.
1050
1051 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1052
1053 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1054 for arrays.
1055
1056 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1057
1058 * eval.c: Remove 'f-lang.h' include.
1059 (value_f90_subarray): Moved to f-lang.c.
1060 (eval_call): Renamed to...
1061 (evaluate_subexp_do_call): ...this, is no longer static, header
1062 comment moved into header file.
1063 (evaluate_funcall): Update call to eval_call.
1064 (skip_undetermined_arglist): Moved to f-lang.c.
1065 (fortran_value_subarray): Likewise.
1066 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1067 moved to evaluate_subexp_f.
1068 (calc_f77_array_dims): Moved to f-lang.c
1069 * expprint.c (print_subexp_funcall): New function.
1070 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1071 moved to print_subexp_f, OP_FUNCALL uses new function.
1072 (dump_subexp_body_funcall): New function.
1073 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1074 moved to dump_subexp_f, OP_FUNCALL uses new function.
1075 * expression.h (evaluate_subexp_do_call): Declare.
1076 * f-lang.c (value_f90_subarray): Moved from eval.c.
1077 (skip_undetermined_arglist): Likewise.
1078 (calc_f77_array_dims): Likewise.
1079 (fortran_value_subarray): Likewise.
1080 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1081 (operator_length_f): Likewise.
1082 (print_subexp_f): Likewise.
1083 (dump_subexp_body_f): Likewise.
1084 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1085 declaration of this operation to here.
1086 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1087 support moved to operator_length_f.
1088 * parser-defs.h (dump_subexp_body_funcall): Declare.
1089 (print_subexp_funcall): Declare.
1090 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1091 fortran-operator.def.
1092
1093 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * eval.c (fortran_value_subarray): New function, content is taken
1096 from...
1097 (evaluate_subexp_standard): ...here, in two places. Now arrays
1098 and strings both call the new function.
1099 (calc_f77_array_dims): Add header comment, handle strings.
1100
1101 2020-09-18 Victor Collod <vcollod@nvidia.com>
1102
1103 PR gdb/26635
1104 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1105 (i386_analyze_prologue): Call i386_skip_endbr.
1106
1107 2020-09-18 Tom Tromey <tromey@adacore.com>
1108
1109 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1110 (windows_nat_target::wait): Update.
1111 * target/wait.h (enum target_wait_flag): New. Use
1112 DEF_ENUM_FLAGS_TYPE.
1113 * target/target.h (target_wait): Change type of options.
1114 * target.h (target_options_to_string, default_target_wait):
1115 Update.
1116 (struct target_ops) <wait>: Change type of options.
1117 * target.c (target_wait, default_target_wait, do_option): Change
1118 type of "options".
1119 (target_options_to_string): Likewise.
1120 * target-delegates.c: Rebuild.
1121 * target-debug.h (target_debug_print_target_wait_flags): Rename
1122 from target_debug_print_options.
1123 * sol-thread.c (class sol_thread_target) <wait>: Update.
1124 (sol_thread_target::wait): Update.
1125 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1126 (rs6000_nat_target::wait): Update.
1127 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1128 Update.
1129 (remote_target::wait_ns, remote_target::wait_as): Change type of
1130 "options".
1131 (remote_target::wait): Update.
1132 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1133 (gdbsim_target::wait): Update.
1134 * record-full.c (class record_full_base_target) <wait>: Update.
1135 (record_full_wait_1): Change type of "options".
1136 (record_full_base_target::wait): Update.
1137 * record-btrace.c (class record_btrace_target) <wait>: Update.
1138 (record_btrace_target::wait): Update.
1139 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1140 Update.
1141 (ravenscar_thread_target::wait): Update.
1142 * procfs.c (class procfs_target) <wait>: Update.
1143 (procfs_target::wait): Update.
1144 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1145 * obsd-nat.c (obsd_nat_target::wait): Update.
1146 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1147 (nto_procfs_target::wait): Update.
1148 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1149 * nbsd-nat.c (nbsd_wait): Change type of "options".
1150 (nbsd_nat_target::wait): Update.
1151 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1152 (thread_db_target::wait): Update.
1153 * linux-nat.h (class linux_nat_target) <wait>: Update.
1154 * linux-nat.c (linux_nat_target::wait): Update.
1155 (linux_nat_wait_1): Update.
1156 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1157 "options".
1158 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1159 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1160 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1161 (go32_nat_target::wait): Update.
1162 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1163 * gnu-nat.c (gnu_nat_target::wait): Update.
1164 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1165 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1166 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1167 * darwin-nat.c (darwin_nat_target::wait): Update.
1168 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1169 (bsd_uthread_target::wait): Update.
1170 * aix-thread.c (class aix_thread_target) <wait>: Update.
1171 (aix_thread_target::wait): Update.
1172
1173 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * compile/compile-object-run.c (create_copied_type_recursive): New
1176 function.
1177 (compile_object_run): Use new function.
1178
1179 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1180
1181 * NEWS: Mention x86_64 Cygwin core file support.
1182
1183 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1184
1185 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1186 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1187
1188 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1189
1190 * windows-tdep.h: Add prototypes.
1191 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1192 (i386_windows_core_pid_to_str): Move and rename ...
1193 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1194 (windows_core_pid_to_str): ... and here.
1195 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1196
1197 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1198 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1199 (amd64_windows_init_abi_common): ... and register.
1200
1201 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1202
1203 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1204 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1205
1206 2020-09-18 Pedro Alves <pedro@palves.net>
1207
1208 PR gdb/26631
1209 * thread.c (thread_find_command): Switch inferior before calling
1210 target methods.
1211
1212 2020-09-17 Tom Tromey <tromey@adacore.com>
1213
1214 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1215 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1216 (tdesc_arch_data_up): New typedef.
1217 (tdesc_use_registers, tdesc_data_alloc): Update.
1218 (tdesc_data_cleanup): Don't declare.
1219 * target-descriptions.c (tdesc_data_alloc): Return a
1220 tdesc_arch_data_up.
1221 (tdesc_arch_data_deleter::operator()): Rename from
1222 tdesc_data_cleanup. Change argument type.
1223 (tdesc_use_registers): Change early_data to an rvalue reference.
1224 (tdesc_use_registers): Don't use delete.
1225 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1226 * s390-tdep.c (s390_gdbarch_init): Update.
1227 * rx-tdep.c (rx_gdbarch_init): Update.
1228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1229 * riscv-tdep.c (riscv_gdbarch_init): Update.
1230 * or1k-tdep.c (or1k_gdbarch_init): Update.
1231 * nios2-tdep.c (nios2_gdbarch_init): Update.
1232 * nds32-tdep.c (nds32_gdbarch_init): Update.
1233 * mips-tdep.c (mips_gdbarch_init): Update.
1234 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1235 * m68k-tdep.c (m68k_gdbarch_init): Update.
1236 * i386-tdep.c (i386_gdbarch_init): Update.
1237 * arm-tdep.c (arm_gdbarch_init): Update.
1238 * arc-tdep.c (arc_tdesc_init): Update.
1239 (arc_gdbarch_init): Update.
1240 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1241
1242 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1243
1244 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1245 for WOW64 processes.
1246
1247 2020-09-17 Tom Tromey <tom@tromey.com>
1248
1249 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1250
1251 2020-09-17 Tom Tromey <tom@tromey.com>
1252
1253 * value.c (preserve_values): Update.
1254 * python/py-type.c (save_objfile_types): Update.
1255 * guile/scm-type.c (save_objfile_types): Update.
1256 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1257 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1258 * compile/compile-object-run.c (compile_object_run): Update.
1259
1260 2020-09-17 Tom Tromey <tom@tromey.com>
1261
1262 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1263 Remove.
1264 <m_table>: Now htab_up.
1265 * typeprint.c (typedef_hash_table::recursively_update)
1266 (typedef_hash_table::add_template_parameters)
1267 (typedef_hash_table::typedef_hash_table): Update.
1268 (typedef_hash_table::~typedef_hash_table): Remove.
1269 (typedef_hash_table::typedef_hash_table)
1270 (typedef_hash_table::find_global_typedef)
1271 (typedef_hash_table::find_typedef): Update.
1272
1273 2020-09-17 Tom Tromey <tom@tromey.com>
1274
1275 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1276
1277 2020-09-17 Tom Tromey <tom@tromey.com>
1278
1279 * linespec.c (class decode_compound_collector)
1280 <~decode_compound_collector>: Remove.
1281 <m_unique_syms>: Now htab_up.
1282 (decode_compound_collector::operator ()): Update.
1283 (class symtab_collector) <~symtab_collector>: Remove.
1284 <m_symtab_table>: Now htab_up.
1285 (symtab_collector::operator ()): Update.
1286
1287 2020-09-17 Tom Tromey <tom@tromey.com>
1288
1289 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1290 (filename_seen_cache::clear): Update.
1291 (~filename_seen_cache): Remove.
1292 (filename_seen_cache::seen): Update.
1293 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1294 htab_up.
1295 <~filename_seen_cache>: Remove.
1296 <traverse>: Update.
1297
1298 2020-09-17 Tom Tromey <tom@tromey.com>
1299
1300 * completer.c (completion_tracker::discard_completions)
1301 (completion_tracker::~completion_tracker)
1302 (completion_tracker::maybe_add_completion)
1303 (completion_tracker::remove_completion)
1304 (completion_tracker::recompute_lowest_common_denominator)
1305 (completion_tracker::build_completion_result): Update.
1306 * completer.h (class completion_tracker) <have_completions>:
1307 Update.
1308 <m_entries_hash>: Now htab_up.
1309
1310 2020-09-17 Tom Tromey <tom@tromey.com>
1311
1312 * breakpoint.c (ambiguous_names_p): Use htab_up.
1313
1314 2020-09-17 Tom Tromey <tom@tromey.com>
1315
1316 * auto-load.c (struct auto_load_pspace_info)
1317 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1318 <loaded_script_files, loaded_script_texts>: Change type to
1319 htab_up.
1320 (~auto_load_pspace_info) Remove.
1321 (init_loaded_scripts_info, maybe_add_script_file)
1322 (maybe_add_script_text, auto_load_info_scripts): Update.
1323
1324 2020-09-17 Tom Tromey <tromey@adacore.com>
1325
1326 * c-exp.y (name_obstack): Now static.
1327
1328 2020-09-17 Chungyi Chi <demonic@csie.io>
1329
1330 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1331
1332 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1333
1334 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1335 (add_solib_catchpoint): Likewise.
1336 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1337 to bool.
1338 (add_solib_catchpoint): Change int parameter/variable to bool.
1339 (catch_load_or_unload): Likewise.
1340 (init_catchpoint): Likewise.
1341 (create_fork_vfork_event_catchpoint): Likewise.
1342 (catch_fork_command_1): Likewise.
1343 (catch_exec_command_1): Likewise.
1344
1345 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1346
1347 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1348 Change instance_flags to m_instance_flags.
1349
1350 2020-09-16 Tom Tromey <tromey@adacore.com>
1351
1352 PR gdb/26598:
1353 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1354
1355 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1356
1357 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1358 PL_FLAG_EXEC.
1359 (fbsd_nat_target::insert_exec_catchpoint)
1360 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1361 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1362 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1363
1364 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1365
1366 * configure.ac: Remove check for kinfo_getvmmap().
1367 * configure, config.in: Regenerate.
1368 * fbsd-nat.c (fbsd_read_mapping): Remove
1369 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1370 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1371 kinfo_get_vmmap() are always present.
1372
1373 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1374
1375 * fbsd-nat.c: Always include support for
1376 TARGET_OBJECT_SIGNAL_INFO.
1377
1378 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1379
1380 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1381 sysctl and remove procfs fallback.
1382
1383 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1384
1385 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1386 * fbsd-nat.h: Likewise.
1387
1388 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1389
1390 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1391 argument.
1392
1393 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * ada-lang.c (ada_language_data): Delete.
1396 (ada_language): Remove references to ada_language_data.
1397 * c-lang.c (c_language_data): Delete.
1398 (c_language): Remove references to c_language_data.
1399 (cplus_language_data): Delete.
1400 (cplus_language): Remove references to cplus_language_data.
1401 (asm_language_data): Delete.
1402 (asm_language): Remove references to asm_language_data.
1403 (minimal_language_data): Delete.
1404 (minimal_language): Remove references to minimal_language_data.
1405 * d-lang.c (d_language_data): Delete.
1406 (d_language): Remove references to d_language_data.
1407 * f-lang.c (f_language_data): Delete.
1408 (f_language): Remove references to f_language_data.
1409 * go-lang.c (go_language_data): Delete.
1410 (go_language): Remove references to go_language_data.
1411 * language.c (unknown_language_data): Delete.
1412 (unknown_language): Remove references to unknown_language_data.
1413 (auto_language_data): Delete.
1414 (auto_language): Remove references to auto_language_data.
1415 * language.h (language_data): Delete struct.
1416 (language_defn): No longer inherit from language_data.
1417 * m2-lang.c (m2_language_data): Delete.
1418 (m2_language): Remove references to m2_language_data.
1419 * objc-lang.c (objc_language_data): Delete.
1420 (objc_language): Remove references to objc_language_data.
1421 * opencl-lang.c (opencl_language_data): Delete.
1422 (opencl_language): Remove references to opencl_language_data.
1423 * p-lang.c (pascal_language_data): Delete.
1424 (pascal_language): Remove references to pascal_language_data.
1425 * rust-lang.c (rust_language_data): Delete.
1426 (rust_language): Remove references to rust_language_data.
1427
1428 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1429
1430 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1431 initializer.
1432 (ada_language::opcode_print_table): New member function.
1433 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1434 (c_language::opcode_print_table): New member function.
1435 (cplus_language_data): Remove la_op_print_tab initializer.
1436 (cplus_language::opcode_print_table): New member function.
1437 (asm_language_data): Remove la_op_print_tab initializer.
1438 (asm_language::opcode_print_table): New member function.
1439 (minimal_language_data): Remove la_op_print_tab initializer.
1440 (minimal_language::opcode_print_table): New member function.
1441 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1442 (d_language::opcode_print_table): New member function.
1443 * expprint.c (print_subexp_standard): Update call to
1444 opcode_print_table.
1445 (op_string): Likewise.
1446 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1447 (f_language::opcode_print_table): New member function.
1448 * go-lang.c (go_language_data): Remove la_op_print_tab
1449 initializer.
1450 (go_language::opcode_print_table): New member function.
1451 * language.c (unknown_language_data): Remove la_op_print_tab
1452 initializer.
1453 (unknown_language::opcode_print_table): New member function.
1454 (auto_language_data): Remove la_op_print_tab initializer.
1455 (auto_language::opcode_print_table): New member function.
1456 * language.h (language_data): Remove la_op_print_tab field.
1457 (language_defn::opcode_print_table): Declare new member function.
1458 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1459 initializer.
1460 (m2_language::opcode_print_table): New member function.
1461 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1462 initializer.
1463 (objc_language::opcode_print_table): New member function.
1464 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1465 initializer.
1466 (opencl_language::opcode_print_table): New member function.
1467 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1468 initializer.
1469 (pascal_language::opcode_print_table): New member function.
1470 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1471 initializer.
1472 (rust_language::opcode_print_table): New member function.
1473
1474 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1477 (ada_language::expression_ops): New member function.
1478 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1479 (c_language::expression_ops): New member function.
1480 (cplus_language_data): Remove la_exp_desc initializer.
1481 (cplus_language::expression_ops): New member function.
1482 (asm_language_data): Remove la_exp_desc initializer.
1483 (asm_language::expression_ops): New member function.
1484 (minimal_language_data): Remove la_exp_desc initializer.
1485 (minimal_language::expression_ops): New member function.
1486 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1487 (d_language::expression_ops): New member function.
1488 * eval.c (evaluate_subexp): Update call to expression_ops.
1489 * expprint.c (print_subexp): Likewise.
1490 (op_name): Likewise.
1491 (dump_subexp_body): Likewise.
1492 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1493 (f_language::expression_ops): New member function.
1494 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1495 (go_language::expression_ops): New member function.
1496 * language.c (language_defn::expression_ops): New function.
1497 (unknown_language_data): Remove la_exp_desc initializer.
1498 (auto_language_data): Likewise.
1499 * language.h (language_data): Remove la_exp_desc field.
1500 (language_defn::expression_ops): Declare new member function.
1501 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1502 (m2_language::expression_ops): New member function.
1503 * objc-lang.c (objc_language_data): Remove la_exp_desc
1504 initializer.
1505 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1506 initializer.
1507 (opencl_language::expression_ops): New member function.
1508 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1509 * parse.c (operator_length): Update call to expression_ops.
1510 (exp_iterate): Likewise.
1511 * rust-lang.c (rust_language_data): Remove la_exp_desc
1512 initializer.
1513 (ruse_language::expression_ops): New member function.
1514
1515 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1518 initializer.
1519 (ada_language::varobj_ops): New member function.
1520 * c-lang.c (c_language_data): Remove la_varobj_ops
1521 initializer.
1522 (cplus_language_data): Likewise.
1523 (cplus_language::varobj_ops): New member function.
1524 (asm_language_data): Remove la_varobj_ops initializer.
1525 (minimal_language_data): Likewise.
1526 * d-lang.c (d_language_data): Likewise.
1527 * f-lang.c (f_language_data): Likewise.
1528 * go-lang.c (go_language_data): Likewise.
1529 * language.c (language_defn::varobj_ops): New function.
1530 (unknown_language_data): Remove la_varobj_ops
1531 initializer.
1532 (auto_language_data): Likewise.
1533 * language.h (language_data): Remove la_varobj_ops field.
1534 (language_defn::varobj_ops): Declare new member function.
1535 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1536 * objc-lang.c (objc_language_data): Likewise.
1537 * opencl-lang.c (opencl_language_data): Likewise.
1538 * p-lang.c (pascal_language_data): Likewise.
1539 * rust-lang.c (rust_language_data): Likewise.
1540 * varobj.c (varobj_create): Update call to varobj_ops.
1541 * varobj.h (default_varobj_ops): Delete define.
1542
1543 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1546 initializer.
1547 * c-lang.c (c_language_data): Likewise.
1548 (c_language::macro_expansion): New member function.
1549 (cplus_language_data): Likewise.
1550 (cplus_language::macro_expansion): New member function.
1551 (asm_language_data): Likewise.
1552 (asm_language::macro_expansion): New member function.
1553 (minimal_language_data): Likewise.
1554 (minimal_language::macro_expansion): New member function.
1555 * d-lang.c (d_language_data): Remove la_macro_expansion
1556 initializer.
1557 * f-lang.c (f_language_data): Likewise.
1558 * go-lang.c (go_language_data): Likewise.
1559 * language.c (unknown_language_data): Likewise.
1560 (auto_language_data): Likewise.
1561 * language.h (language_data): Remove la_macro_expansion field.
1562 (language_defn::macro_expansion): New member function.
1563 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1564 initializer.
1565 * objc-lang.c (objc_language_data): Likewise.
1566 (objc_language::macro_expansion): New member function.
1567 * opencl-lang.c (opencl_language_data): Likewise.
1568 (opencl_language::macro_expansion): New member function.
1569 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1570 initializer.
1571 * rust-lang.c (rust_language_data): Likewise.
1572 * symtab.c (default_collect_symbol_completion_matches_break_on):
1573 Update call to macro_expansion.
1574
1575 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * ada-lang.c (ada_language_data): Remove la_array_ordering
1578 initializer.
1579 * c-lang.c (c_language_data): Likewise.
1580 (cplus_language_data): Likewise.
1581 (asm_language_data): Likewise.
1582 (minimal_language_data): Likewise.
1583 * d-lang.c (d_language_data): Likewise.
1584 * dwarf2/read.c (read_array_order): Update for call to
1585 array_ordering.
1586 * f-lang.c (f_language_data): Remove la_array_ordering
1587 initializer.
1588 (f_language::array_ordering): New member function.
1589 * go-lang.c (go_language_data): Remove la_array_ordering
1590 initializer.
1591 * language.c (unknown_language_data): Likewise.
1592 (auto_language_data): Likewise.
1593 * language.h (language_data): Delete la_array_ordering field.
1594 (language_defn::array_ordering): New member function.
1595 * m2-lang.c (m2_language_data): Remove la_array_ordering
1596 initializer.
1597 * objc-lang.c (objc_language_data): Likewise.
1598 * opencl-lang.c (opencl_language_data): Likewise.
1599 * p-lang.c (pascal_language_data): Likewise.
1600 * rust-lang.c (rust_language_data): Likewise.
1601
1602 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1603
1604 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1605 initializer.
1606 * c-lang.c (c_language_data): Likewise.
1607 (cplus_language_data): Likewise.
1608 (asm_language_data): Likewise.
1609 (minimal_language_data): Likewise.
1610 * d-lang.c (d_language_data): Likewise.
1611 * f-lang.c (f_language_data): Likewise.
1612 (f_language::case_sensitivity): New member function.
1613 * go-lang.c (go_language_data): Remove la_case_sensitivity
1614 initializer.
1615 * language.c (enum case_mode): Moved here from language.h.
1616 (case_mode): Make static.
1617 (show_case_command): Update for case_sensitivity being a method.
1618 (set_case_command): Likewise.
1619 (set_range_case): Likewise.
1620 (unknown_language_data): Remove la_case_sensitivity initializer.
1621 (auto_language_data): Likewise.
1622 * language.h (case_mode): Delete, move enum declaration to
1623 language.c.
1624 (language_data): Delete la_case_sensitivity field.
1625 (language_defn::case_sensitivity): New member function.
1626 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1627 initializer.
1628 * objc-lang.c (objc_language_data): Likewise.
1629 * opencl-lang.c (opencl_language_data): Likewise.
1630 * p-lang.c (pascal_language_data): Likewise.
1631 * rust-lang.c (rust_language_data): Likewise.
1632
1633 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * ada-lang.c (ada_language_data): Remove la_range_check
1636 initializer.
1637 * c-lang.c (c_language_data): Likewise.
1638 (cplus_language_data): Likewise.
1639 (asm_language_data): Likewise.
1640 (minimal_language_data): Likewise.
1641 * d-lang.c (d_language_data): Likewise.
1642 * f-lang.c (f_language_data): Likewise.
1643 (f_language::range_checking_on_by_default): New member function.
1644 * go-lang.c (go_language_data): Remove la_range_check initializer.
1645 * language.c (enum range_mode): Moved here from language.h.
1646 (range_mode): Made static.
1647 (show_range_command): Update to use
1648 range_checking_on_by_default.
1649 (set_range_command): Likewise.
1650 (set_range_case): Likewise.
1651 (unknown_language_data): Remove la_range_check initializer.
1652 (auto_language_data): Likewise.
1653 * language.h (range_mode): Delete. Enum definition moved to
1654 language.c.
1655 (language_data): Remove la_range_check field.
1656 (language_defn::range_checking_on_by_default): New member
1657 function.
1658 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1659 (m2_language::range_checking_on_by_default): New member function.
1660 * objc-lang.c (objc_language_data): Remove la_range_check
1661 initializer.
1662 * opencl-lang.c (opencl_language_data): Likewise.
1663 * p-lang.c (pascal_language_data): Likewise.
1664 (pascal_language::range_checking_on_by_default): New member
1665 function.
1666 * rust-lang.c (rust_language_data): Remove la_range_check
1667 initializer.
1668 (rust_language::range_checking_on_by_default): New member
1669 function.
1670
1671 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * dwarf2/read.c (dwarf2_physname): Remove special case for
1674 language_go.
1675 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1676 member function.
1677
1678 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * ada-lang.c (ada_language_data): Remove
1681 la_store_sym_names_in_linkage_form_p initializer.
1682 (ada_language::store_sym_names_in_linkage_form_p): New member
1683 function.
1684 * c-lang.c (c_language_data): Remove
1685 la_store_sym_names_in_linkage_form_p initializer.
1686 (c_language::store_sym_names_in_linkage_form_p): New member
1687 function.
1688 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1689 initializer.
1690 (asm_language_data): Likewise.
1691 (asm_language::store_sym_names_in_linkage_form_p): New member
1692 function.
1693 (minimal_language_data): Remove
1694 la_store_sym_names_in_linkage_form_p initializer.
1695 (minimal_language::store_sym_names_in_linkage_form_p): New member
1696 function.
1697 * d-lang.c (d_language_data): Remove
1698 la_store_sym_names_in_linkage_form_p initializer.
1699 * dwarf2/read.c (dwarf2_physname): Update call to
1700 store_sym_names_in_linkage_form_p.
1701 * f-lang.c (f_language_data): Remove
1702 la_store_sym_names_in_linkage_form_p initializer.
1703 * go-lang.c (go_language_data): Remove
1704 la_store_sym_names_in_linkage_form_p initializer.
1705 * language.c (unknown_language_data): Remove
1706 la_store_sym_names_in_linkage_form_p initializer.
1707 (unknown_language::store_sym_names_in_linkage_form_p): New member
1708 function.
1709 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1710 initializer.
1711 (auto_language::store_sym_names_in_linkage_form_p): New member
1712 function.
1713 * language.h (language_data): Remove
1714 la_store_sym_names_in_linkage_form_p member variable.
1715 (language_defn::store_sym_names_in_linkage_form_p): New member
1716 function.
1717 * m2-lang.c (m2_language_data): Remove
1718 la_store_sym_names_in_linkage_form_p initializer.
1719 * objc-lang.c (objc_language_data): Likewise.
1720 * opencl-lang.c (opencl_language_data): Likewise.
1721 * p-lang.c (pascal_language_data): Likewise.
1722 * rust-lang.c (rust_language_data): Likewise.
1723
1724 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1725
1726 * ada-lang.c (ada_language_data): Remove string_lower_bound
1727 initializer.
1728 * c-lang.c (c_language_data): Likewise.
1729 (cplus_language_data): Likewise.
1730 (asm_language_data): Likewise.
1731 (minimal_language_data): Likewise.
1732 * d-lang.c (d_language_data): Likewise.
1733 * f-lang.c (f_language_data): Likewise.
1734 * go-lang.c (go_language_data): Likewise.
1735 * language.c (unknown_language_data): Likewise.
1736 (auto_language_data): Likewise.
1737 * language.h (language_data): Remove string_lower_bound field.
1738 (language_defn::string_lower_bound): New member function.
1739 * m2-lang.c (m2_language_data): Remove string_lower_bound
1740 initializer.
1741 (m2_language::string_lower_bound): New member function.
1742 * objc-lang.c (objc_language_data): Remove string_lower_bound
1743 initializer.
1744 * opencl-lang.c (opencl_language_data): Likewise.
1745 * p-lang.c (pascal_language_data): Likewise.
1746 * rust-lang.c (rust_language_data): Likewise.
1747 * valops.c (value_cstring): Update call to string_lower_bound.
1748 (value_string): Likewise.
1749 * value.c (allocate_repeated_value): Likewise.
1750
1751 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * valops.c (value_repeat): Fix incorrect argument name in comment.
1754
1755 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * ada-lang.c (ada_language_data): Remove c_style_arrays
1758 initializer.
1759 (ada_language::c_style_arrays_p): New member fuction.
1760 * c-lang.c (c_language_data): Remove c_style_arrays
1761 initializer.
1762 (cplus_language_data): Likewise.
1763 (asm_language_data): Likewise.
1764 (minimal_language_data): Likewise.
1765 * d-lang.c (d_language_data): Likewise.
1766 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1767 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1768 (f_language::c_style_arrays_p): New member function.
1769 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1770 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1771 * language.c (unknown_language_data): Remove c_style_arrays
1772 initializer.
1773 (auto_language_data): Likewise.
1774 * language.h (language_data): Remove c_style_arrays field.
1775 (language_defn::c_style_arrays_p): New member function.
1776 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1777 (m2_language::c_style_arrays_p): New member function.
1778 * objc-lang.c (objc_language_data): Remove c_style_arrays
1779 initializer.
1780 * opencl-lang.c (opencl_language_data): Likewise.
1781 * p-lang.c (pascal_language_data): Likewise.
1782 * rust-lang.c (rust_language_data): Likewise.
1783 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1784 and update local variable to a bool.
1785 * valops.c (value_cast): Update call to c_style_arrays_p.
1786 (value_array): Likewise.
1787 * value.c (coerce_array): Likewise.
1788
1789 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * ada-lang.c (ada_language_data): Remove la_language initializer.
1792 * c-lang.c (c_language_data): Likewise.
1793 (cplus_language_data): Likewise.
1794 (asm_language_data): Likewise.
1795 (minimal_language_data): Likewise.
1796 * d-lang.c (d_language_data): Likewise.
1797 * f-lang.c (f_language_data): Likewise.
1798 * go-lang.c (go_language_data): Likewise.
1799 * language.c (unknown_language_data): Likewise.
1800 (auto_language_data): Likewise.
1801 * language.h (language_data): Remove la_language field.
1802 (language_defn::language_defn): Initialise la_language field.
1803 (language_defn::la_language): New member variable.
1804 * m2-lang.c (m2_language_data): Remove la_language field.
1805 * objc-lang.c (objc_language_data): Likewise.
1806 * opencl-lang.c (opencl_language_data): Likewise.
1807 * p-lang.c (pascal_language_data): Likewise.
1808 * rust-lang.c (rust_language_data): Likewise.
1809
1810 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 * ada-lang.c (ada_extensions): Delete, moved into
1813 ada_language::filename_extensions.
1814 (ada_language_data): Remove la_filename_extensions initializer.
1815 (ada_language::filename_extensions): New member function.
1816 * c-lang.c (c_extensions): Delete, moved into
1817 c_language::filename_extensions.
1818 (c_language_data): Remove la_filename_extensions initializer.
1819 (c_language::filename_extensions): New member function.
1820 (cplus_extensions): Delete, moved into
1821 cplus_language::filename_extensions.
1822 (cplus_language_data): Remove la_filename_extensions initializer.
1823 (cplus_language::filename_extensions): New member function.
1824 (asm_extensions): Delete, moved into
1825 asm_language::filename_extensions.
1826 (asm_language_data): Remove la_filename_extensions initializer.
1827 (asm_language::filename_extensions): New member function.
1828 (minimal_language_data): Remove la_filename_extensions
1829 initializer.
1830 * d-lang.c (d_extensions): Delete, moved into
1831 d_language::filename_extensions.
1832 (d_language_data): Remove la_filename_extensions initializer.
1833 (d_language::filename_extensions): New member function.
1834 * f-lang.c (f_extensions): Delete, moved into
1835 f_language::filename_extensions.
1836 (f_language_data): Remove la_filename_extensions initializer.
1837 (f_language::filename_extensions): New member function.
1838 * go-lang.c (go_language_data): Remove la_filename_extensions
1839 initializer.
1840 * language.c (add_set_language_command): Update now that
1841 filename_extensions returns a vector.
1842 (unknown_language_data): Remove la_filename_extensions
1843 initializer.
1844 (auto_language_data): Likewise.
1845 * language.h (language_data): Remove la_filename_extensions field.
1846 (language_defn::filename_extensions): New member function.
1847 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1848 initializer.
1849 * objc-lang.c (objc_extensions): Delete, moved into
1850 objc_language::filename_extensions.
1851 (objc_language_data): Remove la_filename_extensions initializer.
1852 (objc_language::filename_extensions): New member function.
1853 * opencl-lang.c (opencl_language_data): Remove
1854 la_filename_extensions initializer.
1855 * p-lang.c (pascal_extensions): Delete, moved into
1856 pascal_language::filename_extensions.
1857 (pascal_language_data): Remove la_filename_extensions initializer.
1858 (pascal_language::filename_extensions): New member function.
1859 * rust-lang.c (rust_extensions): Delete, moved into
1860 rust_language::filename_extensions.
1861 (rust_language_data): Remove la_filename_extensions initializer.
1862 (rust_language::filename_extensions): New member function.
1863 * symfile.c (add_filename_language): Add new assert.
1864
1865 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * ada-lang.c (ada_language_data): Remove la_name and
1868 la_natural_name initializers.
1869 (ada_language::name): New member function.
1870 (ada_language::natural_name): New member function.
1871 * c-lang.c (c_language_data): Remove la_name and
1872 la_natural_name initializers.
1873 (c_language::name): New member function.
1874 (c_language::natural_name): New member function.
1875 (cplus_language_data): Remove la_name and
1876 la_natural_name initializers.
1877 (cplus_language::name): New member function.
1878 (cplus_language::natural_name): New member function.
1879 (asm_language_data): Remove la_name and
1880 la_natural_name initializers.
1881 (asm_language::name): New member function.
1882 (asm_language::natural_name): New member function.
1883 (minimal_language_data): Remove la_name and
1884 la_natural_name initializers.
1885 (minimal_language::name): New member function.
1886 (minimal_language::natural_name): New member function.
1887 * compile/compile.c (compile_to_object): Update call to
1888 lanugage_defn::name.
1889 * d-lang.c (d_language_data): Remove la_name and
1890 la_natural_name initializers.
1891 (d_language::name): New member function.
1892 (d_language::natural_name): New member function.
1893 * expprint.c (print_subexp_standard): Update call to
1894 language_defn::name.
1895 (dump_raw_expression): Likewise
1896 (dump_prefix_expression): Likewise.
1897 * f-lang.c (f_language_data): Remove la_name and
1898 la_natural_name initializers.
1899 (f_language::name): New member function.
1900 (f_language::natural_name): New member function.
1901 * go-lang.c (go_language_data): Remove la_name and
1902 la_natural_name initializers.
1903 (go_language::name): New member function.
1904 (go_language::natural_name): New member function.
1905 * language.c (show_language_command): Update call to
1906 language_defn::name.
1907 (set_language_command): Likewise.
1908 (language_enum): Likewise.
1909 (language_str): Likewise.
1910 (add_set_language_command): Likewise, use
1911 language_defn::natural_name in the doc string.
1912 (unknown_language_data): Remove la_name and
1913 la_natural_name initializers.
1914 (unknown_language::name): New member function.
1915 (unknown_language::natural_name): New member function.
1916 (auto_language_data): Remove la_name and
1917 la_natural_name initializers.
1918 (auto_language::name): New member function.
1919 (auto_language::natural_name): New member function.
1920 (language_lookup_primitive_type_as_symbol): Update call to
1921 language_defn::name.
1922 * language.h (language_data): Remove la_name and la_natural_name
1923 member variables.
1924 (language_defn::name): New member function.
1925 (language_defn::natural_name): New member function.
1926 * m2-lang.c (m2_language_data): Remove la_name and
1927 la_natural_name initializers.
1928 (m2_language::name): New member function.
1929 (m2_language::natural_name): New member function.
1930 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1931 language_defn::natural_name.
1932 * objc-lang.c (objc_language_data): Remove la_name and
1933 la_natural_name initializers.
1934 (objc_language::name): New member function.
1935 (objc_language::natural_name): New member function.
1936 * opencl-lang.c (opencl_language_data): Remove la_name and
1937 la_natural_name initializers.
1938 (opencl_language::name): New member function.
1939 (opencl_language::natural_name): New member function.
1940 * p-lang.c (pascal_language_data): Remove la_name and
1941 la_natural_name initializers.
1942 (pascal_language::name): New member function.
1943 (pascal_language::natural_name): New member function.
1944 * rust-lang.c (rust_language_data): Remove la_name and
1945 la_natural_name initializers.
1946 (rust_language::name): New member function.
1947 (rust_language::natural_name): New member function.
1948 * symtab.c (lookup_language_this): Update call to
1949 language_defn::name.
1950
1951 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * ada-lang.c (ada_language_data): Remove la_name_of_this
1954 initializer.
1955 * ax-gdb.c (gen_expr): Update call to name_of_this.
1956 * c-exp.y (classify_name): Likewise.
1957 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1958 (cplus_language_data): Likewise.
1959 (cplus_language::name_of_this): New member function.
1960 (asm_language_data): Remove la_name_of_this initializer.
1961 (minimal_language_data): Likewise.
1962 * d-lang.c (d_language_data): Likewise.
1963 (d_language::name_of_this): New member function.
1964 * expprint.c (print_subexp_standard): Update call to name_of_this.
1965 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1966 * go-lang.c (go_language_data): Likewise.
1967 * language.c (unknown_language_data): Likewise.
1968 (unknown_language::name_of_this): New member function.
1969 (auto_language_data): Remove la_name_of_this initializer.
1970 (auto_language::name_of_this): New member function.
1971 * language.h (language_data): Delete la_name_of_this member
1972 variable.
1973 (language_defn::name_of_this): New member function.
1974 * m2-lang.c (m2_language_data): Remove la_name_of_this
1975 initializer.
1976 * objc-lang.c (objc_language_data): Likewise.
1977 (objc_language::name_of_this): New member function.
1978 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1979 initializer.
1980 * p-lang.c (pascal_language_data): Likewise.
1981 (pascal_language::name_of_this): New member function.
1982 * rust-lang.c (rust_language_data): Remove la_name_of_this
1983 initializer.
1984 * symtab.c (lookup_language_this): Update call to name_of_this.
1985 (lookup_symbol_aux): Likewise.
1986 * valops.c (value_of_this): Likewise.
1987
1988 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * ada-lang.c (ada_language_data): Remove
1991 la_struct_too_deep_ellipsis initializer.
1992 (ada_language::struct_too_deep_ellipsis): New member function.
1993 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1994 initializer.
1995 (cplus_language_data): Likewise.
1996 (asm_language_data): Likewise.
1997 (minimal_language_data): Likewise.
1998 * cp-valprint.c (cp_print_value): Update call to
1999 struct_too_deep_ellipsis.
2000 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2001 initializer.
2002 * f-lang.c (f_language_data): Likewise.
2003 (f_language::struct_too_deep_ellipsis): New member function.
2004 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2005 initializer.
2006 * language.c (unknown_language_data): Likewise.
2007 (auto_language_data): Likewise.
2008 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2009 member variable.
2010 (language_defn::struct_too_deep_ellipsis): New member function.
2011 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2012 initializer.Q
2013 * objc-lang.c (objc_language_data): Likewise.
2014 * opencl-lang.c (opencl_language_data): Likewise.
2015 * p-lang.c (pascal_language_data): Likewise.
2016 * rust-lang.c (rust_language_data): Likewise.
2017 * valprint.c (val_print_check_max_depth): Update call to
2018 struct_too_deep_ellipsis.
2019
2020 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2021
2022 * MAINTAINERS (Write After Approval): Add myself.
2023
2024 2020-09-15 Tom Tromey <tom@tromey.com>
2025
2026 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2027 Remove.
2028
2029 2020-09-15 Tom Tromey <tom@tromey.com>
2030
2031 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2032 and TYPE_CODE_METHODPTR cases.
2033 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2034 (c_value_print_inner): Update.
2035 * valprint.c (generic_value_print_memberptr): New function, from
2036 c_value_print_memberptr.
2037 (generic_value_print): Use it. Call cplus_print_method_ptr.
2038
2039 2020-09-15 Tom Tromey <tromey@adacore.com>
2040
2041 * python/python-internal.h (PyInt_FromLong): Remove define.
2042 * python/py-value.c (convert_value_from_python): Use
2043 gdb_py_object_from_longest.
2044 * python/py-type.c (typy_get_code): Use
2045 gdb_py_object_from_longest.
2046 * python/py-symtab.c (salpy_get_line): Use
2047 gdb_py_object_from_longest.
2048 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2049 gdb_py_object_from_longest.
2050 * python/py-record.c (recpy_gap_reason_code): Use
2051 gdb_py_object_from_longest.
2052 * python/py-record-btrace.c (recpy_bt_insn_size)
2053 (recpy_bt_func_level, btpy_list_count): Use
2054 gdb_py_object_from_longest.
2055 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2056 gdb_py_object_from_longest. Fix error handling.
2057 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2058 gdb_py_object_from_longest.
2059 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2060 gdb_py_object_from_longest.
2061 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2062 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2063 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2064
2065 2020-09-15 Tom Tromey <tromey@adacore.com>
2066
2067 * python/python.c (gdbpy_parameter_value): Use
2068 gdb_py_object_from_ulongest.
2069
2070 2020-09-15 Tom Tromey <tromey@adacore.com>
2071
2072 * python/py-infevents.c (create_register_changed_event_object):
2073 Use gdb_py_object_from_longest.
2074 * python/py-exitedevent.c (create_exited_event_object): Use
2075 gdb_py_object_from_longest.
2076
2077 2020-09-15 Tom Tromey <tromey@adacore.com>
2078
2079 * python/python.c (gdbpy_parameter_value): Use
2080 gdb_py_object_from_longest.
2081 * python/py-type.c (convert_field, typy_range): Use
2082 gdb_py_object_from_longest.
2083 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2084 gdb_py_object_from_longest.
2085 * python/py-lazy-string.c (stpy_get_length): Use
2086 gdb_py_object_from_longest.
2087 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2088 gdb_py_object_from_longest.
2089 * python/py-infevents.c (create_memory_changed_event_object): Use
2090 gdb_py_object_from_longest.
2091 * python/py-inferior.c (infpy_get_num): Use
2092 gdb_py_object_from_longest.
2093 (infpy_get_pid): Likewise.
2094
2095 2020-09-15 Tom Tromey <tromey@adacore.com>
2096
2097 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2098 defines.
2099 * python/py-value.c (valpy_long): Use
2100 gdb_py_object_from_ulongest.
2101 * python/py-symtab.c (salpy_get_pc): Use
2102 gdb_py_object_from_ulongest.
2103 (salpy_get_last): Likewise.
2104 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2105 gdb_py_object_from_ulongest.
2106 * python/py-lazy-string.c (stpy_get_address): Use
2107 gdb_py_object_from_ulongest.
2108 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2109 * python/py-arch.c (archpy_disassemble): Use
2110 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2111 error handling.
2112
2113 2020-09-15 Tom Tromey <tromey@adacore.com>
2114
2115 * python/python-internal.h (gdb_py_long_from_longest): Remove
2116 defines.
2117 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2118 * python/py-type.c (convert_field, typy_get_sizeof): Use
2119 gdb_py_object_from_longest.
2120 * python/py-record-btrace.c (btpy_list_index): Use
2121 gdb_py_object_from_longest.
2122
2123 2020-09-15 Tom Tromey <tromey@adacore.com>
2124
2125 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2126 * python/py-record.c (recpy_element_number): Use
2127 gdb_py_object_from_longest.
2128 (recpy_gap_number): Likewise.
2129
2130 2020-09-15 Tom Tromey <tromey@adacore.com>
2131
2132 * top.c (ui::ui): Update.
2133 (highest_ui_num): Remove.
2134 * top.h (struct ui) <num>: Remove.
2135
2136 2020-09-15 Tom Tromey <tromey@adacore.com>
2137
2138 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2139 * ui-style.c (ansi_regex_text): Now array.
2140 * rust-exp.y (number_regex_text): Now array.
2141 * linespec.c (linespec_quote_characters): Now array.
2142 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2143 Now arrays.
2144
2145 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2146
2147 * debuginfod-support.c (debuginfod_client_deleter): New.
2148 (debuginfod_client_up): New.
2149 (debuginfod_init): Return debuginfod_client_up.
2150 (debuginfod_source_query): Adjust.
2151 (debuginfod_debuginfo_query): Adjust.
2152
2153 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * debuginfod-support.c (debuginfod_source_query): Use
2156 make_unique_xstrdup.
2157
2158 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2159
2160 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2161 with `type::instance_flags`.
2162
2163 2020-09-14 Michael Mullin <masmullin@gmail.com>
2164
2165 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2166 Remove baton parameter.
2167
2168 2020-09-14 Pedro Alves <pedro@palves.net>
2169
2170 * Makefile.in (SELFTESTS_SRCS): Add
2171 unittests/enum-flags-selftests.c.
2172 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2173 btrace_function_flags instead of enum btrace_function_flag.
2174 * compile/compile-c-types.c (convert_qualified): Use
2175 enum_flags::raw.
2176 * compile/compile-cplus-symbols.c (convert_one_symbol)
2177 (convert_symbol_bmsym):
2178 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2179 (compile_cplus_convert_struct_or_union_methods)
2180 (compile_cplus_instance::convert_qualified_base):
2181 * go-exp.y (parse_string_or_char): Add cast to int.
2182 * unittests/enum-flags-selftests.c: New file.
2183 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2184 type to btrace_thread_flags from btrace_thread_flag.
2185 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2186 local's type to btrace_thread_flags from btrace_thread_flag. Add
2187 cast in DEBUG call.
2188
2189 2020-09-14 Pedro Alves <pedro@palves.net>
2190
2191 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2192 * gdbtypes.c (address_space_name_to_int): Rename to ...
2193 (address_space_name_to_type_instance_flags): ... this.
2194 (address_space_int_to_name): Rename to ...
2195 (address_space_type_instance_flags_to_name): ... this.
2196 * gdbtypes.h (address_space_name_to_int): Rename to ...
2197 (address_space_name_to_type_instance_flags): ... this.
2198 (address_space_int_to_name): Rename to ...
2199 (address_space_type_instance_flags_to_name): ... this.
2200 * type-stack.c (type_stack::insert): Adjust to rename.
2201 * type-stack.h (type_stack::insert): Likewise.
2202
2203 2020-09-14 Pedro Alves <pedro@palves.net>
2204 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 * avr-tdep.c (avr_address_class_type_flags): Return
2207 type_instance_flags.
2208 (avr_address_class_type_flags_to_name): Take a
2209 type_instance_flags.
2210 (avr_address_class_name_to_type_flags): Return bool and take a
2211 type_instance_flags.
2212 * d-lang.c (build_d_types): Use type::set_instance_flags.
2213 * ft32-tdep.c (ft32_address_class_type_flags): Return
2214 type_instance_flags.
2215 (ft32_address_class_type_flags_to_name): Take a
2216 type_instance_flags.
2217 (ft32_address_class_name_to_type_flags): Return bool and take a
2218 type_instance_flags.
2219 (ft32_gdbarch_init): Use type::set_instance_flags.
2220 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2221 * gdbarch.h, gdbarch.c: Regenerate.
2222 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2223 (address_class_name_to_type_flags): Use type_instance_flags and
2224 bool.
2225 * gdbtypes.c (address_space_name_to_int)
2226 (address_space_int_to_name, make_qualified_type): Use
2227 type_instance_flags.
2228 (make_qualified_type): Use type_instance_flags and
2229 type::set_instance_flags.
2230 (make_type_with_address_space, make_cv_type, make_vector_type)
2231 (check_typedef): Use type_instance_flags.
2232 (recursive_dump_type): Cast type_instance_flags to unsigned for
2233 printing.
2234 (copy_type_recursive): Use type::set_instance_flags.
2235 (gdbtypes_post_init): Use type::set_instance_flags.
2236 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2237 <m_instance_flags>: ... this.
2238 <instance_flags, set_instance_flags>: New methods.
2239 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2240 (SET_TYPE_INSTANCE_FLAGS): New.
2241 (address_space_name_to_int, address_space_int_to_name)
2242 (make_type_with_address_space): Pass flags using
2243 type_instance_flags instead of int.
2244 * stabsread.c (cleanup_undefined_types_noname): Use
2245 type::set_instance_flags.
2246 * s390-tdep.c (s390_address_class_type_flags): Return
2247 type_instance_flags.
2248 (s390_address_class_type_flags_to_name): Take a
2249 type_instance_flags.
2250 (s390_address_class_name_to_type_flags): Return bool and take a
2251 type_instance_flags.
2252 * type-stack.c (type_stack::follow_types): Use
2253 type_instance_flags.
2254 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2255
2256 2020-09-14 Tom Tromey <tromey@adacore.com>
2257
2258 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2259 * x86-tdep.c (x86_is_thunk_register_name)
2260 (x86_in_indirect_branch_thunk): Update.
2261 * sparc64-tdep.c (sparc64_fpu_register_names)
2262 (sparc64_cp0_register_names, sparc64_register_names)
2263 (sparc64_pseudo_register_names): Now const.
2264 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2265 cp0_registers_num>: Now const.
2266 * sparc-tdep.c (sparc_core_register_names)
2267 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2268 (sparc32_pseudo_register_names): Now const.
2269 (validate_tdesc_registers): Update.
2270 * rust-lang.c (rust_extensions): Now const.
2271 * p-lang.c (p_extensions): Now const.
2272 * objc-lang.c (objc_extensions): Now const.
2273 * nto-tdep.c (nto_thread_state_str): Now const.
2274 * moxie-tdep.c (moxie_register_names): Now const.
2275 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2276 Now const.
2277 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2278 (mips_linux_reg_names): Now const.
2279 (mips_gdbarch_init): Update.
2280 * microblaze-tdep.c (microblaze_register_names): Now const.
2281 * m68k-tdep.c (m68k_register_names): Now const.
2282 * m32r-tdep.c (m32r_register_names): Now const.
2283 * ia64-tdep.c (ia64_register_names): Now const.
2284 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2285 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2286 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2287 ymm_avx512_register_names, pkeys_register_names>: Now const.
2288 * i386-tdep.c (i386_register_names, i386_zmm_names)
2289 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2290 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2291 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2292 * f-lang.c (f_extensions): Now const.
2293 * d-lang.c (d_extensions): Now const.
2294 * csky-tdep.c (csky_register_names): Now const.
2295 * charset.c (default_charset_names, charset_enum): Now const.
2296 (_initialize_charset): Update.
2297 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2298 const.
2299 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2300 (bsd_uthread_solib_loaded): Update.
2301 (bsd_uthread_state): Now const.
2302 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2303 (amd64_ymm_avx512_names, amd64_ymmh_names)
2304 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2305 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2306 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2307 (amd64_dword_names): Now const.
2308 * agent.c (can_use_agent_enum): Now const.
2309 * ada-tasks.c (task_states, long_task_states): Now const.
2310 * ada-lang.c (known_runtime_file_name_patterns)
2311 (known_auxiliary_function_name_patterns, attribute_names)
2312 (standard_exc, ada_extensions): Now const.
2313
2314 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2315
2316 * bcache.h (struct bcache) <bcache>: Remove constructor.
2317 <m_hash_function, m_compare_function>: Remove.
2318 <~bcache>: Make virtual.
2319 <compare>: Remove static method, introduce virtual method.
2320 <default_hash>: Remove.
2321 <hash>: New virtual method.
2322 * bcache.c (bcache::expand_hash_table): Update.
2323 (bcache::insert): Update.
2324 (bcache::hash): New.
2325 (bcache::compare): Update comment and parameter names.
2326 * gdbtypes.c (types_deeply_equal): Update.
2327 * psymtab.h (struct psymbol_bcache): New struct.
2328 (class psymtab_storage) <psymtab_storage>: Make default.
2329 <psymbol_cache>: Change type to psymbol_bcache.
2330 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2331 (psymbol_hash): Change to...
2332 (psymbol_bcache::hash): ... this.
2333 (psymbol_compare): Change to...
2334 (psymbol_bcache::compare): ... this.
2335
2336 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2337
2338 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2339 checking for initial lwp.
2340
2341 2020-09-14 Tom Tromey <tromey@adacore.com>
2342
2343 * m68k-tdep.c (m68k_extract_return_value): Use
2344 pointer_result_regnum.
2345 (m68k_store_return_value): Likewise.
2346 (m68k_reg_struct_return_p): Handle vectors and arrays.
2347 (m68k_return_value): Handle arrays.
2348 (m68k_svr4_return_value): Fix single-element aggregate handling.
2349 Handle long double. Adjust for embedded ABI.
2350 (m68k_svr4_init_abi): Set pointer_result_regnum.
2351 (m68k_embedded_init_abi): New function.
2352 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2353 (m68k_osabi_sniffer): New function.
2354 (_initialize_m68k_tdep): Register osabi sniffer.
2355 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2356 member.
2357
2358 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2361 with gdb::unique_xmalloc_ptr<char>.
2362
2363 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2364
2365 * xml-support.h (xml_fetch_another): Change type to be a
2366 function_view.
2367 (xml_process_xincludes): Remove baton parameter.
2368 (xml_fetch_content_from_file): Change baton parameter to
2369 dirname.
2370 * xml-support.c (struct xinclude_parsing_data)
2371 <xinclude_parsing_data>: Remove baton parameter.
2372 <fetcher_baton>: Remove.
2373 (xinclude_start_include): Adjust.
2374 (xml_process_xincludes): Adjust.
2375 (xml_fetch_content_from_file): Replace baton parameter with
2376 dirname.
2377 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2378 (xml_init_syscalls_info): Use a lambda.
2379 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2380 (file_read_description_xml): Use a lambda.
2381 (fetch_available_features_from_target): Change baton parameter
2382 to target_ops.
2383 (target_read_description_xml): Use a lambda.
2384 (target_fetch_description_xml): Use a lambda.
2385 (string_read_description_xml): Update.
2386
2387 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2390 uses with type::endianity_is_not_default.
2391
2392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * gdbtypes.h (struct type) <endianity_is_not_default,
2395 set_endianity_is_not_default>: New methods.
2396 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2397 type::endianity_is_not_default, change all write call sites to
2398 use type::set_endianity_is_not_default.
2399
2400 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2403 uses with type::is_fixed_instance.
2404
2405 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2406
2407 * gdbtypes.h (struct type) <is_fixed_instance,
2408 set_is_fixed_instance>: New methods.
2409 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2410 write call sites to use type::set_is_fixed_instance.
2411
2412 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2413
2414 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2415 uses with type::is_gnu_ifunc.
2416
2417 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2418
2419 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2420 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2421 use type::set_is_gnu_ifunc.
2422
2423 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2424
2425 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2426 uses with type::stub_is_supported.
2427
2428 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2429
2430 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2431 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2432 use type::set_stub_is_supported.
2433
2434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2437 uses with type::is_vector.
2438
2439 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2440
2441 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2442 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2443 use type::set_is_vector.
2444
2445 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2446
2447 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2448 uses with type::has_varargs.
2449
2450 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2453 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2454 use type::set_has_varargs.
2455
2456 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2457
2458 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2459 uses with type::is_prototyped.
2460
2461 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2462
2463 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2464 New methods.
2465 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2466 call sites to use type::set_is_prototyped.
2467
2468 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2469
2470 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2471 uses with type::target_is_stub.
2472
2473 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2474
2475 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2476 New methods.
2477 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2478 sites to use type::set_target_is_stub.
2479
2480 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2481
2482 * gdbtypes.h (TYPE_STUB): Remove, replace all
2483 uses with type::is_stub.
2484
2485 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2486
2487 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2488 (TYPE_STUB): Use type::is_stub, change all write call sites to
2489 use type::set_is_stub.
2490
2491 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2492
2493 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2494 type::has_no_signedness.
2495
2496 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2497
2498 * gdbtypes.h (struct type) <has_no_signedness,
2499 set_has_no_signedness>: New methods.
2500 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2501 call sites to use type::set_has_no_signedness.
2502
2503 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2504
2505 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2506 type::is_unsigned.
2507
2508 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2509
2510 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2511 methods.
2512 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2513 sites to use type::set_is_unsigned.
2514
2515 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2516 Adam Renquinha <arenquinha@cimeq.qc.ca>
2517
2518 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2519 pointer and stack frame offset when unwinding.
2520
2521 2020-09-13 Pedro Alves <pedro@palves.net>
2522
2523 * NEWS: Document "-break-insert --qualified".
2524 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2525
2526 2020-09-13 Pedro Alves <pedro@palves.net>
2527
2528 * linespec.c (classify_mtype, compare_msyms): Delete.
2529 (search_minsyms_for_name): Remove classification logic. Instead
2530 filter out trampoline symbols if we also found an external
2531 function of the same name.
2532
2533 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2534
2535 * NEWS: Create a new section for the next release branch.
2536 Rename the section of the current branch, now that it has
2537 been cut.
2538
2539 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2540
2541 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2542 * version.in: Bump version to 11.0.50.DATE-git.
2543
2544 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2545
2546 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2547
2548 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2549 Felix Willgerodt <Felix.Willgerodt@intel.com>
2550
2551 * gdbarch.sh: Added bfloat16 type.
2552 * gdbarch.c: Regenerated.
2553 * gdbarch.h: Regenerated.
2554 * gdbtypes.c (floatformats_bfloat16): New struct.
2555 (gdbtypes_post_init): Add builtin_bfloat16.
2556 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2557 (floatformats_bfloat16): New struct.
2558 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2559 (i386_ymm_type): Add field "v16_bfloat16"
2560 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2561 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2562 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2563 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2564 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2565 * features/i386/64bit-avx512.c: Regenerated.
2566 * features/i386/64bit-sse.xml: Add bfloat16 type.
2567 * features/i386/64bit-sse.c: Regenerated.
2568
2569 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2570
2571 * i386-tdep.c (i386_zmm_type): Fix field names.
2572 (i386_ymm_type): Fix field names.
2573
2574 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2575
2576 * breakpoint.c: Fix typo in the help message of the
2577 "set breakpoint condition-evaluation" command.
2578
2579 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2580
2581 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2582 * (nbsd_nat_target::pid_to_exec_file)
2583 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2584 (nbsd_nat_target::post_startup_inferior)
2585 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2586 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2587 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2588 * (nbsd_thread_lister): Remove.
2589
2590 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2591
2592 * fork-inferior.c (startup_inferior): Avoid double free.
2593
2594 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2595
2596 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2597 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2598
2599 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2600
2601 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2602 * netbsd-nat.c: Include <sys/ptrace.h>.
2603 * (netbsd_nat::enable_proc_events): Add.
2604
2605 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2606
2607 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2608 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2609 (netbsd_nat::for_each_thread): Add.
2610 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2611 "gdbsupport/common-debug.h".
2612 * (netbsd_nat::netbsd_thread_lister)
2613 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2614 (netbsd_nat::for_each_thread): Add.
2615
2616 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2617
2618 * netbsd-nat.h: Include <unistd.h>.
2619 * (netbsd_nat::pid_to_exec_file): Add.
2620 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2621 * (netbsd_nat::pid_to_exec_file) Add.
2622
2623 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2624
2625 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2626
2627 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2628
2629 * netbsd-nat.h: New file.
2630 * netbsd-nat.c: Likewise.
2631
2632 2020-09-09 Tom Tromey <tromey@adacore.com>
2633
2634 * ada-lang.c (remove_extra_symbols): Do not increment when
2635 removing an element
2636
2637 2020-09-08 Tom Tromey <tromey@adacore.com>
2638
2639 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2640
2641 2020-09-08 Tom Tromey <tromey@adacore.com>
2642
2643 PR win32/25302:
2644 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2645 (gdb_bfd_init_data): New function.
2646 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2647
2648 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2649
2650 * infrun.c (fetch_inferior_event): Use
2651 `switch_to_target_no_thread` to switch the target.
2652
2653 2020-09-06 Tom Tromey <tom@tromey.com>
2654
2655 * symfile.h (dwarf2_free_objfile): Don't declare.
2656
2657 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2658
2659 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2660 to match 16 byte real/complex type generated by Flang compiler.
2661
2662 2020-09-03 Tom de Vries <tdevries@suse.de>
2663
2664 PR breakpoint/26546
2665 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2666 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2667
2668 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2669
2670 * maint.c (index_digits): New function.
2671 (struct maint_print_section_data): Remove.
2672 (print_bfd_section_info): Remove print_data parameter, add arg
2673 and index_digits.
2674 (print_objfile_section_info): Likewise.
2675 (print_bfd_section_info_maybe_relocated): Likewise (plus
2676 objfile).
2677 (maintenance_info_sections): Adjust calls.
2678
2679 2020-09-02 Tom Tromey <tromey@adacore.com>
2680
2681 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2682 for null pointers.
2683 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2684
2685 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2686
2687 * bcache.h (struct bcache) <insert>: Change type of `added` to
2688 pointer to bool.
2689 * bcache.c (bcache::insert): Likewise.
2690 * gdbtypes.c (check_types_worklist): Adjust.
2691 * psymtab.c (add_psymbol_to_bcache): Adjust.
2692
2693 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2694
2695 * corelow.c (unordered_set): Include.
2696 (class core_target): Add field 'm_core_unavailable_mappings'.
2697 (core_target::build_file_mappings): Print only one warning
2698 per inaccessible file. Add unavailable/broken mappings
2699 to m_core_unavailable_mappings.
2700 (core_target::xfer_partial): Call...
2701 (core_target::xfer_memory_via_mappings): New method.
2702
2703 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2706 type to bool.
2707
2708 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2709
2710 * dwarf2/read.c (struct field_info): Fix indentation.
2711
2712 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2713
2714 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2715 ordering in comment.
2716 * frame.c (frame_id_eq): Fix indentation.
2717
2718 2020-08-31 Scott Linder <scott@scottlinder.com>
2719 Simon Marchi <simon.marchi@efficios.com>
2720
2721 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2722 inline frame ids in outer frame.
2723
2724 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2725
2726 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2727 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2728 (outer_frame_id): Use FID_STACK_OUTER instead of
2729 FID_STACK_INVALID.
2730 (frame_id_p): Don't check for outer_frame_id.
2731
2732 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2733
2734 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2735 regnum/frame in value. Call allocate_value_lazy.
2736 * frame.c (frame_unwind_register_value): Use
2737 val_print_not_saved.
2738
2739 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2742
2743 2020-08-29 Pedro Alves <pedro@palves.net>
2744
2745 * progspace.c (print_program_space): Use all_inferiors. Switch to
2746 the inferior before calling target_pid_to_str.
2747
2748 2020-08-28 Tom Tromey <tom@tromey.com>
2749
2750 * xcoffread.c (xcoff_end_psymtab): Update comment.
2751 * dbxread.c (dbx_end_psymtab): Update comment.
2752
2753 2020-08-28 Tom de Vries <tdevries@suse.de>
2754
2755 PR breakpoint/26544
2756 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2757 event_location.
2758 (create_breakpoint): Same.
2759 (base_breakpoint_decode_location): Same.
2760 (bkpt_create_sals_from_location): Same.
2761 (bkpt_decode_location): Same.
2762 (bkpt_probe_create_sals_from_location): Same.
2763 (bkpt_probe_decode_location): Same.
2764 (tracepoint_create_sals_from_location): Same.
2765 (tracepoint_decode_location): Same.
2766 (tracepoint_probe_decode_location): Same.
2767 (strace_marker_create_sals_from_location): Same.
2768 (strace_marker_decode_location): Same.
2769 (create_sals_from_location_default): Same.
2770 (decode_location_default): Same.
2771 * breakpoint.h (struct breakpoint_ops): Same.
2772 (create_breakpoint): Same.
2773 * linespec.h (decode_line_full): Same.
2774 * linespec.c (decode_line_full): Same. Throw error if
2775 result.size () == 0.
2776
2777 2020-08-27 Pedro Alves <pedro@palves.net>
2778
2779 PR gdb/26524
2780 * breakpoint.c (until_break_fsm) <location_breakpoint,
2781 caller_breakpoint>: Delete fields.
2782 <breakpoints>: New field.
2783 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2784 two individual breakpoints.
2785 (until_break_fsm::should_stop): Loop over breakpoints in the
2786 breakpoint vector.
2787 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2788 vector.
2789 (until_break_command): Handle location expanding into multiple
2790 sals.
2791
2792 2020-08-27 Pedro Alves <pedro@palves.net>
2793
2794 PR gdb/26523
2795 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2796 bp_until breakpoints user-specified locations. Update intro
2797 comment.
2798
2799 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2800
2801 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2802 gdb_bfd_sections): New.
2803 * maint.c (print_bfd_section_info): Change param type to
2804 maint_print_section_data.
2805 (print_objfile_section_info): Likewise.
2806 (print_bfd_section_info_maybe_relocated): Likewise.
2807 (maintenance_info_sections): Use gdb_bfd_sections.
2808
2809 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2810
2811 * MAINTAINERS: Add ARC target and maintainer.
2812
2813 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2814
2815 * configure.tgt: ARC support for GNU/Linux.
2816 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2817 * arc-linux-tdep.c: New file.
2818 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2819 * arc-tdep.c (arc_write_pc): Use it.
2820
2821 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2822
2823 * arc-tdep.c (arc_check_for_hardware_loop): New.
2824 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2825
2826 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2827
2828 * arc-tdep.h: Include "gdbarch.h".
2829
2830 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2831
2832 * arch/arc.h
2833 (arc_gdbarch_features): New class to stir the selection of target XML.
2834 (arc_create_target_description): Use FEATURES to choose XML target.
2835 (arc_lookup_target_description): Use arc_create_target_description
2836 to create _new_ target descriptions or return the already created
2837 ones if the FEATURES is the same.
2838 * arch/arc.c: Implementation of prototypes described above.
2839 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2840 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2841 * arc-tdep.c (*_feature_name): Make feature names consistent.
2842 (arc_register_feature): A new struct to hold information about
2843 registers of a particular target/feature.
2844 (arc_check_tdesc_feature): Check if XML provides registers in
2845 compliance with ARC_REGISTER_FEATURE structs.
2846 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2847 (determine_*_reg_feature_set): Which feature name to look for.
2848 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2849 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2850 to expected ISA enums to be used in arc_gdbarch_features structs.
2851 * features/Makefile (FEATURE_XMLFILES): Add new files.
2852 * gdb/features/arc/v1-aux.c: New file.
2853 * gdb/features/arc/v1-aux.xml: Likewise.
2854 * gdb/features/arc/v1-core.c: Likewise.
2855 * gdb/features/arc/v1-core.xml: Likewise.
2856 * gdb/features/arc/v2-aux.c: Likewise.
2857 * gdb/features/arc/v2-aux.xml: Likewise.
2858 * gdb/features/arc/v2-core.c: Likewise.
2859 * gdb/features/arc/v2-core.xml: Likewise.
2860 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2861
2862 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2863 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 PR m2/26372
2866 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2867 an assert. Remove single element array indexing pattern as the
2868 MULTI_SUBSCRIPT support will handle this case too.
2869
2870 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2871
2872 * value.h (valprint_check_validity): Move declaration from
2873 here...
2874 * valprint.h (valprint_check_validity): ... to here.
2875
2876 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * debug.h: New file.
2879 * debug.c (debug_prefixed_vprintf): New function.
2880 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2881 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2882
2883 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * infrun.h (infrun_debug_printf_1): New function declaration.
2886 (infrun_debug_printf): New macro.
2887 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2888 throughout.
2889 (infrun_debug_printf): New function.
2890 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2891 (handle_jit_event): Likewise.
2892
2893 2020-08-21 Mark Wielaard <mark@klomp.org>
2894
2895 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2896
2897 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2898
2899 * frame.c (enum class frame_id_status): New.
2900 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2901 (fprintf_frame): Update.
2902 (compute_frame_id): Set frame id status to "computing" on entry.
2903 Set it back to "not_computed" on failure and to "computed" on
2904 success.
2905 (get_frame_id): Assert the frame id is not being computed.
2906 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2907 (create_new_frame): Likewise.
2908 (frame_cleanup_after_sniffer): Update assert.
2909
2910 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2911
2912 * regcache.c (pid_ptid_regcache_map): New type.
2913 (target_ptid_regcache_map): Remove.
2914 (target_pid_ptid_regcache_map): New type.
2915 (regcaches): Change type to target_pid_ptid_regcache_map.
2916 (get_thread_arch_aspace_regcache): Update.
2917 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2918 case.
2919 (regcaches_size): Update.
2920 (regcache_count): Update.
2921 (registers_changed_ptid_target_pid_test): New.
2922 (_initialize_regcache): Register new test.
2923
2924 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * regcache.c (regcache_count): New.
2927 (struct regcache_test_data): New.
2928 (regcache_test_data_up): New.
2929 (populate_regcaches_for_test): New.
2930 (regcaches_test): Remove.
2931 (get_thread_arch_aspace_regcache_test): New.
2932 (registers_changed_ptid_all_test): New.
2933 (registers_changed_ptid_target_test): New.
2934 (registers_changed_ptid_target_ptid_test): New.
2935 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2936 (_initialize_regcache): Register new tests.
2937
2938 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2941 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2942 gdbarch and aspace parameter. Use current inferior's aspace.
2943 Validate regcache's arch value.
2944 (regcaches_test): Update.
2945
2946 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * regcache.c (regcaches_test): Call registers_changed.
2949
2950 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2951
2952 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2953
2954 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2955
2956 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2957 to find the end of prologue for flang compiled binaries.
2958 * arm-tdep.c (arm_skip_prologue): Likewise.
2959 * i386-tdep.c (i386_skip_prologue): Likewise.
2960 * producer.c (producer_is_llvm): New function.
2961 (producer_parsing_tests): Added new tests for clang/flang.
2962 * producer.h (producer_is_llvm): New declaration.
2963
2964 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * linux-nat.c (linux_nat_debug_printf): New function.
2967 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2968
2969 2020-08-18 Aaron Merey <amerey@redhat.com>
2970
2971 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2972 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2973 (CLIBS): Add DEBUGINFOD_LIBS.
2974
2975 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2976
2977 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2978 'gdbarch_num_regs'.
2979
2980 2020-08-17 Tom Tromey <tromey@adacore.com>
2981
2982 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2983 ada_get_decoded_value returns NULL.
2984
2985 2020-08-17 Tom Tromey <tromey@adacore.com>
2986
2987 * python/py-inferior.c (infpy_search_memory): Use
2988 gdb_py_object_from_ulongest.
2989 * python/py-infevents.c (create_inferior_call_event_object)
2990 (create_memory_changed_event_object): Use
2991 gdb_py_object_from_ulongest.
2992 * python/py-linetable.c (ltpy_entry_get_pc): Use
2993 gdb_py_object_from_ulongest.
2994
2995 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * loc.c (class symbol_needs_eval_context): Fix indentation.
2998
2999 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3000
3001 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3002 bool.
3003
3004 2020-08-17 Tom de Vries <tdevries@suse.de>
3005
3006 PR gdb/26393
3007 * gdbtypes.c (dump_dynamic_prop): New function.
3008 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3009
3010 2020-08-15 Tom de Vries <tdevries@suse.de>
3011
3012 PR backtrace/26390
3013 * stack.c (print_frame_args): Temporarily set the selected
3014 frame to FRAME while printing the frame's arguments.
3015
3016 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3017
3018 PR breakpoints/26385
3019 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3020 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3021
3022 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3023
3024 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3025 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3026 and >= to check return value instead of == -1 and != -1.
3027
3028 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3029
3030 * utils.h (class gdb_argv) <as_array_view>: New method.
3031 * utils.c (gdb_argv_as_array_view_test): New.
3032 (_initialize_utils): Register selftest.
3033 * maint.c (maintenance_selftest): Use the new method.
3034
3035 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3036
3037 * target.h (supports_dumpcore, dumpcore): New
3038 function declarations.
3039 * target.c (supports_dumpcore, dumpcore): New
3040 functions.
3041 * target-delegates.c: Rebuild.
3042 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3043 and target_dumpcore ().
3044
3045 2020-08-13 Aaron Merey <amerey@redhat.com>
3046
3047 * debuginfod-support.c: Replace global variables with user_data.
3048
3049 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * maint.c (maintenance_selftest): Split args and pass array_view
3052 to run_tests.
3053
3054 2020-08-12 Luis Machado <luis.machado@linaro.org>
3055
3056 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3057 type's length.
3058 Use %s and pulongest to print the length.
3059
3060 2020-08-12 Pedro Alves <palves@redhat.com>
3061
3062 * NEWS: Move "Multi-target debugging support" item to the
3063 "Changes since GDB 9" section.
3064
3065 2020-08-12 Pedro Alves <palves@redhat.com>
3066
3067 PR gdb/26336
3068 * progspace.c (program_space::remove_objfile): Invalidate the
3069 frame cache.
3070
3071 2020-08-11 Tom de Vries <tdevries@suse.de>
3072
3073 * MAINTAINERS: Mark ms1 as deleted.
3074
3075 2020-08-10 Luis Machado <luis.machado@linaro.org>
3076
3077 PR gdb/26310
3078
3079 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3080 act accordingly.
3081 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3082 movz/str/stur/stp skipping behavior.
3083
3084 2020-08-10 Luis Machado <luis.machado@linaro.org>
3085
3086 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3087 struct user_sve_header instead of struct sve_context.
3088
3089 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3090
3091 * read.h (dwarf2_fetch_die_loc_sect_off,
3092 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3093 `void *` parameter with function_view.
3094 * read.c (dwarf2_fetch_die_loc_sect_off,
3095 dwarf2_fetch_die_loc_cu_off): Likewise.
3096 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3097 (per_cu_dwarf_call): Adjust.
3098 (get_frame_address_in_block_wrapper): Remove.
3099 (indirect_synthetic_pointer): Adjust.
3100 (get_ax_pc): Remove.
3101 (dwarf2_compile_expr_to_ax): Adjust.
3102
3103 2020-08-08 Tom de Vries <tdevries@suse.de>
3104
3105 PR build/26344
3106 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3107 constructor.
3108 * regcache.c (get_thread_arch_aspace_regcache): Same.
3109
3110 2020-08-07 Tom Tromey <tromey@adacore.com>
3111
3112 * ravenscar-thread.c
3113 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3114 New method.
3115 (ravenscar_thread_target::wait): Check
3116 runtime_initialized.
3117 (ravenscar_thread_target::prepare_to_store)
3118 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3119 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3120 (ravenscar_thread_target::stopped_by_watchpoint)
3121 (ravenscar_thread_target::stopped_data_address)
3122 (ravenscar_thread_target::core_of_thread): Use
3123 scoped_restore_current_thread and
3124 set_base_thread_from_ravenscar_task.
3125
3126 2020-08-07 Tom Tromey <tromey@adacore.com>
3127
3128 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3129
3130 2020-08-07 Tom Tromey <tromey@adacore.com>
3131
3132 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3133 update_inferior_ptid before update_thread_list.
3134 (temporarily_change_regcache_ptid): New class.
3135 (ravenscar_thread_target::fetch_registers)
3136 (ravenscar_thread_target::store_registers)
3137 (ravenscar_thread_target::prepare_to_store): Use base thread when
3138 forwarding operation.
3139
3140 2020-08-07 Tom Tromey <tromey@adacore.com>
3141
3142 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3143 "is_pid" case.
3144
3145 2020-08-07 Tom Tromey <tromey@adacore.com>
3146
3147 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3148 New methods.
3149 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3150 first.
3151 (ravenscar_thread_target::add_thread): Rename from
3152 ravenscar_add_thread.
3153 (ravenscar_thread_target::update_thread_list): Use a lambda.
3154 (ravenscar_thread_target::xfer_partial): New method.
3155
3156 2020-08-07 Tom Tromey <tromey@adacore.com>
3157
3158 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3159 gdb::function_view.
3160 (iterate_over_live_ada_tasks): Change type of argument.
3161 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3162 of argument.
3163
3164 2020-08-07 Tom Tromey <tromey@adacore.com>
3165
3166 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3167 Remove.
3168 (ravenscar_thread_target::extra_thread_info): Remove.
3169 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3170 defer to target beneath for non-Ravenscar threads.
3171
3172 2020-08-07 Tom Tromey <tromey@adacore.com>
3173
3174 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3175 get_base_thread_from_ravenscar_task>: Now methods.
3176 <m_cpu_map>: New member.
3177 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3178 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3179 (ravenscar_thread_target::task_is_currently_active): Update.
3180 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3181 Now a method.
3182 (ravenscar_thread_target::add_active_thread): Put initial thread
3183 into the m_cpu_map.
3184
3185 2020-08-07 Tom Tromey <tromey@adacore.com>
3186
3187 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3188 event_ptid.
3189
3190 2020-08-07 Tom Tromey <tromey@adacore.com>
3191
3192 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3193 runtime_initialized.
3194
3195 2020-08-07 Tom Tromey <tromey@adacore.com>
3196
3197 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3198 add_active_thread.
3199 (ravenscar_thread_target::add_active_thread): Now public.
3200 (ravenscar_inferior_created): Call add_active_thread after pushing
3201 the target.
3202
3203 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3204
3205 * regcache.c (ptid_regcache_map): New type.
3206 (target_ptid_regcache_map): New type.
3207 (regcaches): Change type to target_ptid_regcache_map.
3208 (get_thread_arch_aspace_regcache): Update to regcaches' new
3209 type.
3210 (regcache_thread_ptid_changed): Likewise.
3211 (registers_changed_ptid): Likewise.
3212 (regcaches_size): Likewise.
3213 (regcaches_test): Update.
3214 (regcache_thread_ptid_changed): Update.
3215 * regcache.h (regcache_up): New type.
3216 * gdbsupport/ptid.h (hash_ptid): New struct.
3217
3218 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3219
3220 * observable.h (thread_ptid_changed): Add parameter
3221 `process_stratum_target *`.
3222 * infrun.c (infrun_thread_ptid_changed): Add parameter
3223 `process_stratum_target *` and use it.
3224 (selftests): New namespace.
3225 (infrun_thread_ptid_changed): New function.
3226 (_initialize_infrun): Register selftest.
3227 * regcache.c (regcache_thread_ptid_changed): Add parameter
3228 `process_stratum_target *` and use it.
3229 (regcache_thread_ptid_changed): New function.
3230 (_initialize_regcache): Register selftest.
3231 * thread.c (thread_change_ptid): Pass target to
3232 thread_ptid_changed observable.
3233
3234 2020-08-06 Caroline Tice <cmtice@google.com>
3235
3236 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3237 (struct dwp_sections): Update field comments. Add loclists and
3238 rnglists fields.
3239 (struct virtual_v2_dwo_sections): Rename struct to
3240 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3241 size & offset fields for loclists and rnglists.
3242 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3243 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3244 skipping dummy type units.
3245 (create_dwp_hash_table): Update the large comment above the function to
3246 discuss Version 5 DWP files as well, with references. Update all the
3247 version checks in the function to check for version 5 as well. Add new
3248 section at the end to create dwp hash table for version 5.
3249 (create_dwp_v2_section): Rename function to
3250 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3251 Add V5 to error message text.
3252 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3253 into calls to create_dwp_v2_or_v5_section.
3254 (create_dwo_unit_in_dwp_v5): New function.
3255 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3256 check for version2; add else clause to handle version 5.
3257 (open_and_init_dwo_file): Add code to check dwarf version & only call
3258 create_debug_types_hash_table (with sections.types) if version is not 5;
3259 else call create_debug_type_hash_table, with sections.info.
3260 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3261 version 5.
3262 (dwarf2_locate_v5_dwp_sections): New function.
3263 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3264 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3265
3266 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * regcache.h (class regcache): Remove friend
3269 registers_changed_ptid.
3270 <regcache_thread_ptid_changed>: Remove.
3271 <regcaches>: Remove.
3272 * regcache.c (regcache::regcaches): Rename to...
3273 (regcaches): ... this. Make static.
3274 (get_thread_arch_aspace_regcache): Update.
3275 (regcache::regcache_thread_ptid_changed): Rename to...
3276 (regcache_thread_ptid_changed): ... this. Update.
3277 (class regcache_access): Remove.
3278 (regcaches_test): Update.
3279 (_initialize_regcache): Update.
3280 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3281 <forward_list>.
3282
3283 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * regcache.h (class regcache) <current_regcache>: Rename to...
3286 <regcaches>: ... this. Move doc here.
3287 * regcache.c (regcache::current_regcache) Rename to...
3288 (regcache::regcaches): ... this. Move doc to header.
3289 (get_thread_arch_aspace_regcache): Update.
3290 (regcache::regcache_thread_ptid_changed): Update.
3291 (registers_changed_ptid): Update.
3292 (class regcache_access) <current_regcache_size>: Rename to...
3293 <regcaches_size>: ... this.
3294 (current_regcache_test): Rename to...
3295 (regcaches_test): ... this.
3296 (_initialize_regcache): Update.
3297
3298 2020-08-06 Victor Collod <vcollod@nvidia.com>
3299
3300 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3301
3302 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3303
3304 * corelow.c (core_target::build_file_mappings): Don't output
3305 null pathname in warning.
3306
3307 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3308
3309 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3310 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3311 gdb.dwarf2/dw2-single-line-discriminators.exp,
3312 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3313
3314 2020-08-05 Tom Tromey <tromey@adacore.com>
3315
3316 PR rust/26197:
3317 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3318 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3319 Fix off-by-one and type size errors in ordinary case.
3320
3321 2020-08-05 Tom de Vries <tdevries@suse.de>
3322
3323 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3324 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3325
3326 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * frame.h (frame_id_p): Return bool.
3329 (frame_id_artificial_p): Return bool.
3330 (frame_id_eq): Return bool.
3331 (has_stack_frames): Return bool.
3332 (get_selected_frame): Fix typo in comment.
3333 (get_frame_pc_if_available): Return bool.
3334 (get_frame_address_in_block_if_available): Return bool.
3335 (get_frame_func_if_available): Return bool.
3336 (read_frame_register_unsigned): Return bool.
3337 (get_frame_register_bytes): Return bool.
3338 (safe_frame_unwind_memory): Return bool.
3339 (deprecated_frame_register_read): Return bool.
3340 (frame_unwinder_is): Return bool.
3341 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3342 bool.
3343 <this_id::p>: Likewise.
3344 <prev_p>: Likewise.
3345 (frame_stash_add): Return bool.
3346 (get_frame_id): Use bool.
3347 (frame_id_build_special) Use bool.
3348 (frame_id_build_unavailable_stack): Use bool.
3349 (frame_id_build): Use bool.
3350 (frame_id_p): Return bool, use true/false instead of 1/0.
3351 (frame_id_artificial_p): Likewise.
3352 (frame_id_eq): Likewise.
3353 (frame_id_inner): Likewise.
3354 (get_frame_func_if_available): Likewise.
3355 (read_frame_register_unsigned): Likewise.
3356 (deprecated_frame_register_read): Likewise.
3357 (get_frame_register_bytes): Likewise.
3358 (has_stack_frames): Likewise.
3359 (inside_main_func): Likewise.
3360 (inside_entry_func): Likewise.
3361 (get_frame_pc_if_available): Likewise.
3362 (get_frame_address_in_block_if_available): Likewise.
3363 (frame_unwinder_is): Likewise.
3364 (safe_frame_unwind_memory): Likewise.
3365 (frame_unwind_arch): Likewise.
3366
3367 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3370 type to cached_copy_status.
3371 (fprintf_frame): Adjust.
3372 (get_frame_func_if_available): Adjust.
3373 (frame_cleanup_after_sniffer): Adjust.
3374
3375 2020-08-04 Mark Wielaard <mark@klomp.org>
3376
3377 * MAINTAINERS (Write After Approval): Update email address.
3378
3379 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3380
3381 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3382 dynamic_prop::const_val.
3383
3384 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3385
3386 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3387 dynamic_prop::kind.
3388
3389 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3390
3391 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3392
3393 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3394
3395 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3396
3397 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3398 Jose E. Marchesi <jose.marchesi@oracle.com>
3399
3400 * configure.tgt: Add entry for bpf-*-*.
3401 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3402 (ALLDEPFILES): Add bpf-tdep.c.
3403 * bpf-tdep.c: New file.
3404 * MAINTAINERS: Add bpf target and maintainer.
3405 * NEWS: Mention the support for the new target.
3406
3407 2020-08-04 Tom de Vries <tdevries@suse.de>
3408
3409 PR symtab/23270
3410 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3411 Error.
3412
3413 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3414
3415 * syscalls/freebsd.xml: Regenerate.
3416
3417 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3418
3419 * syscalls/update-freebsd.sh: Fix usage and year range.
3420
3421 2020-08-03 Tom de Vries <tdevries@suse.de>
3422
3423 PR symtab/26333
3424 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3425 DW_LNE_lo_user/DW_LNE_hi_user range.
3426
3427 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3428
3429 PR ada/26318
3430 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3431 kind.
3432
3433 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434
3435 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3436
3437 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3438
3439 * breakpoint.c (set_breakpoint_condition): Update the condition
3440 expressions after checking that the input condition string parses
3441 successfully and does not contain junk at the end.
3442
3443 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444
3445 * breakpoint.c (set_breakpoint_condition): Update the
3446 condition string after parsing the new condition successfully.
3447
3448 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3449
3450 * proc-api.c (_STRUCTURED_PROC): Don't define.
3451 * proc-events.c: Likewise.
3452 * proc-flags.c: Likewise.
3453 * proc-why.c: Likewise.
3454 * procfs.c: Likewise.
3455
3456 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3457 * configure, config.in: Regenerate.
3458
3459 2020-07-30 Tom de Vries <tdevries@suse.de>
3460
3461 PR build/26320
3462 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3463 m_red/m_green/m_blue in a union.
3464
3465 2020-07-29 Tom de Vries <tdevries@suse.de>
3466
3467 PR tdep/26280
3468 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3469
3470 2020-07-28 Tom Tromey <tromey@adacore.com>
3471
3472 PR symtab/26270:
3473 * symtab.h (find_pc_partial_function_sym): Declare.
3474 * cli/cli-cmds.c (disassemble_command): Use
3475 find_pc_partial_function_sym. Check asm_demangle.
3476 * blockframe.c (cache_pc_function_sym): New global.
3477 (cache_pc_function_name): Remove.
3478 (clear_pc_function_cache): Update.
3479 (find_pc_partial_function_sym): New function, from
3480 find_pc_partial_function.
3481 (find_pc_partial_function): Rewrite using
3482 find_pc_partial_function_sym.
3483
3484 2020-07-28 Tom Tromey <tromey@adacore.com>
3485
3486 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3487 help. Add usage.
3488
3489 2020-07-28 Tom Tromey <tromey@adacore.com>
3490
3491 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3492 <DW_OP_GNU_variable_value>: Cast to address type.
3493
3494 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3495
3496 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3497 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3498 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3499 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3500 (nbsd_get_siginfo_type): New.
3501 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3502 (_initialize_nbsd_tdep): New.
3503
3504 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3505
3506 PR binutils/26301
3507 * configure: Regenerated.
3508
3509 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3510
3511 PR binutils/26301
3512 * configure: Regenerated.
3513
3514 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3515
3516 * python/py-frame.c: Remove 'user-regs.h' include.
3517 (frapy_read_register): Rewrite to make use of
3518 gdbpy_parse_register_id.
3519 * python/py-registers.c (gdbpy_parse_register_id): New function,
3520 moved here from python/py-unwind.c. Updated the return type, and
3521 also accepts register descriptor objects.
3522 * python/py-unwind.c: Remove 'user-regs.h' include.
3523 (pyuw_parse_register_id): Moved to python/py-registers.c.
3524 (unwind_infopy_add_saved_register): Update to use
3525 gdbpy_parse_register_id.
3526 (pending_framepy_read_register): Likewise.
3527 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3528
3529 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3530
3531 * python/py-registers.c: Add 'user-regs.h' include.
3532 (register_descriptor_iter_find): New function.
3533 (register_descriptor_iterator_object_methods): New static global
3534 methods array.
3535 (register_descriptor_iterator_object_type): Add pointer to methods
3536 array.
3537
3538 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3539
3540 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3541 for all architectures on FreeBSD 11.3 and later.
3542
3543 2020-07-27 Tom Tromey <tromey@adacore.com>
3544
3545 * gcore.h (load_corefile): Don't declare.
3546
3547 2020-07-27 Tom de Vries <tdevries@suse.de>
3548
3549 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3550 * config.in: Regenerate.
3551 * configure: Regenerate.
3552
3553 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3554
3555 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3556 ws2tcpip.h. When checking whether socklen_t type is defined, use
3557 ws2tcpip.h if it is available and sys/socket.h isn't.
3558 * configure: Regenerate.
3559 * config.in: Regenerate.
3560
3561 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3562
3563 PR fortran/23051
3564 PR fortran/26139
3565 * valops.c (value_ind): Pass address to
3566 readjust_indirect_value_type.
3567 * value.c (readjust_indirect_value_type): Make parameter
3568 non-const, and add extra address parameter. Resolve original type
3569 before using it.
3570 * value.h (readjust_indirect_value_type): Update function
3571 signature and comment.
3572
3573 2020-07-25 Tom de Vries <tdevries@suse.de>
3574
3575 PR symtab/26243
3576 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3577 entries.
3578
3579 2020-07-24 Aaron Merey <amerey@redhat.com>
3580
3581 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3582 * configure: Rebuild.
3583
3584 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3585
3586 PR corefiles/26294
3587 * corelow.c (_initialize_corelow): Add period to help text
3588 for "maintenance print core-file-backed-mappings".
3589
3590 2020-07-23 Pedro Alves <pedro@palves.net>
3591
3592 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3593 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3594 meanwhile.
3595 * frame.c (frame_cache_generation, get_frame_cache_generation):
3596 New.
3597 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3598 (get_prev_frame_if_no_cycle): On exception, don't touch
3599 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3600 * frame.h (get_frame_cache_generation): Declare.
3601
3602 2020-07-23 Tom de Vries <tdevries@suse.de>
3603
3604 PR tui/26282
3605 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3606 New default constructor.
3607
3608 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3611 exclude non-statement entries.
3612
3613 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3614
3615 * NEWS (New commands): Mention new command
3616 "maintenance print core-file-backed-mappings".
3617
3618 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3619
3620 * corelow.c (gdbcmd.h): Include.
3621 (core_target::info_proc_mappings): New method.
3622 (get_current_core_target): New function.
3623 (maintenance_print_core_file_backed_mappings): New function.
3624 (_initialize_corelow): Add core-file-backed-mappings to
3625 "maint print" commands.
3626
3627 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3628
3629 * linux-tdep.c (dump_note_entry_p): New function.
3630 (linux_dump_mapping_p_ftype): New typedef.
3631 (linux_find_memory_regions_full): Add new parameter,
3632 should_dump_mapping_p.
3633 (linux_find_memory_regions): Adjust call to
3634 linux_find_memory_regions_full.
3635 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3636 call to linux_find_memory_regions_full.
3637
3638 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3639
3640 * corelow.c (solist.h, unordered_map): Include.
3641 (class core_target): Add field m_core_file_mappings and
3642 method build_file_mappings.
3643 (core_target::core_target): Call build_file_mappings.
3644 (core_target::~core_target): Free memory associated with
3645 m_core_file_mappings.
3646 (core_target::build_file_mappings): New method.
3647 (core_target::xfer_partial): Use m_core_file_mappings
3648 for memory transfers.
3649 * linux-tdep.c (linux_read_core_file_mappings): New
3650 function.
3651 (linux_core_info_proc_mappings): Rewrite to use
3652 linux_read_core_file_mappings.
3653 (linux_init_abi): Register linux_read_core_file_mappings.
3654
3655 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3656
3657 * arch-utils.c (default_read_core_file_mappings): New function.
3658 * arch-utils.c (default_read_core_file_mappings): Declare.
3659 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3660 * gdbarch.h, gdbarch.c: Regenerate.
3661
3662 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3663
3664 PR corefiles/25631
3665 * corelow.c (core_target:xfer_partial): Revise
3666 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3667 case after first checking the stratum beneath the core
3668 target.
3669 (has_all_memory): Return true.
3670 * target.c (raw_memory_xfer_partial): Revise comment
3671 regarding use of has_all_memory.
3672
3673 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3674
3675 * exec.h (section_table_xfer_memory): Revise declaration,
3676 replacing section name parameter with an optional callback
3677 predicate.
3678 * exec.c (section_table_xfer_memory): Likewise.
3679 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3680 of section_table_xfer_memory.
3681
3682 2020-07-22 Tom Tromey <tromey@adacore.com>
3683
3684 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3685 lookup_symbol_search_name.
3686
3687 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3690 redundant local variable.
3691 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3692 reference, not pointer, update code accordingly.
3693
3694 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3695 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3696
3697 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3698 * jit.c (jit_breakpoint_re_set_internal): Use the
3699 `skip_jit_symbol_lookup` field.
3700
3701 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3702 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 * jit.c (jit_read_descriptor): Define the descriptor address once,
3705 use twice.
3706 (jit_breakpoint_deleted): Move the declaration of the loop variable
3707 `iter` into the loop header.
3708 (jit_breakpoint_re_set_internal): Move the declaration of the local
3709 variable `objf_data` to the first point of definition.
3710 (jit_event_handler): Move the declaration of local variables
3711 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3712 Rename `objf` to `jited`.
3713
3714 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3715
3716 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3717 Remove.
3718 * jit.c (get_jiter_objfile_data): Update.
3719
3720 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3721 Simon Marchi <simon.marchi@polymtl.ca>
3722
3723 * jit.c (struct jit_program_space_data): Remove.
3724 (jit_program_space_key): Remove.
3725 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3726 stuff.
3727 (get_jit_program_space_data): Remove.
3728 (jit_breakpoint_deleted): Iterate on all of the program space's
3729 objfiles.
3730 (jit_inferior_init): Likewise.
3731 (jit_breakpoint_re_set_internal): Likewise. Also change return
3732 type to void.
3733 (jit_breakpoint_re_set): Pass current_program_space to
3734 jit_breakpoint_re_set_internal.
3735
3736 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3737
3738 * jit.h (struct jiter_objfile_data) <cached_code_address,
3739 jit_breakpoint>: Move to here from ...
3740 * jit.c (jit_program_space_data): ... here.
3741 (jiter_objfile_data::~jiter_objfile_data): Update.
3742 (jit_breakpoint_deleted): Update.
3743 (jit_breakpoint_re_set_internal): Update.
3744
3745 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3746
3747 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3748 checks.
3749 (jit_read_descriptor): Remove NULL check.
3750 (jit_event_handler): Add an assertion.
3751
3752 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * jit.h (struct jit_objfile_data): Split into...
3755 (struct jiter_objfile_data): ... this ...
3756 (struct jited_objfile_data): ... and this.
3757 * objfiles.h (struct objfile) <jit_data>: Remove.
3758 <jiter_data, jited_data>: New fields.
3759 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3760 (jiter_objfile_data::~jiter_objfile_data): ... this.
3761 (get_jit_objfile_data): Rename to ...
3762 (get_jiter_objfile_data): ... this.
3763 (add_objfile_entry): Update.
3764 (jit_read_descriptor): Use get_jiter_objfile_data.
3765 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3766 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3767 (jit_inferior_exit_hook): Use objfile's jited_data field.
3768
3769 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3770
3771 * jit.h: Forward-declare `struct minimal_symbol`.
3772 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3773 constructor, destructor, and an objfile* field.
3774 * jit.c (jit_objfile_data): Remove.
3775 (struct jit_objfile_data): Migrate from here to jit.h.
3776 (jit_objfile_data::~jit_objfile_data): New destructor
3777 implementation with code moved from free_objfile_data.
3778 (free_objfile_data): Delete.
3779 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3780 (jit_find_objf_with_entry_addr): Ditto.
3781 (jit_inferior_exit_hook): Ditto.
3782 (_initialize_jit): Remove the call to
3783 register_objfile_data_with_cleanup.
3784 * objfiles.h (struct objfile) <jit_data>: New field.
3785
3786 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3787
3788 * jit.h: Forward-declare `struct objfile`.
3789 (jit_event_handler): Add a second parameter, the JITer objfile.
3790 * jit.c (jit_read_descriptor): Change the signature to take the
3791 JITer objfile as an argument instead of the jit_program_space_data.
3792 (jit_inferior_init): Update the call to jit_read_descriptor.
3793 (jit_event_handler): Use the new JITer objfile argument when calling
3794 jit_read_descriptor.
3795 * breakpoint.c (handle_jit_event): Update the call to
3796 jit_event_handler to pass the JITer objfile.
3797
3798 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3799
3800 * gdbarch.c: Regenerate.
3801 * gdbarch.h: Regenerate.
3802 * gdbarch.sh (handle_segmentation_fault): Remove method.
3803 * infrun.c (handle_segmentation_fault): Remove.
3804 (print_signal_received_reason): Remove call to
3805 handle_segmentation_fault.
3806
3807 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3808
3809 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3810 Rename to sparc64_linux_report_signal_info and add siggnal
3811 argument.
3812 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3813 instead of sparc64_linux_handle_segmentation_fault.
3814
3815 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3816
3817 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3818 i386_linux_report_signal_info instead of
3819 i386_linux_handle_segmentation_fault.
3820 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3821 to i386_linux_report_signal_info and add siggnal argument.
3822 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3823 of i386_linux_handle_segmentation_fault.
3824 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3825 to i386_linux_report_signal_info and add siggnal argument.
3826
3827 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3828
3829 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3830 hook if present.
3831
3832 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3833
3834 * gdbarch.c: Regenerate.
3835 * gdbarch.h: Regenerate.
3836 * gdbarch.sh (report_signal_info): New method.
3837 * infrun.c (print_signal_received_reason): Invoke gdbarch
3838 report_signal_info hook if present.
3839
3840 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * python/py-registers.c : Add 'unordered_map' include.
3843 (gdbpy_new_reggroup): Renamed to...
3844 (gdbpy_get_reggroup): ...this. Update to only create register
3845 group descriptors when needed.
3846 (gdbpy_reggroup_iter_next): Update.
3847
3848 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * python/py-registers.c (gdbpy_register_object_data): New static
3851 global.
3852 (gdbpy_register_object_data_init): New function.
3853 (gdbpy_new_register_descriptor): Renamed to...
3854 (gdbpy_get_register_descriptor): ...this, and update to reuse
3855 existing register descriptors where possible.
3856 (gdbpy_register_descriptor_iter_next): Update.
3857 (gdbpy_initialize_registers): Register new gdbarch data.
3858
3859 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * linux-nat.c (stopped_pids): Make static.
3862
3863 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3864
3865 PR ada/26235
3866 * gdbtypes.c (ada_discrete_type_low_bound,
3867 ada_discrete_type_high_bound): Handle undefined bounds.
3868
3869 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3870
3871 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3872 declaration.
3873 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3874 function.
3875
3876 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3877
3878 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3879 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3880 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3881 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3882 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3883 method.
3884
3885 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3886
3887 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3888 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3889 which are deprecated in Guile 3.0.
3890 * configure.ac (try_guile_versions): Add "guile-3.0".
3891 * configure (try_guile_versions): Regenerate.
3892 * NEWS: Update entry.
3893
3894 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3895 Doug Evans <dje@google.com>
3896
3897 PR gdb/21104
3898 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3899 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3900 USING_GUILE_BEFORE_2_2.
3901 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3902 Change type to 'scm_t_port_type *'.
3903 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3904 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3905 parameter and honor it. Update callers.
3906 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3907 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3908 functions.
3909 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3910 USING_GUILE_BEFORE_2_2.
3911 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3912 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3913 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3914 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3915 and 'SCM_PORT_TYPE'.
3916 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3917 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3918 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3919 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3920 [!USING_GUILE_BEFORE_2_2]: New functions.
3921 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3922 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3923 'gdbscm_memory_port_read'.
3924 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3925 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3926 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3927 function.
3928 (ioscm_init_memory_port): Remove.
3929 (ioscm_init_memory_port_stream): New function
3930 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3931 function.
3932 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3933 Return scm_from_uint (0).
3934 (gdbscm_set_memory_port_read_buffer_size_x)
3935 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3936 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3937 Return scm_from_uint (0).
3938 (gdbscm_set_memory_port_write_buffer_size_x)
3939 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3940 * configure.ac (try_guile_versions): Add "guile-2.2".
3941 * configure: Regenerate.
3942 * NEWS: Add entry.
3943
3944 2020-07-18 Tom Tromey <tom@tromey.com>
3945
3946 * linux-nat.c (linux_multi_process): Remove.
3947 (linux_nat_target::supports_multi_process): Return true.
3948
3949 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3952 (riscv_lookup_target_description): Return pointer out of
3953 unique_ptr.
3954 * target-descriptions.c (allocate_target_description): Add
3955 comment.
3956 (target_desc_deleter::operator()): Likewise.
3957 * target-descriptions.h (struct target_desc_deleter): Moved to
3958 gdbsupport/tdesc.h.
3959 (target_desc_up): Likewise.
3960
3961 2020-07-17 Tom Tromey <tromey@adacore.com>
3962
3963 * linux-nat.c (linux_nat_target::supports_non_stop)
3964 (linux_nat_target::always_non_stop_p): Use "true".
3965 (linux_nat_target::supports_disable_randomization): Use "true" and
3966 "false".
3967
3968 2020-07-16 Caroline Tice <cmtice@google.com>
3969
3970 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3971 (RNGLIST_HEADER_SIZE64): New constant definition.
3972 (struct dwop_section_names): Add rnglists_dwo.
3973 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3974 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3975 (struct dwo_sections): Add rnglists field.
3976 (read_attribut_reprocess): Add tag parameter.
3977 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3978 (cu_debug_rnglists_section): New function (decl & definition).
3979 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3980 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3981 die whose range is being checked; get rnglist section from
3982 cu_debug_rnglists_section, to get from either objfile or dwo file as
3983 appropriate. Add cases for DW_RLE_base_addressx,
3984 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3985 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3986 test inside if-condition and updating complaint message.
3987 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3988 dwarf2_rnglists_process.
3989 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3990 dwarf2_ranges_process.
3991 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3992 need_ranges_base and update comment appropriately. Also pass die tag
3993 to dwarf2_ranges_read.
3994 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3995 need_ranges_base and update comment appropriately. Also pass die tag
3996 to dwarf2_ranges_process.
3997 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3998 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3999 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4000 need_ranges_base and update comment appropriately. Also pass die tag
4001 to read_attribute_reprocess and dwarf2_ranges_read.
4002 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4003 and update function comment appropriately.
4004 (read_loclist_index): Call read_loclists_rnglists_header instead of
4005 read_loclist_header.
4006 (read_rnglist_index): New function.
4007 (read_attribute_reprocess): Add tag parameter. Add code for
4008 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4009 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4010
4011 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4012
4013 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4014 being resolved.
4015
4016 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4017
4018 * arch-utils.c (show_architecture): Update formatting of messages.
4019
4020 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * gdbtypes.h (struct type) <bounds>: Handle array and string
4023 types.
4024 * ada-lang.c (assign_aggregate): Use type::bounds on
4025 array/string type.
4026 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4027 * c-varobj.c (c_number_of_children): Likewise.
4028 (c_describe_child): Likewise.
4029 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4030 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4031 (f_type_print_base): Likewise.
4032 * f-valprint.c (f77_array_offset_tbl): Likewise.
4033 (f77_get_upperbound): Likewise.
4034 (f77_print_array_1): Likewise.
4035 * guile/scm-type.c (gdbscm_type_range): Likewise.
4036 * m2-typeprint.c (m2_array): Likewise.
4037 (m2_is_long_set_of_type): Likewise.
4038 * m2-valprint.c (get_long_set_bounds): Likewise.
4039 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4040 * python/py-type.c (typy_range): Likewise.
4041 * rust-lang.c (rust_internal_print_type): Likewise.
4042 * type-stack.c (type_stack::follow_types): Likewise.
4043 * valarith.c (value_subscripted_rvalue): Likewise.
4044 * valops.c (value_cast): Likewise.
4045
4046 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4049 callers to use the equivalent accessor methods.
4050
4051 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4054 (struct type) <bit_stride>: New method.
4055 (TYPE_BIT_STRIDE): Remove.
4056 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4057
4058 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4061 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4062 callers to use the equivalent accessor methods instead.
4063
4064 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4067 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4068 callers to use the equivalent accessor methods instead.
4069
4070 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4073 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4074 to use dynamic_prop::kind.
4075
4076 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4079 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4080 to get the bound property's kind and check against
4081 PROP_UNDEFINED.
4082
4083 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4086 all callers to use type::range_bounds followed by
4087 dynamic_prop::{low,high}.
4088
4089 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4090
4091 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4092 const_val, set_const_val, baton, set_locexpr, set_loclist,
4093 set_addr_offset, variant_parts, set_variant_parts,
4094 original_type, set_original_type>: New methods.
4095 <kind>: Rename to...
4096 <m_kind>: ... this. Update all users to use the new methods
4097 instead.
4098 <data>: Rename to...
4099 <m_data>: ... this. Update all users to use the new methods
4100 instead.
4101
4102 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * gdbtypes.c (get_discrete_bounds): Return failure if
4105 the range type's bounds are not both defined and constant
4106 values.
4107 (get_array_bounds): Update comment. Remove undefined bound check.
4108
4109 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4110
4111 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4112 the type::bounds method directly.
4113
4114 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4115
4116 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4117 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4118 are used to set the range type's bounds to use set_bounds.
4119
4120 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4121
4122 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4123
4124 2020-07-10 Pedro Alves <pedro@palves.net>
4125
4126 * gdbthread.h (inferior_ref): Define.
4127 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4128 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4129 * thread.c
4130 (scoped_restore_current_thread::restore):
4131 Adjust to gdb::ref_ptr.
4132 (scoped_restore_current_thread::~scoped_restore_current_thread):
4133 Remove manual decref handling.
4134 (scoped_restore_current_thread::scoped_restore_current_thread):
4135 Adjust to use
4136 inferior_ref::new_reference/thread_info_ref::new_reference.
4137 Incref the thread before calling get_frame_id instead of after.
4138 Let TARGET_CLOSE_ERROR propagate.
4139
4140 2020-07-10 Pedro Alves <pedro@palves.net>
4141
4142 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4143 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4144 NOT_AVAILABLE_ERROR.
4145 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4146 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4147
4148 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4149 Pedro Alves <pedro@palves.net>
4150
4151 PR gdb/26199
4152 * infrun.c (threads_are_resumed_pending_p): Delete.
4153 (do_target_wait): Remove threads_are_executing and
4154 threads_are_resumed_pending_p checks from the inferior_matches
4155 lambda. Update comments.
4156
4157 2020-07-10 Pedro Alves <pedro@palves.net>
4158
4159 PR gdb/26199
4160 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4161 executing threads.
4162
4163 2020-07-10 Pedro Alves <pedro@palves.net>
4164
4165 PR gdb/26199
4166 * infrun.c (handle_no_resumed): Handle multiple targets.
4167
4168 2020-07-10 Pedro Alves <pedro@palves.net>
4169
4170 PR gdb/26199
4171 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4172 target_is_async_p.
4173
4174 2020-07-10 Pedro Alves <pedro@palves.net>
4175
4176 PR gdb/26199
4177 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4178 threads, not all threads.
4179
4180 2020-07-10 Pedro Alves <pedro@palves.net>
4181
4182 PR gdb/26199
4183 * remote.c (remote_target::open_1): Pass remote target pointer as
4184 data to create_async_event_handler.
4185 (remote_async_inferior_event_handler): Mark async event handler
4186 before returning if the remote target still has either pending
4187 events or unacknowledged notifications.
4188
4189 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4190
4191 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4192 declaration.
4193 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4194 function.
4195
4196 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4197
4198 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4199 inferior_ptid.
4200
4201 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4202
4203 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4204 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4205 AT_FREEBSD_PS_STRINGS.
4206
4207 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4208
4209 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4210 of debugfile path on Windows.
4211
4212 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4213
4214 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4215 argument to 'data'.
4216
4217 2020-07-08 Tom Tromey <tromey@adacore.com>
4218
4219 * ada-lang.c (ada_exception_message_1): Use read_memory.
4220
4221 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 PR python/22748
4224 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4225 special handling for inline frames.
4226 * findvar.c (value_of_register_lazy): Skip inline frames when
4227 creating lazy register values.
4228 * frame.c (frame_id_computed_p): Delete definition.
4229 * frame.h (frame_id_computed_p): Delete declaration.
4230
4231 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * NEWS: Mention additions to Python API.
4234 * python/py-arch.c (archpy_register_groups): New function.
4235 (arch_object_methods): Add 'register_groups' method.
4236 * python/py-registers.c (reggroup_iterator_object): New struct.
4237 (reggroup_object): New struct.
4238 (gdbpy_new_reggroup): New function.
4239 (gdbpy_reggroup_to_string): New function.
4240 (gdbpy_reggroup_name): New function.
4241 (gdbpy_reggroup_iter): New function.
4242 (gdbpy_reggroup_iter_next): New function.
4243 (gdbpy_new_reggroup_iterator): New function
4244 (gdbpy_initialize_registers): Register new types.
4245 (reggroup_iterator_object_type): Define new Python type.
4246 (gdbpy_reggroup_getset): New static global.
4247 (reggroup_object_type): Define new Python type.
4248 * python/python-internal.h
4249
4250 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4251
4252 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4253 * python/py-arch.c (archpy_registers): New function.
4254 (arch_object_methods): Add 'registers' method.
4255 * python/py-registers.c: New file.
4256 * python/python-internal.h
4257 (gdbpy_new_register_descriptor_iterator): Declare.
4258 (gdbpy_initialize_registers): Declare.
4259 * python/python.c (do_start_initialization): Call
4260 gdbpy_initialize_registers.
4261 * NEWS: Mention additions to the Python API.
4262
4263 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * NEWS: Mention new Python API method.
4266 * python/py-unwind.c (pending_framepy_architecture): New function.
4267 (pending_frame_object_methods): Add architecture method.
4268
4269 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * gdbarch.c: Regenerate.
4272 * gdbarch.h: Regenerate.
4273 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4274 (gdbarch_data): Use internal_error for the case where
4275 deprecated_set_gdbarch_data was originally needed.
4276 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4277 and use passed in obstack.
4278 (libunwind_frame_set_descr): Should no longer get back NULL from
4279 gdbarch_data.
4280 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4281 type.
4282 * user-regs.c (user_regs_init): Update parameters, and use passed
4283 in obstack.
4284 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4285 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4286
4287 2020-07-06 Tom de Vries <tdevries@suse.de>
4288
4289 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4290 End-Of-Sequence in lte_is_less_than.
4291 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4292 "gdb: Don't reorder line table entries too much when sorting".
4293
4294 2020-07-06 Tom de Vries <tdevries@suse.de>
4295
4296 PR tui/26205
4297 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4298
4299 2020-07-05 Tom de Vries <tdevries@suse.de>
4300
4301 PR build/26187
4302 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4303 std::uncaught_exceptions instead of deprecated
4304 std::uncaught_exception.
4305
4306 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4307
4308 * macroexp.h (macro_stringify): Return
4309 gdb::unique_xmalloc_ptr<char>.
4310 * macroexp.c (macro_stringify): Likewise.
4311 * macrotab.c (fixup_definition): Update.
4312
4313 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4316 (lex_one_token): Update.
4317 * macroexp.c (struct macro_buffer) <release>: Return
4318 gdb::unique_xmalloc_ptr<char>.
4319 (macro_stringify): Update.
4320 (macro_expand): Update.
4321 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4322 * macroexp.h (macro_expand_next): Likewise.
4323
4324 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * macroexp.h (macro_lookup_ftype): Remove.
4327 (macro_expand, macro_expand_once, macro_expand_next): Remove
4328 lookup function parameters, add scope parameter.
4329 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4330 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4331 * macroscope.h (standard_macro_lookup): Change parameter type
4332 to macro_scope.
4333 * macroscope.c (standard_macro_lookup): Likewise.
4334 * c-exp.y (lex_one_token): Update.
4335 * macrocmd.c (macro_expand_command): Likewise.
4336 (macro_expand_once_command): Likewise.
4337
4338 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * inf-loop.c (inferior_event_handler): Remove client_data param.
4341 * inf-loop.h (inferior_event_handler): Likewise.
4342 * infcmd.c (step_1): Adjust.
4343 * infrun.c (proceed): Adjust.
4344 (fetch_inferior_event): Remove client_data param.
4345 (infrun_async_inferior_event_handler): Adjust.
4346 * infrun.h (fetch_inferior_event): Remove `void *` param.
4347 * linux-nat.c (handle_target_event): Adjust.
4348 * record-btrace.c (record_btrace_handle_async_inferior_event):
4349 Adjust.
4350 * record-full.c (record_full_async_inferior_event_handler):
4351 Adjust.
4352 * remote.c (remote_async_inferior_event_handler): Adjust.
4353
4354 2020-07-01 Tom Tromey <tom@tromey.com>
4355
4356 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4357 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4358
4359 2020-07-01 Tom Tromey <tom@tromey.com>
4360
4361 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4362 tui_gen_win_info.
4363 (tui_win_info::make_window): Merge with
4364 tui_gen_win_info::make_window.
4365 (tui_win_info::make_visible): Move from tui_gen_win_info.
4366 * tui/tui-win.c (tui_win_info::max_width): Move from
4367 tui_gen_win_info.
4368 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4369 type.
4370 <window_factory>: Likewise.
4371 * tui/tui-layout.c (tui_win_info::resize): Move from
4372 tui_gen_win_info.
4373 (make_standard_window): Change return type.
4374 (get_locator_window, tui_get_window_by_name): Likewise.
4375 (tui_layout_window::apply): Remove a cast.
4376 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4377 (struct tui_win_info): Merge with tui_gen_win_info.
4378 (struct tui_gen_win_info): Remove.
4379
4380 2020-07-01 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-stack.h (struct tui_locator_window): Derive from
4383 tui_win_info.
4384 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4385 <can_box>: New method.
4386
4387 2020-07-01 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4390
4391 2020-07-01 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-regs.c (tui_data_window::display_registers_from)
4394 (tui_data_window::display_registers_from)
4395 (tui_data_window::first_data_item_displayed)
4396 (tui_data_window::delete_data_content_windows): Update.
4397 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4398 Remove.
4399 (tui_data_window::check_register_values): Update.
4400 (tui_data_item_window::rerender): Add parameters. Update.
4401 (tui_data_item_window::refresh_window): Remove.
4402 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4403 virtual.
4404 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4405 tui_gen_win_info.
4406 <refresh_window, max_height, min_height>: Remove.
4407 <rerender>: Add parameters.
4408 <x, y, visible>: New members.
4409 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4410 <m_item_width>: New member.
4411
4412 2020-07-01 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-regs.c (tui_data_window::show_register_group)
4415 (tui_data_window::check_register_values): Update.
4416 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4417 from item_no.
4418
4419 2020-07-01 Tom Tromey <tom@tromey.com>
4420
4421 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4422 useless "if".
4423
4424 2020-07-01 Tom Tromey <tom@tromey.com>
4425
4426 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4427 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4428
4429 2020-07-01 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4432 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4433 (struct tui_line_or_address): Move from tui-data.h.
4434 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4435 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4436 (tui_cmd_window, tui_source_window_base, tui_source_window)
4437 (tui_disasm_window): Don't declare.
4438 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4439 to tui-winsource.h.
4440 (SINGLE_KEY): Move to tui-stack.c.
4441
4442 2020-07-01 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4445 std::string.
4446 * tui/tui-regs.c (class tab_expansion_file): New.
4447 (tab_expansion_file::write): New method.
4448 (tui_register_format): Change return type. Use
4449 tab_expansion_file.
4450 (tui_get_register, tui_data_window::display_registers_from)
4451 (tui_data_item_window::rerender): Update.
4452 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4453 * tui/tui-io.c (tui_expand_tabs): Remove.
4454
4455 2020-07-01 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4458
4459 2020-07-01 Fangrui Song <maskray@google.com>
4460
4461 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4462
4463 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4464
4465 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4466 forms for DW_AT_associated and DW_AT_allocated attributes,
4467 which is already checked in function attr_to_dynamic_prop.
4468
4469 2020-06-30 Tom Tromey <tromey@adacore.com>
4470
4471 * dwarf2/read.c (quirk_rust_enum): Correctly call
4472 alloc_rust_variant for default-less enum.
4473
4474 2020-06-30 Tom Tromey <tromey@adacore.com>
4475
4476 PR build/26183:
4477 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4478 gdb::to_string.
4479
4480 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4483 * gdbarch.h: Re-generate.
4484
4485 2020-06-28 Tom Tromey <tom@tromey.com>
4486
4487 * command.h (cmd_types): Remove.
4488 (cmd_type): Don't declare.
4489 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4490 typedef.
4491 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4492 * cli/cli-decode.c (cmd_type): Remove.
4493
4494 2020-06-27 Pedro Alves <palves@redhat.com>
4495
4496 * fork-child.c (prefork_hook): Adjust.
4497 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4498 Delete.
4499 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4500 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4501 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4502 Remove declarations.
4503 (struct inferior) <set_tty, tty>: New methods.
4504 (struct inferior) <terminal>: Rename to ...
4505 (struct inferior) <m_terminal>: ... this and make private.
4506 * main.c (captured_main_1): Adjust.
4507 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4508 (mi_cmd_inferior_tty_show): Adjust.
4509 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4510 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4511
4512 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4513
4514 * configure.ac: Add --enable-libctf: handle --disable-static
4515 properly.
4516 * acinclude.m4: sinclude ../config/enable.m4.
4517 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4518 (LIBCTF): Substitute in.
4519 (CTF_DEPS): New, likewise.
4520 (CLIBS): libctf needs symbols from libbfd: move earlier.
4521 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4522 flags.
4523 * ctfread.c: Surround in ENABLE_LIBCTF.
4524 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4525 * configure: Regenerate.
4526 * config.in: Likewise.
4527
4528 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4531
4532 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * inferior.h (struct inferior) <terminal>: Change type to
4535 gdb::unique_xmalloc_ptr<char>.
4536 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4537 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4538 field, adjust to unique pointer.
4539 (get_inferior_io_terminal): Adjust to unique pointer.
4540
4541 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4542
4543 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4544 registers, not just the known core set of registers.
4545
4546 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4547
4548 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4549 fflags, frm, and fcsr registers.
4550 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4551 restore groups.
4552 (riscv_tdesc_unknown_reg): New function.
4553 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4554 tdesc_use_registers.
4555 * riscv-tdep.h (struct gdbarch_tdep): Add
4556 unknown_csrs_first_regnum, unknown_csrs_count,
4557 duplicate_fflags_regnum, duplicate_frm_regnum, and
4558 duplicate_fcsr_regnum fields.
4559
4560 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4563 callback, use the callback (when not null) to help number unknown
4564 registers.
4565 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4566 (tdesc_use_registers): Add extra parameter to declaration.
4567
4568 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4569
4570 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4571 in the file.
4572 (class riscv_pending_register_alias): Likewise.
4573 (riscv_register_feature::register_info): Change 'required_p' field
4574 to 'required', and change its type. Add 'check' member function.
4575 (riscv_register_feature::register_info::check): Define new member
4576 function.
4577 (riscv_xreg_feature): Change initialisation of 'required' field.
4578 (riscv_freg_feature): Likewise.
4579 (riscv_virtual_feature): Likewise.
4580 (riscv_csr_feature): Likewise.
4581 (riscv_check_tdesc_feature): Take extra parameter, the csr
4582 tdesc_feature, rewrite the function to use the new
4583 riscv_register_feature::register_info::check function.
4584 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4585
4586 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * features/Makefile: Remove all references to the deleted files
4589 below.
4590 * features/riscv/32bit-csr.c: Deleted.
4591 * features/riscv/32bit-csr.xml: Deleted.
4592 * features/riscv/64bit-csr.c: Deleted.
4593 * features/riscv/64bit-csr.xml: Deleted.
4594 * features/riscv/rebuild-csr-xml.sh: Deleted.
4595
4596 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4599 whitespace error for declaration of names member variable.
4600 (struct riscv_register_feature): Add new prefer_first_name member
4601 variable, and fix whitespace error in declaration of registers.
4602 (riscv_xreg_feature): Initialize prefer_first_name field.
4603 (riscv_freg_feature): Likewise.
4604 (riscv_virtual_feature): Likewise.
4605 (riscv_csr_feature): Likewise.
4606 (riscv_register_name): Expand on comments. Remove register name
4607 modifications for CSR and virtual registers.
4608
4609 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4612 errors.
4613
4614 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4615
4616 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4617 riscv-opc.h.
4618 (class riscv_pending_register_alias): New class.
4619 (riscv_check_tdesc_feature): Take vector of pending aliases and
4620 populate it as appropriate.
4621 (riscv_setup_register_aliases): Delete.
4622 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4623 to riscv_check_tdesc_feature in all cases. Use the vector to
4624 create the register aliases.
4625
4626 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4627
4628 * sol2-tdep.c (sol2_static_transform_name): Remove.
4629 (sol2_init_abi): Don't register it.
4630 * gdbarch.sh (static_transform_name): Remove.
4631 * gdbarch.c, gdbarch.h: Regenerate.
4632
4633 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4634 gdbarch_static_transform_name.
4635 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4636 * stabsread.c (define_symbol) <'X'>: Remove.
4637 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4638 handling.
4639 <'V'>: Likewise.
4640 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4641 <'S'>: Remove call to gdbarch_static_transform_name.
4642
4643 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4644
4645 * procfs.c (procfs_pre_trace): New function.
4646 (procfs_target::create_inferior): Pass it to fork_inferior.
4647
4648 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4649
4650 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4651 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4652 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4653 sol2-tdep.o, sparc-sol2-tdep.o.
4654 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4655 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4656 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4657 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4658
4659 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4660
4661 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4662 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4663 Call sol2_init_abi.
4664 Remove calls to set_gdbarch_skip_solib_resolver,
4665 set_gdbarch_core_pid_to_str.
4666 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4667 (i386_sol2_static_transform_name): Remove.
4668 (i386_sol2_init_abi): Call sol2_init_abi.
4669 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4670 set_gdbarch_static_transform_name,
4671 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4672 Use sol2_sigtramp_p.
4673 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4674 (sol2_sigtramp_p): New function.
4675 (sol2_static_transform_name): New function.
4676 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4677 (sol2_init_abi): New function.
4678 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4679 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4680 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4681 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4682 (sparc_sol2_static_transform_name): Remove.
4683 (sparc32_sol2_init_abi): Call sol2_init_abi.
4684 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4685 set_gdbarch_static_transform_name,
4686 set_gdbarch_skip_solib_resolver,
4687 set_gdbarch_core_pid_to_str.
4688 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4689 (sparc_sol2_static_transform_name): Remove
4690 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4691 call sol2_sigtramp_p.
4692 (sparc64_sol2_init_abi): Call sol2_init_abi.
4693 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4694 set_gdbarch_static_transform_name,
4695 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4696
4697 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4698
4699 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4700 * exec.c (validate_exec_file): If from_tty, set both
4701 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4702 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4703 and from_tty, unconditionally ask a confirmation.
4704
4705 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4706
4707 * target-descriptions.c (tdesc_architecture_name): Protect against
4708 NULL pointer dereference.
4709 (maint_print_xml_tdesc_cmd): New function.
4710 (_initialize_target_descriptions): Register new 'maint print
4711 xml-tdesc' command and give it the filename completer.
4712 * NEWS: Mention new 'maint print xml-tdesc' command.
4713
4714 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 * target-descriptions.c (class tdesc_compatible_info): New class.
4717 (struct target_desc): Change type of compatible vector.
4718 (tdesc_compatible_p): Update for change in type of
4719 target_desc::compatible.
4720 (tdesc_compatible_info_list): New function.
4721 (tdesc_compatible_info_arch_name): New function.
4722 (tdesc_add_compatible): Update for change in type of
4723 target_desc::compatible.
4724 (print_c_tdesc::visit_pre): Likewise.
4725
4726 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4727
4728 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4729 whitespace to underscore.
4730 (maint_print_c_tdesc_cmd): Use fake filename for target
4731 descriptions that came from the target.
4732 (_initialize_target_descriptions): Add filename command completion
4733 for 'maint print c-tdesc'.
4734
4735 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4738 lines.
4739
4740 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4743 lines.
4744 (dwarf2_find_location_expression): Likewise.
4745 (call_site_parameter_matches): Likewise.
4746 (dwarf2_compile_expr_to_ax): Likewise.
4747 (disassemble_dwarf_expression): Likewise.
4748 (loclist_describe_location): Likewise.
4749
4750 2020-06-23 Pedro Alves <palves@redhat.com>
4751
4752 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4753 progspace-and-thread.h. Include scoped-mock-context.h instead.
4754 (register_to_value_test): Use scoped_mock_context.
4755 * regcache.c: Include "scoped-mock-context.h".
4756 (cooked_read_test): Don't error out if a target is already pushed.
4757 Use scoped_mock_context. Adjust.
4758 * scoped-mock-context.h: New file.
4759
4760 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4761
4762 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4763 initializer.
4764 (ada_language::is_string_type_p): New member function.
4765 * c-lang.c (c_language_data): Delete la_is_string_type_p
4766 initializer.
4767 (cplus_language_data): Likewise.
4768 (asm_language_data): Likewise.
4769 (minimal_language_data): Likewise.
4770 * d-lang.c (d_language_data): Likewise.
4771 * f-lang.c (f_is_string_type_p): Delete function, implementation
4772 moved to f_language::is_string_type_p.
4773 (f_language_data): Delete la_is_string_type_p initializer.
4774 (f_language::is_string_type_p): New member function,
4775 implementation from f_is_string_type_p.
4776 * go-lang.c (go_is_string_type_p): Delete function, implementation
4777 moved to go_language::is_string_type_p.
4778 (go_language_data): Delete la_is_string_type_p initializer.
4779 (go_language::is_string_type_p): New member function,
4780 implementation from go_is_string_type_p.
4781 * language.c (language_defn::is_string_type_p): Define new member
4782 function.
4783 (default_is_string_type_p): Make static, add comment copied from
4784 header file.
4785 (unknown_language_data): Delete la_is_string_type_p initializer.
4786 (unknown_language::is_string_type_p): New member function.
4787 (auto_language_data): Delete la_is_string_type_p initializer.
4788 (auto_language::is_string_type_p): New member function.
4789 * language.h (language_data): Delete la_is_string_type_p field.
4790 (language_defn::is_string_type_p): Declare new function.
4791 (default_is_string_type_p): Delete desclaration, move comment to
4792 definition.
4793 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4794 moved to m2_language::is_string_type_p.
4795 (m2_language_data): Delete la_is_string_type_p initializer.
4796 (m2_language::is_string_type_p): New member function,
4797 implementation from m2_is_string_type_p.
4798 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4799 initializer.
4800 * opencl-lang.c (opencl_language_data): Likewise.
4801 * p-lang.c (pascal_is_string_type_p): Delete function,
4802 implementation moved to pascal_language::is_string_type_p.
4803 (pascal_language_data): Delete la_is_string_type_p initializer.
4804 (pascal_language::is_string_type_p): New member function,
4805 implementation from pascal_is_string_type_p.
4806 * rust-lang.c (rust_is_string_type_p): Delete function,
4807 implementation moved to rust_language::is_string_type_p.
4808 (rust_language_data): Delete la_is_string_type_p initializer.
4809 (rust_language::is_string_type_p): New member function,
4810 implementation from rust_is_string_type_p.
4811 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4812 is_string_type_p.
4813
4814 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4815
4816 * ada-lang.c (ada_language_data): Delete la_print_typedef
4817 initializer.
4818 (ada_language::print_typedef): New member function.
4819 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4820 (cplus_language_data): Likewise.
4821 (asm_language_data): Likewise.
4822 (minimal_language_data): Likewise.
4823 * d-lang.c (d_language_data): Likewise.
4824 * f-lang.c (f_language_data): Likewise.
4825 (f_language::print_typedef): New member function.
4826 * go-lang.c (go_language_data): Delete la_print_typedef
4827 initializer.
4828 * language.c (language_defn::print_typedef): Define member
4829 function.
4830 (unknown_language_data): Delete la_print_typedef initializer.
4831 (unknown_language::print_typedef): New member function.
4832 (auto_language_data): Delete la_print_typedef initializer.
4833 (auto_language::print_typedef): New member function.
4834 * language.h (language_data): Delete la_print_typedef field.
4835 (language_defn::print_typedef): Declare new member function.
4836 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4837 (default_print_typedef): Delete declaration.
4838 * m2-lang.c (m2_language_data): Delete la_print_typedef
4839 initializer.
4840 (m2_language::print_typedef): New member function.
4841 * objc-lang.c (objc_language_data): Delete la_print_typedef
4842 initializer.
4843 * opencl-lang.c (opencl_language_data): Likewise.
4844 * p-lang.c (pascal_language_data): Likewise.
4845 (pascal_language::print_typedef): New member function.
4846 * rust-lang.c (rust_print_typedef): Delete function,
4847 implementation moved to rust_language::print_typedef.
4848 (rust_language): Delete la_print_typedef initializer.
4849 (rust_language::print_typedef): New member function,
4850 implementation from rust_print_typedef.
4851 * typeprint.c (default_print_typedef): Delete.
4852
4853 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4856 (ada_language::printstr): New member function.
4857 * c-lang.c (c_language_data): Delete la_printstr initializer.
4858 (cplus_language_data): Likewise.
4859 (asm_language_data): Likewise.
4860 (minimal_language_data): Likewise.
4861 * d-lang.c (d_language_data): Likewise.
4862 * f-lang.c (f_printstr): Rename to f_language::printstr.
4863 (f_language_data): Delete la_printstr initializer.
4864 (f_language::printstr): New member function, implementation from
4865 f_printstr.
4866 * go-lang.c (go_language_data): Delete la_printstr initializer.
4867 * language.c (language_defn::printstr): Define new member
4868 function.
4869 (unk_lang_printstr): Delete.
4870 (unknown_language_data): Delete la_printstr initializer.
4871 (unknown_language::printstr): New member function.
4872 (auto_language_data): Delete la_printstr initializer.
4873 (auto_language::printstr): New member function.
4874 * language.h (language_data): Delete la_printstr field.
4875 (language_defn::printstr): Declare new member function.
4876 (LA_PRINT_STRING): Update call to printstr.
4877 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4878 (m2_language_data): Delete la_printstr initializer.
4879 (m2_language::printstr): New member function, implementation from
4880 m2_printstr.
4881 * objc-lang.c (objc_language_data): Delete la_printstr
4882 initializer.
4883 * opencl-lang.c (opencl_language_data): Likewise.
4884 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4885 (pascal_language_data): Delete la_printstr initializer.
4886 (pascal_language::printstr): New member function, implementation
4887 from pascal_printstr.
4888 * p-lang.h (pascal_printstr): Delete declaration.
4889 * rust-lang.c (rust_printstr): Update header comment.
4890 (rust_language_data): Delete la_printstr initializer.
4891 (rust_language::printstr): New member function.
4892
4893 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4894
4895 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4896 (ada_language::printchar): New member function.
4897 * c-lang.c (c_language_data): Delete la_printchar initializer.
4898 (cplus_language_data): Likewise.
4899 (asm_language_data): Likewise.
4900 (minimal_language_data): Likewise.
4901 * d-lang.c (d_language_data): Likewise.
4902 * f-lang.c (f_printchar): Rename to f_language::printchar.
4903 (f_language_data): Delete la_printchar initializer.
4904 (f_language::printchar): New member function, implementation from
4905 f_printchar.
4906 * go-lang.c (go_language_data): Delete la_printchar initializer.
4907 * language.c (unk_lang_printchar): Delete.
4908 (language_defn::printchar): Define new member function.
4909 (unknown_language_data): Delete la_printchar initializer.
4910 (unknown_language::printchar): New member function.
4911 (auto_language_data): Delete la_printchar initializer.
4912 (auto_language::printchar): New member function.
4913 * language.h (language_data): Delete la_printchar field.
4914 (language_defn::printchar): Declare new member function.
4915 (LA_PRINT_CHAR): Update call to printchar.
4916 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4917 (m2_language::printchar): New member function.
4918 * objc-lang.c (objc_language_data): Delete la_printchar
4919 initializer.
4920 * opencl-lang.c (opencl_language_data): Likewise.
4921 * p-lang.c (pascal_language_data): Delete la_printchar
4922 initializer.
4923 (pascal_language::printchar): New member function.
4924 * rust-lang.c (rust_printchar): Rename to
4925 rust_language::printchar.
4926 (rust_language_data): Delete la_printchar initializer.
4927 (rust_language::printchar): New member function, implementation
4928 from rust_printchar.
4929
4930 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4933 (ada_language_data): Delete la_emitchar initializer.
4934 (ada_language::emitchar): New member function, implementation from
4935 emit_char.
4936 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4937 (cplus_language_data): Likewise.
4938 (asm_language_data): Likewise.
4939 (minimal_language_data): Likewise.
4940 * d-lang.c (d_language_data): Likewise.
4941 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4942 (f_language_data): Delete la_emitchar initializer.
4943 (f_language::emitchar): New member function, implementation from
4944 f_emit_char.
4945 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4946 * language.c (unk_lang_emit_char): Delete.
4947 (language_defn::emitchar): New member function definition.
4948 (unknown_language_data): Delete la_emitchar initializer.
4949 (unknown_language::emitchar): New member function.
4950 (auto_language_data): Delete la_emitchar initializer.
4951 (auto_language::emitchar): New member function.
4952 * language.h (language_data): Delete la_emitchar field.
4953 (language_defn::emitchar): New member field declaration.
4954 (LA_EMIT_CHAR): Update call to emitchar.
4955 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4956 (m2_language_data): Delete la_emitchar initializer.
4957 (m2_language::emitchar): New member function, implementation from
4958 m2_emit_char.
4959 * objc-lang.c (objc_language_data): Delete la_emitchar
4960 initializer.
4961 * opencl-lang.c (opencl_language_data): Likewise.
4962 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4963 (pascal_language_data): Delete la_emitchar initializer.
4964 (pascal_language::emitchar): New member function, implementation
4965 from pascal_emit_char.
4966 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4967 (rust_language_data): Delete la_emitchar initializer.
4968 (rust_language::emitchar): New member function, implementation
4969 from rust_emitchar.
4970
4971 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4974 (ada_language_data): Delete la_post_parser initializer.
4975 (ada_language::post_parser): New member function.
4976 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4977 (cplus_language_data): Likewise.
4978 (asm_language_data): Likewise.
4979 (minimal_language_data): Likewise.
4980 * d-lang.c (d_language_data): Likewise.
4981 * f-lang.c (f_language_data): Likewise.
4982 * go-lang.c (go_language_data): Likewise.
4983 * language.c (unknown_language_data): Likewise.
4984 (auto_language_data): Likewise.
4985 * language.h (language_data): Delete la_post_parser field.
4986 (language_defn::post_parser): New member function.
4987 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4988 * objc-lang.c (objc_language_data): Likewise.
4989 * opencl-lang.c (opencl_language_data): Likewise.
4990 * p-lang.c (pascal_language_data): Likewise.
4991 * parse.c (parse_exp_in_context): Update call to post_parser.
4992 (null_post_parser): Delete definition.
4993 * parser-defs.h (null_post_parser): Delete declaration.
4994 * rust-lang.c (rust_language_data): Delete la_post_parser
4995 initializer.
4996
4997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4998
4999 * ada-lang.c (parse): Rename to ada_language::parser.
5000 (ada_language_data): Delete la_parser initializer.
5001 (ada_language::parser): New member function, implementation from
5002 parse.
5003 * c-lang.c (c_language_data): Delete la_parser initializer.
5004 (cplus_language_data): Likewise.
5005 (asm_language_data): Likewise.
5006 (minimal_language_data): Likewise.
5007 * d-lang.c (d_language_data): Likewise.
5008 (d_language::parser): New member function.
5009 * f-lang.c (f_language_data): Delete la_parser initializer.
5010 (f_language::parser): New member function.
5011 * go-lang.c (go_language_data): Delete la_parser initializer.
5012 (go_language::parser): New member function.
5013 * language.c (unk_lang_parser): Delete.
5014 (language_defn::parser): Define new member function.
5015 (unknown_language_data): Delete la_parser initializer.
5016 (unknown_language::parser): New member function.
5017 (auto_language_data): Delete la_parser initializer.
5018 (auto_language::parser): New member function.
5019 * language.h (language_data): Delete la_parser field.
5020 (language_defn::parser): Declare new member function.
5021 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5022 (m2_language::parser): New member function.
5023 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5024 * opencl-lang.c (opencl_language_data): Likewise.
5025 * p-lang.c (pascal_language_data): Likewise.
5026 (pascal_language::parser): New member function.
5027 * parse.c (parse_exp_in_context): Update call to parser.
5028 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5029 (rust_language::parser): New member function.
5030
5031 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5032
5033 * top.c (print_gdb_configuration): Print --with-python-libdir
5034 configuration value.
5035
5036 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5037
5038 * NEWS: Mention change to the alias command.
5039
5040 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5041
5042 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5043 (alias_command_completer)
5044 (make_alias_options_def_group): New functions.
5045 (alias_opts, alias_option_defs): New struct and array.
5046 (alias_usage_error): Update usage.
5047 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5048 Use option framework.
5049 (_initialize_cli_cmds): Update alias command help.
5050 Update aliases command help.
5051 (show_user):
5052 Add NULL for new default_args lookup_cmd argument.
5053 (valid_command_p): Rename to validate_aliased_command.
5054 Add NULL for new default_args lookup_cmd argument. Verify that the
5055 aliased_command has no default args.
5056 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5057 (lookup_cmd_1, lookup_cmd): New argument default_args.
5058 (add_alias_cmd):
5059 Add NULL for new default_args lookup_cmd argument.
5060 (print_help_for_command): Show default args under the layout
5061 alias some_alias = some_aliased_cmd some_alias_default_arg.
5062 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5063 xfree default_args in destructor.
5064 * cli/cli-script.c (process_next_line, do_define_command):
5065 Add NULL for new default_args lookup_cmd argument.
5066 * command.h: Declare new default_args argument in lookup_cmd
5067 and lookup_cmd_1.
5068 * completer.c (complete_line_internal_1):
5069 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5070 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5071 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5072 Likewise.
5073 * infcmd.c (_initialize_infcmd): Likewise.
5074 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5075 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5076 * python/py-param.c (add_setshow_generic): Likewise.
5077 * remote.c (_initialize_remote): Likewise.
5078 * top.c (execute_command): Prepend default_args if command has some.
5079 (set_verbose):
5080 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5081 * tracepoint.c (validate_actionline, encode_actions_1):
5082 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5083
5084 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5085
5086 * jit.c (jit_read_descriptor): Use bool as the return type.
5087 (jit_breakpoint_re_set_internal): Use bool as the return type.
5088 Invert the return value logic; return true if the jit breakpoint
5089 has been successfully initialized.
5090 (jit_inferior_init): Update the call to
5091 jit_breakpoint_re_set_internal.
5092
5093 2020-06-22 Pedro Alves <palves@redhat.com>
5094
5095 PR gdb/25939
5096 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5097 Use the current inferior instead. Don't return
5098 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5099 wait again.
5100 * sol-thread.c (sol_thread_target::wait): Don't reference
5101 inferior_ptid.
5102 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5103 (sol_update_thread_list_callback): Use the current inferior's pid
5104 instead of inferior_ptid.
5105
5106 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5107
5108 * procfs.c: Cleanup many comments.
5109
5110 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5111 (AFTER_WATCHFLAG): Replace by value.
5112
5113 (MAIN_PROC_NAME_FORMAT): Inline ...
5114 (create_procinfo): ... here.
5115
5116 (procfs_debug_inferior): Remove SYS_exec handling.
5117 (syscall_is_exec): Likewise.
5118 (procfs_set_exec_trap): Likewise.
5119
5120 (syscall_is_lwp_exit): Inline in callers.
5121 (syscall_is_exit): Likewise.
5122 (syscall_is_exec): Likewise.
5123 (syscall_is_lwp_create): Likewise.
5124
5125 (invalidate_cache): Remove #if 0 code.
5126
5127 (make_signal_thread_runnable): Remove.
5128 (procfs_target::resume): Remove #if 0 code.
5129
5130 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5131
5132 PR gdb/25939
5133 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5134 call ...
5135 (procfs_target::create_inferior): ... here.
5136
5137 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5138
5139 * exec.c (validate_exec_file): Ensure the build-id is up to
5140 date by calling reopen_exec_file (that checks file timestamp
5141 to decide to re-read the file).
5142
5143 2020-06-18 Pedro Alves <palves@redhat.com>
5144
5145 PR gdb/25412
5146 * gdbthread.h (delete_thread, delete_thread_silent)
5147 (find_thread_ptid): Update comments.
5148 * thread.c (current_thread_): New global.
5149 (is_current_thread): Move higher, and reimplement.
5150 (inferior_thread): Reimplement.
5151 (set_thread_exited): Use bool. Add assertions.
5152 (add_thread_silent): Simplify thread-reuse handling by always
5153 calling delete_thread.
5154 (delete_thread): Remove intro comment.
5155 (find_thread_ptid): Skip exited threads.
5156 (switch_to_thread_no_regs): Write to current_thread_.
5157 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5158 INFERIOR_PTID. Clear current_thread_.
5159
5160 2020-06-18 Pedro Alves <palves@redhat.com>
5161
5162 * aix-thread.c (pd_update): Use switch_to_thread.
5163
5164 2020-06-18 Pedro Alves <palves@redhat.com>
5165
5166 * ravenscar-thread.c (ravenscar_thread_target): Update.
5167 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5168 (ravenscar_thread_target::add_active_thread): ... this. Don't
5169 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5170 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5171
5172 2020-06-18 Pedro Alves <palves@redhat.com>
5173
5174 * nat/windows-nat.c (current_windows_thread): Remove.
5175 * nat/windows-nat.h (current_windows_thread): Remove.
5176 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5177 Adjust.
5178 (display_selectors): Adjust to fetch the current
5179 windows_thread_info based on inferior_ptid.
5180 (fake_create_process): No longer write to current_windows_thread.
5181 (windows_nat_target::get_windows_debug_event):
5182 Don't set inferior_ptid or current_windows_thread.
5183 (windows_nat_target::wait): Adjust to not rely on
5184 current_windows_thread.
5185 (do_initial_windows_stuff): Now a method of windows_nat_target.
5186 Switch to the last_ptid thread.
5187 (windows_nat_target::attach): Adjust.
5188 (windows_nat_target::detach): Use switch_to_no_thread instead of
5189 writing to inferior_ptid directly.
5190 (windows_nat_target::create_inferior): Adjust.
5191
5192 2020-06-18 Pedro Alves <palves@redhat.com>
5193
5194 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5195
5196 2020-06-18 Pedro Alves <palves@redhat.com>
5197
5198 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5199 after creating it, instead of writing to inferior_ptid. Don't
5200 write to inferior_ptid.
5201
5202 2020-06-18 Pedro Alves <palves@redhat.com>
5203
5204 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5205
5206 2020-06-18 Pedro Alves <palves@redhat.com>
5207
5208 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5209 it, instead of writing to inferior_ptid.
5210
5211 2020-06-18 Pedro Alves <palves@redhat.com>
5212
5213 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5214 to inferior_ptid.
5215
5216 2020-06-18 Pedro Alves <palves@redhat.com>
5217
5218 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5219 instead of writing to inferior_ptid directly.
5220
5221 2020-06-18 Pedro Alves <palves@redhat.com>
5222
5223 * corelow.c (core_target::close): Use switch_to_no_thread instead
5224 of writing to inferior_ptid directly.
5225 (add_to_thread_list, core_target_open): Use switch_to_thread
5226 instead of writing to inferior_ptid directly.
5227
5228 2020-06-18 Pedro Alves <palves@redhat.com>
5229
5230 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5231 inferior_ptid.
5232 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5233 inferior_ptid.
5234 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5235 inferior_ptid directly.
5236 (darwin_nat_target::init_thread_list): Switch to thread, instead
5237 of writing to inferior_ptid.
5238 (darwin_nat_target::attach): Don't write to inferior_ptid.
5239 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5240
5241 2020-06-18 Pedro Alves <palves@redhat.com>
5242
5243 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5244 thread.
5245 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5246 Instead use switch_to_thread.
5247 (gnu_nat_target::detach): Use switch_to_no_thread
5248 instead of writing to inferior_ptid directly. Used passed-in
5249 inferior instead of looking up the inferior by pid.
5250
5251 2020-06-18 Pedro Alves <palves@redhat.com>
5252
5253 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5254 inferior_ptid.
5255
5256 2020-06-18 Pedro Alves <palves@redhat.com>
5257
5258 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5259 inferior_ptid.
5260 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5261 thread.
5262 (nto_procfs_target::detach): Avoid referencing
5263 inferior_ptid. Use switch_to_no_thread instead of writing to
5264 inferior_ptid directly.
5265 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5266 instead of writing to inferior_ptid directly.
5267 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5268 to thread.
5269
5270 2020-06-18 Pedro Alves <palves@redhat.com>
5271
5272 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5273 after creating it, instead of writing to inferior_ptid.
5274 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5275 to inferior_ptid directly.
5276 (gdbsim_target::wait): Don't write to inferior_ptid.
5277
5278 2020-06-18 Pedro Alves <palves@redhat.com>
5279
5280 * remote.c (remote_target::remote_notice_new_inferior): Use
5281 switch_to_thread instead of writing to inferior_ptid directly.
5282 (remote_target::add_current_inferior_and_thread): Use
5283 switch_to_no_thread instead of writing to inferior_ptid directly.
5284 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5285 and switch_to_thread instead of using set_current_inferior or
5286 writing to inferior_ptid directly.
5287
5288 2020-06-18 Pedro Alves <palves@redhat.com>
5289
5290 * tracectf.c (ctf_target_open): Switch to added thread instead of
5291 writing to inferior_ptid directly.
5292 (ctf_target::close): Use switch_to_no_thread instead of writing to
5293 inferior_ptid directly.
5294
5295 2020-06-18 Pedro Alves <palves@redhat.com>
5296
5297 * tracefile-tfile.c (tfile_target_open): Don't write to
5298 inferior_ptid directly, instead switch to added thread.
5299 (tfile_target::close): Use switch_to_no_thread instead of writing
5300 to inferior_ptid directly.
5301
5302 2020-06-18 Pedro Alves <palves@redhat.com>
5303
5304 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5305 (procfs_target::detach): Use switch_to_no_thread
5306 instead of writing to inferior_ptid directly.
5307 (do_attach): Change return type to void. Switch to the added
5308 thread.
5309 (procfs_target::create_inferior): Switch to the added thread.
5310 (procfs_do_thread_registers): Don't write to inferior_ptid.
5311
5312 2020-06-18 Pedro Alves <palves@redhat.com>
5313
5314 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5315 of writing to inferior_ptid.
5316 (scoped_restore_exited_inferior): Delete.
5317 (handle_vfork_child_exec_or_exit): Simplify using
5318 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5319 instead of writing to inferior_ptid.
5320 (THREAD_STOPPED_BY): Delete.
5321 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5322 (thread_stopped_by_hw_breakpoint): Delete.
5323 (save_waitstatus): Use
5324 scoped_restore_current_thread+switch_to_thread, and call
5325 target_stopped_by_watchpoint instead of
5326 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5327 instead of thread_stopped_by_sw_breakpoint, and
5328 target_stopped_by_hw_breakpoint instead of
5329 thread_stopped_by_hw_breakpoint.
5330 (handle_inferior_event)
5331 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5332 inferior_ptid directly, nor
5333 set_current_inferior/set_current_program_space. Use
5334 switch_to_thread / switch_to_inferior_no_thread instead.
5335
5336 2020-06-18 Pedro Alves <palves@redhat.com>
5337
5338 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5339 instead of writing to inferior_ptid.
5340
5341 2020-06-18 Pedro Alves <palves@redhat.com>
5342
5343 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5344 added thread.
5345 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5346 to the added thread.
5347 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5348 instead of writing to inferior_ptid.
5349
5350 2020-06-18 Pedro Alves <palves@redhat.com>
5351
5352 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5353 (register_to_value_test): Mock a program_space too. Heap-allocate
5354 the address space. Don't write to inferior_ptid. Use
5355 switch_to_thread instead.
5356
5357 2020-06-18 Pedro Alves <palves@redhat.com>
5358
5359 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5360 Delete.
5361 (find_signalled_thread()): New, factored out from
5362 linux_make_corefile_notes and adjusted to handle exited threads.
5363 (linux_make_corefile_notes): Adjust to use the new
5364 find_signalled_thread.
5365
5366 2020-06-18 Pedro Alves <palves@redhat.com>
5367
5368 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5369 of saving/restoring inferior_ptid.
5370
5371 2020-06-17 Tom Tromey <tom@tromey.com>
5372
5373 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5374 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5375 declare.
5376 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5377
5378 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5379
5380 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5381 of partial symtabs.
5382
5383 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * regformats/reg-arm.dat: Remove.
5386 * regformats/reg-bfin.dat: Remove.
5387 * regformats/reg-cris.dat: Remove.
5388 * regformats/reg-crisv32.dat: Remove.
5389 * regformats/reg-m32r.dat: Remove.
5390 * regformats/reg-tilegx.dat: Remove.
5391 * regformats/reg-tilegx32.dat: Remove.
5392
5393 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5394
5395 * features/Makefile (WHICH): Remove arm files.
5396 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5397 * regformats/arm/arm-with-neon.dat: Remove.
5398 * regformats/arm/arm-with-vfpv2.dat: Remove.
5399 * regformats/arm/arm-with-vfpv3.dat: Remove.
5400
5401 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5402
5403 * features/Makefile (XMLTOC): Remove rx.xml.
5404
5405 2020-06-17 Pedro Alves <palves@redhat.com>
5406
5407 * gdbthread.h (thread_control_state) <trap_expected> Update
5408 comments.
5409
5410 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5413 ada_language::lookup_symbol_nonlocal.
5414 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5415 (ada_language::lookup_symbol_nonlocal): New member function,
5416 implementation from ada_lookup_symbol_nonlocal.
5417 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5418 initializer.
5419 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5420 initializer.
5421 (cplus_language::lookup_symbol_nonlocal): New member function.
5422 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5423 (minimal_language_data) Likewise.
5424 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5425 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5426 initializer.
5427 (d_language::lookup_symbol_nonlocal): New member function.
5428 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5429 initializer.
5430 (f_language::lookup_symbol_nonlocal): New member function.
5431 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5432 initializer.
5433 * language.c (unknown_language_data): Likewise.
5434 (auto_language_data): Likewise.
5435 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5436 field.
5437 (language_defn::lookup_symbol_nonlocal): New member function.
5438 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5439 initializer.
5440 * objc-lang.c (objc_language_data): Likewise.
5441 * opencl-lang.c (opencl_language_data): Likewise.
5442 * p-lang.c (pascal_language_data): Likewise.
5443 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5444 rust_language::lookup_symbol_nonlocal.
5445 (rust_language_data): Delete la_lookup_symbol_nonlocal
5446 initializer.
5447 (rust_language::lookup_symbol_nonlocal): New member function,
5448 implementation from rust_lookup_symbol_nonlocal.
5449 * symtab.c (lookup_symbol_aux): Update call to
5450 lookup_symbol_nonlocal.
5451 (basic_lookup_symbol_nonlocal): Rename to...
5452 (language_defn::lookup_symbol_nonlocal): ...this, and update
5453 header comment. Remove language_defn parameter, and replace with
5454 uses of `this'.
5455 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5456
5457 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5460 initializer.
5461 (ada_language::value_print_inner): New member function.
5462 * c-lang.c (c_language_data): Delete la_value_print_inner
5463 initializer.
5464 (cplus_language_data): Likewise.
5465 (asm_language_data): Likewise.
5466 (minimal_language_data): Likewise.
5467 * d-lang.c (d_language_data): Likewise.
5468 (d_language::value_print_inner): New member function.
5469 * f-lang.c (f_language_data): Delete la_value_print_inner
5470 initializer.
5471 (f_language::value_print_inner): New member function.
5472 * f-lang.h (f_value_print_innner): Rename to...
5473 (f_value_print_inner): ...this (note spelling of 'inner').
5474 * f-valprint.c (f_value_print_innner): Rename to...
5475 (f_value_print_inner): ...this (note spelling of 'inner').
5476 * go-lang.c (go_language_data): Delete la_value_print_inner
5477 initializer.
5478 (go_language::value_print_inner): New member function.
5479 * language.c (language_defn::value_print_inner): Define new member
5480 function.
5481 (unk_lang_value_print_inner): Delete.
5482 (unknown_language_data): Delete la_value_print_inner initializer.
5483 (unknown_language::value_print_inner): New member function.
5484 (auto_language_data): Delete la_value_print_inner initializer.
5485 (auto_language::value_print_inner): New member function.
5486 * language.h (language_data): Delete la_value_print_inner field.
5487 (language_defn::value_print_inner): Delcare new member function.
5488 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5489 initializer.
5490 (m2_language::value_print_inner): New member function.
5491 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5492 initializer.
5493 * opencl-lang.c (opencl_language_data): Likewise.
5494 * p-lang.c (pascal_language_data): Likewise.
5495 (pascal_language::value_print_inner): New member function.
5496 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5497 initializer.
5498 (rust_language::value_print_inner): New member function.
5499 * valprint.c (do_val_print): Update call to value_print_inner.
5500
5501 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * ada-lang.c (ada_language_data): Delete la_value_print
5504 initializer.
5505 (ada_language::value_print): New member function.
5506 * c-lang.c (c_language_data): Delete la_value_print initializer.
5507 (cplus_language_data): Likewise.
5508 (asm_language_data): Likewise.
5509 (minimal_language_data): Likewise.
5510 * d-lang.c (d_language_data): Likewise.
5511 * f-lang.c (f_language_data): Likewise.
5512 * go-lang.c (go_language_data): Likewise.
5513 * language.c (unk_lang_value_print): Delete.
5514 (language_defn::value_print): Define new member function.
5515 (unknown_language_data): Delete la_value_print initializer.
5516 (unknown_language::value_print): New member function.
5517 (auto_language_data): Delete la_value_print initializer.
5518 (auto_language::value_print): New member function.
5519 * language.h (language_data): Delete la_value_print field.
5520 (language_defn::value_print): Declare new member function.
5521 (LA_VALUE_PRINT): Update call to value_print.
5522 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5523 * objc-lang.c (objc_language_data): Likewise.
5524 * opencl-lang.c (opencl_language_data): Likewise.
5525 * p-lang.c (pascal_language_data): Likewise.
5526 (pascal_language::value_print): New member function.
5527 * rust-lang.c (rust_language_data): Delete la_value_print
5528 initializer.
5529
5530 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * ada-lang.c (ada_watch_location_expression): Rename to
5533 ada_language::watch_location_expression.
5534 (ada_language_data): Delete la_watch_location_expression
5535 initializer.
5536 (ada_language::watch_location_expression): New member function,
5537 implementation from ada_watch_location_expression.
5538 * breakpoint.c (watch_command_1): Update call to
5539 watch_location_expression.
5540 * c-lang.c (c_watch_location_expression): Rename to
5541 language_defn::watch_location_expression.
5542 (c_language_data): Delete la_watch_location_expression
5543 initializer.
5544 (cplus_language_data): Likewise.
5545 (asm_language_data): Likewise.
5546 (minimal_language_data): Likewise.
5547 * c-lang.h (c_watch_location_expression): Delete declaration.
5548 * d-lang.c (d_language_data): Delete la_watch_location_expression
5549 initializer.
5550 * f-lang.c (f_language_data): Likewise.
5551 * go-lang.c (go_language_data): Likewise.
5552 * language.c (language_defn::watch_location_expression): Member
5553 function implementation from c_watch_location_expression.
5554 (unknown_language_data): Delete la_watch_location_expression
5555 initializer.
5556 (auto_language_data): Likewise.
5557 * language.h (language_data): Delete la_watch_location_expression
5558 field.
5559 (language_defn::watch_location_expression): Declare new member
5560 function.
5561 * m2-lang.c (m2_language_data): Delete
5562 la_watch_location_expression initializer.
5563 * objc-lang.c (objc_language_data): Likewise.
5564 * opencl-lang.c (opencl_language_data): Likewise.
5565 * p-lang.c (pascal_language_data): Likewise.
5566 * rust-lang.c (rust_watch_location_expression): Rename to
5567 rust_language::watch_location_expression.
5568 (rust_language_data): Delete la_watch_location_expression
5569 initializer.
5570 (rust_language::watch_location_expression): New member function,
5571 implementation from rust_watch_location_expression.
5572
5573 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5576 ada_language::collect_symbol_completion_matches.
5577 (ada_language_data): Delete la_collect_symbol_completion_matches
5578 initializer.
5579 (ada_language::collect_symbol_completion_matches): New member
5580 function, implementation from
5581 ada_collect_symbol_completion_matches.
5582 * c-lang.c (c_language_data): Delete
5583 la_collect_symbol_completion_matches initializer.
5584 (cplus_language_data): Likewise.
5585 (asm_language_data): Likewise.
5586 (minimal_language_data): Likewise.
5587 * d-lang.c (d_language_data): Likewise.
5588 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5589 f_language::collect_symbol_completion_matches.
5590 (f_language_data): Delete la_collect_symbol_completion_matches
5591 initializer.
5592 (f_language::collect_symbol_completion_matches) New member
5593 function, implementation from f_collect_symbol_completion_matches.
5594 * go-lang.c (go_language_data): Delete
5595 la_collect_symbol_completion_matches initializer.
5596 * language.c (unknown_language_data): Likewise.
5597 (auto_language_data): Likewise.
5598 * language.h (language_data): Delete
5599 la_collect_symbol_completion_matches field.
5600 (language_defn::collect_symbol_completion_matches): New member
5601 function.
5602 * m2-lang.c (m2_language_data): Delete
5603 la_collect_symbol_completion_matches initializer.
5604 * objc-lang.c (objc_language_data): Likewise.
5605 * opencl-lang.c (opencl_language_data): Likewise.
5606 * p-lang.c (pascal_language_data): Likewise.
5607 * rust-lang.c (rust_language_data): Likewise.
5608 * symtab.c (default_collect_symbol_completion_matches): Delete.
5609 (collect_symbol_completion_matches): Update call to
5610 collect_symbol_completion_matches.
5611 (collect_symbol_completion_matches_type): Likewise.
5612 * symtab.h (default_collect_symbol_completion_matches): Delete
5613 declaration.
5614
5615 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5616
5617 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5618 (ada_language_data): Delete la_word_break_characters initializer.
5619 (ada_language::word_break_characters): New member function.
5620 * c-lang.c (c_language_data): Delete la_word_break_characters
5621 initializer.
5622 (cplus_language_data): Likewise.
5623 (asm_language_data): Likewise.
5624 (minimal_language_data): Likewise.
5625 * completer.c: Update global comment.
5626 (advance_to_expression_complete_word_point): Update call to
5627 word_break_characters.
5628 (complete_files_symbols): Likewise.
5629 (complete_line_internal_1): Likewise.
5630 (default_completer_handle_brkchars): Likewise.
5631 (skip_quoted_chars): Likewise.
5632 * d-lang.c (d_language_data): Delete la_word_break_characters
5633 initializer.
5634 * f-lang.c (f_word_break_characters): Delete.
5635 (f_language_data): Delete la_word_break_characters initializer.
5636 (f_language::word_break_characters): New member function.
5637 * go-lang.c (go_language_data): Delete la_word_break_characters
5638 initializer.
5639 * language.c (unknown_language_data): Likewise.
5640 (auto_language_data): Likewise.
5641 * language.h (default_word_break_characters): Move declaration to
5642 earlier in the file.
5643 (language_data): Delete la_word_break_characters field.
5644 (language_defn::word_break_characters): New member function.
5645 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5646 initializer.
5647 * objc-lang.c (objc_language_data): Likewise.
5648 * opencl-lang.c (opencl_language_data): Likewise.
5649 * p-lang.c (pascal_language_data): Likewise.
5650 * rust-lang.c (rust_language_data): Likewise.
5651
5652 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5653
5654 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5655 (ada_language_data): Delete la_get_symbol_name_matcher
5656 initializer.
5657 (language_defn::get_symbol_name_matcher_inner): New member
5658 function.
5659 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5660 initializer.
5661 (cplus_language_data): Likewise.
5662 (cplus_language::get_symbol_name_matcher_inner): New member
5663 function.
5664 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5665 (minimal_language_data): Likewise.
5666 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5667 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5668 initializer.
5669 * dictionary.c (iter_match_first_hashed): Update call to
5670 get_symbol_name_matcher.
5671 (iter_match_next_hashed): Likewise.
5672 (iter_match_next_linear): Likewise.
5673 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5674 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5675 initializer.
5676 (f_language::get_symbol_name_matcher_inner): New member function.
5677 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5678 initializer.
5679 * language.c (default_symbol_name_matcher): Update header comment,
5680 make static.
5681 (language_defn::get_symbol_name_matcher): New definition.
5682 (language_defn::get_symbol_name_matcher_inner): Likewise.
5683 (get_symbol_name_matcher): Delete.
5684 (unknown_language_data): Delete la_get_symbol_name_matcher
5685 initializer.
5686 (auto_language_data): Likewise.
5687 * language.h (language_data): Delete la_get_symbol_name_matcher
5688 field.
5689 (language_defn::get_symbol_name_matcher): New member function.
5690 (language_defn::get_symbol_name_matcher_inner): Likewise.
5691 (default_symbol_name_matcher): Delete declaration.
5692 * linespec.c (find_methods): Update call to
5693 get_symbol_name_matcher.
5694 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5695 initializer.
5696 * minsyms.c (lookup_minimal_symbol): Update call to
5697 get_symbol_name_matcher.
5698 (iterate_over_minimal_symbols): Likewise.
5699 * objc-lang.c (objc_language_data): Delete
5700 la_get_symbol_name_matcher initializer.
5701 * opencl-lang.c (opencl_language_data): Likewise.
5702 * p-lang.c (pascal_language_data): Likewise.
5703 * psymtab.c (psymbol_name_matches): Update call to
5704 get_symbol_name_matcher.
5705 * rust-lang.c (rust_language_data): Delete
5706 la_get_symbol_name_matcher initializer.
5707 * symtab.c (symbol_matches_search_name): Update call to
5708 get_symbol_name_matcher.
5709 (compare_symbol_name): Likewise.
5710
5711 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 * ada-lang.c (ada_language_data): Delete la_compute_program
5714 initializer.
5715 * c-lang.c (c_language_data): Likewise.
5716 (c_language::compute_program): New member function.
5717 (cplus_language_data): Delete la_compute_program initializer.
5718 (cplus_language::compute_program): New member function.
5719 (asm_language_data): Delete la_compute_program initializer.
5720 (minimal_language_data): Likewise.
5721 * c-lang.h (c_compute_program): Update comment.
5722 (cplus_compute_program): Likewise.
5723 * compile/compile-c-support.c (c_compute_program): Likewise.
5724 (cplus_compute_program): Likewise.
5725 * compile/compile.c (compile_to_object): Update call to
5726 la_compute_program.
5727 * d-lang.c (d_language_data): Delete la_compute_program
5728 initializer.
5729 * f-lang.c (f_language_data): Likewise.
5730 * go-lang.c (go_language_data): Likewise.
5731 * language.c (unknown_language_data): Likewise.
5732 (auto_language_data): Likewise.
5733 * language.h (language_data): Delete la_compute_program field.
5734 (language_defn::compute_program): New member function.
5735 * m2-lang.c (m2_language_data): Delete la_compute_program
5736 initializer.
5737 * objc-lang.c (objc_language_data): Likewise.
5738 * opencl-lang.c (opencl_language_data): Likewise.
5739 * p-lang.c (pascal_language_data): Likewise.
5740 * rust-lang.c (rust_language_data): Likewise.
5741
5742 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 * ada-lang.c (ada_language_data) Delete
5745 la_class_name_from_physname initializer.
5746 * c-lang.c (c_language_data): Likewise.
5747 (cplus_language_data): Likewise.
5748 (cplus_language::class_name_from_physname): New member function.
5749 (asm_language_data): Delete la_class_name_from_physname
5750 initializer.
5751 (minimal_language_data): Likewise.
5752 * d-lang.c (d_language_data): Likewise.
5753 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5754 method on language_defn class.
5755 (guess_full_die_structure_name): Likewise.
5756 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5757 initializer.
5758 * go-lang.c (go_language_data): Likewise.
5759 * language.c (language_class_name_from_physname): Delete.
5760 (unk_lang_class_name): Delete.
5761 (unknown_language_data): Delete la_class_name_from_physname
5762 initializer.
5763 (auto_language_data): Likewise.
5764 * language.h (language_data): Delete la_class_name_from_physname
5765 field.
5766 (language_defn::class_name_from_physname): New function.
5767 (language_class_name_from_physname): Delete declaration.
5768 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5769 initializer.
5770 * objc-lang.c (objc_language_data): Likewise.
5771 * opencl-lang.c (opencl_language_data): Likewise.
5772 * p-lang.c (pascal_language_data): Likewise.
5773 * rust-lang.c (rust_language_data): Likewise.
5774
5775 2020-06-16 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-data.h (STATUS_NAME): New macro.
5778 * tui/tui-layout.c (tui_remove_some_windows)
5779 (initialize_known_windows, tui_register_window)
5780 (tui_layout_split::remove_windows, initialize_layouts)
5781 (tui_new_layout_command): Don't use hard-coded window names.
5782
5783 2020-06-16 Tom Tromey <tom@tromey.com>
5784
5785 PR tui/25348:
5786 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5787 tui_initialize_readline. Only run once. Call rl_initialize.
5788 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5789 tui_initialize_readline.
5790 * tui/tui-io.c (tui_setup_io): Call
5791 tui_ensure_readline_initialized.
5792 * tui/tui-interp.c (tui_interp::init): Update.
5793
5794 2020-06-16 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5797 Also preserve the status window.
5798
5799 2020-06-16 Tom Tromey <tom@tromey.com>
5800
5801 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5802 where m_window==nullptr.
5803
5804 2020-06-15 Tom Tromey <tromey@adacore.com>
5805
5806 * windows-nat.c (windows_nat::handle_output_debug_string):
5807 Update.
5808 (windows_nat::handle_ms_vc_exception): Update.
5809 * target.h (target_read_string): Change API.
5810 * target.c (target_read_string): Change API.
5811 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5812 Update.
5813 * solib-frv.c (frv_current_sos): Update.
5814 * solib-dsbt.c (dsbt_current_sos): Update.
5815 * solib-darwin.c (darwin_current_sos): Update.
5816 * linux-thread-db.c (inferior_has_bug): Update.
5817 * expprint.c (print_subexp_standard): Update.
5818 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5819 (ada_exception_message_1): Update.
5820
5821 2020-06-15 Tom Tromey <tromey@adacore.com>
5822
5823 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5824
5825 2020-06-15 Tom Tromey <tromey@adacore.com>
5826
5827 * valprint.c (read_string): Update comment.
5828 * target.c (MIN): Remove.
5829 (target_read_string): Rewrite.
5830
5831 2020-06-15 Tom Tromey <tromey@adacore.com>
5832
5833 * corefile.c (read_memory_string): Remove.
5834 * ada-valprint.c (ada_value_print_ptr): Update.
5835 * ada-lang.h (ada_tag_name): Change return type.
5836 * ada-lang.c (type_from_tag): Update.
5837 (ada_tag_name_from_tsd): Change return type. Use
5838 target_read_string.
5839 (ada_tag_name): Likewise.
5840 * gdbcore.h (read_memory_string): Don't declare.
5841
5842 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5843
5844 * symtab.c (rbreak_command): Ignore Windows drive colon.
5845
5846 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * NEWS: Mention removed GDBserver host support.
5849
5850 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5851
5852 * features/riscv/rebuild-csr-xml.sh: Updated.
5853
5854 2020-06-11 Tom Tromey <tom@tromey.com>
5855
5856 PR gdb/18318:
5857 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5858
5859 2020-06-09 Jonny Grant <jg@jguk.org>
5860 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * main.c (captured_main_1): Don't print new line after help.
5863 (print_gdb_help): add mailing list and IRC channel information
5864 to --help. Add new lines between items in the footer. Remove
5865 quotes around bug url.
5866
5867 2020-06-11 Keith Seitz <keiths@redhat.com>
5868
5869 PR gdb/21356
5870 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5871 Resolve typedefs for type length calculations.
5872
5873 2020-06-10 Tom de Vries <tdevries@suse.de>
5874
5875 PR ada/24713
5876 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5877 (write_psymbols): Enable .gdb_index for ada.
5878 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5879 ada.
5880
5881 2020-06-10 Tom de Vries <tdevries@suse.de>
5882
5883 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5884 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5885 namei" instead of "const char *name" argument.
5886 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5887 dw2_symtab_iter_init.
5888
5889 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5890
5891 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5892 to use type::field and field::type instead.
5893
5894 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5895
5896 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5897 to use field::type instead.
5898
5899 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5900
5901 * gdbtypes.h (struct field) <type, set_type>: New methods.
5902 Rename `type` field to...
5903 <m_type>: ... this. Change references throughout to use type or
5904 set_type methods.
5905 (FIELD_TYPE): Use field::type. Change call sites that modify
5906 the field's type to use field::set_type instead.
5907
5908 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5909
5910 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5911 to use type::index_type instead.
5912
5913 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5914
5915 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5916 methods.
5917 (TYPE_INDEX_TYPE): Use type::index_type.
5918 * gdbtypes.c (create_array_type_with_stride): Likewise.
5919
5920 2020-06-07 Tom Tromey <tom@tromey.com>
5921
5922 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5923 parameter.
5924 (generic_value_print): Update.
5925
5926 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 Revert commit 982a38f60b0.
5929 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5930
5931 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5934 avoid use after free.
5935
5936 2020-06-05 Tom de Vries <tdevries@suse.de>
5937
5938 * NEWS: Fix typos.
5939
5940 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5943 the per_bfd object.
5944 (dwarf2_read_debug_names): Likewise.
5945 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5946 object when re-using a per_bfd object with an index.
5947
5948 2020-06-03 Tom de Vries <tdevries@suse.de>
5949
5950 PR symtab/26046
5951 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5952 children for C++.
5953 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5954 DW_TAG_subprogram.
5955
5956 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5957
5958 * ada-lang.c (ada_language_data): Delete skip_trampoline
5959 initializer.
5960 * c-lang.c (c_language_data): Likewise.
5961 (cplus_language_data): Likewise.
5962 (cplus_language::skip_trampoline): New member function.
5963 (asm_language_data): Delete skip_trampoline initializer.
5964 (minimal_language_data): Likewise.
5965 * d-lang.c (d_language_data): Likewise.
5966 * f-lang.c (f_language_data): Likewise.
5967 * go-lang.c (go_language_data): Likewise.
5968 * language.c (unk_lang_trampoline): Delete function.
5969 (skip_language_trampoline): Update.
5970 (unknown_language_data): Delete skip_trampoline initializer.
5971 (auto_language_data): Likewise.
5972 * language.h (language_data): Delete skip_trampoline field.
5973 (language_defn::skip_trampoline): New function.
5974 * m2-lang.c (m2_language_data): Delete skip_trampoline
5975 initializer.
5976 * objc-lang.c (objc_skip_trampoline): Delete function, move
5977 implementation to objc_language::skip_trampoline.
5978 (objc_language_data): Delete skip_trampoline initializer.
5979 (objc_language::skip_trampoline): New member function with
5980 implementation from objc_skip_trampoline.
5981 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5982 initializer.
5983 * p-lang.c (pascal_language_data): Likewise.
5984 * rust-lang.c (rust_language_data): Likewise.
5985
5986 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5987
5988 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5989 (ada_language::demangle): New member function.
5990 * c-lang.c (c_language_data): Delete la_demangle initializer.
5991 (cplus_language_data): Delete la_demangle initializer.
5992 (cplus_language::demangle): New member function.
5993 (asm_language_data): Delete la_demangle initializer.
5994 (minimal_language_data): Delete la_demangle initializer.
5995 * d-lang.c (d_language_data): Delete la_demangle initializer.
5996 (d_language::demangle): New member function.
5997 * f-lang.c (f_language_data): Delete la_demangle initializer.
5998 (f_language::demangle): New member function.
5999 * go-lang.c (go_language_data): Delete la_demangle initializer.
6000 (go_language::demangle): New member function.
6001 * language.c (language_demangle): Update.
6002 (unk_lang_demangle): Delete.
6003 (unknown_language_data): Delete la_demangle initializer.
6004 (unknown_language::demangle): New member function.
6005 (auto_language_data): Delete la_demangle initializer.
6006 (auto_language::demangle): New member function.
6007 * language.h (language_data): Delete la_demangle field.
6008 (language_defn::demangle): New function.
6009 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6010 * objc-lang.c (objc_language_data): Delete la_demangle
6011 initializer.
6012 (objc_language::demangle): New member function.
6013 * opencl-lang.c (opencl_language_data): Delete la_demangle
6014 initializer.
6015 * p-lang.c (pascal_language_data): Likewise.
6016 * rust-lang.c (rust_language_data): Likewise.
6017 (rust_language::demangle): New member function.
6018
6019 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6020
6021 * ada-lang.c (ada_language_data): Delete la_print_type
6022 initializer.
6023 (ada_language::print_type): New member function.
6024 * c-lang.c (c_language_data): Delete la_print_type initializer.
6025 (c_language::print_type): New member function.
6026 (cplus_language_data): Delete la_print_type initializer.
6027 (cplus_language::print_type): New member function.
6028 (asm_language_data): Delete la_print_type initializer.
6029 (asm_language::print_type): New member function.
6030 (minimal_language_data): Delete la_print_type initializer.
6031 (minimal_language::print_type): New member function.
6032 * d-lang.c (d_language_data): Delete la_print_type initializer.
6033 (d_language::print_type): New member function.
6034 * f-lang.c (f_language_data): Delete la_print_type initializer.
6035 (f_language::print_type): New member function.
6036 * go-lang.c (go_language_data): Delete la_print_type initializer.
6037 (go_language::print_type): New member function.
6038 * language.c (unk_lang_print_type): Delete.
6039 (unknown_language_data): Delete la_print_type initializer.
6040 (unknown_language::print_type): New member function.
6041 (auto_language_data): Delete la_print_type initializer.
6042 (auto_language::print_type): New member function.
6043 * language.h (language_data): Delete la_print_type field.
6044 (language_defn::print_type): New function.
6045 (LA_PRINT_TYPE): Update.
6046 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6047 (m2_language::print_type): New member function.
6048 * objc-lang.c (objc_language_data): Delete la_print_type
6049 initializer.
6050 (objc_language::print_type): New member function.
6051 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6052 to opencl_language::print_type.
6053 (opencl_language_data): Delete la_print_type initializer.
6054 (opencl_language::print_type): New member function, implementation
6055 from opencl_print_type.
6056 * p-lang.c (pascal_language_data): Delete la_print_type
6057 initializer.
6058 (pascal_language::print_type): New member function.
6059 * rust-lang.c (rust_print_type): Delete, implementation moved to
6060 rust_language::print_type.
6061 (rust_language_data): Delete la_print_type initializer.
6062 (rust_language::print_type): New member function, implementation
6063 from rust_print_type.
6064
6065 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6066
6067 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6068 implementation moves to...
6069 (ada_language::sniff_from_mangled_name): ...here. Update return
6070 type.
6071 (ada_language_data): Delete la_sniff_from_mangled_name
6072 initializer.
6073 * c-lang.c (c_language_data): Likewise.
6074 (cplus_language_data): Likewise.
6075 (cplus_language::sniff_from_mangled_name): New member function,
6076 implementation taken from gdb_sniff_from_mangled_name.
6077 (asm_language_data): Delete la_sniff_from_mangled_name
6078 initializer.
6079 (minimal_language_data): Likewise.
6080 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6081 implementation moves to cplus_language::sniff_from_mangled_name.
6082 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6083 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6084 moves to...
6085 (d_language::sniff_from_mangled_name): ...here.
6086 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6087 * f-lang.c (f_language_data): Likewise.
6088 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6089 moves to...
6090 (go_language::sniff_from_mangled_name): ...here.
6091 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6092 * language.c (language_sniff_from_mangled_name): Delete.
6093 (unknown_language_data): Delete la_sniff_from_mangled_name
6094 initializer.
6095 (auto_language_data): Likewise.
6096 * language.h (language_data): Delete la_sniff_from_mangled_name
6097 field.
6098 (language_defn::sniff_from_mangled_name): New function.
6099 (language_sniff_from_mangled_name): Delete declaration.
6100 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6101 field.
6102 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6103 implementation moves to...
6104 (objc_language::sniff_from_mangled_name): ...here.
6105 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6106 * opencl-lang.c (opencl_language_data): Likewise.
6107 * p-lang.c (pascal_language_data): Likewise.
6108 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6109 implementation moves to...
6110 (rust_language::sniff_from_mangled_name): ...here.
6111 (rust_language_data): Delete la_sniff_from_mangled_name
6112 initializer.
6113 * symtab.c (symbol_find_demangled_name): Call
6114 sniff_from_mangled_name member function.
6115
6116 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6117
6118 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6119 initializer.
6120 * c-lang.c (c_language_data): Likewise.
6121 (cplus_language_data): Likewise.
6122 (cplus_language::search_name_hash): New member function.
6123 (asm_language_data): Delete la_search_name_hash initializer.
6124 (minimal_language_data): Likewise.
6125 * d-lang.c (d_language_data): Likewise.
6126 * dictionary.c (default_search_name_hash): Rename to...
6127 (language_defn::search_name_hash): ...this.
6128 * f-lang.c (f_language_data): Likewise.
6129 (f_language::search_name_hash): New member function.
6130 * go-lang.c (go_language_data): Delete la_search_name_hash
6131 initializer.
6132 * language.c (unknown_language_data): Likewise.
6133 (auto_language_data): Likewise.
6134 * language.h (struct language_data): Delete la_search_name_hash
6135 field.
6136 (language_defn::search_name_hash): Declare new member function.
6137 (default_search_name_hash): Delete declaration.
6138 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6139 initializer.
6140 * objc-lang.c (objc_language_data): Likewise.
6141 * opencl-lang.c (opencl_language_data): Likewise.
6142 * p-lang.c (pascal_language_data): Likewise.
6143 * rust-lang.c (rust_language_data): Likewise.
6144 * symtab.c (search_name_hash): Update call.
6145
6146 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6149 initializer.
6150 * c-lang.c (class compile_instance): Declare.
6151 (c_language_data): Delete la_get_compile_instance initializer.
6152 (c_language::get_compile_instance): New member function.
6153 (cplus_language_data): Delete la_get_compile_instance initializer.
6154 (cplus_language::get_compile_instance): New member function.
6155 (asm_language_data): Delete la_get_compile_instance initializer.
6156 (minimal_language_data): Likewise.
6157 * c-lang.h (c_get_compile_context): Update comment.
6158 (cplus_get_compile_context): Update comment.
6159 * compile/compile.c (compile_to_object): Update calls, don't rely
6160 on function pointer being NULL.
6161 * d-lang.c (d_language_data): Delete la_get_compile_instance
6162 initializer.
6163 * f-lang.c (f_language_data): Likewise.
6164 * go-lang.c (go_language_data): Likewise.
6165 * language.c (unknown_language_data): Likewise.
6166 (auto_language_data): Likewise.
6167 * language.h (language_data): Delete la_get_compile_instance field.
6168 (language_defn::get_compile_instance): New member function.
6169 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6170 initializer.
6171 * objc-lang.c (objc_language_data): Likewise.
6172 * opencl-lang.c (opencl_language_data): Likewise.
6173 * p-lang.c (pascal_language_data): Likewise.
6174 * rust-lang.c (rust_language_data): Likewise.
6175
6176 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6177
6178 * ada-lang.c (ada_add_all_symbols): Update comment.
6179 (ada_iterate_over_symbols): Delete, move implementation to...
6180 (ada_language::iterate_over_symbols): ...here, a new member
6181 function, rewrite to use range based for loop.
6182 (ada_language_data): Delete la_iterate_over_symbols initializer.
6183 * c-lang.c (c_language_data): Likewise.
6184 (cplus_language_data): Likewise.
6185 (asm_language_data): Likewise.
6186 (minimal_language_data): Likewise.
6187 * d-lang.c (d_language_data): Likewise.
6188 * f-lang.c (f_language_data): Likewise.
6189 * go-lang.c (go_language_data): Likewise.
6190 * language.c (unknown_language_data): Likewise.
6191 (auto_language_data): Likewise.
6192 * language.h (language_data): Delete la_iterate_over_symbols field.
6193 (language_defn::iterate_over_symbols): New member function.
6194 (LA_ITERATE_OVER_SYMBOLS): Update.
6195 * linespec.c (iterate_over_all_matching_symtabs): Update.
6196 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6197 initializer.
6198 * objc-lang.c (objc_language_data): Likewise.
6199 * opencl-lang.c (opencl_language_data): Likewise.
6200 * p-lang.c (pascal_language_data): Likewise.
6201 * rust-lang.c (rust_language_data): Likewise.
6202
6203 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * ada-lang.c (ada_language_data): Delete
6206 la_lookup_transparent_type initializer.
6207 * c-lang.c (c_language_data): Likewise.
6208 (cplus_language_data): Likewise.
6209 (cplus_language::lookup_transparent_type): New member function.
6210 (asm_language_data): Delete la_lookup_transparent_type
6211 initializer.
6212 (minimal_language_data): Likewise.
6213 * d-lang.c (d_language_data): Likewise.
6214 * f-lang.c (f_language_data): Likewise.
6215 * go-lang.c (go_language_data): Likewise.
6216 * language.c (unknown_language_data): Likewise.
6217 (auto_language_data): Likewise.
6218 * language.h (struct language_data): Delete
6219 la_lookup_transparent_type field.
6220 (language_defn::lookup_transparent_type): New member function.
6221 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6222 initializer.
6223 * objc-lang.c (objc_language_data): Likewise.
6224 * opencl-lang.c (opencl_language_data): Likewise.
6225 * p-lang.c (pascal_language_data): Likewise.
6226 * rust-lang.c (rust_language_data): Likewise.
6227 * symtab.c (symbol_matches_domain): Update call.
6228
6229 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * ada-lang.c (ada_language_arch_info): Delete function, move
6232 implementation to...
6233 (ada_language::language_arch_info): ...here, a new member
6234 function.
6235 (ada_language_data): Delete la_language_arch_info.
6236 * c-lang.c (c_language_data): Likewise.
6237 (c_language::language_arch_info): New member function.
6238 (cplus_language_arch_info): Delete function, move
6239 implementation to...
6240 (cplus_language::language_arch_info): ...here, a new member
6241 function.
6242 (cplus_language_data): Delete la_language_arch_info.
6243 (asm_language_data): Likewise.
6244 (asm_language::language_arch_info): New member function.
6245 (minimal_language_data): Delete la_language_arch_info.
6246 (minimal_language::language_arch_info): New member function.
6247 * d-lang.c (d_language_arch_info): Delete function, move
6248 implementation to...
6249 (d_language::language_arch_info): ...here, a new member
6250 function.
6251 (d_language_data): Delete la_language_arch_info.
6252 * f-lang.c (f_language_arch_info): Delete function, move
6253 implementation to...
6254 (f_language::language_arch_info): ...here, a new member
6255 function.
6256 (f_language_data): Delete la_language_arch_info.
6257 * go-lang.c (go_language_arch_info): Delete function, move
6258 implementation to...
6259 (go_language::language_arch_info): ...here, a new member
6260 function.
6261 (go_language_data): Delete la_language_arch_info.
6262 * language.c (unknown_language_data): Likewise.
6263 (unknown_language::language_arch_info): New member function.
6264 (auto_language_data): Delete la_language_arch_info.
6265 (auto_language::language_arch_info): New member function.
6266 (language_gdbarch_post_init): Update call to
6267 la_language_arch_info.
6268 * language.h (language_data): Delete la_language_arch_info
6269 function pointer.
6270 (language_defn::language_arch_info): New function.
6271 * m2-lang.c (m2_language_arch_info): Delete function, move
6272 implementation to...
6273 (m2_language::language_arch_info): ...here, a new member
6274 function.
6275 (m2_language_data): Delete la_language_arch_info.
6276 * objc-lang.c (objc_language_arch_info): Delete function, move
6277 implementation to...
6278 (objc_language::language_arch_info): ...here, a new member
6279 function.
6280 (objc_language_data): Delete la_language_arch_info.
6281 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6282 implementation to...
6283 (opencl_language::language_arch_info): ...here, a new member
6284 function.
6285 (opencl_language_data): Delete la_language_arch_info.
6286 * p-lang.c (pascal_language_arch_info): Delete function, move
6287 implementation to...
6288 (pascal_language::language_arch_info): ...here, a new member
6289 function.
6290 (pascal_language_data): Delete la_language_arch_info.
6291 * rust-lang.c (rust_language_arch_info): Delete function, move
6292 implementation to...
6293 (rust_language::language_arch_info): ...here, a new member
6294 function.
6295 (rust_language_data): Delete la_language_arch_info.
6296
6297 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6298
6299 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6300 initializer.
6301 * c-lang.c (c_language_data): Likewise.
6302 (cplus_language_data): Likewise.
6303 (cplus_language::pass_by_reference_info): New method.
6304 (asm_language_data): Delete la_pass_by_reference initializer.
6305 (minimal_language_data): Likewise.
6306 * cp-abi.c (cp_pass_by_reference): Remove use of
6307 default_pass_by_reference.
6308 * d-lang.c (d_language_data): Likewise.
6309 * f-lang.c (f_language_data): Likewise.
6310 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6311 default_pass_by_reference.
6312 * go-lang.c (go_language_data): Likewise.
6313 * language.c (language_pass_by_reference): Update.
6314 (default_pass_by_reference): Delete.
6315 (unknown_language_data): Delete la_pass_by_reference
6316 initializer.
6317 (auto_language_data): Likewise.
6318 * language.h (struct language_data): Delete la_pass_by_reference
6319 field.
6320 (language_defn::pass_by_reference_info): New member function.
6321 (default_pass_by_reference): Delete declaration.
6322 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6323 initializer.
6324 * objc-lang.c (objc_language_data): Likewise.
6325 * opencl-lang.c (opencl_language_data): Likewise.
6326 * p-lang.c (pascal_language_data): Likewise.
6327 * rust-lang.c (rust_language_data): Likewise.
6328
6329 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 * ada-lang.c (ada_read_var_value): Delete function, move
6332 implementation to...
6333 (ada_language::read_var_value): ...here.
6334 (ada_language_data): Delete la_read_var_value initializer.
6335 * c-lang.c (c_language_data): Likewise.
6336 (cplus_language_data): Likewise.
6337 (minimal_language_data): Likewise.
6338 * d-lang.c (d_language_data): Likewise.
6339 * f-lang.c (f_language_data): Likewise.
6340 * findvar.c (default_read_var_value): Rename to...
6341 (language_defn::read_var_value): ...this.
6342 * findvar.c (read_var_value): Update header comment, and change to
6343 call member function instead of function pointer.
6344 * go-lang.c (go_language_data): Likewise.
6345 * language.c (unknown_language_data): Delete la_read_var_value
6346 initializer.
6347 (auto_language_data): Likewise.
6348 * language.h (struct language_data): Delete la_read_var_value
6349 field.
6350 (language_defn::read_var_value): New member function.
6351 (default_read_var_value): Delete declaration.
6352 * m2-lang.c (m2_language_data): Delete la_read_var_value
6353 initializer.
6354 * objc-lang.c (objc_language_data): Likewise.
6355 * opencl-lang.c (opencl_language_data): Likewise.
6356 * p-lang.c (pascal_language_data): Likewise.
6357 * rust-lang.c (rust_language_data): Likewise.
6358 * value.h (default_read_var_value): Delete declaration.
6359
6360 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6361
6362 * ada-lang.c (ada_print_array_index): Delete function, move
6363 implementation to...
6364 (ada_language::print_array_index): ...here.
6365 (ada_language_data): Delete la_print_array_index initializer.
6366 * c-lang.c (c_language_data): Likewise.
6367 (cplus_language_data): Likewise.
6368 (minimal_language_data): Likewise.
6369 * d-lang.c (d_language_data): Likewise.
6370 * f-lang.c (f_language_data): Likewise.
6371 * go-lang.c (go_language_data): Likewise.
6372 * language.c (default_print_array_index): Delete function, move
6373 implementation to...
6374 (language_defn::print_array_index): ...here.
6375 (unknown_language_data): Delete la_print_array_index initializer.
6376 (auto_language_data): Likewise.
6377 * language.h (struct language_data): Delete la_print_array_index
6378 field.
6379 (language_defn::print_array_index): New member function.
6380 (LA_PRINT_ARRAY_INDEX): Update.
6381 (default_print_array_index): Delete declaration.
6382 * m2-lang.c (m2_language_data): Delete la_print_array_index
6383 initializer.
6384 * objc-lang.c (objc_language_data): Likewise.
6385 * opencl-lang.c (opencl_language_data): Likewise.
6386 * p-lang.c (pascal_language_data): Likewise.
6387 * rust-lang.c (rust_language_data): Likewise.
6388
6389 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6390
6391 * gdb/ada-lang.c (ada_language_defn): Convert to...
6392 (ada_language_data): ...this.
6393 (class ada_language): New class.
6394 (ada_language_defn): New static global.
6395 * gdb/c-lang.c (c_language_defn): Convert to...
6396 (c_language_data): ...this.
6397 (class c_language): New class.
6398 (c_language_defn): New static global.
6399 (cplus_language_defn): Convert to...
6400 (cplus_language_data): ...this.
6401 (class cplus_language): New class.
6402 (cplus_language_defn): New static global.
6403 (asm_language_defn): Convert to...
6404 (asm_language_data): ...this.
6405 (class asm_language): New class.
6406 (asm_language_defn): New static global.
6407 (minimal_language_defn): Convert to...
6408 (minimal_language_data): ...this.
6409 (class minimal_language): New class.
6410 (minimal_language_defn): New static global.
6411 * gdb/d-lang.c (d_language_defn): Convert to...
6412 (d_language_data): ...this.
6413 (class d_language): New class.
6414 (d_language_defn): New static global.
6415 * gdb/f-lang.c (f_language_defn): Convert to...
6416 (f_language_data): ...this.
6417 (class f_language): New class.
6418 (f_language_defn): New static global.
6419 * gdb/go-lang.c (go_language_defn): Convert to...
6420 (go_language_data): ...this.
6421 (class go_language): New class.
6422 (go_language_defn): New static global.
6423 * gdb/language.c (unknown_language_defn): Remove declaration.
6424 (current_language): Initialize to nullptr, real initialization is
6425 moved to _initialize_language.
6426 (languages): Delete global.
6427 (language_defn::languages): Define.
6428 (set_language_command): Use language_defn::languages.
6429 (set_language): Likewise.
6430 (range_error): Likewise.
6431 (language_enum): Likewise.
6432 (language_def): Likewise.
6433 (add_set_language_command): Use language_def::languages for the
6434 language list, and language_def to lookup language pointers.
6435 (skip_language_trampoline): Use language_defn::languages.
6436 (unknown_language_defn): Convert to...
6437 (unknown_language_data): ...this.
6438 (class unknown_language): New class.
6439 (unknown_language_defn): New static global.
6440 (auto_language_defn): Convert to...
6441 (auto_language_data): ...this.
6442 (class auto_language): New class.
6443 (auto_language_defn): New static global.
6444 (language_gdbarch_post_init): Use language_defn::languages.
6445 (_initialize_language): Initialize current_language.
6446 * gdb/language.h (struct language_defn): Rename to...
6447 (struct language_data): ...this.
6448 (struct language_defn): New.
6449 (auto_language_defn): Delete.
6450 (unknown_language_defn): Delete.
6451 (minimal_language_defn): Delete.
6452 (ada_language_defn): Delete.
6453 (asm_language_defn): Delete.
6454 (c_language_defn): Delete.
6455 (cplus_language_defn): Delete.
6456 (d_language_defn): Delete.
6457 (f_language_defn): Delete.
6458 (go_language_defn): Delete.
6459 (m2_language_defn): Delete.
6460 (objc_language_defn): Delete.
6461 (opencl_language_defn): Delete.
6462 (pascal_language_defn): Delete.
6463 (rust_language_defn): Delete.
6464 * gdb/m2-lang.c (m2_language_defn): Convert to...
6465 (m2_language_data): ...this.
6466 (class m2_language): New class.
6467 (m2_language_defn): New static global.
6468 * gdb/objc-lang.c (objc_language_defn): Convert to...
6469 (objc_language_data): ...this.
6470 (class objc_language): New class.
6471 (objc_language_defn): New static global.
6472 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6473 (opencl_language_data): ...this.
6474 (class opencl_language): New class.
6475 (opencl_language_defn): New static global.
6476 * gdb/p-lang.c (pascal_language_defn): Convert to...
6477 (pascal_language_data): ...this.
6478 (class pascal_language): New class.
6479 (pascal_language_defn): New static global.
6480 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6481 language pointer, update comment format.
6482 * gdb/rust-lang.c (rust_language_defn): Convert to...
6483 (rust_language_data): ...this.
6484 (class rust_language): New class.
6485 (rust_language_defn): New static global.
6486
6487 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6490 member variable.
6491 <m_stmt_at_address>: New member variable.
6492 (lnp_state_machine::record_line): Don't record some lines, update
6493 tracking of is_stmt at the same address.
6494 (lnp_state_machine::lnp_state_machine): Initialise new member
6495 variables.
6496
6497 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6498
6499 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6500 "-include gnu-nat-mig.h".
6501 * gnu-nat-mig.h: New file.
6502 * gnu-nat.c: Include "gnu-nat-mig.h".
6503 (exc_server, msg_reply_server, notify_server,
6504 process_reply_server): Remove declarations.
6505
6506 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6507
6508 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6509 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6510 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6511 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6512 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6513 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6514 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6515 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6516 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6517 to gnu_nat_target class.
6518 * gnu-nat.c: Likewise.
6519 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6520 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6521 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6522 object.
6523 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6524 instead of `gnu_target'.
6525
6526 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6527
6528 * i386-gnu-tdep.c: Include "gdbcore.h"
6529 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6530 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6531 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6532 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6533 i386_gnu_sigcontext_addr): New functions
6534 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6535 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6536 tdep.
6537
6538 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6539
6540 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6541 before fork_inferior call. Avoid calling it if target_is_pushed returns
6542 true.
6543
6544 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6545
6546 * gnu-nat.h (gnu_target): New variable declaration.
6547 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6548 gnu_target.
6549 * gnu-nat.c (gnu_target): New variable.
6550 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6551 add_thread_silent, and add_thread calls.
6552 (gnu_nat_target::create_inferior): Pass gnu_target to
6553 add_thread_silent, thread_change_ptid call.
6554 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6555 call.
6556
6557 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6558
6559 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6560 (gnu_nat_target::find_memory_regions): Remove unused
6561 `old_address' variable.
6562
6563 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6564
6565 * gnu-nat.c: Include "gdbarch.h".
6566
6567 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6568
6569 * reply_mig_hack.awk (Error return): Cast function through
6570 void *, to bypass compiler function call check.
6571
6572 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6573
6574 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6575 $(srcdir)/reply_mig_hack.awk.
6576
6577 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6578
6579 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6580
6581 2020-05-30 Jonny Grant <jg@jguk.org>
6582
6583 * configure.ac (ACX_BUGURL): change bug URL to https.
6584
6585 2020-05-30 Pedro Alves <palves@redhat.com>
6586
6587 * cp-support.c (replace_typedefs_template): New.
6588 (replace_typedefs_qualified_name): Handle
6589 DEMANGLE_COMPONENT_TEMPLATE.
6590
6591 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6594 dwarf2/index-cache.h, dwarf2/index-write.c,
6595 dwarf2/index-write.h, dwarf2/line-header.c,
6596 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6597 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6598 variables and fields from `dwarf2_per_objfile` to just
6599 `per_objfile` throughout.
6600
6601 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6602
6603 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6604 <push_dwarf_reg_entry_value>: Add comment.
6605
6606 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6607 Keith Seitz <keiths@redhat.com>
6608
6609 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6610 instead of PyEval_ReleaseLock.
6611 (class gdbpy_gil): Move to earlier in file.
6612 (finalize_python): Set gdb_python_initialized.
6613 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6614 when not initialized.
6615
6616 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6617
6618 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6619 <push_dwarf_reg_entry_value>: Remove assert. Override
6620 per_objfile with caller_per_objfile.
6621
6622 2020-05-28 Tom de Vries <tdevries@suse.de>
6623
6624 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6625 PR gold/15646 workaround to symbol kind "type".
6626
6627 2020-05-27 Tom Tromey <tromey@adacore.com>
6628
6629 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6630
6631 2020-05-27 Tom Tromey <tromey@adacore.com>
6632
6633 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6634 Use htab_find_with_hash.
6635 <add_abbrev>: Remove "abbrev_number" parameter.
6636 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6637 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6638 (hash_abbrev): Add comment.
6639 (abbrev_table::lookup_abbrev): Move to header file.
6640 (abbrev_table::read): Update.
6641
6642 2020-05-27 Tom Tromey <tromey@adacore.com>
6643
6644 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6645 method.
6646 <canonical_name>: New member.
6647 <raw_name>: Rename from "name".
6648 (partial_die_info): Initialize canonical_name.
6649 (scan_partial_symbols): Check raw_name.
6650 (partial_die_parent_scope, partial_die_full_name)
6651 (add_partial_symbol, add_partial_subprogram)
6652 (add_partial_enumeration, load_partial_dies): Use "name" method.
6653 (partial_die_info::name): New method.
6654 (partial_die_info::read, guess_partial_die_structure_name)
6655 (partial_die_info::fixup): Update.
6656
6657 2020-05-27 Tom Tromey <tromey@adacore.com>
6658
6659 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6660 <get_ref_die_offset>: Inline.
6661 <get_ref_die_offset_complaint>: New method.
6662 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6663 (attribute::get_ref_die_offset_complaint): Rename from
6664 get_ref_die_offset. Just issue complaint.
6665
6666 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6667
6668 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6669
6670 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6671
6672 * exec.c (exec_file_attach): Use errno value of first openp failure.
6673
6674 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6675
6676 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6677 Don't close thread handle.
6678
6679 2020-05-27 Tom Tromey <tom@tromey.com>
6680 Simon Marchi <simon.marchi@efficios.com>
6681
6682 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6683 shared_ptr.
6684 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6685 member.
6686 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6687 dwarf2_per_bfd_objfile_data_key>: New globals.
6688 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6689 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6690 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6691 shared.
6692 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6693 short-circuit when sharing.
6694 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6695 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6696
6697 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6698
6699 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6700 to...
6701 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6702 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6703
6704 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6705
6706 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6707 build_name_components, find_name_components_bounds>:
6708 Add per_objfile parameter.
6709 (struct mapped_index) <symbol_name_at>: Likewise.
6710 (struct mapped_debug_names): Remove constructor.
6711 <dwarf2_per_objfile>: Remove field.
6712 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6713 (mapped_index_base::find_name_components_bounds,
6714 mapped_index_base::build_name_components,
6715 dw2_expand_symtabs_matching_symbol): Likewise.
6716 (class mock_mapped_index) <symbol_name_at>: Likewise.
6717 (check_match): Likewise.
6718 (check_find_bounds_finds): Likewise.
6719 (test_mapped_index_find_name_component_bounds): Update.
6720 (CHECK_MATCH): Update.
6721 (dw2_expand_symtabs_matching): Update.
6722 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6723 per_objfile parameter.
6724 <find_vec_in_debug_names>: Likewise.
6725 <m_per_objfile>: New field.
6726 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6727 parameter.
6728 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6729 (dw2_debug_names_iterator::next): Update.
6730 (dw2_debug_names_lookup_symbol): Update.
6731 (dw2_debug_names_expand_symtabs_for_function): Update.
6732 (dw2_debug_names_map_matching_symbols): Update.
6733 (dw2_debug_names_expand_symtabs_matching): Update.
6734 (dwarf2_read_debug_names): Update.
6735
6736 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6737
6738 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6739 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6740 move to dwarf2_per_objfile.
6741 <read_in_chain>: Remove.
6742 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6743 remove_all_cus, age_comp_units>: New methods.
6744 <m_dwarf2_cus>: New member.
6745 (struct dwarf2_per_cu_data) <cu>: Remove.
6746 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6747 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6748 moved to methods of dwarf2_per_objfile.
6749 (dwarf2_clear_marks): Remove.
6750 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6751 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6752 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6753 (dwarf2_per_objfile::remove_all_cus): New.
6754 (class free_cached_comp_units) <~free_cached_comp_units>:
6755 Update.
6756 (load_cu): Update.
6757 (dw2_do_instantiate_symtab): Adjust.
6758 (fill_in_sig_entry_from_dwo_entry): Adjust.
6759 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6760 (cutu_reader::cutu_reader): Likewise.
6761 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6762 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6763 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6764 and dwarf2_per_objfile::age_comp_units.
6765 (load_partial_comp_unit): Update.
6766 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6767 (process_queue): Likewise.
6768 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6769 backlink.
6770 (dwarf2_read_addr_index): Likewise.
6771 (follow_die_offset): Likewise.
6772 (dwarf2_fetch_die_loc_sect_off): Likewise.
6773 (dwarf2_fetch_constant_bytes): Likewise.
6774 (dwarf2_fetch_die_type_sect_off): Likewise.
6775 (follow_die_sig_1): Likewise.
6776 (load_full_type_unit): Likewise.
6777 (read_signatured_type): Likewise.
6778 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6779 (dwarf2_cu::~dwarf2_cu): Remove.
6780 (dwarf2_per_objfile::get_cu): New.
6781 (dwarf2_per_objfile::set_cu): New.
6782 (age_cached_comp_units): Rename to...
6783 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6784 to std::unordered_map.
6785 (free_one_cached_comp_unit): Rename to...
6786 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6787 to std::unordered_map.
6788 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6789 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6790 a dwarf2_per_objfile in data.
6791 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6792 (dwarf2_clear_marks): Remove.
6793
6794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6795
6796 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6797 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6798 (init_tu_and_read_dwo_dies): Likewise.
6799 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6800 (cutu_reader::cutu_reader): Likewise.
6801 (load_partial_comp_unit): Likewise.
6802 (process_psymtab_comp_unit): Update.
6803 (build_type_psymtabs_1): Update.
6804 (process_skeletonless_type_unit): Update.
6805 (load_full_comp_unit): Update.
6806 (find_partial_die): Update.
6807 (dwarf2_read_addr_index): Update.
6808 (read_signatured_type): Update.
6809
6810 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6811
6812 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6813 m_header_read_in>: New fields.
6814 <get_header>: New method.
6815 * dwarf2/read.c (per_cu_header_read_in): Remove.
6816 (dwarf2_per_cu_data::get_header): New.
6817 (dwarf2_per_cu_data::addr_size): Update.
6818 (dwarf2_per_cu_data::offset_size): Update.
6819 (dwarf2_per_cu_data::ref_addr_size): Update.
6820
6821 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6822
6823 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6824 (dw2_do_instantiate_symtab): Update.
6825 (queue_and_load_all_dwo_tus): Change parameter from
6826 dwarf2_per_cu_data to dwarf2_cu.
6827 (dwarf2_fetch_die_loc_sect_off): Update.
6828 (dwarf2_fetch_constant_bytes): Update.
6829 (dwarf2_fetch_die_type_sect_off): Update.
6830
6831 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6832
6833 * dwarf2/read.c (process_full_comp_unit,
6834 process_full_type_unit): Remove per_cu, per_objfile paramters.
6835 Add dwarf2_cu parameter.
6836 (process_queue): Update.
6837
6838 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * dwarf2/read.c (create_cu_from_index_list): Replace
6841 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6842 (create_cus_from_index_list): Likewise.
6843 (create_cus_from_index): Likewise.
6844 (create_signatured_type_table_from_index): Likewise.
6845 (create_cus_from_debug_names_list): Likewise.
6846 (create_cus_from_debug_names): Likewise.
6847 (dwarf2_read_gdb_index): Update.
6848 (dwarf2_read_debug_names): Update.
6849
6850 2020-05-27 Tom Tromey <tom@tromey.com>
6851 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * dwarf2/read.h (struct dwarf2_per_objfile)
6854 <get_type_for_signatured_type, set_type_for_signatured_type>:
6855 New methods.
6856 <m_type_map>: New member.
6857 (struct signatured_type) <type>: Remove.
6858 * dwarf2/read.c
6859 (dwarf2_per_objfile::get_type_for_signatured_type,
6860 dwarf2_per_objfile::set_type_for_signatured_type): New.
6861 (get_signatured_type): Use new methods.
6862
6863 2020-05-27 Tom Tromey <tom@tromey.com>
6864 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6867 (struct dwarf2_per_objfile) <type_units>: New member.
6868 <get_type_unit_group_unshareable>: New method.
6869 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6870 num_symtabs, symtabs>: Remove; move to
6871 type_unit_group_unshareable.
6872 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6873 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6874 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6875
6876 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * dwarf2/read.h (struct dwarf2_per_cu_data):
6879 <dwarf2_per_objfile>: Remove.
6880 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6881 dwarf2_per_objfile.
6882 (create_signatured_type_table_from_index): Likewise.
6883 (create_signatured_type_table_from_debug_names): Likewise.
6884 (create_debug_type_hash_table): Likewise.
6885 (fill_in_sig_entry_from_dwo_entry): Likewise.
6886 (create_type_unit_group): Likewise.
6887 (read_comp_units_from_section): Likewise.
6888 (create_cus_hash_table): Likewise.
6889
6890 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6893 dwarf2_per_cu_data::dwarf2_per_objfile.
6894 (compute_compunit_symtab_includes): Likewise.
6895 (dwarf2_cu::start_symtab): Likewise.
6896
6897 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6898
6899 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6900 parameter.
6901 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6902 (read_namespace_alias): Update.
6903 (lookup_die_type): Update.
6904 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6905 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6906 Update.
6907 (disassemble_dwarf_expression): Update.
6908
6909 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * dwarf2/read.h (struct dwarf2_queue_item): Add
6912 dwarf2_per_objfile parameter, assign new parameter.
6913 <per_objfile>: New field.
6914 * dwarf2/read.c (free_one_cached_comp_unit): Add
6915 dwarf2_per_objfile parameter.
6916 (queue_comp_unit): Likewise.
6917 (dw2_do_instantiate_symtab): Update.
6918 (process_psymtab_comp_unit): Update.
6919 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6920 (process_imported_unit_die): Update.
6921 (queue_and_load_dwo_tu): Update.
6922 (follow_die_offset): Update.
6923 (follow_die_sig_1): Update.
6924
6925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6928 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6929 (read_call_site_scope): Assign per_objfile.
6930 (dwarf2_per_cu_data::objfile): Remove.
6931 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6932 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6933 dwarf2_per_objfile parameter.
6934 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6935 dwarf2_per_objfile parameter.
6936 (dwarf_expr_reg_to_entry_parameter): Add output
6937 dwarf2_per_objfile parameter.
6938 (locexpr_get_frame_base): Update.
6939 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6940 <push_dwarf_reg_entry_value>: Update.
6941 <call_site_to_target_addr>: Update.
6942 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6943 parameter.
6944 (value_of_dwarf_reg_entry): Update.
6945 (rw_pieced_value): Update.
6946 (indirect_synthetic_pointer): Update.
6947 (dwarf2_evaluate_property): Update.
6948 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6949 parameter.
6950 (locexpr_read_variable): Update.
6951 (locexpr_get_symbol_read_needs): Update.
6952 (loclist_read_variable): Update.
6953
6954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6957 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6958 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6959 parameter.
6960 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6961 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6962 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6963 parameter.
6964 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6965 sect_variable_value): Add dwarf2_per_objfile parameter.
6966 (class dwarf_evaluate_loc_desc) <dwarf_call,
6967 dwarf_variable_value>: Update.
6968 (fetch_const_value_from_synthetic_pointer): Add
6969 dwarf2_per_objfile parameter.
6970 (fetch_const_value_from_synthetic_pointer): Update.
6971 (coerced_pieced_ref): Update.
6972 (class symbol_needs_eval_context) <dwarf_call,
6973 dwarf_variable_value>: Update.
6974 (dwarf2_compile_expr_to_ax): Update.
6975
6976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6977
6978 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6979 parameter.
6980 (dwarf2_evaluate_loc_desc_full): Update.
6981
6982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6985 parameter.
6986 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6987 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6988 dwarf2_per_objfile parameter.
6989 (decode_debug_loc_dwo_addresses): Likewise.
6990 (dwarf2_find_location_expression): Update.
6991 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6992 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6993 parameter.
6994 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6995 parameter.
6996 (locexpr_describe_location_1): Likewise.
6997 (locexpr_describe_location): Update.
6998
6999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7002 Remove.
7003 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7004 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7005 (dwarf2_compile_property_to_c): Update.
7006 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7007 use text offset from objfile.
7008 (locexpr_tracepoint_var_ref): Update.
7009 (locexpr_generate_c_location): Update.
7010 (loclist_describe_location): Update.
7011 (loclist_tracepoint_var_ref): Update.
7012 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7013 dwarf2_per_objfile parameter.
7014 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7015 use text offset from objfile.
7016 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7017
7018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * dwarf2/expr.h (struct dwarf_expr_context)
7021 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7022 <offset>: Remove.
7023 <per_objfile>: New member.
7024 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7025 dwarf2_per_objfile parameter. Don't set offset, set
7026 per_objfile.
7027 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7028 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7029 a dwarf2_per_objfile object instead of an offset.
7030 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7031 constructor.
7032 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7033 to dwarf2_expr_executor constructor. Don't set offset.
7034 (dwarf2_fetch_cfa_info): Update.
7035 (struct dwarf2_frame_cache) <text_offset>: Remove.
7036 <per_objfile>: New field.
7037 (dwarf2_frame_cache): Update.
7038 (dwarf2_frame_prev_register): Update.
7039 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7040 <dwarf_evaluate_loc_desc>: Add constructor.
7041 (dwarf2_evaluate_loc_desc_full): Update.
7042 (dwarf2_locexpr_baton_eval): Update.
7043 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7044 Add constructor.
7045 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7046
7047 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7048
7049 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7050 addr_sized_int_type>: Move to dwarf2_cu.
7051 <int_type>: Move to dwarf2_per_objfile.
7052 (struct dwarf2_per_objfile) <int_type>: Move here.
7053 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7054 addr_sized_int_type>: Move here.
7055 (read_func_scope): Update.
7056 (read_array_type): Update.
7057 (read_tag_string_type): Update.
7058 (attr_to_dynamic_prop): Update.
7059 (dwarf2_per_cu_data::int_type): Rename to...
7060 (dwarf2_per_objfile::int_type): ... this.
7061 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7062 (dwarf2_cu::addr_sized_int_type): ... this.
7063 (read_subrange_type): Update.
7064 (dwarf2_per_cu_data::addr_type): Rename to...
7065 (dwarf2_cu::addr_type): ... this.
7066 (set_die_type): Update.
7067
7068 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7071 data through per_cu->cu.
7072
7073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7076 dwarf2_per_cu_data parameter fo dwarf2_cu.
7077 (lookup_dwo_type_unit): Likewise.
7078 (read_cutu_die_from_dwo): Likewise.
7079 (lookup_dwo_unit): Likewise.
7080 (open_and_init_dwo_file): Likewise.
7081 (lookup_dwo_cutu): Likewise.
7082 (lookup_dwo_comp_unit): Likewise.
7083 (lookup_dwo_type_unit): Likewise.
7084 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7085 (cutu_reader::cutu_reader): Update.
7086
7087 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7088
7089 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7090 parameter.
7091 (process_full_type_unit): Likewise.
7092 (process_queue): Update.
7093
7094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7095
7096 * dwarf2/read.c (recursively_compute_inclusions): Add
7097 dwarf2_per_objfile parameter.
7098 (compute_compunit_symtab_includes): Likewise.
7099 (process_cu_includes): Update.
7100
7101 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7102
7103 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7104 parameter.
7105 (create_type_unit_group): Update.
7106 (process_psymtab_comp_unit_reader): Update.
7107 (build_type_psymtabs_reader): Update.
7108
7109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7110
7111 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7112 object through m_this_cu->cu.
7113
7114 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7115
7116 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7117 the info parameter.
7118 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7119
7120 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7121
7122 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7123 per_objfile parameter.
7124 (load_full_type_unit): Add per_objfile parameter.
7125 (read_signatured_type): Likewise.
7126 (load_full_comp_unit): Likewise.
7127 (load_cu): Likewise.
7128 (dw2_do_instantiate_symtab): Likewise.
7129 (dw2_get_file_names): Likewise.
7130 (dw2_map_symtabs_matching_filename): Update.
7131 (dw_expand_symtabs_matching_file_matcher): Update.
7132 (dw2_map_symbol_filenames): Update.
7133 (process_psymtab_comp_unit): Add per_objfile parameter.
7134 (build_type_psymtabs_1): Update.
7135 (process_skeletonless_type_unit): Update.
7136 (dwarf2_build_psymtabs_hard): Update.
7137 (load_partial_comp_unit): Add per_objfile parameter.
7138 (scan_partial_symbols): Update.
7139 (load_full_comp_unit): Add per_objfile parameter.
7140 (process_imported_unit_die): Update.
7141 (create_cus_hash_table): Update.
7142 (find_partial_die): Update.
7143 (dwarf2_read_addr_index): Update.
7144 (follow_die_offset): Update.
7145 (dwarf2_fetch_die_loc_sect_off): Update.
7146 (dwarf2_fetch_constant_bytes): Update.
7147 (dwarf2_fetch_die_type_sect_off): Update.
7148 (follow_die_sig_1): Update.
7149 (load_full_type_unit): Add per_objfile parameter.
7150 (read_signatured_type): Likewise.
7151
7152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7155 of objfile_name.
7156
7157 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7158
7159 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7160 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7161 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7162 field.
7163 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7164 (create_cus_from_index): Update.
7165 (dwarf2_read_gdb_index): Update.
7166 (create_cus_from_debug_names): Update.
7167 (dwarf2_read_debug_names): Update.
7168 (get_abbrev_section_for_cu): Update.
7169 (create_all_comp_units): Update.
7170 (read_attribute_value): Update.
7171 (get_debug_line_section): Update.
7172 * dwarf2/index-cache.c (index_cache::store): Update.
7173 * dwarf2/index-write.c (save_gdb_index_command): Update.
7174 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7175
7176 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7177
7178 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7179 member.
7180 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7181 dwarf2_per_cu_data::per_bfd.
7182 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7183 (create_type_unit_group): Likewise.
7184 (queue_comp_unit): Remove reference to
7185 per_cu->dwarf2_per_objfile.
7186 (maybe_queue_comp_unit): Likewise.
7187 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7188 (create_cus_hash_table): Assign new field.
7189
7190 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7191
7192 * dwarf2/read.c: Replace
7193 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7194 dwarf2_cu->per_objfile throughout.
7195
7196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7197
7198 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7199 parameter, don't use per_cu->dwarf2_per_objfile.
7200 (dw2_instantiate_symtab): Likewise.
7201 (dw2_find_last_source_symtab): Update.
7202 (dw2_map_expand_apply): Update.
7203 (dw2_lookup_symbol): Update.
7204 (dw2_expand_symtabs_for_function): Update.
7205 (dw2_expand_all_symtabs): Update.
7206 (dw2_expand_symtabs_with_fullname): Update.
7207 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7208 don't use per_cu->dwarf2_per_objfile.
7209 (dw2_expand_marked_cus): Update.
7210 (dw2_find_pc_sect_compunit_symtab): Update.
7211 (dw2_debug_names_lookup_symbol): Update.
7212 (dw2_debug_names_expand_symtabs_for_function): Update.
7213 (dw2_debug_names_map_matching_symbols): Update.
7214 (dwarf2_psymtab::expand_psymtab): Update.
7215
7216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7217
7218 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7219 <per_objfile>: New member.
7220 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7221 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7222 call to dwarf2_cu.
7223 (cutu_reader::cutu_reader): Update.
7224 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7225
7226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7227
7228 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7229 struct dwarf2_per_objfile.
7230 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7231 dwarf2_per_bfd.
7232 * dwarf2/read.c (set_die_type): Update.
7233 (get_die_type_at_offset): Update.
7234
7235 2020-05-27 Tom Tromey <tom@tromey.com>
7236 Simon Marchi <simon.marchi@efficios.com>
7237
7238 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7239 method.
7240 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7241 get_symtab, set_symtab>: New methods.
7242 <m_symtabs>: New field.
7243 (struct dwarf2_psymtab): Derive from partial_symtab.
7244 <readin_p, get_compunit_symtab>: Declare methods.
7245 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7246 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7247 New methods.
7248 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7249 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7250 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7251 (dw2_symtab_iter_next, dw2_print_stats)
7252 (dw2_expand_symtabs_with_fullname)
7253 (dw2_expand_symtabs_matching_one)
7254 (dw_expand_symtabs_matching_file_matcher)
7255 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7256 (dw2_debug_names_iterator::next)
7257 (dw2_debug_names_map_matching_symbols)
7258 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7259 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7260 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7261 New methods.
7262 (get_compunit_symtab, process_full_comp_unit)
7263 (process_full_type_unit): Update.
7264 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7265
7266 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7267
7268 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7269 then introduce a new dwarf2_per_objfile type.
7270 <read_line_string>: Move to the new dwarf2_per_objfile type.
7271 <objfile>: Likewise.
7272 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7273 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7274 dwarf2_per_objfile->per_bfd.
7275 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7276 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7277 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7278 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7279 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7280 (dwarf2_per_objfile::locate_sections): Rename to...
7281 (dwarf2_per_bfd::locate_sections): ... this.
7282 (dwarf2_per_objfile::get_cutu): Rename to...
7283 (dwarf2_per_bfd::get_cutu): ... this.
7284 (dwarf2_per_objfile::get_cu): Rename to...
7285 (dwarf2_per_bfd::get_cu): ... this.
7286 (dwarf2_per_objfile::get_tu): Rename to...
7287 (dwarf2_per_bfd::get_tu): ... this.
7288 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7289 (dwarf2_per_bfd::allocate_per_cu): ... this.
7290 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7291 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7292 (get_gdb_index_contents_ftype): Change parameter from
7293 dwarf2_per_objfile to dwarf2_per_bfd.
7294 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7295 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7296
7297 2020-05-27 Tom Tromey <tom@tromey.com>
7298 Simon Marchi <simon.marchi@efficios.com>
7299
7300 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7301 (allocate_piece_closure): Set "per_objfile" member.
7302 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7303 (locexpr_describe_location, loclist_describe_location): Use new
7304 member.
7305 * dwarf2/read.c (read_call_site_scope)
7306 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7307 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7308 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7309 handle_data_member_location): Set per_objfile member.
7310 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7311 member.
7312 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7313
7314 2020-05-27 Tom Tromey <tom@tromey.com>
7315
7316 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7317 allocate_signatured_type>: Declare new methods.
7318 <m_num_psymtabs>: New member.
7319 (struct dwarf2_per_cu_data) <index>: New member.
7320 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7321 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7322 (create_cu_from_index_list): Use allocate_per_cu.
7323 (create_signatured_type_table_from_index)
7324 (create_signatured_type_table_from_debug_names)
7325 (create_debug_type_hash_table, add_type_unit)
7326 (read_comp_units_from_section): Use allocate_signatured_type.
7327
7328 2020-05-27 Tom Tromey <tom@tromey.com>
7329
7330 * psymtab.c (partial_map_expand_apply)
7331 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7332 (psym_lookup_global_symbol_language)
7333 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7334 (psym_print_stats, psym_expand_symtabs_for_function)
7335 (psym_map_symbol_filenames, psym_map_matching_symbols)
7336 (psym_expand_symtabs_matching)
7337 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7338 (maintenance_check_psymtabs): Update.
7339 * psympriv.h (struct partial_symtab) <readin_p,
7340 get_compunit_symtab>: Add objfile parameter.
7341 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7342 Likewise.
7343 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7344 get_compunit_symtab>: Likewise.
7345 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7346
7347 2020-05-27 Tom Tromey <tom@tromey.com>
7348
7349 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7350 member.
7351 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7352 (create_cu_from_index_list)
7353 (create_signatured_type_table_from_index)
7354 (create_signatured_type_table_from_debug_names)
7355 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7356 (dwarf2_create_include_psymtab)
7357 (create_debug_type_hash_table, add_type_unit)
7358 (create_type_unit_group, read_comp_units_from_section)
7359 (dwarf2_compute_name, create_cus_hash_table)
7360 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7361 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7362 obstack.
7363 (dw2_get_real_path): Likewise. Change argument to
7364 dwarf2_per_objfile.
7365
7366 2020-05-27 Luis Machado <luis.machado@linaro.org>
7367
7368 PR tdep/26000
7369 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7370 for ldrd (immediate).
7371
7372 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7373
7374 * command.h: Add comment giving the name of class_tui.
7375 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7376 create the fake command for the help for class_tui.
7377
7378 2020-05-26 Tom Tromey <tromey@adacore.com>
7379
7380 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7381 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7382 (val_atr): New function.
7383 (value_val_atr): Use it.
7384 * ada-valprint.c (print_optional_low_bound): Change low bound
7385 handling for enums.
7386 (val_print_packed_array_elements): Don't call discrete_position.
7387 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7388 discrete_position for enum types.
7389 * language.c (default_print_array_index): Change type.
7390 * language.h (struct language_defn) <la_print_array_index>: Add
7391 index_type parameter, change type of index_value.
7392 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7393 (default_print_array_index): Update.
7394 * valprint.c (maybe_print_array_index): Don't call
7395 value_from_longest. Update.
7396 (value_print_array_elements): Don't call discrete_position.
7397
7398 2020-05-26 Tom Tromey <tromey@adacore.com>
7399
7400 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7401 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7402
7403 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7404
7405 PR gdb/13519
7406 * avr-tdep.c (avr_integer_to_address): Return data or code
7407 address accordingly to the second 'type' argument of the
7408 function.
7409
7410 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7411
7412 * infcmd.c, inferior.h: (construct_inferior_arguments):
7413 Moved function from here to gdbsupport/common-inferior.{h,cc}
7414
7415 2020-05-23 Tom Tromey <tom@tromey.com>
7416
7417 Revert commit eca1f90c:
7418 * NEWS: Remove entry for completion styling.
7419 * completer.c (_rl_completion_prefix_display_length): Move
7420 declaration later.
7421 (gdb_fnprint): Revert.
7422 (gdb_display_match_list_1): Likewise.
7423 * cli/cli-style.c (completion_prefix_style)
7424 (completion_difference_style, completion_suffix_style): Remove.
7425 (_initialize_cli_style): Revert.
7426 * cli/cli-style.h (completion_prefix_style)
7427 (completion_difference_style, completion_suffix_style): Don't
7428 declare.
7429
7430 2020-05-24 Pedro Alves <palves@redhat.com>
7431
7432 * symtab.c (completion_list_add_name): Return boolean indication
7433 of whether the symbol matched.
7434 (completion_list_add_symbol): Don't try to remove C++ aliases if
7435 the symbol didn't match in the first place.
7436 * symtab.h (completion_list_add_name): Return bool.
7437
7438 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7441 type::field.
7442
7443 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7444
7445 GDB 9.2 released.
7446
7447 2020-05-23 Tom Tromey <tom@tromey.com>
7448
7449 * NEWS: Add entry for completion styling.
7450 * completer.c (_rl_completion_prefix_display_length): Move
7451 declaration earlier.
7452 (gdb_fnprint): Use completion_style.
7453 (gdb_display_match_list_1): Likewise.
7454 * cli/cli-style.c (completion_prefix_style)
7455 (completion_difference_style, completion_suffix_style): New
7456 globals.
7457 (_initialize_cli_style): Register new globals.
7458 * cli/cli-style.h (completion_prefix_style)
7459 (completion_difference_style, completion_suffix_style): Declare.
7460
7461 2020-05-23 Pedro Alves <palves@redhat.com>
7462
7463 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7464 (parse_escape): Use ISDIGIT instead of isdigit.
7465 (puts_debug): Use gdb_isprint instead of isprint.
7466 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7467 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7468 ISSPACE instead of isspace.
7469 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7470 instead of isspace.
7471 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7472 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7473 instead of isxdigit and ISDIGIT instead of isdigit.
7474
7475 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7476
7477 * gdbtypes.h (struct type) <field>: New method.
7478 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7479 or type::field.
7480
7481 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7482
7483 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7484 (TYPE_FIELDS): Use type::fields. Change all call sites that
7485 modify the propery to use type::set_fields instead.
7486
7487 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7488
7489 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7490 type::num_fields instead.
7491
7492 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7495 methods.
7496 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7497 that modify the number of fields to use type::set_num_fields
7498 instead.
7499
7500 2020-05-22 Tom Tromey <tromey@adacore.com>
7501
7502 * compile/compile-object-load.h (munmap_list_free): Don't
7503 declare.
7504
7505 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7506
7507 * annotate.c (annotate_source_line): Update return type, add call
7508 to update current symtab and line.
7509 * annotate.h (annotate_source_line): Update return type, and
7510 extend header comment.
7511 * source.c (info_line_command): Check annotation_level before
7512 calling annotate_source_line.
7513 * stack.c (print_frame_info): If calling annotate_source_line
7514 returns true, then don't print any other source line information.
7515
7516 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7517
7518 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7519
7520 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7521
7522 * coffread.c (patch_type): Remove NULL check before xfree.
7523 * corefile.c (set_gnutarget): Likewise.
7524 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7525 * exec.c (build_section_table): Likewise.
7526 * remote.c (remote_target::pass_signals): Likewise.
7527 * utils.c (n_spaces): Likewise.
7528 * cli/cli-script.c (document_command): Likewise.
7529 * i386-windows-tdep.c (core_process_module_section): Likewise.
7530 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7531
7532 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * symfile.c (reread_symbols): Clear objfile's section_offsets
7535 vector and section indices, re-compute them by calling
7536 sym_offsets.
7537
7538 2020-05-20 Tom Tromey <tromey@adacore.com>
7539
7540 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7541 (desc_one_bound, desc_index_type): Compute field name.
7542
7543 2020-05-20 Tom de Vries <tdevries@suse.de>
7544
7545 PR symtab/25833
7546 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7547
7548 2020-05-20 Alan Modra <amodra@gmail.com>
7549
7550 PR 25993
7551 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7552 bfd_set_filename.
7553 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7554 passed to bfd_set_filename.
7555 * symfile-mem.c (add_vsyscall_page): Likewise for string
7556 passed to symbol_file_add_from_memory.
7557 (symbol_file_add_from_memory): Make name param a const char* and
7558 don't strdup.
7559
7560 2020-05-20 Alan Modra <amodra@gmail.com>
7561
7562 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7563 rather than accessing bfd->filename directly.
7564 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7565 and use bfd_section_name.
7566 * dwarf2/frame.c (decode_frame_entry): Likewise.
7567 * exec.c (exec_set_section_address): Likewise.
7568 * solib-aix.c (solib_aix_bfd_open): Likewise.
7569 * stap-probe.c (get_stap_base_address): Likewise.
7570 * symfile.c (reread_symbols): Likewise.
7571
7572 2020-05-19 Tom Tromey <tromey@adacore.com>
7573
7574 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7575
7576 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7579
7580 2020-05-19 Pedro Alves <palves@redhat.com>
7581
7582 * NEWS (set exec-file-mismatch): Adjust entry.
7583 * exec.c: Include "build-id.h".
7584 (validate_exec_file): Try to match build IDs instead of filenames.
7585 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7586 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7587 and pass down 'warn_if_slow'.
7588 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7589 gdb_bfd_open_closure to pass it down.
7590 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7591
7592 2020-05-19 Pedro Alves <palves@redhat.com>
7593
7594 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7595 * target.c (target_fileio_open_1): Rename to target_fileio_open
7596 and make extern. Use bool.
7597 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7598 (target_fileio_read_alloc_1): Adjust.
7599 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7600 (target_fileio_open_warn_if_slow): Delete declaration.
7601
7602 2020-05-19 Pedro Alves <palves@redhat.com>
7603
7604 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7605 Adjust all callers.
7606
7607 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7608
7609 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7610 whether disp is negative.
7611
7612 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7613
7614 * symfile.h (struct symfile_segment_data)
7615 <~symfile_segment_data>: Remove.
7616 <segment_info>: Change to std::vector.
7617 * symfile.c (default_symfile_segments): Update.
7618 * elfread.c (elf_symfile_segments): Update.
7619
7620 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7621
7622 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7623 <segments>: New.
7624 <segment_bases, segment_sizes>: Remove.
7625 * symfile.c (default_symfile_segments): Update.
7626 * elfread.c (elf_symfile_segments): Update.
7627 * remote.c (remote_target::get_offsets): Update.
7628 * solib-target.c (solib_target_relocate_section_addresses):
7629 Update.
7630
7631 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * symfile.h (struct symfile_segment_data): Initialize fields.
7634 <~symfile_segment_data>: Add.
7635 (symfile_segment_data_up): New.
7636 (struct sym_fns) <sym_segments>: Return a
7637 symfile_segment_data_up.
7638 (default_symfile_segments): Return a symfile_segment_data_up.
7639 (free_symfile_segment_data): Remove.
7640 (get_symfile_segment_data): Return a symfile_segment_data_up.
7641 * symfile.c (default_symfile_segments): Likewise.
7642 (get_symfile_segment_data): Likewise.
7643 (free_symfile_segment_data): Remove.
7644 (symfile_find_segment_sections): Update.
7645 * elfread.c (elf_symfile_segments): Return a
7646 symfile_segment_data_up.
7647 * remote.c (remote_target::get_offsets): Update.
7648 * solib-target.c (solib_target_relocate_section_addresses):
7649 Update.
7650 * symfile-debug.c (debug_sym_segments): Return a
7651 symfile_segment_data_up.
7652
7653 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7654
7655 PR build/25981
7656 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7657 Hardcode register numbers.
7658
7659 PR build/25981
7660 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7661 procfs_find_LDT_entry): Remove.
7662 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7663 procfs_find_LDT_entry): Remove.
7664 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7665 Remove.
7666
7667 2020-05-17 Pedro Alves <palves@redhat.com>
7668 Andrew Burgess <andrew.burgess@embecosm.com>
7669 Keno Fischer <keno@juliacomputing.com>
7670
7671 PR gdb/25741
7672 * breakpoint.c (build_target_condition_list): Update comments.
7673 (build_target_command_list): Update comments and skip matching
7674 locations.
7675 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7676 a separate function. Simplify "set breakpoint auto-hw off"
7677 handling.
7678 (insert_breakpoints): Update comment.
7679 (tracepoint_locations_match): New parameter. For breakpoints,
7680 compare location types too, if the caller wants to.
7681 (handle_automatic_hardware_breakpoints): New functions.
7682 (bp_location_is_less_than): Also sort by location type and
7683 hardware breakpoint length.
7684 (update_global_location_list): Handle "set breakpoint auto-hw on"
7685 here.
7686 (update_breakpoint_locations): Ask breakpoint_locations_match to
7687 ignore location types.
7688
7689 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7692 type::name instead.
7693
7694 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * gdbtypes.h (struct type) <name, set_name>: New methods.
7697 (TYPE_CODE): Use type::name. Change all call sites used to set
7698 the name to use type::set_name instead.
7699
7700 2020-05-16 Tom Tromey <tom@tromey.com>
7701
7702 * top.c (quit_force): Update.
7703 * infrun.c (handle_no_resumed): Update.
7704 * top.h (all_uis): New function.
7705 (ALL_UIS): Remove.
7706
7707 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7710
7711 2020-05-16 Pedro Alves <palves@redhat.com>
7712
7713 * ia64-linux-nat.c
7714 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7715 Declare method.
7716 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7717
7718 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7719
7720 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7721 (sparc64_adi_info): Likewise.
7722
7723 2020-05-15 Tom Tromey <tom@tromey.com>
7724
7725 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7726 block_objfile.
7727 (lookup_objfile_from_block): Remove.
7728 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7729 (lookup_global_symbol): Use block_objfile.
7730 * symtab.h (lookup_objfile_from_block): Don't declare.
7731 * printcmd.c (clear_dangling_display_expressions): Use
7732 block_objfile.
7733 * parse.c (operator_check_standard): Use block_objfile.
7734
7735 2020-05-15 Tom Tromey <tom@tromey.com>
7736
7737 * language.c (language_alloc_type_symbol): Set
7738 SYMBOL_SECTION.
7739 * symtab.c (initialize_objfile_symbol): Remove.
7740 (allocate_symbol): Remove.
7741 (allocate_template_symbol): Remove.
7742 * dwarf2/read.c (fixup_go_packaging): Use "new".
7743 (new_symbol): Use "new".
7744 (read_variable): Don't call initialize_objfile_symbol. Use
7745 "new".
7746 (read_func_scope): Use "new".
7747 * xcoffread.c (process_xcoff_symbol): Don't call
7748 initialize_objfile_symbol.
7749 (SYMBOL_DUP): Remove.
7750 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7751 "new".
7752 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7753 (allocate_template_symbol): Don't declare.
7754 (struct symbol): Add copy constructor. Change defaults.
7755 * jit.c (finalize_symtab): Use "new".
7756 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7757 Use "new".
7758 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7759 (common_block_end): Use "new".
7760 * mdebugread.c (parse_symbol): Use "new".
7761 (new_symbol): Likewise.
7762
7763 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7764
7765 * NEWS: Mention changes to help and apropos.
7766
7767 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7768
7769 * command.h (enum command_class): Improve comments, document
7770 that class_alias is for user-defined aliases, give the class
7771 name for each class, remove unused class_xdb.
7772 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7773 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7774 by a precise class.
7775 * infcmd.c (_initialize_infcmd): Likewise.
7776 * reverse.c (_initialize_reverse): Likewise.
7777 * stack.c (_initialize_stack): Likewise.
7778 * symfile.c (_initialize_symfile): Likewise.
7779 * tracepoint.c (_initialize_tracepoint): Likewise.
7780
7781 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7782
7783 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7784 when their aliased command is traversed.
7785 (help_cmd): Add fput_command_names_styled call to
7786 output command name and aliases when command has an alias.
7787
7788 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7789
7790 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7791 * cli/cli-decode.c (help_cmd_list): Declare as static,
7792 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7793 a command together with the command.
7794 (fput_command_name_styled, fput_command_names_styled): New functions.
7795 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7796 fput_command_name_styled.
7797 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7798 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7799
7800 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7801
7802 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7803 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7804 * command.h (cmd_show_list): Likewise.
7805 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7806 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7807
7808 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7809
7810 * unittests/command-def-selftests.c (traverse_command_structure):
7811 Verify all commands of a list have the same prefix command and
7812 that only the top cmdlist commands have a null prefix.
7813
7814 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7815
7816 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7817 as prefix, not one of its aliases.
7818 (set_cmd_prefix): Remove.
7819 (do_add_cmd): Centralize the setting of the prefix of a command, when
7820 command is defined after its full chain of prefix commands.
7821 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7822 (add_setshow_cmd_full): Likewise.
7823 (update_prefix_field_of_prefixed_commands): New function.
7824 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7825 update_prefix_field_of_prefixed_commands.
7826 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7827 addresses of remote_set_cmdlist and remote_show_cmdlist given
7828 as argument, not the address of an argument.
7829 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7830 * gdb/remote.c (_initialize_remote): Likewise.
7831
7832 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7833
7834 * cli/cli-cmds.c (alias_command): Check for an existing alias
7835 using lookup_cmd_composition, as valid_command_p is too strict
7836 and forbids aliases that are the prefix of an existing alias
7837 or command.
7838 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7839 command is properly recognised as a valid command.
7840
7841 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7842
7843 * unittests/help-doc-selftests.c: Rename to
7844 unittests/command-def-selftests.c
7845 * unittests/command-def-selftests.c (help_doc_tests): Update some
7846 comments.
7847 (command_structure_tests, traverse_command_structure): New namespace
7848 and function.
7849 (command_structure_invariants_tests): New function.
7850 (_initialize_command_def_selftests) Renamed from
7851 _initialize_help_doc_selftests, register command_structure_invariants
7852 selftest.
7853
7854 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7855
7856 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7857 an alias of 'show'.
7858
7859 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7860
7861 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7862 ada_is_fixed_point_type. Update all callers.
7863 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7864 all callers.
7865 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7866 Update all callers.
7867 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7868 print_fixed_point_type. Update all callers.
7869 * ada-valprint.c (ada_value_print_num): Replace call to
7870 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7871
7872 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7873
7874 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7875 processors.
7876 (cpu_supports_bts): Add CV_AMD case.
7877
7878 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7879 Simon Marchi <simon.marchi@efficios.com>
7880
7881 * infrun.c (stop_all_threads): Collect multiple wait events at
7882 each pass.
7883
7884 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7885
7886 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7887 type::code instead.
7888
7889 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7890
7891 * gdbtypes.h (struct type) <code, set_code>: New methods.
7892 (TYPE_CODE): Use type::code. Change all call sites used to set
7893 the code to use type::set_code instead.
7894
7895 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7896 Tom de Vries <tdevries@suse.de>
7897 Pedro Alves <palves@redhat.com>
7898
7899 PR threads/25478
7900 * infrun.c (stop_all_threads): Do NOT ignore
7901 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7902 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7903 received.
7904 (handle_no_resumed): Remove code handling a live inferior with no
7905 threads.
7906 * remote.c (has_single_non_exited_thread): New.
7907 (remote_target::update_thread_list): Do not delete a thread if is
7908 the last thread of the process.
7909 * thread.c (thread_select): Call delete_exited_threads instead of
7910 prune_threads.
7911
7912 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7913
7914 * infrun.c (stop_all_threads): Enable/disable thread events of all
7915 targets. Move a debug message denoting the end of the function
7916 into the SCOPED_EXIT block.
7917
7918 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7919
7920 * process-stratum-target.h: Include <set>.
7921 (all_non_exited_process_targets, switch_to_target_no_thread): New
7922 function declarations.
7923 * process-stratum-target.c (all_non_exited_process_targets)
7924 (switch_to_target_no_thread): New function implementations.
7925
7926 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7927
7928 * infrun.c (handle_inferior_event): Extract out a piece of code
7929 into...
7930 (mark_non_executing_threads): ...this new function.
7931
7932 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7933
7934 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7935 use.
7936
7937 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7938
7939 * regcache.c (regcache_read_pc_protected): New function
7940 implementation that returns 0 if the PC cannot read via
7941 'regcache_read_pc'.
7942 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7943 instead of 'regcache_read_pc'.
7944 (keep_going_pass_signal): Ditto.
7945
7946 2020-05-13 Tom Tromey <tromey@adacore.com>
7947
7948 * ada-lang.c (align_value): Remove.
7949 (ada_template_to_fixed_record_type_1): Use align_up.
7950
7951 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7952
7953 * async-event.c: Update the copyright year.
7954 * async-event.h: Update the copyright year.
7955
7956 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7957
7958 * objfiles.h (is_addr_in_objfile,
7959 shared_objfile_contains_address_p): Return bool.
7960 * objfile.c (is_addr_in_objfile,
7961 shared_objfile_contains_address_p): Return bool.
7962
7963 2020-05-11 Tom Tromey <tromey@adacore.com>
7964
7965 * cli/cli-cmds.c (info_command): Restore.
7966 (_initialize_cli_cmds): Use add_prefix_command for "info".
7967 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7968
7969 2020-05-11 Tom Tromey <tromey@adacore.com>
7970
7971 * ada-lang.c (ada_value_primitive_field): Now public.
7972 * ada-lang.h (ada_value_primitive_field): Declare.
7973 * ada-valprint.c (print_field_values): Use
7974 ada_value_primitive_field for wrapper fields.
7975
7976 2020-05-11 Tom de Vries <tdevries@suse.de>
7977
7978 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7979 MODULE_DOMAIN.
7980
7981 2020-05-11 Tom de Vries <tdevries@suse.de>
7982
7983 PR symtab/25941
7984 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7985 with length 0, if not gdb-produced.
7986 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7987
7988 2020-05-09 Tom de Vries <tdevries@suse.de>
7989
7990 PR gdb/25955
7991 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7992 calculation.
7993
7994 2020-05-09 Tom Tromey <tom@tromey.com>
7995
7996 * top.c (server_command): Now bool.
7997 * top.h (server_command): Now bool.
7998
7999 2020-05-08 Tom Tromey <tromey@adacore.com>
8000
8001 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8002 already being processed.
8003
8004 2020-05-08 Tom Tromey <tom@tromey.com>
8005
8006 * printcmd.c (struct display) <next>: Remove.
8007 <display>: New constructor.
8008 <exp_string>: Now a std::string.
8009 <enabled_p>: Now a bool.
8010 (display_number): Move definition earlier.
8011 (displays): Rename from display_chain. Now a std::vector.
8012 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8013 (display_command): Update.
8014 (do_one_display, disable_display)
8015 (enable_disable_display_command, do_enable_disable_display):
8016 Update.
8017 (free_display): Remove.
8018 (clear_displays): Rewrite.
8019 (delete_display): Update.
8020 (map_display_numbers): Use function_view. Remove "data"
8021 parameter. Update.
8022 (do_delete_display): Remove.
8023 (undisplay_command): Update.
8024 (do_one_display, do_displays, disable_display)
8025 (info_display_command): Update.
8026 (do_enable_disable_display): Remove.
8027 (enable_disable_display_command)
8028 (clear_dangling_display_expressions): Update.
8029
8030 2020-05-08 Tom Tromey <tom@tromey.com>
8031
8032 * symtab.c (set_symbol_cache_size)
8033 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8034 (maintenance_print_symbol_cache_statistics): Update.
8035 * symmisc.c (print_symbol_bcache_statistics)
8036 (print_objfile_statistics, maintenance_print_objfiles)
8037 (maintenance_info_symtabs, maintenance_check_symtabs)
8038 (maintenance_expand_symtabs, maintenance_info_line_tables):
8039 Update.
8040 * symfile-debug.c (set_debug_symfile): Update.
8041 * source.c (forget_cached_source_info): Update.
8042 * python/python.c (gdbpy_progspaces): Update.
8043 * psymtab.c (maintenance_info_psymtabs): Update.
8044 * probe.c (parse_probes): Update.
8045 * linespec.c (iterate_over_all_matching_symtabs)
8046 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8047 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8048 * exec.c (exec_target::close): Update.
8049 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8050 * breakpoint.c (print_one_breakpoint_location)
8051 (create_longjmp_master_breakpoint)
8052 (create_std_terminate_master_breakpoint): Update.
8053 * progspace.c (program_spaces): Now a std::vector.
8054 (maybe_new_address_space): Update.
8055 (add_program_space): Remove.
8056 (program_space::program_space): Update.
8057 (remove_program_space): Update.
8058 (number_of_program_spaces): Remove.
8059 (print_program_space, update_address_spaces): Update.
8060 * progspace.h (program_spaces): Change type.
8061 (ALL_PSPACES): Remove.
8062 (number_of_program_spaces): Don't declare.
8063 (struct program_space) <next>: Remove.
8064
8065 2020-05-08 Tom Tromey <tom@tromey.com>
8066
8067 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8068 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8069 (enable_break): Update.
8070 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8071 (frv_fdpic_find_canonical_descriptor): Update.
8072 (frv_fetch_objfile_link_map): Update.
8073 * progspace.c (program_space::free_all_objfiles): Update.
8074 (program_space::solibs): New method.
8075 * progspace.h (struct program_space) <solibs>: New method.
8076 * solist.h (master_so_list): Don't declare.
8077 (ALL_SO_LIBS): Remove.
8078 * solib.h (so_list_head): Remove.
8079 (update_solib_list): Update comment.
8080 * solib.c (master_so_list): Remove.
8081 (solib_used, update_solib_list, solib_add)
8082 (info_sharedlibrary_command, clear_solib)
8083 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8084
8085 2020-05-08 Tom Tromey <tom@tromey.com>
8086
8087 * extension.c (extension_languages): Now a std::array.
8088 (ALL_EXTENSION_LANGUAGES): Remove.
8089 (get_ext_lang_defn, get_ext_lang_of_file)
8090 (eval_ext_lang_from_control_command): Update.
8091 (finish_ext_lang_initialization)
8092 (auto_load_ext_lang_scripts_for_objfile)
8093 (ext_lang_type_printers::ext_lang_type_printers)
8094 (apply_ext_lang_type_printers)
8095 (ext_lang_type_printers::~ext_lang_type_printers)
8096 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8097 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8098 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8099 (get_matching_xmethod_workers, ext_lang_colorize)
8100 (ext_lang_before_prompt): Update.
8101 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8102
8103 2020-05-08 Tom Tromey <tom@tromey.com>
8104
8105 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8106 overload.
8107 <swap_string, m_string>: Remove.
8108 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8109 Update.
8110 * stabsread.c (define_symbol, read_type): Update.
8111 * linespec.c (find_linespec_symbols): Update.
8112 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8113 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8114 * dbxread.c (read_dbx_symtab): Update.
8115 * cp-support.h (cp_canonicalize_string_full)
8116 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8117 Return unique_xmalloc_ptr.
8118 * cp-support.c (inspect_type): Update.
8119 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8120 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8121 Likewise.
8122 * c-typeprint.c (print_name_maybe_canonical): Update.
8123 * break-catch-throw.c (check_status_exception_catchpoint):
8124 Update.
8125
8126 2020-05-08 Tom de Vries <tdevries@suse.de>
8127
8128 * infrun.c (follow_fork): Copy current_line and current_symtab to
8129 child thread.
8130
8131 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * async-event.c (struct async_signal_handler, struct
8134 async_event_handler): Reformat, remove typedef.
8135
8136 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8137
8138 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8139 access thistype->main_type->dyn_prop_list directly.
8140
8141 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8142
8143 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8144 (remove_dyn_prop): Remove. Update all users to use
8145 type::remove_dyn_prop.
8146 * gdbtypes.c (remove_dyn_prop): Rename to...
8147 (type::remove_dyn_prop): ... this.
8148
8149 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8150
8151 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8152 (add_dyn_prop): Remove. Update all users to use
8153 type::add_dyn_prop.
8154 * gdbtypes.c (add_dyn_prop): Rename to...
8155 (type::add_dyn_prop): ... this.
8156
8157 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8160 (get_dyn_prop): Remove. Update all users to use
8161 type::dyn_prop.
8162 * gdbtypes.c (get_dyn_prop): Rename to...
8163 (type::dyn_prop): ... this.
8164
8165 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8168
8169 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8170
8171 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8172 instruction, skip it if it's there.
8173
8174 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8175
8176 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8177
8178 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8179
8180 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8181 * gdbtypes.c (recursive_dump_type): Remove use of
8182 TYPE_INCOMPLETE.
8183
8184 2020-05-03 Tom Tromey <tom@tromey.com>
8185
8186 * breakpoint.c (catch_command, tcatch_command): Remove.
8187 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8188 add_show_prefix_cmd.
8189 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8190 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8191 Remove.
8192 (add_internal_problem_command): Use add_basic_prefix_cmd,
8193 add_show_prefix_cmd.
8194 * mips-tdep.c (set_mipsfpu_command): Remove.
8195 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8196 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8197 (_initialize_index_cache): Use add_basic_prefix_cmd.
8198 * memattr.c (dummy_cmd): Remove.
8199 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8200 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8201 (_initialize_tui_win): Use add_basic_prefix_cmd,
8202 add_show_prefix_cmd.
8203 * cli/cli-logging.c (set_logging_command): Remove.
8204 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8205 add_show_prefix_cmd.
8206 (show_logging_command): Remove.
8207 * target.c (target_command): Remove.
8208 (add_target): Use add_basic_prefix_cmd.
8209
8210 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8211
8212 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8213
8214 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8215
8216 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8217 info_command.
8218
8219 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8220
8221 * nbsd-nat.c (nbsd_enable_proc_events)
8222 (nbsd_nat_target::post_startup_inferior): Add.
8223 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8224 (nbsd_nat_target::update_thread_list): Rewrite.
8225 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8226 "PTRACE_LWP_CREATE".
8227 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8228
8229 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8230
8231 * stack.c (_initialize_stack): Remove duplicated creation
8232 of "frame" command and "f" alias.
8233
8234 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8235
8236 PR gdb/18706
8237 * gdbtypes.c (check_typedef): Calculate size of array of
8238 stubbed type.
8239
8240 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8241
8242 PR gdb/15559
8243 * i386-tdep.c (i386_push_dummy_call): Call
8244 i386_thiscall_push_dummy_call.
8245 (i386_thiscall_push_dummy_call): New function.
8246 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8247 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8248 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8249
8250 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8251
8252 * gdbarch.sh (do_read): Add shellcheck disable directive for
8253 warning SC2162.
8254
8255 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8258 "referenced but not assigned" warning.
8259
8260 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8261
8262 * gdbarch.sh: Remove code that sets fallbackdefault.
8263
8264 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8265
8266 * gdbarch.sh: Use shell operators && and || instead of
8267 -a and -o.
8268
8269 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8270
8271 * gdbarch.sh: Use $(...) instead of `...`.
8272
8273 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * gdbarch.sh: Use double quotes around variables.
8276
8277 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8278
8279 * gdbarch.sh: Use %s with printf, instead of variables in the
8280 format string.
8281
8282 2020-04-29 Tom Tromey <tromey@adacore.com>
8283
8284 PR ada/25875:
8285 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8286 type fields here.
8287 (read_enumeration_type): Call
8288 update_enumeration_type_from_children later. Update comments.
8289 (process_enumeration_scope): Don't create type fields.
8290
8291 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8292
8293 * nbsd-tdep.c: Include "xml-syscall.h".
8294 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8295
8296 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8297
8298 * nbsd-nat.c: Include "sys/wait.h".
8299 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8300 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8301 (nbsd_nat_target::remove_exec_catchpoint)
8302 (nbsd_nat_target::set_syscall_catchpoint): Add.
8303 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8304 (nbsd_nat_target::insert_exec_catchpoint)
8305 (nbsd_nat_target::remove_exec_catchpoint)
8306 (nbsd_nat_target::set_syscall_catchpoint): Add.
8307 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8308 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8309 `nbsd_get_syscall_number'.
8310
8311 2020-04-29 Tom Tromey <tom@tromey.com>
8312
8313 * stack.c (print_block_frame_labels): Remove.
8314
8315 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8316
8317 PR gdb/17320
8318 * ada-valprint.c (val_print_packed_array_elements): Move array
8319 end bracket to new line.
8320 (ada_val_print_string): Remove extra spaces before first array
8321 element.
8322 * c-valprint.c (c_value_print_array): Likewise.
8323 * m2-valprint.c (m2_print_array_contents): Likewise.
8324 (m2_value_print_inner): Likewise.
8325 * p-valprint.c (pascal_value_print_inner): Likewise.
8326 * valprint.c (generic_val_print_array): Likewise.
8327 (value_print_array_elements): Move first array element and array
8328 end bracket to new line.
8329
8330 2020-04-29 Tom de Vries <tdevries@suse.de>
8331
8332 PR symtab/25889
8333 * linespec.c (find_method): Fix ix calculation.
8334
8335 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8336
8337 * syscalls/update-netbsd.sh: New file.
8338 * syscalls/netbsd.xml: Regenerate.
8339 * data-directory/Makefile.in: Register `netbsd.xml' in
8340 `SYSCALLS_FILES'.
8341
8342 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8343
8344 * syscalls/update-freebsd.sh: Add double quotes.
8345
8346 2020-04-28 Tom Tromey <tom@tromey.com>
8347
8348 * NEWS: Update.
8349 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8350 (cmdpy_init): Allow class_tui.
8351
8352 2020-04-28 Mark Williams <mark@myosotissp.com>
8353
8354 PR gdb/24480
8355 * dwarf2read.c: Add missing assingments to list_in_scope when
8356 start_symtab was already called.
8357
8358 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8359
8360 PR gdb/25881
8361 * dwarf2/read.c (offset_map_type): Use
8362 gdb:hash_enum<sect_offset> as hash function.
8363
8364 2020-04-28 Tom de Vries <tdevries@suse.de>
8365
8366 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8367 with DW_AT_signature.
8368
8369 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8370
8371 * configure.ac: Remove check for fs_base/gs_base in
8372 user_regs_struct.
8373 * configure: Re-generate.
8374 * config.in: Re-generate.
8375 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8376 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8377 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8378
8379 2020-04-27 Luis Machado <luis.machado@linaro.org>
8380
8381 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8382 problematic inline frame unwinding situation.
8383 * frame.c (frame_id_computed_p): New function.
8384 * frame.h (frame_id_computed_p): New prototype.
8385
8386 2020-04-26 Tom Tromey <tom@tromey.com>
8387
8388 * command.h (enum command_class) <class_pseudo>: Remove.
8389
8390 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8391
8392 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8393 and whitespace.
8394
8395 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8396
8397 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8398 `PT_GET_PROCESS_STATE' block.
8399
8400 2020-04-24 Tom Tromey <tom@tromey.com>
8401
8402 * symtab.h (symbol_get_demangled_name): Don't declare.
8403 * symtab.c (symbol_get_demangled_name): Remove.
8404 (general_symbol_info::natural_name)
8405 (general_symbol_info::demangled_name): Update.
8406
8407 2020-04-24 Tom Tromey <tom@tromey.com>
8408
8409 PR rust/25025:
8410 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8411
8412 2020-04-24 Tom Tromey <tom@tromey.com>
8413
8414 PR symtab/12707:
8415 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8416 exists.
8417 (new_symbol): Likewise.
8418 * compile/compile-object-load.c (get_out_value_type): Use
8419 symbol_matches_search_name.
8420
8421 2020-04-24 Tom Tromey <tom@tromey.com>
8422
8423 * dwarf2/read.c (add_partial_symbol): Do not call
8424 compute_and_set_names.
8425
8426 2020-04-24 Tom Tromey <tom@tromey.com>
8427
8428 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8429 overload.
8430
8431 2020-04-24 Tom Tromey <tom@tromey.com>
8432
8433 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8434 (add_psymbol_to_list): New overload. Make old overload call new
8435 one.
8436 * psympriv.h (add_psymbol_to_list): New overload.
8437
8438 2020-04-24 Tom Tromey <tom@tromey.com>
8439
8440 * dwarf2/read.c (partial_die_info::read) <case
8441 DW_AT_linkage_name>: Use value_as_string.
8442 (dwarf2_string_attr): Use value_as_string.
8443 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8444 method.
8445 * dwarf2/attribute.c (attribute::value_as_string): New method.
8446
8447 2020-04-24 Tom Tromey <tom@tromey.com>
8448
8449 * symtab.c (general_symbol_info::natural_name)
8450 (general_symbol_info::demangled_name): Check for language_rust.
8451
8452 2020-04-24 Tom Tromey <tom@tromey.com>
8453
8454 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8455 (dwarf2_physname): ... from here.
8456 (partial_die_info::read): Add Rust "{" hack.
8457
8458 2020-04-24 Tom Tromey <tom@tromey.com>
8459
8460 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8461 method.
8462 (symbol_set_demangled_name): Don't declare.
8463 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8464 symbol_set_demangled_name.
8465 (general_symbol_info::set_language)
8466 (general_symbol_info::compute_and_set_names): Update.
8467 * minsyms.c (minimal_symbol_reader::install): Update.
8468 * dwarf2/read.c (new_symbol): Update.
8469
8470 2020-04-24 Tom Tromey <tromey@adacore.com>
8471
8472 PR python/23662:
8473 * python/py-type.c (convert_field): Handle
8474 FIELD_LOC_KIND_DWARF_BLOCK.
8475 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8476 (typy_get_dynamic): Nw function.
8477 (type_object_getset): Add "dynamic".
8478 * NEWS: Add entry.
8479
8480 2020-04-24 Tom Tromey <tromey@adacore.com>
8481
8482 * ada-typeprint.c (print_choices, print_variant_part)
8483 (print_record_field_types_dynamic): New functions.
8484 (print_record_field_types): Use print_record_field_types_dynamic.
8485
8486 2020-04-24 Tom Tromey <tromey@adacore.com>
8487
8488 * dwarf2/read.c (handle_data_member_location): New overload.
8489 (dwarf2_add_field): Use it.
8490 (decode_locdesc): Add "computed" parameter. Update comment.
8491 * gdbtypes.c (is_dynamic_type_internal): Also look for
8492 FIELD_LOC_KIND_DWARF_BLOCK.
8493 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8494 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8495 virtual base classes.
8496 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8497 FIELD_LOC_KIND_DWARF_BLOCK.
8498
8499 2020-04-24 Tom Tromey <tromey@adacore.com>
8500
8501 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8502 * gdbtypes.c (is_dynamic_type_internal): Check
8503 TYPE_HAS_DYNAMIC_LENGTH.
8504 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8505 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8506 New macros.
8507 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8508 constant.
8509
8510 2020-04-24 Tom Tromey <tromey@adacore.com>
8511
8512 * dwarf2/read.c (struct variant_field): Rewrite.
8513 (struct variant_part_builder): New.
8514 (struct nextfield): Remove "variant" field. Add "offset".
8515 (struct field_info): Add "current_variant_part" and
8516 "variant_parts".
8517 (alloc_discriminant_info): Remove.
8518 (alloc_rust_variant): New function.
8519 (quirk_rust_enum): Update.
8520 (dwarf2_add_field): Set "offset" member. Don't handle
8521 DW_TAG_variant_part.
8522 (offset_map_type): New typedef.
8523 (convert_variant_range, create_one_variant)
8524 (create_one_variant_part, create_variant_parts)
8525 (add_variant_property): New functions.
8526 (dwarf2_attach_fields_to_type): Call add_variant_property.
8527 (read_structure_type): Don't handle DW_TAG_variant_part.
8528 (handle_variant_part, handle_variant): New functions.
8529 (handle_struct_member_die): Use them.
8530 (process_structure_scope): Don't handle variant parts.
8531 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8532 (struct discriminant_info): Remove.
8533 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8534 (struct main_type) <flag_discriminated_union>: Remove.
8535 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8536 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8537 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8538 Update.
8539 * valops.c (value_union_variant): Remove.
8540 * value.h (value_union_variant): Don't declare.
8541
8542 2020-04-24 Tom Tromey <tromey@adacore.com>
8543
8544 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8545 (ada_value_primitive_packed_val): Update.
8546 * ada-valprint.c (ada_value_print_1): Update.
8547 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8548 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8549 just an address. Use evaluate_for_locexpr_baton.
8550 (dwarf2_evaluate_property): Update.
8551 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8552 array_view.
8553 * findvar.c (default_read_var_value): Update.
8554 * gdbtypes.c (compute_variant_fields_inner)
8555 (resolve_dynamic_type_internal): Update.
8556 (resolve_dynamic_type): Change type of valaddr parameter.
8557 * gdbtypes.h (resolve_dynamic_type): Update.
8558 * valarith.c (value_subscripted_rvalue): Update.
8559 * value.c (value_from_contents_and_address): Update.
8560
8561 2020-04-24 Tom Tromey <tromey@adacore.com>
8562
8563 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8564 "push_initial_value" parameter.
8565 (dwarf2_evaluate_property): Likewise.
8566 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8567
8568 2020-04-24 Tom Tromey <tromey@adacore.com>
8569
8570 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8571 (variant::matches, compute_variant_fields_recurse)
8572 (compute_variant_fields_inner, compute_variant_fields): New
8573 functions.
8574 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8575 Use resolved_type after type is made.
8576 (operator==): Add new cases.
8577 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8578 (struct discriminant_range, struct variant, struct variant_part):
8579 New.
8580 (union dynamic_prop_data) <variant_parts, original_type>: New
8581 members.
8582 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8583 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8584 constants.
8585 * value.c (unpack_bits_as_long): Now public.
8586 * value.h (unpack_bits_as_long): Declare.
8587
8588 2020-04-24 Tom Tromey <tromey@adacore.com>
8589
8590 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8591 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8592
8593 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8594
8595 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8596
8597 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8598
8599 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8600 (remove_fork_catchpoint, post_startup_inferior)
8601 (post_attach): Move...
8602 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8603 (remove_fork_catchpoint, post_startup_inferior)
8604 (post_attach): ...here.
8605 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8606 (remove_fork_catchpoint, post_startup_inferior)
8607 (post_attach): Move...
8608 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8609 (remove_fork_catchpoint, post_startup_inferior)
8610 (post_attach): ...here.
8611
8612 2020-04-24 Tom Tromey <tromey@adacore.com>
8613
8614 * nat/windows-nat.h (struct windows_thread_info)
8615 <pc_adjusted>: New member.
8616 * windows-nat.c (windows_fetch_one_register): Check
8617 pc_adjusted.
8618 (windows_nat_target::get_windows_debug_event)
8619 (windows_nat_target::wait): Set pc_adjusted.
8620
8621 2020-04-24 Tom de Vries <tdevries@suse.de>
8622
8623 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8624 Run gdb-add-index inside temp dir.
8625
8626 2020-04-23 Tom Tromey <tromey@adacore.com>
8627
8628 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8629 in loop.
8630
8631 2020-04-23 Luis Machado <luis.machado@linaro.org>
8632
8633 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8634 get_frame_register instead of gdbarch_unwind_pc.
8635
8636 2020-04-23 Tom de Vries <tdevries@suse.de>
8637
8638 * symtab.c (lookup_global_symbol): Prefer def over decl.
8639
8640 2020-04-23 Tom de Vries <tdevries@suse.de>
8641
8642 PR symtab/25807
8643 * block.c (best_symbol, better_symbol): Promote to external.
8644 * block.h (best_symbol, better_symbol): Declare.
8645 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8646 decl.
8647
8648 2020-04-23 Tom Tromey <tromey@adacore.com>
8649
8650 PR ada/25837:
8651 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8652 "const char *", not a "const std::string &".
8653 <name_and_matcher::operator==>: Update.
8654 * unittests/lookup_name_info-selftests.c: Change type of
8655 "result".
8656
8657 2020-04-23 Tom Tromey <tom@tromey.com>
8658
8659 * inferior.h (iterate_over_inferiors): Don't declare.
8660 * inferior.c (iterate_over_inferiors): Remove.
8661 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8662 Remove.
8663 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8664 use iterate_over_inferiors.
8665 (darwin_resume_inferior_it)
8666 (struct resume_inferior_threads_param)
8667 (darwin_resume_inferior_threads_it): Remove.
8668 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8669
8670 2020-04-23 Tom de Vries <tdevries@suse.de>
8671
8672 * blockframe.c (find_pc_partial_function): Use
8673 find_pc_sect_compunit_symtab rather than
8674 objfile->sf->qf->find_pc_sect_compunit_symtab.
8675
8676 2020-04-22 Tom de Vries <tdevries@suse.de>
8677
8678 PR symtab/25764
8679 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8680 in psymtabs.
8681
8682 2020-04-22 Tom de Vries <tdevries@suse.de>
8683
8684 PR symtab/25801
8685 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8686 symtabs.
8687
8688 2020-04-22 Tom de Vries <tdevries@suse.de>
8689
8690 PR symtab/25700
8691 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8692 CU if already created.
8693
8694 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8695
8696 * infrun.c (displaced_step_fixup): Switch to the event_thread
8697 before calling displaced_step_restore, not after.
8698
8699 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8700
8701 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8702 its inferior is not recorded by us.
8703 (record_btrace_target_open): Replace call to
8704 all_non_exited_threads () with call to current_inferior
8705 ()->non_exited_threads ().
8706 (record_btrace_target::stop_recording): Likewise.
8707 (record_btrace_target::close): Likewise.
8708 (record_btrace_target::wait): Likewise.
8709 (record_btrace_target::record_stop_replaying): Likewise.
8710
8711 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8712
8713 * btrace.c (btrace_enable): Throw an error on double enables and
8714 when enabling recording fails.
8715 (btrace_disable): Throw an error if the thread is not recorded.
8716
8717 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8718
8719 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8720 request if we do not have a thread_info.
8721
8722 2020-04-21 Tom de Vries <tdevries@suse.de>
8723
8724 PR gdb/25471
8725 * thread.c
8726 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8727 exception in get_frame_id.
8728
8729 2020-04-20 Tom Tromey <tromey@adacore.com>
8730
8731 * python/python.c (struct gdbpy_event): Mark move constructor as
8732 noexcept.
8733 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8734 constructor as noexcept.
8735 * completer.h (struct completion_result): Mark move constructor as
8736 noexcept.
8737 * completer.c (completion_result::completion_result): Use
8738 initialization style. Don't call reset_match_list.
8739
8740 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8741
8742 * MAINTAINERS (Write After Approval): Add myself.
8743
8744 2020-04-18 Tom Tromey <tom@tromey.com>
8745
8746 * windows-tdep.c (init_w32_command_list)
8747 (w32_prefix_command_valid): Restore.
8748 (_initialize_windows_tdep): Call init_w32_command_list.
8749
8750 2020-04-18 Tom Tromey <tom@tromey.com>
8751
8752 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8753 * value.c (value_fn_field): Update.
8754 * valops.c (find_function_in_inferior)
8755 (value_allocate_space_in_inferior): Update.
8756 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8757 Update.
8758 * tui/tui-source.c (tui_source_window::set_contents): Update.
8759 * symtab.c (lookup_global_or_static_symbol)
8760 (find_function_start_sal_1, skip_prologue_sal)
8761 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8762 * symmisc.c (dump_msymbols, dump_symtab_1)
8763 (maintenance_print_one_line_table): Update.
8764 * symfile.c (init_entry_point_info, section_is_mapped)
8765 (list_overlays_command, simple_read_overlay_table)
8766 (simple_overlay_update_1): Update.
8767 * stap-probe.c (handle_stap_probe): Update.
8768 * stabsread.c (dbx_init_float_type, define_symbol)
8769 (read_one_struct_field, read_enum_type, read_range_type): Update.
8770 * source.c (info_line_command): Update.
8771 * python/python.c (gdbpy_source_objfile_script)
8772 (gdbpy_execute_objfile_script): Update.
8773 * python/py-type.c (save_objfile_types): Update.
8774 * python/py-objfile.c (py_free_objfile): Update.
8775 * python/py-inferior.c (python_new_objfile): Update.
8776 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8777 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8778 (maintenance_check_psymtabs): Update.
8779 * printcmd.c (info_address_command): Update.
8780 * objfiles.h (struct objfile) <arch>: New method, from
8781 get_objfile_arch.
8782 (get_objfile_arch): Don't declare.
8783 * objfiles.c (get_objfile_arch): Remove.
8784 (filter_overlapping_sections): Update.
8785 * minsyms.c (msymbol_is_function): Update.
8786 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8787 (output_nondebug_symbol): Update.
8788 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8789 (mdebug_expand_psymtab): Update.
8790 * machoread.c (macho_add_oso_symfile): Update.
8791 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8792 Update.
8793 * linux-fork.c (checkpoint_command): Update.
8794 * linespec.c (convert_linespec_to_sals): Update.
8795 * jit.c (finalize_symtab): Update.
8796 * infrun.c (insert_exception_resume_from_probe): Update.
8797 * ia64-tdep.c (ia64_find_unwind_table): Update.
8798 * hppa-tdep.c (internalize_unwinds): Update.
8799 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8800 Update.
8801 * gcore.c (call_target_sbrk): Update.
8802 * elfread.c (record_minimal_symbol, elf_symtab_read)
8803 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8804 (elf_gnu_ifunc_resolve_by_got): Update.
8805 * dwarf2/read.c (create_addrmap_from_index)
8806 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8807 (read_debug_names_from_section)
8808 (process_psymtab_comp_unit_reader, add_partial_symbol)
8809 (add_partial_subprogram, process_full_comp_unit)
8810 (read_file_scope, read_func_scope, read_lexical_block_scope)
8811 (read_call_site_scope, dwarf2_ranges_read)
8812 (dwarf2_record_block_ranges, dwarf2_add_field)
8813 (mark_common_block_symbol_computed, read_tag_pointer_type)
8814 (read_tag_string_type, dwarf2_init_float_type)
8815 (dwarf2_init_complex_target_type, read_base_type)
8816 (partial_die_info::read, partial_die_info::read)
8817 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8818 (dwarf2_fetch_die_loc_sect_off): Update.
8819 * dwarf2/loc.c (dwarf2_find_location_expression)
8820 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8821 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8822 (dwarf2_loc_desc_get_symbol_read_needs)
8823 (locexpr_describe_location_piece, locexpr_describe_location_1)
8824 (loclist_describe_location): Update.
8825 * dwarf2/index-write.c (write_debug_names): Update.
8826 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8827 * dtrace-probe.c (dtrace_process_dof): Update.
8828 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8829 (process_one_symbol): Update.
8830 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8831 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8832 (coff_read_enum_type): Update.
8833 * cli/cli-cmds.c (edit_command, list_command): Update.
8834 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8835 * breakpoint.c (create_overlay_event_breakpoint)
8836 (create_longjmp_master_breakpoint)
8837 (create_std_terminate_master_breakpoint)
8838 (create_exception_master_breakpoint, get_sal_arch): Update.
8839 * block.c (block_gdbarch): Update.
8840 * annotate.c (annotate_source_line): Update.
8841
8842 2020-04-17 Tom Tromey <tromey@adacore.com>
8843
8844 * auto-load.c (show_auto_load_cmd): Remove.
8845 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8846 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8847 (maintenance_print_arc_command): Remove.
8848 * tui/tui-win.c (tui_command): Remove.
8849 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8850 * tui/tui-layout.c (tui_layout_command): Remove.
8851 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8852 * python/python.c (user_set_python, user_show_python): Remove.
8853 (_initialize_python): Use add_basic_prefix_cmd,
8854 add_show_prefix_cmd.
8855 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8856 (install_gdb_commands): Use add_basic_prefix_cmd,
8857 add_show_prefix_cmd.
8858 (info_guile_command): Remove.
8859 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8860 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8861 add_show_prefix_cmd.
8862 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8863 Remove do_set and do_show parameters.
8864 * cli/cli-style.c (set_style, show_style): Remove.
8865 (_initialize_cli_style): Use add_basic_prefix_cmd,
8866 add_show_prefix_cmd.
8867 (cli_style_option::add_setshow_commands): Remove do_set and
8868 do_show parameters.
8869 (cli_style_option::add_setshow_commands): Use
8870 add_basic_prefix_cmd, add_show_prefix_cmd.
8871 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8872 (set_style_name): Remove.
8873 * cli/cli-dump.c (dump_command, append_command): Remove.
8874 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8875 (tekhex_dump_command, binary_dump_command)
8876 (binary_append_command): Remove.
8877 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8878 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8879 (init_w32_command_list): Remove; move into ...
8880 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8881 * valprint.c (set_print, show_print, set_print_raw)
8882 (show_print_raw): Remove.
8883 (_initialize_valprint): Use add_basic_prefix_cmd,
8884 add_show_prefix_cmd.
8885 * typeprint.c (set_print_type, show_print_type): Remove.
8886 (_initialize_typeprint): Use add_basic_prefix_cmd,
8887 add_show_prefix_cmd.
8888 * record.c (set_record_command, show_record_command): Remove.
8889 (_initialize_record): Use add_basic_prefix_cmd,
8890 add_show_prefix_cmd.
8891 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8892 add_show_prefix_cmd.
8893 (info_command, show_command, set_debug, show_debug): Remove.
8894 * top.h (set_history, show_history): Don't declare.
8895 * top.c (set_history, show_history): Remove.
8896 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8897 (unset_tdesc_cmd): Remove.
8898 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8899 add_show_prefix_cmd.
8900 * symtab.c (info_module_command): Remove.
8901 (_initialize_symtab): Use add_basic_prefix_cmd.
8902 * symfile.c (overlay_command): Remove.
8903 (_initialize_symfile): Use add_basic_prefix_cmd.
8904 * sparc64-tdep.c (info_adi_command): Remove.
8905 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8906 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8907 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8908 add_show_prefix_cmd.
8909 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8910 (_initialize_serial): Use add_basic_prefix_cmd,
8911 add_show_prefix_cmd.
8912 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8913 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8914 add_show_prefix_cmd.
8915 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8916 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8917 add_show_prefix_cmd.
8918 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8919 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8920 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8921 add_show_prefix_cmd.
8922 * remote.c (remote_command, set_remote_cmd): Remove.
8923 (_initialize_remote): Use add_basic_prefix_cmd.
8924 * record-full.c (set_record_full_command)
8925 (show_record_full_command): Remove.
8926 (_initialize_record_full): Use add_basic_prefix_cmd,
8927 add_show_prefix_cmd.
8928 * record-btrace.c (cmd_set_record_btrace)
8929 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8930 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8931 (cmd_show_record_btrace_pt): Remove.
8932 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8933 add_show_prefix_cmd.
8934 * ravenscar-thread.c (set_ravenscar_command)
8935 (show_ravenscar_command): Remove.
8936 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8937 add_show_prefix_cmd.
8938 * mips-tdep.c (show_mips_command, set_mips_command)
8939 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8940 add_show_prefix_cmd.
8941 * maint.c (maintenance_command, maintenance_info_command)
8942 (maintenance_check_command, maintenance_print_command)
8943 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8944 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8945 add_show_prefix_cmd.
8946 (show_per_command_cmd): Remove.
8947 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8948 Remove.
8949 (maintenance_show_test_settings_cmd): Remove.
8950 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8951 add_show_prefix_cmd.
8952 * maint-test-options.c (maintenance_test_options_command):
8953 Remove.
8954 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8955 * macrocmd.c (macro_command): Remove
8956 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8957 * language.c (set_check, show_check): Remove.
8958 (_initialize_language): Use add_basic_prefix_cmd,
8959 add_show_prefix_cmd.
8960 * infcmd.c (unset_command): Remove.
8961 (_initialize_infcmd): Use add_basic_prefix_cmd.
8962 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8963 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8964 add_show_prefix_cmd.
8965 * go32-nat.c (go32_info_dos_command): Remove.
8966 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8967 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8968 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8969 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8970 (_initialize_frame): Use add_basic_prefix_cmd,
8971 add_show_prefix_cmd.
8972 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8973 (_initialize_dcache): Use add_basic_prefix_cmd,
8974 add_show_prefix_cmd.
8975 * cp-support.c (maint_cplus_command): Remove.
8976 (_initialize_cp_support): Use add_basic_prefix_cmd.
8977 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8978 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8979 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8980 add_basic_prefix_cmd, add_show_prefix_cmd.
8981 * breakpoint.c (save_command): Remove.
8982 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8983 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8984 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8985 add_show_prefix_cmd.
8986 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8987 (set_ada_command, show_ada_command): Remove.
8988 (_initialize_ada_language): Use add_basic_prefix_cmd,
8989 add_show_prefix_cmd.
8990 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8991
8992 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8993
8994 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8995 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8996
8997 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8998
8999 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9000 warning messages.
9001
9002 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9003
9004 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9005 import table is not at beginning of .idata section.
9006
9007 2020-04-16 Pedro Alves <palves@redhat.com>
9008
9009 * inferior.c (delete_inferior): Use delete operator directly
9010 instead of delete_program_space.
9011 * progspace.c (add_program_space): New, factored out from
9012 program_space::program_space.
9013 (remove_program_space): New, factored out from
9014 delete_program_space.
9015 (program_space::program_space): Remove intro comment. Rewrite.
9016 (program_space::~program_space): Remove intro comment. Call
9017 remove_program_space.
9018 (delete_program_space): Delete.
9019 * progspace.h (program_space::program_space): Make explicit. Move
9020 intro comment here, adjusted.
9021 (program_space::~program_space): Move intro comment here,
9022 adjusted.
9023 (delete_program_space): Remove.
9024
9025 2020-04-16 Tom Tromey <tromey@adacore.com>
9026
9027 * windows-nat.c (windows_nat::handle_access_violation): New
9028 function.
9029 * nat/windows-nat.h (handle_access_violation): Declare.
9030 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9031 windows-nat.c. Call handle_access_violation.
9032
9033 2020-04-16 Tom de Vries <tdevries@suse.de>
9034
9035 PR symtab/25791
9036 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9037 CUs without psymtab.
9038
9039 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9040
9041 * python/python.c (do_start_initialization): Don't call
9042 PyEval_InitThreads for Python 3.9 and beyond.
9043
9044 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9045
9046 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9047 thread functions.
9048 (obsd_nat_target::wait): Likewise.
9049
9050 2020-04-15 Tom Tromey <tromey@adacore.com>
9051
9052 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9053 (DEBUG_EXCEPT): Use debug_printf.
9054
9055 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9056
9057 * completer.c (class completion_tracker::completion_hash_entry)
9058 <hash_name>: New member function.
9059 (completion_tracker::discard_completions): New callback to hash a
9060 completion_hash_entry, pass this to htab_create_alloc.
9061
9062 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9063
9064 * windows-nat.c (windows_make_so): Warn rather than stopping with
9065 an error if realpath() fails.
9066
9067 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9068
9069 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9070 (nbsd_nat_target::info_proc): Add do_status.
9071
9072 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9073 Tom de Vries <tdevries@suse.de>
9074
9075 PR symtab/25718
9076 * psympriv.h (struct partial_symtab::read_symtab)
9077 (struct partial_symtab::expand_psymtab)
9078 (struct partial_symtab::read_dependencies): Update comments.
9079 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9080 read_symtab for includer.
9081 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9082 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9083 (struct dwarf2_include_psymtab::m_readin): Remove.
9084 (struct dwarf2_include_psymtab::includer): New member function.
9085 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9086
9087 2020-04-14 Tom de Vries <tdevries@suse.de>
9088
9089 PR symtab/25720
9090 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9091 with NULL symbol_matcher and lookup_name.
9092 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9093 and lookup_name.
9094 * dwarf2/read.c (dw2_expand_symtabs_matching)
9095 (dw2_debug_names_expand_symtabs_matching): Same.
9096 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9097 Make lookup_name a pointer. Update comment.
9098 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9099 lookup_name being a pointer.
9100 * symfile.c (expand_symtabs_matching): Same.
9101 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9102 * linespec.c (iterate_over_all_matching_symtabs): Same.
9103
9104 2020-04-13 Tom Tromey <tom@tromey.com>
9105
9106 * run-on-main-thread.c: Update include.
9107 * unittests/main-thread-selftests.c: Update include.
9108 * tui/tui-win.c: Update include.
9109 * tui/tui-io.c: Update include.
9110 * tui/tui-interp.c: Update include.
9111 * tui/tui-hooks.c: Update include.
9112 * top.h: Update include.
9113 * top.c: Update include.
9114 * ser-base.c: Update include.
9115 * remote.c: Update include.
9116 * remote-notif.c: Update include.
9117 * remote-fileio.c: Update include.
9118 * record-full.c: Update include.
9119 * record-btrace.c: Update include.
9120 * python/python.c: Update include.
9121 * posix-hdep.c: Update include.
9122 * mingw-hdep.c: Update include.
9123 * mi/mi-main.c: Update include.
9124 * mi/mi-interp.c: Update include.
9125 * main.c: Update include.
9126 * linux-nat.c: Update include.
9127 * interps.c: Update include.
9128 * infrun.c: Update include.
9129 * inf-loop.c: Update include.
9130 * event-top.c: Update include.
9131 * event-loop.c: Move to ../gdbsupport/.
9132 * event-loop.h: Move to ../gdbsupport/.
9133 * async-event.h: Update include.
9134 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9135
9136 2020-04-13 Tom Tromey <tom@tromey.com>
9137
9138 * tui/tui-win.c: Include async-event.h.
9139 * remote.c: Include async-event.h.
9140 * remote-notif.c: Include async-event.h.
9141 * record-full.c: Include async-event.h.
9142 * record-btrace.c: Include async-event.h.
9143 * infrun.c: Include async-event.h.
9144 * event-top.c: Include async-event.h.
9145 * event-loop.h: Move some declarations to async-event.h.
9146 * event-loop.c: Don't include ser-event.h or top.h. Move some
9147 code to async-event.c.
9148 * async-event.h: New file.
9149 * async-event.c: New file.
9150 * Makefile.in (COMMON_SFILES): Add async-event.c.
9151 (HFILES_NO_SRCDIR): Add async-event.h.
9152
9153 2020-04-13 Tom Tromey <tom@tromey.com>
9154
9155 * utils.c (flush_streams): New function.
9156 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9157
9158 2020-04-13 Tom Tromey <tom@tromey.com>
9159
9160 * event-loop.c (handle_file_event): Use warning, not
9161 printf_unfiltered.
9162
9163 2020-04-13 Tom Tromey <tom@tromey.com>
9164
9165 * event-loop.c: Include <chrono>.
9166
9167 2020-04-13 Tom Tromey <tom@tromey.com>
9168
9169 * gdb_select.h: Move to ../gdbsupport/.
9170 * event-loop.c: Update include path.
9171 * top.c: Update include path.
9172 * ser-base.c: Update include path.
9173 * ui-file.c: Update include path.
9174 * ser-tcp.c: Update include path.
9175 * guile/scm-ports.c: Update include path.
9176 * posix-hdep.c: Update include path.
9177 * ser-unix.c: Update include path.
9178 * gdb_usleep.c: Update include path.
9179 * mingw-hdep.c: Update include path.
9180 * inflow.c: Update include path.
9181 * infrun.c: Update include path.
9182 * event-top.c: Update include path.
9183
9184 2020-04-13 Tom Tromey <tom@tromey.com>
9185
9186 * configure: Rebuild.
9187 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9188
9189 2020-04-13 Tom Tromey <tom@tromey.com>
9190
9191 * event-loop.h (start_event_loop): Don't declare.
9192 * event-loop.c (start_event_loop): Move...
9193 * main.c (start_event_loop): ...here. Now static.
9194
9195 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9196
9197 * MAINTAINERS: Update my email address.
9198
9199 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9200
9201 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9202 IP_ALL.
9203
9204 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9205
9206 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9207 (nbsd_nat_target::info_proc): Add do_cmdline.
9208
9209 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9210
9211 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9212 (nbsd_nat_target::info_proc): Add do_cwd.
9213
9214 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9215
9216 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9217
9218 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9219
9220 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9221 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9222 (nbsd_nat_target::info_proc): New functions.
9223 * nbsd-nat.c (kinfo_get_vmmap): New function.
9224 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9225 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9226 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9227 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9228 functions.
9229 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9230 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9231 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9232 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9233 (KINFO_VME_FLAG_GROWS_DOWN): New.
9234
9235 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9236
9237 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9238 bit shift.
9239
9240 2020-04-10 Tom Tromey <tromey@adacore.com>
9241
9242 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9243
9244 2020-04-10 Tom Tromey <tromey@adacore.com>
9245
9246 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9247 separate debug files.
9248
9249 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9250
9251 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9252 Move to...
9253 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9254 ... here.
9255 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9256 Check for STATUS_WX86_BREAKPOINT.
9257 (windows_nat_target::wait): Same.
9258
9259 2020-04-10 Tom de Vries <tdevries@suse.de>
9260
9261 PR cli/25808
9262 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9263
9264 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9265
9266 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9267 (Write After Approval): Remove Tom de Vries.
9268
9269 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9270
9271 revert partially:
9272 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9273
9274 * buildsym.c (record_line): Fix undefined behavior and preserve
9275 lines at eof.
9276
9277 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9278
9279 * auxv.h (svr4_auxv_parse): New.
9280 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9281 and generic_auxv_parse.
9282 (svr4_auxv_parse): Add.
9283 * obsd-tdep.c: Include "auxv.h".
9284 (obsd_auxv_parse): Remove.
9285 (obsd_init_abi): Remove comment.
9286 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9287 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9288 * nbsd-tdep.c: Include "auxv.h".
9289 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9290
9291 2020-04-08 Tom Tromey <tromey@adacore.com>
9292
9293 * nat/windows-nat.h (last_wait_event): Don't declare.
9294 (wait_for_debug_event): Update comment.
9295 * nat/windows-nat.c (last_wait_event): Now static.
9296
9297 2020-04-08 Tom Tromey <tromey@adacore.com>
9298
9299 * windows-nat.c (wait_for_debug_event): Move to
9300 nat/windows-nat.c.
9301 * nat/windows-nat.h (wait_for_debug_event): Declare.
9302 * nat/windows-nat.c (wait_for_debug_event): Move from
9303 windows-nat.c. No longer static.
9304
9305 2020-04-08 Tom Tromey <tromey@adacore.com>
9306
9307 * windows-nat.c (get_windows_debug_event): Use
9308 fetch_pending_stop.
9309 * nat/windows-nat.h (fetch_pending_stop): Declare.
9310 * nat/windows-nat.c (fetch_pending_stop): New function.
9311
9312 2020-04-08 Tom Tromey <tromey@adacore.com>
9313
9314 * windows-nat.c (windows_continue): Use matching_pending_stop and
9315 continue_last_debug_event.
9316 * nat/windows-nat.h (matching_pending_stop)
9317 (continue_last_debug_event): Declare.
9318 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9319 (matching_pending_stop, continue_last_debug_event): New
9320 functions.
9321
9322 2020-04-08 Tom Tromey <tromey@adacore.com>
9323
9324 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9325 (handle_exception_result): Move to nat/windows-nat.h.
9326 (DEBUG_EXCEPTION_SIMPLE): Remove.
9327 (windows_nat::handle_ms_vc_exception): New function.
9328 (handle_exception): Move to nat/windows-nat.c.
9329 (get_windows_debug_event): Update.
9330 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9331 nat/windows-nat.c.
9332 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9333 (handle_exception_result): Move from windows-nat.c.
9334 (handle_exception): Declare.
9335 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9336 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9337 windows-nat.c.
9338
9339 2020-04-08 Tom Tromey <tromey@adacore.com>
9340
9341 * windows-nat.c (exception_count, event_count): Remove.
9342 (handle_exception, get_windows_debug_event)
9343 (do_initial_windows_stuff): Update.
9344
9345 2020-04-08 Tom Tromey <tromey@adacore.com>
9346
9347 * windows-nat.c (windows_nat::handle_load_dll)
9348 (windows_nat::handle_unload_dll): Rename. No longer static.
9349 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9350 Declare.
9351
9352 2020-04-08 Tom Tromey <tromey@adacore.com>
9353
9354 * complaints.h (stop_whining): Declare at top-level.
9355 (complaint): Don't declare stop_whining.
9356
9357 2020-04-08 Tom Tromey <tromey@adacore.com>
9358
9359 * windows-nat.c (windows_nat::handle_output_debug_string):
9360 Rename. No longer static.
9361 * nat/windows-nat.h (handle_output_debug_string): Declare.
9362
9363 2020-04-08 Tom Tromey <tromey@adacore.com>
9364
9365 * windows-nat.c (current_process_handle, current_process_id)
9366 (main_thread_id, last_sig, current_event, last_wait_event)
9367 (current_windows_thread, desired_stop_thread_id, pending_stops)
9368 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9369 (display_selectors, fake_create_process)
9370 (get_windows_debug_event): Update.
9371 * nat/windows-nat.h (current_process_handle, current_process_id)
9372 (main_thread_id, last_sig, current_event, last_wait_event)
9373 (current_windows_thread, desired_stop_thread_id, pending_stops)
9374 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9375 * nat/windows-nat.c (current_process_handle, current_process_id)
9376 (main_thread_id, last_sig, current_event, last_wait_event)
9377 (current_windows_thread, desired_stop_thread_id, pending_stops)
9378 (siginfo_er): New globals. Move from windows-nat.c.
9379
9380 2020-04-08 Tom Tromey <tromey@adacore.com>
9381
9382 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9383 (handle_load_dll): Update.
9384 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9385
9386 2020-04-08 Tom Tromey <tromey@adacore.com>
9387
9388 * windows-nat.c (enum thread_disposition_type): Move to
9389 nat/windows-nat.h.
9390 (windows_nat::thread_rec): Rename from thread_rec. No longer
9391 static.
9392 (windows_add_thread, windows_nat_target::fetch_registers)
9393 (windows_nat_target::store_registers, handle_exception)
9394 (windows_nat_target::resume, get_windows_debug_event)
9395 (windows_nat_target::get_tib_address)
9396 (windows_nat_target::thread_name)
9397 (windows_nat_target::thread_alive): Update.
9398 * nat/windows-nat.h (enum thread_disposition_type): Move from
9399 windows-nat.c.
9400 (thread_rec): Declare.
9401
9402 2020-04-08 Tom Tromey <tromey@adacore.com>
9403
9404 * windows-nat.c: Add "using namespace".
9405 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9406 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9407
9408 2020-04-08 Tom Tromey <tromey@adacore.com>
9409
9410 * nat/windows-nat.h (struct windows_thread_info): Declare
9411 destructor.
9412 * nat/windows-nat.c (~windows_thread_info): New.
9413
9414 2020-04-08 Tom Tromey <tromey@adacore.com>
9415
9416 PR gdb/22992
9417 * windows-nat.c (current_event): Update comment.
9418 (last_wait_event, desired_stop_thread_id): New globals.
9419 (struct pending_stop): New.
9420 (pending_stops): New global.
9421 (windows_nat_target) <stopped_by_sw_breakpoint>
9422 <supports_stopped_by_sw_breakpoint>: New methods.
9423 (windows_fetch_one_register): Add assertions. Adjust PC.
9424 (windows_continue): Handle pending stops. Suspend other threads
9425 when stepping. Use last_wait_event
9426 (wait_for_debug_event): New function.
9427 (get_windows_debug_event): Use wait_for_debug_event. Handle
9428 pending stops. Queue spurious stops.
9429 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9430 (windows_nat_target::kill): Use wait_for_debug_event.
9431 * nat/windows-nat.h (struct windows_thread_info)
9432 <stopped_at_software_breakpoint>: New field.
9433 * nat/windows-nat.c (windows_thread_info::resume): Clear
9434 stopped_at_software_breakpoint.
9435
9436 2020-04-08 Tom Tromey <tromey@adacore.com>
9437
9438 * windows-nat.c (enum thread_disposition_type): New.
9439 (thread_rec): Replace "get_context" parameter with "disposition";
9440 change type.
9441 (windows_add_thread, windows_nat_target::fetch_registers)
9442 (windows_nat_target::store_registers, handle_exception)
9443 (windows_nat_target::resume, get_windows_debug_event)
9444 (windows_nat_target::get_tib_address)
9445 (windows_nat_target::thread_name)
9446 (windows_nat_target::thread_alive): Update.
9447
9448 2020-04-08 Tom Tromey <tromey@adacore.com>
9449
9450 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9451 (windows_continue): Use windows_continue::resume.
9452 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9453 resume>: Declare new methods.
9454 * nat/windows-nat.c: New file.
9455 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9456
9457 2020-04-08 Tom Tromey <tromey@adacore.com>
9458
9459 * windows-nat.c (windows_add_thread, windows_delete_thread)
9460 (windows_nat_target::fetch_registers)
9461 (windows_nat_target::store_registers, fake_create_process)
9462 (windows_nat_target::resume, windows_nat_target::resume)
9463 (get_windows_debug_event, windows_nat_target::wait)
9464 (windows_nat_target::pid_to_str)
9465 (windows_nat_target::get_tib_address)
9466 (windows_nat_target::get_ada_task_ptid)
9467 (windows_nat_target::thread_name)
9468 (windows_nat_target::thread_alive): Use lwp, not tid.
9469
9470 2020-04-08 Tom Tromey <tromey@adacore.com>
9471
9472 * windows-nat.c (handle_exception)
9473 (windows_nat_target::thread_name): Update.
9474 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9475 <name>: Now unique_xmalloc_ptr.
9476
9477 2020-04-08 Tom Tromey <tromey@adacore.com>
9478
9479 * windows-nat.c (thread_rec)
9480 (windows_nat_target::fetch_registers): Update.
9481 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9482 Update comment.
9483 <debug_registers_changed, reload_context>: Now bool.
9484
9485 2020-04-08 Tom Tromey <tromey@adacore.com>
9486
9487 * windows-nat.c (windows_add_thread): Use new.
9488 (windows_init_thread_list, windows_delete_thread): Use delete.
9489 (get_windows_debug_event): Update.
9490 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9491 destructor, and initializers.
9492
9493 2020-04-08 Tom Tromey <tromey@adacore.com>
9494
9495 * windows-nat.c (struct windows_thread_info): Remove.
9496 * nat/windows-nat.h: New file.
9497
9498 2020-04-08 Tom Tromey <tromey@adacore.com>
9499
9500 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9501 (thread_rec, windows_add_thread, windows_delete_thread)
9502 (windows_continue): Update.
9503
9504 2020-04-08 Tom Tromey <tromey@adacore.com>
9505
9506 * windows-nat.c (struct windows_thread_info): Remove typedef.
9507 (thread_head): Remove.
9508 (thread_list): New global.
9509 (thread_rec, windows_add_thread, windows_init_thread_list)
9510 (windows_delete_thread, windows_continue): Update.
9511
9512 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9513
9514 * windows-tdep.h (windows_init_abi): Add comment.
9515 (cygwin_init_abi): New declaration.
9516 * windows-tdep.c: Split signal enumeration in two, one for
9517 Windows and one for Cygwin.
9518 (windows_gdb_signal_to_target): Only deal with signal of the
9519 Windows OS ABI.
9520 (cygwin_gdb_signal_to_target): New function.
9521 (windows_init_abi): Rename to windows_init_abi_common, don't set
9522 gdb_signal_to_target gdbarch method. Add new new function with
9523 this name.
9524 (cygwin_init_abi): New function.
9525 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9526 comment. Don't call windows_init_abi.
9527 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9528 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9529 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9530 i386_windows_init_abi_common, don't call windows_init_abi. Add
9531 a new function of this name.
9532 (i386_cygwin_init_abi): New function.
9533 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9534 OS ABI Cygwin.
9535
9536 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9537
9538 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9539 parameter.c.
9540 (dwarf2_read_gdb_index): Update.
9541
9542 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9543
9544 * nbsd-tdep.c: Include "objfiles.h".
9545 (nbsd_skip_solib_resolver): New.
9546 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9547
9548 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9549
9550 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9551 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9552 with DW_LLE_base_addressx are being emitted in DWARFv5.
9553 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9554 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9555 unsigned integer.
9556
9557 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9558
9559 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9560 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9561 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9562 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9563 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9564 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9565 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9566
9567
9568 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9569
9570 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9571 (read_loclist_index): New function definition.
9572 (lookup_loclist_base): New function definition.
9573 (read_loclist_header): New function definition.
9574 (dwarf2_cu): Add loclist_base and loclist_header field.
9575 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9576 (read_full_die_1): Read the value of DW_AT_loclists_base.
9577 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9578 (read_attribute_value): Handle DW_FORM_loclistx.
9579 (skip_one_die): Handle DW_FORM_loclistx.
9580 (loclist_header): New structure declaration.
9581 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9582
9583 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9584
9585 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9586 constructor. Remove `addr` parameter from other constructor and
9587 add `per_cu` parameter.
9588 * dwarf2/read.c (create_partial_symtab): Update.
9589
9590 2020-04-07 Tom de Vries <tdevries@suse.de>
9591
9592 PR symtab/25796
9593 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9594 (partial_die_info::fixup): Inherit has_const_value.
9595
9596 2020-04-07 Tom de Vries <tdevries@suse.de>
9597
9598 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9599 symbols without address.
9600
9601 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9602
9603 * nbsd-nat.h (struct thread_info): Add forward declaration.
9604 (nbsd_nat_target::thread_alive): Add.
9605 (nbsd_nat_target::thread_name): Likewise.
9606 (nbsd_nat_target::update_thread_list): Likewise.
9607 (update_thread_list::post_attach): Likewise.
9608 (post_attach::pid_to_str): Likewise.
9609 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9610 (nbsd_thread_lister): Add.
9611 (nbsd_nat_target::thread_alive): Likewise.
9612 (nbsd_nat_target::thread_name): Likewise.
9613 (nbsd_add_threads): Likewise.
9614 (update_thread_list::post_attach): Likewise.
9615 (nbsd_nat_target::update_thread_list): Likewise.
9616 (post_attach::pid_to_str): Likewise.
9617
9618 2020-04-06 Tom Tromey <tromey@adacore.com>
9619
9620 * ada-valprint.c (print_variant_part): Extract the variant field.
9621 (print_field_values): Use the field as the outer value when
9622 recursing.
9623
9624 2020-04-06 Tom Tromey <tromey@adacore.com>
9625
9626 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9627 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9628 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9629 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9630 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9631
9632 2020-04-06 Tom Tromey <tromey@adacore.com>
9633
9634 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9635 TYPE_CODE_ERROR.
9636
9637 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9638
9639 * nbsd-tdep.c: Include "gdbarch.h".
9640 Define enum with NetBSD signal numbers.
9641 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9642 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9643 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9644 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9645 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9646 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9647 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9648 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9649 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9650 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9651 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9652 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9653
9654 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9655
9656 PR gdb/25325
9657 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9658
9659 2020-04-03 Tom Tromey <tromey@adacore.com>
9660
9661 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9662 Read constant block.
9663
9664 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9665
9666 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9667 (gdb_bfd_get_full_section_contents): New declaration.
9668 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9669 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9670 gdb_bfd_get_full_section_contents.
9671
9672 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9673
9674 * exec.c (build_section_table): Replace internal_error with
9675 gdb_assert.
9676 (section_table_xfer_memory_partial): Likewise.
9677 * mdebugread.c (parse_partial_symbols): Likewise.
9678 * psymtab.c (lookup_partial_symbol): Likewise.
9679 * utils.c (wrap_here): Likewise.
9680
9681 2020-04-02 Tom Tromey <tromey@adacore.com>
9682
9683 * f-lang.c (build_fortran_types): Use arch_type to initialize
9684 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9685
9686 2020-04-02 Tom Tromey <tromey@adacore.com>
9687
9688 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9689 of attributes.
9690
9691 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9692 Bernd Edlinger <bernd.edlinger@hotmail.de>
9693 Tom Tromey <tromey@adacore.com>
9694
9695 * buildsym.c (buildsym_compunit::record_line): Remove
9696 deduplication code.
9697
9698 2020-04-02 Tom de Vries <tdevries@suse.de>
9699
9700 PR ada/24671
9701 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9702
9703 2020-04-02 Tom de Vries <tdevries@suse.de>
9704
9705 * dwarf2/read.c (dwarf2_gdb_index_functions,
9706 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9707 NULL.
9708 * psymtab.c (psym_lookup_global_symbol_language): New function.
9709 (psym_functions): Init psym_lookup_global_symbol_language with
9710 psym_lookup_global_symbol_language.
9711 * symfile-debug.c (debug_sym_quick_functions): Init
9712 lookup_global_symbol_language with NULL.
9713 * symfile.c (set_initial_language): Remove fixme comment.
9714 * symfile.h (struct quick_symbol_functions): Add
9715 lookup_global_symbol_language.
9716 * symtab.c (find_quick_global_symbol_language): New function.
9717 (find_main_name): Use find_quick_global_symbol_language.
9718
9719 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9720
9721 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9722
9723 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9724
9725 * buildsym.c (record_line): Fix undefined behavior and preserve
9726 lines at eof.
9727
9728 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9729
9730 * buildsym.c (record_line): Fix the resizing condition.
9731
9732 2020-04-01 Tom Tromey <tom@tromey.com>
9733
9734 * value.h (value_literal_complex): Add comment.
9735 * valops.c (value_literal_complex): Refer to value.h.
9736
9737 2020-04-01 Tom Tromey <tom@tromey.com>
9738
9739 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9740 (scalar_type): New rule, from typebase.
9741 (typebase): Use scalar_type. Recognize complex types.
9742 (field_name): Handle FLOAT_KEYWORD.
9743 (ident_tokens): Add _Complex and __complex__.
9744
9745 2020-04-01 Tom Tromey <tom@tromey.com>
9746
9747 PR exp/25299:
9748 * valarith.c (promotion_type, complex_binop): New functions.
9749 (scalar_binop): Handle complex numbers. Use promotion_type.
9750 (value_pos, value_neg, value_complement): Handle complex numbers.
9751
9752 2020-04-01 Tom Tromey <tom@tromey.com>
9753
9754 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9755 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9756 (parse_number): Handle complex numbers.
9757
9758 2020-04-01 Tom Tromey <tom@tromey.com>
9759
9760 * c-valprint.c (c_decorations): Change complex suffix to "i".
9761
9762 2020-04-01 Tom Tromey <tom@tromey.com>
9763
9764 * valprint.c (generic_value_print_complex): Use accessors.
9765 * value.h (value_real_part, value_imaginary_part): Declare.
9766 * valops.c (value_real_part, value_imaginary_part): New
9767 functions.
9768 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9769
9770 2020-04-01 Tom Tromey <tom@tromey.com>
9771
9772 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9773 (read_range_type): Update.
9774 * mdebugread.c (basic_type): Update.
9775 * go-lang.c (build_go_types): Use init_complex_type.
9776 * gdbtypes.h (struct main_type) <complex_type>: New member.
9777 (init_complex_type): Update.
9778 (arch_complex_type): Don't declare.
9779 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9780 Make name if none given. Use alloc_type_copy. Look for cached
9781 complex type.
9782 (arch_complex_type): Remove.
9783 (gdbtypes_post_init): Use init_complex_type.
9784 * f-lang.c (build_fortran_types): Use init_complex_type.
9785 * dwarf2/read.c (read_base_type): Update.
9786 * d-lang.c (build_d_types): Use init_complex_type.
9787 * ctfread.c (read_base_type): Update.
9788
9789 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9790
9791 * infrun.c (stop_all_threads): Update assertion, plus when
9792 stopping threads, take into account that we might be trying
9793 to stop an all-stop target.
9794 (stop_waiting): Call 'stop_all_threads' if there exists a
9795 non-stop target.
9796
9797 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9798
9799 * target.h (exists_non_stop_target): New function declaration.
9800 * target.c (exists_non_stop_target): New function.
9801
9802 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9803
9804 PR gdb/24789
9805 * eval.c (is_integral_or_integral_reference): New function.
9806 (evaluate_subexp_standard): Allow integer references in
9807 pointer arithmetic.
9808
9809 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9810
9811 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9812 check for no ptid in the stop reply when the target is non-stop.
9813
9814 2020-04-01 Tom Tromey <tromey@adacore.com>
9815
9816 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9817 "name" parameter to rvalue reference. Initialize m_name_holder.
9818 <lookup_name_info>: New overloads.
9819 <name>: Return gdb::string_view.
9820 <c_str>: New method.
9821 <make_ignore_params>: Update.
9822 <search_name_hash>: Update.
9823 <language_lookup_name>: Return const char *.
9824 <m_name>: Change type.
9825 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9826 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9827 (lookup_name_info::match_any): Update.
9828 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9829 Update.
9830 * minsyms.c (linkage_name_str): Update.
9831 * language.c (default_symbol_name_matcher): Update.
9832 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9833 Update.
9834 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9835 (ada_lookup_name_info::ada_lookup_name_info): Update.
9836 (literal_symbol_name_matcher): Update.
9837
9838 2020-04-01 Tom Tromey <tromey@adacore.com>
9839
9840 * psymtab.c (psymtab_search_name): Remove function.
9841 (psym_lookup_symbol): Create search name and lookup name here.
9842 (lookup_partial_symbol): Remove "name" parameter; add
9843 lookup_name.
9844 (psym_expand_symtabs_for_function): Update.
9845
9846 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9847
9848 PR tui/25597:
9849 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9850
9851 2020-03-31 Tom Tromey <tromey@adacore.com>
9852
9853 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9854 memcpy.
9855
9856 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9857
9858 * features/riscv/32bit-csr.xml: Regenerated.
9859 * features/riscv/64bit-csr.xml: Regenerated.
9860
9861 2020-03-30 Tom Tromey <tromey@adacore.com>
9862
9863 * ada-valprint.c (print_variant_part): Update.
9864 * ada-lang.h (ada_which_variant_applies): Update.
9865 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9866 outer_valaddr parameters; replace with "outer" value parameter.
9867 (to_fixed_variant_branch_type): Update.
9868
9869 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9870
9871 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9872 <list>. Remove inclusion of observable.h.
9873 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9874 (struct arch_lwp_info): New struct.
9875 (class ppc_linux_dreg_interface): New class.
9876 (struct ppc_linux_process_info): New struct.
9877 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9878 <low_new_clone, low_forget_process, low_prepare_to_resume>
9879 <copy_thread_dreg_state, mark_thread_stale>
9880 <mark_debug_registers_changed, register_hw_breakpoint>
9881 <clear_hw_breakpoint, register_wp, clear_wp>
9882 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9883 <num_memory_accesses, get_trigger_type>
9884 <create_watchpoint_request, hwdebug_point_cmp>
9885 <init_arch_lwp_info, get_arch_lwp_info>
9886 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9887 methods.
9888 <struct ptid_hash>: New inner struct.
9889 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9890 members.
9891 (saved_dabr_value, hwdebug_info, max_slots_number)
9892 (struct hw_break_tuple, struct thread_points, ppc_threads)
9893 (have_ptrace_hwdebug_interface)
9894 (hwdebug_find_thread_points_by_tid)
9895 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9896 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9897 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9898 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9899 use m_dreg_interface.
9900 (hwdebug_point_cmp): Change to...
9901 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9902 reference arguments instead of pointers.
9903 (ppc_linux_nat_target::ranged_break_num_registers): Use
9904 m_dreg_interface.
9905 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9906 m_dreg_interface. Call register_hw_breakpoint.
9907 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9908 m_dreg_interface. Call clear_hw_breakpoint.
9909 (get_trigger_type): Change to...
9910 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9911 comment.
9912 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9913 use m_dreg_interface. Call register_hw_breakpoint.
9914 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9915 use m_dreg_interface. Call clear_hw_breakpoint.
9916 (can_use_watchpoint_cond_accel): Change to...
9917 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9918 method. Update comment, use m_dreg_interface and
9919 m_process_info.
9920 (calculate_dvc): Change to...
9921 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9922 m_dreg_interface.
9923 (num_memory_accesses): Change to...
9924 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9925 (check_condition): Change to...
9926 (ppc_linux_nat_target::check_condition): ...this method.
9927 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9928 comment, use m_dreg_interface.
9929 (create_watchpoint_request): Change to...
9930 (ppc_linux_nat_target::create_watchpoint_request): ...this
9931 method. Use m_dreg_interface.
9932 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9933 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9934 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9935 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9936 (ppc_linux_nat_target::low_forget_process)
9937 (ppc_linux_nat_target::low_new_fork)
9938 (ppc_linux_nat_target::low_new_clone)
9939 (ppc_linux_nat_target::low_delete_thread)
9940 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9941 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9942 only call mark_thread_stale.
9943 (ppc_linux_thread_exit): Remove.
9944 (ppc_linux_nat_target::stopped_data_address): Change to...
9945 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9946 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9947 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9948 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9949 comment. Call low_stopped_data_address.
9950 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9951 m_dreg_interface.
9952 (ppc_linux_nat_target::masked_watch_num_registers): Use
9953 m_dreg_interface.
9954 (ppc_linux_nat_target::copy_thread_dreg_state)
9955 (ppc_linux_nat_target::mark_thread_stale)
9956 (ppc_linux_nat_target::mark_debug_registers_changed)
9957 (ppc_linux_nat_target::register_hw_breakpoint)
9958 (ppc_linux_nat_target::clear_hw_breakpoint)
9959 (ppc_linux_nat_target::register_wp)
9960 (ppc_linux_nat_target::clear_wp)
9961 (ppc_linux_nat_target::init_arch_lwp_info)
9962 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9963 (_initialize_ppc_linux_nat): Remove observer callback.
9964
9965 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9966
9967 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9968 (ppc_linux_nat_target::auxv_parse)
9969 (ppc_linux_nat_target::read_description)
9970 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9971 Move up.
9972
9973 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9974
9975 * linux-nat.h (low_new_clone): New method.
9976 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9977
9978 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9979
9980 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9981 (dbx_expand_psymtab): ... this.
9982 (start_psymtab): Update.
9983 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9984 (mdebug_expand_psymtab): ... this.
9985 (parse_partial_symbols): Update.
9986 (new_psymtab): Update.
9987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9988 (xcoff_expand_psymtab): ... this.
9989 (xcoff_start_psymtab): Update.
9990
9991 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9992
9993 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9994 <expand_dependencies>: ... this.
9995 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9996 (partial_symtab::expand_dependencies): ... this.
9997 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9998 Update.
9999 (dwarf2_psymtab::expand_psymtab): Update.
10000 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10001 * mdebugread.c (psymtab_to_symtab_1): Update.
10002 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10003
10004 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10005
10006 * psympriv.h (discard_psymtab): Remove.
10007 * dbxread.c (dbx_end_psymtab): Update.
10008 * xcoffread.c (xcoff_end_psymtab): Update.
10009
10010 2020-03-28 Tom Tromey <tom@tromey.com>
10011
10012 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10013 comment.
10014
10015 2020-03-28 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10018
10019 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10020
10021 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10022
10023 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10024
10025 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10026
10027 2020-03-26 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10030 (mark_common_block_symbol_computed, read_tag_string_type)
10031 (attr_to_dynamic_prop, read_subrange_type): Update.
10032 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10033 to be methods on struct attribute.
10034 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10035 (read_call_site_scope, partial_die_info::read)
10036 (partial_die_info::read, lookup_die_type, follow_die_ref):
10037 Update.
10038 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10039 from dwarf2_get_ref_die_offset.
10040 (attribute::constant_value): New method, from
10041 dwarf2_get_attr_constant_value.
10042 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10043 Declare method.
10044 <constant_value>: New method.
10045
10046 2020-03-26 Tom Tromey <tom@tromey.com>
10047
10048 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10049 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10050 (dwarf_type_encoding_name): Move to stringify.c.
10051 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10052 * dwarf2/stringify.c: New file.
10053 * dwarf2/stringify.h: New file.
10054
10055 2020-03-26 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10058 Rewrite.
10059
10060 2020-03-26 Tom Tromey <tom@tromey.com>
10061
10062 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10063 methods.
10064 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10065 (lookup_ranges_base): Likewise.
10066 (read_cutu_die_from_dwo, read_full_die_1): Update.
10067
10068 2020-03-26 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.c (read_import_statement, read_file_scope)
10071 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10072 (read_lexical_block_scope, read_call_site_scope)
10073 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10074 (handle_struct_member_die, process_structure_scope)
10075 (update_enumeration_type_from_children)
10076 (process_enumeration_scope, read_array_type, read_common_block)
10077 (read_namespace, read_module, read_subroutine_type): Update.
10078 (sibling_die): Remove.
10079
10080 2020-03-26 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10083 (build_type_psymtabs_reader, read_structure_type)
10084 (read_enumeration_type, read_full_die_1): Update.
10085 (dwarf2_attr_no_follow): Move to die.h.
10086 * dwarf2/die.h (struct die_info) <attr>: New method.
10087
10088 2020-03-26 Tom Tromey <tom@tromey.com>
10089
10090 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10091 <base_address>: Now an optional.
10092 (dwarf2_find_base_address, dwarf2_rnglists_process)
10093 (dwarf2_ranges_process, fill_in_loclist_baton)
10094 (dwarf2_symbol_mark_computed): Update.
10095
10096 2020-03-26 Tom Tromey <tom@tromey.com>
10097
10098 * dwarf2/read.c (struct die_info): Move to die.h.
10099 * dwarf2/die.h: New file.
10100
10101 2020-03-26 Tom Tromey <tom@tromey.com>
10102
10103 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10104 * dwarf2/read.c
10105 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10106 Move to line-header.c.
10107 (read_checked_initial_length_and_offset, read_formatted_entries):
10108 Likewise.
10109 (dwarf_decode_line_header): Split into two.
10110 * dwarf2/line-header.c
10111 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10112 Move from read.c.
10113 (read_checked_initial_length_and_offset, read_formatted_entries):
10114 Likewise.
10115 (dwarf_decode_line_header): New function, split from read.c.
10116
10117 2020-03-26 Tom Tromey <tom@tromey.com>
10118
10119 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10120 Declare method.
10121 * dwarf2/read.c (read_attribute_value): Update.
10122 (dwarf2_per_objfile::read_line_string): Rename from
10123 read_indirect_line_string.
10124 (read_formatted_entries): Update.
10125
10126 2020-03-26 Tom Tromey <tom@tromey.com>
10127
10128 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10129 variable.
10130
10131 2020-03-26 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10134 const.
10135 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10136 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10137 parameter const.
10138
10139 2020-03-26 Tom Tromey <tom@tromey.com>
10140
10141 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10142 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10143 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10144 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10145
10146 2020-03-26 Tom Tromey <tom@tromey.com>
10147
10148 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10149 file_names_size, file_full_name, file_file_name>: Use const.
10150 <file_name_at, file_names>: Add const overload.
10151 * dwarf2/line-header.c (line_header::file_file_name)
10152 (line_header::file_full_name): Update.
10153
10154 2020-03-26 Tom Tromey <tom@tromey.com>
10155
10156 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10157 (macro_start_file, consume_improper_spaces)
10158 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10159 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10160 (dwarf_decode_macros): Move to macro.c.
10161 * dwarf2/macro.c: New file.
10162 * dwarf2/macro.h: New file.
10163 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10164
10165 2020-03-26 Tom Tromey <tom@tromey.com>
10166
10167 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10168 method.
10169 * dwarf2/section.c: New method. From
10170 read_indirect_string_at_offset_from.
10171 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10172 (read_indirect_string_at_offset_from): Move to section.c.
10173 (read_indirect_string_at_offset): Rewrite.
10174 (read_indirect_line_string_at_offset): Remove.
10175 (read_indirect_string, read_indirect_line_string)
10176 (dwarf_decode_macro_bytes): Update.
10177
10178 2020-03-26 Tom Tromey <tom@tromey.com>
10179
10180 * dwarf2/section.h (struct dwarf2_section_info)
10181 <overload_complaint>: Declare.
10182 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10183 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10184 Rename from dwarf2_section_buffer_overflow_complaint.
10185 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10186 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10187
10188 2020-03-26 Tom Tromey <tom@tromey.com>
10189
10190 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10191 Declare.
10192 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10193 Move from read.c.
10194 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10195 to section.c.
10196
10197 2020-03-26 Tom Tromey <tom@tromey.com>
10198
10199 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10200
10201 2020-03-26 Tom Tromey <tom@tromey.com>
10202
10203 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10204 "builder".
10205 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10206 parameter.
10207 (dwarf_decode_macros): Update.
10208
10209 2020-03-26 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/read.c (read_attribute_value): Update.
10212 (read_indirect_string_from_dwz): Move to dwz.c; change into
10213 method.
10214 (dwarf_decode_macro_bytes): Update.
10215 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10216 * dwarf2/dwz.c: New file.
10217 * Makefile.in (COMMON_SFILES): Add dwz.c.
10218
10219 2020-03-26 Tom Tromey <tom@tromey.com>
10220
10221 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10222 * dwarf2/read.c: Add include.
10223 * dwarf2/index-write.c: Add include.
10224 * dwarf2/index-cache.c: Add include.
10225 * dwarf2/dwz.h: New file.
10226
10227 2020-03-25 Tom Tromey <tom@tromey.com>
10228
10229 * compile/compile-object-load.c (get_out_value_type): Mention
10230 correct symbol name in error message.
10231
10232 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10233
10234 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10235
10236 2020-03-25 Tom de Vries <tdevries@suse.de>
10237
10238 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10239 * symmisc.c (dump_symtab_1): Print user and includes fields.
10240 (maintenance_info_symtabs): Same.
10241
10242 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10243
10244 PR gdb/25534
10245 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10246 (riscv_regcache_cooked_write): New function.
10247 (riscv_push_dummy_call): Use new function.
10248 (riscv_return_value): Likewise.
10249
10250 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10251
10252 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10253 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10254 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10255 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10256 * infrun.c (follow_fork): Likewise.
10257 (follow_fork_inferior): Likewise.
10258 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10259 * linux-nat.h (class linux_nat_target): Likewise.
10260 * remote.c (class remote_target) <follow_fork>: Likewise.
10261 (remote_target::follow_fork): Likewise.
10262 * target-delegates.c: Re-generate.
10263 * target.c (default_follow_fork): Likewise.
10264 (target_follow_fork): Likewise.
10265 * target.h (struct target_ops) <follow_fork>: Likewise.
10266 (target_follow_fork): Likewise.
10267
10268 2020-03-24 Tom de Vries <tdevries@suse.de>
10269
10270 * psymtab.c (maintenance_info_psymtabs): Print user field.
10271
10272 2020-03-20 Tom Tromey <tromey@adacore.com>
10273
10274 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10275 const.
10276 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10277 const.
10278
10279 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10280
10281 * ptrace.m4: Don't check for ptrace declaration.
10282 * config.in: Re-generate.
10283 * configure: Re-generate.
10284 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10285 not defined.
10286
10287 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10288
10289 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10290 `PTRACE_TYPE_RET'.
10291 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10292 * sparc-nat.c (gdb_ptrace): Likewise.
10293 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10294
10295 2020-03-20 Tom Tromey <tromey@adacore.com>
10296
10297 * c-exp.y (lex_one_token): Fix assert.
10298
10299 2020-03-20 Tom Tromey <tromey@adacore.com>
10300
10301 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10302 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10303 strncpy call.
10304
10305 2020-03-20 Tom Tromey <tromey@adacore.com>
10306
10307 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10308
10309 2020-03-20 Tom Tromey <tromey@adacore.com>
10310
10311 * ada-valprint.c (print_variant_part): Remove parameters; switch
10312 to value-based API.
10313 (print_field_values): Likewise.
10314 (ada_val_print_struct_union): Likewise.
10315 (ada_value_print_1): Update.
10316
10317 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10318
10319 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10320 nbsd_nat_target instead of inf_ptrace_target.
10321 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10322 nbsd_nat_target.
10323
10324 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10325
10326 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10327 it to the ptrace call.
10328 * (store_registers): Likewise.
10329
10330 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10331
10332 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10333 it to the ptrace call.
10334 * (store_registers): Likewise.
10335
10336 2020-03-19 Luis Machado <luis.machado@linaro.org>
10337
10338 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10339 valid, fetch vg value from ptrace.
10340
10341 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10342 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10343 * inf-ptrace.c: Likewise.
10344 * (gdb_ptrace): Add.
10345 * (inf_ptrace_target::resume): Update.
10346 * (inf_ptrace_target::xfer_partial): Likewise.
10347 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10348 * (inf_ptrace_peek_poke): Update.
10349
10350 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10351
10352 * x86-bsd-nat.c (gdb_ptrace): New.
10353 * (x86bsd_dr_set): Add new argument `ptid'.
10354 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10355 x86bsd_dr_set_addr): Update.
10356
10357 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10358
10359 * remote.c (remote_target::process_stop_reply): Handle events for
10360 all threads differently.
10361
10362 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10363
10364 * completer.c (completion_tracker::remove_completion): Define new
10365 function.
10366 * completer.h (completion_tracker::remove_completion): Declare new
10367 function.
10368 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10369 when adding a C++ function symbol.
10370
10371 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10372
10373 * completer.c (completion_tracker::completion_hash_entry): Define
10374 new class.
10375 (advance_to_filename_complete_word_point): Call
10376 recompute_lowest_common_denominator.
10377 (completion_tracker::completion_tracker): Call discard_completions
10378 to setup the hash table.
10379 (completion_tracker::discard_completions): Allow for being called
10380 from the constructor, pass new equal function, and element deleter
10381 when constructing the hash table. Initialise new class member
10382 variables.
10383 (completion_tracker::maybe_add_completion): Remove use of
10384 m_entries_vec, and store more information into m_entries_hash.
10385 (completion_tracker::recompute_lcd_visitor): New function, most
10386 content taken from...
10387 (completion_tracker::recompute_lowest_common_denominator):
10388 ...here, this now just visits each item in the hash calling the
10389 above visitor.
10390 (completion_tracker::build_completion_result): Remove use of
10391 m_entries_vec, call recompute_lowest_common_denominator.
10392 * completer.h (completion_tracker::have_completions): Remove use
10393 of m_entries_vec.
10394 (completion_tracker::completion_hash_entry): Declare new class.
10395 (completion_tracker::recompute_lowest_common_denominator): Change
10396 function signature.
10397 (completion_tracker::recompute_lcd_visitor): Declare new function.
10398 (completion_tracker::m_entries_vec): Delete.
10399 (completion_tracker::m_entries_hash): Initialize to NULL.
10400 (completion_tracker::m_lowest_common_denominator_valid): New
10401 member variable.
10402 (completion_tracker::m_lowest_common_denominator_max_length): New
10403 member variable.
10404
10405 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10406
10407 * regformats/regdef.h: Put reg in gdb namespace.
10408
10409 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10410
10411 * i386-bsd-nat.c (gdb_ptrace): New.
10412 * (i386bsd_fetch_inferior_registers,
10413 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10414 * (i386bsd_fetch_inferior_registers,
10415 i386bsd_store_inferior_registers) Use gdb_ptrace.
10416
10417 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10418
10419 * amd64-bsd-nat.c (gdb_ptrace): New.
10420 * (amd64bsd_fetch_inferior_registers,
10421 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10422 * (amd64bsd_fetch_inferior_registers,
10423 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10424
10425 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10426
10427 * user-regs.c (user_reg::read): Rename to...
10428 (user_reg::xread): ...this.
10429 * (append_user_reg): Rename argument `read' to `xread'.
10430 * (user_reg_add_builtin): Likewise.
10431 * (user_reg_add): Likewise.
10432 * (value_of_user_reg): Likewise.
10433
10434 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10435
10436 * sparc-nat.c (gdb_ptrace): New.
10437 * sparc-nat.c (sparc_fetch_inferior_registers)
10438 (sparc_store_inferior_registers) Remove obsolete comment.
10439 * sparc-nat.c (sparc_fetch_inferior_registers)
10440 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10441 * sparc-nat.c (sparc_fetch_inferior_registers)
10442 (sparc_store_inferior_registers) Use gdb_ptrace.
10443
10444 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10445
10446 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10447 it to the ptrace call.
10448 * sh-nbsd-nat.c (store_registers): Likewise.
10449
10450 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10451
10452 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10453 nbsd_nat_target instead of inf_ptrace_target.
10454 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10455 nbsd_nat_target.
10456
10457 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10458
10459 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10460
10461 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10462
10463 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10464 <sys/sysctl.h>.
10465 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10466
10467 2020-03-17 Tom de Vries <tdevries@suse.de>
10468
10469 PR gdb/23710
10470 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10471 fields.
10472 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10473 fields.
10474 (process_imported_unit_die): Skip import of c++ CUs.
10475
10476 2020-03-16 Tom Tromey <tom@tromey.com>
10477
10478 * p-valprint.c (pascal_object_print_value): Initialize
10479 base_value.
10480
10481 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10482 Shahab Vahedi <shahab@synopsys.com>
10483
10484 * Makefile.in: Add arch/arc.o
10485 * configure.tgt: Likewise.
10486 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10487 (_initialize_arc_tdep): Don't initialize old target descriptions.
10488 (arc_read_description): New function to cache target descriptions.
10489 * arc-tdep.h (arc_read_description): Add proto type.
10490 * arch/arc.c: New file.
10491 * arch/arc.h: Likewise.
10492 * features/Makefile: Replace old target descriptions with new.
10493 * features/arc-arcompact.c: Remove.
10494 * features/arc-arcompact.xml: Likewise.
10495 * features/arc-v2.c: Likewise
10496 * features/arc-v2.xml: Likewise
10497 * features/arc/aux-arcompact.xml: New file.
10498 * features/arc/aux-v2.xml: Likewise.
10499 * features/arc/core-arcompact.xml: Likewise.
10500 * features/arc/core-v2.xml: Likewise.
10501 * features/arc/aux-arcompact.c: Generate.
10502 * features/arc/aux-v2.c: Likewise.
10503 * features/arc/core-arcompact.c: Likewise.
10504 * features/arc/core-v2.c: Likewise.
10505 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10506
10507 2020-03-16 Tom Tromey <tromey@adacore.com>
10508
10509 PR gdb/25663:
10510 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10511 putting value into bcache.
10512
10513 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10514
10515 PR gdb/21500
10516 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10517 to...
10518 (amd64_windows_init_abi_common): ... this. Don't set size of
10519 long type.
10520 (amd64_windows_init_abi): New function.
10521 (amd64_cygwin_init_abi): New function.
10522 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10523 the Cygwin OS ABI.
10524 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10525 comment.
10526
10527 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10528
10529 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10530 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10531 (pe_import_directory_entry): New struct type.
10532 (is_linked_with_cygwin_dll): New function.
10533 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10534 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10535 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10536
10537 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10538
10539 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10540 i386_cygwin_core_osabi_sniffer.
10541
10542 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10543
10544 * i386-cygwin-tdep.c: Rename to...
10545 * i386-windows-tdep.c: ... this.
10546 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10547 i386-windows-tdep.c.
10548 * configure.tgt: Likewise.
10549
10550 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10551
10552 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10553 * osabi.c (gdb_osabi_names): Add "Windows".
10554 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10555 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10556 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10557 i386_cygwin_osabi_sniffer.
10558 (_initialize_i386_cygwin_tdep): Register OS ABI
10559 GDB_OSABI_WINDOWS for i386.
10560 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10561 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10562 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10563 for x86-64.
10564 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10565 when the target matches '*-*-mingw*'.
10566
10567 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10568
10569 * defs.h (enum gdb_osabi): Move to...
10570 * osabi.h (enum gdb_osabi): ... here.
10571 * gdbarch.sh: Include osabi.h in gdbarch.h.
10572 * gdbarch.h: Re-generate.
10573
10574 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10577 function.
10578 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10579
10580 2020-03-14 Tom Tromey <tom@tromey.com>
10581
10582 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10583 for C++.
10584 (c_type_print_modifier): Likewise. Add "language" parameter.
10585 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10586 (c_type_print_base_1): Update.
10587 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10588 constants.
10589 * type-stack.c (type_stack::insert): Handle tp_atomic and
10590 tp_restrict.
10591 (type_stack::follow_type_instance_flags): Likewise.
10592 (type_stack::follow_types): Likewise. Merge type-following code.
10593 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10594 (space_identifier, cv_with_space_id)
10595 (const_or_volatile_or_space_identifier_noopt)
10596 (const_or_volatile_or_space_identifier): Remove.
10597 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10598 rules.
10599 (ptr_operator, typebase): Update.
10600 (enum token_flag) <FLAG_C>: New constant.
10601 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10602 "_Atomic".
10603 (lex_one_token): Handle FLAG_C.
10604
10605 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10606
10607 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10608 it to the ptrace call.
10609 * m68k-bsd-nat.c (store_registers): Likewise.
10610
10611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10612
10613 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10614 gdb_byte *.
10615 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10616 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10617 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10618
10619 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10620
10621 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10622 nbsd_nat_target instead of inf_ptrace_target.
10623 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10624 nbsd_nat_target.
10625
10626 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10627
10628 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10629 register_t.
10630
10631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10632
10633 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10634 it to the ptrace call.
10635 * alpha-bsd-nat.c (store_registers): Likewise.
10636
10637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10638
10639 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10640 includes.
10641 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10642 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10643 fill_fpregset): Likewise.
10644
10645 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10646
10647 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10648 nbsd_nat_target instead of inf_ptrace_target.
10649 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10650 nbsd_nat_target.
10651
10652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10653
10654 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10655 register_t.
10656
10657 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10658
10659 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10660 it to the ptrace call.
10661 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10662 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10663 * arm-nbsd-nat.c (store_register): Likewise.
10664 * arm-nbsd-nat.c (store_regs): Likewise.
10665 * arm-nbsd-nat.c (store_fp_register): Likewise.
10666 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10667
10668 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10669
10670 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10671 nbsd_nat_target instead of inf_ptrace_target.
10672 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10673 nbsd_nat_target.
10674
10675 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10676
10677 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10678 it to the ptrace call.
10679 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10680
10681 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10682
10683 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10684 it to the ptrace call.
10685 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10686
10687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10688
10689 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10690 gdb_byte *.
10691 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10692
10693 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10694
10695 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10696 instead of inf_ptrace_target.
10697 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10698 nbsd_nat_target.
10699
10700 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10701
10702 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10703 register_t.
10704
10705 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10706
10707 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10708 register_t.
10709
10710 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10711
10712 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10713 register_t.
10714
10715 2020-03-13 Tom Tromey <tom@tromey.com>
10716
10717 * value.h (val_print): Don't declare.
10718 * valprint.h (val_print_array_elements)
10719 (val_print_scalar_formatted, generic_val_print): Don't declare.
10720 * valprint.c (generic_val_print_array): Take a struct value.
10721 (generic_val_print_ptr, generic_val_print_memberptr)
10722 (generic_val_print_bool, generic_val_print_int)
10723 (generic_val_print_char, generic_val_print_complex)
10724 (generic_val_print): Remove.
10725 (generic_value_print): Update.
10726 (do_val_print): Remove unused parameters. Don't call
10727 la_val_print.
10728 (val_print): Remove.
10729 (common_val_print): Update. Don't call value_check_printable.
10730 (val_print_scalar_formatted, val_print_array_elements): Remove.
10731 * rust-lang.c (rust_val_print): Remove.
10732 (rust_language_defn): Update.
10733 * p-valprint.c (pascal_val_print): Remove.
10734 (pascal_value_print_inner): Update.
10735 (pascal_object_print_val_fields, pascal_object_print_val):
10736 Remove.
10737 (pascal_object_print_static_field): Update.
10738 * p-lang.h (pascal_val_print): Don't declare.
10739 * p-lang.c (pascal_language_defn): Update.
10740 * opencl-lang.c (opencl_language_defn): Update.
10741 * objc-lang.c (objc_language_defn): Update.
10742 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10743 * m2-lang.h (m2_val_print): Don't declare.
10744 * m2-lang.c (m2_language_defn): Update.
10745 * language.h (struct language_defn) <la_val_print>: Remove.
10746 * language.c (unk_lang_value_print_inner): Rename. Change
10747 argument types.
10748 (unknown_language_defn, auto_language_defn): Update.
10749 * go-valprint.c (go_val_print): Remove.
10750 * go-lang.h (go_val_print): Don't declare.
10751 * go-lang.c (go_language_defn): Update.
10752 * f-valprint.c (f_val_print): Remove.
10753 * f-lang.h (f_value_print): Don't declare.
10754 * f-lang.c (f_language_defn): Update.
10755 * d-valprint.c (d_val_print): Remove.
10756 * d-lang.h (d_value_print): Don't declare.
10757 * d-lang.c (d_language_defn): Update.
10758 * cp-valprint.c (cp_print_value_fields)
10759 (cp_print_value_fields_rtti, cp_print_value): Remove.
10760 (cp_print_static_field): Update.
10761 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10762 (c_val_print_struct, c_val_print_union, c_val_print_int)
10763 (c_val_print_memberptr, c_val_print): Remove.
10764 * c-lang.h (c_val_print_array, cp_print_value_fields)
10765 (cp_print_value_fields_rtti): Don't declare.
10766 * c-lang.c (c_language_defn, cplus_language_defn)
10767 (asm_language_defn, minimal_language_defn): Update.
10768 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10769 (ada_val_print_enum): Take a struct value.
10770 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10771 (ada_val_print): Remove.
10772 (ada_value_print_1): Update.
10773 (printable_val_type): Remove.
10774 * ada-lang.h (ada_val_print): Don't declare.
10775 * ada-lang.c (ada_language_defn): Update.
10776
10777 2020-03-13 Tom Tromey <tom@tromey.com>
10778
10779 * valprint.c (do_val_print): Update.
10780 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10781 a struct value.
10782 (value_to_value_object_no_release): Declare.
10783 * python/py-value.c (value_to_value_object_no_release): New
10784 function.
10785 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10786 struct value.
10787 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10788 function.
10789 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10790 a struct value.
10791 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10792 Declare.
10793 (gdbscm_apply_val_pretty_printer): Take a struct value.
10794 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10795 value.
10796 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10797 value.
10798 * extension-priv.h (struct extension_language_ops)
10799 <apply_val_pretty_printer>: Take a struct value.
10800 * cp-valprint.c (cp_print_value): Create a struct value.
10801 (cp_print_value): Update.
10802
10803 2020-03-13 Tom Tromey <tom@tromey.com>
10804
10805 * ada-valprint.c (print_field_values): Call common_val_print.
10806
10807 2020-03-13 Tom Tromey <tom@tromey.com>
10808
10809 * ada-valprint.c (val_print_packed_array_elements): Remove
10810 bitoffset and val parameters. Call common_val_print.
10811 (ada_val_print_string): Remove offset, address, and original_value
10812 parameters.
10813 (ada_val_print_array): Update.
10814 (ada_value_print_array): New function.
10815 (ada_value_print_1): Call it.
10816
10817 2020-03-13 Tom Tromey <tom@tromey.com>
10818
10819 * ada-valprint.c (ada_value_print): Use common_val_print.
10820
10821 2020-03-13 Tom Tromey <tom@tromey.com>
10822
10823 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10824
10825 2020-03-13 Tom Tromey <tom@tromey.com>
10826
10827 * ada-valprint.c (ada_value_print_num): New function.
10828 (ada_value_print_1): Use it.
10829
10830 2020-03-13 Tom Tromey <tom@tromey.com>
10831
10832 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10833
10834 2020-03-13 Tom Tromey <tom@tromey.com>
10835
10836 * ada-valprint.c (ada_value_print_ptr): New function.
10837 (ada_value_print_1): Use it.
10838
10839 2020-03-13 Tom Tromey <tom@tromey.com>
10840
10841 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10842 call common_val_print.
10843 (ada_val_print_1): Update.
10844 (ada_value_print_1): New function.
10845 (ada_value_print_inner): Rewrite.
10846
10847 2020-03-13 Tom Tromey <tom@tromey.com>
10848
10849 * cp-valprint.c (cp_print_value_fields): Update.
10850 (cp_print_value): New function.
10851
10852 2020-03-13 Tom Tromey <tom@tromey.com>
10853
10854 * m2-valprint.c (m2_value_print_inner): Use
10855 cp_print_value_fields.
10856 * cp-valprint.c (cp_print_value_fields): New function.
10857 * c-valprint.c (c_value_print_struct): New function.
10858 (c_value_print_inner): Use c_value_print_struct.
10859 * c-lang.h (cp_print_value_fields): Declare.
10860
10861 2020-03-13 Tom Tromey <tom@tromey.com>
10862
10863 * c-valprint.c (c_value_print_array): New function.
10864 (c_value_print_inner): Use it.
10865
10866 2020-03-13 Tom Tromey <tom@tromey.com>
10867
10868 * c-valprint.c (c_value_print_memberptr): New function.
10869 (c_value_print_inner): Use it.
10870
10871 2020-03-13 Tom Tromey <tom@tromey.com>
10872
10873 * c-valprint.c (c_value_print_int): New function.
10874 (c_value_print_inner): Use it.
10875
10876 2020-03-13 Tom Tromey <tom@tromey.com>
10877
10878 * c-valprint.c (c_value_print_ptr): New function.
10879 (c_value_print_inner): Use it.
10880
10881 2020-03-13 Tom Tromey <tom@tromey.com>
10882
10883 * c-valprint.c (c_value_print_inner): Rewrite.
10884
10885 2020-03-13 Tom Tromey <tom@tromey.com>
10886
10887 * valprint.c (generic_value_print_complex): New function.
10888 (generic_value_print): Use it.
10889
10890 2020-03-13 Tom Tromey <tom@tromey.com>
10891
10892 * valprint.c (generic_val_print_float): Don't call
10893 val_print_scalar_formatted.
10894 (generic_val_print, generic_value_print): Update.
10895
10896 2020-03-13 Tom Tromey <tom@tromey.com>
10897
10898 * valprint.c (generic_value_print_char): New function
10899 (generic_value_print): Use it.
10900
10901 2020-03-13 Tom Tromey <tom@tromey.com>
10902
10903 * valprint.c (generic_value_print_int): New function.
10904 (generic_value_print): Use it.
10905
10906 2020-03-13 Tom Tromey <tom@tromey.com>
10907
10908 * valprint.c (generic_value_print_bool): New function.
10909 (generic_value_print): Use it.
10910
10911 2020-03-13 Tom Tromey <tom@tromey.com>
10912
10913 * valprint.c (generic_val_print_func): Simplify.
10914 (generic_val_print, generic_value_print): Update.
10915
10916 2020-03-13 Tom Tromey <tom@tromey.com>
10917
10918 * valprint.c (generic_val_print_flags): Remove.
10919 (generic_val_print, generic_value_print): Update.
10920 (val_print_type_code_flags): Add original_value parameter.
10921
10922 2020-03-13 Tom Tromey <tom@tromey.com>
10923
10924 * valprint.c (generic_val_print): Update.
10925 (generic_value_print): Update.
10926 * valprint.c (generic_val_print_enum): Don't call
10927 val_print_scalar_formatted.
10928
10929 2020-03-13 Tom Tromey <tom@tromey.com>
10930
10931 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10932 * valprint.c (generic_value_print_ptr): New function.
10933
10934 2020-03-13 Tom Tromey <tom@tromey.com>
10935
10936 * valprint.c (generic_value_print): Rewrite.
10937
10938 2020-03-13 Tom Tromey <tom@tromey.com>
10939
10940 * p-valprint.c (pascal_object_print_value_fields)
10941 (pascal_object_print_value): New functions.
10942
10943 2020-03-13 Tom Tromey <tom@tromey.com>
10944
10945 * p-valprint.c (pascal_value_print_inner): Rewrite.
10946
10947 2020-03-13 Tom Tromey <tom@tromey.com>
10948
10949 * f-valprint.c (f_value_print_innner): Rewrite.
10950
10951 2020-03-13 Tom Tromey <tom@tromey.com>
10952
10953 * m2-valprint.c (m2_print_unbounded_array): New overload.
10954 (m2_print_unbounded_array): Update.
10955 (m2_print_array_contents): Take a struct value.
10956 (m2_value_print_inner): Rewrite.
10957
10958 2020-03-13 Tom Tromey <tom@tromey.com>
10959
10960 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10961 (d_value_print_inner): New function.
10962 * d-lang.h (d_value_print_inner): Declare.
10963 * d-lang.c (d_language_defn): Use d_value_print_inner.
10964
10965 2020-03-13 Tom Tromey <tom@tromey.com>
10966
10967 * go-valprint.c (go_value_print_inner): New function.
10968 * go-lang.h (go_value_print_inner): Declare.
10969 * go-lang.c (go_language_defn): Use go_value_print_inner.
10970
10971 2020-03-13 Tom Tromey <tom@tromey.com>
10972
10973 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10974 API.
10975 (rust_val_print): Rewrite.
10976 (rust_value_print_inner): New function, from rust_val_print.
10977 (rust_language_defn): Use rust_value_print_inner.
10978
10979 2020-03-13 Tom Tromey <tom@tromey.com>
10980
10981 * ada-valprint.c (ada_value_print_inner): New function.
10982 * ada-lang.h (ada_value_print_inner): Declare.
10983 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10984
10985 2020-03-13 Tom Tromey <tom@tromey.com>
10986
10987 * f-valprint.c (f_value_print_innner): New function.
10988 * f-lang.h (f_value_print_innner): Declare.
10989 * f-lang.c (f_language_defn): Use f_value_print_innner.
10990
10991 2020-03-13 Tom Tromey <tom@tromey.com>
10992
10993 * p-valprint.c (pascal_value_print_inner): New function.
10994 * p-lang.h (pascal_value_print_inner): Declare.
10995 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10996
10997 2020-03-13 Tom Tromey <tom@tromey.com>
10998
10999 * m2-valprint.c (m2_value_print_inner): New function.
11000 * m2-lang.h (m2_value_print_inner): Declare.
11001 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11002
11003 2020-03-13 Tom Tromey <tom@tromey.com>
11004
11005 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11006 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11007 * c-valprint.c (c_value_print_inner): New function.
11008 * c-lang.h (c_value_print_inner): Declare.
11009 * c-lang.c (c_language_defn, cplus_language_defn)
11010 (asm_language_defn, minimal_language_defn): Use
11011 c_value_print_inner.
11012
11013 2020-03-13 Tom Tromey <tom@tromey.com>
11014
11015 * p-valprint.c (pascal_object_print_value_fields): Now static.
11016 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11017
11018 2020-03-13 Tom Tromey <tom@tromey.com>
11019
11020 * c-valprint.c (c_val_print_array): Simplify.
11021
11022 2020-03-13 Tom Tromey <tom@tromey.com>
11023
11024 * valprint.c (value_print_array_elements): New function.
11025 * valprint.h (value_print_array_elements): Declare.
11026
11027 2020-03-13 Tom Tromey <tom@tromey.com>
11028
11029 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11030 * mips-tdep.c (mips_print_register): Use
11031 value_print_scalar_formatted.
11032
11033 2020-03-13 Tom Tromey <tom@tromey.com>
11034
11035 * valprint.h (value_print_scalar_formatted): Declare.
11036 * valprint.c (value_print_scalar_formatted): New function.
11037
11038 2020-03-13 Tom Tromey <tom@tromey.com>
11039
11040 * valprint.h (generic_value_print): Declare.
11041 * valprint.c (generic_value_print): New function.
11042
11043 2020-03-13 Tom Tromey <tom@tromey.com>
11044
11045 * valprint.c (do_val_print): Call la_value_print_inner, if
11046 available.
11047 * rust-lang.c (rust_language_defn): Update.
11048 * p-lang.c (pascal_language_defn): Update.
11049 * opencl-lang.c (opencl_language_defn): Update.
11050 * objc-lang.c (objc_language_defn): Update.
11051 * m2-lang.c (m2_language_defn): Update.
11052 * language.h (struct language_defn) <la_value_print_inner>: New
11053 member.
11054 * language.c (unknown_language_defn, auto_language_defn): Update.
11055 * go-lang.c (go_language_defn): Update.
11056 * f-lang.c (f_language_defn): Update.
11057 * d-lang.c (d_language_defn): Update.
11058 * c-lang.c (c_language_defn, cplus_language_defn)
11059 (asm_language_defn, minimal_language_defn): Update.
11060 * ada-lang.c (ada_language_defn): Update.
11061
11062 2020-03-13 Tom Tromey <tom@tromey.com>
11063
11064 * c-valprint.c (c_value_print): Use common_val_print.
11065
11066 2020-03-13 Tom Tromey <tom@tromey.com>
11067
11068 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11069
11070 2020-03-13 Tom Tromey <tom@tromey.com>
11071
11072 * f-valprint.c (f77_print_array_1, f_val_print): Use
11073 common_val_print.
11074
11075 2020-03-13 Tom Tromey <tom@tromey.com>
11076
11077 * riscv-tdep.c (riscv_print_one_register_info): Use
11078 common_val_print.
11079
11080 2020-03-13 Tom Tromey <tom@tromey.com>
11081
11082 * mi/mi-main.c (output_register): Use common_val_print.
11083
11084 2020-03-13 Tom Tromey <tom@tromey.com>
11085
11086 * infcmd.c (default_print_one_register_info): Use
11087 common_val_print.
11088
11089 2020-03-13 Tom Tromey <tom@tromey.com>
11090
11091 * valprint.h (common_val_print_checked): Declare.
11092 * valprint.c (common_val_print_checked): New function.
11093 * stack.c (print_frame_arg): Use common_val_print_checked.
11094
11095 2020-03-13 Tom Tromey <tom@tromey.com>
11096
11097 * valprint.c (do_val_print): New function, from val_print.
11098 (val_print): Use do_val_print.
11099 (common_val_print): Use do_val_print.
11100
11101 2020-03-13 Tom Tromey <tom@tromey.com>
11102
11103 * valprint.c (value_print): Use scoped_value_mark.
11104
11105 2020-03-13 Tom de Vries <tdevries@suse.de>
11106
11107 PR symtab/25646
11108 * psymtab.c (partial_symtab::partial_symtab): Don't set
11109 globals_offset and statics_offset. Push element onto
11110 current_global_psymbols and current_static_psymbols stacks.
11111 (concat): New function.
11112 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11113 element from current_global_psymbols and current_static_psymbols
11114 stacks. Concat popped elements to global_psymbols and
11115 static_symbols.
11116 (add_psymbol_to_list): Use current_global_psymbols and
11117 current_static_psymbols stacks.
11118 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11119 current_static_psymbols fields.
11120
11121 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11122
11123 * corelow.c (sniff_core_bfd): Remove.
11124 (class core_target) <m_core_vec>: Remove.
11125 (core_target::core_target): Update.
11126 (core_file_fns): Remove.
11127 (deprecated_add_core_fns): Remove.
11128 (default_core_sniffer): Remove.
11129 (sniff_core_bfd): Remove.
11130 (default_check_format): Remove.
11131 (gdb_check_format): Remove.
11132 (core_target_open): Update.
11133 (core_target::get_core_register_section): Update.
11134 (get_core_registers_cb): Update.
11135 (core_target::fetch_registers): Update.
11136 * gdbcore.h (struct core_fns): Remove.
11137 (deprecated_add_core_fns): Remove.
11138 (default_core_sniffer): Remove.
11139 (default_check_format): Remove.
11140
11141 2020-03-12 Tom Tromey <tom@tromey.com>
11142
11143 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11144 CORE_ADDR.
11145 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11146
11147 2020-03-12 Tom Tromey <tom@tromey.com>
11148
11149 * remote.c (remote_target::download_tracepoint)
11150 (remote_target::enable_tracepoint)
11151 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11152 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11153 sprintf_vma.
11154
11155 2020-03-12 Tom Tromey <tom@tromey.com>
11156
11157 * symfile-mem.c: Update CORE_ADDR size assert.
11158
11159 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11160
11161 * selftest.m4: Move to gdbsupport/.
11162 * acinclude.m4: Update path to selftest.m4.
11163
11164 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11167 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11168 gdbarch-selfselftests.c and selftest-arch.c.
11169 (SUBDIR_UNITTESTS_OBS): Rename to...
11170 (SELFTESTS_OBS): ... this.
11171 (COMMON_SFILES): Remove disasm-selftests.c and
11172 gdbarch-selftests.c.
11173 * configure.ac: Don't add selftest-arch.{c,o} to
11174 CONFIG_{SRCS,OBS}.
11175 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11176 preprocessor conditions.
11177
11178 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11179
11180 * configure.ac: Don't source bfd/development.sh.
11181 * selftest.m4: Modify comment.
11182 * configure: Re-generate.
11183
11184 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11185
11186 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11187 not "true" or "false".
11188 * configure: Re-generate.
11189
11190 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11191
11192 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11193 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11194 renamed to arm_nbsd_supply_gregset.
11195 (fetch_register): Update to call arm_nbsd_supply_gregset.
11196 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11197 (arm_netbsd_nat_target::fetch_registers): Update.
11198 (fetch_elfcore_registers): Removed.
11199 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11200 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11201 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11202 not require NetBSD system headers.
11203 (arm_nbsd_regset): New struct.
11204 (arm_nbsd_iterate_over_regset_sections): New function.
11205 (arm_netbsd_init_abi_common): Updated to call
11206 set_gdbarch_iterate_over_regset_sections.
11207 * arm-nbsd-tdep.h: New file.
11208
11209 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11210
11211 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11212 recursion.
11213
11214 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11215
11216 * configure: Re-generate.
11217
11218 2020-03-11 Tom Tromey <tromey@adacore.com>
11219
11220 * ada-typeprint.c (print_choices): Fix comment.
11221
11222 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11223
11224 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11225 previous item in the list, when the list has no items.
11226
11227 2020-03-11 Tom de Vries <tdevries@suse.de>
11228
11229 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11230 PROP_LOCLIST handling code.
11231
11232 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11233
11234 * buildsym-legacy.c (record_line): Pass extra parameter to
11235 record_line.
11236 * buildsym.c (buildsym_compunit::record_line): Take an extra
11237 parameter, reduce duplication in the line table, and record the
11238 is_stmt flag in the line table.
11239 * buildsym.h (buildsym_compunit::record_line): Add extra
11240 parameter.
11241 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11242 non-statement lines.
11243 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11244 this to the symtab builder.
11245 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11246 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11247 through to dwarf_record_line_1.
11248 * infrun.c (process_event_stop_test): When stepping, don't stop at
11249 a non-statement instruction, and only refresh the step info when
11250 we land in the middle of a line's range. Also add an extra
11251 comment.
11252 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11253 field.
11254 * record-btrace.c (btrace_find_line_range): Only record lines
11255 marked as is-statement.
11256 * stack.c (frame_show_address): Show the frame address if we are
11257 in a non-statement sal.
11258 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11259 (maintenance_print_one_line_table): Print a header for the is_stmt
11260 column, and include is_stmt information in the output.
11261 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11262 preference to non-statements.
11263 (find_pcs_for_symtab_line): Prefer is-statement entries.
11264 (find_line_common): Likewise.
11265 * symtab.h (struct linetable_entry): Add is_stmt field.
11266 (struct symtab_and_line): Likewise.
11267 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11268 arranging the line table.
11269
11270 2020-03-07 Tom de Vries <tdevries@suse.de>
11271
11272 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11273 DIE.
11274
11275 2020-03-07 Tom Tromey <tom@tromey.com>
11276
11277 * valops.c (value_literal_complex): Remove obsolete comment.
11278 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11279 comment.
11280
11281 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11282
11283 * infrun.h: Forward-declare thread_info.
11284 (set_step_info): Add thread_info parameter, add doc.
11285 * infrun.c (set_step_info): Add thread_info parameter, move doc
11286 to header.
11287 * infrun.c (process_event_stop_test): Pass thread to
11288 set_step_info call.
11289 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11290 set_step_info.
11291 (prepare_one_step): Add thread_info parameter, pass it to
11292 set_step_frame and prepare_one_step (recursive) call.
11293 (step_1): Pass thread to prepare_one_step call.
11294 (step_command_fsm::should_stop): Pass thread to
11295 prepare_one_step.
11296 (until_next_fsm): Pass thread to set_step_frame call.
11297 (finish_command): Pass thread to set_step_info call.
11298
11299 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11300
11301 * windows-tdep.c (windows_solib_create_inferior_hook):
11302 Check if inferior is running.
11303
11304 2020-03-06 Tom de Vries <tdevries@suse.de>
11305
11306 * NEWS: Fix "the the".
11307 * ctfread.c: Same.
11308
11309 2020-03-06 Tom de Vries <tdevries@suse.de>
11310
11311 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11312
11313 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11314
11315 * .dir-locals.el: Add a comment referencing the other copies of
11316 this file.
11317
11318 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11319
11320 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11321 psargs.
11322
11323 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11324
11325 * .gitattributes: New file.
11326
11327 2020-03-04 Tom Tromey <tom@tromey.com>
11328
11329 * symmisc.c (print_symbol_bcache_statistics)
11330 (print_objfile_statistics): Update.
11331 * symfile.c (allocate_symtab): Use intern.
11332 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11333 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11334 macro_cache>: Remove.
11335 <string_cache>: New member.
11336 (struct objfile) <intern>: New methods.
11337 * elfread.c (elf_symtab_read): Use intern.
11338 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11339 (dwarf2_compute_name, dwarf2_physname)
11340 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11341 names.
11342 (guess_partial_die_structure_name): Update.
11343 (partial_die_info::fixup): Intern name.
11344 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11345 name.
11346 (dwarf2_name): Intern name. Update.
11347 * buildsym.c (buildsym_compunit::get_macro_table): Use
11348 string_cache.
11349
11350 2020-03-04 Tom Tromey <tom@tromey.com>
11351
11352 * jit.c (bfd_open_from_target_memory): Make "target" const.
11353 * corefile.c (gnutarget): Now const.
11354 * gdbcore.h (gnutarget): Now const.
11355
11356 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11357
11358 * NEWS: Mention support for WOW64 processes.
11359 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11360 (amd64_windows_segment_register_p): Remove static.
11361 (_initialize_amd64_windows_nat): Update.
11362 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11363 * i386-windows-nat.c (context_offset): Update.
11364 (i386_mappings): Rename and remove static.
11365 (i386_windows_segment_register_p): Remove static.
11366 (_initialize_i386_windows_nat): Update.
11367 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11368 (STATUS_WX86_SINGLE_STEP): New macro.
11369 (EnumProcessModulesEx): New macro.
11370 (Wow64SuspendThread): New macro.
11371 (Wow64GetThreadContext): New macro.
11372 (Wow64SetThreadContext): New macro.
11373 (Wow64GetThreadSelectorEntry): New macro.
11374 (windows_set_context_register_offsets): Add static.
11375 (windows_set_segment_register_p): Likewise.
11376 (windows_add_thread): Adapt for WOW64 processes.
11377 (windows_fetch_one_register): Likewise.
11378 (windows_nat_target::fetch_registers): Likewise.
11379 (windows_store_one_register): Likewise.
11380 (display_selector): Likewise.
11381 (display_selectors): Likewise.
11382 (handle_exception): Likewise.
11383 (windows_continue): Likewise.
11384 (windows_nat_target::resume): Likewise.
11385 (windows_add_all_dlls): Likewise.
11386 (do_initial_windows_stuff): Likewise.
11387 (windows_nat_target::attach): Likewise.
11388 (windows_get_exec_module_filename): Likewise.
11389 (windows_nat_target::create_inferior): Likewise.
11390 (windows_xfer_siginfo): Likewise.
11391 (_initialize_loadable): Initialize Wow64SuspendThread,
11392 Wow64GetThreadContext, Wow64SetThreadContext,
11393 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11394 * windows-nat.h (windows_set_context_register_offsets):
11395 Remove declaration.
11396 (windows_set_segment_register_p): Likewise.
11397 (i386_windows_segment_register_p): Add declaration.
11398 (amd64_windows_segment_register_p): Likewise.
11399
11400 2020-03-04 Luis Machado <luis.machado@linaro.org>
11401
11402 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11403 in "info registers" for AArch64/ARM.
11404
11405 The change caused "info registers" to not print GPR's.
11406
11407 gdb/ChangeLog:
11408
11409 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11410
11411 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11412 when reg->group is empty and reggroup is not.
11413
11414 2020-03-03 Tom Tromey <tromey@adacore.com>
11415
11416 * dwarf2/frame.c (struct dwarf2_frame_cache)
11417 <checked_tailcall_bottom, entry_cfa_sp_offset,
11418 entry_cfa_sp_offset_p>: Remove members.
11419 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11420 (dwarf2_frame_prev_register): Don't call
11421 dwarf2_tailcall_sniffer_first.
11422 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11423 * frame-unwind.c (add_unwinder): New fuction.
11424 (frame_unwind_init): Use it. Add tailcall unwinder.
11425
11426 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11427 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11428
11429 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11430 value should be printed as true.
11431
11432 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11433
11434 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11435 (windows_init_abi): Set and use windows_so_ops.
11436
11437 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11438
11439 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11440 when verifying if dealing with a convenience variable.
11441
11442 2020-03-03 Luis Machado <luis.machado@linaro.org>
11443
11444 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11445
11446 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11447
11448 * infrun.c (gdbarch_supports_displaced_stepping): New.
11449 (use_displaced_stepping): Break up conditions in smaller pieces.
11450 Use gdbarch_supports_displaced_stepping.
11451 (displaced_step_prepare_throw): Use
11452 gdbarch_supports_displaced_stepping.
11453
11454 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11455
11456 * NEWS: Mention new behaviour of the history filename.
11457 * top.c (write_history_p): Add comment.
11458 (show_write_history_p): Add header comment, give a different
11459 message when history writing is on, but the history filename is
11460 empty.
11461 (history_filename): Add comment.
11462 (history_filename_empty): New function.
11463 (show_history_filename): Add header comment, give a different
11464 message when the filename is empty.
11465 (init_history): Compare history_filename against nullptr, and only
11466 read history if the filename is not empty.
11467 (set_history_filename): Add header comment, and only make
11468 non-empty filenames absolute.
11469 (init_main): Make the filename argument to 'set history filename'
11470 optional.
11471
11472 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11473
11474 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11475 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11476 (fetch_fp_register): Update.
11477 (fetch_fp_regs): Update.
11478 (store_fp_register): Update.
11479 (store_fp_regs): Update.
11480 (arm_netbsd_nat_target::read_description): New function.
11481 (fetch_elfcore_registers): Update.
11482
11483 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11484
11485 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11486 general_thread if the stop reply is missing a thread-id.
11487 (remote_target::process_stop_reply): Use the first non-exited
11488 thread if the target didn't pass a thread-id.
11489 * infrun.c (do_target_wait): Move call to
11490 switch_to_inferior_no_thread to ....
11491 (do_target_wait_1): ... here.
11492
11493 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11494
11495 * debuginfod-support.c: Include defs.h first.
11496
11497 2020-02-28 Tom de Vries <tdevries@suse.de>
11498
11499 * symfile.c (set_initial_language): Use default language for lookup.
11500
11501 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11502
11503 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11504 reader variable, pass `this` to read_cutu_die_from_dwo.
11505
11506 2020-02-27 Aaron Merey <amerey@redhat.com>
11507
11508 * source.c (open_source_file): Check for nullptr when computing
11509 srcpath.
11510
11511 2020-02-27 Tom Tromey <tromey@adacore.com>
11512
11513 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11514 member.
11515 (dwarf2_add_field): Don't update nfields.
11516 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11517
11518 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11519
11520 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11521 abs.
11522
11523 2020-02-26 Tom Tromey <tom@tromey.com>
11524
11525 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11526 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11527 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11528 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11529 per_cu_data.
11530
11531 2020-02-26 Tom Tromey <tom@tromey.com>
11532
11533 * dwarf2/index-write.c (psym_index_map): Change type.
11534 (add_address_entry_worker, write_one_signatured_type)
11535 (recursively_count_psymbols, recursively_write_psymbols)
11536 (class debug_names, psyms_seen_size, write_gdbindex)
11537 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11538
11539 2020-02-26 Aaron Merey <amerey@redhat.com>
11540
11541 * Makefile.in: Handle optional debuginfod support.
11542 * NEWS: Update.
11543 * README: Add --with-debuginfod summary.
11544 * config.in: Regenerate.
11545 * configure: Regenerate.
11546 * configure.ac: Handle optional debuginfod support.
11547 * debuginfod-support.c: debuginfod helper functions.
11548 * debuginfod-support.h: Ditto.
11549 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11550 summary.
11551 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11552 when a dwz file cannot be found.
11553 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11554 debuginfo file cannot be found.
11555 * source.c (open_source_file): Query debuginfod servers when a
11556 source file cannot be found.
11557 * top.c (print_gdb_configuration): Include
11558 --{with,without}-debuginfod in the output.
11559
11560 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11561
11562 * thread.c (thr_try_catch_cmd): Print thread name.
11563
11564 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11565
11566 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11567 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11568 dwarf2_fetch_die_type_sect_off): Move to...
11569 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11570 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11571 dwarf2_fetch_die_type_sect_off): ... here.
11572 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11573 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11574 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11575
11576 2020-02-26 Tom de Vries <tdevries@suse.de>
11577
11578 PR gdb/25603
11579 * symfile.c (set_initial_language): Exit-early if
11580 language_mode == language_mode_manual.
11581
11582 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11583
11584 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11585 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11586 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11587
11588 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11589
11590 * gdbtypes.c (create_array_type_with_stride): Handle negative
11591 array strides.
11592 * valarith.c (value_subscripted_rvalue): Likewise.
11593
11594 2020-02-25 Luis Machado <luis.machado@linaro.org>
11595
11596 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11597
11598 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11599
11600 * loc.h (dwarf2_get_die_type): Move to...
11601 * read.h (dwarf2_get_die_type): ... here.
11602 * read.c (dwarf2_get_die_type): Move doc to header.
11603
11604 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11605
11606 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11607 'gnulib/Makefile.in' to the list.
11608
11609 2020-02-24 Tom Tromey <tom@tromey.com>
11610
11611 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11612 Remove.
11613 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11614 XOBNEWVEC.
11615
11616 2020-02-24 Tom Tromey <tom@tromey.com>
11617
11618 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11619 New method.
11620 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11621 (dw2_do_instantiate_symtab, dw2_get_file_names)
11622 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11623
11624 2020-02-24 Tom Tromey <tom@tromey.com>
11625
11626 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11627 make_scoped_restore.
11628 (dwarf2_psymtab::read_symtab): Don't clear
11629 reading_partial_symbols.
11630
11631 2020-02-24 Tom de Vries <tdevries@suse.de>
11632
11633 PR gdb/25592
11634 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11635
11636 2020-02-24 Tom de Vries <tdevries@suse.de>
11637
11638 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11639 commands layout next/prev/regs.
11640
11641 2020-02-22 Tom Tromey <tom@tromey.com>
11642
11643 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11644 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11645
11646 2020-02-22 Tom Tromey <tom@tromey.com>
11647
11648 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11649
11650 2020-02-22 Tom Tromey <tom@tromey.com>
11651
11652 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11653 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11654 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11655 * tui/tui.c (_initialize_tui): Add usage text.
11656
11657 2020-02-22 Tom Tromey <tom@tromey.com>
11658
11659 * tui/tui-win.c (tui_set_focus_command)
11660 (tui_set_win_height_command): Use error_no_arg.
11661 (_initialize_tui_win): Update help text.
11662 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11663
11664 2020-02-22 Tom Tromey <tom@tromey.com>
11665
11666 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11667 * tui/tui-disasm.h (struct tui_disasm_window)
11668 <display_start_addr>: Declare.
11669 * tui/tui-source.h (struct tui_source_window)
11670 <display_start_addr>: Declare.
11671 * tui/tui-winsource.h (struct tui_source_window_base)
11672 <show_source_line, display_start_addr>: New methods.
11673 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11674 Rename and move to protected section.
11675 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11676 (tui_source_window_base::do_erase_source_content): Update.
11677 (tui_source_window_base::show_source_line): Now a method.
11678 (tui_source_window_base::show_source_content)
11679 (tui_source_window_base::tui_source_window_base)
11680 (tui_source_window_base::rerender)
11681 (tui_source_window_base::refill)
11682 (tui_source_window_base::do_scroll_horizontal)
11683 (tui_source_window_base::set_is_exec_point_at)
11684 (tui_source_window_base::update_breakpoint_info)
11685 (tui_source_window_base::update_exec_info): Update.
11686 * tui/tui-source.c (tui_source_window::set_contents)
11687 (tui_source_window::showing_source_p)
11688 (tui_source_window::do_scroll_vertical)
11689 (tui_source_window::location_matches_p)
11690 (tui_source_window::line_is_displayed): Update.
11691 (tui_source_window::display_start_addr): New method.
11692 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11693 (tui_disasm_window::do_scroll_vertical)
11694 (tui_disasm_window::location_matches_p): Update.
11695 (tui_disasm_window::display_start_addr): New method.
11696
11697 2020-02-22 Tom Tromey <tom@tromey.com>
11698
11699 * NEWS: Add entry for gdb.register_window_type.
11700 * tui/tui-layout.h (window_factory): New typedef.
11701 (tui_register_window): Declare.
11702 * tui/tui-layout.c (saved_tui_windows): New global.
11703 (tui_apply_current_layout): Use it.
11704 (tui_register_window): New function.
11705 * python/python.c (do_start_initialization): Call
11706 gdbpy_initialize_tui.
11707 (python_GdbMethods): Add "register_window_type" function.
11708 * python/python-internal.h (gdbpy_register_tui_window)
11709 (gdbpy_initialize_tui): Declare.
11710 * python/py-tui.c: New file.
11711 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11712
11713 2020-02-22 Tom Tromey <tom@tromey.com>
11714
11715 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11716
11717 2020-02-22 Tom Tromey <tom@tromey.com>
11718
11719 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11720 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11721 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11722 (tui_set_win_focus_to): Move from tui-win.c.
11723
11724 2020-02-22 Tom Tromey <tom@tromey.com>
11725
11726 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11727 functions.
11728 (known_window_types): New global.
11729 (tui_get_window_by_name): Reimplement.
11730 (initialize_known_windows): New function.
11731 (validate_window_name): Rewrite.
11732 (_initialize_tui_layout): Call initialize_known_windows.
11733
11734 2020-02-22 Tom Tromey <tom@tromey.com>
11735
11736 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11737 Remove constants.
11738 * tui/tui-winsource.h (struct tui_source_window_base)
11739 <tui_source_window_base>: Remove parameter.
11740 * tui/tui-winsource.c
11741 (tui_source_window_base::tui_source_window_base): Remove
11742 parameter.
11743 (tui_source_window_base::refill): Update.
11744 * tui/tui-stack.h (struct tui_locator_window)
11745 <tui_locator_window>: Update.
11746 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11747 Default the constructor.
11748 * tui/tui-regs.h (struct tui_data_item_window)
11749 <tui_data_item_window>: Default the constructor.
11750 (struct tui_data_window) <tui_data_window>: Likewise.
11751 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11752 Default the constructor.
11753 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11754 Default the constructor.
11755 <type>: Remove.
11756 (struct tui_win_info) <tui_win_info>: Default the constructor.
11757 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11758 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11759 Default the constructor.
11760
11761 2020-02-22 Tom Tromey <tom@tromey.com>
11762
11763 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11764 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11765 * tui/tui-win.c (tui_resize_all): Don't call
11766 tui_delete_invisible_windows.
11767 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11768 done.
11769 (tui_set_layout): Update.
11770 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11771 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11772 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11773
11774 2020-02-22 Tom Tromey <tom@tromey.com>
11775
11776 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11777 correctly.
11778
11779 2020-02-22 Tom Tromey <tom@tromey.com>
11780
11781 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11782
11783 2020-02-22 Tom Tromey <tom@tromey.com>
11784
11785 * tui/tui-winsource.h (struct tui_source_window_iterator)
11786 <inner_iterator>: New etytypedef.
11787 <tui_source_window_iterator>: Take "end" parameter.
11788 <tui_source_window_iterator>: Take iterator.
11789 <operator*, advance>: Update.
11790 <m_iter>: Change type.
11791 <m_end>: New field.
11792 (struct tui_source_windows) <begin, end>: Update.
11793 * tui/tui-layout.c (tui_windows): New global.
11794 (tui_apply_current_layout): Clear tui_windows.
11795 (tui_layout_window::apply): Update tui_windows.
11796 * tui/tui-data.h (tui_windows): Declare.
11797 (all_tui_windows): Now inline function.
11798 (class tui_window_iterator, struct all_tui_windows): Remove.
11799
11800 2020-02-22 Tom Tromey <tom@tromey.com>
11801
11802 PR tui/17850:
11803 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11804 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11805 "height" argument.
11806 (class tui_layout_window) <get_sizes>: Likewise.
11807 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11808 argument.
11809 <get_sizes>: Add "height" argument.
11810 <m_vertical>: New field.
11811 * tui/tui-layout.c (tui_layout_split::clone): Update.
11812 (tui_layout_split::get_sizes): Add "height" argument.
11813 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11814 (tui_new_layout_command): Parse "-horizontal".
11815 (_initialize_tui_layout): Update help string.
11816 (tui_layout_split::specification): Add "-horizontal" when needed.
11817 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11818 argument.
11819 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11820 New methods.
11821
11822 2020-02-22 Tom Tromey <tom@tromey.com>
11823
11824 * tui/tui-layout.h (enum tui_adjust_result): New.
11825 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11826 (class tui_layout_window) <adjust_size>: Return
11827 tui_adjust_result. Rewrite.
11828 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11829 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11830
11831 2020-02-22 Tom Tromey <tom@tromey.com>
11832
11833 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11834 parameter and return types.
11835 (class tui_layout_base) <specification>: Add "depth".
11836 (class tui_layout_window) <specification>: Add "depth".
11837 (class tui_layout_split) <specification>: Add "depth".
11838 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11839 and return types.
11840 (tui_new_layout_command): Parse sub-layouts.
11841 (_initialize_tui_layout): Update help string.
11842 (tui_layout_window::specification): Add "depth".
11843 (add_layout_command): Update.
11844
11845 2020-02-22 Tom Tromey <tom@tromey.com>
11846
11847 * NEWS: Add "tui new-layout" item.
11848 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11849 Add new-layout command to help text.
11850 (validate_window_name): New function.
11851 (tui_new_layout_command): New function.
11852 (_initialize_tui_layout): Register "new-layout".
11853 (tui_layout_window::specification): New method.
11854 (tui_layout_window::specification): New method.
11855 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11856 method.
11857 (class tui_layout_window) <specification>: New method.
11858 (class tui_layout_split) <specification>: New method.
11859
11860 2020-02-22 Tom Tromey <tom@tromey.com>
11861
11862 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11863 * tui/tui-win.c (window_name_completer): Update comment.
11864 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11865 Declare method.
11866 (class tui_layout_window) <replace_window>: Likewise.
11867 (class tui_layout_split) <replace_window>: Likewise.
11868 (tui_set_layout): Don't declare.
11869 (tui_set_initial_layout): Declare function.
11870 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11871 (asm_regs_layout): New globals.
11872 (tui_current_layout, show_layout): Remove.
11873 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11874 (find_layout, tui_apply_layout): New function.
11875 (layout_completer): Remove.
11876 (tui_next_layout): Reimplement.
11877 (tui_next_layout_command): New function.
11878 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11879 (tui_regs_layout): Reimplement.
11880 (tui_regs_layout_command): New function.
11881 (extract_display_start_addr): Rewrite.
11882 (next_layout, prev_layout): Remove.
11883 (tui_layout_window::replace_window): New method.
11884 (tui_layout_split::replace_window): New method.
11885 (destroy_layout): New function.
11886 (layout_list): New global.
11887 (add_layout_command): New function.
11888 (initialize_layouts): Update.
11889 (tui_layout_command): New function.
11890 (_initialize_tui_layout): Install "layout" commands.
11891 * tui/tui-data.h (enum tui_layout_type): Remove.
11892 (tui_current_layout): Don't declare.
11893
11894 2020-02-22 Tom Tromey <tom@tromey.com>
11895
11896 * tui/tui-regs.c (tui_reg_layout): Remove.
11897 (tui_reg_command): Use tui_regs_layout.
11898 * tui/tui-layout.h (tui_reg_command): Declare.
11899 * tui/tui-layout.c (tui_reg_command): New function.
11900
11901 2020-02-22 Tom Tromey <tom@tromey.com>
11902
11903 * tui/tui.c (tui_rl_delete_other_windows): Call
11904 tui_remove_some_windows.
11905 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11906 Declare method.
11907 (class tui_layout_window) <remove_windows>: New method.
11908 (class tui_layout_split) <remove_windows>: Declare.
11909 (tui_remove_some_windows): Declare.
11910 * tui/tui-layout.c (tui_remove_some_windows): New function.
11911 (tui_layout_split::remove_windows): New method.
11912
11913 2020-02-22 Tom Tromey <tom@tromey.com>
11914
11915 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11916 * tui/tui-layout.h (tui_next_layout): Declare.
11917 * tui/tui-layout.c (tui_next_layout): New function.
11918
11919 2020-02-22 Tom Tromey <tom@tromey.com>
11920
11921 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11922 correct coordinates.
11923
11924 2020-02-22 Tom Tromey <tom@tromey.com>
11925
11926 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11927 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11928 DATA_WIN case.
11929
11930 2020-02-22 Tom Tromey <tom@tromey.com>
11931
11932 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11933 TUI_DISASM_WIN, not tui_win_list.
11934
11935 2020-02-22 Tom Tromey <tom@tromey.com>
11936
11937 * valprint.c (generic_val_print_enum_1)
11938 (val_print_type_code_flags): Style member names.
11939 * rust-lang.c (val_print_struct, rust_print_enum)
11940 (rust_print_struct_def, rust_internal_print_type): Style member
11941 names.
11942 * p-valprint.c (pascal_object_print_value_fields): Style member
11943 names. Only call fprintf_symbol_filtered for static members.
11944 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11945 * f-valprint.c (f_val_print): Style member names.
11946 * f-typeprint.c (f_type_print_base): Style member names.
11947 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11948 call fprintf_symbol_filtered for static members.
11949 (cp_print_class_member): Style member names.
11950 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11951 member names.
11952 * ada-valprint.c (ada_print_scalar): Style enum names.
11953 (ada_val_print_enum): Likewise.
11954 * ada-typeprint.c (print_enum_type): Style enum names.
11955
11956 2020-02-21 Tom Tromey <tom@tromey.com>
11957
11958 * psympriv.h (struct partial_symtab): Update comment.
11959
11960 2020-02-21 Tom Tromey <tromey@adacore.com>
11961
11962 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11963 type is CORE_ADDR.
11964
11965 2020-02-21 Tom de Vries <tdevries@suse.de>
11966
11967 PR gdb/25534
11968 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11969 if dependencies[i]->user != NULL.
11970
11971 2020-02-21 Ali Tamur <tamur@google.com>
11972
11973 * dwarf2/read.c (dwarf2_name): Add null check.
11974
11975 2020-02-20 Tom Tromey <tom@tromey.com>
11976
11977 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11978 ">=", in binary search.
11979 (dwarf2_find_containing_comp_unit): New overload.
11980 (run_test): New self-test.
11981 (_initialize_dwarf2_read): Register new test.
11982
11983 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11984
11985 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11986 * riscv-tdep.h: Likewise.
11987 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11988 rv32-only CSR.
11989 * features/riscv/64bit-csr.xml: Regenerated.
11990
11991 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11992 Tom Tromey <tom@tromey.com>
11993
11994 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11995 of 'fputc_unfiltered'.
11996 (putchar_unfiltered): Call 'fputc_unfiltered'.
11997 (fputc_unfiltered): Call 'fputs_unfiltered'.
11998
11999 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * config.in: Regenerate.
12002 * configure: Regenerate.
12003 * configure.ac: Add --with-python-libdir option.
12004 * main.c: Use WITH_PYTHON_LIBDIR.
12005
12006 2020-02-19 Tom Tromey <tom@tromey.com>
12007
12008 * symtab.c (general_symbol_info::compute_and_set_names): Use
12009 obstack_strndup. Simplify call to symbol_set_demangled_name.
12010
12011 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12012
12013 * dwarf2/read.c (allocate_signatured_type_table,
12014 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12015 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12016 Remove objfile parameter, update all callers.
12017
12018 2020-02-19 Doug Evans <dje@google.com>
12019
12020 PR rust/25535
12021 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12022 rust_enum_variant calculation.
12023
12024 2020-02-19 Tom Tromey <tromey@adacore.com>
12025
12026 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12027
12028 2020-02-19 Tom Tromey <tromey@adacore.com>
12029
12030 * ada-lang.c (cache_symbol): Use obstack_strdup.
12031
12032 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12033
12034 * configure: Regenerate.
12035
12036 2020-02-19 Tom Tromey <tromey@adacore.com>
12037
12038 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12039 NULL check.
12040
12041 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12042
12043 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12044
12045 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12046
12047 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12048 if GDBSERVER is not defined.
12049 (riscv_tdesc_cache): Likewise, also store const target_desc.
12050 (STATIC_IN_GDB): Define.
12051 (riscv_create_target_description): Update declaration with
12052 STATIC_IN_GDB.
12053 (riscv_lookup_target_description): New function, only define if
12054 GDBSERVER is not defined.
12055 * arch/riscv.h (riscv_create_target_description): Declare only
12056 when GDBSERVER is defined.
12057 (riscv_lookup_target_description): New declaration when GDBSERVER
12058 is not defined.
12059 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12060 (riscv_linux_read_features): ...this, and return
12061 riscv_gdbarch_features instead of target_desc.
12062 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12063 (riscv_linux_read_description): Rename to...
12064 (riscv_linux_read_features): ...this.
12065 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12066 Update to use riscv_gdbarch_features and
12067 riscv_lookup_target_description.
12068 * riscv-tdep.c (riscv_find_default_target_description): Use
12069 riscv_lookup_target_description instead of
12070 riscv_create_target_description.
12071
12072 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12073
12074 * valprint.c (generic_val_print_enum_1): When printing a flag
12075 enum with value 0 and there is no enumerator with value 0, print
12076 just "0" instead of "(unknown: 0x0)".
12077
12078 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12079
12080 * valprint.c (generic_val_print_enum_1): Print unknown part of
12081 flag enum in hex.
12082
12083 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12084
12085 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12086 flag enums to contain duplicate enumerators.
12087 * valprint.c (generic_val_print_enum_1): Update comment.
12088
12089 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12090
12091 * dwarf2/read.c: Include "count-one-bits.h".
12092 (update_enumeration_type_from_children): If an enumerator has
12093 multiple bits set, don't treat the enumeration as a "flag enum".
12094 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12095 of flag enums have 0 or 1 bit set.
12096
12097 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12098
12099 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12100 conversion.
12101 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12102 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12103 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12104 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12105 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12106
12107 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12108
12109 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12110
12111 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12112
12113 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12114 displaced_step_closure_up.
12115 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12116 (struct displaced_step_closure_up):
12117 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12118 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12119 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12120 Likewise.
12121 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12122 * gdbarch.c, gdbarch.h: Re-generate.
12123 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12124 displaced_step_closure_up.
12125 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12126 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12127 * infrun.h (displaced_step_closure_up): New type alias.
12128 (struct displaced_step_inferior_state) <step_closure>: Change
12129 type to displaced_step_closure_up.
12130 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12131 displaced_step_closure_up.
12132 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12133
12134 2020-02-14 Tom Tromey <tom@tromey.com>
12135
12136 * minidebug.c (gnu_debug_key): New global.
12137 (find_separate_debug_file_in_section): Use it.
12138
12139 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12140
12141 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12142 std::unique_ptr.
12143 * gdbarch.c: Re-generate.
12144 * gdbarch.h: Re-generate.
12145 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12146 change.
12147 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12148 type to std::unique_ptr.
12149 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12150 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12151 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12152 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12153 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12154 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12155 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12156 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12157 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12158
12159 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12160
12161 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12162 std::unique_ptr.
12163 (displaced_step_clear): Rename to...
12164 (displaced_step_reset): ... this. Just call displaced->reset ().
12165 (displaced_step_clear_cleanup): Rename to...
12166 (displaced_step_reset_cleanup): ... this.
12167 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12168 (displaced_step_fixup): Likewise.
12169 (resume_1): Likewise.
12170 (handle_inferior_event): Restore child's memory before calling
12171 displaced_step_fixup on the parent.
12172 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12173 to std::unique_ptr.
12174 <step_closure>: Change type to std::unique_ptr.
12175
12176 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12177
12178 * arm-tdep.c: Include count-one-bits.h.
12179 (cleanup_block_store_pc): Use count_one_bits.
12180 (cleanup_block_load_pc): Use count_one_bits.
12181 (arm_copy_block_xfer): Use count_one_bits.
12182 (thumb2_copy_block_xfer): Use count_one_bits.
12183 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12184 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12185 (thumb_get_next_pcs_raw): Use count_one_bits.
12186 (arm_get_next_pcs_raw): Use count_one_bits_l.
12187 * arch/arm.c (bitcount): Remove.
12188 * arch/arm.h (bitcount): Remove.
12189
12190 2020-02-14 Tom Tromey <tromey@adacore.com>
12191
12192 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12193 Update.
12194 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12195 * dwarf2/loc.c (call_site_find_chain_1): Return
12196 unique_xmalloc_ptr.
12197 (call_site_find_chain): Likewise.
12198
12199 2020-02-14 Richard Biener <rguenther@suse.de>
12200
12201 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12202 on expression with division operators.
12203
12204 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12205
12206 * MAINTAINERS (Write After Approval): Adding myself.
12207
12208 2020-02-12 Tom Tromey <tom@tromey.com>
12209
12210 * event-loop.c (event_data, gdb_event, event_handler_func):
12211 Remove.
12212
12213 2020-02-12 Tom Tromey <tom@tromey.com>
12214
12215 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12216 (dwarf2_frame_objfile_data): Add comment.
12217 (find_comp_unit, set_comp_unit): New functions.
12218 (dwarf2_frame_find_fde): Use find_comp_unit.
12219 (dwarf2_build_frame_info): Use set_comp_unit.
12220
12221 2020-02-12 Tom Tromey <tom@tromey.com>
12222
12223 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12224 (comp_unit): Don't initialize objfile.
12225 (execute_cfa_program): Add text_offset parameter.
12226 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12227 (dwarf2_frame_cache): Update.
12228 (dwarf2_build_frame_info): Don't set "objfile" member.
12229
12230 2020-02-12 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12233 (decode_frame_entry): Likewise.
12234 (dwarf2_build_frame_info): Update.
12235
12236 2020-02-12 Tom Tromey <tom@tromey.com>
12237
12238 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12239 (decode_frame_entry_1): Use the comp_unit obstack.
12240
12241 2020-02-12 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2/frame.c (struct comp_unit): Add initializers and
12244 constructor.
12245 (dwarf2_frame_objfile_data): Store a comp_unit.
12246 (dwarf2_frame_find_fde): Update.
12247 (dwarf2_build_frame_info): Use "new".
12248
12249 2020-02-12 Tom Tromey <tom@tromey.com>
12250
12251 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12252 (dwarf2_fde_table): Typedef for std::vector.
12253 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12254 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12255 (decode_frame_entry): Update.
12256 (dwarf2_build_frame_info): Use "new".
12257
12258 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12259
12260 * arm-tdep.c (arm_gdbarch_init): Update.
12261 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12262 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12263 have_neon, is_m>: Change to bool.
12264
12265 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12266
12267 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12268
12269 2020-02-12 Tom Tromey <tom@tromey.com>
12270
12271 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12272
12273 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12274
12275 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12276 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12277
12278 2020-02-11 Tom Tromey <tom@tromey.com>
12279
12280 * psymtab.h: Update comment.
12281
12282 2020-02-11 Tom Tromey <tom@tromey.com>
12283
12284 * gdb_obstack.h (struct auto_obstack): Use
12285 DISABLE_COPY_AND_ASSIGN.
12286
12287 2020-02-11 Tom Tromey <tom@tromey.com>
12288
12289 * dwarf2/frame.h (struct objfile): Don't forward declare.
12290
12291 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12292
12293 * cris-tdep.c (cris_supply_gregset): Change signature to match
12294 what struct regset expects.
12295 (cris_regset): New struct.
12296 (fetch_core_registers): Remove.
12297 (cris_iterate_over_regset_sections): New function.
12298 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12299 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12300
12301 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12302
12303 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12304 registers.
12305
12306 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12307
12308 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12309
12310 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12311
12312 * configure: Re-generate.
12313
12314 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12315
12316 * configure: Re-generate.
12317
12318 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12319
12320 * acinclude: Update warning.m4 path.
12321 * warning.m4: Move to gdbsupport.
12322
12323 2020-02-11 Tom Tromey <tromey@adacore.com>
12324
12325 * remote.c (remote_console_output): Update.
12326 * printcmd.c (printf_command): Update.
12327 * event-loop.c (gdb_wait_for_event): Update.
12328 * linux-nat.c (sigchld_handler): Update.
12329 * remote-sim.c (gdb_os_write_stdout): Update.
12330 (gdb_os_flush_stdout): Update.
12331 (gdb_os_flush_stderr): Update.
12332 (gdb_os_write_stderr): Update.
12333 * exceptions.c (print_exception): Update.
12334 * remote-fileio.c (remote_fileio_func_read): Update.
12335 (remote_fileio_func_write): Update.
12336 * tui/tui.c (tui_enable): Update.
12337 * tui/tui-interp.c (tui_interp::init): Update.
12338 * utils.c (init_page_info): Update.
12339 (putchar_unfiltered, fputc_unfiltered): Update.
12340 (gdb_flush): Update.
12341 (emit_style_escape): Update.
12342 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12343 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12344 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12345 (stderr_file::write): Update.
12346 (stderr_file::puts): Update.
12347 * ui-file.h (ui_file_isatty, ui_file_write)
12348 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12349 (ui_file_puts): Don't declare.
12350
12351 2020-02-10 Tom de Vries <tdevries@suse.de>
12352
12353 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12354 sentinel to char *.
12355
12356 2020-02-09 Tom de Vries <tdevries@suse.de>
12357
12358 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12359 filename if it matches "<artificial>".
12360
12361 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12362
12363 * windows-tdep.c (struct enum_value_name): New struct.
12364 (create_enum): New function.
12365 (windows_get_siginfo_type): Create and use enum types.
12366
12367 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12368
12369 * NEWS: Mention $_siginfo support for Windows.
12370 * windows-nat.c (handle_exception): Set siginfo_er.
12371 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12372 (windows_xfer_siginfo): New function.
12373 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12374 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12375 (init_windows_gdbarch_data): New function.
12376 (get_windows_gdbarch_data): New function.
12377 (windows_get_siginfo_type): New function.
12378 (windows_init_abi): Register windows_get_siginfo_type.
12379 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12380
12381 2020-02-08 Tom Tromey <tom@tromey.com>
12382
12383 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12384 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12385 <keep>: Declare method.
12386 <m_keep>: Remove member.
12387 <~cutu_reader>: Remove.
12388 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12389 (cutu_reader::cutu_reader): Update.
12390 (cutu_reader::keep): Rename from ~cutu_reader.
12391 (process_psymtab_comp_unit, build_type_psymtabs_1)
12392 (process_skeletonless_type_unit, load_partial_comp_unit)
12393 (load_full_comp_unit, dwarf2_read_addr_index)
12394 (read_signatured_type): Update.
12395
12396 2020-02-08 Tom Tromey <tom@tromey.com>
12397
12398 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12399 "want_partial_unit" parameter.
12400 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12401 Inline check for DW_TAG_partial_unit.
12402 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12403
12404 2020-02-08 Tom Tromey <tom@tromey.com>
12405
12406 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12407 read.c.
12408 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12409 read.c.
12410
12411 2020-02-08 Tom Tromey <tom@tromey.com>
12412
12413 * dwarf2/read.c (read_address): Move to comp-unit.c.
12414 (dwarf2_rnglists_process, dwarf2_ranges_process)
12415 (read_attribute_value, dwarf_decode_lines_1)
12416 (var_decode_location, decode_locdesc): Update.
12417 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12418 read.c. Remove "cu" parameter.
12419 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12420 method.
12421
12422 2020-02-08 Tom Tromey <tom@tromey.com>
12423
12424 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12425 (read_indirect_line_string): Update.
12426 * dwarf2/comp-unit.c (read_offset): Remove.
12427 (read_comp_unit_head): Update.
12428 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12429 method.
12430 (read_offset): Don't declare.
12431
12432 2020-02-08 Tom Tromey <tom@tromey.com>
12433
12434 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12435 * dwarf2/read.c (struct comp_unit_head): Move to
12436 dwarf2/comp-unit.h.
12437 (enum class rcuh_kind): Move to comp-unit.h.
12438 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12439 (read_comp_unit_head, error_check_comp_unit_head)
12440 (read_and_check_comp_unit_head): Move to comp-unit.c.
12441 (read_offset, dwarf_unit_type_name): Likewise.
12442 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12443 (cutu_reader::cutu_reader, read_call_site_scope)
12444 (find_partial_die, follow_die_offset): Update.
12445 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12446
12447 2020-02-08 Tom Tromey <tom@tromey.com>
12448
12449 * dwarf2/read.c (read_offset_1): Move to leb.c.
12450 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12451 (dwarf_decode_macro_bytes): Update.
12452 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12453 * dwarf2/leb.h (read_offset): Declare.
12454
12455 2020-02-08 Tom Tromey <tom@tromey.com>
12456
12457 * dwarf2/read.c (dwarf2_section_size): Remove.
12458 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12459 Update.
12460 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12461
12462 2020-02-08 Tom Tromey <tom@tromey.com>
12463
12464 * dwarf2/read.c (read_initial_length): Move to leb.c.
12465 * dwarf2/leb.h (read_initial_length): Declare.
12466 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12467 handle_nonstd parameter.
12468 * dwarf2/frame.c (read_initial_length): Remove.
12469 (decode_frame_entry_1): Update.
12470
12471 2020-02-08 Tom Tromey <tom@tromey.com>
12472
12473 * dwarf2/loc.c (dwarf2_find_location_expression)
12474 (dwarf_evaluate_loc_desc::get_tls_address)
12475 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12476 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12477 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12478 (dwarf2_compile_property_to_c)
12479 (dwarf2_loc_desc_get_symbol_read_needs)
12480 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12481 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12482 (loclist_describe_location, loclist_tracepoint_var_ref)
12483 (loclist_generate_c_location): Update.
12484 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12485 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12486 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12487 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12488 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12489 (dwarf2_per_cu_data::addr_size)
12490 (dwarf2_per_cu_data::ref_addr_size)
12491 (dwarf2_per_cu_data::text_offset)
12492 (dwarf2_per_cu_data::addr_type): Now methods.
12493 (per_cu_header_read_in): Make per_cu "const".
12494 (dwarf2_version): Remove.
12495 (dwarf2_per_cu_data::int_type): Now a method.
12496 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12497 (set_die_type, read_array_type, read_subrange_index_type)
12498 (read_tag_string_type, read_subrange_type): Update.
12499 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12500 offset_size, ref_addr_size, text_offset, addr_type, version,
12501 objfile, int_type, addr_sized_int_type>: Declare methods.
12502
12503 2020-02-08 Tom Tromey <tom@tromey.com>
12504
12505 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12506 Move earlier.
12507
12508 2020-02-08 Tom Tromey <tom@tromey.com>
12509
12510 * dwarf2/read.h (dwarf_line_debug): Declare.
12511 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12512 * dwarf2/read.c: Move line_header code to new files.
12513 (dwarf_line_debug): No longer static.
12514 * dwarf2/line-header.c: New file.
12515 * dwarf2/line-header.h: New file.
12516
12517 2020-02-08 Tom Tromey <tom@tromey.com>
12518
12519 * dwarf2/read.c (struct line_header) <file_full_name,
12520 file_file_name>: Return unique_xmalloc_ptr.
12521 (line_header::file_file_name): Update.
12522 (line_header::file_full_name): Update.
12523 (dw2_get_file_names_reader): Update.
12524 (macro_start_file): Update.
12525
12526 2020-02-08 Tom Tromey <tom@tromey.com>
12527
12528 * dwarf2/read.c (struct line_header) <file_full_name,
12529 file_file_name>: Declare methods.
12530 (dw2_get_file_names_reader): Update.
12531 (file_file_name): Now a method.
12532 (file_full_name): Likewise.
12533 (macro_start_file): Update.
12534
12535 2020-02-08 Tom Tromey <tom@tromey.com>
12536
12537 * dwarf2/read.c (dwarf_always_disassemble)
12538 (show_dwarf_always_disassemble): Move to loc.c.
12539 (_initialize_dwarf2_read): Move "always-disassemble" registration
12540 to loc.c.
12541 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12542 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12543 static.
12544 (show_dwarf_always_disassemble): Move from read.c.
12545 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12546
12547 2020-02-08 Tom Tromey <tom@tromey.com>
12548
12549 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12550 (create_quick_file_names_table): Return htab_up.
12551 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12552 Update.
12553 * dwarf2/read.h (struct dwarf2_per_objfile)
12554 <quick_file_names_table>: Now htab_up.
12555
12556 2020-02-08 Tom Tromey <tom@tromey.com>
12557
12558 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12559
12560 2020-02-08 Tom Tromey <tom@tromey.com>
12561
12562 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12563 Rewrite.
12564 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12565 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12566 (abbrev_table::abbrev_table): No longer inline.
12567 (ABBREV_HASH_SIZE): Remove.
12568 (abbrev_table::m_abbrevs): Now an htab_up.
12569
12570 2020-02-08 Tom Tromey <tom@tromey.com>
12571
12572 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12573 (cutu_reader): Update.
12574 (build_type_psymtabs_1): Update.
12575 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12576 (abbrev_table::alloc_abbrev): Update.
12577 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12578 (abbrev_table::read): New static method, renamed from
12579 abbrev_table_read_table.
12580 (abbrev_table::alloc_abbrev)
12581 (abbrev_table::add_abbrev): Now private.
12582 (abbrev_table::abbrev_table): Now private.
12583 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12584
12585 2020-02-08 Tom Tromey <tom@tromey.com>
12586
12587 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12588 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12589 htab_up.
12590
12591 2020-02-08 Tom Tromey <tom@tromey.com>
12592
12593 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12594 htab_up.
12595 (lookup_dwo_unit_in_dwp): Update.
12596 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12597 on obstack.
12598
12599 2020-02-08 Tom Tromey <tom@tromey.com>
12600
12601 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12602 obstack.
12603
12604 2020-02-08 Tom Tromey <tom@tromey.com>
12605
12606 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12607 line_header_hash.
12608 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12609 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12610 Change type to htab_up.
12611
12612 2020-02-08 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12615 htab_up. Don't allocate on obstack.
12616 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12617 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12618 Change type to htab_up.
12619
12620 2020-02-08 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12623 Change type to htab_up.
12624 * dwarf2/read.c (create_signatured_type_table_from_index)
12625 (create_signatured_type_table_from_debug_names)
12626 (create_all_type_units, add_type_unit)
12627 (lookup_dwo_signatured_type, lookup_signatured_type)
12628 (process_skeletonless_type_unit): Update.
12629 (create_debug_type_hash_table, create_debug_types_hash_table):
12630 Change type of types_htab.
12631 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12632 htab_up. Don't allocate on obstack.
12633 (create_cus_hash_table): Change type of cus_htab parameter.
12634 (struct dwo_file) <cus, tus>: Now htab_up.
12635 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12636 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12637 (queue_and_load_all_dwo_tus): Update.
12638 * dwarf2/index-write.c (write_gdbindex): Update.
12639 (write_debug_names): Update.
12640
12641 2020-02-08 Tom Tromey <tom@tromey.com>
12642
12643 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12644 dwarf2/read.c. Remove "next" member. Add constructor ntad
12645 destructor.
12646 (struct dwarf2_per_objfile) <queue>: New member.
12647 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12648 dwarf2/read.h.
12649 (dwarf2_queue, dwarf2_queue_tail): Remove.
12650 (class dwarf2_queue_guard): Add parameter to constructor. Use
12651 DISABLE_COPY_AND_ASSIGN.
12652 <m_per_objfile>: New member.
12653 <~dwarf2_queue_guard>: Rewrite.
12654 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12655 Update.
12656 (~dwarf2_queue_item): New.
12657
12658 2020-02-08 Tom Tromey <tom@tromey.com>
12659
12660 * dwarf2/read.c (struct die_info) <has_children>: New member.
12661 (dw2_get_file_names_reader): Remove has_children.
12662 (dw2_get_file_names): Update.
12663 (read_cutu_die_from_dwo): Remove has_children.
12664 (cutu_reader::init_tu_and_read_dwo_dies)
12665 (cutu_reader::cutu_reader): Update.
12666 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12667 Remove has_children.
12668 (build_type_psymtabs_1, process_skeletonless_type_unit)
12669 (load_partial_comp_unit, load_full_comp_unit): Update.
12670 (create_dwo_cu_reader): Remove has_children.
12671 (create_cus_hash_table, read_die_and_children): Update.
12672 (read_full_die_1,read_full_die): Remove has_children.
12673 (read_signatured_type): Update.
12674 (class cutu_reader) <has_children>: Remove.
12675
12676 2020-02-08 Tom Tromey <tom@tromey.com>
12677
12678 * dwarf2/expr.c: Rename from dwarf2expr.c.
12679 * dwarf2/expr.h: Rename from dwarf2expr.h.
12680 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12681 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12682 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12683 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12684 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12685 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12686 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12687 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12688 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12689 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12690 * dwarf2/loc.c: Rename from dwarf2loc.c.
12691 * dwarf2/loc.h: Rename from dwarf2loc.h.
12692 * dwarf2/read.c: Rename from dwarf2read.c.
12693 * dwarf2/read.h: Rename from dwarf2read.h.
12694 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12695 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12696 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12697 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12698 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12699 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12700 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12701 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12702 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12703 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12704 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12705 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12706 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12707 Update.
12708 * Makefile.in (COMMON_SFILES): Update.
12709 (HFILES_NO_SRCDIR): Update.
12710
12711 2020-02-08 Tom Tromey <tom@tromey.com>
12712
12713 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12714 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12715
12716 2020-02-08 Tom Tromey <tom@tromey.com>
12717
12718 * dwarf2read.h (struct die_info): Don't declare.
12719
12720 2020-02-08 Tom Tromey <tom@tromey.com>
12721
12722 * dwarf2read.h (die_info_ptr): Remove typedef.
12723
12724 2020-02-08 Tom Tromey <tom@tromey.com>
12725
12726 * dwarf2read.c (read_call_site_scope)
12727 (handle_data_member_location, dwarf2_add_member_fn)
12728 (mark_common_block_symbol_computed, read_common_block)
12729 (attr_to_dynamic_prop, partial_die_info::read)
12730 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12731 (dwarf2_symbol_mark_computed, set_die_type): Update.
12732 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12733 method.
12734 (attr_form_is_block): Don't declare.
12735 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12736
12737 2020-02-08 Tom Tromey <tom@tromey.com>
12738
12739 * dwarf2read.c (dwarf2_find_base_address, )
12740 (read_call_site_scope, rust_containing_type)
12741 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12742 (handle_data_member_location, dwarf2_add_member_fn)
12743 (get_alignment, read_structure_type, process_structure_scope)
12744 (mark_common_block_symbol_computed, read_common_block)
12745 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12746 (partial_die_info::read, read_attribute_value, new_symbol)
12747 (lookup_die_type, dwarf2_get_ref_die_offset)
12748 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12749 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12750 (dwarf2_symbol_mark_computed): Update.
12751 * dwarf2/attribute.h (struct attribute) <value_as_address,
12752 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12753 methods.
12754 (value_as_address, attr_form_is_section_offset)
12755 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12756 * dwarf2/attribute.c (attribute::value_as_address)
12757 (attribute::form_is_section_offset, attribute::form_is_constant)
12758 (attribute::form_is_ref): Now methods.
12759
12760 2020-02-08 Tom Tromey <tom@tromey.com>
12761
12762 * dwarf2read.c (struct attribute, DW_STRING)
12763 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12764 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12765 (attr_form_is_block, attr_form_is_section_offset)
12766 (attr_form_is_constant, attr_form_is_ref): Move.
12767 * dwarf2/attribute.h: New file.
12768 * dwarf2/attribute.c: New file, from dwarf2read.c.
12769 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12770
12771 2020-02-08 Tom Tromey <tom@tromey.com>
12772
12773 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12774 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12775 Move.
12776 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12777 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12778 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12779 abbrev.c.
12780 * dwarf2/abbrev.h: New file.
12781 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12782 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12783
12784 2020-02-08 Tom Tromey <tom@tromey.com>
12785
12786 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12787 (dwarf2_section_size, dwarf2_get_section_info)
12788 (create_signatured_type_table_from_debug_names)
12789 (create_addrmap_from_aranges, read_debug_names_from_section)
12790 (get_gdb_index_contents_from_section, read_comp_unit_head)
12791 (error_check_comp_unit_head, read_abbrev_offset)
12792 (create_debug_type_hash_table, init_cu_die_reader)
12793 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12794 (read_comp_units_from_section, create_cus_hash_table)
12795 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12796 (create_dwp_v2_section, dwarf2_rnglists_process)
12797 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12798 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12799 (read_indirect_string_from_dwz, read_addr_index_1)
12800 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12801 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12802 (fill_in_loclist_baton): Update.
12803 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12804 get_containing_section, get_bfd_owner, get_bfd_section,
12805 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12806 (dwarf2_read_section, get_section_name, get_section_file_name)
12807 (get_containing_section, get_section_bfd_owner)
12808 (get_section_bfd_section, get_section_name, get_section_file_name)
12809 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12810 declare.
12811 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12812 (dwarf2_section_info::get_bfd_owner)
12813 (dwarf2_section_info::get_bfd_section)
12814 (dwarf2_section_info::get_name)
12815 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12816 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12817 (dwarf2_section_info::read): Now methods.
12818 * dwarf-index-write.c (class debug_names): Update.
12819
12820 2020-02-08 Tom Tromey <tom@tromey.com>
12821
12822 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12823 Move to dwarf2/section.h.
12824 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12825 (get_section_bfd_section, get_section_name)
12826 (get_section_file_name, get_section_id, get_section_flags)
12827 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12828 dwarf2/section.c.
12829 * dwarf2/section.h: New file.
12830 * dwarf2/section.c: New file, from dwarf2read.c.
12831 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12832
12833 2020-02-08 Tom Tromey <tom@tromey.com>
12834
12835 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12836 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12837 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12838 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12839 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12840 * dwarf2/leb.h: New file, from dwarf2read.c.
12841 * dwarf2/leb.c: New file, from dwarf2read.c.
12842 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12843 Remove.
12844 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12845 (COMMON_SFILES): Add dwarf2/leb.c.
12846
12847 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12848
12849 GDB 9.1 released.
12850
12851 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12852
12853 PR gdb/25190:
12854 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12855 * gdb/remote.c (remote_console_output): Update.
12856 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12857 (ui_file_puts): ...this.
12858 * gdb/ui-file.h (ui_file_puts): Add declaration.
12859 * gdb/utils.c (emit_style_escape): Update.
12860 (flush_wrap_buffer): Update.
12861 (fputs_maybe_filtered): Update.
12862 (fputs_unfiltered): Add function.
12863
12864 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12865
12866 * gdb/event-loop.c (gdb_wait_for_event): Update.
12867 * gdb/printcmd.c (printf_command): Update.
12868 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12869 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12870 (gdb_os_flush_stderr): Update.
12871 * gdb/remote.c (remote_console_output): Update.
12872 * gdb/ui-file.c (gdb_flush): Rename to...
12873 (ui_file_flush): ...this.
12874 (stderr_file::write): Update.
12875 (stderr_file::puts): Update.
12876 * gdb/ui-file.h (gdb_flush): Rename to...
12877 (ui_file_flush): ...this.
12878 * gdb/utils.c (gdb_flush): Add function.
12879 * gdb/utils.h (gdb_flush): Add declaration.
12880
12881 2020-02-07 Tom Tromey <tromey@adacore.com>
12882
12883 PR breakpoints/24915:
12884 * source.c (find_and_open_source): Do not check basenames_may_differ.
12885
12886 2020-02-07 Tom Tromey <tom@tromey.com>
12887
12888 * README: Update gdbserver documentation.
12889 * gdbserver: Move to top level.
12890 * configure.tgt (build_gdbserver): Remove.
12891 * configure.ac: Remove --enable-gdbserver.
12892 * configure: Rebuild.
12893 * Makefile.in (distclean): Don't mention gdbserver.
12894
12895 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12896
12897 * source-cache.c (source_cache::ensure): Surround
12898 get_plain_source_lines with a try/catch.
12899 (source_cache::get_line_charpos): Get rid of try/catch
12900 and only check for the return value of "ensure".
12901 * tui/tui-source.c (tui_source_window::set_contents):
12902 Simplify "nlines" calculation.
12903
12904 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12905
12906 * MAINTAINERS (Write After Approval): Add myself.
12907
12908 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12909
12910 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12911 function call.
12912
12913 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12914
12915 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12916
12917 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12918
12919 * nat/riscv-linux-tdesc.h: New file.
12920 * nat/riscv-linux-tdesc.c: New file, taking code from...
12921 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12922 ... here.
12923 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12924 NATDEPFILES.
12925
12926 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12927
12928 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12929 we don't set the fake simulator ptid to the null_ptid.
12930
12931 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12932
12933 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12934 * gdbthread.h (class thread_info) <resumed>: Likewise.
12935 * infrun.c (resume_1): Likewise.
12936 (proceed): Likewise.
12937 (infrun_thread_stop_requested): Likewise.
12938 (stop_all_threads): Likewise.
12939 (handle_inferior_event): Likewise.
12940 (restart_threads): Likewise.
12941 (finish_step_over): Likewise.
12942 (keep_going_stepped_thread): Likewise.
12943 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12944 (linux_handle_extended_wait): Likewise.
12945 * record-btrace.c (get_thread_current_frame_id): Likewise.
12946 * record-full.c (record_full_wait_1): Likewise.
12947 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12948 * target.c (target_resume): Likewise.
12949 * thread.c (set_running_thread): Likewise.
12950
12951 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12952
12953 * f-valprint.c (f77_print_array_1): Changed datatype of index
12954 variable to LONGEST from int to enable it to contain bound
12955 values correctly.
12956
12957 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12958
12959 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12960 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12961 offsets according to FLEN determined.
12962 (riscv_linux_nat_target::read_description): Determine FLEN
12963 dynamically.
12964 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12965 according to FLEN determined.
12966 (riscv_linux_nat_target::store_registers): Likewise.
12967
12968 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12969
12970 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12971 when reg->group is empty and reggroup is not.
12972
12973 2020-01-31 Tom Tromey <tromey@adacore.com>
12974
12975 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12976 Call beneath target's mourn_inferior after unpushing.
12977
12978 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12979
12980 PR tui/9765
12981 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12982 have enough lines to fill the screen, still return the lowest
12983 address we found.
12984
12985 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12986
12987 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12988 '-', '<', and '>' commands.
12989
12990 2020-01-29 Pedro Alves <palves@redhat.com>
12991 Sergio Durigan Junior <sergiodj@redhat.com>
12992
12993 * infcmd.c (construct_inferior_arguments): Assert that
12994 'argc' is greater than 0.
12995
12996 2020-01-29 Luis Machado <luis.machado@linaro.org>
12997
12998 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12999 (BRK_INSN_MASK): Define to 0xd4200000.
13000 (aarch64_program_breakpoint_here_p): New function.
13001 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13002 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13003 breakpoint.c.
13004 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13005 breakpoint.h
13006 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13007 call gdbarch_program_breakpoint_here_p.
13008 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13009 default_program_breakpoint_here_p, changed return type to bool and
13010 simplified.
13011 * breakpoint.h (program_breakpoint_here): Moved prototype to
13012 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13013 return type to bool.
13014 * gdbarch.c: Regenerate.
13015 * gdbarch.h: Regenerate.
13016 * gdbarch.sh (program_breakpoint_here_p): New method.
13017 * infrun.c (handle_signal_stop): Call
13018 gdbarch_program_breakpoint_here_p.
13019
13020 2020-01-26 Tom Tromey <tom@tromey.com>
13021
13022 * ctfread.c (struct ctf_fp_info): Reindent.
13023 (_initialize_ctfread): Remove.
13024
13025 2020-01-26 Tom Tromey <tom@tromey.com>
13026
13027 * psymtab.c (partial_map_expand_apply)
13028 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13029 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13030 (psym_print_stats, psym_expand_symtabs_for_function)
13031 (psym_map_symbol_filenames, psym_map_matching_symbols)
13032 (psym_expand_symtabs_matching)
13033 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13034 (maintenance_check_psymtabs): Use new methods.
13035 * psympriv.h (struct partial_symtab) <readin_p,
13036 get_compunit_symtab>: New methods.
13037 <readin, compunit_symtab>: Remove members.
13038 (struct standard_psymtab): New.
13039 (struct legacy_psymtab): Derive from standard_psymtab.
13040 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13041 standard_psymtab.
13042 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13043
13044 2020-01-26 Tom Tromey <tom@tromey.com>
13045
13046 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13047 read_dependencies. Add assert.
13048 * psymtab.c (partial_symtab::read_dependencies): New method.
13049 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13050 method.
13051 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13052 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13053 read_dependencies.
13054 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13055 Add assert.
13056
13057 2020-01-26 Tom Tromey <tom@tromey.com>
13058
13059 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13060 Call expand_psymtab.
13061 (xcoff_read_symtab): Call expand_psymtab.
13062 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13063 legacy_expand_psymtab.
13064 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13065 method.
13066 (struct legacy_psymtab) <expand_psymtab>: Implement.
13067 <legacy_expand_psymtab>: New member.
13068 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13069 (parse_partial_symbols): Set legacy_expand_psymtab.
13070 (psymtab_to_symtab_1): Change argument order. Call
13071 expand_psymtab.
13072 (new_psymtab): Set legacy_expand_psymtab.
13073 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13074 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13075 expand_psymtab.
13076 (dwarf2_psymtab::expand_psymtab): Rename from
13077 psymtab_to_symtab_1. Call expand_psymtab.
13078 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13079 (dbx_end_psymtab): Likewise.
13080 (dbx_psymtab_to_symtab_1): Change argument order. Call
13081 expand_psymtab.
13082 (dbx_read_symtab): Call expand_psymtab.
13083 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13084 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13085 (ctf_psymtab::read_symtab): Call expand_psymtab.
13086
13087 2020-01-26 Tom Tromey <tom@tromey.com>
13088
13089 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13090 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13091 messages.
13092 * mdebugread.c (mdebug_read_symtab): Remove prints.
13093 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13094 assert.
13095 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13096
13097 2020-01-26 Tom Tromey <tom@tromey.com>
13098
13099 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13100 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13101 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13102 legacy_symtab.
13103 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13104 * psymtab.c (psymtab_to_symtab): Call method.
13105 (dump_psymtab): Update.
13106 * psympriv.h (struct partial_symtab): Add virtual destructor.
13107 <read_symtab>: New method.
13108 (struct legacy_symtab): New.
13109 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13110 (struct pst_map) <pst>: Now a legacy_psymtab.
13111 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13112 (new_psymtab): Use legacy_psymtab.
13113 * dwarf2read.h (struct dwarf2_psymtab): New.
13114 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13115 * dwarf2read.c (dwarf2_create_include_psymtab)
13116 (dwarf2_build_include_psymtabs, create_type_unit_group)
13117 (create_partial_symtab, process_psymtab_comp_unit_reader)
13118 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13119 (set_partial_user): Use dwarf2_psymtab.
13120 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13121 (psymtab_to_symtab_1, process_full_comp_unit)
13122 (process_full_type_unit, dwarf2_ranges_read)
13123 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13124 (dwarf_decode_lines): Use dwarf2_psymtab.
13125 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13126 (add_address_entry_worker, write_one_signatured_type)
13127 (recursively_count_psymbols, recursively_write_psymbols)
13128 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13129 (write_debug_names): Likewise.
13130 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13131 <pst>: Now a legacy_psymtab.
13132 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13133 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13134 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13135 * ctfread.c (struct ctf_psymtab): New.
13136 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13137 ctf_psymtab.
13138 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13139 (create_partial_symtab): Return a ctf_psymtab.
13140 (scan_partial_symbols): Update.
13141
13142 2020-01-26 Tom Tromey <tom@tromey.com>
13143
13144 * xcoffread.c (xcoff_start_psymtab): Use new.
13145 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13146 renamed from start_psymtab_common.
13147 * psympriv.h (struct partial_symtab): Add new constructor.
13148 (start_psymtab_common): Don't declare.
13149 * mdebugread.c (parse_partial_symbols): Use new.
13150 * dwarf2read.c (create_partial_symtab): Use new.
13151 * dbxread.c (start_psymtab): Use new.
13152 * ctfread.c (create_partial_symtab): Use new.
13153
13154 2020-01-26 Tom Tromey <tom@tromey.com>
13155
13156 * xcoffread.c (xcoff_end_psymtab): Use new.
13157 * psymtab.c (start_psymtab_common): Use new.
13158 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13159 Update.
13160 * psympriv.h (struct partial_symtab): Add parameters to
13161 constructor. Don't inline.
13162 (allocate_psymtab): Don't declare.
13163 * mdebugread.c (new_psymtab): Use new.
13164 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13165 * dbxread.c (dbx_end_psymtab): Use new.
13166
13167 2020-01-26 Tom Tromey <tom@tromey.com>
13168
13169 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13170 allocate_psymtab. Update documentation.
13171 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13172 allocate_psymtab. Do not use new.
13173 (allocate_psymtab): Use new. Update.
13174
13175 2020-01-26 Tom Tromey <tom@tromey.com>
13176
13177 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13178 * psymtab.c (psym_print_stats): Update.
13179 * psympriv.h (struct partial_symtab) <readin,
13180 psymtabs_addrmap_supported, anonymous>: Now bool.
13181 * mdebugread.c (psymtab_to_symtab_1): Update.
13182 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13183 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13184 (process_full_comp_unit, process_full_type_unit): Update.
13185 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13186 * ctfread.c (psymtab_to_symtab): Update.
13187
13188 2020-01-26 Tom Tromey <tom@tromey.com>
13189
13190 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13191 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13192 * psymtab.c (psymtab_storage): Delete psymtabs.
13193 (psymtab_storage::allocate_psymtab): Use new.
13194 (psymtab_storage::discard_psymtab): Use delete.
13195 * psympriv.h (struct partial_symtab): Add constructor and
13196 initializers.
13197
13198 2020-01-26 Tom Tromey <tom@tromey.com>
13199
13200 * machoread.c: Do not include psympriv.h.
13201
13202 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13203
13204 * NEWS: Mention the new option and the set/show commands.
13205
13206 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13207
13208 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13209 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13210 (validate_exec_file): New variables, enums, functions.
13211 (exec_file_locate_attach, print_section_info): Style the filenames.
13212 (_initialize_exec): Install show_exec_file_mismatch_command and
13213 set_exec_file_mismatch_command.
13214 * gdbcore.h (validate_exec_file): Declare.
13215 * infcmd.c (attach_command): Call validate_exec_file.
13216 * remote.c ( remote_target::remote_add_inferior): Likewise.
13217
13218 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13219
13220 * frame.c (find_frame_sal): Move call to get_next_frame into more
13221 inner scope.
13222 * inline-frame.c (inilne_state) <inline_state>: Update argument
13223 types.
13224 (inilne_state) <skipped_symbol>: Rename to...
13225 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13226 (skip_inline_frames): Build vector of skipped symbols and use this
13227 to reate the inline_state.
13228 (inline_skipped_symbol): Add a comment and some assertions, fetch
13229 skipped symbol from the list.
13230
13231 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13232
13233 * buildsym.c (lte_is_less_than): Delete.
13234 (buildsym_compunit::end_symtab_with_blockvector): Create local
13235 lambda function to sort line table entries, and use
13236 std::stable_sort instead of std::sort.
13237 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13238 markers when looking for a previous line.
13239
13240 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13241
13242 * dwarf2read.c (lnp_state_machine::record_line): Include
13243 end_sequence parameter in debug print out. Record the line if we
13244 are at an end_sequence marker even if it's not the start of a
13245 statement.
13246 * symmisc.c (maintenance_print_one_line_table): Print end of
13247 sequence markers with 'END' not '0'.
13248
13249 2020-01-24 Pedro Alves <palves@redhat.com>
13250
13251 PR gdb/25410
13252 * thread.c (scoped_restore_current_thread::restore): Use
13253 switch_to_inferior_no_thread.
13254 * exec.c: Include "progspace-and-thread.h".
13255 (add_target_sections, remove_target_sections):
13256 scoped_restore_current_pspace_and_thread instead of
13257 scoped_restore_current_thread.
13258 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13259 and aspace to the inferior before calling clone_program_space.
13260 Remove stale comment.
13261
13262 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13263
13264 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13265 (arm_netbsd_nat_target::fetch_registers): ...this.
13266 (arm_nbsd_nat_target::store_registers): Rename to...
13267 (arm_netbsd_nat_target::store_registers): ...this.
13268
13269 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13270
13271 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13272 register_t.
13273
13274 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13275
13276 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13277 Update comment.
13278 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13279 Likewise.
13280 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13281 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13282 the correct replacement (iterate_over_regset_sections).
13283 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13284 Update comment.
13285
13286 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13287
13288 PR gdb/23718
13289 * gdb/python/python.c (execute_gdb_command): Call
13290 async_enable_stdin in catch block.
13291
13292 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13293
13294 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13295 SWITCH_THRU_ALL_UIS.
13296
13297 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13298
13299 PR tui/9765
13300 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13301 comment, add extra parameter, and update to store previous symbol
13302 when appropriate.
13303 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13304 add extra parameter.
13305 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13306 remove unneeded parameter, add try/catch around gdb_print_insn,
13307 rewrite to add items to asm_lines vector.
13308 (tui_find_backward_disassembly_start_address): New function.
13309 (tui_find_disassembly_address): Updated throughout.
13310 (tui_disasm_window::set_contents): Update for changes to
13311 tui_disassemble.
13312 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13313 number of lines to scroll.
13314
13315 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13316
13317 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13318 (SECT_OFF_DATA): Likewise.
13319 (SECT_OFF_RODATA): Likewise.
13320 (SECT_OFF_TEXT): Likewise.
13321 (SECT_OFF_BSS): Likewise.
13322 (struct objfile) <text_section_offset, data_section_offset>: New
13323 methods.
13324 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13325 objfile::text_section_offset.
13326 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13327 * coffread.c (coff_symtab_read): Likewise.
13328 (enter_linenos): Likewise.
13329 (process_coff_symbol): Likewise.
13330 * ctfread.c (get_objfile_text_range): Likewise.
13331 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13332 Use objfile::data_section_offset.
13333 * dwarf2-frame.c (execute_cfa_program): Use
13334 objfile::text_section_offset.
13335 (dwarf2_frame_find_fde): Likewise.
13336 * dwarf2read.c (create_addrmap_from_index): Likewise.
13337 (create_addrmap_from_aranges): Likewise.
13338 (dw2_find_pc_sect_compunit_symtab): Likewise.
13339 (process_psymtab_comp_unit_reader): Likewise.
13340 (add_partial_symbol): Likewise.
13341 (add_partial_subprogram): Likewise.
13342 (process_full_comp_unit): Likewise.
13343 (read_file_scope): Likewise.
13344 (read_func_scope): Likewise.
13345 (read_lexical_block_scope): Likewise.
13346 (read_call_site_scope): Likewise.
13347 (dwarf2_rnglists_process): Likewise.
13348 (dwarf2_ranges_process): Likewise.
13349 (dwarf2_ranges_read): Likewise.
13350 (dwarf_decode_lines_1): Likewise.
13351 (new_symbol): Likewise.
13352 (dwarf2_fetch_die_loc_sect_off): Likewise.
13353 (dwarf2_per_cu_text_offset): Likewise.
13354 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13355 * hppa-tdep.c (read_unwind_info): Likewise.
13356 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13357 * psympriv.h (struct partial_symtab): Likewise.
13358 * psymtab.c (find_pc_sect_psymtab): Likewise.
13359 * solib-svr4.c (enable_break): Likewise.
13360 * stap-probe.c (relocate_address): Use
13361 objfile::data_section_offset.
13362 * xcoffread.c (enter_line_range): Use
13363 objfile::text_section_offset.
13364 (read_xcoff_symtab): Likewise.
13365
13366 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13367
13368 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13369 declaration to narrower scopes.
13370
13371 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13372
13373 * darwin-nat.h (struct darwin_exception_msg, enum
13374 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13375 Move up.
13376 (class darwin_nat_target) <wait_1, check_new_threads,
13377 decode_exception_message, decode_message, stop_inferior,
13378 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13379 * darwin-nat.c (darwin_check_new_threads): Rename to...
13380 (darwin_nat_target::check_new_threads): ... this.
13381 (darwin_suspend_inferior_it): Remove.
13382 (darwin_decode_exception_message): Rename to...
13383 (darwin_nat_target::decode_exception_message): ... this.
13384 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13385 (darwin_decode_message): Rename to...
13386 (darwin_nat_target::decode_message): ... this.
13387 (cancel_breakpoint): Rename to...
13388 (darwin_nat_target::cancel_breakpoint): ... this.
13389 (darwin_wait): Rename to...
13390 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13391 instead of iterate_over_inferiors.
13392 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13393 (darwin_stop_inferior): Rename to...
13394 (darwin_nat_target::stop_inferior): ... this.
13395 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13396 (darwin_init_thread_list): Rename to...
13397 (darwin_nat_target::init_thread_list): ... this.
13398 (darwin_ptrace_him): Rename to...
13399 (darwin_nat_target::ptrace_him): ... this.
13400 (darwin_nat_target::create_inferior): Pass lambda function to
13401 fork_inferior.
13402 (darwin_nat_target::detach): Call stop_inferior instead of
13403 darwin_stop_inferior.
13404 * fork-inferior.h (fork_inferior): Change init_trace_fun
13405 parameter to gdb::function_view.
13406 * fork-inferior.c (fork_inferior): Likewise.
13407
13408 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13409
13410 * i386-cygwin-tdep.c (core_process_module_section): Update.
13411 * windows-nat.c (struct lm_info_windows): Add text_offset.
13412 (windows_xfer_shared_libraries): Update.
13413 * windows-tdep.c (windows_xfer_shared_library):
13414 Add text_offset_cached argument.
13415 * windows-tdep.h (windows_xfer_shared_library): Update.
13416
13417 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13418
13419 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13420
13421 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13422
13423 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13424 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13425 replace with range-based for.
13426 (gdbsim_interrupt_inferior): Remove.
13427 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13428 with a range-based for. Inline code from
13429 gdbsim_interrupt_inferior.
13430
13431 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13432
13433 * infrun.c (proceed): Fix indentation.
13434
13435 2020-01-21 Tom Tromey <tromey@adacore.com>
13436
13437 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13438 * python/python.c (python_extension_ops): Update.
13439 (gdbpy_colorize): New function.
13440 * python/lib/gdb/__init__.py (colorize): New function.
13441 * extension.h (ext_lang_colorize): Declare.
13442 * extension.c (ext_lang_colorize): New function.
13443 * extension-priv.h (struct extension_language_ops) <colorize>: New
13444 member.
13445 * cli/cli-style.c (_initialize_cli_style): Update help text.
13446
13447 2020-01-21 Luis Machado <luis.machado@linaro.org>
13448
13449 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13450 <cond>: Change type to bool.
13451 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13452 (aarch64_displaced_step_cb): Likewise.
13453 (aarch64_displaced_step_tb): Likewise.
13454
13455 2020-01-21 Luis Machado <luis.machado@linaro.org>
13456
13457 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13458 output.
13459
13460 2020-01-21 Luis Machado <luis.machado@linaro.org>
13461
13462 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13463 <pc_adjust>: Adjust the documentation.
13464 (aarch64_displaced_step_fixup): Check if PC really moved before
13465 adjusting it.
13466
13467 2020-01-19 Tom Tromey <tom@tromey.com>
13468
13469 * disasm.c (~gdb_disassembler): New destructor.
13470 (gdb_buffered_insn_length): Call disassemble_free_target.
13471 * disasm.h (class gdb_disassembler): Declare destructor. Use
13472 DISABLE_COPY_AND_ASSIGN.
13473
13474 2020-01-19 Tom Tromey <tom@tromey.com>
13475
13476 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13477 (die_reader_func_ftype): Remove.
13478 (cutu_reader): New class.
13479 (dw2_get_file_names_reader): Remove "data" parameter.
13480 (dw2_get_file_names): Use cutu_reader.
13481 (create_debug_type_hash_table): Update.
13482 (read_cutu_die_from_dwo): Update comment.
13483 (lookup_dwo_unit): Add dwo_name parameter.
13484 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13485 die_reader_func_ftype and data parameters.
13486 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13487 Remove die_reader_func_ftype and data parameters.
13488 (~cutu_reader): New; from init_cutu_and_read_dies.
13489 (cutu_reader::cutu_reader): Rename from
13490 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13491 and data parameters.
13492 (init_cutu_and_read_dies_simple): Remove.
13493 (struct process_psymtab_comp_unit_data): Remove.
13494 (process_psymtab_comp_unit_reader): Remove data parameter; add
13495 want_partial_unit and pretend_language parameters.
13496 (process_psymtab_comp_unit): Use cutu_reader.
13497 (build_type_psymtabs_reader): Remove data parameter.
13498 (build_type_psymtabs_1): Use cutu_reader.
13499 (process_skeletonless_type_unit): Likewise.
13500 (load_partial_comp_unit_reader): Remove.
13501 (load_partial_comp_unit): Use cutu_reader.
13502 (load_full_comp_unit_reader): Remove.
13503 (load_full_comp_unit): Use cutu_reader.
13504 (struct create_dwo_cu_data): Remove.
13505 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13506 dwo_unit parameters.
13507 (create_cus_hash_table): Use cutu_reader.
13508 (struct dwarf2_read_addr_index_data): Remove.
13509 (dwarf2_read_addr_index_reader): Remove.
13510 (dwarf2_read_addr_index): Use cutu_reader.
13511 (read_signatured_type_reader): Remove.
13512 (read_signatured_type): Use cutu_reader.
13513
13514 2020-01-19 Tom Tromey <tom@tromey.com>
13515
13516 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13517 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13518 (tui_wrefresh): Declare.
13519 * tui/tui-wingeneral.c (suppress_output): New global.
13520 (tui_suppress_output, ~tui_suppress_output): New constructor and
13521 destructor.
13522 (tui_wrefresh): New function.
13523 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13524 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13525 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13526 method.
13527 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13528 tui_wrefresh.
13529 (tui_data_window::no_refresh): New method.
13530 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13531 (tui_reg_command): Use tui_suppress_output
13532 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13533 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13534 method.
13535 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13536
13537 2020-01-19 Tom Tromey <tom@tromey.com>
13538
13539 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13540 Handle case where symtab is null.
13541
13542 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13543
13544 * linux-fork.c (one_fork_p): Simplify.
13545
13546 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13547
13548 * top.c (struct qt_args): Remove.
13549 (kill_or_detach): Change return type to void, replace `void *`
13550 parameter with a proper one.
13551 (print_inferior_quit_action): Likewise.
13552 (quit_confirm): Use range-based for loop to iterate over inferiors.
13553 (quit_force): Likewise.
13554
13555 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13556
13557 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13558 `void *` parameter with proper parameters.
13559 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13560 (print_one_inferior): Change return type to void, replace `void *`
13561 parameter with proper parameters.
13562 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13563 inferiors.
13564 (get_other_inferior): Remove.
13565 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13566 inferiors.
13567
13568 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13569
13570 * mi/mi-interp.c (report_initial_inferior): Remove.
13571 (mi_interp::init): Use range-based for to iterate over inferiors.
13572
13573 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13574
13575 * python/py-inferior.c (build_inferior_list): Remove.
13576 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13577
13578 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13579
13580 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13581 (btrace_stitch_trace): Likewise.
13582 * charset.c (intermediate_encoding): Likewise (vaild).
13583 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13584 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13585 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13586
13587 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13588
13589 * windows-tdep.c (windows_get_tlb_type):
13590 Add rtl_user_process_parameters type.
13591
13592 2020-01-16 Pedro Alves <palves@redhat.com>
13593 Norbert Lange <nolange79@gmail.com>
13594
13595 PR build/24805
13596 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13597 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13598 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13599 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13600 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13601 (ps_plog): Redeclare exported functions with default visibility.
13602
13603 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13604
13605 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13606 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13607
13608 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13609
13610 * infcmd.c (post_create_inferior): Use get_thread_regcache
13611 instead of get_current_regcache.
13612
13613 2020-01-14 Tom Tromey <tom@tromey.com>
13614
13615 PR symtab/12535:
13616 * python/python.c (gdbpy_decode_line): Treat empty string the same
13617 as no argument.
13618
13619 2020-01-14 Tom Tromey <tom@tromey.com>
13620
13621 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13622
13623 2020-01-14 Tom Tromey <tom@tromey.com>
13624
13625 * nat/linux-btrace.c: Don't include <config.h>.
13626 * nat/linux-ptrace.c: Don't include <config.h>.
13627 * nat/x86-linux-dregs.c: Don't include <config.h>.
13628
13629 2020-01-14 Tom Tromey <tom@tromey.com>
13630
13631 * configure: Rebuild.
13632 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13633
13634 2020-01-14 Tom Tromey <tom@tromey.com>
13635
13636 * nat/x86-linux-dregs.c: Include configh.h.
13637 * nat/linux-ptrace.c: Include configh.h.
13638 * nat/linux-btrace.c: Include configh.h.
13639 * defs.h: Include config.h, bfd.h.
13640 * configure.ac: Don't source common.host.
13641 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13642 * configure: Rebuild.
13643 * acinclude.m4: Update path.
13644 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13645 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13646 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13647 (CLIBS): Add LIBSUPPORT.
13648 (CDEPS): Likewise.
13649 (COMMON_SFILES): Remove gdbsupport files.
13650 (HFILES_NO_SRCDIR): Likewise.
13651 (stamp-version): Update path to create-version.sh.
13652 (ALLDEPFILES): Remove gdbsupport files.
13653
13654 2020-01-14 Tom Tromey <tom@tromey.com>
13655
13656 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13657 USE_WIN32API when needed.
13658 * configure.ac (USE_WIN32API): Don't define.
13659 (WIN32LIBS): Use WIN32APILIBS.
13660 * configure: Rebuild.
13661
13662 2020-01-14 Tom Tromey <tom@tromey.com>
13663
13664 * configure: Rebuild.
13665 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13666
13667 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13668
13669 * skip.c (skip_function_command): Make skip w/o arguments use the
13670 name of the inlined function if pc is inside any inlined function.
13671
13672 2020-01-14 Luis Machado <luis.machado@linaro.org>
13673
13674 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13675 * infrun.c (resume_1): Likewise.
13676 (handle_inferior_event): Remove stale comment.
13677 * linux-nat.c (linux_nat_target::resume): Update comments.
13678 (save_stop_reason): Likewise.
13679 (linux_nat_filter_event): Likewise.
13680 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13681
13682 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13683
13684 * elfread.c (record_minimal_symbol): Set section index to 0 for
13685 non-allocatable sections.
13686
13687
13688 2020-01-13 Ali Tamur <tamur@google.com>
13689
13690 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13691 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13692 to gdb::optional. Update comments.
13693 (dwo_file): Update comments.
13694 (read_attribute): Update API to take an additional out parameter,
13695 need_reprocess. This is used to mark attributes that need other
13696 attributes (e.g. str_offsets_base) for correct computation which may not
13697 have been read yet.
13698 (read_attribute_reprocess): New function declaration.
13699 (read_addr_index): Likewise.
13700 (read_dwo_str_index): Likewise.
13701 (read_stub_str_index): Likewise.
13702 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13703 (lookup_addr_base): New function definition.
13704 (lookup_ranges_base): Likewise.
13705 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13706 lookup_ranges_base.
13707 (init_cutu_and_read_dies): Update comments.
13708 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13709 unit. This is used to inherit parent's str_offsets_base and addr_base.
13710 Update comments.
13711 (init_cutu_and_read_dies_simple): Reflect API changes.
13712 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13713 (create_cus_hash_table): Change API to take parent compile unit.
13714 Reflect API changes.
13715 (open_and_init_dwo_file): Reflect API changes.
13716 (dwarf2_get_pc_bounds): Update comments.
13717 (dwarf2_record_block_ranges): Likewise.
13718 (read_full_die_1): Change implementation to reprocess attributes that
13719 need str_offsets_base and addr_base.
13720 (partial_die_info::read): Likewise.
13721 (read_attribute_reprocess): New function definition.
13722 (read_attribute_value): Change API to take an additional out parameter,
13723 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13724 when a non-dwo compile unit has index based attributes.
13725 (read_attribute): Reflect API changes.
13726 (read_addr_index_1): Reflect API changes. Update comments.
13727 (dwarf2_read_addr_index_data): Reflect API changes.
13728 (dwarf2_read_addr_index): Likewise.
13729 (read_str_index): Change API and implementation. This becomes a helper
13730 to be used by the new string index related methods. Update error
13731 message and comments.
13732 (read_dwo_str_index): New function definition.
13733 (read_stub_str_index): Likewise.
13734 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13735 * symfile.h (dwarf2_debug_sections): Likewise.
13736 * xcoffread.c (dwarf2_debug_sections): Likewise.
13737
13738 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13739
13740 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13741 core_reg_sect type to gdb_byte *.
13742 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13743 * cris-tdep.c (fetch_core_registers): Likewise.
13744 * corelow.c (core_target::get_core_register_section): Change
13745 type of `contents` to gdb::byte_vector.
13746
13747 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13748
13749 * tui/tui-wingeneral.c (box_win): Position the title in the center
13750 of the border.
13751
13752 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13753
13754 * corelow.c (core_target::get_core_register_section): Use
13755 std::vector instead of alloca.
13756
13757 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13758
13759 * warning.m4: Add -Wmissing-declarations to build_warnings.
13760 * configure: Re-generate.
13761
13762 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13763
13764 * python/python.c (init__gdb_module): Add declaration.
13765
13766 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13767
13768 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13769 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13770 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13771 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13772 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13773 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13774 * ada-exp.y (_initialize_ada_exp): Add declaration.
13775 * ada-lang.c (_initialize_ada_language): Add declaration.
13776 * ada-tasks.c (_initialize_tasks): Add declaration.
13777 * agent.c (_initialize_agent): Add declaration.
13778 * aix-thread.c (_initialize_aix_thread): Add declaration.
13779 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13780 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13781 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13782 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13783 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13784 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13785 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13786 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13787 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13788 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13789 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13790 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13791 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13792 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13793 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13794 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13795 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13796 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13797 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13798 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13799 * annotate.c (_initialize_annotate): Add declaration.
13800 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13801 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13802 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13803 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13804 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13805 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13806 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13807 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13808 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13809 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13810 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13811 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13812 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13813 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13814 * auto-load.c (_initialize_auto_load): Add declaration.
13815 * auxv.c (_initialize_auxv): Add declaration.
13816 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13817 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13818 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13819 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13820 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13821 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13822 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13823 * breakpoint.c (_initialize_breakpoint): Add declaration.
13824 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13825 * btrace.c (_initialize_btrace): Add declaration.
13826 * charset.c (_initialize_charset): Add declaration.
13827 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13828 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13829 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13830 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13831 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13832 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13833 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13834 * coffread.c (_initialize_coffread): Add declaration.
13835 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13836 * compile/compile.c (_initialize_compile): Add declaration.
13837 * complaints.c (_initialize_complaints): Add declaration.
13838 * completer.c (_initialize_completer): Add declaration.
13839 * copying.c (_initialize_copying): Add declaration.
13840 * corefile.c (_initialize_core): Add declaration.
13841 * corelow.c (_initialize_corelow): Add declaration.
13842 * cp-abi.c (_initialize_cp_abi): Add declaration.
13843 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13844 * cp-support.c (_initialize_cp_support): Add declaration.
13845 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13846 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13847 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13848 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13849 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13850 * ctfread.c (_initialize_ctfread): Add declaration.
13851 * d-lang.c (_initialize_d_language): Add declaration.
13852 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13853 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13854 * dbxread.c (_initialize_dbxread): Add declaration.
13855 * dcache.c (_initialize_dcache): Add declaration.
13856 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13857 * disasm.c (_initialize_disasm): Add declaration.
13858 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13859 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13860 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13861 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13862 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13863 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13864 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13865 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13866 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13867 * elfread.c (_initialize_elfread): Add declaration.
13868 * exec.c (_initialize_exec): Add declaration.
13869 * extension.c (_initialize_extension): Add declaration.
13870 * f-lang.c (_initialize_f_language): Add declaration.
13871 * f-valprint.c (_initialize_f_valprint): Add declaration.
13872 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13873 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13874 * filesystem.c (_initialize_filesystem): Add declaration.
13875 * findcmd.c (_initialize_mem_search): Add declaration.
13876 * findvar.c (_initialize_findvar): Add declaration.
13877 * fork-child.c (_initialize_fork_child): Add declaration.
13878 * frame-base.c (_initialize_frame_base): Add declaration.
13879 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13880 * frame.c (_initialize_frame): Add declaration.
13881 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13882 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13883 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13884 * gcore.c (_initialize_gcore): Add declaration.
13885 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13886 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13887 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13888 * gdbarch.c (_initialize_gdbarch): Add declaration.
13889 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13890 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13891 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13892 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13893 * go-lang.c (_initialize_go_language): Add declaration.
13894 * go32-nat.c (_initialize_go32_nat): Add declaration.
13895 * guile/guile.c (_initialize_guile): Add declaration.
13896 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13897 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13898 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13899 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13900 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13901 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13902 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13903 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13904 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13905 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13906 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13907 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13908 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13909 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13910 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13911 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13912 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13913 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13914 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13915 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13916 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13917 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13918 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13919 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13920 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13921 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13922 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13923 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13924 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13925 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13926 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13927 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13928 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13929 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13930 * infcall.c (_initialize_infcall): Add declaration.
13931 * infcmd.c (_initialize_infcmd): Add declaration.
13932 * inflow.c (_initialize_inflow): Add declaration.
13933 * infrun.c (_initialize_infrun): Add declaration.
13934 * interps.c (_initialize_interpreter): Add declaration.
13935 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13936 * jit.c (_initialize_jit): Add declaration.
13937 * language.c (_initialize_language): Add declaration.
13938 * linux-fork.c (_initialize_linux_fork): Add declaration.
13939 * linux-nat.c (_initialize_linux_nat): Add declaration.
13940 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13941 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13942 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13943 * m2-lang.c (_initialize_m2_language): Add declaration.
13944 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13945 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13946 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13947 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13948 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13949 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13950 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13951 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13952 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13953 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13954 * machoread.c (_initialize_machoread): Add declaration.
13955 * macrocmd.c (_initialize_macrocmd): Add declaration.
13956 * macroscope.c (_initialize_macroscope): Add declaration.
13957 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13958 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13959 * maint.c (_initialize_maint_cmds): Add declaration.
13960 * mdebugread.c (_initialize_mdebugread): Add declaration.
13961 * memattr.c (_initialize_mem): Add declaration.
13962 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13963 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13964 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13965 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13966 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13967 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13968 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13969 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13970 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13971 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13972 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13973 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13974 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13975 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13976 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13977 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13978 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13979 * mipsread.c (_initialize_mipsread): Add declaration.
13980 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13981 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13982 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13983 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13984 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13985 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13986 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13987 * nto-procfs.c (_initialize_procfs): Add declaration.
13988 * objc-lang.c (_initialize_objc_language): Add declaration.
13989 * observable.c (_initialize_observer): Add declaration.
13990 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13991 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13992 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13993 * osabi.c (_initialize_gdb_osabi): Add declaration.
13994 * osdata.c (_initialize_osdata): Add declaration.
13995 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13996 * parse.c (_initialize_parse): Add declaration.
13997 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13998 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13999 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14000 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14001 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14002 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14003 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14004 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14005 * printcmd.c (_initialize_printcmd): Add declaration.
14006 * probe.c (_initialize_probe): Add declaration.
14007 * proc-api.c (_initialize_proc_api): Add declaration.
14008 * proc-events.c (_initialize_proc_events): Add declaration.
14009 * proc-service.c (_initialize_proc_service): Add declaration.
14010 * procfs.c (_initialize_procfs): Add declaration.
14011 * producer.c (_initialize_producer): Add declaration.
14012 * psymtab.c (_initialize_psymtab): Add declaration.
14013 * python/python.c (_initialize_python): Add declaration.
14014 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14015 * record-btrace.c (_initialize_record_btrace): Add declaration.
14016 * record-full.c (_initialize_record_full): Add declaration.
14017 * record.c (_initialize_record): Add declaration.
14018 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14019 * regcache.c (_initialize_regcache): Add declaration.
14020 * reggroups.c (_initialize_reggroup): Add declaration.
14021 * remote-notif.c (_initialize_notif): Add declaration.
14022 * remote-sim.c (_initialize_remote_sim): Add declaration.
14023 * remote.c (_initialize_remote): Add declaration.
14024 * reverse.c (_initialize_reverse): Add declaration.
14025 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14026 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14027 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14028 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14029 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14030 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14031 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14032 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14033 Add declaration.
14034 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14035 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14036 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14037 * rust-exp.y (_initialize_rust_exp): Add declaration.
14038 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14039 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14040 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14041 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14042 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14043 * score-tdep.c (_initialize_score_tdep): Add declaration.
14044 * ser-go32.c (_initialize_ser_dos): Add declaration.
14045 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14046 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14047 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14048 * ser-uds.c (_initialize_ser_socket): Add declaration.
14049 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14050 * serial.c (_initialize_serial): Add declaration.
14051 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14052 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14053 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14054 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14055 * skip.c (_initialize_step_skip): Add declaration.
14056 * sol-thread.c (_initialize_sol_thread): Add declaration.
14057 * solib-aix.c (_initialize_solib_aix): Add declaration.
14058 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14059 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14060 * solib-frv.c (_initialize_frv_solib): Add declaration.
14061 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14062 * solib-target.c (_initialize_solib_target): Add declaration.
14063 * solib.c (_initialize_solib): Add declaration.
14064 * source-cache.c (_initialize_source_cache): Add declaration.
14065 * source.c (_initialize_source): Add declaration.
14066 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14067 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14068 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14069 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14070 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14071 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14072 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14073 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14074 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14075 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14076 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14077 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14078 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14079 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14080 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14081 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14082 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14083 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14084 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14085 * stabsread.c (_initialize_stabsread): Add declaration.
14086 * stack.c (_initialize_stack): Add declaration.
14087 * stap-probe.c (_initialize_stap_probe): Add declaration.
14088 * std-regs.c (_initialize_frame_reg): Add declaration.
14089 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14090 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14091 * symfile.c (_initialize_symfile): Add declaration.
14092 * symmisc.c (_initialize_symmisc): Add declaration.
14093 * symtab.c (_initialize_symtab): Add declaration.
14094 * target.c (_initialize_target): Add declaration.
14095 * target-connection.c (_initialize_target_connection): Add
14096 declaration.
14097 * target-dcache.c (_initialize_target_dcache): Add declaration.
14098 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14099 * thread.c (_initialize_thread): Add declaration.
14100 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14101 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14102 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14103 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14104 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14105 * tracectf.c (_initialize_ctf): Add declaration.
14106 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14107 * tracefile.c (_initialize_tracefile): Add declaration.
14108 * tracepoint.c (_initialize_tracepoint): Add declaration.
14109 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14110 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14111 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14112 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14113 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14114 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14115 * tui/tui.c (_initialize_tui): Add declaration.
14116 * typeprint.c (_initialize_typeprint): Add declaration.
14117 * ui-style.c (_initialize_ui_style): Add declaration.
14118 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14119 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14120 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14121 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14122 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14123 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14124 * unittests/filtered_iterator-selftests.c
14125 (_initialize_filtered_iterator_selftests): Add declaration.
14126 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14127 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14128 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14129 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14130 * unittests/main-thread-selftests.c
14131 (_initialize_main_thread_selftests): Add declaration.
14132 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14133 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14134 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14135 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14136 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14137 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14138 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14139 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14140 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14141 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14142 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14143 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14144 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14145 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14146 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14147 declaration.
14148 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14149 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14150 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14151 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14152 * user-regs.c (_initialize_user_regs): Add declaration.
14153 * utils.c (_initialize_utils): Add declaration.
14154 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14155 * valops.c (_initialize_valops): Add declaration.
14156 * valprint.c (_initialize_valprint): Add declaration.
14157 * value.c (_initialize_values): Add declaration.
14158 * varobj.c (_initialize_varobj): Add declaration.
14159 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14160 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14161 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14162 * windows-nat.c (_initialize_windows_nat): Add declaration.
14163 (_initialize_check_for_gdb_ini): Add declaration.
14164 (_initialize_loadable): Add declaration.
14165 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14166 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14167 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14168 * xcoffread.c (_initialize_xcoffread): Add declaration.
14169 * xml-support.c (_initialize_xml_support): Add declaration.
14170 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14171 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14172 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14173 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14174
14175 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14176
14177 * regformats/regdat.sh: Generate declaration for init function.
14178
14179 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14180
14181 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14182 up.
14183 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14184 close_one_inferior>: New methods.
14185 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14186 pass down target to find_inferior_pid.
14187 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14188 Pass down target to find_inferior_ptid.
14189 (gdbsim_target::create_inferior): Pass down target to
14190 add_thread_silent.
14191 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14192 target down to find_inferior_ptid and switch_to_thread.
14193 (gdbsim_target::close): Update to call close_one_inferior.
14194 (struct resume_data): Remove.
14195 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14196 directly, rather than through a void pointer.
14197 (gdbsim_target::resume): Update to call resume_one_inferior.
14198
14199 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14200
14201 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14202
14203 2020-01-12 Pedro Alves <palves@redhat.com>
14204
14205 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14206 directly for the current inferior instead of
14207 discard_all_inferiors.
14208 (discard_all_inferiors): Delete.
14209
14210 2020-01-11 Tom Tromey <tom@tromey.com>
14211
14212 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14213 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14214 deprecated_safe_get_selected_frame.
14215
14216 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14217
14218 * inferior.c (print_inferior): Switch inferior before printing it.
14219
14220 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14221 Pedro Alves <palves@redhat.com>
14222
14223 * progspace-and-thread.c (switch_to_program_space_and_thread):
14224 Assert there's an inferior for PSPACE. Use
14225 switch_to_inferior_no_thread to switch the inferior too.
14226 * progspace.c (program_space::~program_space): Call
14227 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14228 (program_space::free_all_objfiles): Don't call clear_symtab_users
14229 here.
14230 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14231
14232 2020-01-10 Pedro Alves <palves@redhat.com>
14233
14234 * NEWS: Mention multi-target debugging, "info connections", and
14235 "add-inferior -no-connection".
14236
14237 2020-01-10 Pedro Alves <palves@redhat.com>
14238
14239 * infrun.c: Include "target-connection.h".
14240 (check_multi_target_resumption): New.
14241 (proceed): Call it.
14242 * target-connection.c (make_target_connection_string): Make
14243 extern.
14244 * target-connection.h (make_target_connection_string): Declare.
14245
14246 2020-01-10 Pedro Alves <palves@redhat.com>
14247
14248 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14249 * inferior.c (uiout_field_connection): New function.
14250 (print_inferior): Add new "connection-id" column.
14251 (add_inferior_command): Show connection number/string of added
14252 inferior.
14253 * process-stratum-target.h
14254 (process_stratum_target::connection_string): New virtual method.
14255 (process_stratum_target::connection_number): New field.
14256 * remote.c (remote_target::connection_string): New override.
14257 * target-connection.c: New file.
14258 * target-connection.h: New file.
14259 * target.c (decref_target): Remove process_stratum targets from
14260 the connection list.
14261 (target_stack::push): Add process_stratum targets to the
14262 connection list.
14263
14264 2020-01-10 Pedro Alves <palves@redhat.com>
14265
14266 Revert:
14267 2016-04-12 Pedro Alves <palves@redhat.com>
14268 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14269 Remove references to name.
14270 * serial.h (struct serial) <name>: Delete.
14271
14272 2020-01-10 Pedro Alves <palves@redhat.com>
14273
14274 * gdbarch-selftests.c (register_to_value_test): Remove "target
14275 already pushed" check.
14276
14277 2020-01-10 Pedro Alves <palves@redhat.com>
14278 John Baldwin <jhb@FreeBSD.org>
14279
14280 * aarch64-linux-nat.c
14281 (aarch64_linux_nat_target::thread_architecture): Adjust.
14282 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14283 (task_command_1): Likewise.
14284 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14285 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14286 (aix_thread_target::store_registers)
14287 (aix_thread_target::thread_alive): Adjust.
14288 * amd64-fbsd-tdep.c: Include "inferior.h".
14289 (amd64fbsd_get_thread_local_address): Pass down target.
14290 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14291 thread's gdbarch instead of target_gdbarch.
14292 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14293 get_last_target_status.
14294 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14295 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14296 inferiors.
14297 (update_inserted_breakpoint_locations): Skip if inferiors with no
14298 execution.
14299 (update_global_location_list): When handling moribund locations,
14300 find representative inferior for location's pspace, and use thread
14301 count of its process_stratum target.
14302 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14303 * bsd-uthread.c (bsd_uthread_target::wait): Use
14304 as_process_stratum_target and adjust thread_change_ptid and
14305 add_thread calls.
14306 (bsd_uthread_target::update_thread_list): Use
14307 as_process_stratum_target and adjust find_thread_ptid,
14308 thread_change_ptid and add_thread calls.
14309 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14310 find_thread_ptid call.
14311 * corelow.c (add_to_thread_list): Adjust add_thread call.
14312 (core_target_open): Adjust add_thread_silent and thread_count
14313 calls.
14314 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14315 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14316 * event-top.c (async_disconnect): Pop targets from all inferiors.
14317 * exec.c (add_target_sections): Push exec target on all inferiors
14318 sharing the program space.
14319 (remove_target_sections): Remove the exec target from all
14320 inferiors sharing the program space.
14321 (exec_on_vfork): New.
14322 * exec.h (exec_on_vfork): Declare.
14323 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14324 Pass it down.
14325 (fbsd_nat_target::update_thread_list): Adjust.
14326 (fbsd_nat_target::resume): Adjust.
14327 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14328 down.
14329 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14330 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14331 get_thread_arch_regcache call.
14332 * fork-child.c (gdb_startup_inferior): Pass target down to
14333 startup_inferior and set_executing.
14334 * gdbthread.h (struct process_stratum_target): Forward declare.
14335 (add_thread, add_thread_silent, add_thread_with_info)
14336 (in_thread_list): Add process_stratum_target parameter.
14337 (find_thread_ptid(inferior*, ptid_t)): New overload.
14338 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14339 parameter.
14340 (all_threads()): Delete overload.
14341 (all_threads, all_non_exited_threads): Add process_stratum_target
14342 parameter.
14343 (all_threads_safe): Use brace initialization.
14344 (thread_count): Add process_stratum_target parameter.
14345 (set_resumed, set_running, set_stop_requested, set_executing)
14346 (threads_are_executing, finish_thread_state): Add
14347 process_stratum_target parameter.
14348 (switch_to_thread): Use is_current_thread.
14349 * i386-fbsd-tdep.c: Include "inferior.h".
14350 (i386fbsd_get_thread_local_address): Pass down target.
14351 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14352 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14353 have_inferiors check.
14354 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14355 (inf_ptrace_target::attach): Adjust.
14356 * infcall.c (run_inferior_call): Adjust.
14357 * infcmd.c (run_command_1): Pass target to
14358 scoped_finish_thread_state.
14359 (proceed_thread_callback): Skip inferiors with no execution.
14360 (continue_command): Rename 'all_threads' local to avoid hiding
14361 'all_threads' function. Adjust get_last_target_status call.
14362 (prepare_one_step): Adjust set_running call.
14363 (signal_command): Use user_visible_resume_target. Compare thread
14364 pointers instead of inferior_ptid.
14365 (info_program_command): Adjust to pass down target.
14366 (attach_command): Mark target's 'thread_executing' flag.
14367 (stop_current_target_threads_ns): New, factored out from ...
14368 (interrupt_target_1): ... this. Switch inferior before making
14369 target calls.
14370 * inferior-iter.h
14371 (struct all_inferiors_iterator, struct all_inferiors_range)
14372 (struct all_inferiors_safe_range)
14373 (struct all_non_exited_inferiors_range): Filter on
14374 process_stratum_target too. Remove explicit.
14375 * inferior.c (inferior::inferior): Push dummy target on target
14376 stack.
14377 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14378 Add process_stratum_target parameter, and pass it down.
14379 (have_live_inferiors): Adjust.
14380 (switch_to_inferior_and_push_target): New.
14381 (add_inferior_command, clone_inferior_command): Handle
14382 "-no-connection" parameter. Use
14383 switch_to_inferior_and_push_target.
14384 (_initialize_inferior): Mention "-no-connection" option in
14385 the help of "add-inferior" and "clone-inferior" commands.
14386 * inferior.h: Include "process-stratum-target.h".
14387 (interrupt_target_1): Use bool.
14388 (struct inferior) <push_target, unpush_target, target_is_pushed,
14389 find_target_beneath, top_target, process_target, target_at,
14390 m_stack>: New.
14391 (discard_all_inferiors): Delete.
14392 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14393 (all_inferiors, all_non_exited_inferiors): Add
14394 process_stratum_target parameter.
14395 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14396 (target_last_proc_target): New global.
14397 (follow_fork_inferior): Push target on new inferior. Pass target
14398 to add_thread_silent. Call exec_on_vfork. Handle target's
14399 reference count.
14400 (follow_fork): Adjust get_last_target_status call. Also consider
14401 target.
14402 (follow_exec): Push target on new inferior.
14403 (struct execution_control_state) <target>: New field.
14404 (user_visible_resume_target): New.
14405 (do_target_resume): Call target_async.
14406 (resume_1): Set target's threads_executing flag. Consider resume
14407 target.
14408 (commit_resume_all_targets): New.
14409 (proceed): Also consider resume target. Skip threads of inferiors
14410 with no execution. Commit resumtion in all targets.
14411 (start_remote): Pass current inferior to wait_for_inferior.
14412 (infrun_thread_stop_requested): Consider target as well. Pass
14413 thread_info pointer to clear_inline_frame_state instead of ptid.
14414 (infrun_thread_thread_exit): Consider target as well.
14415 (random_pending_event_thread): New inferior parameter. Use it.
14416 (do_target_wait): Rename to ...
14417 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14418 down.
14419 (threads_are_resumed_pending_p, do_target_wait): New.
14420 (prepare_for_detach): Adjust calls.
14421 (wait_for_inferior): New inferior parameter. Handle it. Use
14422 do_target_wait_1 instead of do_target_wait.
14423 (fetch_inferior_event): Adjust. Switch to representative
14424 inferior. Pass target down.
14425 (set_last_target_status): Add process_stratum_target parameter.
14426 Save target in global.
14427 (get_last_target_status): Add process_stratum_target parameter and
14428 handle it.
14429 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14430 (context_switch): Check inferior_ptid == null_ptid before calling
14431 inferior_thread().
14432 (get_inferior_stop_soon): Pass down target.
14433 (wait_one): Rename to ...
14434 (poll_one_curr_target): ... this.
14435 (struct wait_one_event): New.
14436 (wait_one): New.
14437 (stop_all_threads): Adjust.
14438 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14439 event's target.
14440 (switch_back_to_stepped_thread): Also consider target.
14441 (print_stop_event): Update.
14442 (normal_stop): Update. Also consider the resume target.
14443 * infrun.h (wait_for_inferior): Remove declaration.
14444 (user_visible_resume_target): New declaration.
14445 (get_last_target_status, set_last_target_status): New
14446 process_stratum_target parameter.
14447 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14448 process_stratum_target parameter, and use it.
14449 (clear_inline_frame_state (thread_info*)): New.
14450 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14451 process_stratum_target parameter.
14452 (clear_inline_frame_state (thread_info*)): Declare.
14453 * linux-fork.c (delete_checkpoint_command): Pass target down to
14454 find_thread_ptid.
14455 (checkpoint_command): Adjust.
14456 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14457 instead of just tweaking inferior_ptid.
14458 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14459 (exit_lwp): Pass target down to find_thread_ptid.
14460 (attach_proc_task_lwp_callback): Pass target down to
14461 add_thread/set_running/set_executing.
14462 (linux_nat_target::attach): Pass target down to
14463 thread_change_ptid.
14464 (get_detach_signal): Pass target down to find_thread_ptid.
14465 Consider last target status's target.
14466 (linux_resume_one_lwp_throw, resume_lwp)
14467 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14468 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14469 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14470 (linux_nat_target::async_wait_fd): New.
14471 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14472 target down.
14473 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14474 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14475 * linux-thread-db.c (struct thread_db_info::process_target): New
14476 field.
14477 (add_thread_db_info): Save target.
14478 (get_thread_db_info): New process_stratum_target parameter. Also
14479 match target.
14480 (delete_thread_db_info): New process_stratum_target parameter.
14481 Also match target.
14482 (thread_from_lwp): Adjust to pass down target.
14483 (thread_db_notice_clone): Pass down target.
14484 (check_thread_db_callback): Pass down target.
14485 (try_thread_db_load_1): Always push the thread_db target.
14486 (try_thread_db_load, record_thread): Pass target down.
14487 (thread_db_target::detach): Pass target down. Always unpush the
14488 thread_db target.
14489 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14490 target down. Always unpush the thread_db target.
14491 (find_new_threads_callback, thread_db_find_new_threads_2)
14492 (thread_db_target::update_thread_list): Pass target down.
14493 (thread_db_target::pid_to_str): Pass current inferior down.
14494 (thread_db_target::get_thread_local_address): Pass target down.
14495 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14496 target down.
14497 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14498 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14499 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14500 (procfs_init_inferior): Rename to ...
14501 (procfs_target::procfs_init_inferior): ... this and adjust.
14502 (procfs_target::create_inferior, procfs_notice_thread)
14503 (procfs_do_thread_registers): Adjust.
14504 * ppc-fbsd-tdep.c: Include "inferior.h".
14505 (ppcfbsd_get_thread_local_address): Pass down target.
14506 * proc-service.c (ps_xfer_memory): Switch current inferior and
14507 program space as well.
14508 (get_ps_regcache): Pass target down.
14509 * process-stratum-target.c
14510 (process_stratum_target::thread_address_space)
14511 (process_stratum_target::thread_architecture): Pass target down.
14512 * process-stratum-target.h
14513 (process_stratum_target::threads_executing): New field.
14514 (as_process_stratum_target): New.
14515 * ravenscar-thread.c
14516 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14517 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14518 down.
14519 * record-btrace.c (record_btrace_target::info_record): Adjust.
14520 (record_btrace_target::record_method)
14521 (record_btrace_target::record_is_replaying)
14522 (record_btrace_target::fetch_registers)
14523 (get_thread_current_frame_id, record_btrace_target::resume)
14524 (record_btrace_target::wait, record_btrace_target::stop): Pass
14525 target down.
14526 * record-full.c (record_full_wait_1): Switch to event thread.
14527 Pass target down.
14528 * regcache.c (regcache::regcache)
14529 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14530 process_stratum_target parameter and handle it.
14531 (current_thread_target): New global.
14532 (get_thread_regcache): Add process_stratum_target parameter and
14533 handle it. Switch inferior before calling target method.
14534 (get_thread_regcache): Pass target down.
14535 (get_thread_regcache_for_ptid): Pass target down.
14536 (registers_changed_ptid): Add process_stratum_target parameter and
14537 handle it.
14538 (registers_changed_thread, registers_changed): Pass target down.
14539 (test_get_thread_arch_aspace_regcache): New.
14540 (current_regcache_test): Define a couple local test_target_ops
14541 instances and use them for testing.
14542 (readwrite_regcache): Pass process_stratum_target parameter.
14543 (cooked_read_test, cooked_write_test): Pass mock_target down.
14544 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14545 (get_thread_arch_aspace_regcache): Add process_stratum_target
14546 parameter.
14547 (regcache::target): New method.
14548 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14549 (regcache::registers_changed_ptid): Add process_stratum_target
14550 parameter.
14551 (regcache::m_target): New field.
14552 (registers_changed_ptid): Add process_stratum_target parameter.
14553 * remote.c (remote_state::supports_vCont_probed): New field.
14554 (remote_target::async_wait_fd): New method.
14555 (remote_unpush_and_throw): Add remote_target parameter.
14556 (get_current_remote_target): Adjust.
14557 (remote_target::remote_add_inferior): Push target.
14558 (remote_target::remote_add_thread)
14559 (remote_target::remote_notice_new_inferior)
14560 (get_remote_thread_info): Pass target down.
14561 (remote_target::update_thread_list): Skip threads of inferiors
14562 bound to other targets. (remote_target::close): Don't discard
14563 inferiors. (remote_target::add_current_inferior_and_thread)
14564 (remote_target::process_initial_stop_replies)
14565 (remote_target::start_remote)
14566 (remote_target::remote_serial_quit_handler): Pass down target.
14567 (remote_target::remote_unpush_target): New remote_target
14568 parameter. Unpush the target from all inferiors.
14569 (remote_target::remote_unpush_and_throw): New remote_target
14570 parameter. Pass it down.
14571 (remote_target::open_1): Check whether the current inferior has
14572 execution instead of checking whether any inferior is live. Pass
14573 target down.
14574 (remote_target::remote_detach_1): Pass down target. Use
14575 remote_unpush_target.
14576 (extended_remote_target::attach): Pass down target.
14577 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14578 (remote_target::append_resumption): Pass down target.
14579 (remote_target::append_pending_thread_resumptions)
14580 (remote_target::remote_resume_with_hc, remote_target::resume)
14581 (remote_target::commit_resume): Pass down target.
14582 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14583 (remote_target::interrupt_query)
14584 (remote_target::remove_new_fork_children)
14585 (remote_target::check_pending_events_prevent_wildcard_vcont)
14586 (remote_target::remote_parse_stop_reply)
14587 (remote_target::process_stop_reply): Pass down target.
14588 (first_remote_resumed_thread): New remote_target parameter. Pass
14589 it down.
14590 (remote_target::wait_as): Pass down target.
14591 (unpush_and_perror): New remote_target parameter. Pass it down.
14592 (remote_target::readchar, remote_target::remote_serial_write)
14593 (remote_target::getpkt_or_notif_sane_1)
14594 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14595 down target.
14596 (remote_target::mourn_inferior): Pass down target. Use
14597 remote_unpush_target.
14598 (remote_target::core_of_thread)
14599 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14600 (remote_target::pid_to_exec_file)
14601 (remote_target::thread_handle_to_thread_info): Pass down target.
14602 (remote_target::async_wait_fd): New.
14603 * riscv-fbsd-tdep.c: Include "inferior.h".
14604 (riscv_fbsd_get_thread_local_address): Pass down target.
14605 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14606 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14607 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14608 Adjust.
14609 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14610 * solib-svr4.c (enable_break): Pass down target.
14611 * spu-multiarch.c (parse_spufs_run): Pass down target.
14612 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14613 * target-delegates.c: Regenerate.
14614 * target.c (g_target_stack): Delete.
14615 (current_top_target): Return the current inferior's top target.
14616 (target_has_execution_1): Refer to the passed-in inferior's top
14617 target.
14618 (target_supports_terminal_ours): Check whether the initial
14619 inferior was already created.
14620 (decref_target): New.
14621 (target_stack::push): Incref/decref the target.
14622 (push_target, push_target, unpush_target): Adjust.
14623 (target_stack::unpush): Defref target.
14624 (target_is_pushed): Return bool. Adjust to refer to the current
14625 inferior's target stack.
14626 (dispose_inferior): Delete, and inline parts ...
14627 (target_preopen): ... here. Only dispose of the current inferior.
14628 (target_detach): Hold strong target reference while detaching.
14629 Pass target down.
14630 (target_thread_name): Add assertion.
14631 (target_resume): Pass down target.
14632 (target_ops::beneath, find_target_at): Adjust to refer to the
14633 current inferior's target stack.
14634 (get_dummy_target): New.
14635 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14636 has a thread running.
14637 (initialize_targets): Rename to ...
14638 (_initialize_target): ... this.
14639 * target.h: Include "gdbsupport/refcounted-object.h".
14640 (struct target_ops): Inherit refcounted_object.
14641 (target_ops::shortname, target_ops::longname): Make const.
14642 (target_ops::async_wait_fd): New method.
14643 (decref_target): Declare.
14644 (struct target_ops_ref_policy): New.
14645 (target_ops_ref): New typedef.
14646 (get_dummy_target): Declare function.
14647 (target_is_pushed): Return bool.
14648 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14649 (all_matching_threads_iterator::all_matching_threads_iterator):
14650 Handle filter target.
14651 * thread-iter.h (struct all_matching_threads_iterator, struct
14652 all_matching_threads_range, class all_non_exited_threads_range):
14653 Filter by target too. Remove explicit.
14654 * thread.c (threads_executing): Delete.
14655 (inferior_thread): Pass down current inferior.
14656 (clear_thread_inferior_resources): Pass down thread pointer
14657 instead of ptid_t.
14658 (add_thread_silent, add_thread_with_info, add_thread): Add
14659 process_stratum_target parameter. Use it for thread and inferior
14660 searches.
14661 (is_current_thread): New.
14662 (thread_info::deletable): Use it.
14663 (find_thread_ptid, thread_count, in_thread_list)
14664 (thread_change_ptid, set_resumed, set_running): New
14665 process_stratum_target parameter. Pass it down.
14666 (set_executing): New process_stratum_target parameter. Pass it
14667 down. Adjust reference to 'threads_executing'.
14668 (threads_are_executing): New process_stratum_target parameter.
14669 Adjust reference to 'threads_executing'.
14670 (set_stop_requested, finish_thread_state): New
14671 process_stratum_target parameter. Pass it down.
14672 (switch_to_thread): Also match inferior.
14673 (switch_to_thread): New process_stratum_target parameter. Pass it
14674 down.
14675 (update_threads_executing): Reimplement.
14676 * top.c (quit_force): Pop targets from all inferior.
14677 (gdb_init): Don't call initialize_targets.
14678 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14679 Declare.
14680 (windows_add_thread, windows_delete_thread): Adjust.
14681 (get_windows_debug_event): Rename to ...
14682 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14683 * tracefile-tfile.c (tfile_target_open): Pass down target.
14684 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14685 Forward declare.
14686 (switch_to_thread): Add process_stratum_target parameter.
14687 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14688 parameter. Use it.
14689 (mi_on_resume): Pass target down.
14690 * nat/fork-inferior.c (startup_inferior): Add
14691 process_stratum_target parameter. Pass it down.
14692 * nat/fork-inferior.h (startup_inferior): Add
14693 process_stratum_target parameter.
14694 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14695
14696 2020-01-10 Pedro Alves <palves@redhat.com>
14697
14698 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14699 directly. Instead find the first thread in the thread list and
14700 use switch_to_thread.
14701
14702 2020-01-10 Pedro Alves <palves@redhat.com>
14703
14704 * remote.c (remote_target::remote_add_inferior): Don't bind a
14705 process to the current inferior if the current inferior is already
14706 bound to a process.
14707
14708 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14709 Pedro Alves <palves@redhat.com>
14710
14711 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14712 If no process is specified, return null_ptid instead of
14713 inferior_ptid.
14714 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14715 TARGET_WAITKIND_SIGNALLED with no pid.
14716
14717 2020-01-10 Pedro Alves <palves@redhat.com>
14718
14719 * remote.c (first_remote_resumed_thread): New.
14720 (remote_target::wait_as): Use it as default event_ptid instead of
14721 inferior_ptid.
14722
14723 2020-01-10 Pedro Alves <palves@redhat.com>
14724
14725 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14726
14727 2020-01-10 Pedro Alves <palves@redhat.com>
14728
14729 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14730 not -1.
14731
14732 2020-01-10 Pedro Alves <palves@redhat.com>
14733
14734 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14735 ptid to get_last_target_status.
14736 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14737 ptid to get_last_target_status.
14738 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14739 get_last_target_status.
14740 (info_program_command): Don't pass a target_waitstatus to
14741 get_last_target_status.
14742 * infrun.c (init_wait_for_inferior): Use
14743 nullify_last_target_wait_ptid.
14744 (get_last_target_status): Handle nullptr arguments.
14745 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14746 (print_stop_event): Don't pass a ptid to get_last_target_status.
14747 (normal_stop): Don't pass a ptid to get_last_target_status.
14748 * infrun.h (get_last_target_status, set_last_target_status): Move
14749 comments here and update.
14750 (nullify_last_target_wait_ptid): Declare.
14751 * linux-fork.c (fork_load_infrun_state): Remove local extern
14752 declaration of nullify_last_target_wait_ptid.
14753 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14754 to get_last_target_status.
14755
14756 2020-01-10 Pedro Alves <palves@redhat.com>
14757
14758 * gdbthread.h (scoped_restore_current_thread)
14759 <dont_restore, restore, m_dont_restore>: Declare.
14760 * thread.c (thread_alive): Add assertion. Return bool.
14761 (switch_to_thread_if_alive): New.
14762 (prune_threads): Switch inferior/thread.
14763 (print_thread_info_1): Switch thread before calling target methods.
14764 (scoped_restore_current_thread::restore): New, factored out from
14765 ...
14766 (scoped_restore_current_thread::~scoped_restore_current_thread):
14767 ... this.
14768 (scoped_restore_current_thread::scoped_restore_current_thread):
14769 Add assertion.
14770 (thread_apply_all_command, thread_select): Use
14771 switch_to_thread_if_alive.
14772 * infrun.c (proceed, restart_threads, handle_signal_stop)
14773 (switch_back_to_stepped_thread): Switch current thread before
14774 calling target methods.
14775
14776 2020-01-10 Pedro Alves <palves@redhat.com>
14777
14778 * inferior.c (switch_to_inferior_no_thread): New function,
14779 factored out from ...
14780 (inferior_command): ... here.
14781 * inferior.h (switch_to_inferior_no_thread): Declare.
14782 * mi/mi-main.c (run_one_inferior): Use
14783 switch_to_inferior_no_thread.
14784
14785 2020-01-10 Pedro Alves <palves@redhat.com>
14786
14787 * infcmd.c (kill_command): Remove dead code.
14788
14789 2020-01-10 Pedro Alves <palves@redhat.com>
14790
14791 * remote.c (remote_target::mourn_inferior): No longer check
14792 whether the target is running.
14793
14794 2020-01-10 Pedro Alves <palves@redhat.com>
14795
14796 * corelow.c (core_target::has_execution): Change parameter type to
14797 inferior pointer.
14798 * inferior.c (number_of_live_inferiors): Use
14799 inferior::has_execution instead of target_has_execution_1.
14800 * inferior.h (inferior::has_execution): New.
14801 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14802 inferior::has_execution instead of target_has_execution_1.
14803 * process-stratum-target.c
14804 (process_stratum_target::has_execution): Change parameter type to
14805 inferior pointer. Check the inferior's PID instead of
14806 inferior_ptid.
14807 * process-stratum-target.h
14808 (process_stratum_target::has_execution): Change parameter type to
14809 inferior pointer.
14810 * record-full.c (record_full_core_target::has_execution): Change
14811 parameter type to inferior pointer.
14812 * target.c (target_has_execution_1): Change parameter type to
14813 inferior pointer.
14814 (target_has_execution_current): Adjust.
14815 * target.h (target_ops::has_execution): Change parameter type to
14816 inferior pointer.
14817 (target_has_execution_1): Change parameter type to inferior
14818 pointer. Change return type to bool.
14819 * tracefile.h (tracefile_target::has_execution): Change parameter
14820 type to inferior pointer.
14821
14822 2020-01-10 Pedro Alves <palves@redhat.com>
14823
14824 * exceptions.c (print_flush): Remove current_top_target() check.
14825
14826 2020-01-10 Pedro Alves <palves@redhat.com>
14827
14828 * remote.c (show_remote_exec_file): Show the current inferior's
14829 exec-file instead of the command variable's value.
14830
14831 2020-01-10 Pedro Alves <palves@redhat.com>
14832
14833 * record-full.c (record_full_resume_ptid): New global.
14834 (record_full_target::resume): Set it.
14835 (record_full_wait_1): Use record_full_resume_ptid instead of
14836 inferior_ptid.
14837
14838 2020-01-10 Pedro Alves <palves@redhat.com>
14839
14840 * gdbthread.h (scoped_restore_current_thread)
14841 <dont_restore, restore, m_dont_restore>: Declare.
14842 * thread.c (thread_alive): Add assertion. Return bool.
14843 (switch_to_thread_if_alive): New.
14844 (prune_threads): Switch inferior/thread.
14845 (print_thread_info_1): Switch thread before calling target methods.
14846 (scoped_restore_current_thread::restore): New, factored out from
14847 ...
14848 (scoped_restore_current_thread::~scoped_restore_current_thread):
14849 ... this.
14850 (scoped_restore_current_thread::scoped_restore_current_thread):
14851 Add assertion.
14852 (thread_apply_all_command, thread_select): Use
14853 switch_to_thread_if_alive.
14854
14855 2020-01-10 George Barrett <bob@bob131.so>
14856
14857 * stap-probe.c (stap_modify_semaphore): Don't check for null
14858 semaphores.
14859 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14860 for null semaphores.
14861
14862 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14863
14864 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14865 all source windows, and maintain horizontal scroll status while
14866 doing so.
14867
14868 2020-01-09 Tom Tromey <tom@tromey.com>
14869
14870 PR tui/18932:
14871 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14872 update_source_window, not print_source_lines.
14873
14874 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14875
14876 * tui/tui.c (tui_enable): Register tui hooks after calling
14877 tui_display_main.
14878
14879 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14880
14881 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14882
14883 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14884
14885 * thread.c (print_thread_info_1): Fix indentation.
14886
14887 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14888
14889 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14890 unique_xmalloc_ptr outside the if to always free the demangled name.
14891
14892 2020-01-08 Tom Tromey <tromey@adacore.com>
14893
14894 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14895 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14896 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14897 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14898 Remove.
14899 (section_offsets): New typedef.
14900 * symtab.c (fixup_section, get_msymbol_address): Update.
14901 * symmisc.c (dump_msymbols): Update.
14902 * symfile.h (relative_addr_info_to_section_offsets)
14903 (symfile_map_offsets_to_segments): Update.
14904 * symfile.c (build_section_addr_info_from_objfile)
14905 (init_objfile_sect_indices): Update.
14906 (struct place_section_arg): Change type of "offsets".
14907 (place_section): Update.
14908 (relative_addr_info_to_section_offsets): Change type of
14909 "section_offsets". Remove "num_sections" parameter.
14910 (default_symfile_offsets, syms_from_objfile_1)
14911 (set_objfile_default_section_offset): Update.
14912 (reread_symbols): No need to preserve section offsets by hand.
14913 (symfile_map_offsets_to_segments): Change type of "offsets".
14914 * stap-probe.c (relocate_address): Update.
14915 * stabsread.h (process_one_symbol): Update.
14916 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14917 (solib_target_relocate_section_addresses): Update.
14918 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14919 Update.
14920 * solib-frv.c (frv_relocate_main_executable): Update.
14921 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14922 * solib-aix.c (solib_aix_get_section_offsets): Change return
14923 type.
14924 (solib_aix_solib_create_inferior_hook): Update.
14925 * remote.c (remote_target::get_offsets): Update.
14926 * psymtab.c (find_pc_sect_psymtab): Update.
14927 * psympriv.h (struct partial_symbol) <address, text_low,
14928 text_high>: Update.
14929 * objfiles.h (obj_section_offset): Update.
14930 (struct objfile) <section_offsets>: Change type.
14931 <num_sections>: Remove.
14932 (objfile_relocate): Update.
14933 * objfiles.c (entry_point_address_query): Update
14934 (relocate_one_symbol): Change type of "section_offsets".
14935 (objfile_relocate1, objfile_relocate1): Change type of
14936 "new_offsets".
14937 (objfile_rebase1): Update.
14938 * mipsread.c (mipscoff_symfile_read): Update.
14939 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14940 parameter.
14941 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14942 (parse_external, psymtab_to_symtab_1): Update.
14943 * machoread.c (macho_symfile_offsets): Update.
14944 * ia64-tdep.c (ia64_find_unwind_table): Update.
14945 * hppa-tdep.c (read_unwind_info): Update.
14946 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14947 * dwarf2read.c (create_addrmap_from_index)
14948 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14949 (process_psymtab_comp_unit_reader, add_partial_symbol)
14950 (add_partial_subprogram, process_full_comp_unit)
14951 (read_file_scope, read_func_scope, read_lexical_block_scope)
14952 (read_call_site_scope, dwarf2_rnglists_process)
14953 (dwarf2_ranges_process, dwarf2_ranges_read)
14954 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14955 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14956 Update.
14957 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14958 Update.
14959 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14960 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14961 (process_one_symbol): Change type of "section_offsets".
14962 * ctfread.c (get_objfile_text_range): Update.
14963 * coffread.c (coff_symtab_read, enter_linenos)
14964 (process_coff_symbol): Update.
14965 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14966 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14967
14968 2020-01-08 Tom Tromey <tromey@adacore.com>
14969
14970 * dwarf2read.c (parse_macro_definition): Use std::string.
14971 (parse_macro_definition): Likewise.
14972
14973 2020-01-08 Tom Tromey <tromey@adacore.com>
14974
14975 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14976 (ATTR_ALLOC_CHUNK): Remove.
14977
14978 2020-01-08 Tom Tromey <tromey@adacore.com>
14979
14980 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14981
14982 2020-01-08 Tom Tromey <tromey@adacore.com>
14983
14984 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14985 (dwarf2_compute_name, open_dwo_file): Likewise.
14986 (process_enumeration_scope): Use std::vector.
14987 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14988 (partial_die_info::fixup, dwarf2_start_subfile)
14989 (guess_full_die_structure_name, dwarf2_name): Likewise.
14990 (determine_prefix): Update.
14991 (guess_full_die_structure_name): Make return type const.
14992 (partial_die_full_name): Return unique_xmalloc_ptr.
14993 (DW_FIELD_ALLOC_CHUNK): Remove.
14994
14995 2020-01-07 Tom Tromey <tromey@adacore.com>
14996
14997 PR build/24937:
14998 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14999
15000 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15001
15002 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15003
15004 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15005
15006 * stack.c (print_frame_info): Move disassemble_next_line code
15007 inside source_print block.
15008
15009 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15010
15011 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15012 gdb/signals.h, as we are now using native signal symbols.
15013
15014 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15015
15016 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15017 overflow by an early check of content vs threshold.
15018 * tui/tui-source.c (tui_source_window::line_is_displayed):
15019 Likewise.
15020
15021 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15022
15023 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15024
15025 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15026
15027 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15028 export table if no section contains it's RVA.
15029
15030 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15031
15032 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15033
15034 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15035
15036 * source.c (print_source_lines_base): Set last_line_listed.
15037
15038 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15039
15040 * tui/tui-disasm.c: Remove trailing spaces.
15041
15042 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15043 Pedro Alves <palves@redhat.com>
15044
15045 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15046 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15047 (windows_gdb_signal_to_target): New function, uses the above
15048 enumeration to convert GDB internal signal codes to equivalent
15049 Windows codes.
15050 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15051 * windows-nat.c: Include "gdb_wait.h".
15052 (get_windows_debug_event): Extract the fatal exception from the
15053 exit status and convert to the equivalent Posix signal number.
15054 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15055 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15056 * gdbsupport/gdb_wait.c: New file, implements
15057 windows_status_to_termsig.
15058 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15059 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15060
15061 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15062
15063 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15064 show_layout.
15065
15066 2020-01-05 Luis Machado <luis.machado@linaro.org>
15067
15068 * aarch64-linux-nat.c
15069 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15070 and bfd_mach_aarch64.
15071
15072 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15073
15074 * ui-file.c (stdio_file::can_emit_style_escape)
15075 (tee_file::can_emit_style_escape): Ensure style is used also on
15076 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15077 to gdb_stdout.
15078 * main.c (set_gdb_data_directory): Use file style to output the
15079 warning that the given pathname is not a directory.
15080 * top.c (show_history_filename, gdb_safe_append_history)
15081 (show_gdb_datadir): Use file style.
15082
15083 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15084
15085 * solib-target.c (struct lm_info_target):
15086 Change offsets to be a unique_xmalloc_ptr.
15087 (solib_target_relocate_section_addresses): Update.
15088
15089 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15090
15091 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15092
15093 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15094
15095 * MAINTAINERS (Write After Approval): Add myself.
15096
15097 2020-01-02 Luis Machado <luis.machado@linaro.org>
15098
15099 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15100 Cell BE architecture.
15101 * target.h (struct target_ops) <thread_architecture>: Likewise.
15102
15103 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15104
15105 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15106
15107 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15108
15109 * MAINTAINERS (Write After Approval): Add myself.
15110
15111 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15112
15113 * gdbarch.sh: Update copyright year range of generated files.
15114
15115 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15116
15117 Update copyright year range in all GDB files.
15118
15119 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15120
15121 * copyright.py: Convert to Python 3.
15122
15123 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15124
15125 * copyright.py: Adapt after move of gnulib directory from gdb
15126 directory to toplevel directory.
15127
15128 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15129
15130 * copyright.py (main): Exit if run from the wrong directory.
15131
15132 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15133
15134 * top.c (print_gdb_version): Change copyright year to 2020.
15135
15136 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15137
15138 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15139
15140 For older changes see ChangeLog-2019.
15141 \f
15142 Local Variables:
15143 mode: change-log
15144 left-margin: 8
15145 fill-column: 74
15146 version-control: never
15147 coding: utf-8
15148 End:
This page took 0.386353 seconds and 5 git commands to generate.