Remove unused declaration from gcore.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-27 Tom Tromey <tromey@adacore.com>
2
3 * gcore.h (load_corefile): Don't declare.
4
5 2020-07-27 Tom de Vries <tdevries@suse.de>
6
7 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
8 * config.in: Regenerate.
9 * configure: Regenerate.
10
11 2020-07-26 Eli Zaretskii <eliz@gnu.org>
12
13 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
14 ws2tcpip.h. When checking whether socklen_t type is defined, use
15 ws2tcpip.h if it is available and sys/socket.h isn't.
16 * configure: Regenerate.
17 * config.in: Regenerate.
18
19 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
20
21 PR fortran/23051
22 PR fortran/26139
23 * valops.c (value_ind): Pass address to
24 readjust_indirect_value_type.
25 * value.c (readjust_indirect_value_type): Make parameter
26 non-const, and add extra address parameter. Resolve original type
27 before using it.
28 * value.h (readjust_indirect_value_type): Update function
29 signature and comment.
30
31 2020-07-25 Tom de Vries <tdevries@suse.de>
32
33 PR symtab/26243
34 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
35 entries.
36
37 2020-07-24 Aaron Merey <amerey@redhat.com>
38
39 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
40 * configure: Rebuild.
41
42 2020-07-23 Kevin Buettner <kevinb@redhat.com>
43
44 PR corefiles/26294
45 * corelow.c (_initialize_corelow): Add period to help text
46 for "maintenance print core-file-backed-mappings".
47
48 2020-07-23 Pedro Alves <pedro@palves.net>
49
50 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
51 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
52 meanwhile.
53 * frame.c (frame_cache_generation, get_frame_cache_generation):
54 New.
55 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
56 (get_prev_frame_if_no_cycle): On exception, don't touch
57 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
58 * frame.h (get_frame_cache_generation): Declare.
59
60 2020-07-23 Tom de Vries <tdevries@suse.de>
61
62 PR tui/26282
63 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
64 New default constructor.
65
66 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
69 exclude non-statement entries.
70
71 2020-07-22 Kevin Buettner <kevinb@redhat.com>
72
73 * NEWS (New commands): Mention new command
74 "maintenance print core-file-backed-mappings".
75
76 2020-07-22 Kevin Buettner <kevinb@redhat.com>
77
78 * corelow.c (gdbcmd.h): Include.
79 (core_target::info_proc_mappings): New method.
80 (get_current_core_target): New function.
81 (maintenance_print_core_file_backed_mappings): New function.
82 (_initialize_corelow): Add core-file-backed-mappings to
83 "maint print" commands.
84
85 2020-07-22 Kevin Buettner <kevinb@redhat.com>
86
87 * linux-tdep.c (dump_note_entry_p): New function.
88 (linux_dump_mapping_p_ftype): New typedef.
89 (linux_find_memory_regions_full): Add new parameter,
90 should_dump_mapping_p.
91 (linux_find_memory_regions): Adjust call to
92 linux_find_memory_regions_full.
93 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
94 call to linux_find_memory_regions_full.
95
96 2020-07-22 Kevin Buettner <kevinb@redhat.com>
97
98 * corelow.c (solist.h, unordered_map): Include.
99 (class core_target): Add field m_core_file_mappings and
100 method build_file_mappings.
101 (core_target::core_target): Call build_file_mappings.
102 (core_target::~core_target): Free memory associated with
103 m_core_file_mappings.
104 (core_target::build_file_mappings): New method.
105 (core_target::xfer_partial): Use m_core_file_mappings
106 for memory transfers.
107 * linux-tdep.c (linux_read_core_file_mappings): New
108 function.
109 (linux_core_info_proc_mappings): Rewrite to use
110 linux_read_core_file_mappings.
111 (linux_init_abi): Register linux_read_core_file_mappings.
112
113 2020-07-22 Kevin Buettner <kevinb@redhat.com>
114
115 * arch-utils.c (default_read_core_file_mappings): New function.
116 * arch-utils.c (default_read_core_file_mappings): Declare.
117 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
118 * gdbarch.h, gdbarch.c: Regenerate.
119
120 2020-07-22 Kevin Buettner <kevinb@redhat.com>
121
122 PR corefiles/25631
123 * corelow.c (core_target:xfer_partial): Revise
124 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
125 case after first checking the stratum beneath the core
126 target.
127 (has_all_memory): Return true.
128 * target.c (raw_memory_xfer_partial): Revise comment
129 regarding use of has_all_memory.
130
131 2020-07-22 Kevin Buettner <kevinb@redhat.com>
132
133 * exec.h (section_table_xfer_memory): Revise declaration,
134 replacing section name parameter with an optional callback
135 predicate.
136 * exec.c (section_table_xfer_memory): Likewise.
137 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
138 of section_table_xfer_memory.
139
140 2020-07-22 Tom Tromey <tromey@adacore.com>
141
142 * mi/mi-cmd-stack.c (list_args_or_locals): Use
143 lookup_symbol_search_name.
144
145 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * python/py-registers.c (gdbpy_register_object_data_init): Remove
148 redundant local variable.
149 (gdbpy_get_register_descriptor): Extract descriptor vector as a
150 reference, not pointer, update code accordingly.
151
152 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
153 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
154
155 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
156 * jit.c (jit_breakpoint_re_set_internal): Use the
157 `skip_jit_symbol_lookup` field.
158
159 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
160 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
161
162 * jit.c (jit_read_descriptor): Define the descriptor address once,
163 use twice.
164 (jit_breakpoint_deleted): Move the declaration of the loop variable
165 `iter` into the loop header.
166 (jit_breakpoint_re_set_internal): Move the declaration of the local
167 variable `objf_data` to the first point of definition.
168 (jit_event_handler): Move the declaration of local variables
169 `code_entry`, `entry_addr`, and `objf` to their first point of use.
170 Rename `objf` to `jited`.
171
172 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
175 Remove.
176 * jit.c (get_jiter_objfile_data): Update.
177
178 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
179 Simon Marchi <simon.marchi@polymtl.ca>
180
181 * jit.c (struct jit_program_space_data): Remove.
182 (jit_program_space_key): Remove.
183 (jiter_objfile_data::~jiter_objfile_data): Remove program space
184 stuff.
185 (get_jit_program_space_data): Remove.
186 (jit_breakpoint_deleted): Iterate on all of the program space's
187 objfiles.
188 (jit_inferior_init): Likewise.
189 (jit_breakpoint_re_set_internal): Likewise. Also change return
190 type to void.
191 (jit_breakpoint_re_set): Pass current_program_space to
192 jit_breakpoint_re_set_internal.
193
194 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
195
196 * jit.h (struct jiter_objfile_data) <cached_code_address,
197 jit_breakpoint>: Move to here from ...
198 * jit.c (jit_program_space_data): ... here.
199 (jiter_objfile_data::~jiter_objfile_data): Update.
200 (jit_breakpoint_deleted): Update.
201 (jit_breakpoint_re_set_internal): Update.
202
203 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
206 checks.
207 (jit_read_descriptor): Remove NULL check.
208 (jit_event_handler): Add an assertion.
209
210 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * jit.h (struct jit_objfile_data): Split into...
213 (struct jiter_objfile_data): ... this ...
214 (struct jited_objfile_data): ... and this.
215 * objfiles.h (struct objfile) <jit_data>: Remove.
216 <jiter_data, jited_data>: New fields.
217 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
218 (jiter_objfile_data::~jiter_objfile_data): ... this.
219 (get_jit_objfile_data): Rename to ...
220 (get_jiter_objfile_data): ... this.
221 (add_objfile_entry): Update.
222 (jit_read_descriptor): Use get_jiter_objfile_data.
223 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
224 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
225 (jit_inferior_exit_hook): Use objfile's jited_data field.
226
227 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
228
229 * jit.h: Forward-declare `struct minimal_symbol`.
230 (struct jit_objfile_data): Migrate to here from jit.c; also add a
231 constructor, destructor, and an objfile* field.
232 * jit.c (jit_objfile_data): Remove.
233 (struct jit_objfile_data): Migrate from here to jit.h.
234 (jit_objfile_data::~jit_objfile_data): New destructor
235 implementation with code moved from free_objfile_data.
236 (free_objfile_data): Delete.
237 (get_jit_objfile_data): Update to use the jit_data field of objfile.
238 (jit_find_objf_with_entry_addr): Ditto.
239 (jit_inferior_exit_hook): Ditto.
240 (_initialize_jit): Remove the call to
241 register_objfile_data_with_cleanup.
242 * objfiles.h (struct objfile) <jit_data>: New field.
243
244 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
245
246 * jit.h: Forward-declare `struct objfile`.
247 (jit_event_handler): Add a second parameter, the JITer objfile.
248 * jit.c (jit_read_descriptor): Change the signature to take the
249 JITer objfile as an argument instead of the jit_program_space_data.
250 (jit_inferior_init): Update the call to jit_read_descriptor.
251 (jit_event_handler): Use the new JITer objfile argument when calling
252 jit_read_descriptor.
253 * breakpoint.c (handle_jit_event): Update the call to
254 jit_event_handler to pass the JITer objfile.
255
256 2020-07-21 John Baldwin <jhb@FreeBSD.org>
257
258 * gdbarch.c: Regenerate.
259 * gdbarch.h: Regenerate.
260 * gdbarch.sh (handle_segmentation_fault): Remove method.
261 * infrun.c (handle_segmentation_fault): Remove.
262 (print_signal_received_reason): Remove call to
263 handle_segmentation_fault.
264
265 2020-07-21 John Baldwin <jhb@FreeBSD.org>
266
267 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
268 Rename to sparc64_linux_report_signal_info and add siggnal
269 argument.
270 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
271 instead of sparc64_linux_handle_segmentation_fault.
272
273 2020-07-21 John Baldwin <jhb@FreeBSD.org>
274
275 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
276 i386_linux_report_signal_info instead of
277 i386_linux_handle_segmentation_fault.
278 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
279 to i386_linux_report_signal_info and add siggnal argument.
280 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
281 of i386_linux_handle_segmentation_fault.
282 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
283 to i386_linux_report_signal_info and add siggnal argument.
284
285 2020-07-21 John Baldwin <jhb@FreeBSD.org>
286
287 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
288 hook if present.
289
290 2020-07-21 John Baldwin <jhb@FreeBSD.org>
291
292 * gdbarch.c: Regenerate.
293 * gdbarch.h: Regenerate.
294 * gdbarch.sh (report_signal_info): New method.
295 * infrun.c (print_signal_received_reason): Invoke gdbarch
296 report_signal_info hook if present.
297
298 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * python/py-registers.c : Add 'unordered_map' include.
301 (gdbpy_new_reggroup): Renamed to...
302 (gdbpy_get_reggroup): ...this. Update to only create register
303 group descriptors when needed.
304 (gdbpy_reggroup_iter_next): Update.
305
306 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
307
308 * python/py-registers.c (gdbpy_register_object_data): New static
309 global.
310 (gdbpy_register_object_data_init): New function.
311 (gdbpy_new_register_descriptor): Renamed to...
312 (gdbpy_get_register_descriptor): ...this, and update to reuse
313 existing register descriptors where possible.
314 (gdbpy_register_descriptor_iter_next): Update.
315 (gdbpy_initialize_registers): Register new gdbarch data.
316
317 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
318
319 * linux-nat.c (stopped_pids): Make static.
320
321 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
322
323 PR ada/26235
324 * gdbtypes.c (ada_discrete_type_low_bound,
325 ada_discrete_type_high_bound): Handle undefined bounds.
326
327 2020-07-21 Kamil Rytarowski <n54@gmx.com>
328
329 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
330 declaration.
331 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
332 function.
333
334 2020-07-20 John Baldwin <jhb@FreeBSD.org>
335
336 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
337 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
338 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
339 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
340 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
341 method.
342
343 2020-07-20 Ludovic Courtès <ludo@gnu.org>
344
345 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
346 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
347 which are deprecated in Guile 3.0.
348 * configure.ac (try_guile_versions): Add "guile-3.0".
349 * configure (try_guile_versions): Regenerate.
350 * NEWS: Update entry.
351
352 2020-07-20 Ludovic Courtès <ludo@gnu.org>
353 Doug Evans <dje@google.com>
354
355 PR gdb/21104
356 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
357 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
358 USING_GUILE_BEFORE_2_2.
359 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
360 Change type to 'scm_t_port_type *'.
361 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
362 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
363 parameter and honor it. Update callers.
364 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
365 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
366 functions.
367 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
368 USING_GUILE_BEFORE_2_2.
369 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
370 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
371 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
372 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
373 and 'SCM_PORT_TYPE'.
374 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
375 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
376 (gdbscm_memory_port_read, gdbscm_memory_port_write)
377 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
378 [!USING_GUILE_BEFORE_2_2]: New functions.
379 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
380 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
381 'gdbscm_memory_port_read'.
382 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
383 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
384 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
385 function.
386 (ioscm_init_memory_port): Remove.
387 (ioscm_init_memory_port_stream): New function
388 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
389 function.
390 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
391 Return scm_from_uint (0).
392 (gdbscm_set_memory_port_read_buffer_size_x)
393 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
394 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
395 Return scm_from_uint (0).
396 (gdbscm_set_memory_port_write_buffer_size_x)
397 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
398 * configure.ac (try_guile_versions): Add "guile-2.2".
399 * configure: Regenerate.
400 * NEWS: Add entry.
401
402 2020-07-18 Tom Tromey <tom@tromey.com>
403
404 * linux-nat.c (linux_multi_process): Remove.
405 (linux_nat_target::supports_multi_process): Return true.
406
407 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * arch/riscv.c (riscv_tdesc_cache): Change map type.
410 (riscv_lookup_target_description): Return pointer out of
411 unique_ptr.
412 * target-descriptions.c (allocate_target_description): Add
413 comment.
414 (target_desc_deleter::operator()): Likewise.
415 * target-descriptions.h (struct target_desc_deleter): Moved to
416 gdbsupport/tdesc.h.
417 (target_desc_up): Likewise.
418
419 2020-07-17 Tom Tromey <tromey@adacore.com>
420
421 * linux-nat.c (linux_nat_target::supports_non_stop)
422 (linux_nat_target::always_non_stop_p): Use "true".
423 (linux_nat_target::supports_disable_randomization): Use "true" and
424 "false".
425
426 2020-07-16 Caroline Tice <cmtice@google.com>
427
428 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
429 (RNGLIST_HEADER_SIZE64): New constant definition.
430 (struct dwop_section_names): Add rnglists_dwo.
431 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
432 (struct loclist_header): Rename to 'loclists_rnglists_header'.
433 (struct dwo_sections): Add rnglists field.
434 (read_attribut_reprocess): Add tag parameter.
435 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
436 (cu_debug_rnglists_section): New function (decl & definition).
437 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
438 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
439 die whose range is being checked; get rnglist section from
440 cu_debug_rnglists_section, to get from either objfile or dwo file as
441 appropriate. Add cases for DW_RLE_base_addressx,
442 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
443 the base address to DW_RLE_offset_pairs (not to all ranges), moving
444 test inside if-condition and updating complaint message.
445 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
446 dwarf2_rnglists_process.
447 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
448 dwarf2_ranges_process.
449 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
450 need_ranges_base and update comment appropriately. Also pass die tag
451 to dwarf2_ranges_read.
452 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
453 need_ranges_base and update comment appropriately. Also pass die tag
454 to dwarf2_ranges_process.
455 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
456 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
457 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
458 need_ranges_base and update comment appropriately. Also pass die tag
459 to read_attribute_reprocess and dwarf2_ranges_read.
460 (read_loclist_header): Rename function to read_loclists_rnglists_header,
461 and update function comment appropriately.
462 (read_loclist_index): Call read_loclists_rnglists_header instead of
463 read_loclist_header.
464 (read_rnglist_index): New function.
465 (read_attribute_reprocess): Add tag parameter. Add code for
466 DW_FORM_rnglistx, passing tag to read_rnglist_index.
467 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
468
469 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
472 being resolved.
473
474 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * arch-utils.c (show_architecture): Update formatting of messages.
477
478 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
479
480 * gdbtypes.h (struct type) <bounds>: Handle array and string
481 types.
482 * ada-lang.c (assign_aggregate): Use type::bounds on
483 array/string type.
484 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
485 * c-varobj.c (c_number_of_children): Likewise.
486 (c_describe_child): Likewise.
487 * eval.c (evaluate_subexp_for_sizeof): Likewise.
488 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
489 (f_type_print_base): Likewise.
490 * f-valprint.c (f77_array_offset_tbl): Likewise.
491 (f77_get_upperbound): Likewise.
492 (f77_print_array_1): Likewise.
493 * guile/scm-type.c (gdbscm_type_range): Likewise.
494 * m2-typeprint.c (m2_array): Likewise.
495 (m2_is_long_set_of_type): Likewise.
496 * m2-valprint.c (get_long_set_bounds): Likewise.
497 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
498 * python/py-type.c (typy_range): Likewise.
499 * rust-lang.c (rust_internal_print_type): Likewise.
500 * type-stack.c (type_stack::follow_types): Likewise.
501 * valarith.c (value_subscripted_rvalue): Likewise.
502 * valops.c (value_cast): Likewise.
503
504 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
505
506 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
507 callers to use the equivalent accessor methods.
508
509 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
510
511 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
512 (struct type) <bit_stride>: New method.
513 (TYPE_BIT_STRIDE): Remove.
514 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
515
516 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
517
518 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
519 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
520 callers to use the equivalent accessor methods instead.
521
522 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
523
524 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
525 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
526 callers to use the equivalent accessor methods instead.
527
528 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
529
530 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
531 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
532 to use dynamic_prop::kind.
533
534 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
535
536 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
537 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
538 to get the bound property's kind and check against
539 PROP_UNDEFINED.
540
541 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
542
543 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
544 all callers to use type::range_bounds followed by
545 dynamic_prop::{low,high}.
546
547 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
550 const_val, set_const_val, baton, set_locexpr, set_loclist,
551 set_addr_offset, variant_parts, set_variant_parts,
552 original_type, set_original_type>: New methods.
553 <kind>: Rename to...
554 <m_kind>: ... this. Update all users to use the new methods
555 instead.
556 <data>: Rename to...
557 <m_data>: ... this. Update all users to use the new methods
558 instead.
559
560 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
561
562 * gdbtypes.c (get_discrete_bounds): Return failure if
563 the range type's bounds are not both defined and constant
564 values.
565 (get_array_bounds): Update comment. Remove undefined bound check.
566
567 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
570 the type::bounds method directly.
571
572 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
573
574 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
575 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
576 are used to set the range type's bounds to use set_bounds.
577
578 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
579
580 * exec.c (_initialize_exec): Update exec-file-mismatch help.
581
582 2020-07-10 Pedro Alves <pedro@palves.net>
583
584 * gdbthread.h (inferior_ref): Define.
585 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
586 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
587 * thread.c
588 (scoped_restore_current_thread::restore):
589 Adjust to gdb::ref_ptr.
590 (scoped_restore_current_thread::~scoped_restore_current_thread):
591 Remove manual decref handling.
592 (scoped_restore_current_thread::scoped_restore_current_thread):
593 Adjust to use
594 inferior_ref::new_reference/thread_info_ref::new_reference.
595 Incref the thread before calling get_frame_id instead of after.
596 Let TARGET_CLOSE_ERROR propagate.
597
598 2020-07-10 Pedro Alves <pedro@palves.net>
599
600 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
601 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
602 NOT_AVAILABLE_ERROR.
603 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
604 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
605
606 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
607 Pedro Alves <pedro@palves.net>
608
609 PR gdb/26199
610 * infrun.c (threads_are_resumed_pending_p): Delete.
611 (do_target_wait): Remove threads_are_executing and
612 threads_are_resumed_pending_p checks from the inferior_matches
613 lambda. Update comments.
614
615 2020-07-10 Pedro Alves <pedro@palves.net>
616
617 PR gdb/26199
618 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
619 executing threads.
620
621 2020-07-10 Pedro Alves <pedro@palves.net>
622
623 PR gdb/26199
624 * infrun.c (handle_no_resumed): Handle multiple targets.
625
626 2020-07-10 Pedro Alves <pedro@palves.net>
627
628 PR gdb/26199
629 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
630 target_is_async_p.
631
632 2020-07-10 Pedro Alves <pedro@palves.net>
633
634 PR gdb/26199
635 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
636 threads, not all threads.
637
638 2020-07-10 Pedro Alves <pedro@palves.net>
639
640 PR gdb/26199
641 * remote.c (remote_target::open_1): Pass remote target pointer as
642 data to create_async_event_handler.
643 (remote_async_inferior_event_handler): Mark async event handler
644 before returning if the remote target still has either pending
645 events or unacknowledged notifications.
646
647 2020-07-10 John Baldwin <jhb@FreeBSD.org>
648
649 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
650 declaration.
651 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
652 function.
653
654 2020-07-09 John Baldwin <jhb@FreeBSD.org>
655
656 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
657 inferior_ptid.
658
659 2020-07-09 John Baldwin <jhb@FreeBSD.org>
660
661 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
662 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
663 AT_FREEBSD_PS_STRINGS.
664
665 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
666
667 * auto-load.c (auto_load_objfile_script_1): Convert drive part
668 of debugfile path on Windows.
669
670 2020-07-08 John Baldwin <jhb@FreeBSD.org>
671
672 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
673 argument to 'data'.
674
675 2020-07-08 Tom Tromey <tromey@adacore.com>
676
677 * ada-lang.c (ada_exception_message_1): Use read_memory.
678
679 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 PR python/22748
682 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
683 special handling for inline frames.
684 * findvar.c (value_of_register_lazy): Skip inline frames when
685 creating lazy register values.
686 * frame.c (frame_id_computed_p): Delete definition.
687 * frame.h (frame_id_computed_p): Delete declaration.
688
689 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
690
691 * NEWS: Mention additions to Python API.
692 * python/py-arch.c (archpy_register_groups): New function.
693 (arch_object_methods): Add 'register_groups' method.
694 * python/py-registers.c (reggroup_iterator_object): New struct.
695 (reggroup_object): New struct.
696 (gdbpy_new_reggroup): New function.
697 (gdbpy_reggroup_to_string): New function.
698 (gdbpy_reggroup_name): New function.
699 (gdbpy_reggroup_iter): New function.
700 (gdbpy_reggroup_iter_next): New function.
701 (gdbpy_new_reggroup_iterator): New function
702 (gdbpy_initialize_registers): Register new types.
703 (reggroup_iterator_object_type): Define new Python type.
704 (gdbpy_reggroup_getset): New static global.
705 (reggroup_object_type): Define new Python type.
706 * python/python-internal.h
707
708 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
709
710 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
711 * python/py-arch.c (archpy_registers): New function.
712 (arch_object_methods): Add 'registers' method.
713 * python/py-registers.c: New file.
714 * python/python-internal.h
715 (gdbpy_new_register_descriptor_iterator): Declare.
716 (gdbpy_initialize_registers): Declare.
717 * python/python.c (do_start_initialization): Call
718 gdbpy_initialize_registers.
719 * NEWS: Mention additions to the Python API.
720
721 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * NEWS: Mention new Python API method.
724 * python/py-unwind.c (pending_framepy_architecture): New function.
725 (pending_frame_object_methods): Add architecture method.
726
727 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * gdbarch.c: Regenerate.
730 * gdbarch.h: Regenerate.
731 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
732 (gdbarch_data): Use internal_error for the case where
733 deprecated_set_gdbarch_data was originally needed.
734 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
735 and use passed in obstack.
736 (libunwind_frame_set_descr): Should no longer get back NULL from
737 gdbarch_data.
738 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
739 type.
740 * user-regs.c (user_regs_init): Update parameters, and use passed
741 in obstack.
742 (user_reg_add): Should no longer get back NULL from gdbarch_data.
743 (_initialize_user_regs): Register as a pre-init gdbarch data type.
744
745 2020-07-06 Tom de Vries <tdevries@suse.de>
746
747 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
748 End-Of-Sequence in lte_is_less_than.
749 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
750 "gdb: Don't reorder line table entries too much when sorting".
751
752 2020-07-06 Tom de Vries <tdevries@suse.de>
753
754 PR tui/26205
755 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
756
757 2020-07-05 Tom de Vries <tdevries@suse.de>
758
759 PR build/26187
760 * inferior.h (struct infcall_suspend_state_deleter): If available, use
761 std::uncaught_exceptions instead of deprecated
762 std::uncaught_exception.
763
764 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * macroexp.h (macro_stringify): Return
767 gdb::unique_xmalloc_ptr<char>.
768 * macroexp.c (macro_stringify): Likewise.
769 * macrotab.c (fixup_definition): Update.
770
771 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
774 (lex_one_token): Update.
775 * macroexp.c (struct macro_buffer) <release>: Return
776 gdb::unique_xmalloc_ptr<char>.
777 (macro_stringify): Update.
778 (macro_expand): Update.
779 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
780 * macroexp.h (macro_expand_next): Likewise.
781
782 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
783
784 * macroexp.h (macro_lookup_ftype): Remove.
785 (macro_expand, macro_expand_once, macro_expand_next): Remove
786 lookup function parameters, add scope parameter.
787 * macroexp.c (scan, substitute_args, expand, maybe_expand,
788 macro_expand, macro_expand_once, macro_expand_next): Likewise.
789 * macroscope.h (standard_macro_lookup): Change parameter type
790 to macro_scope.
791 * macroscope.c (standard_macro_lookup): Likewise.
792 * c-exp.y (lex_one_token): Update.
793 * macrocmd.c (macro_expand_command): Likewise.
794 (macro_expand_once_command): Likewise.
795
796 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
797
798 * inf-loop.c (inferior_event_handler): Remove client_data param.
799 * inf-loop.h (inferior_event_handler): Likewise.
800 * infcmd.c (step_1): Adjust.
801 * infrun.c (proceed): Adjust.
802 (fetch_inferior_event): Remove client_data param.
803 (infrun_async_inferior_event_handler): Adjust.
804 * infrun.h (fetch_inferior_event): Remove `void *` param.
805 * linux-nat.c (handle_target_event): Adjust.
806 * record-btrace.c (record_btrace_handle_async_inferior_event):
807 Adjust.
808 * record-full.c (record_full_async_inferior_event_handler):
809 Adjust.
810 * remote.c (remote_async_inferior_event_handler): Adjust.
811
812 2020-07-01 Tom Tromey <tom@tromey.com>
813
814 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
815 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
816
817 2020-07-01 Tom Tromey <tom@tromey.com>
818
819 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
820 tui_gen_win_info.
821 (tui_win_info::make_window): Merge with
822 tui_gen_win_info::make_window.
823 (tui_win_info::make_visible): Move from tui_gen_win_info.
824 * tui/tui-win.c (tui_win_info::max_width): Move from
825 tui_gen_win_info.
826 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
827 type.
828 <window_factory>: Likewise.
829 * tui/tui-layout.c (tui_win_info::resize): Move from
830 tui_gen_win_info.
831 (make_standard_window): Change return type.
832 (get_locator_window, tui_get_window_by_name): Likewise.
833 (tui_layout_window::apply): Remove a cast.
834 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
835 (struct tui_win_info): Merge with tui_gen_win_info.
836 (struct tui_gen_win_info): Remove.
837
838 2020-07-01 Tom Tromey <tom@tromey.com>
839
840 * tui/tui-stack.h (struct tui_locator_window): Derive from
841 tui_win_info.
842 <do_scroll_horizontal, do_scroll_vertical>: New methods.
843 <can_box>: New method.
844
845 2020-07-01 Tom Tromey <tom@tromey.com>
846
847 * tui/tui-stack.h (struct tui_locator_window): Remove body.
848
849 2020-07-01 Tom Tromey <tom@tromey.com>
850
851 * tui/tui-regs.c (tui_data_window::display_registers_from)
852 (tui_data_window::display_registers_from)
853 (tui_data_window::first_data_item_displayed)
854 (tui_data_window::delete_data_content_windows): Update.
855 (tui_data_window::refresh_window, tui_data_window::no_refresh):
856 Remove.
857 (tui_data_window::check_register_values): Update.
858 (tui_data_item_window::rerender): Add parameters. Update.
859 (tui_data_item_window::refresh_window): Remove.
860 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
861 virtual.
862 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
863 tui_gen_win_info.
864 <refresh_window, max_height, min_height>: Remove.
865 <rerender>: Add parameters.
866 <x, y, visible>: New members.
867 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
868 <m_item_width>: New member.
869
870 2020-07-01 Tom Tromey <tom@tromey.com>
871
872 * tui/tui-regs.c (tui_data_window::show_register_group)
873 (tui_data_window::check_register_values): Update.
874 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
875 from item_no.
876
877 2020-07-01 Tom Tromey <tom@tromey.com>
878
879 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
880 useless "if".
881
882 2020-07-01 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
885 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
886
887 2020-07-01 Tom Tromey <tom@tromey.com>
888
889 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
890 * tui/tui-winsource.h (enum tui_line_or_address_kind)
891 (struct tui_line_or_address): Move from tui-data.h.
892 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
893 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
894 (tui_cmd_window, tui_source_window_base, tui_source_window)
895 (tui_disasm_window): Don't declare.
896 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
897 to tui-winsource.h.
898 (SINGLE_KEY): Move to tui-stack.c.
899
900 2020-07-01 Tom Tromey <tom@tromey.com>
901
902 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
903 std::string.
904 * tui/tui-regs.c (class tab_expansion_file): New.
905 (tab_expansion_file::write): New method.
906 (tui_register_format): Change return type. Use
907 tab_expansion_file.
908 (tui_get_register, tui_data_window::display_registers_from)
909 (tui_data_item_window::rerender): Update.
910 * tui/tui-io.h (tui_expand_tabs): Don't declare.
911 * tui/tui-io.c (tui_expand_tabs): Remove.
912
913 2020-07-01 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
916
917 2020-07-01 Fangrui Song <maskray@google.com>
918
919 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
920
921 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
922
923 * dwarf2/read.c (set_die_type): Removed conditions to restrict
924 forms for DW_AT_associated and DW_AT_allocated attributes,
925 which is already checked in function attr_to_dynamic_prop.
926
927 2020-06-30 Tom Tromey <tromey@adacore.com>
928
929 * dwarf2/read.c (quirk_rust_enum): Correctly call
930 alloc_rust_variant for default-less enum.
931
932 2020-06-30 Tom Tromey <tromey@adacore.com>
933
934 PR build/26183:
935 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
936 gdb::to_string.
937
938 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
939
940 * gdbarch.sh (displaced_step_copy_insn): Update doc.
941 * gdbarch.h: Re-generate.
942
943 2020-06-28 Tom Tromey <tom@tromey.com>
944
945 * command.h (cmd_types): Remove.
946 (cmd_type): Don't declare.
947 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
948 typedef.
949 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
950 * cli/cli-decode.c (cmd_type): Remove.
951
952 2020-06-27 Pedro Alves <palves@redhat.com>
953
954 * fork-child.c (prefork_hook): Adjust.
955 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
956 Delete.
957 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
958 * inferior.c (inferior::set_tty, inferior::tty): New methods.
959 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
960 Remove declarations.
961 (struct inferior) <set_tty, tty>: New methods.
962 (struct inferior) <terminal>: Rename to ...
963 (struct inferior) <m_terminal>: ... this and make private.
964 * main.c (captured_main_1): Adjust.
965 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
966 (mi_cmd_inferior_tty_show): Adjust.
967 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
968 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
969
970 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
971
972 * configure.ac: Add --enable-libctf: handle --disable-static
973 properly.
974 * acinclude.m4: sinclude ../config/enable.m4.
975 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
976 (LIBCTF): Substitute in.
977 (CTF_DEPS): New, likewise.
978 (CLIBS): libctf needs symbols from libbfd: move earlier.
979 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
980 flags.
981 * ctfread.c: Surround in ENABLE_LIBCTF.
982 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
983 * configure: Regenerate.
984 * config.in: Likewise.
985
986 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
987
988 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
989
990 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
991
992 * inferior.h (struct inferior) <terminal>: Change type to
993 gdb::unique_xmalloc_ptr<char>.
994 * inferior.c (inferior::~inferior): Don't free inf->terminal.
995 * infcmd.c (set_inferior_io_terminal): Don't free terminal
996 field, adjust to unique pointer.
997 (get_inferior_io_terminal): Adjust to unique pointer.
998
999 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1000
1001 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1002 registers, not just the known core set of registers.
1003
1004 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1007 fflags, frm, and fcsr registers.
1008 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1009 restore groups.
1010 (riscv_tdesc_unknown_reg): New function.
1011 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1012 tdesc_use_registers.
1013 * riscv-tdep.h (struct gdbarch_tdep): Add
1014 unknown_csrs_first_regnum, unknown_csrs_count,
1015 duplicate_fflags_regnum, duplicate_frm_regnum, and
1016 duplicate_fcsr_regnum fields.
1017
1018 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1021 callback, use the callback (when not null) to help number unknown
1022 registers.
1023 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1024 (tdesc_use_registers): Add extra parameter to declaration.
1025
1026 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1029 in the file.
1030 (class riscv_pending_register_alias): Likewise.
1031 (riscv_register_feature::register_info): Change 'required_p' field
1032 to 'required', and change its type. Add 'check' member function.
1033 (riscv_register_feature::register_info::check): Define new member
1034 function.
1035 (riscv_xreg_feature): Change initialisation of 'required' field.
1036 (riscv_freg_feature): Likewise.
1037 (riscv_virtual_feature): Likewise.
1038 (riscv_csr_feature): Likewise.
1039 (riscv_check_tdesc_feature): Take extra parameter, the csr
1040 tdesc_feature, rewrite the function to use the new
1041 riscv_register_feature::register_info::check function.
1042 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1043
1044 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1045
1046 * features/Makefile: Remove all references to the deleted files
1047 below.
1048 * features/riscv/32bit-csr.c: Deleted.
1049 * features/riscv/32bit-csr.xml: Deleted.
1050 * features/riscv/64bit-csr.c: Deleted.
1051 * features/riscv/64bit-csr.xml: Deleted.
1052 * features/riscv/rebuild-csr-xml.sh: Deleted.
1053
1054 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1057 whitespace error for declaration of names member variable.
1058 (struct riscv_register_feature): Add new prefer_first_name member
1059 variable, and fix whitespace error in declaration of registers.
1060 (riscv_xreg_feature): Initialize prefer_first_name field.
1061 (riscv_freg_feature): Likewise.
1062 (riscv_virtual_feature): Likewise.
1063 (riscv_csr_feature): Likewise.
1064 (riscv_register_name): Expand on comments. Remove register name
1065 modifications for CSR and virtual registers.
1066
1067 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1070 errors.
1071
1072 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1075 riscv-opc.h.
1076 (class riscv_pending_register_alias): New class.
1077 (riscv_check_tdesc_feature): Take vector of pending aliases and
1078 populate it as appropriate.
1079 (riscv_setup_register_aliases): Delete.
1080 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1081 to riscv_check_tdesc_feature in all cases. Use the vector to
1082 create the register aliases.
1083
1084 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1085
1086 * sol2-tdep.c (sol2_static_transform_name): Remove.
1087 (sol2_init_abi): Don't register it.
1088 * gdbarch.sh (static_transform_name): Remove.
1089 * gdbarch.c, gdbarch.h: Regenerate.
1090
1091 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1092 gdbarch_static_transform_name.
1093 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1094 * stabsread.c (define_symbol) <'X'>: Remove.
1095 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1096 handling.
1097 <'V'>: Likewise.
1098 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1099 <'S'>: Remove call to gdbarch_static_transform_name.
1100
1101 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1102
1103 * procfs.c (procfs_pre_trace): New function.
1104 (procfs_target::create_inferior): Pass it to fork_inferior.
1105
1106 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1107
1108 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1109 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1110 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1111 sol2-tdep.o, sparc-sol2-tdep.o.
1112 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1113 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1114 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1115 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1116
1117 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1118
1119 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1120 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1121 Call sol2_init_abi.
1122 Remove calls to set_gdbarch_skip_solib_resolver,
1123 set_gdbarch_core_pid_to_str.
1124 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1125 (i386_sol2_static_transform_name): Remove.
1126 (i386_sol2_init_abi): Call sol2_init_abi.
1127 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1128 set_gdbarch_static_transform_name,
1129 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1130 Use sol2_sigtramp_p.
1131 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1132 (sol2_sigtramp_p): New function.
1133 (sol2_static_transform_name): New function.
1134 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1135 (sol2_init_abi): New function.
1136 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1137 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1138 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1139 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1140 (sparc_sol2_static_transform_name): Remove.
1141 (sparc32_sol2_init_abi): Call sol2_init_abi.
1142 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1143 set_gdbarch_static_transform_name,
1144 set_gdbarch_skip_solib_resolver,
1145 set_gdbarch_core_pid_to_str.
1146 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1147 (sparc_sol2_static_transform_name): Remove
1148 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1149 call sol2_sigtramp_p.
1150 (sparc64_sol2_init_abi): Call sol2_init_abi.
1151 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1152 set_gdbarch_static_transform_name,
1153 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1154
1155 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1156
1157 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1158 * exec.c (validate_exec_file): If from_tty, set both
1159 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1160 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1161 and from_tty, unconditionally ask a confirmation.
1162
1163 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * target-descriptions.c (tdesc_architecture_name): Protect against
1166 NULL pointer dereference.
1167 (maint_print_xml_tdesc_cmd): New function.
1168 (_initialize_target_descriptions): Register new 'maint print
1169 xml-tdesc' command and give it the filename completer.
1170 * NEWS: Mention new 'maint print xml-tdesc' command.
1171
1172 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * target-descriptions.c (class tdesc_compatible_info): New class.
1175 (struct target_desc): Change type of compatible vector.
1176 (tdesc_compatible_p): Update for change in type of
1177 target_desc::compatible.
1178 (tdesc_compatible_info_list): New function.
1179 (tdesc_compatible_info_arch_name): New function.
1180 (tdesc_add_compatible): Update for change in type of
1181 target_desc::compatible.
1182 (print_c_tdesc::visit_pre): Likewise.
1183
1184 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1187 whitespace to underscore.
1188 (maint_print_c_tdesc_cmd): Use fake filename for target
1189 descriptions that came from the target.
1190 (_initialize_target_descriptions): Add filename command completion
1191 for 'maint print c-tdesc'.
1192
1193 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1194
1195 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1196 lines.
1197
1198 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1201 lines.
1202 (dwarf2_find_location_expression): Likewise.
1203 (call_site_parameter_matches): Likewise.
1204 (dwarf2_compile_expr_to_ax): Likewise.
1205 (disassemble_dwarf_expression): Likewise.
1206 (loclist_describe_location): Likewise.
1207
1208 2020-06-23 Pedro Alves <palves@redhat.com>
1209
1210 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1211 progspace-and-thread.h. Include scoped-mock-context.h instead.
1212 (register_to_value_test): Use scoped_mock_context.
1213 * regcache.c: Include "scoped-mock-context.h".
1214 (cooked_read_test): Don't error out if a target is already pushed.
1215 Use scoped_mock_context. Adjust.
1216 * scoped-mock-context.h: New file.
1217
1218 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1221 initializer.
1222 (ada_language::is_string_type_p): New member function.
1223 * c-lang.c (c_language_data): Delete la_is_string_type_p
1224 initializer.
1225 (cplus_language_data): Likewise.
1226 (asm_language_data): Likewise.
1227 (minimal_language_data): Likewise.
1228 * d-lang.c (d_language_data): Likewise.
1229 * f-lang.c (f_is_string_type_p): Delete function, implementation
1230 moved to f_language::is_string_type_p.
1231 (f_language_data): Delete la_is_string_type_p initializer.
1232 (f_language::is_string_type_p): New member function,
1233 implementation from f_is_string_type_p.
1234 * go-lang.c (go_is_string_type_p): Delete function, implementation
1235 moved to go_language::is_string_type_p.
1236 (go_language_data): Delete la_is_string_type_p initializer.
1237 (go_language::is_string_type_p): New member function,
1238 implementation from go_is_string_type_p.
1239 * language.c (language_defn::is_string_type_p): Define new member
1240 function.
1241 (default_is_string_type_p): Make static, add comment copied from
1242 header file.
1243 (unknown_language_data): Delete la_is_string_type_p initializer.
1244 (unknown_language::is_string_type_p): New member function.
1245 (auto_language_data): Delete la_is_string_type_p initializer.
1246 (auto_language::is_string_type_p): New member function.
1247 * language.h (language_data): Delete la_is_string_type_p field.
1248 (language_defn::is_string_type_p): Declare new function.
1249 (default_is_string_type_p): Delete desclaration, move comment to
1250 definition.
1251 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1252 moved to m2_language::is_string_type_p.
1253 (m2_language_data): Delete la_is_string_type_p initializer.
1254 (m2_language::is_string_type_p): New member function,
1255 implementation from m2_is_string_type_p.
1256 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1257 initializer.
1258 * opencl-lang.c (opencl_language_data): Likewise.
1259 * p-lang.c (pascal_is_string_type_p): Delete function,
1260 implementation moved to pascal_language::is_string_type_p.
1261 (pascal_language_data): Delete la_is_string_type_p initializer.
1262 (pascal_language::is_string_type_p): New member function,
1263 implementation from pascal_is_string_type_p.
1264 * rust-lang.c (rust_is_string_type_p): Delete function,
1265 implementation moved to rust_language::is_string_type_p.
1266 (rust_language_data): Delete la_is_string_type_p initializer.
1267 (rust_language::is_string_type_p): New member function,
1268 implementation from rust_is_string_type_p.
1269 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1270 is_string_type_p.
1271
1272 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * ada-lang.c (ada_language_data): Delete la_print_typedef
1275 initializer.
1276 (ada_language::print_typedef): New member function.
1277 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1278 (cplus_language_data): Likewise.
1279 (asm_language_data): Likewise.
1280 (minimal_language_data): Likewise.
1281 * d-lang.c (d_language_data): Likewise.
1282 * f-lang.c (f_language_data): Likewise.
1283 (f_language::print_typedef): New member function.
1284 * go-lang.c (go_language_data): Delete la_print_typedef
1285 initializer.
1286 * language.c (language_defn::print_typedef): Define member
1287 function.
1288 (unknown_language_data): Delete la_print_typedef initializer.
1289 (unknown_language::print_typedef): New member function.
1290 (auto_language_data): Delete la_print_typedef initializer.
1291 (auto_language::print_typedef): New member function.
1292 * language.h (language_data): Delete la_print_typedef field.
1293 (language_defn::print_typedef): Declare new member function.
1294 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1295 (default_print_typedef): Delete declaration.
1296 * m2-lang.c (m2_language_data): Delete la_print_typedef
1297 initializer.
1298 (m2_language::print_typedef): New member function.
1299 * objc-lang.c (objc_language_data): Delete la_print_typedef
1300 initializer.
1301 * opencl-lang.c (opencl_language_data): Likewise.
1302 * p-lang.c (pascal_language_data): Likewise.
1303 (pascal_language::print_typedef): New member function.
1304 * rust-lang.c (rust_print_typedef): Delete function,
1305 implementation moved to rust_language::print_typedef.
1306 (rust_language): Delete la_print_typedef initializer.
1307 (rust_language::print_typedef): New member function,
1308 implementation from rust_print_typedef.
1309 * typeprint.c (default_print_typedef): Delete.
1310
1311 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1312
1313 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1314 (ada_language::printstr): New member function.
1315 * c-lang.c (c_language_data): Delete la_printstr initializer.
1316 (cplus_language_data): Likewise.
1317 (asm_language_data): Likewise.
1318 (minimal_language_data): Likewise.
1319 * d-lang.c (d_language_data): Likewise.
1320 * f-lang.c (f_printstr): Rename to f_language::printstr.
1321 (f_language_data): Delete la_printstr initializer.
1322 (f_language::printstr): New member function, implementation from
1323 f_printstr.
1324 * go-lang.c (go_language_data): Delete la_printstr initializer.
1325 * language.c (language_defn::printstr): Define new member
1326 function.
1327 (unk_lang_printstr): Delete.
1328 (unknown_language_data): Delete la_printstr initializer.
1329 (unknown_language::printstr): New member function.
1330 (auto_language_data): Delete la_printstr initializer.
1331 (auto_language::printstr): New member function.
1332 * language.h (language_data): Delete la_printstr field.
1333 (language_defn::printstr): Declare new member function.
1334 (LA_PRINT_STRING): Update call to printstr.
1335 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1336 (m2_language_data): Delete la_printstr initializer.
1337 (m2_language::printstr): New member function, implementation from
1338 m2_printstr.
1339 * objc-lang.c (objc_language_data): Delete la_printstr
1340 initializer.
1341 * opencl-lang.c (opencl_language_data): Likewise.
1342 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1343 (pascal_language_data): Delete la_printstr initializer.
1344 (pascal_language::printstr): New member function, implementation
1345 from pascal_printstr.
1346 * p-lang.h (pascal_printstr): Delete declaration.
1347 * rust-lang.c (rust_printstr): Update header comment.
1348 (rust_language_data): Delete la_printstr initializer.
1349 (rust_language::printstr): New member function.
1350
1351 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1354 (ada_language::printchar): New member function.
1355 * c-lang.c (c_language_data): Delete la_printchar initializer.
1356 (cplus_language_data): Likewise.
1357 (asm_language_data): Likewise.
1358 (minimal_language_data): Likewise.
1359 * d-lang.c (d_language_data): Likewise.
1360 * f-lang.c (f_printchar): Rename to f_language::printchar.
1361 (f_language_data): Delete la_printchar initializer.
1362 (f_language::printchar): New member function, implementation from
1363 f_printchar.
1364 * go-lang.c (go_language_data): Delete la_printchar initializer.
1365 * language.c (unk_lang_printchar): Delete.
1366 (language_defn::printchar): Define new member function.
1367 (unknown_language_data): Delete la_printchar initializer.
1368 (unknown_language::printchar): New member function.
1369 (auto_language_data): Delete la_printchar initializer.
1370 (auto_language::printchar): New member function.
1371 * language.h (language_data): Delete la_printchar field.
1372 (language_defn::printchar): Declare new member function.
1373 (LA_PRINT_CHAR): Update call to printchar.
1374 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1375 (m2_language::printchar): New member function.
1376 * objc-lang.c (objc_language_data): Delete la_printchar
1377 initializer.
1378 * opencl-lang.c (opencl_language_data): Likewise.
1379 * p-lang.c (pascal_language_data): Delete la_printchar
1380 initializer.
1381 (pascal_language::printchar): New member function.
1382 * rust-lang.c (rust_printchar): Rename to
1383 rust_language::printchar.
1384 (rust_language_data): Delete la_printchar initializer.
1385 (rust_language::printchar): New member function, implementation
1386 from rust_printchar.
1387
1388 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1391 (ada_language_data): Delete la_emitchar initializer.
1392 (ada_language::emitchar): New member function, implementation from
1393 emit_char.
1394 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1395 (cplus_language_data): Likewise.
1396 (asm_language_data): Likewise.
1397 (minimal_language_data): Likewise.
1398 * d-lang.c (d_language_data): Likewise.
1399 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1400 (f_language_data): Delete la_emitchar initializer.
1401 (f_language::emitchar): New member function, implementation from
1402 f_emit_char.
1403 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1404 * language.c (unk_lang_emit_char): Delete.
1405 (language_defn::emitchar): New member function definition.
1406 (unknown_language_data): Delete la_emitchar initializer.
1407 (unknown_language::emitchar): New member function.
1408 (auto_language_data): Delete la_emitchar initializer.
1409 (auto_language::emitchar): New member function.
1410 * language.h (language_data): Delete la_emitchar field.
1411 (language_defn::emitchar): New member field declaration.
1412 (LA_EMIT_CHAR): Update call to emitchar.
1413 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1414 (m2_language_data): Delete la_emitchar initializer.
1415 (m2_language::emitchar): New member function, implementation from
1416 m2_emit_char.
1417 * objc-lang.c (objc_language_data): Delete la_emitchar
1418 initializer.
1419 * opencl-lang.c (opencl_language_data): Likewise.
1420 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1421 (pascal_language_data): Delete la_emitchar initializer.
1422 (pascal_language::emitchar): New member function, implementation
1423 from pascal_emit_char.
1424 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1425 (rust_language_data): Delete la_emitchar initializer.
1426 (rust_language::emitchar): New member function, implementation
1427 from rust_emitchar.
1428
1429 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1432 (ada_language_data): Delete la_post_parser initializer.
1433 (ada_language::post_parser): New member function.
1434 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1435 (cplus_language_data): Likewise.
1436 (asm_language_data): Likewise.
1437 (minimal_language_data): Likewise.
1438 * d-lang.c (d_language_data): Likewise.
1439 * f-lang.c (f_language_data): Likewise.
1440 * go-lang.c (go_language_data): Likewise.
1441 * language.c (unknown_language_data): Likewise.
1442 (auto_language_data): Likewise.
1443 * language.h (language_data): Delete la_post_parser field.
1444 (language_defn::post_parser): New member function.
1445 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1446 * objc-lang.c (objc_language_data): Likewise.
1447 * opencl-lang.c (opencl_language_data): Likewise.
1448 * p-lang.c (pascal_language_data): Likewise.
1449 * parse.c (parse_exp_in_context): Update call to post_parser.
1450 (null_post_parser): Delete definition.
1451 * parser-defs.h (null_post_parser): Delete declaration.
1452 * rust-lang.c (rust_language_data): Delete la_post_parser
1453 initializer.
1454
1455 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * ada-lang.c (parse): Rename to ada_language::parser.
1458 (ada_language_data): Delete la_parser initializer.
1459 (ada_language::parser): New member function, implementation from
1460 parse.
1461 * c-lang.c (c_language_data): Delete la_parser initializer.
1462 (cplus_language_data): Likewise.
1463 (asm_language_data): Likewise.
1464 (minimal_language_data): Likewise.
1465 * d-lang.c (d_language_data): Likewise.
1466 (d_language::parser): New member function.
1467 * f-lang.c (f_language_data): Delete la_parser initializer.
1468 (f_language::parser): New member function.
1469 * go-lang.c (go_language_data): Delete la_parser initializer.
1470 (go_language::parser): New member function.
1471 * language.c (unk_lang_parser): Delete.
1472 (language_defn::parser): Define new member function.
1473 (unknown_language_data): Delete la_parser initializer.
1474 (unknown_language::parser): New member function.
1475 (auto_language_data): Delete la_parser initializer.
1476 (auto_language::parser): New member function.
1477 * language.h (language_data): Delete la_parser field.
1478 (language_defn::parser): Declare new member function.
1479 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1480 (m2_language::parser): New member function.
1481 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1482 * opencl-lang.c (opencl_language_data): Likewise.
1483 * p-lang.c (pascal_language_data): Likewise.
1484 (pascal_language::parser): New member function.
1485 * parse.c (parse_exp_in_context): Update call to parser.
1486 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1487 (rust_language::parser): New member function.
1488
1489 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * top.c (print_gdb_configuration): Print --with-python-libdir
1492 configuration value.
1493
1494 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1495
1496 * NEWS: Mention change to the alias command.
1497
1498 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1499
1500 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1501 (alias_command_completer)
1502 (make_alias_options_def_group): New functions.
1503 (alias_opts, alias_option_defs): New struct and array.
1504 (alias_usage_error): Update usage.
1505 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1506 Use option framework.
1507 (_initialize_cli_cmds): Update alias command help.
1508 Update aliases command help.
1509 (show_user):
1510 Add NULL for new default_args lookup_cmd argument.
1511 (valid_command_p): Rename to validate_aliased_command.
1512 Add NULL for new default_args lookup_cmd argument. Verify that the
1513 aliased_command has no default args.
1514 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1515 (lookup_cmd_1, lookup_cmd): New argument default_args.
1516 (add_alias_cmd):
1517 Add NULL for new default_args lookup_cmd argument.
1518 (print_help_for_command): Show default args under the layout
1519 alias some_alias = some_aliased_cmd some_alias_default_arg.
1520 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1521 xfree default_args in destructor.
1522 * cli/cli-script.c (process_next_line, do_define_command):
1523 Add NULL for new default_args lookup_cmd argument.
1524 * command.h: Declare new default_args argument in lookup_cmd
1525 and lookup_cmd_1.
1526 * completer.c (complete_line_internal_1):
1527 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1528 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1529 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1530 Likewise.
1531 * infcmd.c (_initialize_infcmd): Likewise.
1532 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1533 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1534 * python/py-param.c (add_setshow_generic): Likewise.
1535 * remote.c (_initialize_remote): Likewise.
1536 * top.c (execute_command): Prepend default_args if command has some.
1537 (set_verbose):
1538 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1539 * tracepoint.c (validate_actionline, encode_actions_1):
1540 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1541
1542 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1543
1544 * jit.c (jit_read_descriptor): Use bool as the return type.
1545 (jit_breakpoint_re_set_internal): Use bool as the return type.
1546 Invert the return value logic; return true if the jit breakpoint
1547 has been successfully initialized.
1548 (jit_inferior_init): Update the call to
1549 jit_breakpoint_re_set_internal.
1550
1551 2020-06-22 Pedro Alves <palves@redhat.com>
1552
1553 PR gdb/25939
1554 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1555 Use the current inferior instead. Don't return
1556 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1557 wait again.
1558 * sol-thread.c (sol_thread_target::wait): Don't reference
1559 inferior_ptid.
1560 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1561 (sol_update_thread_list_callback): Use the current inferior's pid
1562 instead of inferior_ptid.
1563
1564 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1565
1566 * procfs.c: Cleanup many comments.
1567
1568 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1569 (AFTER_WATCHFLAG): Replace by value.
1570
1571 (MAIN_PROC_NAME_FORMAT): Inline ...
1572 (create_procinfo): ... here.
1573
1574 (procfs_debug_inferior): Remove SYS_exec handling.
1575 (syscall_is_exec): Likewise.
1576 (procfs_set_exec_trap): Likewise.
1577
1578 (syscall_is_lwp_exit): Inline in callers.
1579 (syscall_is_exit): Likewise.
1580 (syscall_is_exec): Likewise.
1581 (syscall_is_lwp_create): Likewise.
1582
1583 (invalidate_cache): Remove #if 0 code.
1584
1585 (make_signal_thread_runnable): Remove.
1586 (procfs_target::resume): Remove #if 0 code.
1587
1588 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1589
1590 PR gdb/25939
1591 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1592 call ...
1593 (procfs_target::create_inferior): ... here.
1594
1595 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1596
1597 * exec.c (validate_exec_file): Ensure the build-id is up to
1598 date by calling reopen_exec_file (that checks file timestamp
1599 to decide to re-read the file).
1600
1601 2020-06-18 Pedro Alves <palves@redhat.com>
1602
1603 PR gdb/25412
1604 * gdbthread.h (delete_thread, delete_thread_silent)
1605 (find_thread_ptid): Update comments.
1606 * thread.c (current_thread_): New global.
1607 (is_current_thread): Move higher, and reimplement.
1608 (inferior_thread): Reimplement.
1609 (set_thread_exited): Use bool. Add assertions.
1610 (add_thread_silent): Simplify thread-reuse handling by always
1611 calling delete_thread.
1612 (delete_thread): Remove intro comment.
1613 (find_thread_ptid): Skip exited threads.
1614 (switch_to_thread_no_regs): Write to current_thread_.
1615 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1616 INFERIOR_PTID. Clear current_thread_.
1617
1618 2020-06-18 Pedro Alves <palves@redhat.com>
1619
1620 * aix-thread.c (pd_update): Use switch_to_thread.
1621
1622 2020-06-18 Pedro Alves <palves@redhat.com>
1623
1624 * ravenscar-thread.c (ravenscar_thread_target): Update.
1625 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1626 (ravenscar_thread_target::add_active_thread): ... this. Don't
1627 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1628 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1629
1630 2020-06-18 Pedro Alves <palves@redhat.com>
1631
1632 * nat/windows-nat.c (current_windows_thread): Remove.
1633 * nat/windows-nat.h (current_windows_thread): Remove.
1634 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1635 Adjust.
1636 (display_selectors): Adjust to fetch the current
1637 windows_thread_info based on inferior_ptid.
1638 (fake_create_process): No longer write to current_windows_thread.
1639 (windows_nat_target::get_windows_debug_event):
1640 Don't set inferior_ptid or current_windows_thread.
1641 (windows_nat_target::wait): Adjust to not rely on
1642 current_windows_thread.
1643 (do_initial_windows_stuff): Now a method of windows_nat_target.
1644 Switch to the last_ptid thread.
1645 (windows_nat_target::attach): Adjust.
1646 (windows_nat_target::detach): Use switch_to_no_thread instead of
1647 writing to inferior_ptid directly.
1648 (windows_nat_target::create_inferior): Adjust.
1649
1650 2020-06-18 Pedro Alves <palves@redhat.com>
1651
1652 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1653
1654 2020-06-18 Pedro Alves <palves@redhat.com>
1655
1656 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1657 after creating it, instead of writing to inferior_ptid. Don't
1658 write to inferior_ptid.
1659
1660 2020-06-18 Pedro Alves <palves@redhat.com>
1661
1662 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1663
1664 2020-06-18 Pedro Alves <palves@redhat.com>
1665
1666 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1667 it, instead of writing to inferior_ptid.
1668
1669 2020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1672 to inferior_ptid.
1673
1674 2020-06-18 Pedro Alves <palves@redhat.com>
1675
1676 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1677 instead of writing to inferior_ptid directly.
1678
1679 2020-06-18 Pedro Alves <palves@redhat.com>
1680
1681 * corelow.c (core_target::close): Use switch_to_no_thread instead
1682 of writing to inferior_ptid directly.
1683 (add_to_thread_list, core_target_open): Use switch_to_thread
1684 instead of writing to inferior_ptid directly.
1685
1686 2020-06-18 Pedro Alves <palves@redhat.com>
1687
1688 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1689 inferior_ptid.
1690 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1691 inferior_ptid.
1692 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1693 inferior_ptid directly.
1694 (darwin_nat_target::init_thread_list): Switch to thread, instead
1695 of writing to inferior_ptid.
1696 (darwin_nat_target::attach): Don't write to inferior_ptid.
1697 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1698
1699 2020-06-18 Pedro Alves <palves@redhat.com>
1700
1701 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1702 thread.
1703 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1704 Instead use switch_to_thread.
1705 (gnu_nat_target::detach): Use switch_to_no_thread
1706 instead of writing to inferior_ptid directly. Used passed-in
1707 inferior instead of looking up the inferior by pid.
1708
1709 2020-06-18 Pedro Alves <palves@redhat.com>
1710
1711 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1712 inferior_ptid.
1713
1714 2020-06-18 Pedro Alves <palves@redhat.com>
1715
1716 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1717 inferior_ptid.
1718 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1719 thread.
1720 (nto_procfs_target::detach): Avoid referencing
1721 inferior_ptid. Use switch_to_no_thread instead of writing to
1722 inferior_ptid directly.
1723 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1724 instead of writing to inferior_ptid directly.
1725 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1726 to thread.
1727
1728 2020-06-18 Pedro Alves <palves@redhat.com>
1729
1730 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1731 after creating it, instead of writing to inferior_ptid.
1732 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1733 to inferior_ptid directly.
1734 (gdbsim_target::wait): Don't write to inferior_ptid.
1735
1736 2020-06-18 Pedro Alves <palves@redhat.com>
1737
1738 * remote.c (remote_target::remote_notice_new_inferior): Use
1739 switch_to_thread instead of writing to inferior_ptid directly.
1740 (remote_target::add_current_inferior_and_thread): Use
1741 switch_to_no_thread instead of writing to inferior_ptid directly.
1742 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1743 and switch_to_thread instead of using set_current_inferior or
1744 writing to inferior_ptid directly.
1745
1746 2020-06-18 Pedro Alves <palves@redhat.com>
1747
1748 * tracectf.c (ctf_target_open): Switch to added thread instead of
1749 writing to inferior_ptid directly.
1750 (ctf_target::close): Use switch_to_no_thread instead of writing to
1751 inferior_ptid directly.
1752
1753 2020-06-18 Pedro Alves <palves@redhat.com>
1754
1755 * tracefile-tfile.c (tfile_target_open): Don't write to
1756 inferior_ptid directly, instead switch to added thread.
1757 (tfile_target::close): Use switch_to_no_thread instead of writing
1758 to inferior_ptid directly.
1759
1760 2020-06-18 Pedro Alves <palves@redhat.com>
1761
1762 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1763 (procfs_target::detach): Use switch_to_no_thread
1764 instead of writing to inferior_ptid directly.
1765 (do_attach): Change return type to void. Switch to the added
1766 thread.
1767 (procfs_target::create_inferior): Switch to the added thread.
1768 (procfs_do_thread_registers): Don't write to inferior_ptid.
1769
1770 2020-06-18 Pedro Alves <palves@redhat.com>
1771
1772 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1773 of writing to inferior_ptid.
1774 (scoped_restore_exited_inferior): Delete.
1775 (handle_vfork_child_exec_or_exit): Simplify using
1776 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1777 instead of writing to inferior_ptid.
1778 (THREAD_STOPPED_BY): Delete.
1779 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1780 (thread_stopped_by_hw_breakpoint): Delete.
1781 (save_waitstatus): Use
1782 scoped_restore_current_thread+switch_to_thread, and call
1783 target_stopped_by_watchpoint instead of
1784 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1785 instead of thread_stopped_by_sw_breakpoint, and
1786 target_stopped_by_hw_breakpoint instead of
1787 thread_stopped_by_hw_breakpoint.
1788 (handle_inferior_event)
1789 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1790 inferior_ptid directly, nor
1791 set_current_inferior/set_current_program_space. Use
1792 switch_to_thread / switch_to_inferior_no_thread instead.
1793
1794 2020-06-18 Pedro Alves <palves@redhat.com>
1795
1796 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1797 instead of writing to inferior_ptid.
1798
1799 2020-06-18 Pedro Alves <palves@redhat.com>
1800
1801 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1802 added thread.
1803 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1804 to the added thread.
1805 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1806 instead of writing to inferior_ptid.
1807
1808 2020-06-18 Pedro Alves <palves@redhat.com>
1809
1810 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1811 (register_to_value_test): Mock a program_space too. Heap-allocate
1812 the address space. Don't write to inferior_ptid. Use
1813 switch_to_thread instead.
1814
1815 2020-06-18 Pedro Alves <palves@redhat.com>
1816
1817 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1818 Delete.
1819 (find_signalled_thread()): New, factored out from
1820 linux_make_corefile_notes and adjusted to handle exited threads.
1821 (linux_make_corefile_notes): Adjust to use the new
1822 find_signalled_thread.
1823
1824 2020-06-18 Pedro Alves <palves@redhat.com>
1825
1826 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1827 of saving/restoring inferior_ptid.
1828
1829 2020-06-17 Tom Tromey <tom@tromey.com>
1830
1831 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1832 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1833 declare.
1834 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1835
1836 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1839 of partial symtabs.
1840
1841 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * regformats/reg-arm.dat: Remove.
1844 * regformats/reg-bfin.dat: Remove.
1845 * regformats/reg-cris.dat: Remove.
1846 * regformats/reg-crisv32.dat: Remove.
1847 * regformats/reg-m32r.dat: Remove.
1848 * regformats/reg-tilegx.dat: Remove.
1849 * regformats/reg-tilegx32.dat: Remove.
1850
1851 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1852
1853 * features/Makefile (WHICH): Remove arm files.
1854 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1855 * regformats/arm/arm-with-neon.dat: Remove.
1856 * regformats/arm/arm-with-vfpv2.dat: Remove.
1857 * regformats/arm/arm-with-vfpv3.dat: Remove.
1858
1859 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1860
1861 * features/Makefile (XMLTOC): Remove rx.xml.
1862
1863 2020-06-17 Pedro Alves <palves@redhat.com>
1864
1865 * gdbthread.h (thread_control_state) <trap_expected> Update
1866 comments.
1867
1868 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1871 ada_language::lookup_symbol_nonlocal.
1872 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1873 (ada_language::lookup_symbol_nonlocal): New member function,
1874 implementation from ada_lookup_symbol_nonlocal.
1875 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1876 initializer.
1877 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1878 initializer.
1879 (cplus_language::lookup_symbol_nonlocal): New member function.
1880 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1881 (minimal_language_data) Likewise.
1882 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1883 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1884 initializer.
1885 (d_language::lookup_symbol_nonlocal): New member function.
1886 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1887 initializer.
1888 (f_language::lookup_symbol_nonlocal): New member function.
1889 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1890 initializer.
1891 * language.c (unknown_language_data): Likewise.
1892 (auto_language_data): Likewise.
1893 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1894 field.
1895 (language_defn::lookup_symbol_nonlocal): New member function.
1896 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1897 initializer.
1898 * objc-lang.c (objc_language_data): Likewise.
1899 * opencl-lang.c (opencl_language_data): Likewise.
1900 * p-lang.c (pascal_language_data): Likewise.
1901 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1902 rust_language::lookup_symbol_nonlocal.
1903 (rust_language_data): Delete la_lookup_symbol_nonlocal
1904 initializer.
1905 (rust_language::lookup_symbol_nonlocal): New member function,
1906 implementation from rust_lookup_symbol_nonlocal.
1907 * symtab.c (lookup_symbol_aux): Update call to
1908 lookup_symbol_nonlocal.
1909 (basic_lookup_symbol_nonlocal): Rename to...
1910 (language_defn::lookup_symbol_nonlocal): ...this, and update
1911 header comment. Remove language_defn parameter, and replace with
1912 uses of `this'.
1913 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1914
1915 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1916
1917 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1918 initializer.
1919 (ada_language::value_print_inner): New member function.
1920 * c-lang.c (c_language_data): Delete la_value_print_inner
1921 initializer.
1922 (cplus_language_data): Likewise.
1923 (asm_language_data): Likewise.
1924 (minimal_language_data): Likewise.
1925 * d-lang.c (d_language_data): Likewise.
1926 (d_language::value_print_inner): New member function.
1927 * f-lang.c (f_language_data): Delete la_value_print_inner
1928 initializer.
1929 (f_language::value_print_inner): New member function.
1930 * f-lang.h (f_value_print_innner): Rename to...
1931 (f_value_print_inner): ...this (note spelling of 'inner').
1932 * f-valprint.c (f_value_print_innner): Rename to...
1933 (f_value_print_inner): ...this (note spelling of 'inner').
1934 * go-lang.c (go_language_data): Delete la_value_print_inner
1935 initializer.
1936 (go_language::value_print_inner): New member function.
1937 * language.c (language_defn::value_print_inner): Define new member
1938 function.
1939 (unk_lang_value_print_inner): Delete.
1940 (unknown_language_data): Delete la_value_print_inner initializer.
1941 (unknown_language::value_print_inner): New member function.
1942 (auto_language_data): Delete la_value_print_inner initializer.
1943 (auto_language::value_print_inner): New member function.
1944 * language.h (language_data): Delete la_value_print_inner field.
1945 (language_defn::value_print_inner): Delcare new member function.
1946 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1947 initializer.
1948 (m2_language::value_print_inner): New member function.
1949 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1950 initializer.
1951 * opencl-lang.c (opencl_language_data): Likewise.
1952 * p-lang.c (pascal_language_data): Likewise.
1953 (pascal_language::value_print_inner): New member function.
1954 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1955 initializer.
1956 (rust_language::value_print_inner): New member function.
1957 * valprint.c (do_val_print): Update call to value_print_inner.
1958
1959 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * ada-lang.c (ada_language_data): Delete la_value_print
1962 initializer.
1963 (ada_language::value_print): New member function.
1964 * c-lang.c (c_language_data): Delete la_value_print initializer.
1965 (cplus_language_data): Likewise.
1966 (asm_language_data): Likewise.
1967 (minimal_language_data): Likewise.
1968 * d-lang.c (d_language_data): Likewise.
1969 * f-lang.c (f_language_data): Likewise.
1970 * go-lang.c (go_language_data): Likewise.
1971 * language.c (unk_lang_value_print): Delete.
1972 (language_defn::value_print): Define new member function.
1973 (unknown_language_data): Delete la_value_print initializer.
1974 (unknown_language::value_print): New member function.
1975 (auto_language_data): Delete la_value_print initializer.
1976 (auto_language::value_print): New member function.
1977 * language.h (language_data): Delete la_value_print field.
1978 (language_defn::value_print): Declare new member function.
1979 (LA_VALUE_PRINT): Update call to value_print.
1980 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1981 * objc-lang.c (objc_language_data): Likewise.
1982 * opencl-lang.c (opencl_language_data): Likewise.
1983 * p-lang.c (pascal_language_data): Likewise.
1984 (pascal_language::value_print): New member function.
1985 * rust-lang.c (rust_language_data): Delete la_value_print
1986 initializer.
1987
1988 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * ada-lang.c (ada_watch_location_expression): Rename to
1991 ada_language::watch_location_expression.
1992 (ada_language_data): Delete la_watch_location_expression
1993 initializer.
1994 (ada_language::watch_location_expression): New member function,
1995 implementation from ada_watch_location_expression.
1996 * breakpoint.c (watch_command_1): Update call to
1997 watch_location_expression.
1998 * c-lang.c (c_watch_location_expression): Rename to
1999 language_defn::watch_location_expression.
2000 (c_language_data): Delete la_watch_location_expression
2001 initializer.
2002 (cplus_language_data): Likewise.
2003 (asm_language_data): Likewise.
2004 (minimal_language_data): Likewise.
2005 * c-lang.h (c_watch_location_expression): Delete declaration.
2006 * d-lang.c (d_language_data): Delete la_watch_location_expression
2007 initializer.
2008 * f-lang.c (f_language_data): Likewise.
2009 * go-lang.c (go_language_data): Likewise.
2010 * language.c (language_defn::watch_location_expression): Member
2011 function implementation from c_watch_location_expression.
2012 (unknown_language_data): Delete la_watch_location_expression
2013 initializer.
2014 (auto_language_data): Likewise.
2015 * language.h (language_data): Delete la_watch_location_expression
2016 field.
2017 (language_defn::watch_location_expression): Declare new member
2018 function.
2019 * m2-lang.c (m2_language_data): Delete
2020 la_watch_location_expression initializer.
2021 * objc-lang.c (objc_language_data): Likewise.
2022 * opencl-lang.c (opencl_language_data): Likewise.
2023 * p-lang.c (pascal_language_data): Likewise.
2024 * rust-lang.c (rust_watch_location_expression): Rename to
2025 rust_language::watch_location_expression.
2026 (rust_language_data): Delete la_watch_location_expression
2027 initializer.
2028 (rust_language::watch_location_expression): New member function,
2029 implementation from rust_watch_location_expression.
2030
2031 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2034 ada_language::collect_symbol_completion_matches.
2035 (ada_language_data): Delete la_collect_symbol_completion_matches
2036 initializer.
2037 (ada_language::collect_symbol_completion_matches): New member
2038 function, implementation from
2039 ada_collect_symbol_completion_matches.
2040 * c-lang.c (c_language_data): Delete
2041 la_collect_symbol_completion_matches initializer.
2042 (cplus_language_data): Likewise.
2043 (asm_language_data): Likewise.
2044 (minimal_language_data): Likewise.
2045 * d-lang.c (d_language_data): Likewise.
2046 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2047 f_language::collect_symbol_completion_matches.
2048 (f_language_data): Delete la_collect_symbol_completion_matches
2049 initializer.
2050 (f_language::collect_symbol_completion_matches) New member
2051 function, implementation from f_collect_symbol_completion_matches.
2052 * go-lang.c (go_language_data): Delete
2053 la_collect_symbol_completion_matches initializer.
2054 * language.c (unknown_language_data): Likewise.
2055 (auto_language_data): Likewise.
2056 * language.h (language_data): Delete
2057 la_collect_symbol_completion_matches field.
2058 (language_defn::collect_symbol_completion_matches): New member
2059 function.
2060 * m2-lang.c (m2_language_data): Delete
2061 la_collect_symbol_completion_matches initializer.
2062 * objc-lang.c (objc_language_data): Likewise.
2063 * opencl-lang.c (opencl_language_data): Likewise.
2064 * p-lang.c (pascal_language_data): Likewise.
2065 * rust-lang.c (rust_language_data): Likewise.
2066 * symtab.c (default_collect_symbol_completion_matches): Delete.
2067 (collect_symbol_completion_matches): Update call to
2068 collect_symbol_completion_matches.
2069 (collect_symbol_completion_matches_type): Likewise.
2070 * symtab.h (default_collect_symbol_completion_matches): Delete
2071 declaration.
2072
2073 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2076 (ada_language_data): Delete la_word_break_characters initializer.
2077 (ada_language::word_break_characters): New member function.
2078 * c-lang.c (c_language_data): Delete la_word_break_characters
2079 initializer.
2080 (cplus_language_data): Likewise.
2081 (asm_language_data): Likewise.
2082 (minimal_language_data): Likewise.
2083 * completer.c: Update global comment.
2084 (advance_to_expression_complete_word_point): Update call to
2085 word_break_characters.
2086 (complete_files_symbols): Likewise.
2087 (complete_line_internal_1): Likewise.
2088 (default_completer_handle_brkchars): Likewise.
2089 (skip_quoted_chars): Likewise.
2090 * d-lang.c (d_language_data): Delete la_word_break_characters
2091 initializer.
2092 * f-lang.c (f_word_break_characters): Delete.
2093 (f_language_data): Delete la_word_break_characters initializer.
2094 (f_language::word_break_characters): New member function.
2095 * go-lang.c (go_language_data): Delete la_word_break_characters
2096 initializer.
2097 * language.c (unknown_language_data): Likewise.
2098 (auto_language_data): Likewise.
2099 * language.h (default_word_break_characters): Move declaration to
2100 earlier in the file.
2101 (language_data): Delete la_word_break_characters field.
2102 (language_defn::word_break_characters): New member function.
2103 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2104 initializer.
2105 * objc-lang.c (objc_language_data): Likewise.
2106 * opencl-lang.c (opencl_language_data): Likewise.
2107 * p-lang.c (pascal_language_data): Likewise.
2108 * rust-lang.c (rust_language_data): Likewise.
2109
2110 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2113 (ada_language_data): Delete la_get_symbol_name_matcher
2114 initializer.
2115 (language_defn::get_symbol_name_matcher_inner): New member
2116 function.
2117 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2118 initializer.
2119 (cplus_language_data): Likewise.
2120 (cplus_language::get_symbol_name_matcher_inner): New member
2121 function.
2122 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2123 (minimal_language_data): Likewise.
2124 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2125 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2126 initializer.
2127 * dictionary.c (iter_match_first_hashed): Update call to
2128 get_symbol_name_matcher.
2129 (iter_match_next_hashed): Likewise.
2130 (iter_match_next_linear): Likewise.
2131 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2132 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2133 initializer.
2134 (f_language::get_symbol_name_matcher_inner): New member function.
2135 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2136 initializer.
2137 * language.c (default_symbol_name_matcher): Update header comment,
2138 make static.
2139 (language_defn::get_symbol_name_matcher): New definition.
2140 (language_defn::get_symbol_name_matcher_inner): Likewise.
2141 (get_symbol_name_matcher): Delete.
2142 (unknown_language_data): Delete la_get_symbol_name_matcher
2143 initializer.
2144 (auto_language_data): Likewise.
2145 * language.h (language_data): Delete la_get_symbol_name_matcher
2146 field.
2147 (language_defn::get_symbol_name_matcher): New member function.
2148 (language_defn::get_symbol_name_matcher_inner): Likewise.
2149 (default_symbol_name_matcher): Delete declaration.
2150 * linespec.c (find_methods): Update call to
2151 get_symbol_name_matcher.
2152 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2153 initializer.
2154 * minsyms.c (lookup_minimal_symbol): Update call to
2155 get_symbol_name_matcher.
2156 (iterate_over_minimal_symbols): Likewise.
2157 * objc-lang.c (objc_language_data): Delete
2158 la_get_symbol_name_matcher initializer.
2159 * opencl-lang.c (opencl_language_data): Likewise.
2160 * p-lang.c (pascal_language_data): Likewise.
2161 * psymtab.c (psymbol_name_matches): Update call to
2162 get_symbol_name_matcher.
2163 * rust-lang.c (rust_language_data): Delete
2164 la_get_symbol_name_matcher initializer.
2165 * symtab.c (symbol_matches_search_name): Update call to
2166 get_symbol_name_matcher.
2167 (compare_symbol_name): Likewise.
2168
2169 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * ada-lang.c (ada_language_data): Delete la_compute_program
2172 initializer.
2173 * c-lang.c (c_language_data): Likewise.
2174 (c_language::compute_program): New member function.
2175 (cplus_language_data): Delete la_compute_program initializer.
2176 (cplus_language::compute_program): New member function.
2177 (asm_language_data): Delete la_compute_program initializer.
2178 (minimal_language_data): Likewise.
2179 * c-lang.h (c_compute_program): Update comment.
2180 (cplus_compute_program): Likewise.
2181 * compile/compile-c-support.c (c_compute_program): Likewise.
2182 (cplus_compute_program): Likewise.
2183 * compile/compile.c (compile_to_object): Update call to
2184 la_compute_program.
2185 * d-lang.c (d_language_data): Delete la_compute_program
2186 initializer.
2187 * f-lang.c (f_language_data): Likewise.
2188 * go-lang.c (go_language_data): Likewise.
2189 * language.c (unknown_language_data): Likewise.
2190 (auto_language_data): Likewise.
2191 * language.h (language_data): Delete la_compute_program field.
2192 (language_defn::compute_program): New member function.
2193 * m2-lang.c (m2_language_data): Delete la_compute_program
2194 initializer.
2195 * objc-lang.c (objc_language_data): Likewise.
2196 * opencl-lang.c (opencl_language_data): Likewise.
2197 * p-lang.c (pascal_language_data): Likewise.
2198 * rust-lang.c (rust_language_data): Likewise.
2199
2200 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * ada-lang.c (ada_language_data) Delete
2203 la_class_name_from_physname initializer.
2204 * c-lang.c (c_language_data): Likewise.
2205 (cplus_language_data): Likewise.
2206 (cplus_language::class_name_from_physname): New member function.
2207 (asm_language_data): Delete la_class_name_from_physname
2208 initializer.
2209 (minimal_language_data): Likewise.
2210 * d-lang.c (d_language_data): Likewise.
2211 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2212 method on language_defn class.
2213 (guess_full_die_structure_name): Likewise.
2214 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2215 initializer.
2216 * go-lang.c (go_language_data): Likewise.
2217 * language.c (language_class_name_from_physname): Delete.
2218 (unk_lang_class_name): Delete.
2219 (unknown_language_data): Delete la_class_name_from_physname
2220 initializer.
2221 (auto_language_data): Likewise.
2222 * language.h (language_data): Delete la_class_name_from_physname
2223 field.
2224 (language_defn::class_name_from_physname): New function.
2225 (language_class_name_from_physname): Delete declaration.
2226 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2227 initializer.
2228 * objc-lang.c (objc_language_data): Likewise.
2229 * opencl-lang.c (opencl_language_data): Likewise.
2230 * p-lang.c (pascal_language_data): Likewise.
2231 * rust-lang.c (rust_language_data): Likewise.
2232
2233 2020-06-16 Tom Tromey <tom@tromey.com>
2234
2235 * tui/tui-data.h (STATUS_NAME): New macro.
2236 * tui/tui-layout.c (tui_remove_some_windows)
2237 (initialize_known_windows, tui_register_window)
2238 (tui_layout_split::remove_windows, initialize_layouts)
2239 (tui_new_layout_command): Don't use hard-coded window names.
2240
2241 2020-06-16 Tom Tromey <tom@tromey.com>
2242
2243 PR tui/25348:
2244 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2245 tui_initialize_readline. Only run once. Call rl_initialize.
2246 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2247 tui_initialize_readline.
2248 * tui/tui-io.c (tui_setup_io): Call
2249 tui_ensure_readline_initialized.
2250 * tui/tui-interp.c (tui_interp::init): Update.
2251
2252 2020-06-16 Tom Tromey <tom@tromey.com>
2253
2254 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2255 Also preserve the status window.
2256
2257 2020-06-16 Tom Tromey <tom@tromey.com>
2258
2259 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2260 where m_window==nullptr.
2261
2262 2020-06-15 Tom Tromey <tromey@adacore.com>
2263
2264 * windows-nat.c (windows_nat::handle_output_debug_string):
2265 Update.
2266 (windows_nat::handle_ms_vc_exception): Update.
2267 * target.h (target_read_string): Change API.
2268 * target.c (target_read_string): Change API.
2269 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2270 Update.
2271 * solib-frv.c (frv_current_sos): Update.
2272 * solib-dsbt.c (dsbt_current_sos): Update.
2273 * solib-darwin.c (darwin_current_sos): Update.
2274 * linux-thread-db.c (inferior_has_bug): Update.
2275 * expprint.c (print_subexp_standard): Update.
2276 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2277 (ada_exception_message_1): Update.
2278
2279 2020-06-15 Tom Tromey <tromey@adacore.com>
2280
2281 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2282
2283 2020-06-15 Tom Tromey <tromey@adacore.com>
2284
2285 * valprint.c (read_string): Update comment.
2286 * target.c (MIN): Remove.
2287 (target_read_string): Rewrite.
2288
2289 2020-06-15 Tom Tromey <tromey@adacore.com>
2290
2291 * corefile.c (read_memory_string): Remove.
2292 * ada-valprint.c (ada_value_print_ptr): Update.
2293 * ada-lang.h (ada_tag_name): Change return type.
2294 * ada-lang.c (type_from_tag): Update.
2295 (ada_tag_name_from_tsd): Change return type. Use
2296 target_read_string.
2297 (ada_tag_name): Likewise.
2298 * gdbcore.h (read_memory_string): Don't declare.
2299
2300 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2301
2302 * symtab.c (rbreak_command): Ignore Windows drive colon.
2303
2304 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2305
2306 * NEWS: Mention removed GDBserver host support.
2307
2308 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2309
2310 * features/riscv/rebuild-csr-xml.sh: Updated.
2311
2312 2020-06-11 Tom Tromey <tom@tromey.com>
2313
2314 PR gdb/18318:
2315 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2316
2317 2020-06-09 Jonny Grant <jg@jguk.org>
2318 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2319
2320 * main.c (captured_main_1): Don't print new line after help.
2321 (print_gdb_help): add mailing list and IRC channel information
2322 to --help. Add new lines between items in the footer. Remove
2323 quotes around bug url.
2324
2325 2020-06-11 Keith Seitz <keiths@redhat.com>
2326
2327 PR gdb/21356
2328 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2329 Resolve typedefs for type length calculations.
2330
2331 2020-06-10 Tom de Vries <tdevries@suse.de>
2332
2333 PR ada/24713
2334 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2335 (write_psymbols): Enable .gdb_index for ada.
2336 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2337 ada.
2338
2339 2020-06-10 Tom de Vries <tdevries@suse.de>
2340
2341 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2342 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2343 namei" instead of "const char *name" argument.
2344 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2345 dw2_symtab_iter_init.
2346
2347 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2348
2349 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2350 to use type::field and field::type instead.
2351
2352 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2353
2354 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2355 to use field::type instead.
2356
2357 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * gdbtypes.h (struct field) <type, set_type>: New methods.
2360 Rename `type` field to...
2361 <m_type>: ... this. Change references throughout to use type or
2362 set_type methods.
2363 (FIELD_TYPE): Use field::type. Change call sites that modify
2364 the field's type to use field::set_type instead.
2365
2366 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2369 to use type::index_type instead.
2370
2371 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2372
2373 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2374 methods.
2375 (TYPE_INDEX_TYPE): Use type::index_type.
2376 * gdbtypes.c (create_array_type_with_stride): Likewise.
2377
2378 2020-06-07 Tom Tromey <tom@tromey.com>
2379
2380 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2381 parameter.
2382 (generic_value_print): Update.
2383
2384 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 Revert commit 982a38f60b0.
2387 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2388
2389 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2390
2391 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2392 avoid use after free.
2393
2394 2020-06-05 Tom de Vries <tdevries@suse.de>
2395
2396 * NEWS: Fix typos.
2397
2398 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2401 the per_bfd object.
2402 (dwarf2_read_debug_names): Likewise.
2403 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2404 object when re-using a per_bfd object with an index.
2405
2406 2020-06-03 Tom de Vries <tdevries@suse.de>
2407
2408 PR symtab/26046
2409 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2410 children for C++.
2411 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2412 DW_TAG_subprogram.
2413
2414 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * ada-lang.c (ada_language_data): Delete skip_trampoline
2417 initializer.
2418 * c-lang.c (c_language_data): Likewise.
2419 (cplus_language_data): Likewise.
2420 (cplus_language::skip_trampoline): New member function.
2421 (asm_language_data): Delete skip_trampoline initializer.
2422 (minimal_language_data): Likewise.
2423 * d-lang.c (d_language_data): Likewise.
2424 * f-lang.c (f_language_data): Likewise.
2425 * go-lang.c (go_language_data): Likewise.
2426 * language.c (unk_lang_trampoline): Delete function.
2427 (skip_language_trampoline): Update.
2428 (unknown_language_data): Delete skip_trampoline initializer.
2429 (auto_language_data): Likewise.
2430 * language.h (language_data): Delete skip_trampoline field.
2431 (language_defn::skip_trampoline): New function.
2432 * m2-lang.c (m2_language_data): Delete skip_trampoline
2433 initializer.
2434 * objc-lang.c (objc_skip_trampoline): Delete function, move
2435 implementation to objc_language::skip_trampoline.
2436 (objc_language_data): Delete skip_trampoline initializer.
2437 (objc_language::skip_trampoline): New member function with
2438 implementation from objc_skip_trampoline.
2439 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2440 initializer.
2441 * p-lang.c (pascal_language_data): Likewise.
2442 * rust-lang.c (rust_language_data): Likewise.
2443
2444 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2447 (ada_language::demangle): New member function.
2448 * c-lang.c (c_language_data): Delete la_demangle initializer.
2449 (cplus_language_data): Delete la_demangle initializer.
2450 (cplus_language::demangle): New member function.
2451 (asm_language_data): Delete la_demangle initializer.
2452 (minimal_language_data): Delete la_demangle initializer.
2453 * d-lang.c (d_language_data): Delete la_demangle initializer.
2454 (d_language::demangle): New member function.
2455 * f-lang.c (f_language_data): Delete la_demangle initializer.
2456 (f_language::demangle): New member function.
2457 * go-lang.c (go_language_data): Delete la_demangle initializer.
2458 (go_language::demangle): New member function.
2459 * language.c (language_demangle): Update.
2460 (unk_lang_demangle): Delete.
2461 (unknown_language_data): Delete la_demangle initializer.
2462 (unknown_language::demangle): New member function.
2463 (auto_language_data): Delete la_demangle initializer.
2464 (auto_language::demangle): New member function.
2465 * language.h (language_data): Delete la_demangle field.
2466 (language_defn::demangle): New function.
2467 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2468 * objc-lang.c (objc_language_data): Delete la_demangle
2469 initializer.
2470 (objc_language::demangle): New member function.
2471 * opencl-lang.c (opencl_language_data): Delete la_demangle
2472 initializer.
2473 * p-lang.c (pascal_language_data): Likewise.
2474 * rust-lang.c (rust_language_data): Likewise.
2475 (rust_language::demangle): New member function.
2476
2477 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * ada-lang.c (ada_language_data): Delete la_print_type
2480 initializer.
2481 (ada_language::print_type): New member function.
2482 * c-lang.c (c_language_data): Delete la_print_type initializer.
2483 (c_language::print_type): New member function.
2484 (cplus_language_data): Delete la_print_type initializer.
2485 (cplus_language::print_type): New member function.
2486 (asm_language_data): Delete la_print_type initializer.
2487 (asm_language::print_type): New member function.
2488 (minimal_language_data): Delete la_print_type initializer.
2489 (minimal_language::print_type): New member function.
2490 * d-lang.c (d_language_data): Delete la_print_type initializer.
2491 (d_language::print_type): New member function.
2492 * f-lang.c (f_language_data): Delete la_print_type initializer.
2493 (f_language::print_type): New member function.
2494 * go-lang.c (go_language_data): Delete la_print_type initializer.
2495 (go_language::print_type): New member function.
2496 * language.c (unk_lang_print_type): Delete.
2497 (unknown_language_data): Delete la_print_type initializer.
2498 (unknown_language::print_type): New member function.
2499 (auto_language_data): Delete la_print_type initializer.
2500 (auto_language::print_type): New member function.
2501 * language.h (language_data): Delete la_print_type field.
2502 (language_defn::print_type): New function.
2503 (LA_PRINT_TYPE): Update.
2504 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2505 (m2_language::print_type): New member function.
2506 * objc-lang.c (objc_language_data): Delete la_print_type
2507 initializer.
2508 (objc_language::print_type): New member function.
2509 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2510 to opencl_language::print_type.
2511 (opencl_language_data): Delete la_print_type initializer.
2512 (opencl_language::print_type): New member function, implementation
2513 from opencl_print_type.
2514 * p-lang.c (pascal_language_data): Delete la_print_type
2515 initializer.
2516 (pascal_language::print_type): New member function.
2517 * rust-lang.c (rust_print_type): Delete, implementation moved to
2518 rust_language::print_type.
2519 (rust_language_data): Delete la_print_type initializer.
2520 (rust_language::print_type): New member function, implementation
2521 from rust_print_type.
2522
2523 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2526 implementation moves to...
2527 (ada_language::sniff_from_mangled_name): ...here. Update return
2528 type.
2529 (ada_language_data): Delete la_sniff_from_mangled_name
2530 initializer.
2531 * c-lang.c (c_language_data): Likewise.
2532 (cplus_language_data): Likewise.
2533 (cplus_language::sniff_from_mangled_name): New member function,
2534 implementation taken from gdb_sniff_from_mangled_name.
2535 (asm_language_data): Delete la_sniff_from_mangled_name
2536 initializer.
2537 (minimal_language_data): Likewise.
2538 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2539 implementation moves to cplus_language::sniff_from_mangled_name.
2540 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2541 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2542 moves to...
2543 (d_language::sniff_from_mangled_name): ...here.
2544 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2545 * f-lang.c (f_language_data): Likewise.
2546 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2547 moves to...
2548 (go_language::sniff_from_mangled_name): ...here.
2549 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2550 * language.c (language_sniff_from_mangled_name): Delete.
2551 (unknown_language_data): Delete la_sniff_from_mangled_name
2552 initializer.
2553 (auto_language_data): Likewise.
2554 * language.h (language_data): Delete la_sniff_from_mangled_name
2555 field.
2556 (language_defn::sniff_from_mangled_name): New function.
2557 (language_sniff_from_mangled_name): Delete declaration.
2558 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2559 field.
2560 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2561 implementation moves to...
2562 (objc_language::sniff_from_mangled_name): ...here.
2563 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2564 * opencl-lang.c (opencl_language_data): Likewise.
2565 * p-lang.c (pascal_language_data): Likewise.
2566 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2567 implementation moves to...
2568 (rust_language::sniff_from_mangled_name): ...here.
2569 (rust_language_data): Delete la_sniff_from_mangled_name
2570 initializer.
2571 * symtab.c (symbol_find_demangled_name): Call
2572 sniff_from_mangled_name member function.
2573
2574 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2577 initializer.
2578 * c-lang.c (c_language_data): Likewise.
2579 (cplus_language_data): Likewise.
2580 (cplus_language::search_name_hash): New member function.
2581 (asm_language_data): Delete la_search_name_hash initializer.
2582 (minimal_language_data): Likewise.
2583 * d-lang.c (d_language_data): Likewise.
2584 * dictionary.c (default_search_name_hash): Rename to...
2585 (language_defn::search_name_hash): ...this.
2586 * f-lang.c (f_language_data): Likewise.
2587 (f_language::search_name_hash): New member function.
2588 * go-lang.c (go_language_data): Delete la_search_name_hash
2589 initializer.
2590 * language.c (unknown_language_data): Likewise.
2591 (auto_language_data): Likewise.
2592 * language.h (struct language_data): Delete la_search_name_hash
2593 field.
2594 (language_defn::search_name_hash): Declare new member function.
2595 (default_search_name_hash): Delete declaration.
2596 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2597 initializer.
2598 * objc-lang.c (objc_language_data): Likewise.
2599 * opencl-lang.c (opencl_language_data): Likewise.
2600 * p-lang.c (pascal_language_data): Likewise.
2601 * rust-lang.c (rust_language_data): Likewise.
2602 * symtab.c (search_name_hash): Update call.
2603
2604 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2607 initializer.
2608 * c-lang.c (class compile_instance): Declare.
2609 (c_language_data): Delete la_get_compile_instance initializer.
2610 (c_language::get_compile_instance): New member function.
2611 (cplus_language_data): Delete la_get_compile_instance initializer.
2612 (cplus_language::get_compile_instance): New member function.
2613 (asm_language_data): Delete la_get_compile_instance initializer.
2614 (minimal_language_data): Likewise.
2615 * c-lang.h (c_get_compile_context): Update comment.
2616 (cplus_get_compile_context): Update comment.
2617 * compile/compile.c (compile_to_object): Update calls, don't rely
2618 on function pointer being NULL.
2619 * d-lang.c (d_language_data): Delete la_get_compile_instance
2620 initializer.
2621 * f-lang.c (f_language_data): Likewise.
2622 * go-lang.c (go_language_data): Likewise.
2623 * language.c (unknown_language_data): Likewise.
2624 (auto_language_data): Likewise.
2625 * language.h (language_data): Delete la_get_compile_instance field.
2626 (language_defn::get_compile_instance): New member function.
2627 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2628 initializer.
2629 * objc-lang.c (objc_language_data): Likewise.
2630 * opencl-lang.c (opencl_language_data): Likewise.
2631 * p-lang.c (pascal_language_data): Likewise.
2632 * rust-lang.c (rust_language_data): Likewise.
2633
2634 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * ada-lang.c (ada_add_all_symbols): Update comment.
2637 (ada_iterate_over_symbols): Delete, move implementation to...
2638 (ada_language::iterate_over_symbols): ...here, a new member
2639 function, rewrite to use range based for loop.
2640 (ada_language_data): Delete la_iterate_over_symbols initializer.
2641 * c-lang.c (c_language_data): Likewise.
2642 (cplus_language_data): Likewise.
2643 (asm_language_data): Likewise.
2644 (minimal_language_data): Likewise.
2645 * d-lang.c (d_language_data): Likewise.
2646 * f-lang.c (f_language_data): Likewise.
2647 * go-lang.c (go_language_data): Likewise.
2648 * language.c (unknown_language_data): Likewise.
2649 (auto_language_data): Likewise.
2650 * language.h (language_data): Delete la_iterate_over_symbols field.
2651 (language_defn::iterate_over_symbols): New member function.
2652 (LA_ITERATE_OVER_SYMBOLS): Update.
2653 * linespec.c (iterate_over_all_matching_symtabs): Update.
2654 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2655 initializer.
2656 * objc-lang.c (objc_language_data): Likewise.
2657 * opencl-lang.c (opencl_language_data): Likewise.
2658 * p-lang.c (pascal_language_data): Likewise.
2659 * rust-lang.c (rust_language_data): Likewise.
2660
2661 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2662
2663 * ada-lang.c (ada_language_data): Delete
2664 la_lookup_transparent_type initializer.
2665 * c-lang.c (c_language_data): Likewise.
2666 (cplus_language_data): Likewise.
2667 (cplus_language::lookup_transparent_type): New member function.
2668 (asm_language_data): Delete la_lookup_transparent_type
2669 initializer.
2670 (minimal_language_data): Likewise.
2671 * d-lang.c (d_language_data): Likewise.
2672 * f-lang.c (f_language_data): Likewise.
2673 * go-lang.c (go_language_data): Likewise.
2674 * language.c (unknown_language_data): Likewise.
2675 (auto_language_data): Likewise.
2676 * language.h (struct language_data): Delete
2677 la_lookup_transparent_type field.
2678 (language_defn::lookup_transparent_type): New member function.
2679 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2680 initializer.
2681 * objc-lang.c (objc_language_data): Likewise.
2682 * opencl-lang.c (opencl_language_data): Likewise.
2683 * p-lang.c (pascal_language_data): Likewise.
2684 * rust-lang.c (rust_language_data): Likewise.
2685 * symtab.c (symbol_matches_domain): Update call.
2686
2687 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2688
2689 * ada-lang.c (ada_language_arch_info): Delete function, move
2690 implementation to...
2691 (ada_language::language_arch_info): ...here, a new member
2692 function.
2693 (ada_language_data): Delete la_language_arch_info.
2694 * c-lang.c (c_language_data): Likewise.
2695 (c_language::language_arch_info): New member function.
2696 (cplus_language_arch_info): Delete function, move
2697 implementation to...
2698 (cplus_language::language_arch_info): ...here, a new member
2699 function.
2700 (cplus_language_data): Delete la_language_arch_info.
2701 (asm_language_data): Likewise.
2702 (asm_language::language_arch_info): New member function.
2703 (minimal_language_data): Delete la_language_arch_info.
2704 (minimal_language::language_arch_info): New member function.
2705 * d-lang.c (d_language_arch_info): Delete function, move
2706 implementation to...
2707 (d_language::language_arch_info): ...here, a new member
2708 function.
2709 (d_language_data): Delete la_language_arch_info.
2710 * f-lang.c (f_language_arch_info): Delete function, move
2711 implementation to...
2712 (f_language::language_arch_info): ...here, a new member
2713 function.
2714 (f_language_data): Delete la_language_arch_info.
2715 * go-lang.c (go_language_arch_info): Delete function, move
2716 implementation to...
2717 (go_language::language_arch_info): ...here, a new member
2718 function.
2719 (go_language_data): Delete la_language_arch_info.
2720 * language.c (unknown_language_data): Likewise.
2721 (unknown_language::language_arch_info): New member function.
2722 (auto_language_data): Delete la_language_arch_info.
2723 (auto_language::language_arch_info): New member function.
2724 (language_gdbarch_post_init): Update call to
2725 la_language_arch_info.
2726 * language.h (language_data): Delete la_language_arch_info
2727 function pointer.
2728 (language_defn::language_arch_info): New function.
2729 * m2-lang.c (m2_language_arch_info): Delete function, move
2730 implementation to...
2731 (m2_language::language_arch_info): ...here, a new member
2732 function.
2733 (m2_language_data): Delete la_language_arch_info.
2734 * objc-lang.c (objc_language_arch_info): Delete function, move
2735 implementation to...
2736 (objc_language::language_arch_info): ...here, a new member
2737 function.
2738 (objc_language_data): Delete la_language_arch_info.
2739 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2740 implementation to...
2741 (opencl_language::language_arch_info): ...here, a new member
2742 function.
2743 (opencl_language_data): Delete la_language_arch_info.
2744 * p-lang.c (pascal_language_arch_info): Delete function, move
2745 implementation to...
2746 (pascal_language::language_arch_info): ...here, a new member
2747 function.
2748 (pascal_language_data): Delete la_language_arch_info.
2749 * rust-lang.c (rust_language_arch_info): Delete function, move
2750 implementation to...
2751 (rust_language::language_arch_info): ...here, a new member
2752 function.
2753 (rust_language_data): Delete la_language_arch_info.
2754
2755 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2758 initializer.
2759 * c-lang.c (c_language_data): Likewise.
2760 (cplus_language_data): Likewise.
2761 (cplus_language::pass_by_reference_info): New method.
2762 (asm_language_data): Delete la_pass_by_reference initializer.
2763 (minimal_language_data): Likewise.
2764 * cp-abi.c (cp_pass_by_reference): Remove use of
2765 default_pass_by_reference.
2766 * d-lang.c (d_language_data): Likewise.
2767 * f-lang.c (f_language_data): Likewise.
2768 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2769 default_pass_by_reference.
2770 * go-lang.c (go_language_data): Likewise.
2771 * language.c (language_pass_by_reference): Update.
2772 (default_pass_by_reference): Delete.
2773 (unknown_language_data): Delete la_pass_by_reference
2774 initializer.
2775 (auto_language_data): Likewise.
2776 * language.h (struct language_data): Delete la_pass_by_reference
2777 field.
2778 (language_defn::pass_by_reference_info): New member function.
2779 (default_pass_by_reference): Delete declaration.
2780 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2781 initializer.
2782 * objc-lang.c (objc_language_data): Likewise.
2783 * opencl-lang.c (opencl_language_data): Likewise.
2784 * p-lang.c (pascal_language_data): Likewise.
2785 * rust-lang.c (rust_language_data): Likewise.
2786
2787 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2788
2789 * ada-lang.c (ada_read_var_value): Delete function, move
2790 implementation to...
2791 (ada_language::read_var_value): ...here.
2792 (ada_language_data): Delete la_read_var_value initializer.
2793 * c-lang.c (c_language_data): Likewise.
2794 (cplus_language_data): Likewise.
2795 (minimal_language_data): Likewise.
2796 * d-lang.c (d_language_data): Likewise.
2797 * f-lang.c (f_language_data): Likewise.
2798 * findvar.c (default_read_var_value): Rename to...
2799 (language_defn::read_var_value): ...this.
2800 * findvar.c (read_var_value): Update header comment, and change to
2801 call member function instead of function pointer.
2802 * go-lang.c (go_language_data): Likewise.
2803 * language.c (unknown_language_data): Delete la_read_var_value
2804 initializer.
2805 (auto_language_data): Likewise.
2806 * language.h (struct language_data): Delete la_read_var_value
2807 field.
2808 (language_defn::read_var_value): New member function.
2809 (default_read_var_value): Delete declaration.
2810 * m2-lang.c (m2_language_data): Delete la_read_var_value
2811 initializer.
2812 * objc-lang.c (objc_language_data): Likewise.
2813 * opencl-lang.c (opencl_language_data): Likewise.
2814 * p-lang.c (pascal_language_data): Likewise.
2815 * rust-lang.c (rust_language_data): Likewise.
2816 * value.h (default_read_var_value): Delete declaration.
2817
2818 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * ada-lang.c (ada_print_array_index): Delete function, move
2821 implementation to...
2822 (ada_language::print_array_index): ...here.
2823 (ada_language_data): Delete la_print_array_index initializer.
2824 * c-lang.c (c_language_data): Likewise.
2825 (cplus_language_data): Likewise.
2826 (minimal_language_data): Likewise.
2827 * d-lang.c (d_language_data): Likewise.
2828 * f-lang.c (f_language_data): Likewise.
2829 * go-lang.c (go_language_data): Likewise.
2830 * language.c (default_print_array_index): Delete function, move
2831 implementation to...
2832 (language_defn::print_array_index): ...here.
2833 (unknown_language_data): Delete la_print_array_index initializer.
2834 (auto_language_data): Likewise.
2835 * language.h (struct language_data): Delete la_print_array_index
2836 field.
2837 (language_defn::print_array_index): New member function.
2838 (LA_PRINT_ARRAY_INDEX): Update.
2839 (default_print_array_index): Delete declaration.
2840 * m2-lang.c (m2_language_data): Delete la_print_array_index
2841 initializer.
2842 * objc-lang.c (objc_language_data): Likewise.
2843 * opencl-lang.c (opencl_language_data): Likewise.
2844 * p-lang.c (pascal_language_data): Likewise.
2845 * rust-lang.c (rust_language_data): Likewise.
2846
2847 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * gdb/ada-lang.c (ada_language_defn): Convert to...
2850 (ada_language_data): ...this.
2851 (class ada_language): New class.
2852 (ada_language_defn): New static global.
2853 * gdb/c-lang.c (c_language_defn): Convert to...
2854 (c_language_data): ...this.
2855 (class c_language): New class.
2856 (c_language_defn): New static global.
2857 (cplus_language_defn): Convert to...
2858 (cplus_language_data): ...this.
2859 (class cplus_language): New class.
2860 (cplus_language_defn): New static global.
2861 (asm_language_defn): Convert to...
2862 (asm_language_data): ...this.
2863 (class asm_language): New class.
2864 (asm_language_defn): New static global.
2865 (minimal_language_defn): Convert to...
2866 (minimal_language_data): ...this.
2867 (class minimal_language): New class.
2868 (minimal_language_defn): New static global.
2869 * gdb/d-lang.c (d_language_defn): Convert to...
2870 (d_language_data): ...this.
2871 (class d_language): New class.
2872 (d_language_defn): New static global.
2873 * gdb/f-lang.c (f_language_defn): Convert to...
2874 (f_language_data): ...this.
2875 (class f_language): New class.
2876 (f_language_defn): New static global.
2877 * gdb/go-lang.c (go_language_defn): Convert to...
2878 (go_language_data): ...this.
2879 (class go_language): New class.
2880 (go_language_defn): New static global.
2881 * gdb/language.c (unknown_language_defn): Remove declaration.
2882 (current_language): Initialize to nullptr, real initialization is
2883 moved to _initialize_language.
2884 (languages): Delete global.
2885 (language_defn::languages): Define.
2886 (set_language_command): Use language_defn::languages.
2887 (set_language): Likewise.
2888 (range_error): Likewise.
2889 (language_enum): Likewise.
2890 (language_def): Likewise.
2891 (add_set_language_command): Use language_def::languages for the
2892 language list, and language_def to lookup language pointers.
2893 (skip_language_trampoline): Use language_defn::languages.
2894 (unknown_language_defn): Convert to...
2895 (unknown_language_data): ...this.
2896 (class unknown_language): New class.
2897 (unknown_language_defn): New static global.
2898 (auto_language_defn): Convert to...
2899 (auto_language_data): ...this.
2900 (class auto_language): New class.
2901 (auto_language_defn): New static global.
2902 (language_gdbarch_post_init): Use language_defn::languages.
2903 (_initialize_language): Initialize current_language.
2904 * gdb/language.h (struct language_defn): Rename to...
2905 (struct language_data): ...this.
2906 (struct language_defn): New.
2907 (auto_language_defn): Delete.
2908 (unknown_language_defn): Delete.
2909 (minimal_language_defn): Delete.
2910 (ada_language_defn): Delete.
2911 (asm_language_defn): Delete.
2912 (c_language_defn): Delete.
2913 (cplus_language_defn): Delete.
2914 (d_language_defn): Delete.
2915 (f_language_defn): Delete.
2916 (go_language_defn): Delete.
2917 (m2_language_defn): Delete.
2918 (objc_language_defn): Delete.
2919 (opencl_language_defn): Delete.
2920 (pascal_language_defn): Delete.
2921 (rust_language_defn): Delete.
2922 * gdb/m2-lang.c (m2_language_defn): Convert to...
2923 (m2_language_data): ...this.
2924 (class m2_language): New class.
2925 (m2_language_defn): New static global.
2926 * gdb/objc-lang.c (objc_language_defn): Convert to...
2927 (objc_language_data): ...this.
2928 (class objc_language): New class.
2929 (objc_language_defn): New static global.
2930 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2931 (opencl_language_data): ...this.
2932 (class opencl_language): New class.
2933 (opencl_language_defn): New static global.
2934 * gdb/p-lang.c (pascal_language_defn): Convert to...
2935 (pascal_language_data): ...this.
2936 (class pascal_language): New class.
2937 (pascal_language_defn): New static global.
2938 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2939 language pointer, update comment format.
2940 * gdb/rust-lang.c (rust_language_defn): Convert to...
2941 (rust_language_data): ...this.
2942 (class rust_language): New class.
2943 (rust_language_defn): New static global.
2944
2945 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2946
2947 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2948 member variable.
2949 <m_stmt_at_address>: New member variable.
2950 (lnp_state_machine::record_line): Don't record some lines, update
2951 tracking of is_stmt at the same address.
2952 (lnp_state_machine::lnp_state_machine): Initialise new member
2953 variables.
2954
2955 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2956
2957 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2958 "-include gnu-nat-mig.h".
2959 * gnu-nat-mig.h: New file.
2960 * gnu-nat.c: Include "gnu-nat-mig.h".
2961 (exc_server, msg_reply_server, notify_server,
2962 process_reply_server): Remove declarations.
2963
2964 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2965
2966 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2967 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2968 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2969 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2970 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2971 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2972 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2973 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2974 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2975 to gnu_nat_target class.
2976 * gnu-nat.c: Likewise.
2977 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2978 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2979 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2980 object.
2981 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2982 instead of `gnu_target'.
2983
2984 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2985
2986 * i386-gnu-tdep.c: Include "gdbcore.h"
2987 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2988 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2989 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2990 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2991 i386_gnu_sigcontext_addr): New functions
2992 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2993 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2994 tdep.
2995
2996 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2997
2998 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2999 before fork_inferior call. Avoid calling it if target_is_pushed returns
3000 true.
3001
3002 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3003
3004 * gnu-nat.h (gnu_target): New variable declaration.
3005 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3006 gnu_target.
3007 * gnu-nat.c (gnu_target): New variable.
3008 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3009 add_thread_silent, and add_thread calls.
3010 (gnu_nat_target::create_inferior): Pass gnu_target to
3011 add_thread_silent, thread_change_ptid call.
3012 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3013 call.
3014
3015 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3016
3017 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3018 (gnu_nat_target::find_memory_regions): Remove unused
3019 `old_address' variable.
3020
3021 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3022
3023 * gnu-nat.c: Include "gdbarch.h".
3024
3025 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3026
3027 * reply_mig_hack.awk (Error return): Cast function through
3028 void *, to bypass compiler function call check.
3029
3030 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3031
3032 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3033 $(srcdir)/reply_mig_hack.awk.
3034
3035 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3036
3037 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3038
3039 2020-05-30 Jonny Grant <jg@jguk.org>
3040
3041 * configure.ac (ACX_BUGURL): change bug URL to https.
3042
3043 2020-05-30 Pedro Alves <palves@redhat.com>
3044
3045 * cp-support.c (replace_typedefs_template): New.
3046 (replace_typedefs_qualified_name): Handle
3047 DEMANGLE_COMPONENT_TEMPLATE.
3048
3049 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3052 dwarf2/index-cache.h, dwarf2/index-write.c,
3053 dwarf2/index-write.h, dwarf2/line-header.c,
3054 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3055 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3056 variables and fields from `dwarf2_per_objfile` to just
3057 `per_objfile` throughout.
3058
3059 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3060
3061 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3062 <push_dwarf_reg_entry_value>: Add comment.
3063
3064 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3065 Keith Seitz <keiths@redhat.com>
3066
3067 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3068 instead of PyEval_ReleaseLock.
3069 (class gdbpy_gil): Move to earlier in file.
3070 (finalize_python): Set gdb_python_initialized.
3071 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3072 when not initialized.
3073
3074 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3077 <push_dwarf_reg_entry_value>: Remove assert. Override
3078 per_objfile with caller_per_objfile.
3079
3080 2020-05-28 Tom de Vries <tdevries@suse.de>
3081
3082 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3083 PR gold/15646 workaround to symbol kind "type".
3084
3085 2020-05-27 Tom Tromey <tromey@adacore.com>
3086
3087 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3088
3089 2020-05-27 Tom Tromey <tromey@adacore.com>
3090
3091 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3092 Use htab_find_with_hash.
3093 <add_abbrev>: Remove "abbrev_number" parameter.
3094 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3095 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3096 (hash_abbrev): Add comment.
3097 (abbrev_table::lookup_abbrev): Move to header file.
3098 (abbrev_table::read): Update.
3099
3100 2020-05-27 Tom Tromey <tromey@adacore.com>
3101
3102 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3103 method.
3104 <canonical_name>: New member.
3105 <raw_name>: Rename from "name".
3106 (partial_die_info): Initialize canonical_name.
3107 (scan_partial_symbols): Check raw_name.
3108 (partial_die_parent_scope, partial_die_full_name)
3109 (add_partial_symbol, add_partial_subprogram)
3110 (add_partial_enumeration, load_partial_dies): Use "name" method.
3111 (partial_die_info::name): New method.
3112 (partial_die_info::read, guess_partial_die_structure_name)
3113 (partial_die_info::fixup): Update.
3114
3115 2020-05-27 Tom Tromey <tromey@adacore.com>
3116
3117 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3118 <get_ref_die_offset>: Inline.
3119 <get_ref_die_offset_complaint>: New method.
3120 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3121 (attribute::get_ref_die_offset_complaint): Rename from
3122 get_ref_die_offset. Just issue complaint.
3123
3124 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3125
3126 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3127
3128 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3129
3130 * exec.c (exec_file_attach): Use errno value of first openp failure.
3131
3132 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3133
3134 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3135 Don't close thread handle.
3136
3137 2020-05-27 Tom Tromey <tom@tromey.com>
3138 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3141 shared_ptr.
3142 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3143 member.
3144 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3145 dwarf2_per_bfd_objfile_data_key>: New globals.
3146 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3147 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3148 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3149 shared.
3150 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3151 short-circuit when sharing.
3152 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3153 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3154
3155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3156
3157 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3158 to...
3159 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3160 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3161
3162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3163
3164 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3165 build_name_components, find_name_components_bounds>:
3166 Add per_objfile parameter.
3167 (struct mapped_index) <symbol_name_at>: Likewise.
3168 (struct mapped_debug_names): Remove constructor.
3169 <dwarf2_per_objfile>: Remove field.
3170 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3171 (mapped_index_base::find_name_components_bounds,
3172 mapped_index_base::build_name_components,
3173 dw2_expand_symtabs_matching_symbol): Likewise.
3174 (class mock_mapped_index) <symbol_name_at>: Likewise.
3175 (check_match): Likewise.
3176 (check_find_bounds_finds): Likewise.
3177 (test_mapped_index_find_name_component_bounds): Update.
3178 (CHECK_MATCH): Update.
3179 (dw2_expand_symtabs_matching): Update.
3180 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3181 per_objfile parameter.
3182 <find_vec_in_debug_names>: Likewise.
3183 <m_per_objfile>: New field.
3184 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3185 parameter.
3186 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3187 (dw2_debug_names_iterator::next): Update.
3188 (dw2_debug_names_lookup_symbol): Update.
3189 (dw2_debug_names_expand_symtabs_for_function): Update.
3190 (dw2_debug_names_map_matching_symbols): Update.
3191 (dw2_debug_names_expand_symtabs_matching): Update.
3192 (dwarf2_read_debug_names): Update.
3193
3194 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3197 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3198 move to dwarf2_per_objfile.
3199 <read_in_chain>: Remove.
3200 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3201 remove_all_cus, age_comp_units>: New methods.
3202 <m_dwarf2_cus>: New member.
3203 (struct dwarf2_per_cu_data) <cu>: Remove.
3204 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3205 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3206 moved to methods of dwarf2_per_objfile.
3207 (dwarf2_clear_marks): Remove.
3208 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3209 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3210 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3211 (dwarf2_per_objfile::remove_all_cus): New.
3212 (class free_cached_comp_units) <~free_cached_comp_units>:
3213 Update.
3214 (load_cu): Update.
3215 (dw2_do_instantiate_symtab): Adjust.
3216 (fill_in_sig_entry_from_dwo_entry): Adjust.
3217 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3218 (cutu_reader::cutu_reader): Likewise.
3219 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3220 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3221 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3222 and dwarf2_per_objfile::age_comp_units.
3223 (load_partial_comp_unit): Update.
3224 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3225 (process_queue): Likewise.
3226 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3227 backlink.
3228 (dwarf2_read_addr_index): Likewise.
3229 (follow_die_offset): Likewise.
3230 (dwarf2_fetch_die_loc_sect_off): Likewise.
3231 (dwarf2_fetch_constant_bytes): Likewise.
3232 (dwarf2_fetch_die_type_sect_off): Likewise.
3233 (follow_die_sig_1): Likewise.
3234 (load_full_type_unit): Likewise.
3235 (read_signatured_type): Likewise.
3236 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3237 (dwarf2_cu::~dwarf2_cu): Remove.
3238 (dwarf2_per_objfile::get_cu): New.
3239 (dwarf2_per_objfile::set_cu): New.
3240 (age_cached_comp_units): Rename to...
3241 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3242 to std::unordered_map.
3243 (free_one_cached_comp_unit): Rename to...
3244 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3245 to std::unordered_map.
3246 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3247 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3248 a dwarf2_per_objfile in data.
3249 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3250 (dwarf2_clear_marks): Remove.
3251
3252 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3253
3254 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3255 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3256 (init_tu_and_read_dwo_dies): Likewise.
3257 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3258 (cutu_reader::cutu_reader): Likewise.
3259 (load_partial_comp_unit): Likewise.
3260 (process_psymtab_comp_unit): Update.
3261 (build_type_psymtabs_1): Update.
3262 (process_skeletonless_type_unit): Update.
3263 (load_full_comp_unit): Update.
3264 (find_partial_die): Update.
3265 (dwarf2_read_addr_index): Update.
3266 (read_signatured_type): Update.
3267
3268 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3271 m_header_read_in>: New fields.
3272 <get_header>: New method.
3273 * dwarf2/read.c (per_cu_header_read_in): Remove.
3274 (dwarf2_per_cu_data::get_header): New.
3275 (dwarf2_per_cu_data::addr_size): Update.
3276 (dwarf2_per_cu_data::offset_size): Update.
3277 (dwarf2_per_cu_data::ref_addr_size): Update.
3278
3279 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3282 (dw2_do_instantiate_symtab): Update.
3283 (queue_and_load_all_dwo_tus): Change parameter from
3284 dwarf2_per_cu_data to dwarf2_cu.
3285 (dwarf2_fetch_die_loc_sect_off): Update.
3286 (dwarf2_fetch_constant_bytes): Update.
3287 (dwarf2_fetch_die_type_sect_off): Update.
3288
3289 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * dwarf2/read.c (process_full_comp_unit,
3292 process_full_type_unit): Remove per_cu, per_objfile paramters.
3293 Add dwarf2_cu parameter.
3294 (process_queue): Update.
3295
3296 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * dwarf2/read.c (create_cu_from_index_list): Replace
3299 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3300 (create_cus_from_index_list): Likewise.
3301 (create_cus_from_index): Likewise.
3302 (create_signatured_type_table_from_index): Likewise.
3303 (create_cus_from_debug_names_list): Likewise.
3304 (create_cus_from_debug_names): Likewise.
3305 (dwarf2_read_gdb_index): Update.
3306 (dwarf2_read_debug_names): Update.
3307
3308 2020-05-27 Tom Tromey <tom@tromey.com>
3309 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * dwarf2/read.h (struct dwarf2_per_objfile)
3312 <get_type_for_signatured_type, set_type_for_signatured_type>:
3313 New methods.
3314 <m_type_map>: New member.
3315 (struct signatured_type) <type>: Remove.
3316 * dwarf2/read.c
3317 (dwarf2_per_objfile::get_type_for_signatured_type,
3318 dwarf2_per_objfile::set_type_for_signatured_type): New.
3319 (get_signatured_type): Use new methods.
3320
3321 2020-05-27 Tom Tromey <tom@tromey.com>
3322 Simon Marchi <simon.marchi@efficios.com>
3323
3324 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3325 (struct dwarf2_per_objfile) <type_units>: New member.
3326 <get_type_unit_group_unshareable>: New method.
3327 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3328 num_symtabs, symtabs>: Remove; move to
3329 type_unit_group_unshareable.
3330 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3331 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3332 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3333
3334 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * dwarf2/read.h (struct dwarf2_per_cu_data):
3337 <dwarf2_per_objfile>: Remove.
3338 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3339 dwarf2_per_objfile.
3340 (create_signatured_type_table_from_index): Likewise.
3341 (create_signatured_type_table_from_debug_names): Likewise.
3342 (create_debug_type_hash_table): Likewise.
3343 (fill_in_sig_entry_from_dwo_entry): Likewise.
3344 (create_type_unit_group): Likewise.
3345 (read_comp_units_from_section): Likewise.
3346 (create_cus_hash_table): Likewise.
3347
3348 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3349
3350 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3351 dwarf2_per_cu_data::dwarf2_per_objfile.
3352 (compute_compunit_symtab_includes): Likewise.
3353 (dwarf2_cu::start_symtab): Likewise.
3354
3355 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3356
3357 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3358 parameter.
3359 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3360 (read_namespace_alias): Update.
3361 (lookup_die_type): Update.
3362 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3363 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3364 Update.
3365 (disassemble_dwarf_expression): Update.
3366
3367 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * dwarf2/read.h (struct dwarf2_queue_item): Add
3370 dwarf2_per_objfile parameter, assign new parameter.
3371 <per_objfile>: New field.
3372 * dwarf2/read.c (free_one_cached_comp_unit): Add
3373 dwarf2_per_objfile parameter.
3374 (queue_comp_unit): Likewise.
3375 (dw2_do_instantiate_symtab): Update.
3376 (process_psymtab_comp_unit): Update.
3377 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3378 (process_imported_unit_die): Update.
3379 (queue_and_load_dwo_tu): Update.
3380 (follow_die_offset): Update.
3381 (follow_die_sig_1): Update.
3382
3383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3384
3385 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3386 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3387 (read_call_site_scope): Assign per_objfile.
3388 (dwarf2_per_cu_data::objfile): Remove.
3389 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3390 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3391 dwarf2_per_objfile parameter.
3392 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3393 dwarf2_per_objfile parameter.
3394 (dwarf_expr_reg_to_entry_parameter): Add output
3395 dwarf2_per_objfile parameter.
3396 (locexpr_get_frame_base): Update.
3397 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3398 <push_dwarf_reg_entry_value>: Update.
3399 <call_site_to_target_addr>: Update.
3400 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3401 parameter.
3402 (value_of_dwarf_reg_entry): Update.
3403 (rw_pieced_value): Update.
3404 (indirect_synthetic_pointer): Update.
3405 (dwarf2_evaluate_property): Update.
3406 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3407 parameter.
3408 (locexpr_read_variable): Update.
3409 (locexpr_get_symbol_read_needs): Update.
3410 (loclist_read_variable): Update.
3411
3412 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3415 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3416 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3417 parameter.
3418 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3419 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3420 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3421 parameter.
3422 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3423 sect_variable_value): Add dwarf2_per_objfile parameter.
3424 (class dwarf_evaluate_loc_desc) <dwarf_call,
3425 dwarf_variable_value>: Update.
3426 (fetch_const_value_from_synthetic_pointer): Add
3427 dwarf2_per_objfile parameter.
3428 (fetch_const_value_from_synthetic_pointer): Update.
3429 (coerced_pieced_ref): Update.
3430 (class symbol_needs_eval_context) <dwarf_call,
3431 dwarf_variable_value>: Update.
3432 (dwarf2_compile_expr_to_ax): Update.
3433
3434 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3435
3436 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3437 parameter.
3438 (dwarf2_evaluate_loc_desc_full): Update.
3439
3440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3443 parameter.
3444 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3445 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3446 dwarf2_per_objfile parameter.
3447 (decode_debug_loc_dwo_addresses): Likewise.
3448 (dwarf2_find_location_expression): Update.
3449 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3450 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3451 parameter.
3452 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3453 parameter.
3454 (locexpr_describe_location_1): Likewise.
3455 (locexpr_describe_location): Update.
3456
3457 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3458
3459 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3460 Remove.
3461 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3462 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3463 (dwarf2_compile_property_to_c): Update.
3464 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3465 use text offset from objfile.
3466 (locexpr_tracepoint_var_ref): Update.
3467 (locexpr_generate_c_location): Update.
3468 (loclist_describe_location): Update.
3469 (loclist_tracepoint_var_ref): Update.
3470 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3471 dwarf2_per_objfile parameter.
3472 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3473 use text offset from objfile.
3474 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3475
3476 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3477
3478 * dwarf2/expr.h (struct dwarf_expr_context)
3479 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3480 <offset>: Remove.
3481 <per_objfile>: New member.
3482 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3483 dwarf2_per_objfile parameter. Don't set offset, set
3484 per_objfile.
3485 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3486 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3487 a dwarf2_per_objfile object instead of an offset.
3488 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3489 constructor.
3490 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3491 to dwarf2_expr_executor constructor. Don't set offset.
3492 (dwarf2_fetch_cfa_info): Update.
3493 (struct dwarf2_frame_cache) <text_offset>: Remove.
3494 <per_objfile>: New field.
3495 (dwarf2_frame_cache): Update.
3496 (dwarf2_frame_prev_register): Update.
3497 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3498 <dwarf_evaluate_loc_desc>: Add constructor.
3499 (dwarf2_evaluate_loc_desc_full): Update.
3500 (dwarf2_locexpr_baton_eval): Update.
3501 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3502 Add constructor.
3503 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3504
3505 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3508 addr_sized_int_type>: Move to dwarf2_cu.
3509 <int_type>: Move to dwarf2_per_objfile.
3510 (struct dwarf2_per_objfile) <int_type>: Move here.
3511 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3512 addr_sized_int_type>: Move here.
3513 (read_func_scope): Update.
3514 (read_array_type): Update.
3515 (read_tag_string_type): Update.
3516 (attr_to_dynamic_prop): Update.
3517 (dwarf2_per_cu_data::int_type): Rename to...
3518 (dwarf2_per_objfile::int_type): ... this.
3519 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3520 (dwarf2_cu::addr_sized_int_type): ... this.
3521 (read_subrange_type): Update.
3522 (dwarf2_per_cu_data::addr_type): Rename to...
3523 (dwarf2_cu::addr_type): ... this.
3524 (set_die_type): Update.
3525
3526 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3529 data through per_cu->cu.
3530
3531 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3534 dwarf2_per_cu_data parameter fo dwarf2_cu.
3535 (lookup_dwo_type_unit): Likewise.
3536 (read_cutu_die_from_dwo): Likewise.
3537 (lookup_dwo_unit): Likewise.
3538 (open_and_init_dwo_file): Likewise.
3539 (lookup_dwo_cutu): Likewise.
3540 (lookup_dwo_comp_unit): Likewise.
3541 (lookup_dwo_type_unit): Likewise.
3542 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3543 (cutu_reader::cutu_reader): Update.
3544
3545 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3548 parameter.
3549 (process_full_type_unit): Likewise.
3550 (process_queue): Update.
3551
3552 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * dwarf2/read.c (recursively_compute_inclusions): Add
3555 dwarf2_per_objfile parameter.
3556 (compute_compunit_symtab_includes): Likewise.
3557 (process_cu_includes): Update.
3558
3559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3562 parameter.
3563 (create_type_unit_group): Update.
3564 (process_psymtab_comp_unit_reader): Update.
3565 (build_type_psymtabs_reader): Update.
3566
3567 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3568
3569 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3570 object through m_this_cu->cu.
3571
3572 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3573
3574 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3575 the info parameter.
3576 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3577
3578 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3579
3580 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3581 per_objfile parameter.
3582 (load_full_type_unit): Add per_objfile parameter.
3583 (read_signatured_type): Likewise.
3584 (load_full_comp_unit): Likewise.
3585 (load_cu): Likewise.
3586 (dw2_do_instantiate_symtab): Likewise.
3587 (dw2_get_file_names): Likewise.
3588 (dw2_map_symtabs_matching_filename): Update.
3589 (dw_expand_symtabs_matching_file_matcher): Update.
3590 (dw2_map_symbol_filenames): Update.
3591 (process_psymtab_comp_unit): Add per_objfile parameter.
3592 (build_type_psymtabs_1): Update.
3593 (process_skeletonless_type_unit): Update.
3594 (dwarf2_build_psymtabs_hard): Update.
3595 (load_partial_comp_unit): Add per_objfile parameter.
3596 (scan_partial_symbols): Update.
3597 (load_full_comp_unit): Add per_objfile parameter.
3598 (process_imported_unit_die): Update.
3599 (create_cus_hash_table): Update.
3600 (find_partial_die): Update.
3601 (dwarf2_read_addr_index): Update.
3602 (follow_die_offset): Update.
3603 (dwarf2_fetch_die_loc_sect_off): Update.
3604 (dwarf2_fetch_constant_bytes): Update.
3605 (dwarf2_fetch_die_type_sect_off): Update.
3606 (follow_die_sig_1): Update.
3607 (load_full_type_unit): Add per_objfile parameter.
3608 (read_signatured_type): Likewise.
3609
3610 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3611
3612 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3613 of objfile_name.
3614
3615 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3616
3617 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3618 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3619 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3620 field.
3621 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3622 (create_cus_from_index): Update.
3623 (dwarf2_read_gdb_index): Update.
3624 (create_cus_from_debug_names): Update.
3625 (dwarf2_read_debug_names): Update.
3626 (get_abbrev_section_for_cu): Update.
3627 (create_all_comp_units): Update.
3628 (read_attribute_value): Update.
3629 (get_debug_line_section): Update.
3630 * dwarf2/index-cache.c (index_cache::store): Update.
3631 * dwarf2/index-write.c (save_gdb_index_command): Update.
3632 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3633
3634 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3635
3636 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3637 member.
3638 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3639 dwarf2_per_cu_data::per_bfd.
3640 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3641 (create_type_unit_group): Likewise.
3642 (queue_comp_unit): Remove reference to
3643 per_cu->dwarf2_per_objfile.
3644 (maybe_queue_comp_unit): Likewise.
3645 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3646 (create_cus_hash_table): Assign new field.
3647
3648 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * dwarf2/read.c: Replace
3651 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3652 dwarf2_cu->per_objfile throughout.
3653
3654 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3657 parameter, don't use per_cu->dwarf2_per_objfile.
3658 (dw2_instantiate_symtab): Likewise.
3659 (dw2_find_last_source_symtab): Update.
3660 (dw2_map_expand_apply): Update.
3661 (dw2_lookup_symbol): Update.
3662 (dw2_expand_symtabs_for_function): Update.
3663 (dw2_expand_all_symtabs): Update.
3664 (dw2_expand_symtabs_with_fullname): Update.
3665 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3666 don't use per_cu->dwarf2_per_objfile.
3667 (dw2_expand_marked_cus): Update.
3668 (dw2_find_pc_sect_compunit_symtab): Update.
3669 (dw2_debug_names_lookup_symbol): Update.
3670 (dw2_debug_names_expand_symtabs_for_function): Update.
3671 (dw2_debug_names_map_matching_symbols): Update.
3672 (dwarf2_psymtab::expand_psymtab): Update.
3673
3674 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3677 <per_objfile>: New member.
3678 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3679 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3680 call to dwarf2_cu.
3681 (cutu_reader::cutu_reader): Update.
3682 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3683
3684 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3685
3686 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3687 struct dwarf2_per_objfile.
3688 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3689 dwarf2_per_bfd.
3690 * dwarf2/read.c (set_die_type): Update.
3691 (get_die_type_at_offset): Update.
3692
3693 2020-05-27 Tom Tromey <tom@tromey.com>
3694 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3697 method.
3698 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3699 get_symtab, set_symtab>: New methods.
3700 <m_symtabs>: New field.
3701 (struct dwarf2_psymtab): Derive from partial_symtab.
3702 <readin_p, get_compunit_symtab>: Declare methods.
3703 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3704 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3705 New methods.
3706 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3707 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3708 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3709 (dw2_symtab_iter_next, dw2_print_stats)
3710 (dw2_expand_symtabs_with_fullname)
3711 (dw2_expand_symtabs_matching_one)
3712 (dw_expand_symtabs_matching_file_matcher)
3713 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3714 (dw2_debug_names_iterator::next)
3715 (dw2_debug_names_map_matching_symbols)
3716 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3717 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3718 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3719 New methods.
3720 (get_compunit_symtab, process_full_comp_unit)
3721 (process_full_type_unit): Update.
3722 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3723
3724 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3725
3726 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3727 then introduce a new dwarf2_per_objfile type.
3728 <read_line_string>: Move to the new dwarf2_per_objfile type.
3729 <objfile>: Likewise.
3730 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3731 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3732 dwarf2_per_objfile->per_bfd.
3733 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3734 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3735 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3736 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3737 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3738 (dwarf2_per_objfile::locate_sections): Rename to...
3739 (dwarf2_per_bfd::locate_sections): ... this.
3740 (dwarf2_per_objfile::get_cutu): Rename to...
3741 (dwarf2_per_bfd::get_cutu): ... this.
3742 (dwarf2_per_objfile::get_cu): Rename to...
3743 (dwarf2_per_bfd::get_cu): ... this.
3744 (dwarf2_per_objfile::get_tu): Rename to...
3745 (dwarf2_per_bfd::get_tu): ... this.
3746 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3747 (dwarf2_per_bfd::allocate_per_cu): ... this.
3748 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3749 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3750 (get_gdb_index_contents_ftype): Change parameter from
3751 dwarf2_per_objfile to dwarf2_per_bfd.
3752 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3753 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3754
3755 2020-05-27 Tom Tromey <tom@tromey.com>
3756 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3759 (allocate_piece_closure): Set "per_objfile" member.
3760 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3761 (locexpr_describe_location, loclist_describe_location): Use new
3762 member.
3763 * dwarf2/read.c (read_call_site_scope)
3764 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3765 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3766 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3767 handle_data_member_location): Set per_objfile member.
3768 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3769 member.
3770 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3771
3772 2020-05-27 Tom Tromey <tom@tromey.com>
3773
3774 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3775 allocate_signatured_type>: Declare new methods.
3776 <m_num_psymtabs>: New member.
3777 (struct dwarf2_per_cu_data) <index>: New member.
3778 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3779 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3780 (create_cu_from_index_list): Use allocate_per_cu.
3781 (create_signatured_type_table_from_index)
3782 (create_signatured_type_table_from_debug_names)
3783 (create_debug_type_hash_table, add_type_unit)
3784 (read_comp_units_from_section): Use allocate_signatured_type.
3785
3786 2020-05-27 Tom Tromey <tom@tromey.com>
3787
3788 * psymtab.c (partial_map_expand_apply)
3789 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3790 (psym_lookup_global_symbol_language)
3791 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3792 (psym_print_stats, psym_expand_symtabs_for_function)
3793 (psym_map_symbol_filenames, psym_map_matching_symbols)
3794 (psym_expand_symtabs_matching)
3795 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3796 (maintenance_check_psymtabs): Update.
3797 * psympriv.h (struct partial_symtab) <readin_p,
3798 get_compunit_symtab>: Add objfile parameter.
3799 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3800 Likewise.
3801 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3802 get_compunit_symtab>: Likewise.
3803 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3804
3805 2020-05-27 Tom Tromey <tom@tromey.com>
3806
3807 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3808 member.
3809 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3810 (create_cu_from_index_list)
3811 (create_signatured_type_table_from_index)
3812 (create_signatured_type_table_from_debug_names)
3813 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3814 (dwarf2_create_include_psymtab)
3815 (create_debug_type_hash_table, add_type_unit)
3816 (create_type_unit_group, read_comp_units_from_section)
3817 (dwarf2_compute_name, create_cus_hash_table)
3818 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3819 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3820 obstack.
3821 (dw2_get_real_path): Likewise. Change argument to
3822 dwarf2_per_objfile.
3823
3824 2020-05-27 Luis Machado <luis.machado@linaro.org>
3825
3826 PR tdep/26000
3827 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3828 for ldrd (immediate).
3829
3830 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3831
3832 * command.h: Add comment giving the name of class_tui.
3833 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3834 create the fake command for the help for class_tui.
3835
3836 2020-05-26 Tom Tromey <tromey@adacore.com>
3837
3838 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3839 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3840 (val_atr): New function.
3841 (value_val_atr): Use it.
3842 * ada-valprint.c (print_optional_low_bound): Change low bound
3843 handling for enums.
3844 (val_print_packed_array_elements): Don't call discrete_position.
3845 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3846 discrete_position for enum types.
3847 * language.c (default_print_array_index): Change type.
3848 * language.h (struct language_defn) <la_print_array_index>: Add
3849 index_type parameter, change type of index_value.
3850 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3851 (default_print_array_index): Update.
3852 * valprint.c (maybe_print_array_index): Don't call
3853 value_from_longest. Update.
3854 (value_print_array_elements): Don't call discrete_position.
3855
3856 2020-05-26 Tom Tromey <tromey@adacore.com>
3857
3858 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3859 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3860
3861 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3862
3863 PR gdb/13519
3864 * avr-tdep.c (avr_integer_to_address): Return data or code
3865 address accordingly to the second 'type' argument of the
3866 function.
3867
3868 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3869
3870 * infcmd.c, inferior.h: (construct_inferior_arguments):
3871 Moved function from here to gdbsupport/common-inferior.{h,cc}
3872
3873 2020-05-23 Tom Tromey <tom@tromey.com>
3874
3875 Revert commit eca1f90c:
3876 * NEWS: Remove entry for completion styling.
3877 * completer.c (_rl_completion_prefix_display_length): Move
3878 declaration later.
3879 (gdb_fnprint): Revert.
3880 (gdb_display_match_list_1): Likewise.
3881 * cli/cli-style.c (completion_prefix_style)
3882 (completion_difference_style, completion_suffix_style): Remove.
3883 (_initialize_cli_style): Revert.
3884 * cli/cli-style.h (completion_prefix_style)
3885 (completion_difference_style, completion_suffix_style): Don't
3886 declare.
3887
3888 2020-05-24 Pedro Alves <palves@redhat.com>
3889
3890 * symtab.c (completion_list_add_name): Return boolean indication
3891 of whether the symbol matched.
3892 (completion_list_add_symbol): Don't try to remove C++ aliases if
3893 the symbol didn't match in the first place.
3894 * symtab.h (completion_list_add_name): Return bool.
3895
3896 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3897
3898 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3899 type::field.
3900
3901 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3902
3903 GDB 9.2 released.
3904
3905 2020-05-23 Tom Tromey <tom@tromey.com>
3906
3907 * NEWS: Add entry for completion styling.
3908 * completer.c (_rl_completion_prefix_display_length): Move
3909 declaration earlier.
3910 (gdb_fnprint): Use completion_style.
3911 (gdb_display_match_list_1): Likewise.
3912 * cli/cli-style.c (completion_prefix_style)
3913 (completion_difference_style, completion_suffix_style): New
3914 globals.
3915 (_initialize_cli_style): Register new globals.
3916 * cli/cli-style.h (completion_prefix_style)
3917 (completion_difference_style, completion_suffix_style): Declare.
3918
3919 2020-05-23 Pedro Alves <palves@redhat.com>
3920
3921 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3922 (parse_escape): Use ISDIGIT instead of isdigit.
3923 (puts_debug): Use gdb_isprint instead of isprint.
3924 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3925 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3926 ISSPACE instead of isspace.
3927 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3928 instead of isspace.
3929 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3930 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3931 instead of isxdigit and ISDIGIT instead of isdigit.
3932
3933 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3934
3935 * gdbtypes.h (struct type) <field>: New method.
3936 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3937 or type::field.
3938
3939 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3942 (TYPE_FIELDS): Use type::fields. Change all call sites that
3943 modify the propery to use type::set_fields instead.
3944
3945 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3948 type::num_fields instead.
3949
3950 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3953 methods.
3954 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3955 that modify the number of fields to use type::set_num_fields
3956 instead.
3957
3958 2020-05-22 Tom Tromey <tromey@adacore.com>
3959
3960 * compile/compile-object-load.h (munmap_list_free): Don't
3961 declare.
3962
3963 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3964
3965 * annotate.c (annotate_source_line): Update return type, add call
3966 to update current symtab and line.
3967 * annotate.h (annotate_source_line): Update return type, and
3968 extend header comment.
3969 * source.c (info_line_command): Check annotation_level before
3970 calling annotate_source_line.
3971 * stack.c (print_frame_info): If calling annotate_source_line
3972 returns true, then don't print any other source line information.
3973
3974 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3977
3978 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3979
3980 * coffread.c (patch_type): Remove NULL check before xfree.
3981 * corefile.c (set_gnutarget): Likewise.
3982 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3983 * exec.c (build_section_table): Likewise.
3984 * remote.c (remote_target::pass_signals): Likewise.
3985 * utils.c (n_spaces): Likewise.
3986 * cli/cli-script.c (document_command): Likewise.
3987 * i386-windows-tdep.c (core_process_module_section): Likewise.
3988 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3989
3990 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3991
3992 * symfile.c (reread_symbols): Clear objfile's section_offsets
3993 vector and section indices, re-compute them by calling
3994 sym_offsets.
3995
3996 2020-05-20 Tom Tromey <tromey@adacore.com>
3997
3998 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3999 (desc_one_bound, desc_index_type): Compute field name.
4000
4001 2020-05-20 Tom de Vries <tdevries@suse.de>
4002
4003 PR symtab/25833
4004 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4005
4006 2020-05-20 Alan Modra <amodra@gmail.com>
4007
4008 PR 25993
4009 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4010 bfd_set_filename.
4011 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4012 passed to bfd_set_filename.
4013 * symfile-mem.c (add_vsyscall_page): Likewise for string
4014 passed to symbol_file_add_from_memory.
4015 (symbol_file_add_from_memory): Make name param a const char* and
4016 don't strdup.
4017
4018 2020-05-20 Alan Modra <amodra@gmail.com>
4019
4020 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4021 rather than accessing bfd->filename directly.
4022 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4023 and use bfd_section_name.
4024 * dwarf2/frame.c (decode_frame_entry): Likewise.
4025 * exec.c (exec_set_section_address): Likewise.
4026 * solib-aix.c (solib_aix_bfd_open): Likewise.
4027 * stap-probe.c (get_stap_base_address): Likewise.
4028 * symfile.c (reread_symbols): Likewise.
4029
4030 2020-05-19 Tom Tromey <tromey@adacore.com>
4031
4032 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4033
4034 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4037
4038 2020-05-19 Pedro Alves <palves@redhat.com>
4039
4040 * NEWS (set exec-file-mismatch): Adjust entry.
4041 * exec.c: Include "build-id.h".
4042 (validate_exec_file): Try to match build IDs instead of filenames.
4043 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4044 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4045 and pass down 'warn_if_slow'.
4046 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4047 gdb_bfd_open_closure to pass it down.
4048 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4049
4050 2020-05-19 Pedro Alves <palves@redhat.com>
4051
4052 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4053 * target.c (target_fileio_open_1): Rename to target_fileio_open
4054 and make extern. Use bool.
4055 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4056 (target_fileio_read_alloc_1): Adjust.
4057 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4058 (target_fileio_open_warn_if_slow): Delete declaration.
4059
4060 2020-05-19 Pedro Alves <palves@redhat.com>
4061
4062 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4063 Adjust all callers.
4064
4065 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4066
4067 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4068 whether disp is negative.
4069
4070 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * symfile.h (struct symfile_segment_data)
4073 <~symfile_segment_data>: Remove.
4074 <segment_info>: Change to std::vector.
4075 * symfile.c (default_symfile_segments): Update.
4076 * elfread.c (elf_symfile_segments): Update.
4077
4078 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4081 <segments>: New.
4082 <segment_bases, segment_sizes>: Remove.
4083 * symfile.c (default_symfile_segments): Update.
4084 * elfread.c (elf_symfile_segments): Update.
4085 * remote.c (remote_target::get_offsets): Update.
4086 * solib-target.c (solib_target_relocate_section_addresses):
4087 Update.
4088
4089 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * symfile.h (struct symfile_segment_data): Initialize fields.
4092 <~symfile_segment_data>: Add.
4093 (symfile_segment_data_up): New.
4094 (struct sym_fns) <sym_segments>: Return a
4095 symfile_segment_data_up.
4096 (default_symfile_segments): Return a symfile_segment_data_up.
4097 (free_symfile_segment_data): Remove.
4098 (get_symfile_segment_data): Return a symfile_segment_data_up.
4099 * symfile.c (default_symfile_segments): Likewise.
4100 (get_symfile_segment_data): Likewise.
4101 (free_symfile_segment_data): Remove.
4102 (symfile_find_segment_sections): Update.
4103 * elfread.c (elf_symfile_segments): Return a
4104 symfile_segment_data_up.
4105 * remote.c (remote_target::get_offsets): Update.
4106 * solib-target.c (solib_target_relocate_section_addresses):
4107 Update.
4108 * symfile-debug.c (debug_sym_segments): Return a
4109 symfile_segment_data_up.
4110
4111 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4112
4113 PR build/25981
4114 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4115 Hardcode register numbers.
4116
4117 PR build/25981
4118 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4119 procfs_find_LDT_entry): Remove.
4120 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4121 procfs_find_LDT_entry): Remove.
4122 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4123 Remove.
4124
4125 2020-05-17 Pedro Alves <palves@redhat.com>
4126 Andrew Burgess <andrew.burgess@embecosm.com>
4127 Keno Fischer <keno@juliacomputing.com>
4128
4129 PR gdb/25741
4130 * breakpoint.c (build_target_condition_list): Update comments.
4131 (build_target_command_list): Update comments and skip matching
4132 locations.
4133 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4134 a separate function. Simplify "set breakpoint auto-hw off"
4135 handling.
4136 (insert_breakpoints): Update comment.
4137 (tracepoint_locations_match): New parameter. For breakpoints,
4138 compare location types too, if the caller wants to.
4139 (handle_automatic_hardware_breakpoints): New functions.
4140 (bp_location_is_less_than): Also sort by location type and
4141 hardware breakpoint length.
4142 (update_global_location_list): Handle "set breakpoint auto-hw on"
4143 here.
4144 (update_breakpoint_locations): Ask breakpoint_locations_match to
4145 ignore location types.
4146
4147 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4150 type::name instead.
4151
4152 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * gdbtypes.h (struct type) <name, set_name>: New methods.
4155 (TYPE_CODE): Use type::name. Change all call sites used to set
4156 the name to use type::set_name instead.
4157
4158 2020-05-16 Tom Tromey <tom@tromey.com>
4159
4160 * top.c (quit_force): Update.
4161 * infrun.c (handle_no_resumed): Update.
4162 * top.h (all_uis): New function.
4163 (ALL_UIS): Remove.
4164
4165 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4168
4169 2020-05-16 Pedro Alves <palves@redhat.com>
4170
4171 * ia64-linux-nat.c
4172 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4173 Declare method.
4174 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4175
4176 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4179 (sparc64_adi_info): Likewise.
4180
4181 2020-05-15 Tom Tromey <tom@tromey.com>
4182
4183 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4184 block_objfile.
4185 (lookup_objfile_from_block): Remove.
4186 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4187 (lookup_global_symbol): Use block_objfile.
4188 * symtab.h (lookup_objfile_from_block): Don't declare.
4189 * printcmd.c (clear_dangling_display_expressions): Use
4190 block_objfile.
4191 * parse.c (operator_check_standard): Use block_objfile.
4192
4193 2020-05-15 Tom Tromey <tom@tromey.com>
4194
4195 * language.c (language_alloc_type_symbol): Set
4196 SYMBOL_SECTION.
4197 * symtab.c (initialize_objfile_symbol): Remove.
4198 (allocate_symbol): Remove.
4199 (allocate_template_symbol): Remove.
4200 * dwarf2/read.c (fixup_go_packaging): Use "new".
4201 (new_symbol): Use "new".
4202 (read_variable): Don't call initialize_objfile_symbol. Use
4203 "new".
4204 (read_func_scope): Use "new".
4205 * xcoffread.c (process_xcoff_symbol): Don't call
4206 initialize_objfile_symbol.
4207 (SYMBOL_DUP): Remove.
4208 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4209 "new".
4210 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4211 (allocate_template_symbol): Don't declare.
4212 (struct symbol): Add copy constructor. Change defaults.
4213 * jit.c (finalize_symtab): Use "new".
4214 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4215 Use "new".
4216 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4217 (common_block_end): Use "new".
4218 * mdebugread.c (parse_symbol): Use "new".
4219 (new_symbol): Likewise.
4220
4221 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4222
4223 * NEWS: Mention changes to help and apropos.
4224
4225 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4226
4227 * command.h (enum command_class): Improve comments, document
4228 that class_alias is for user-defined aliases, give the class
4229 name for each class, remove unused class_xdb.
4230 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4231 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4232 by a precise class.
4233 * infcmd.c (_initialize_infcmd): Likewise.
4234 * reverse.c (_initialize_reverse): Likewise.
4235 * stack.c (_initialize_stack): Likewise.
4236 * symfile.c (_initialize_symfile): Likewise.
4237 * tracepoint.c (_initialize_tracepoint): Likewise.
4238
4239 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4240
4241 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4242 when their aliased command is traversed.
4243 (help_cmd): Add fput_command_names_styled call to
4244 output command name and aliases when command has an alias.
4245
4246 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4247
4248 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4249 * cli/cli-decode.c (help_cmd_list): Declare as static,
4250 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4251 a command together with the command.
4252 (fput_command_name_styled, fput_command_names_styled): New functions.
4253 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4254 fput_command_name_styled.
4255 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4256 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4257
4258 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4259
4260 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4261 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4262 * command.h (cmd_show_list): Likewise.
4263 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4264 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4265
4266 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4267
4268 * unittests/command-def-selftests.c (traverse_command_structure):
4269 Verify all commands of a list have the same prefix command and
4270 that only the top cmdlist commands have a null prefix.
4271
4272 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4273
4274 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4275 as prefix, not one of its aliases.
4276 (set_cmd_prefix): Remove.
4277 (do_add_cmd): Centralize the setting of the prefix of a command, when
4278 command is defined after its full chain of prefix commands.
4279 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4280 (add_setshow_cmd_full): Likewise.
4281 (update_prefix_field_of_prefixed_commands): New function.
4282 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4283 update_prefix_field_of_prefixed_commands.
4284 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4285 addresses of remote_set_cmdlist and remote_show_cmdlist given
4286 as argument, not the address of an argument.
4287 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4288 * gdb/remote.c (_initialize_remote): Likewise.
4289
4290 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4291
4292 * cli/cli-cmds.c (alias_command): Check for an existing alias
4293 using lookup_cmd_composition, as valid_command_p is too strict
4294 and forbids aliases that are the prefix of an existing alias
4295 or command.
4296 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4297 command is properly recognised as a valid command.
4298
4299 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4300
4301 * unittests/help-doc-selftests.c: Rename to
4302 unittests/command-def-selftests.c
4303 * unittests/command-def-selftests.c (help_doc_tests): Update some
4304 comments.
4305 (command_structure_tests, traverse_command_structure): New namespace
4306 and function.
4307 (command_structure_invariants_tests): New function.
4308 (_initialize_command_def_selftests) Renamed from
4309 _initialize_help_doc_selftests, register command_structure_invariants
4310 selftest.
4311
4312 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4313
4314 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4315 an alias of 'show'.
4316
4317 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4318
4319 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4320 ada_is_fixed_point_type. Update all callers.
4321 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4322 all callers.
4323 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4324 Update all callers.
4325 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4326 print_fixed_point_type. Update all callers.
4327 * ada-valprint.c (ada_value_print_num): Replace call to
4328 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4329
4330 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4331
4332 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4333 processors.
4334 (cpu_supports_bts): Add CV_AMD case.
4335
4336 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4337 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * infrun.c (stop_all_threads): Collect multiple wait events at
4340 each pass.
4341
4342 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4343
4344 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4345 type::code instead.
4346
4347 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4348
4349 * gdbtypes.h (struct type) <code, set_code>: New methods.
4350 (TYPE_CODE): Use type::code. Change all call sites used to set
4351 the code to use type::set_code instead.
4352
4353 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4354 Tom de Vries <tdevries@suse.de>
4355 Pedro Alves <palves@redhat.com>
4356
4357 PR threads/25478
4358 * infrun.c (stop_all_threads): Do NOT ignore
4359 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4360 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4361 received.
4362 (handle_no_resumed): Remove code handling a live inferior with no
4363 threads.
4364 * remote.c (has_single_non_exited_thread): New.
4365 (remote_target::update_thread_list): Do not delete a thread if is
4366 the last thread of the process.
4367 * thread.c (thread_select): Call delete_exited_threads instead of
4368 prune_threads.
4369
4370 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4371
4372 * infrun.c (stop_all_threads): Enable/disable thread events of all
4373 targets. Move a debug message denoting the end of the function
4374 into the SCOPED_EXIT block.
4375
4376 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4377
4378 * process-stratum-target.h: Include <set>.
4379 (all_non_exited_process_targets, switch_to_target_no_thread): New
4380 function declarations.
4381 * process-stratum-target.c (all_non_exited_process_targets)
4382 (switch_to_target_no_thread): New function implementations.
4383
4384 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4385
4386 * infrun.c (handle_inferior_event): Extract out a piece of code
4387 into...
4388 (mark_non_executing_threads): ...this new function.
4389
4390 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4391
4392 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4393 use.
4394
4395 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4396
4397 * regcache.c (regcache_read_pc_protected): New function
4398 implementation that returns 0 if the PC cannot read via
4399 'regcache_read_pc'.
4400 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4401 instead of 'regcache_read_pc'.
4402 (keep_going_pass_signal): Ditto.
4403
4404 2020-05-13 Tom Tromey <tromey@adacore.com>
4405
4406 * ada-lang.c (align_value): Remove.
4407 (ada_template_to_fixed_record_type_1): Use align_up.
4408
4409 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4410
4411 * async-event.c: Update the copyright year.
4412 * async-event.h: Update the copyright year.
4413
4414 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * objfiles.h (is_addr_in_objfile,
4417 shared_objfile_contains_address_p): Return bool.
4418 * objfile.c (is_addr_in_objfile,
4419 shared_objfile_contains_address_p): Return bool.
4420
4421 2020-05-11 Tom Tromey <tromey@adacore.com>
4422
4423 * cli/cli-cmds.c (info_command): Restore.
4424 (_initialize_cli_cmds): Use add_prefix_command for "info".
4425 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4426
4427 2020-05-11 Tom Tromey <tromey@adacore.com>
4428
4429 * ada-lang.c (ada_value_primitive_field): Now public.
4430 * ada-lang.h (ada_value_primitive_field): Declare.
4431 * ada-valprint.c (print_field_values): Use
4432 ada_value_primitive_field for wrapper fields.
4433
4434 2020-05-11 Tom de Vries <tdevries@suse.de>
4435
4436 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4437 MODULE_DOMAIN.
4438
4439 2020-05-11 Tom de Vries <tdevries@suse.de>
4440
4441 PR symtab/25941
4442 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4443 with length 0, if not gdb-produced.
4444 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4445
4446 2020-05-09 Tom de Vries <tdevries@suse.de>
4447
4448 PR gdb/25955
4449 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4450 calculation.
4451
4452 2020-05-09 Tom Tromey <tom@tromey.com>
4453
4454 * top.c (server_command): Now bool.
4455 * top.h (server_command): Now bool.
4456
4457 2020-05-08 Tom Tromey <tromey@adacore.com>
4458
4459 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4460 already being processed.
4461
4462 2020-05-08 Tom Tromey <tom@tromey.com>
4463
4464 * printcmd.c (struct display) <next>: Remove.
4465 <display>: New constructor.
4466 <exp_string>: Now a std::string.
4467 <enabled_p>: Now a bool.
4468 (display_number): Move definition earlier.
4469 (displays): Rename from display_chain. Now a std::vector.
4470 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4471 (display_command): Update.
4472 (do_one_display, disable_display)
4473 (enable_disable_display_command, do_enable_disable_display):
4474 Update.
4475 (free_display): Remove.
4476 (clear_displays): Rewrite.
4477 (delete_display): Update.
4478 (map_display_numbers): Use function_view. Remove "data"
4479 parameter. Update.
4480 (do_delete_display): Remove.
4481 (undisplay_command): Update.
4482 (do_one_display, do_displays, disable_display)
4483 (info_display_command): Update.
4484 (do_enable_disable_display): Remove.
4485 (enable_disable_display_command)
4486 (clear_dangling_display_expressions): Update.
4487
4488 2020-05-08 Tom Tromey <tom@tromey.com>
4489
4490 * symtab.c (set_symbol_cache_size)
4491 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4492 (maintenance_print_symbol_cache_statistics): Update.
4493 * symmisc.c (print_symbol_bcache_statistics)
4494 (print_objfile_statistics, maintenance_print_objfiles)
4495 (maintenance_info_symtabs, maintenance_check_symtabs)
4496 (maintenance_expand_symtabs, maintenance_info_line_tables):
4497 Update.
4498 * symfile-debug.c (set_debug_symfile): Update.
4499 * source.c (forget_cached_source_info): Update.
4500 * python/python.c (gdbpy_progspaces): Update.
4501 * psymtab.c (maintenance_info_psymtabs): Update.
4502 * probe.c (parse_probes): Update.
4503 * linespec.c (iterate_over_all_matching_symtabs)
4504 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4505 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4506 * exec.c (exec_target::close): Update.
4507 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4508 * breakpoint.c (print_one_breakpoint_location)
4509 (create_longjmp_master_breakpoint)
4510 (create_std_terminate_master_breakpoint): Update.
4511 * progspace.c (program_spaces): Now a std::vector.
4512 (maybe_new_address_space): Update.
4513 (add_program_space): Remove.
4514 (program_space::program_space): Update.
4515 (remove_program_space): Update.
4516 (number_of_program_spaces): Remove.
4517 (print_program_space, update_address_spaces): Update.
4518 * progspace.h (program_spaces): Change type.
4519 (ALL_PSPACES): Remove.
4520 (number_of_program_spaces): Don't declare.
4521 (struct program_space) <next>: Remove.
4522
4523 2020-05-08 Tom Tromey <tom@tromey.com>
4524
4525 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4526 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4527 (enable_break): Update.
4528 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4529 (frv_fdpic_find_canonical_descriptor): Update.
4530 (frv_fetch_objfile_link_map): Update.
4531 * progspace.c (program_space::free_all_objfiles): Update.
4532 (program_space::solibs): New method.
4533 * progspace.h (struct program_space) <solibs>: New method.
4534 * solist.h (master_so_list): Don't declare.
4535 (ALL_SO_LIBS): Remove.
4536 * solib.h (so_list_head): Remove.
4537 (update_solib_list): Update comment.
4538 * solib.c (master_so_list): Remove.
4539 (solib_used, update_solib_list, solib_add)
4540 (info_sharedlibrary_command, clear_solib)
4541 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4542
4543 2020-05-08 Tom Tromey <tom@tromey.com>
4544
4545 * extension.c (extension_languages): Now a std::array.
4546 (ALL_EXTENSION_LANGUAGES): Remove.
4547 (get_ext_lang_defn, get_ext_lang_of_file)
4548 (eval_ext_lang_from_control_command): Update.
4549 (finish_ext_lang_initialization)
4550 (auto_load_ext_lang_scripts_for_objfile)
4551 (ext_lang_type_printers::ext_lang_type_printers)
4552 (apply_ext_lang_type_printers)
4553 (ext_lang_type_printers::~ext_lang_type_printers)
4554 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4555 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4556 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4557 (get_matching_xmethod_workers, ext_lang_colorize)
4558 (ext_lang_before_prompt): Update.
4559 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4560
4561 2020-05-08 Tom Tromey <tom@tromey.com>
4562
4563 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4564 overload.
4565 <swap_string, m_string>: Remove.
4566 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4567 Update.
4568 * stabsread.c (define_symbol, read_type): Update.
4569 * linespec.c (find_linespec_symbols): Update.
4570 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4571 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4572 * dbxread.c (read_dbx_symtab): Update.
4573 * cp-support.h (cp_canonicalize_string_full)
4574 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4575 Return unique_xmalloc_ptr.
4576 * cp-support.c (inspect_type): Update.
4577 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4578 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4579 Likewise.
4580 * c-typeprint.c (print_name_maybe_canonical): Update.
4581 * break-catch-throw.c (check_status_exception_catchpoint):
4582 Update.
4583
4584 2020-05-08 Tom de Vries <tdevries@suse.de>
4585
4586 * infrun.c (follow_fork): Copy current_line and current_symtab to
4587 child thread.
4588
4589 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * async-event.c (struct async_signal_handler, struct
4592 async_event_handler): Reformat, remove typedef.
4593
4594 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4597 access thistype->main_type->dyn_prop_list directly.
4598
4599 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4602 (remove_dyn_prop): Remove. Update all users to use
4603 type::remove_dyn_prop.
4604 * gdbtypes.c (remove_dyn_prop): Rename to...
4605 (type::remove_dyn_prop): ... this.
4606
4607 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4608
4609 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4610 (add_dyn_prop): Remove. Update all users to use
4611 type::add_dyn_prop.
4612 * gdbtypes.c (add_dyn_prop): Rename to...
4613 (type::add_dyn_prop): ... this.
4614
4615 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4618 (get_dyn_prop): Remove. Update all users to use
4619 type::dyn_prop.
4620 * gdbtypes.c (get_dyn_prop): Rename to...
4621 (type::dyn_prop): ... this.
4622
4623 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4626
4627 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4630 instruction, skip it if it's there.
4631
4632 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4635
4636 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4639 * gdbtypes.c (recursive_dump_type): Remove use of
4640 TYPE_INCOMPLETE.
4641
4642 2020-05-03 Tom Tromey <tom@tromey.com>
4643
4644 * breakpoint.c (catch_command, tcatch_command): Remove.
4645 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4646 add_show_prefix_cmd.
4647 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4648 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4649 Remove.
4650 (add_internal_problem_command): Use add_basic_prefix_cmd,
4651 add_show_prefix_cmd.
4652 * mips-tdep.c (set_mipsfpu_command): Remove.
4653 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4654 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4655 (_initialize_index_cache): Use add_basic_prefix_cmd.
4656 * memattr.c (dummy_cmd): Remove.
4657 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4658 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4659 (_initialize_tui_win): Use add_basic_prefix_cmd,
4660 add_show_prefix_cmd.
4661 * cli/cli-logging.c (set_logging_command): Remove.
4662 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4663 add_show_prefix_cmd.
4664 (show_logging_command): Remove.
4665 * target.c (target_command): Remove.
4666 (add_target): Use add_basic_prefix_cmd.
4667
4668 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4669
4670 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4671
4672 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4673
4674 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4675 info_command.
4676
4677 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4678
4679 * nbsd-nat.c (nbsd_enable_proc_events)
4680 (nbsd_nat_target::post_startup_inferior): Add.
4681 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4682 (nbsd_nat_target::update_thread_list): Rewrite.
4683 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4684 "PTRACE_LWP_CREATE".
4685 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4686
4687 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4688
4689 * stack.c (_initialize_stack): Remove duplicated creation
4690 of "frame" command and "f" alias.
4691
4692 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4693
4694 PR gdb/18706
4695 * gdbtypes.c (check_typedef): Calculate size of array of
4696 stubbed type.
4697
4698 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4699
4700 PR gdb/15559
4701 * i386-tdep.c (i386_push_dummy_call): Call
4702 i386_thiscall_push_dummy_call.
4703 (i386_thiscall_push_dummy_call): New function.
4704 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4705 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4706 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4707
4708 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * gdbarch.sh (do_read): Add shellcheck disable directive for
4711 warning SC2162.
4712
4713 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4716 "referenced but not assigned" warning.
4717
4718 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbarch.sh: Remove code that sets fallbackdefault.
4721
4722 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * gdbarch.sh: Use shell operators && and || instead of
4725 -a and -o.
4726
4727 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * gdbarch.sh: Use $(...) instead of `...`.
4730
4731 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4732
4733 * gdbarch.sh: Use double quotes around variables.
4734
4735 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbarch.sh: Use %s with printf, instead of variables in the
4738 format string.
4739
4740 2020-04-29 Tom Tromey <tromey@adacore.com>
4741
4742 PR ada/25875:
4743 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4744 type fields here.
4745 (read_enumeration_type): Call
4746 update_enumeration_type_from_children later. Update comments.
4747 (process_enumeration_scope): Don't create type fields.
4748
4749 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4750
4751 * nbsd-tdep.c: Include "xml-syscall.h".
4752 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4753
4754 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4755
4756 * nbsd-nat.c: Include "sys/wait.h".
4757 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4758 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4759 (nbsd_nat_target::remove_exec_catchpoint)
4760 (nbsd_nat_target::set_syscall_catchpoint): Add.
4761 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4762 (nbsd_nat_target::insert_exec_catchpoint)
4763 (nbsd_nat_target::remove_exec_catchpoint)
4764 (nbsd_nat_target::set_syscall_catchpoint): Add.
4765 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4766 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4767 `nbsd_get_syscall_number'.
4768
4769 2020-04-29 Tom Tromey <tom@tromey.com>
4770
4771 * stack.c (print_block_frame_labels): Remove.
4772
4773 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4774
4775 PR gdb/17320
4776 * ada-valprint.c (val_print_packed_array_elements): Move array
4777 end bracket to new line.
4778 (ada_val_print_string): Remove extra spaces before first array
4779 element.
4780 * c-valprint.c (c_value_print_array): Likewise.
4781 * m2-valprint.c (m2_print_array_contents): Likewise.
4782 (m2_value_print_inner): Likewise.
4783 * p-valprint.c (pascal_value_print_inner): Likewise.
4784 * valprint.c (generic_val_print_array): Likewise.
4785 (value_print_array_elements): Move first array element and array
4786 end bracket to new line.
4787
4788 2020-04-29 Tom de Vries <tdevries@suse.de>
4789
4790 PR symtab/25889
4791 * linespec.c (find_method): Fix ix calculation.
4792
4793 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4794
4795 * syscalls/update-netbsd.sh: New file.
4796 * syscalls/netbsd.xml: Regenerate.
4797 * data-directory/Makefile.in: Register `netbsd.xml' in
4798 `SYSCALLS_FILES'.
4799
4800 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * syscalls/update-freebsd.sh: Add double quotes.
4803
4804 2020-04-28 Tom Tromey <tom@tromey.com>
4805
4806 * NEWS: Update.
4807 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4808 (cmdpy_init): Allow class_tui.
4809
4810 2020-04-28 Mark Williams <mark@myosotissp.com>
4811
4812 PR gdb/24480
4813 * dwarf2read.c: Add missing assingments to list_in_scope when
4814 start_symtab was already called.
4815
4816 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4817
4818 PR gdb/25881
4819 * dwarf2/read.c (offset_map_type): Use
4820 gdb:hash_enum<sect_offset> as hash function.
4821
4822 2020-04-28 Tom de Vries <tdevries@suse.de>
4823
4824 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4825 with DW_AT_signature.
4826
4827 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4828
4829 * configure.ac: Remove check for fs_base/gs_base in
4830 user_regs_struct.
4831 * configure: Re-generate.
4832 * config.in: Re-generate.
4833 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4834 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4835 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4836
4837 2020-04-27 Luis Machado <luis.machado@linaro.org>
4838
4839 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4840 problematic inline frame unwinding situation.
4841 * frame.c (frame_id_computed_p): New function.
4842 * frame.h (frame_id_computed_p): New prototype.
4843
4844 2020-04-26 Tom Tromey <tom@tromey.com>
4845
4846 * command.h (enum command_class) <class_pseudo>: Remove.
4847
4848 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4849
4850 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4851 and whitespace.
4852
4853 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4854
4855 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4856 `PT_GET_PROCESS_STATE' block.
4857
4858 2020-04-24 Tom Tromey <tom@tromey.com>
4859
4860 * symtab.h (symbol_get_demangled_name): Don't declare.
4861 * symtab.c (symbol_get_demangled_name): Remove.
4862 (general_symbol_info::natural_name)
4863 (general_symbol_info::demangled_name): Update.
4864
4865 2020-04-24 Tom Tromey <tom@tromey.com>
4866
4867 PR rust/25025:
4868 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4869
4870 2020-04-24 Tom Tromey <tom@tromey.com>
4871
4872 PR symtab/12707:
4873 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4874 exists.
4875 (new_symbol): Likewise.
4876 * compile/compile-object-load.c (get_out_value_type): Use
4877 symbol_matches_search_name.
4878
4879 2020-04-24 Tom Tromey <tom@tromey.com>
4880
4881 * dwarf2/read.c (add_partial_symbol): Do not call
4882 compute_and_set_names.
4883
4884 2020-04-24 Tom Tromey <tom@tromey.com>
4885
4886 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4887 overload.
4888
4889 2020-04-24 Tom Tromey <tom@tromey.com>
4890
4891 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4892 (add_psymbol_to_list): New overload. Make old overload call new
4893 one.
4894 * psympriv.h (add_psymbol_to_list): New overload.
4895
4896 2020-04-24 Tom Tromey <tom@tromey.com>
4897
4898 * dwarf2/read.c (partial_die_info::read) <case
4899 DW_AT_linkage_name>: Use value_as_string.
4900 (dwarf2_string_attr): Use value_as_string.
4901 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4902 method.
4903 * dwarf2/attribute.c (attribute::value_as_string): New method.
4904
4905 2020-04-24 Tom Tromey <tom@tromey.com>
4906
4907 * symtab.c (general_symbol_info::natural_name)
4908 (general_symbol_info::demangled_name): Check for language_rust.
4909
4910 2020-04-24 Tom Tromey <tom@tromey.com>
4911
4912 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4913 (dwarf2_physname): ... from here.
4914 (partial_die_info::read): Add Rust "{" hack.
4915
4916 2020-04-24 Tom Tromey <tom@tromey.com>
4917
4918 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4919 method.
4920 (symbol_set_demangled_name): Don't declare.
4921 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4922 symbol_set_demangled_name.
4923 (general_symbol_info::set_language)
4924 (general_symbol_info::compute_and_set_names): Update.
4925 * minsyms.c (minimal_symbol_reader::install): Update.
4926 * dwarf2/read.c (new_symbol): Update.
4927
4928 2020-04-24 Tom Tromey <tromey@adacore.com>
4929
4930 PR python/23662:
4931 * python/py-type.c (convert_field): Handle
4932 FIELD_LOC_KIND_DWARF_BLOCK.
4933 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4934 (typy_get_dynamic): Nw function.
4935 (type_object_getset): Add "dynamic".
4936 * NEWS: Add entry.
4937
4938 2020-04-24 Tom Tromey <tromey@adacore.com>
4939
4940 * ada-typeprint.c (print_choices, print_variant_part)
4941 (print_record_field_types_dynamic): New functions.
4942 (print_record_field_types): Use print_record_field_types_dynamic.
4943
4944 2020-04-24 Tom Tromey <tromey@adacore.com>
4945
4946 * dwarf2/read.c (handle_data_member_location): New overload.
4947 (dwarf2_add_field): Use it.
4948 (decode_locdesc): Add "computed" parameter. Update comment.
4949 * gdbtypes.c (is_dynamic_type_internal): Also look for
4950 FIELD_LOC_KIND_DWARF_BLOCK.
4951 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4952 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4953 virtual base classes.
4954 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4955 FIELD_LOC_KIND_DWARF_BLOCK.
4956
4957 2020-04-24 Tom Tromey <tromey@adacore.com>
4958
4959 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4960 * gdbtypes.c (is_dynamic_type_internal): Check
4961 TYPE_HAS_DYNAMIC_LENGTH.
4962 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4963 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4964 New macros.
4965 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4966 constant.
4967
4968 2020-04-24 Tom Tromey <tromey@adacore.com>
4969
4970 * dwarf2/read.c (struct variant_field): Rewrite.
4971 (struct variant_part_builder): New.
4972 (struct nextfield): Remove "variant" field. Add "offset".
4973 (struct field_info): Add "current_variant_part" and
4974 "variant_parts".
4975 (alloc_discriminant_info): Remove.
4976 (alloc_rust_variant): New function.
4977 (quirk_rust_enum): Update.
4978 (dwarf2_add_field): Set "offset" member. Don't handle
4979 DW_TAG_variant_part.
4980 (offset_map_type): New typedef.
4981 (convert_variant_range, create_one_variant)
4982 (create_one_variant_part, create_variant_parts)
4983 (add_variant_property): New functions.
4984 (dwarf2_attach_fields_to_type): Call add_variant_property.
4985 (read_structure_type): Don't handle DW_TAG_variant_part.
4986 (handle_variant_part, handle_variant): New functions.
4987 (handle_struct_member_die): Use them.
4988 (process_structure_scope): Don't handle variant parts.
4989 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4990 (struct discriminant_info): Remove.
4991 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4992 (struct main_type) <flag_discriminated_union>: Remove.
4993 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4994 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4995 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4996 Update.
4997 * valops.c (value_union_variant): Remove.
4998 * value.h (value_union_variant): Don't declare.
4999
5000 2020-04-24 Tom Tromey <tromey@adacore.com>
5001
5002 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5003 (ada_value_primitive_packed_val): Update.
5004 * ada-valprint.c (ada_value_print_1): Update.
5005 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5006 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5007 just an address. Use evaluate_for_locexpr_baton.
5008 (dwarf2_evaluate_property): Update.
5009 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5010 array_view.
5011 * findvar.c (default_read_var_value): Update.
5012 * gdbtypes.c (compute_variant_fields_inner)
5013 (resolve_dynamic_type_internal): Update.
5014 (resolve_dynamic_type): Change type of valaddr parameter.
5015 * gdbtypes.h (resolve_dynamic_type): Update.
5016 * valarith.c (value_subscripted_rvalue): Update.
5017 * value.c (value_from_contents_and_address): Update.
5018
5019 2020-04-24 Tom Tromey <tromey@adacore.com>
5020
5021 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5022 "push_initial_value" parameter.
5023 (dwarf2_evaluate_property): Likewise.
5024 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5025
5026 2020-04-24 Tom Tromey <tromey@adacore.com>
5027
5028 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5029 (variant::matches, compute_variant_fields_recurse)
5030 (compute_variant_fields_inner, compute_variant_fields): New
5031 functions.
5032 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5033 Use resolved_type after type is made.
5034 (operator==): Add new cases.
5035 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5036 (struct discriminant_range, struct variant, struct variant_part):
5037 New.
5038 (union dynamic_prop_data) <variant_parts, original_type>: New
5039 members.
5040 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5041 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5042 constants.
5043 * value.c (unpack_bits_as_long): Now public.
5044 * value.h (unpack_bits_as_long): Declare.
5045
5046 2020-04-24 Tom Tromey <tromey@adacore.com>
5047
5048 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5049 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5050
5051 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5052
5053 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5054
5055 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5056
5057 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5058 (remove_fork_catchpoint, post_startup_inferior)
5059 (post_attach): Move...
5060 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5061 (remove_fork_catchpoint, post_startup_inferior)
5062 (post_attach): ...here.
5063 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5064 (remove_fork_catchpoint, post_startup_inferior)
5065 (post_attach): Move...
5066 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5067 (remove_fork_catchpoint, post_startup_inferior)
5068 (post_attach): ...here.
5069
5070 2020-04-24 Tom Tromey <tromey@adacore.com>
5071
5072 * nat/windows-nat.h (struct windows_thread_info)
5073 <pc_adjusted>: New member.
5074 * windows-nat.c (windows_fetch_one_register): Check
5075 pc_adjusted.
5076 (windows_nat_target::get_windows_debug_event)
5077 (windows_nat_target::wait): Set pc_adjusted.
5078
5079 2020-04-24 Tom de Vries <tdevries@suse.de>
5080
5081 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5082 Run gdb-add-index inside temp dir.
5083
5084 2020-04-23 Tom Tromey <tromey@adacore.com>
5085
5086 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5087 in loop.
5088
5089 2020-04-23 Luis Machado <luis.machado@linaro.org>
5090
5091 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5092 get_frame_register instead of gdbarch_unwind_pc.
5093
5094 2020-04-23 Tom de Vries <tdevries@suse.de>
5095
5096 * symtab.c (lookup_global_symbol): Prefer def over decl.
5097
5098 2020-04-23 Tom de Vries <tdevries@suse.de>
5099
5100 PR symtab/25807
5101 * block.c (best_symbol, better_symbol): Promote to external.
5102 * block.h (best_symbol, better_symbol): Declare.
5103 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5104 decl.
5105
5106 2020-04-23 Tom Tromey <tromey@adacore.com>
5107
5108 PR ada/25837:
5109 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5110 "const char *", not a "const std::string &".
5111 <name_and_matcher::operator==>: Update.
5112 * unittests/lookup_name_info-selftests.c: Change type of
5113 "result".
5114
5115 2020-04-23 Tom Tromey <tom@tromey.com>
5116
5117 * inferior.h (iterate_over_inferiors): Don't declare.
5118 * inferior.c (iterate_over_inferiors): Remove.
5119 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5120 Remove.
5121 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5122 use iterate_over_inferiors.
5123 (darwin_resume_inferior_it)
5124 (struct resume_inferior_threads_param)
5125 (darwin_resume_inferior_threads_it): Remove.
5126 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5127
5128 2020-04-23 Tom de Vries <tdevries@suse.de>
5129
5130 * blockframe.c (find_pc_partial_function): Use
5131 find_pc_sect_compunit_symtab rather than
5132 objfile->sf->qf->find_pc_sect_compunit_symtab.
5133
5134 2020-04-22 Tom de Vries <tdevries@suse.de>
5135
5136 PR symtab/25764
5137 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5138 in psymtabs.
5139
5140 2020-04-22 Tom de Vries <tdevries@suse.de>
5141
5142 PR symtab/25801
5143 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5144 symtabs.
5145
5146 2020-04-22 Tom de Vries <tdevries@suse.de>
5147
5148 PR symtab/25700
5149 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5150 CU if already created.
5151
5152 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5153
5154 * infrun.c (displaced_step_fixup): Switch to the event_thread
5155 before calling displaced_step_restore, not after.
5156
5157 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5158
5159 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5160 its inferior is not recorded by us.
5161 (record_btrace_target_open): Replace call to
5162 all_non_exited_threads () with call to current_inferior
5163 ()->non_exited_threads ().
5164 (record_btrace_target::stop_recording): Likewise.
5165 (record_btrace_target::close): Likewise.
5166 (record_btrace_target::wait): Likewise.
5167 (record_btrace_target::record_stop_replaying): Likewise.
5168
5169 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5170
5171 * btrace.c (btrace_enable): Throw an error on double enables and
5172 when enabling recording fails.
5173 (btrace_disable): Throw an error if the thread is not recorded.
5174
5175 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5176
5177 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5178 request if we do not have a thread_info.
5179
5180 2020-04-21 Tom de Vries <tdevries@suse.de>
5181
5182 PR gdb/25471
5183 * thread.c
5184 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5185 exception in get_frame_id.
5186
5187 2020-04-20 Tom Tromey <tromey@adacore.com>
5188
5189 * python/python.c (struct gdbpy_event): Mark move constructor as
5190 noexcept.
5191 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5192 constructor as noexcept.
5193 * completer.h (struct completion_result): Mark move constructor as
5194 noexcept.
5195 * completer.c (completion_result::completion_result): Use
5196 initialization style. Don't call reset_match_list.
5197
5198 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5199
5200 * MAINTAINERS (Write After Approval): Add myself.
5201
5202 2020-04-18 Tom Tromey <tom@tromey.com>
5203
5204 * windows-tdep.c (init_w32_command_list)
5205 (w32_prefix_command_valid): Restore.
5206 (_initialize_windows_tdep): Call init_w32_command_list.
5207
5208 2020-04-18 Tom Tromey <tom@tromey.com>
5209
5210 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5211 * value.c (value_fn_field): Update.
5212 * valops.c (find_function_in_inferior)
5213 (value_allocate_space_in_inferior): Update.
5214 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5215 Update.
5216 * tui/tui-source.c (tui_source_window::set_contents): Update.
5217 * symtab.c (lookup_global_or_static_symbol)
5218 (find_function_start_sal_1, skip_prologue_sal)
5219 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5220 * symmisc.c (dump_msymbols, dump_symtab_1)
5221 (maintenance_print_one_line_table): Update.
5222 * symfile.c (init_entry_point_info, section_is_mapped)
5223 (list_overlays_command, simple_read_overlay_table)
5224 (simple_overlay_update_1): Update.
5225 * stap-probe.c (handle_stap_probe): Update.
5226 * stabsread.c (dbx_init_float_type, define_symbol)
5227 (read_one_struct_field, read_enum_type, read_range_type): Update.
5228 * source.c (info_line_command): Update.
5229 * python/python.c (gdbpy_source_objfile_script)
5230 (gdbpy_execute_objfile_script): Update.
5231 * python/py-type.c (save_objfile_types): Update.
5232 * python/py-objfile.c (py_free_objfile): Update.
5233 * python/py-inferior.c (python_new_objfile): Update.
5234 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5235 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5236 (maintenance_check_psymtabs): Update.
5237 * printcmd.c (info_address_command): Update.
5238 * objfiles.h (struct objfile) <arch>: New method, from
5239 get_objfile_arch.
5240 (get_objfile_arch): Don't declare.
5241 * objfiles.c (get_objfile_arch): Remove.
5242 (filter_overlapping_sections): Update.
5243 * minsyms.c (msymbol_is_function): Update.
5244 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5245 (output_nondebug_symbol): Update.
5246 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5247 (mdebug_expand_psymtab): Update.
5248 * machoread.c (macho_add_oso_symfile): Update.
5249 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5250 Update.
5251 * linux-fork.c (checkpoint_command): Update.
5252 * linespec.c (convert_linespec_to_sals): Update.
5253 * jit.c (finalize_symtab): Update.
5254 * infrun.c (insert_exception_resume_from_probe): Update.
5255 * ia64-tdep.c (ia64_find_unwind_table): Update.
5256 * hppa-tdep.c (internalize_unwinds): Update.
5257 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5258 Update.
5259 * gcore.c (call_target_sbrk): Update.
5260 * elfread.c (record_minimal_symbol, elf_symtab_read)
5261 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5262 (elf_gnu_ifunc_resolve_by_got): Update.
5263 * dwarf2/read.c (create_addrmap_from_index)
5264 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5265 (read_debug_names_from_section)
5266 (process_psymtab_comp_unit_reader, add_partial_symbol)
5267 (add_partial_subprogram, process_full_comp_unit)
5268 (read_file_scope, read_func_scope, read_lexical_block_scope)
5269 (read_call_site_scope, dwarf2_ranges_read)
5270 (dwarf2_record_block_ranges, dwarf2_add_field)
5271 (mark_common_block_symbol_computed, read_tag_pointer_type)
5272 (read_tag_string_type, dwarf2_init_float_type)
5273 (dwarf2_init_complex_target_type, read_base_type)
5274 (partial_die_info::read, partial_die_info::read)
5275 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5276 (dwarf2_fetch_die_loc_sect_off): Update.
5277 * dwarf2/loc.c (dwarf2_find_location_expression)
5278 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5279 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5280 (dwarf2_loc_desc_get_symbol_read_needs)
5281 (locexpr_describe_location_piece, locexpr_describe_location_1)
5282 (loclist_describe_location): Update.
5283 * dwarf2/index-write.c (write_debug_names): Update.
5284 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5285 * dtrace-probe.c (dtrace_process_dof): Update.
5286 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5287 (process_one_symbol): Update.
5288 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5289 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5290 (coff_read_enum_type): Update.
5291 * cli/cli-cmds.c (edit_command, list_command): Update.
5292 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5293 * breakpoint.c (create_overlay_event_breakpoint)
5294 (create_longjmp_master_breakpoint)
5295 (create_std_terminate_master_breakpoint)
5296 (create_exception_master_breakpoint, get_sal_arch): Update.
5297 * block.c (block_gdbarch): Update.
5298 * annotate.c (annotate_source_line): Update.
5299
5300 2020-04-17 Tom Tromey <tromey@adacore.com>
5301
5302 * auto-load.c (show_auto_load_cmd): Remove.
5303 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5304 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5305 (maintenance_print_arc_command): Remove.
5306 * tui/tui-win.c (tui_command): Remove.
5307 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5308 * tui/tui-layout.c (tui_layout_command): Remove.
5309 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5310 * python/python.c (user_set_python, user_show_python): Remove.
5311 (_initialize_python): Use add_basic_prefix_cmd,
5312 add_show_prefix_cmd.
5313 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5314 (install_gdb_commands): Use add_basic_prefix_cmd,
5315 add_show_prefix_cmd.
5316 (info_guile_command): Remove.
5317 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5318 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5319 add_show_prefix_cmd.
5320 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5321 Remove do_set and do_show parameters.
5322 * cli/cli-style.c (set_style, show_style): Remove.
5323 (_initialize_cli_style): Use add_basic_prefix_cmd,
5324 add_show_prefix_cmd.
5325 (cli_style_option::add_setshow_commands): Remove do_set and
5326 do_show parameters.
5327 (cli_style_option::add_setshow_commands): Use
5328 add_basic_prefix_cmd, add_show_prefix_cmd.
5329 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5330 (set_style_name): Remove.
5331 * cli/cli-dump.c (dump_command, append_command): Remove.
5332 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5333 (tekhex_dump_command, binary_dump_command)
5334 (binary_append_command): Remove.
5335 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5336 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5337 (init_w32_command_list): Remove; move into ...
5338 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5339 * valprint.c (set_print, show_print, set_print_raw)
5340 (show_print_raw): Remove.
5341 (_initialize_valprint): Use add_basic_prefix_cmd,
5342 add_show_prefix_cmd.
5343 * typeprint.c (set_print_type, show_print_type): Remove.
5344 (_initialize_typeprint): Use add_basic_prefix_cmd,
5345 add_show_prefix_cmd.
5346 * record.c (set_record_command, show_record_command): Remove.
5347 (_initialize_record): Use add_basic_prefix_cmd,
5348 add_show_prefix_cmd.
5349 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5350 add_show_prefix_cmd.
5351 (info_command, show_command, set_debug, show_debug): Remove.
5352 * top.h (set_history, show_history): Don't declare.
5353 * top.c (set_history, show_history): Remove.
5354 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5355 (unset_tdesc_cmd): Remove.
5356 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5357 add_show_prefix_cmd.
5358 * symtab.c (info_module_command): Remove.
5359 (_initialize_symtab): Use add_basic_prefix_cmd.
5360 * symfile.c (overlay_command): Remove.
5361 (_initialize_symfile): Use add_basic_prefix_cmd.
5362 * sparc64-tdep.c (info_adi_command): Remove.
5363 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5364 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5365 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5366 add_show_prefix_cmd.
5367 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5368 (_initialize_serial): Use add_basic_prefix_cmd,
5369 add_show_prefix_cmd.
5370 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5371 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5372 add_show_prefix_cmd.
5373 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5374 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5375 add_show_prefix_cmd.
5376 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5377 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5378 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5379 add_show_prefix_cmd.
5380 * remote.c (remote_command, set_remote_cmd): Remove.
5381 (_initialize_remote): Use add_basic_prefix_cmd.
5382 * record-full.c (set_record_full_command)
5383 (show_record_full_command): Remove.
5384 (_initialize_record_full): Use add_basic_prefix_cmd,
5385 add_show_prefix_cmd.
5386 * record-btrace.c (cmd_set_record_btrace)
5387 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5388 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5389 (cmd_show_record_btrace_pt): Remove.
5390 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5391 add_show_prefix_cmd.
5392 * ravenscar-thread.c (set_ravenscar_command)
5393 (show_ravenscar_command): Remove.
5394 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5395 add_show_prefix_cmd.
5396 * mips-tdep.c (show_mips_command, set_mips_command)
5397 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5398 add_show_prefix_cmd.
5399 * maint.c (maintenance_command, maintenance_info_command)
5400 (maintenance_check_command, maintenance_print_command)
5401 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5402 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5403 add_show_prefix_cmd.
5404 (show_per_command_cmd): Remove.
5405 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5406 Remove.
5407 (maintenance_show_test_settings_cmd): Remove.
5408 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5409 add_show_prefix_cmd.
5410 * maint-test-options.c (maintenance_test_options_command):
5411 Remove.
5412 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5413 * macrocmd.c (macro_command): Remove
5414 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5415 * language.c (set_check, show_check): Remove.
5416 (_initialize_language): Use add_basic_prefix_cmd,
5417 add_show_prefix_cmd.
5418 * infcmd.c (unset_command): Remove.
5419 (_initialize_infcmd): Use add_basic_prefix_cmd.
5420 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5421 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5422 add_show_prefix_cmd.
5423 * go32-nat.c (go32_info_dos_command): Remove.
5424 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5425 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5426 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5427 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5428 (_initialize_frame): Use add_basic_prefix_cmd,
5429 add_show_prefix_cmd.
5430 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5431 (_initialize_dcache): Use add_basic_prefix_cmd,
5432 add_show_prefix_cmd.
5433 * cp-support.c (maint_cplus_command): Remove.
5434 (_initialize_cp_support): Use add_basic_prefix_cmd.
5435 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5436 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5437 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5438 add_basic_prefix_cmd, add_show_prefix_cmd.
5439 * breakpoint.c (save_command): Remove.
5440 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5441 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5442 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5443 add_show_prefix_cmd.
5444 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5445 (set_ada_command, show_ada_command): Remove.
5446 (_initialize_ada_language): Use add_basic_prefix_cmd,
5447 add_show_prefix_cmd.
5448 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5449
5450 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5451
5452 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5453 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5454
5455 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5456
5457 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5458 warning messages.
5459
5460 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5461
5462 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5463 import table is not at beginning of .idata section.
5464
5465 2020-04-16 Pedro Alves <palves@redhat.com>
5466
5467 * inferior.c (delete_inferior): Use delete operator directly
5468 instead of delete_program_space.
5469 * progspace.c (add_program_space): New, factored out from
5470 program_space::program_space.
5471 (remove_program_space): New, factored out from
5472 delete_program_space.
5473 (program_space::program_space): Remove intro comment. Rewrite.
5474 (program_space::~program_space): Remove intro comment. Call
5475 remove_program_space.
5476 (delete_program_space): Delete.
5477 * progspace.h (program_space::program_space): Make explicit. Move
5478 intro comment here, adjusted.
5479 (program_space::~program_space): Move intro comment here,
5480 adjusted.
5481 (delete_program_space): Remove.
5482
5483 2020-04-16 Tom Tromey <tromey@adacore.com>
5484
5485 * windows-nat.c (windows_nat::handle_access_violation): New
5486 function.
5487 * nat/windows-nat.h (handle_access_violation): Declare.
5488 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5489 windows-nat.c. Call handle_access_violation.
5490
5491 2020-04-16 Tom de Vries <tdevries@suse.de>
5492
5493 PR symtab/25791
5494 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5495 CUs without psymtab.
5496
5497 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5498
5499 * python/python.c (do_start_initialization): Don't call
5500 PyEval_InitThreads for Python 3.9 and beyond.
5501
5502 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5503
5504 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5505 thread functions.
5506 (obsd_nat_target::wait): Likewise.
5507
5508 2020-04-15 Tom Tromey <tromey@adacore.com>
5509
5510 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5511 (DEBUG_EXCEPT): Use debug_printf.
5512
5513 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5514
5515 * completer.c (class completion_tracker::completion_hash_entry)
5516 <hash_name>: New member function.
5517 (completion_tracker::discard_completions): New callback to hash a
5518 completion_hash_entry, pass this to htab_create_alloc.
5519
5520 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5521
5522 * windows-nat.c (windows_make_so): Warn rather than stopping with
5523 an error if realpath() fails.
5524
5525 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5526
5527 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5528 (nbsd_nat_target::info_proc): Add do_status.
5529
5530 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5531 Tom de Vries <tdevries@suse.de>
5532
5533 PR symtab/25718
5534 * psympriv.h (struct partial_symtab::read_symtab)
5535 (struct partial_symtab::expand_psymtab)
5536 (struct partial_symtab::read_dependencies): Update comments.
5537 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5538 read_symtab for includer.
5539 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5540 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5541 (struct dwarf2_include_psymtab::m_readin): Remove.
5542 (struct dwarf2_include_psymtab::includer): New member function.
5543 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5544
5545 2020-04-14 Tom de Vries <tdevries@suse.de>
5546
5547 PR symtab/25720
5548 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5549 with NULL symbol_matcher and lookup_name.
5550 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5551 and lookup_name.
5552 * dwarf2/read.c (dw2_expand_symtabs_matching)
5553 (dw2_debug_names_expand_symtabs_matching): Same.
5554 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5555 Make lookup_name a pointer. Update comment.
5556 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5557 lookup_name being a pointer.
5558 * symfile.c (expand_symtabs_matching): Same.
5559 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5560 * linespec.c (iterate_over_all_matching_symtabs): Same.
5561
5562 2020-04-13 Tom Tromey <tom@tromey.com>
5563
5564 * run-on-main-thread.c: Update include.
5565 * unittests/main-thread-selftests.c: Update include.
5566 * tui/tui-win.c: Update include.
5567 * tui/tui-io.c: Update include.
5568 * tui/tui-interp.c: Update include.
5569 * tui/tui-hooks.c: Update include.
5570 * top.h: Update include.
5571 * top.c: Update include.
5572 * ser-base.c: Update include.
5573 * remote.c: Update include.
5574 * remote-notif.c: Update include.
5575 * remote-fileio.c: Update include.
5576 * record-full.c: Update include.
5577 * record-btrace.c: Update include.
5578 * python/python.c: Update include.
5579 * posix-hdep.c: Update include.
5580 * mingw-hdep.c: Update include.
5581 * mi/mi-main.c: Update include.
5582 * mi/mi-interp.c: Update include.
5583 * main.c: Update include.
5584 * linux-nat.c: Update include.
5585 * interps.c: Update include.
5586 * infrun.c: Update include.
5587 * inf-loop.c: Update include.
5588 * event-top.c: Update include.
5589 * event-loop.c: Move to ../gdbsupport/.
5590 * event-loop.h: Move to ../gdbsupport/.
5591 * async-event.h: Update include.
5592 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5593
5594 2020-04-13 Tom Tromey <tom@tromey.com>
5595
5596 * tui/tui-win.c: Include async-event.h.
5597 * remote.c: Include async-event.h.
5598 * remote-notif.c: Include async-event.h.
5599 * record-full.c: Include async-event.h.
5600 * record-btrace.c: Include async-event.h.
5601 * infrun.c: Include async-event.h.
5602 * event-top.c: Include async-event.h.
5603 * event-loop.h: Move some declarations to async-event.h.
5604 * event-loop.c: Don't include ser-event.h or top.h. Move some
5605 code to async-event.c.
5606 * async-event.h: New file.
5607 * async-event.c: New file.
5608 * Makefile.in (COMMON_SFILES): Add async-event.c.
5609 (HFILES_NO_SRCDIR): Add async-event.h.
5610
5611 2020-04-13 Tom Tromey <tom@tromey.com>
5612
5613 * utils.c (flush_streams): New function.
5614 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5615
5616 2020-04-13 Tom Tromey <tom@tromey.com>
5617
5618 * event-loop.c (handle_file_event): Use warning, not
5619 printf_unfiltered.
5620
5621 2020-04-13 Tom Tromey <tom@tromey.com>
5622
5623 * event-loop.c: Include <chrono>.
5624
5625 2020-04-13 Tom Tromey <tom@tromey.com>
5626
5627 * gdb_select.h: Move to ../gdbsupport/.
5628 * event-loop.c: Update include path.
5629 * top.c: Update include path.
5630 * ser-base.c: Update include path.
5631 * ui-file.c: Update include path.
5632 * ser-tcp.c: Update include path.
5633 * guile/scm-ports.c: Update include path.
5634 * posix-hdep.c: Update include path.
5635 * ser-unix.c: Update include path.
5636 * gdb_usleep.c: Update include path.
5637 * mingw-hdep.c: Update include path.
5638 * inflow.c: Update include path.
5639 * infrun.c: Update include path.
5640 * event-top.c: Update include path.
5641
5642 2020-04-13 Tom Tromey <tom@tromey.com>
5643
5644 * configure: Rebuild.
5645 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5646
5647 2020-04-13 Tom Tromey <tom@tromey.com>
5648
5649 * event-loop.h (start_event_loop): Don't declare.
5650 * event-loop.c (start_event_loop): Move...
5651 * main.c (start_event_loop): ...here. Now static.
5652
5653 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5654
5655 * MAINTAINERS: Update my email address.
5656
5657 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5658
5659 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5660 IP_ALL.
5661
5662 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5663
5664 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5665 (nbsd_nat_target::info_proc): Add do_cmdline.
5666
5667 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5668
5669 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5670 (nbsd_nat_target::info_proc): Add do_cwd.
5671
5672 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5673
5674 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5675
5676 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5677
5678 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5679 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5680 (nbsd_nat_target::info_proc): New functions.
5681 * nbsd-nat.c (kinfo_get_vmmap): New function.
5682 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5683 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5684 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5685 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5686 functions.
5687 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5688 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5689 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5690 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5691 (KINFO_VME_FLAG_GROWS_DOWN): New.
5692
5693 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5694
5695 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5696 bit shift.
5697
5698 2020-04-10 Tom Tromey <tromey@adacore.com>
5699
5700 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5701
5702 2020-04-10 Tom Tromey <tromey@adacore.com>
5703
5704 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5705 separate debug files.
5706
5707 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5708
5709 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5710 Move to...
5711 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5712 ... here.
5713 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5714 Check for STATUS_WX86_BREAKPOINT.
5715 (windows_nat_target::wait): Same.
5716
5717 2020-04-10 Tom de Vries <tdevries@suse.de>
5718
5719 PR cli/25808
5720 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5721
5722 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5723
5724 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5725 (Write After Approval): Remove Tom de Vries.
5726
5727 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5728
5729 revert partially:
5730 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5731
5732 * buildsym.c (record_line): Fix undefined behavior and preserve
5733 lines at eof.
5734
5735 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5736
5737 * auxv.h (svr4_auxv_parse): New.
5738 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5739 and generic_auxv_parse.
5740 (svr4_auxv_parse): Add.
5741 * obsd-tdep.c: Include "auxv.h".
5742 (obsd_auxv_parse): Remove.
5743 (obsd_init_abi): Remove comment.
5744 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5745 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5746 * nbsd-tdep.c: Include "auxv.h".
5747 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5748
5749 2020-04-08 Tom Tromey <tromey@adacore.com>
5750
5751 * nat/windows-nat.h (last_wait_event): Don't declare.
5752 (wait_for_debug_event): Update comment.
5753 * nat/windows-nat.c (last_wait_event): Now static.
5754
5755 2020-04-08 Tom Tromey <tromey@adacore.com>
5756
5757 * windows-nat.c (wait_for_debug_event): Move to
5758 nat/windows-nat.c.
5759 * nat/windows-nat.h (wait_for_debug_event): Declare.
5760 * nat/windows-nat.c (wait_for_debug_event): Move from
5761 windows-nat.c. No longer static.
5762
5763 2020-04-08 Tom Tromey <tromey@adacore.com>
5764
5765 * windows-nat.c (get_windows_debug_event): Use
5766 fetch_pending_stop.
5767 * nat/windows-nat.h (fetch_pending_stop): Declare.
5768 * nat/windows-nat.c (fetch_pending_stop): New function.
5769
5770 2020-04-08 Tom Tromey <tromey@adacore.com>
5771
5772 * windows-nat.c (windows_continue): Use matching_pending_stop and
5773 continue_last_debug_event.
5774 * nat/windows-nat.h (matching_pending_stop)
5775 (continue_last_debug_event): Declare.
5776 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5777 (matching_pending_stop, continue_last_debug_event): New
5778 functions.
5779
5780 2020-04-08 Tom Tromey <tromey@adacore.com>
5781
5782 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5783 (handle_exception_result): Move to nat/windows-nat.h.
5784 (DEBUG_EXCEPTION_SIMPLE): Remove.
5785 (windows_nat::handle_ms_vc_exception): New function.
5786 (handle_exception): Move to nat/windows-nat.c.
5787 (get_windows_debug_event): Update.
5788 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5789 nat/windows-nat.c.
5790 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5791 (handle_exception_result): Move from windows-nat.c.
5792 (handle_exception): Declare.
5793 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5794 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5795 windows-nat.c.
5796
5797 2020-04-08 Tom Tromey <tromey@adacore.com>
5798
5799 * windows-nat.c (exception_count, event_count): Remove.
5800 (handle_exception, get_windows_debug_event)
5801 (do_initial_windows_stuff): Update.
5802
5803 2020-04-08 Tom Tromey <tromey@adacore.com>
5804
5805 * windows-nat.c (windows_nat::handle_load_dll)
5806 (windows_nat::handle_unload_dll): Rename. No longer static.
5807 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5808 Declare.
5809
5810 2020-04-08 Tom Tromey <tromey@adacore.com>
5811
5812 * complaints.h (stop_whining): Declare at top-level.
5813 (complaint): Don't declare stop_whining.
5814
5815 2020-04-08 Tom Tromey <tromey@adacore.com>
5816
5817 * windows-nat.c (windows_nat::handle_output_debug_string):
5818 Rename. No longer static.
5819 * nat/windows-nat.h (handle_output_debug_string): Declare.
5820
5821 2020-04-08 Tom Tromey <tromey@adacore.com>
5822
5823 * windows-nat.c (current_process_handle, current_process_id)
5824 (main_thread_id, last_sig, current_event, last_wait_event)
5825 (current_windows_thread, desired_stop_thread_id, pending_stops)
5826 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5827 (display_selectors, fake_create_process)
5828 (get_windows_debug_event): Update.
5829 * nat/windows-nat.h (current_process_handle, current_process_id)
5830 (main_thread_id, last_sig, current_event, last_wait_event)
5831 (current_windows_thread, desired_stop_thread_id, pending_stops)
5832 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5833 * nat/windows-nat.c (current_process_handle, current_process_id)
5834 (main_thread_id, last_sig, current_event, last_wait_event)
5835 (current_windows_thread, desired_stop_thread_id, pending_stops)
5836 (siginfo_er): New globals. Move from windows-nat.c.
5837
5838 2020-04-08 Tom Tromey <tromey@adacore.com>
5839
5840 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5841 (handle_load_dll): Update.
5842 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5843
5844 2020-04-08 Tom Tromey <tromey@adacore.com>
5845
5846 * windows-nat.c (enum thread_disposition_type): Move to
5847 nat/windows-nat.h.
5848 (windows_nat::thread_rec): Rename from thread_rec. No longer
5849 static.
5850 (windows_add_thread, windows_nat_target::fetch_registers)
5851 (windows_nat_target::store_registers, handle_exception)
5852 (windows_nat_target::resume, get_windows_debug_event)
5853 (windows_nat_target::get_tib_address)
5854 (windows_nat_target::thread_name)
5855 (windows_nat_target::thread_alive): Update.
5856 * nat/windows-nat.h (enum thread_disposition_type): Move from
5857 windows-nat.c.
5858 (thread_rec): Declare.
5859
5860 2020-04-08 Tom Tromey <tromey@adacore.com>
5861
5862 * windows-nat.c: Add "using namespace".
5863 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5864 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5865
5866 2020-04-08 Tom Tromey <tromey@adacore.com>
5867
5868 * nat/windows-nat.h (struct windows_thread_info): Declare
5869 destructor.
5870 * nat/windows-nat.c (~windows_thread_info): New.
5871
5872 2020-04-08 Tom Tromey <tromey@adacore.com>
5873
5874 PR gdb/22992
5875 * windows-nat.c (current_event): Update comment.
5876 (last_wait_event, desired_stop_thread_id): New globals.
5877 (struct pending_stop): New.
5878 (pending_stops): New global.
5879 (windows_nat_target) <stopped_by_sw_breakpoint>
5880 <supports_stopped_by_sw_breakpoint>: New methods.
5881 (windows_fetch_one_register): Add assertions. Adjust PC.
5882 (windows_continue): Handle pending stops. Suspend other threads
5883 when stepping. Use last_wait_event
5884 (wait_for_debug_event): New function.
5885 (get_windows_debug_event): Use wait_for_debug_event. Handle
5886 pending stops. Queue spurious stops.
5887 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5888 (windows_nat_target::kill): Use wait_for_debug_event.
5889 * nat/windows-nat.h (struct windows_thread_info)
5890 <stopped_at_software_breakpoint>: New field.
5891 * nat/windows-nat.c (windows_thread_info::resume): Clear
5892 stopped_at_software_breakpoint.
5893
5894 2020-04-08 Tom Tromey <tromey@adacore.com>
5895
5896 * windows-nat.c (enum thread_disposition_type): New.
5897 (thread_rec): Replace "get_context" parameter with "disposition";
5898 change type.
5899 (windows_add_thread, windows_nat_target::fetch_registers)
5900 (windows_nat_target::store_registers, handle_exception)
5901 (windows_nat_target::resume, get_windows_debug_event)
5902 (windows_nat_target::get_tib_address)
5903 (windows_nat_target::thread_name)
5904 (windows_nat_target::thread_alive): Update.
5905
5906 2020-04-08 Tom Tromey <tromey@adacore.com>
5907
5908 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5909 (windows_continue): Use windows_continue::resume.
5910 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5911 resume>: Declare new methods.
5912 * nat/windows-nat.c: New file.
5913 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5914
5915 2020-04-08 Tom Tromey <tromey@adacore.com>
5916
5917 * windows-nat.c (windows_add_thread, windows_delete_thread)
5918 (windows_nat_target::fetch_registers)
5919 (windows_nat_target::store_registers, fake_create_process)
5920 (windows_nat_target::resume, windows_nat_target::resume)
5921 (get_windows_debug_event, windows_nat_target::wait)
5922 (windows_nat_target::pid_to_str)
5923 (windows_nat_target::get_tib_address)
5924 (windows_nat_target::get_ada_task_ptid)
5925 (windows_nat_target::thread_name)
5926 (windows_nat_target::thread_alive): Use lwp, not tid.
5927
5928 2020-04-08 Tom Tromey <tromey@adacore.com>
5929
5930 * windows-nat.c (handle_exception)
5931 (windows_nat_target::thread_name): Update.
5932 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5933 <name>: Now unique_xmalloc_ptr.
5934
5935 2020-04-08 Tom Tromey <tromey@adacore.com>
5936
5937 * windows-nat.c (thread_rec)
5938 (windows_nat_target::fetch_registers): Update.
5939 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5940 Update comment.
5941 <debug_registers_changed, reload_context>: Now bool.
5942
5943 2020-04-08 Tom Tromey <tromey@adacore.com>
5944
5945 * windows-nat.c (windows_add_thread): Use new.
5946 (windows_init_thread_list, windows_delete_thread): Use delete.
5947 (get_windows_debug_event): Update.
5948 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5949 destructor, and initializers.
5950
5951 2020-04-08 Tom Tromey <tromey@adacore.com>
5952
5953 * windows-nat.c (struct windows_thread_info): Remove.
5954 * nat/windows-nat.h: New file.
5955
5956 2020-04-08 Tom Tromey <tromey@adacore.com>
5957
5958 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5959 (thread_rec, windows_add_thread, windows_delete_thread)
5960 (windows_continue): Update.
5961
5962 2020-04-08 Tom Tromey <tromey@adacore.com>
5963
5964 * windows-nat.c (struct windows_thread_info): Remove typedef.
5965 (thread_head): Remove.
5966 (thread_list): New global.
5967 (thread_rec, windows_add_thread, windows_init_thread_list)
5968 (windows_delete_thread, windows_continue): Update.
5969
5970 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * windows-tdep.h (windows_init_abi): Add comment.
5973 (cygwin_init_abi): New declaration.
5974 * windows-tdep.c: Split signal enumeration in two, one for
5975 Windows and one for Cygwin.
5976 (windows_gdb_signal_to_target): Only deal with signal of the
5977 Windows OS ABI.
5978 (cygwin_gdb_signal_to_target): New function.
5979 (windows_init_abi): Rename to windows_init_abi_common, don't set
5980 gdb_signal_to_target gdbarch method. Add new new function with
5981 this name.
5982 (cygwin_init_abi): New function.
5983 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5984 comment. Don't call windows_init_abi.
5985 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5986 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5987 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5988 i386_windows_init_abi_common, don't call windows_init_abi. Add
5989 a new function of this name.
5990 (i386_cygwin_init_abi): New function.
5991 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5992 OS ABI Cygwin.
5993
5994 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5997 parameter.c.
5998 (dwarf2_read_gdb_index): Update.
5999
6000 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6001
6002 * nbsd-tdep.c: Include "objfiles.h".
6003 (nbsd_skip_solib_resolver): New.
6004 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6005
6006 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6007
6008 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6009 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6010 with DW_LLE_base_addressx are being emitted in DWARFv5.
6011 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6012 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6013 unsigned integer.
6014
6015 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6016
6017 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6018 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6019 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6020 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6021 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6022 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6023 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6024
6025
6026 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6027
6028 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6029 (read_loclist_index): New function definition.
6030 (lookup_loclist_base): New function definition.
6031 (read_loclist_header): New function definition.
6032 (dwarf2_cu): Add loclist_base and loclist_header field.
6033 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6034 (read_full_die_1): Read the value of DW_AT_loclists_base.
6035 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6036 (read_attribute_value): Handle DW_FORM_loclistx.
6037 (skip_one_die): Handle DW_FORM_loclistx.
6038 (loclist_header): New structure declaration.
6039 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6040
6041 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6042
6043 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6044 constructor. Remove `addr` parameter from other constructor and
6045 add `per_cu` parameter.
6046 * dwarf2/read.c (create_partial_symtab): Update.
6047
6048 2020-04-07 Tom de Vries <tdevries@suse.de>
6049
6050 PR symtab/25796
6051 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6052 (partial_die_info::fixup): Inherit has_const_value.
6053
6054 2020-04-07 Tom de Vries <tdevries@suse.de>
6055
6056 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6057 symbols without address.
6058
6059 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6060
6061 * nbsd-nat.h (struct thread_info): Add forward declaration.
6062 (nbsd_nat_target::thread_alive): Add.
6063 (nbsd_nat_target::thread_name): Likewise.
6064 (nbsd_nat_target::update_thread_list): Likewise.
6065 (update_thread_list::post_attach): Likewise.
6066 (post_attach::pid_to_str): Likewise.
6067 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6068 (nbsd_thread_lister): Add.
6069 (nbsd_nat_target::thread_alive): Likewise.
6070 (nbsd_nat_target::thread_name): Likewise.
6071 (nbsd_add_threads): Likewise.
6072 (update_thread_list::post_attach): Likewise.
6073 (nbsd_nat_target::update_thread_list): Likewise.
6074 (post_attach::pid_to_str): Likewise.
6075
6076 2020-04-06 Tom Tromey <tromey@adacore.com>
6077
6078 * ada-valprint.c (print_variant_part): Extract the variant field.
6079 (print_field_values): Use the field as the outer value when
6080 recursing.
6081
6082 2020-04-06 Tom Tromey <tromey@adacore.com>
6083
6084 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6085 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6086 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6087 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6088 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6089
6090 2020-04-06 Tom Tromey <tromey@adacore.com>
6091
6092 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6093 TYPE_CODE_ERROR.
6094
6095 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6096
6097 * nbsd-tdep.c: Include "gdbarch.h".
6098 Define enum with NetBSD signal numbers.
6099 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6100 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6101 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6102 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6103 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6104 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6105 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6106 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6107 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6108 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6109 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6110 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6111
6112 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6113
6114 PR gdb/25325
6115 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6116
6117 2020-04-03 Tom Tromey <tromey@adacore.com>
6118
6119 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6120 Read constant block.
6121
6122 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6123
6124 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6125 (gdb_bfd_get_full_section_contents): New declaration.
6126 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6127 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6128 gdb_bfd_get_full_section_contents.
6129
6130 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * exec.c (build_section_table): Replace internal_error with
6133 gdb_assert.
6134 (section_table_xfer_memory_partial): Likewise.
6135 * mdebugread.c (parse_partial_symbols): Likewise.
6136 * psymtab.c (lookup_partial_symbol): Likewise.
6137 * utils.c (wrap_here): Likewise.
6138
6139 2020-04-02 Tom Tromey <tromey@adacore.com>
6140
6141 * f-lang.c (build_fortran_types): Use arch_type to initialize
6142 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6143
6144 2020-04-02 Tom Tromey <tromey@adacore.com>
6145
6146 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6147 of attributes.
6148
6149 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6150 Bernd Edlinger <bernd.edlinger@hotmail.de>
6151 Tom Tromey <tromey@adacore.com>
6152
6153 * buildsym.c (buildsym_compunit::record_line): Remove
6154 deduplication code.
6155
6156 2020-04-02 Tom de Vries <tdevries@suse.de>
6157
6158 PR ada/24671
6159 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6160
6161 2020-04-02 Tom de Vries <tdevries@suse.de>
6162
6163 * dwarf2/read.c (dwarf2_gdb_index_functions,
6164 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6165 NULL.
6166 * psymtab.c (psym_lookup_global_symbol_language): New function.
6167 (psym_functions): Init psym_lookup_global_symbol_language with
6168 psym_lookup_global_symbol_language.
6169 * symfile-debug.c (debug_sym_quick_functions): Init
6170 lookup_global_symbol_language with NULL.
6171 * symfile.c (set_initial_language): Remove fixme comment.
6172 * symfile.h (struct quick_symbol_functions): Add
6173 lookup_global_symbol_language.
6174 * symtab.c (find_quick_global_symbol_language): New function.
6175 (find_main_name): Use find_quick_global_symbol_language.
6176
6177 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6180
6181 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6182
6183 * buildsym.c (record_line): Fix undefined behavior and preserve
6184 lines at eof.
6185
6186 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6187
6188 * buildsym.c (record_line): Fix the resizing condition.
6189
6190 2020-04-01 Tom Tromey <tom@tromey.com>
6191
6192 * value.h (value_literal_complex): Add comment.
6193 * valops.c (value_literal_complex): Refer to value.h.
6194
6195 2020-04-01 Tom Tromey <tom@tromey.com>
6196
6197 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6198 (scalar_type): New rule, from typebase.
6199 (typebase): Use scalar_type. Recognize complex types.
6200 (field_name): Handle FLOAT_KEYWORD.
6201 (ident_tokens): Add _Complex and __complex__.
6202
6203 2020-04-01 Tom Tromey <tom@tromey.com>
6204
6205 PR exp/25299:
6206 * valarith.c (promotion_type, complex_binop): New functions.
6207 (scalar_binop): Handle complex numbers. Use promotion_type.
6208 (value_pos, value_neg, value_complement): Handle complex numbers.
6209
6210 2020-04-01 Tom Tromey <tom@tromey.com>
6211
6212 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6213 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6214 (parse_number): Handle complex numbers.
6215
6216 2020-04-01 Tom Tromey <tom@tromey.com>
6217
6218 * c-valprint.c (c_decorations): Change complex suffix to "i".
6219
6220 2020-04-01 Tom Tromey <tom@tromey.com>
6221
6222 * valprint.c (generic_value_print_complex): Use accessors.
6223 * value.h (value_real_part, value_imaginary_part): Declare.
6224 * valops.c (value_real_part, value_imaginary_part): New
6225 functions.
6226 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6227
6228 2020-04-01 Tom Tromey <tom@tromey.com>
6229
6230 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6231 (read_range_type): Update.
6232 * mdebugread.c (basic_type): Update.
6233 * go-lang.c (build_go_types): Use init_complex_type.
6234 * gdbtypes.h (struct main_type) <complex_type>: New member.
6235 (init_complex_type): Update.
6236 (arch_complex_type): Don't declare.
6237 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6238 Make name if none given. Use alloc_type_copy. Look for cached
6239 complex type.
6240 (arch_complex_type): Remove.
6241 (gdbtypes_post_init): Use init_complex_type.
6242 * f-lang.c (build_fortran_types): Use init_complex_type.
6243 * dwarf2/read.c (read_base_type): Update.
6244 * d-lang.c (build_d_types): Use init_complex_type.
6245 * ctfread.c (read_base_type): Update.
6246
6247 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6248
6249 * infrun.c (stop_all_threads): Update assertion, plus when
6250 stopping threads, take into account that we might be trying
6251 to stop an all-stop target.
6252 (stop_waiting): Call 'stop_all_threads' if there exists a
6253 non-stop target.
6254
6255 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6256
6257 * target.h (exists_non_stop_target): New function declaration.
6258 * target.c (exists_non_stop_target): New function.
6259
6260 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6261
6262 PR gdb/24789
6263 * eval.c (is_integral_or_integral_reference): New function.
6264 (evaluate_subexp_standard): Allow integer references in
6265 pointer arithmetic.
6266
6267 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6268
6269 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6270 check for no ptid in the stop reply when the target is non-stop.
6271
6272 2020-04-01 Tom Tromey <tromey@adacore.com>
6273
6274 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6275 "name" parameter to rvalue reference. Initialize m_name_holder.
6276 <lookup_name_info>: New overloads.
6277 <name>: Return gdb::string_view.
6278 <c_str>: New method.
6279 <make_ignore_params>: Update.
6280 <search_name_hash>: Update.
6281 <language_lookup_name>: Return const char *.
6282 <m_name>: Change type.
6283 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6284 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6285 (lookup_name_info::match_any): Update.
6286 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6287 Update.
6288 * minsyms.c (linkage_name_str): Update.
6289 * language.c (default_symbol_name_matcher): Update.
6290 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6291 Update.
6292 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6293 (ada_lookup_name_info::ada_lookup_name_info): Update.
6294 (literal_symbol_name_matcher): Update.
6295
6296 2020-04-01 Tom Tromey <tromey@adacore.com>
6297
6298 * psymtab.c (psymtab_search_name): Remove function.
6299 (psym_lookup_symbol): Create search name and lookup name here.
6300 (lookup_partial_symbol): Remove "name" parameter; add
6301 lookup_name.
6302 (psym_expand_symtabs_for_function): Update.
6303
6304 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6305
6306 PR tui/25597:
6307 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6308
6309 2020-03-31 Tom Tromey <tromey@adacore.com>
6310
6311 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6312 memcpy.
6313
6314 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6315
6316 * features/riscv/32bit-csr.xml: Regenerated.
6317 * features/riscv/64bit-csr.xml: Regenerated.
6318
6319 2020-03-30 Tom Tromey <tromey@adacore.com>
6320
6321 * ada-valprint.c (print_variant_part): Update.
6322 * ada-lang.h (ada_which_variant_applies): Update.
6323 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6324 outer_valaddr parameters; replace with "outer" value parameter.
6325 (to_fixed_variant_branch_type): Update.
6326
6327 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6328
6329 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6330 <list>. Remove inclusion of observable.h.
6331 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6332 (struct arch_lwp_info): New struct.
6333 (class ppc_linux_dreg_interface): New class.
6334 (struct ppc_linux_process_info): New struct.
6335 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6336 <low_new_clone, low_forget_process, low_prepare_to_resume>
6337 <copy_thread_dreg_state, mark_thread_stale>
6338 <mark_debug_registers_changed, register_hw_breakpoint>
6339 <clear_hw_breakpoint, register_wp, clear_wp>
6340 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6341 <num_memory_accesses, get_trigger_type>
6342 <create_watchpoint_request, hwdebug_point_cmp>
6343 <init_arch_lwp_info, get_arch_lwp_info>
6344 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6345 methods.
6346 <struct ptid_hash>: New inner struct.
6347 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6348 members.
6349 (saved_dabr_value, hwdebug_info, max_slots_number)
6350 (struct hw_break_tuple, struct thread_points, ppc_threads)
6351 (have_ptrace_hwdebug_interface)
6352 (hwdebug_find_thread_points_by_tid)
6353 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6354 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6355 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6356 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6357 use m_dreg_interface.
6358 (hwdebug_point_cmp): Change to...
6359 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6360 reference arguments instead of pointers.
6361 (ppc_linux_nat_target::ranged_break_num_registers): Use
6362 m_dreg_interface.
6363 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6364 m_dreg_interface. Call register_hw_breakpoint.
6365 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6366 m_dreg_interface. Call clear_hw_breakpoint.
6367 (get_trigger_type): Change to...
6368 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6369 comment.
6370 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6371 use m_dreg_interface. Call register_hw_breakpoint.
6372 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6373 use m_dreg_interface. Call clear_hw_breakpoint.
6374 (can_use_watchpoint_cond_accel): Change to...
6375 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6376 method. Update comment, use m_dreg_interface and
6377 m_process_info.
6378 (calculate_dvc): Change to...
6379 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6380 m_dreg_interface.
6381 (num_memory_accesses): Change to...
6382 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6383 (check_condition): Change to...
6384 (ppc_linux_nat_target::check_condition): ...this method.
6385 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6386 comment, use m_dreg_interface.
6387 (create_watchpoint_request): Change to...
6388 (ppc_linux_nat_target::create_watchpoint_request): ...this
6389 method. Use m_dreg_interface.
6390 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6391 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6392 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6393 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6394 (ppc_linux_nat_target::low_forget_process)
6395 (ppc_linux_nat_target::low_new_fork)
6396 (ppc_linux_nat_target::low_new_clone)
6397 (ppc_linux_nat_target::low_delete_thread)
6398 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6399 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6400 only call mark_thread_stale.
6401 (ppc_linux_thread_exit): Remove.
6402 (ppc_linux_nat_target::stopped_data_address): Change to...
6403 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6404 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6405 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6406 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6407 comment. Call low_stopped_data_address.
6408 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6409 m_dreg_interface.
6410 (ppc_linux_nat_target::masked_watch_num_registers): Use
6411 m_dreg_interface.
6412 (ppc_linux_nat_target::copy_thread_dreg_state)
6413 (ppc_linux_nat_target::mark_thread_stale)
6414 (ppc_linux_nat_target::mark_debug_registers_changed)
6415 (ppc_linux_nat_target::register_hw_breakpoint)
6416 (ppc_linux_nat_target::clear_hw_breakpoint)
6417 (ppc_linux_nat_target::register_wp)
6418 (ppc_linux_nat_target::clear_wp)
6419 (ppc_linux_nat_target::init_arch_lwp_info)
6420 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6421 (_initialize_ppc_linux_nat): Remove observer callback.
6422
6423 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6424
6425 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6426 (ppc_linux_nat_target::auxv_parse)
6427 (ppc_linux_nat_target::read_description)
6428 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6429 Move up.
6430
6431 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6432
6433 * linux-nat.h (low_new_clone): New method.
6434 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6435
6436 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6437
6438 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6439 (dbx_expand_psymtab): ... this.
6440 (start_psymtab): Update.
6441 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6442 (mdebug_expand_psymtab): ... this.
6443 (parse_partial_symbols): Update.
6444 (new_psymtab): Update.
6445 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6446 (xcoff_expand_psymtab): ... this.
6447 (xcoff_start_psymtab): Update.
6448
6449 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6450
6451 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6452 <expand_dependencies>: ... this.
6453 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6454 (partial_symtab::expand_dependencies): ... this.
6455 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6456 Update.
6457 (dwarf2_psymtab::expand_psymtab): Update.
6458 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6459 * mdebugread.c (psymtab_to_symtab_1): Update.
6460 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6461
6462 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * psympriv.h (discard_psymtab): Remove.
6465 * dbxread.c (dbx_end_psymtab): Update.
6466 * xcoffread.c (xcoff_end_psymtab): Update.
6467
6468 2020-03-28 Tom Tromey <tom@tromey.com>
6469
6470 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6471 comment.
6472
6473 2020-03-28 Tom Tromey <tom@tromey.com>
6474
6475 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6476
6477 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6478
6479 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6480
6481 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6482
6483 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6484
6485 2020-03-26 Tom Tromey <tom@tromey.com>
6486
6487 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6488 (mark_common_block_symbol_computed, read_tag_string_type)
6489 (attr_to_dynamic_prop, read_subrange_type): Update.
6490 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6491 to be methods on struct attribute.
6492 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6493 (read_call_site_scope, partial_die_info::read)
6494 (partial_die_info::read, lookup_die_type, follow_die_ref):
6495 Update.
6496 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6497 from dwarf2_get_ref_die_offset.
6498 (attribute::constant_value): New method, from
6499 dwarf2_get_attr_constant_value.
6500 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6501 Declare method.
6502 <constant_value>: New method.
6503
6504 2020-03-26 Tom Tromey <tom@tromey.com>
6505
6506 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6507 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6508 (dwarf_type_encoding_name): Move to stringify.c.
6509 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6510 * dwarf2/stringify.c: New file.
6511 * dwarf2/stringify.h: New file.
6512
6513 2020-03-26 Tom Tromey <tom@tromey.com>
6514
6515 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6516 Rewrite.
6517
6518 2020-03-26 Tom Tromey <tom@tromey.com>
6519
6520 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6521 methods.
6522 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6523 (lookup_ranges_base): Likewise.
6524 (read_cutu_die_from_dwo, read_full_die_1): Update.
6525
6526 2020-03-26 Tom Tromey <tom@tromey.com>
6527
6528 * dwarf2/read.c (read_import_statement, read_file_scope)
6529 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6530 (read_lexical_block_scope, read_call_site_scope)
6531 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6532 (handle_struct_member_die, process_structure_scope)
6533 (update_enumeration_type_from_children)
6534 (process_enumeration_scope, read_array_type, read_common_block)
6535 (read_namespace, read_module, read_subroutine_type): Update.
6536 (sibling_die): Remove.
6537
6538 2020-03-26 Tom Tromey <tom@tromey.com>
6539
6540 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6541 (build_type_psymtabs_reader, read_structure_type)
6542 (read_enumeration_type, read_full_die_1): Update.
6543 (dwarf2_attr_no_follow): Move to die.h.
6544 * dwarf2/die.h (struct die_info) <attr>: New method.
6545
6546 2020-03-26 Tom Tromey <tom@tromey.com>
6547
6548 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6549 <base_address>: Now an optional.
6550 (dwarf2_find_base_address, dwarf2_rnglists_process)
6551 (dwarf2_ranges_process, fill_in_loclist_baton)
6552 (dwarf2_symbol_mark_computed): Update.
6553
6554 2020-03-26 Tom Tromey <tom@tromey.com>
6555
6556 * dwarf2/read.c (struct die_info): Move to die.h.
6557 * dwarf2/die.h: New file.
6558
6559 2020-03-26 Tom Tromey <tom@tromey.com>
6560
6561 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6562 * dwarf2/read.c
6563 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6564 Move to line-header.c.
6565 (read_checked_initial_length_and_offset, read_formatted_entries):
6566 Likewise.
6567 (dwarf_decode_line_header): Split into two.
6568 * dwarf2/line-header.c
6569 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6570 Move from read.c.
6571 (read_checked_initial_length_and_offset, read_formatted_entries):
6572 Likewise.
6573 (dwarf_decode_line_header): New function, split from read.c.
6574
6575 2020-03-26 Tom Tromey <tom@tromey.com>
6576
6577 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6578 Declare method.
6579 * dwarf2/read.c (read_attribute_value): Update.
6580 (dwarf2_per_objfile::read_line_string): Rename from
6581 read_indirect_line_string.
6582 (read_formatted_entries): Update.
6583
6584 2020-03-26 Tom Tromey <tom@tromey.com>
6585
6586 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6587 variable.
6588
6589 2020-03-26 Tom Tromey <tom@tromey.com>
6590
6591 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6592 const.
6593 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6594 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6595 parameter const.
6596
6597 2020-03-26 Tom Tromey <tom@tromey.com>
6598
6599 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6600 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6601 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6602 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6603
6604 2020-03-26 Tom Tromey <tom@tromey.com>
6605
6606 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6607 file_names_size, file_full_name, file_file_name>: Use const.
6608 <file_name_at, file_names>: Add const overload.
6609 * dwarf2/line-header.c (line_header::file_file_name)
6610 (line_header::file_full_name): Update.
6611
6612 2020-03-26 Tom Tromey <tom@tromey.com>
6613
6614 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6615 (macro_start_file, consume_improper_spaces)
6616 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6617 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6618 (dwarf_decode_macros): Move to macro.c.
6619 * dwarf2/macro.c: New file.
6620 * dwarf2/macro.h: New file.
6621 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6622
6623 2020-03-26 Tom Tromey <tom@tromey.com>
6624
6625 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6626 method.
6627 * dwarf2/section.c: New method. From
6628 read_indirect_string_at_offset_from.
6629 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6630 (read_indirect_string_at_offset_from): Move to section.c.
6631 (read_indirect_string_at_offset): Rewrite.
6632 (read_indirect_line_string_at_offset): Remove.
6633 (read_indirect_string, read_indirect_line_string)
6634 (dwarf_decode_macro_bytes): Update.
6635
6636 2020-03-26 Tom Tromey <tom@tromey.com>
6637
6638 * dwarf2/section.h (struct dwarf2_section_info)
6639 <overload_complaint>: Declare.
6640 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6641 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6642 Rename from dwarf2_section_buffer_overflow_complaint.
6643 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6644 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6645
6646 2020-03-26 Tom Tromey <tom@tromey.com>
6647
6648 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6649 Declare.
6650 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6651 Move from read.c.
6652 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6653 to section.c.
6654
6655 2020-03-26 Tom Tromey <tom@tromey.com>
6656
6657 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6658
6659 2020-03-26 Tom Tromey <tom@tromey.com>
6660
6661 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6662 "builder".
6663 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6664 parameter.
6665 (dwarf_decode_macros): Update.
6666
6667 2020-03-26 Tom Tromey <tom@tromey.com>
6668
6669 * dwarf2/read.c (read_attribute_value): Update.
6670 (read_indirect_string_from_dwz): Move to dwz.c; change into
6671 method.
6672 (dwarf_decode_macro_bytes): Update.
6673 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6674 * dwarf2/dwz.c: New file.
6675 * Makefile.in (COMMON_SFILES): Add dwz.c.
6676
6677 2020-03-26 Tom Tromey <tom@tromey.com>
6678
6679 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6680 * dwarf2/read.c: Add include.
6681 * dwarf2/index-write.c: Add include.
6682 * dwarf2/index-cache.c: Add include.
6683 * dwarf2/dwz.h: New file.
6684
6685 2020-03-25 Tom Tromey <tom@tromey.com>
6686
6687 * compile/compile-object-load.c (get_out_value_type): Mention
6688 correct symbol name in error message.
6689
6690 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6691
6692 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6693
6694 2020-03-25 Tom de Vries <tdevries@suse.de>
6695
6696 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6697 * symmisc.c (dump_symtab_1): Print user and includes fields.
6698 (maintenance_info_symtabs): Same.
6699
6700 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 PR gdb/25534
6703 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6704 (riscv_regcache_cooked_write): New function.
6705 (riscv_push_dummy_call): Use new function.
6706 (riscv_return_value): Likewise.
6707
6708 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6711 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6712 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6713 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6714 * infrun.c (follow_fork): Likewise.
6715 (follow_fork_inferior): Likewise.
6716 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6717 * linux-nat.h (class linux_nat_target): Likewise.
6718 * remote.c (class remote_target) <follow_fork>: Likewise.
6719 (remote_target::follow_fork): Likewise.
6720 * target-delegates.c: Re-generate.
6721 * target.c (default_follow_fork): Likewise.
6722 (target_follow_fork): Likewise.
6723 * target.h (struct target_ops) <follow_fork>: Likewise.
6724 (target_follow_fork): Likewise.
6725
6726 2020-03-24 Tom de Vries <tdevries@suse.de>
6727
6728 * psymtab.c (maintenance_info_psymtabs): Print user field.
6729
6730 2020-03-20 Tom Tromey <tromey@adacore.com>
6731
6732 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6733 const.
6734 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6735 const.
6736
6737 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * ptrace.m4: Don't check for ptrace declaration.
6740 * config.in: Re-generate.
6741 * configure: Re-generate.
6742 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6743 not defined.
6744
6745 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6746
6747 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6748 `PTRACE_TYPE_RET'.
6749 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6750 * sparc-nat.c (gdb_ptrace): Likewise.
6751 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6752
6753 2020-03-20 Tom Tromey <tromey@adacore.com>
6754
6755 * c-exp.y (lex_one_token): Fix assert.
6756
6757 2020-03-20 Tom Tromey <tromey@adacore.com>
6758
6759 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6760 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6761 strncpy call.
6762
6763 2020-03-20 Tom Tromey <tromey@adacore.com>
6764
6765 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6766
6767 2020-03-20 Tom Tromey <tromey@adacore.com>
6768
6769 * ada-valprint.c (print_variant_part): Remove parameters; switch
6770 to value-based API.
6771 (print_field_values): Likewise.
6772 (ada_val_print_struct_union): Likewise.
6773 (ada_value_print_1): Update.
6774
6775 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6776
6777 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6778 nbsd_nat_target instead of inf_ptrace_target.
6779 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6780 nbsd_nat_target.
6781
6782 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6783
6784 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6785 it to the ptrace call.
6786 * (store_registers): Likewise.
6787
6788 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6789
6790 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6791 it to the ptrace call.
6792 * (store_registers): Likewise.
6793
6794 2020-03-19 Luis Machado <luis.machado@linaro.org>
6795
6796 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6797 valid, fetch vg value from ptrace.
6798
6799 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6800 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6801 * inf-ptrace.c: Likewise.
6802 * (gdb_ptrace): Add.
6803 * (inf_ptrace_target::resume): Update.
6804 * (inf_ptrace_target::xfer_partial): Likewise.
6805 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6806 * (inf_ptrace_peek_poke): Update.
6807
6808 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6809
6810 * x86-bsd-nat.c (gdb_ptrace): New.
6811 * (x86bsd_dr_set): Add new argument `ptid'.
6812 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6813 x86bsd_dr_set_addr): Update.
6814
6815 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6816
6817 * remote.c (remote_target::process_stop_reply): Handle events for
6818 all threads differently.
6819
6820 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6821
6822 * completer.c (completion_tracker::remove_completion): Define new
6823 function.
6824 * completer.h (completion_tracker::remove_completion): Declare new
6825 function.
6826 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6827 when adding a C++ function symbol.
6828
6829 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * completer.c (completion_tracker::completion_hash_entry): Define
6832 new class.
6833 (advance_to_filename_complete_word_point): Call
6834 recompute_lowest_common_denominator.
6835 (completion_tracker::completion_tracker): Call discard_completions
6836 to setup the hash table.
6837 (completion_tracker::discard_completions): Allow for being called
6838 from the constructor, pass new equal function, and element deleter
6839 when constructing the hash table. Initialise new class member
6840 variables.
6841 (completion_tracker::maybe_add_completion): Remove use of
6842 m_entries_vec, and store more information into m_entries_hash.
6843 (completion_tracker::recompute_lcd_visitor): New function, most
6844 content taken from...
6845 (completion_tracker::recompute_lowest_common_denominator):
6846 ...here, this now just visits each item in the hash calling the
6847 above visitor.
6848 (completion_tracker::build_completion_result): Remove use of
6849 m_entries_vec, call recompute_lowest_common_denominator.
6850 * completer.h (completion_tracker::have_completions): Remove use
6851 of m_entries_vec.
6852 (completion_tracker::completion_hash_entry): Declare new class.
6853 (completion_tracker::recompute_lowest_common_denominator): Change
6854 function signature.
6855 (completion_tracker::recompute_lcd_visitor): Declare new function.
6856 (completion_tracker::m_entries_vec): Delete.
6857 (completion_tracker::m_entries_hash): Initialize to NULL.
6858 (completion_tracker::m_lowest_common_denominator_valid): New
6859 member variable.
6860 (completion_tracker::m_lowest_common_denominator_max_length): New
6861 member variable.
6862
6863 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6864
6865 * regformats/regdef.h: Put reg in gdb namespace.
6866
6867 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6868
6869 * i386-bsd-nat.c (gdb_ptrace): New.
6870 * (i386bsd_fetch_inferior_registers,
6871 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6872 * (i386bsd_fetch_inferior_registers,
6873 i386bsd_store_inferior_registers) Use gdb_ptrace.
6874
6875 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6876
6877 * amd64-bsd-nat.c (gdb_ptrace): New.
6878 * (amd64bsd_fetch_inferior_registers,
6879 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6880 * (amd64bsd_fetch_inferior_registers,
6881 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6882
6883 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6884
6885 * user-regs.c (user_reg::read): Rename to...
6886 (user_reg::xread): ...this.
6887 * (append_user_reg): Rename argument `read' to `xread'.
6888 * (user_reg_add_builtin): Likewise.
6889 * (user_reg_add): Likewise.
6890 * (value_of_user_reg): Likewise.
6891
6892 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6893
6894 * sparc-nat.c (gdb_ptrace): New.
6895 * sparc-nat.c (sparc_fetch_inferior_registers)
6896 (sparc_store_inferior_registers) Remove obsolete comment.
6897 * sparc-nat.c (sparc_fetch_inferior_registers)
6898 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6899 * sparc-nat.c (sparc_fetch_inferior_registers)
6900 (sparc_store_inferior_registers) Use gdb_ptrace.
6901
6902 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6903
6904 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6905 it to the ptrace call.
6906 * sh-nbsd-nat.c (store_registers): Likewise.
6907
6908 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6909
6910 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6911 nbsd_nat_target instead of inf_ptrace_target.
6912 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6913 nbsd_nat_target.
6914
6915 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6916
6917 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6918
6919 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6920
6921 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6922 <sys/sysctl.h>.
6923 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6924
6925 2020-03-17 Tom de Vries <tdevries@suse.de>
6926
6927 PR gdb/23710
6928 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6929 fields.
6930 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6931 fields.
6932 (process_imported_unit_die): Skip import of c++ CUs.
6933
6934 2020-03-16 Tom Tromey <tom@tromey.com>
6935
6936 * p-valprint.c (pascal_object_print_value): Initialize
6937 base_value.
6938
6939 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6940 Shahab Vahedi <shahab@synopsys.com>
6941
6942 * Makefile.in: Add arch/arc.o
6943 * configure.tgt: Likewise.
6944 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6945 (_initialize_arc_tdep): Don't initialize old target descriptions.
6946 (arc_read_description): New function to cache target descriptions.
6947 * arc-tdep.h (arc_read_description): Add proto type.
6948 * arch/arc.c: New file.
6949 * arch/arc.h: Likewise.
6950 * features/Makefile: Replace old target descriptions with new.
6951 * features/arc-arcompact.c: Remove.
6952 * features/arc-arcompact.xml: Likewise.
6953 * features/arc-v2.c: Likewise
6954 * features/arc-v2.xml: Likewise
6955 * features/arc/aux-arcompact.xml: New file.
6956 * features/arc/aux-v2.xml: Likewise.
6957 * features/arc/core-arcompact.xml: Likewise.
6958 * features/arc/core-v2.xml: Likewise.
6959 * features/arc/aux-arcompact.c: Generate.
6960 * features/arc/aux-v2.c: Likewise.
6961 * features/arc/core-arcompact.c: Likewise.
6962 * features/arc/core-v2.c: Likewise.
6963 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6964
6965 2020-03-16 Tom Tromey <tromey@adacore.com>
6966
6967 PR gdb/25663:
6968 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6969 putting value into bcache.
6970
6971 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6972
6973 PR gdb/21500
6974 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6975 to...
6976 (amd64_windows_init_abi_common): ... this. Don't set size of
6977 long type.
6978 (amd64_windows_init_abi): New function.
6979 (amd64_cygwin_init_abi): New function.
6980 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6981 the Cygwin OS ABI.
6982 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6983 comment.
6984
6985 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6988 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6989 (pe_import_directory_entry): New struct type.
6990 (is_linked_with_cygwin_dll): New function.
6991 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6992 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6993 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6994
6995 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6996
6997 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6998 i386_cygwin_core_osabi_sniffer.
6999
7000 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * i386-cygwin-tdep.c: Rename to...
7003 * i386-windows-tdep.c: ... this.
7004 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7005 i386-windows-tdep.c.
7006 * configure.tgt: Likewise.
7007
7008 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7009
7010 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7011 * osabi.c (gdb_osabi_names): Add "Windows".
7012 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7013 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7014 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7015 i386_cygwin_osabi_sniffer.
7016 (_initialize_i386_cygwin_tdep): Register OS ABI
7017 GDB_OSABI_WINDOWS for i386.
7018 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7019 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7020 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7021 for x86-64.
7022 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7023 when the target matches '*-*-mingw*'.
7024
7025 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * defs.h (enum gdb_osabi): Move to...
7028 * osabi.h (enum gdb_osabi): ... here.
7029 * gdbarch.sh: Include osabi.h in gdbarch.h.
7030 * gdbarch.h: Re-generate.
7031
7032 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7033
7034 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7035 function.
7036 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7037
7038 2020-03-14 Tom Tromey <tom@tromey.com>
7039
7040 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7041 for C++.
7042 (c_type_print_modifier): Likewise. Add "language" parameter.
7043 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7044 (c_type_print_base_1): Update.
7045 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7046 constants.
7047 * type-stack.c (type_stack::insert): Handle tp_atomic and
7048 tp_restrict.
7049 (type_stack::follow_type_instance_flags): Likewise.
7050 (type_stack::follow_types): Likewise. Merge type-following code.
7051 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7052 (space_identifier, cv_with_space_id)
7053 (const_or_volatile_or_space_identifier_noopt)
7054 (const_or_volatile_or_space_identifier): Remove.
7055 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7056 rules.
7057 (ptr_operator, typebase): Update.
7058 (enum token_flag) <FLAG_C>: New constant.
7059 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7060 "_Atomic".
7061 (lex_one_token): Handle FLAG_C.
7062
7063 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7064
7065 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7066 it to the ptrace call.
7067 * m68k-bsd-nat.c (store_registers): Likewise.
7068
7069 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7070
7071 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7072 gdb_byte *.
7073 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7074 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7075 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7076
7077 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7078
7079 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7080 nbsd_nat_target instead of inf_ptrace_target.
7081 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7082 nbsd_nat_target.
7083
7084 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7085
7086 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7087 register_t.
7088
7089 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7090
7091 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7092 it to the ptrace call.
7093 * alpha-bsd-nat.c (store_registers): Likewise.
7094
7095 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7096
7097 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7098 includes.
7099 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7100 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7101 fill_fpregset): Likewise.
7102
7103 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7104
7105 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7106 nbsd_nat_target instead of inf_ptrace_target.
7107 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7108 nbsd_nat_target.
7109
7110 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7111
7112 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7113 register_t.
7114
7115 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7116
7117 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7118 it to the ptrace call.
7119 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7120 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7121 * arm-nbsd-nat.c (store_register): Likewise.
7122 * arm-nbsd-nat.c (store_regs): Likewise.
7123 * arm-nbsd-nat.c (store_fp_register): Likewise.
7124 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7125
7126 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7127
7128 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7129 nbsd_nat_target instead of inf_ptrace_target.
7130 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7131 nbsd_nat_target.
7132
7133 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7134
7135 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7136 it to the ptrace call.
7137 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7138
7139 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7140
7141 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7142 it to the ptrace call.
7143 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7144
7145 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7146
7147 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7148 gdb_byte *.
7149 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7150
7151 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7152
7153 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7154 instead of inf_ptrace_target.
7155 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7156 nbsd_nat_target.
7157
7158 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7159
7160 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7161 register_t.
7162
7163 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7164
7165 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7166 register_t.
7167
7168 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7169
7170 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7171 register_t.
7172
7173 2020-03-13 Tom Tromey <tom@tromey.com>
7174
7175 * value.h (val_print): Don't declare.
7176 * valprint.h (val_print_array_elements)
7177 (val_print_scalar_formatted, generic_val_print): Don't declare.
7178 * valprint.c (generic_val_print_array): Take a struct value.
7179 (generic_val_print_ptr, generic_val_print_memberptr)
7180 (generic_val_print_bool, generic_val_print_int)
7181 (generic_val_print_char, generic_val_print_complex)
7182 (generic_val_print): Remove.
7183 (generic_value_print): Update.
7184 (do_val_print): Remove unused parameters. Don't call
7185 la_val_print.
7186 (val_print): Remove.
7187 (common_val_print): Update. Don't call value_check_printable.
7188 (val_print_scalar_formatted, val_print_array_elements): Remove.
7189 * rust-lang.c (rust_val_print): Remove.
7190 (rust_language_defn): Update.
7191 * p-valprint.c (pascal_val_print): Remove.
7192 (pascal_value_print_inner): Update.
7193 (pascal_object_print_val_fields, pascal_object_print_val):
7194 Remove.
7195 (pascal_object_print_static_field): Update.
7196 * p-lang.h (pascal_val_print): Don't declare.
7197 * p-lang.c (pascal_language_defn): Update.
7198 * opencl-lang.c (opencl_language_defn): Update.
7199 * objc-lang.c (objc_language_defn): Update.
7200 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7201 * m2-lang.h (m2_val_print): Don't declare.
7202 * m2-lang.c (m2_language_defn): Update.
7203 * language.h (struct language_defn) <la_val_print>: Remove.
7204 * language.c (unk_lang_value_print_inner): Rename. Change
7205 argument types.
7206 (unknown_language_defn, auto_language_defn): Update.
7207 * go-valprint.c (go_val_print): Remove.
7208 * go-lang.h (go_val_print): Don't declare.
7209 * go-lang.c (go_language_defn): Update.
7210 * f-valprint.c (f_val_print): Remove.
7211 * f-lang.h (f_value_print): Don't declare.
7212 * f-lang.c (f_language_defn): Update.
7213 * d-valprint.c (d_val_print): Remove.
7214 * d-lang.h (d_value_print): Don't declare.
7215 * d-lang.c (d_language_defn): Update.
7216 * cp-valprint.c (cp_print_value_fields)
7217 (cp_print_value_fields_rtti, cp_print_value): Remove.
7218 (cp_print_static_field): Update.
7219 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7220 (c_val_print_struct, c_val_print_union, c_val_print_int)
7221 (c_val_print_memberptr, c_val_print): Remove.
7222 * c-lang.h (c_val_print_array, cp_print_value_fields)
7223 (cp_print_value_fields_rtti): Don't declare.
7224 * c-lang.c (c_language_defn, cplus_language_defn)
7225 (asm_language_defn, minimal_language_defn): Update.
7226 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7227 (ada_val_print_enum): Take a struct value.
7228 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7229 (ada_val_print): Remove.
7230 (ada_value_print_1): Update.
7231 (printable_val_type): Remove.
7232 * ada-lang.h (ada_val_print): Don't declare.
7233 * ada-lang.c (ada_language_defn): Update.
7234
7235 2020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * valprint.c (do_val_print): Update.
7238 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7239 a struct value.
7240 (value_to_value_object_no_release): Declare.
7241 * python/py-value.c (value_to_value_object_no_release): New
7242 function.
7243 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7244 struct value.
7245 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7246 function.
7247 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7248 a struct value.
7249 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7250 Declare.
7251 (gdbscm_apply_val_pretty_printer): Take a struct value.
7252 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7253 value.
7254 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7255 value.
7256 * extension-priv.h (struct extension_language_ops)
7257 <apply_val_pretty_printer>: Take a struct value.
7258 * cp-valprint.c (cp_print_value): Create a struct value.
7259 (cp_print_value): Update.
7260
7261 2020-03-13 Tom Tromey <tom@tromey.com>
7262
7263 * ada-valprint.c (print_field_values): Call common_val_print.
7264
7265 2020-03-13 Tom Tromey <tom@tromey.com>
7266
7267 * ada-valprint.c (val_print_packed_array_elements): Remove
7268 bitoffset and val parameters. Call common_val_print.
7269 (ada_val_print_string): Remove offset, address, and original_value
7270 parameters.
7271 (ada_val_print_array): Update.
7272 (ada_value_print_array): New function.
7273 (ada_value_print_1): Call it.
7274
7275 2020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * ada-valprint.c (ada_value_print): Use common_val_print.
7278
7279 2020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7282
7283 2020-03-13 Tom Tromey <tom@tromey.com>
7284
7285 * ada-valprint.c (ada_value_print_num): New function.
7286 (ada_value_print_1): Use it.
7287
7288 2020-03-13 Tom Tromey <tom@tromey.com>
7289
7290 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7291
7292 2020-03-13 Tom Tromey <tom@tromey.com>
7293
7294 * ada-valprint.c (ada_value_print_ptr): New function.
7295 (ada_value_print_1): Use it.
7296
7297 2020-03-13 Tom Tromey <tom@tromey.com>
7298
7299 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7300 call common_val_print.
7301 (ada_val_print_1): Update.
7302 (ada_value_print_1): New function.
7303 (ada_value_print_inner): Rewrite.
7304
7305 2020-03-13 Tom Tromey <tom@tromey.com>
7306
7307 * cp-valprint.c (cp_print_value_fields): Update.
7308 (cp_print_value): New function.
7309
7310 2020-03-13 Tom Tromey <tom@tromey.com>
7311
7312 * m2-valprint.c (m2_value_print_inner): Use
7313 cp_print_value_fields.
7314 * cp-valprint.c (cp_print_value_fields): New function.
7315 * c-valprint.c (c_value_print_struct): New function.
7316 (c_value_print_inner): Use c_value_print_struct.
7317 * c-lang.h (cp_print_value_fields): Declare.
7318
7319 2020-03-13 Tom Tromey <tom@tromey.com>
7320
7321 * c-valprint.c (c_value_print_array): New function.
7322 (c_value_print_inner): Use it.
7323
7324 2020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * c-valprint.c (c_value_print_memberptr): New function.
7327 (c_value_print_inner): Use it.
7328
7329 2020-03-13 Tom Tromey <tom@tromey.com>
7330
7331 * c-valprint.c (c_value_print_int): New function.
7332 (c_value_print_inner): Use it.
7333
7334 2020-03-13 Tom Tromey <tom@tromey.com>
7335
7336 * c-valprint.c (c_value_print_ptr): New function.
7337 (c_value_print_inner): Use it.
7338
7339 2020-03-13 Tom Tromey <tom@tromey.com>
7340
7341 * c-valprint.c (c_value_print_inner): Rewrite.
7342
7343 2020-03-13 Tom Tromey <tom@tromey.com>
7344
7345 * valprint.c (generic_value_print_complex): New function.
7346 (generic_value_print): Use it.
7347
7348 2020-03-13 Tom Tromey <tom@tromey.com>
7349
7350 * valprint.c (generic_val_print_float): Don't call
7351 val_print_scalar_formatted.
7352 (generic_val_print, generic_value_print): Update.
7353
7354 2020-03-13 Tom Tromey <tom@tromey.com>
7355
7356 * valprint.c (generic_value_print_char): New function
7357 (generic_value_print): Use it.
7358
7359 2020-03-13 Tom Tromey <tom@tromey.com>
7360
7361 * valprint.c (generic_value_print_int): New function.
7362 (generic_value_print): Use it.
7363
7364 2020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * valprint.c (generic_value_print_bool): New function.
7367 (generic_value_print): Use it.
7368
7369 2020-03-13 Tom Tromey <tom@tromey.com>
7370
7371 * valprint.c (generic_val_print_func): Simplify.
7372 (generic_val_print, generic_value_print): Update.
7373
7374 2020-03-13 Tom Tromey <tom@tromey.com>
7375
7376 * valprint.c (generic_val_print_flags): Remove.
7377 (generic_val_print, generic_value_print): Update.
7378 (val_print_type_code_flags): Add original_value parameter.
7379
7380 2020-03-13 Tom Tromey <tom@tromey.com>
7381
7382 * valprint.c (generic_val_print): Update.
7383 (generic_value_print): Update.
7384 * valprint.c (generic_val_print_enum): Don't call
7385 val_print_scalar_formatted.
7386
7387 2020-03-13 Tom Tromey <tom@tromey.com>
7388
7389 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7390 * valprint.c (generic_value_print_ptr): New function.
7391
7392 2020-03-13 Tom Tromey <tom@tromey.com>
7393
7394 * valprint.c (generic_value_print): Rewrite.
7395
7396 2020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * p-valprint.c (pascal_object_print_value_fields)
7399 (pascal_object_print_value): New functions.
7400
7401 2020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * p-valprint.c (pascal_value_print_inner): Rewrite.
7404
7405 2020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * f-valprint.c (f_value_print_innner): Rewrite.
7408
7409 2020-03-13 Tom Tromey <tom@tromey.com>
7410
7411 * m2-valprint.c (m2_print_unbounded_array): New overload.
7412 (m2_print_unbounded_array): Update.
7413 (m2_print_array_contents): Take a struct value.
7414 (m2_value_print_inner): Rewrite.
7415
7416 2020-03-13 Tom Tromey <tom@tromey.com>
7417
7418 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7419 (d_value_print_inner): New function.
7420 * d-lang.h (d_value_print_inner): Declare.
7421 * d-lang.c (d_language_defn): Use d_value_print_inner.
7422
7423 2020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * go-valprint.c (go_value_print_inner): New function.
7426 * go-lang.h (go_value_print_inner): Declare.
7427 * go-lang.c (go_language_defn): Use go_value_print_inner.
7428
7429 2020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7432 API.
7433 (rust_val_print): Rewrite.
7434 (rust_value_print_inner): New function, from rust_val_print.
7435 (rust_language_defn): Use rust_value_print_inner.
7436
7437 2020-03-13 Tom Tromey <tom@tromey.com>
7438
7439 * ada-valprint.c (ada_value_print_inner): New function.
7440 * ada-lang.h (ada_value_print_inner): Declare.
7441 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7442
7443 2020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * f-valprint.c (f_value_print_innner): New function.
7446 * f-lang.h (f_value_print_innner): Declare.
7447 * f-lang.c (f_language_defn): Use f_value_print_innner.
7448
7449 2020-03-13 Tom Tromey <tom@tromey.com>
7450
7451 * p-valprint.c (pascal_value_print_inner): New function.
7452 * p-lang.h (pascal_value_print_inner): Declare.
7453 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7454
7455 2020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * m2-valprint.c (m2_value_print_inner): New function.
7458 * m2-lang.h (m2_value_print_inner): Declare.
7459 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7460
7461 2020-03-13 Tom Tromey <tom@tromey.com>
7462
7463 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7464 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7465 * c-valprint.c (c_value_print_inner): New function.
7466 * c-lang.h (c_value_print_inner): Declare.
7467 * c-lang.c (c_language_defn, cplus_language_defn)
7468 (asm_language_defn, minimal_language_defn): Use
7469 c_value_print_inner.
7470
7471 2020-03-13 Tom Tromey <tom@tromey.com>
7472
7473 * p-valprint.c (pascal_object_print_value_fields): Now static.
7474 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7475
7476 2020-03-13 Tom Tromey <tom@tromey.com>
7477
7478 * c-valprint.c (c_val_print_array): Simplify.
7479
7480 2020-03-13 Tom Tromey <tom@tromey.com>
7481
7482 * valprint.c (value_print_array_elements): New function.
7483 * valprint.h (value_print_array_elements): Declare.
7484
7485 2020-03-13 Tom Tromey <tom@tromey.com>
7486
7487 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7488 * mips-tdep.c (mips_print_register): Use
7489 value_print_scalar_formatted.
7490
7491 2020-03-13 Tom Tromey <tom@tromey.com>
7492
7493 * valprint.h (value_print_scalar_formatted): Declare.
7494 * valprint.c (value_print_scalar_formatted): New function.
7495
7496 2020-03-13 Tom Tromey <tom@tromey.com>
7497
7498 * valprint.h (generic_value_print): Declare.
7499 * valprint.c (generic_value_print): New function.
7500
7501 2020-03-13 Tom Tromey <tom@tromey.com>
7502
7503 * valprint.c (do_val_print): Call la_value_print_inner, if
7504 available.
7505 * rust-lang.c (rust_language_defn): Update.
7506 * p-lang.c (pascal_language_defn): Update.
7507 * opencl-lang.c (opencl_language_defn): Update.
7508 * objc-lang.c (objc_language_defn): Update.
7509 * m2-lang.c (m2_language_defn): Update.
7510 * language.h (struct language_defn) <la_value_print_inner>: New
7511 member.
7512 * language.c (unknown_language_defn, auto_language_defn): Update.
7513 * go-lang.c (go_language_defn): Update.
7514 * f-lang.c (f_language_defn): Update.
7515 * d-lang.c (d_language_defn): Update.
7516 * c-lang.c (c_language_defn, cplus_language_defn)
7517 (asm_language_defn, minimal_language_defn): Update.
7518 * ada-lang.c (ada_language_defn): Update.
7519
7520 2020-03-13 Tom Tromey <tom@tromey.com>
7521
7522 * c-valprint.c (c_value_print): Use common_val_print.
7523
7524 2020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7527
7528 2020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * f-valprint.c (f77_print_array_1, f_val_print): Use
7531 common_val_print.
7532
7533 2020-03-13 Tom Tromey <tom@tromey.com>
7534
7535 * riscv-tdep.c (riscv_print_one_register_info): Use
7536 common_val_print.
7537
7538 2020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * mi/mi-main.c (output_register): Use common_val_print.
7541
7542 2020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * infcmd.c (default_print_one_register_info): Use
7545 common_val_print.
7546
7547 2020-03-13 Tom Tromey <tom@tromey.com>
7548
7549 * valprint.h (common_val_print_checked): Declare.
7550 * valprint.c (common_val_print_checked): New function.
7551 * stack.c (print_frame_arg): Use common_val_print_checked.
7552
7553 2020-03-13 Tom Tromey <tom@tromey.com>
7554
7555 * valprint.c (do_val_print): New function, from val_print.
7556 (val_print): Use do_val_print.
7557 (common_val_print): Use do_val_print.
7558
7559 2020-03-13 Tom Tromey <tom@tromey.com>
7560
7561 * valprint.c (value_print): Use scoped_value_mark.
7562
7563 2020-03-13 Tom de Vries <tdevries@suse.de>
7564
7565 PR symtab/25646
7566 * psymtab.c (partial_symtab::partial_symtab): Don't set
7567 globals_offset and statics_offset. Push element onto
7568 current_global_psymbols and current_static_psymbols stacks.
7569 (concat): New function.
7570 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7571 element from current_global_psymbols and current_static_psymbols
7572 stacks. Concat popped elements to global_psymbols and
7573 static_symbols.
7574 (add_psymbol_to_list): Use current_global_psymbols and
7575 current_static_psymbols stacks.
7576 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7577 current_static_psymbols fields.
7578
7579 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7580
7581 * corelow.c (sniff_core_bfd): Remove.
7582 (class core_target) <m_core_vec>: Remove.
7583 (core_target::core_target): Update.
7584 (core_file_fns): Remove.
7585 (deprecated_add_core_fns): Remove.
7586 (default_core_sniffer): Remove.
7587 (sniff_core_bfd): Remove.
7588 (default_check_format): Remove.
7589 (gdb_check_format): Remove.
7590 (core_target_open): Update.
7591 (core_target::get_core_register_section): Update.
7592 (get_core_registers_cb): Update.
7593 (core_target::fetch_registers): Update.
7594 * gdbcore.h (struct core_fns): Remove.
7595 (deprecated_add_core_fns): Remove.
7596 (default_core_sniffer): Remove.
7597 (default_check_format): Remove.
7598
7599 2020-03-12 Tom Tromey <tom@tromey.com>
7600
7601 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7602 CORE_ADDR.
7603 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7604
7605 2020-03-12 Tom Tromey <tom@tromey.com>
7606
7607 * remote.c (remote_target::download_tracepoint)
7608 (remote_target::enable_tracepoint)
7609 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7610 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7611 sprintf_vma.
7612
7613 2020-03-12 Tom Tromey <tom@tromey.com>
7614
7615 * symfile-mem.c: Update CORE_ADDR size assert.
7616
7617 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7618
7619 * selftest.m4: Move to gdbsupport/.
7620 * acinclude.m4: Update path to selftest.m4.
7621
7622 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7623
7624 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7625 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7626 gdbarch-selfselftests.c and selftest-arch.c.
7627 (SUBDIR_UNITTESTS_OBS): Rename to...
7628 (SELFTESTS_OBS): ... this.
7629 (COMMON_SFILES): Remove disasm-selftests.c and
7630 gdbarch-selftests.c.
7631 * configure.ac: Don't add selftest-arch.{c,o} to
7632 CONFIG_{SRCS,OBS}.
7633 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7634 preprocessor conditions.
7635
7636 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * configure.ac: Don't source bfd/development.sh.
7639 * selftest.m4: Modify comment.
7640 * configure: Re-generate.
7641
7642 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7645 not "true" or "false".
7646 * configure: Re-generate.
7647
7648 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7649
7650 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7651 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7652 renamed to arm_nbsd_supply_gregset.
7653 (fetch_register): Update to call arm_nbsd_supply_gregset.
7654 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7655 (arm_netbsd_nat_target::fetch_registers): Update.
7656 (fetch_elfcore_registers): Removed.
7657 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7658 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7659 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7660 not require NetBSD system headers.
7661 (arm_nbsd_regset): New struct.
7662 (arm_nbsd_iterate_over_regset_sections): New function.
7663 (arm_netbsd_init_abi_common): Updated to call
7664 set_gdbarch_iterate_over_regset_sections.
7665 * arm-nbsd-tdep.h: New file.
7666
7667 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7668
7669 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7670 recursion.
7671
7672 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7673
7674 * configure: Re-generate.
7675
7676 2020-03-11 Tom Tromey <tromey@adacore.com>
7677
7678 * ada-typeprint.c (print_choices): Fix comment.
7679
7680 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7681
7682 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7683 previous item in the list, when the list has no items.
7684
7685 2020-03-11 Tom de Vries <tdevries@suse.de>
7686
7687 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7688 PROP_LOCLIST handling code.
7689
7690 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7691
7692 * buildsym-legacy.c (record_line): Pass extra parameter to
7693 record_line.
7694 * buildsym.c (buildsym_compunit::record_line): Take an extra
7695 parameter, reduce duplication in the line table, and record the
7696 is_stmt flag in the line table.
7697 * buildsym.h (buildsym_compunit::record_line): Add extra
7698 parameter.
7699 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7700 non-statement lines.
7701 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7702 this to the symtab builder.
7703 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7704 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7705 through to dwarf_record_line_1.
7706 * infrun.c (process_event_stop_test): When stepping, don't stop at
7707 a non-statement instruction, and only refresh the step info when
7708 we land in the middle of a line's range. Also add an extra
7709 comment.
7710 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7711 field.
7712 * record-btrace.c (btrace_find_line_range): Only record lines
7713 marked as is-statement.
7714 * stack.c (frame_show_address): Show the frame address if we are
7715 in a non-statement sal.
7716 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7717 (maintenance_print_one_line_table): Print a header for the is_stmt
7718 column, and include is_stmt information in the output.
7719 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7720 preference to non-statements.
7721 (find_pcs_for_symtab_line): Prefer is-statement entries.
7722 (find_line_common): Likewise.
7723 * symtab.h (struct linetable_entry): Add is_stmt field.
7724 (struct symtab_and_line): Likewise.
7725 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7726 arranging the line table.
7727
7728 2020-03-07 Tom de Vries <tdevries@suse.de>
7729
7730 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7731 DIE.
7732
7733 2020-03-07 Tom Tromey <tom@tromey.com>
7734
7735 * valops.c (value_literal_complex): Remove obsolete comment.
7736 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7737 comment.
7738
7739 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7740
7741 * infrun.h: Forward-declare thread_info.
7742 (set_step_info): Add thread_info parameter, add doc.
7743 * infrun.c (set_step_info): Add thread_info parameter, move doc
7744 to header.
7745 * infrun.c (process_event_stop_test): Pass thread to
7746 set_step_info call.
7747 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7748 set_step_info.
7749 (prepare_one_step): Add thread_info parameter, pass it to
7750 set_step_frame and prepare_one_step (recursive) call.
7751 (step_1): Pass thread to prepare_one_step call.
7752 (step_command_fsm::should_stop): Pass thread to
7753 prepare_one_step.
7754 (until_next_fsm): Pass thread to set_step_frame call.
7755 (finish_command): Pass thread to set_step_info call.
7756
7757 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7758
7759 * windows-tdep.c (windows_solib_create_inferior_hook):
7760 Check if inferior is running.
7761
7762 2020-03-06 Tom de Vries <tdevries@suse.de>
7763
7764 * NEWS: Fix "the the".
7765 * ctfread.c: Same.
7766
7767 2020-03-06 Tom de Vries <tdevries@suse.de>
7768
7769 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7770
7771 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7772
7773 * .dir-locals.el: Add a comment referencing the other copies of
7774 this file.
7775
7776 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7777
7778 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7779 psargs.
7780
7781 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7782
7783 * .gitattributes: New file.
7784
7785 2020-03-04 Tom Tromey <tom@tromey.com>
7786
7787 * symmisc.c (print_symbol_bcache_statistics)
7788 (print_objfile_statistics): Update.
7789 * symfile.c (allocate_symtab): Use intern.
7790 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7791 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7792 macro_cache>: Remove.
7793 <string_cache>: New member.
7794 (struct objfile) <intern>: New methods.
7795 * elfread.c (elf_symtab_read): Use intern.
7796 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7797 (dwarf2_compute_name, dwarf2_physname)
7798 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7799 names.
7800 (guess_partial_die_structure_name): Update.
7801 (partial_die_info::fixup): Intern name.
7802 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7803 name.
7804 (dwarf2_name): Intern name. Update.
7805 * buildsym.c (buildsym_compunit::get_macro_table): Use
7806 string_cache.
7807
7808 2020-03-04 Tom Tromey <tom@tromey.com>
7809
7810 * jit.c (bfd_open_from_target_memory): Make "target" const.
7811 * corefile.c (gnutarget): Now const.
7812 * gdbcore.h (gnutarget): Now const.
7813
7814 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7815
7816 * NEWS: Mention support for WOW64 processes.
7817 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7818 (amd64_windows_segment_register_p): Remove static.
7819 (_initialize_amd64_windows_nat): Update.
7820 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7821 * i386-windows-nat.c (context_offset): Update.
7822 (i386_mappings): Rename and remove static.
7823 (i386_windows_segment_register_p): Remove static.
7824 (_initialize_i386_windows_nat): Update.
7825 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7826 (STATUS_WX86_SINGLE_STEP): New macro.
7827 (EnumProcessModulesEx): New macro.
7828 (Wow64SuspendThread): New macro.
7829 (Wow64GetThreadContext): New macro.
7830 (Wow64SetThreadContext): New macro.
7831 (Wow64GetThreadSelectorEntry): New macro.
7832 (windows_set_context_register_offsets): Add static.
7833 (windows_set_segment_register_p): Likewise.
7834 (windows_add_thread): Adapt for WOW64 processes.
7835 (windows_fetch_one_register): Likewise.
7836 (windows_nat_target::fetch_registers): Likewise.
7837 (windows_store_one_register): Likewise.
7838 (display_selector): Likewise.
7839 (display_selectors): Likewise.
7840 (handle_exception): Likewise.
7841 (windows_continue): Likewise.
7842 (windows_nat_target::resume): Likewise.
7843 (windows_add_all_dlls): Likewise.
7844 (do_initial_windows_stuff): Likewise.
7845 (windows_nat_target::attach): Likewise.
7846 (windows_get_exec_module_filename): Likewise.
7847 (windows_nat_target::create_inferior): Likewise.
7848 (windows_xfer_siginfo): Likewise.
7849 (_initialize_loadable): Initialize Wow64SuspendThread,
7850 Wow64GetThreadContext, Wow64SetThreadContext,
7851 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7852 * windows-nat.h (windows_set_context_register_offsets):
7853 Remove declaration.
7854 (windows_set_segment_register_p): Likewise.
7855 (i386_windows_segment_register_p): Add declaration.
7856 (amd64_windows_segment_register_p): Likewise.
7857
7858 2020-03-04 Luis Machado <luis.machado@linaro.org>
7859
7860 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7861 in "info registers" for AArch64/ARM.
7862
7863 The change caused "info registers" to not print GPR's.
7864
7865 gdb/ChangeLog:
7866
7867 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7868
7869 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7870 when reg->group is empty and reggroup is not.
7871
7872 2020-03-03 Tom Tromey <tromey@adacore.com>
7873
7874 * dwarf2/frame.c (struct dwarf2_frame_cache)
7875 <checked_tailcall_bottom, entry_cfa_sp_offset,
7876 entry_cfa_sp_offset_p>: Remove members.
7877 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7878 (dwarf2_frame_prev_register): Don't call
7879 dwarf2_tailcall_sniffer_first.
7880 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7881 * frame-unwind.c (add_unwinder): New fuction.
7882 (frame_unwind_init): Use it. Add tailcall unwinder.
7883
7884 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7885 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7886
7887 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7888 value should be printed as true.
7889
7890 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7891
7892 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7893 (windows_init_abi): Set and use windows_so_ops.
7894
7895 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7896
7897 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7898 when verifying if dealing with a convenience variable.
7899
7900 2020-03-03 Luis Machado <luis.machado@linaro.org>
7901
7902 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7903
7904 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7905
7906 * infrun.c (gdbarch_supports_displaced_stepping): New.
7907 (use_displaced_stepping): Break up conditions in smaller pieces.
7908 Use gdbarch_supports_displaced_stepping.
7909 (displaced_step_prepare_throw): Use
7910 gdbarch_supports_displaced_stepping.
7911
7912 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7913
7914 * NEWS: Mention new behaviour of the history filename.
7915 * top.c (write_history_p): Add comment.
7916 (show_write_history_p): Add header comment, give a different
7917 message when history writing is on, but the history filename is
7918 empty.
7919 (history_filename): Add comment.
7920 (history_filename_empty): New function.
7921 (show_history_filename): Add header comment, give a different
7922 message when the filename is empty.
7923 (init_history): Compare history_filename against nullptr, and only
7924 read history if the filename is not empty.
7925 (set_history_filename): Add header comment, and only make
7926 non-empty filenames absolute.
7927 (init_main): Make the filename argument to 'set history filename'
7928 optional.
7929
7930 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7931
7932 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7933 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7934 (fetch_fp_register): Update.
7935 (fetch_fp_regs): Update.
7936 (store_fp_register): Update.
7937 (store_fp_regs): Update.
7938 (arm_netbsd_nat_target::read_description): New function.
7939 (fetch_elfcore_registers): Update.
7940
7941 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7942
7943 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7944 general_thread if the stop reply is missing a thread-id.
7945 (remote_target::process_stop_reply): Use the first non-exited
7946 thread if the target didn't pass a thread-id.
7947 * infrun.c (do_target_wait): Move call to
7948 switch_to_inferior_no_thread to ....
7949 (do_target_wait_1): ... here.
7950
7951 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7952
7953 * debuginfod-support.c: Include defs.h first.
7954
7955 2020-02-28 Tom de Vries <tdevries@suse.de>
7956
7957 * symfile.c (set_initial_language): Use default language for lookup.
7958
7959 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7960
7961 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7962 reader variable, pass `this` to read_cutu_die_from_dwo.
7963
7964 2020-02-27 Aaron Merey <amerey@redhat.com>
7965
7966 * source.c (open_source_file): Check for nullptr when computing
7967 srcpath.
7968
7969 2020-02-27 Tom Tromey <tromey@adacore.com>
7970
7971 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7972 member.
7973 (dwarf2_add_field): Don't update nfields.
7974 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7975
7976 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7977
7978 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7979 abs.
7980
7981 2020-02-26 Tom Tromey <tom@tromey.com>
7982
7983 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7984 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7985 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7986 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7987 per_cu_data.
7988
7989 2020-02-26 Tom Tromey <tom@tromey.com>
7990
7991 * dwarf2/index-write.c (psym_index_map): Change type.
7992 (add_address_entry_worker, write_one_signatured_type)
7993 (recursively_count_psymbols, recursively_write_psymbols)
7994 (class debug_names, psyms_seen_size, write_gdbindex)
7995 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7996
7997 2020-02-26 Aaron Merey <amerey@redhat.com>
7998
7999 * Makefile.in: Handle optional debuginfod support.
8000 * NEWS: Update.
8001 * README: Add --with-debuginfod summary.
8002 * config.in: Regenerate.
8003 * configure: Regenerate.
8004 * configure.ac: Handle optional debuginfod support.
8005 * debuginfod-support.c: debuginfod helper functions.
8006 * debuginfod-support.h: Ditto.
8007 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8008 summary.
8009 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8010 when a dwz file cannot be found.
8011 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8012 debuginfo file cannot be found.
8013 * source.c (open_source_file): Query debuginfod servers when a
8014 source file cannot be found.
8015 * top.c (print_gdb_configuration): Include
8016 --{with,without}-debuginfod in the output.
8017
8018 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8019
8020 * thread.c (thr_try_catch_cmd): Print thread name.
8021
8022 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8023
8024 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8025 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8026 dwarf2_fetch_die_type_sect_off): Move to...
8027 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8028 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8029 dwarf2_fetch_die_type_sect_off): ... here.
8030 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8031 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8032 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8033
8034 2020-02-26 Tom de Vries <tdevries@suse.de>
8035
8036 PR gdb/25603
8037 * symfile.c (set_initial_language): Exit-early if
8038 language_mode == language_mode_manual.
8039
8040 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8041
8042 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8043 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8044 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8045
8046 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * gdbtypes.c (create_array_type_with_stride): Handle negative
8049 array strides.
8050 * valarith.c (value_subscripted_rvalue): Likewise.
8051
8052 2020-02-25 Luis Machado <luis.machado@linaro.org>
8053
8054 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8055
8056 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8057
8058 * loc.h (dwarf2_get_die_type): Move to...
8059 * read.h (dwarf2_get_die_type): ... here.
8060 * read.c (dwarf2_get_die_type): Move doc to header.
8061
8062 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8063
8064 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8065 'gnulib/Makefile.in' to the list.
8066
8067 2020-02-24 Tom Tromey <tom@tromey.com>
8068
8069 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8070 Remove.
8071 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8072 XOBNEWVEC.
8073
8074 2020-02-24 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8077 New method.
8078 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8079 (dw2_do_instantiate_symtab, dw2_get_file_names)
8080 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8081
8082 2020-02-24 Tom Tromey <tom@tromey.com>
8083
8084 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8085 make_scoped_restore.
8086 (dwarf2_psymtab::read_symtab): Don't clear
8087 reading_partial_symbols.
8088
8089 2020-02-24 Tom de Vries <tdevries@suse.de>
8090
8091 PR gdb/25592
8092 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8093
8094 2020-02-24 Tom de Vries <tdevries@suse.de>
8095
8096 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8097 commands layout next/prev/regs.
8098
8099 2020-02-22 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8102 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8103
8104 2020-02-22 Tom Tromey <tom@tromey.com>
8105
8106 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8107
8108 2020-02-22 Tom Tromey <tom@tromey.com>
8109
8110 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8111 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8112 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8113 * tui/tui.c (_initialize_tui): Add usage text.
8114
8115 2020-02-22 Tom Tromey <tom@tromey.com>
8116
8117 * tui/tui-win.c (tui_set_focus_command)
8118 (tui_set_win_height_command): Use error_no_arg.
8119 (_initialize_tui_win): Update help text.
8120 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8121
8122 2020-02-22 Tom Tromey <tom@tromey.com>
8123
8124 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8125 * tui/tui-disasm.h (struct tui_disasm_window)
8126 <display_start_addr>: Declare.
8127 * tui/tui-source.h (struct tui_source_window)
8128 <display_start_addr>: Declare.
8129 * tui/tui-winsource.h (struct tui_source_window_base)
8130 <show_source_line, display_start_addr>: New methods.
8131 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8132 Rename and move to protected section.
8133 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8134 (tui_source_window_base::do_erase_source_content): Update.
8135 (tui_source_window_base::show_source_line): Now a method.
8136 (tui_source_window_base::show_source_content)
8137 (tui_source_window_base::tui_source_window_base)
8138 (tui_source_window_base::rerender)
8139 (tui_source_window_base::refill)
8140 (tui_source_window_base::do_scroll_horizontal)
8141 (tui_source_window_base::set_is_exec_point_at)
8142 (tui_source_window_base::update_breakpoint_info)
8143 (tui_source_window_base::update_exec_info): Update.
8144 * tui/tui-source.c (tui_source_window::set_contents)
8145 (tui_source_window::showing_source_p)
8146 (tui_source_window::do_scroll_vertical)
8147 (tui_source_window::location_matches_p)
8148 (tui_source_window::line_is_displayed): Update.
8149 (tui_source_window::display_start_addr): New method.
8150 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8151 (tui_disasm_window::do_scroll_vertical)
8152 (tui_disasm_window::location_matches_p): Update.
8153 (tui_disasm_window::display_start_addr): New method.
8154
8155 2020-02-22 Tom Tromey <tom@tromey.com>
8156
8157 * NEWS: Add entry for gdb.register_window_type.
8158 * tui/tui-layout.h (window_factory): New typedef.
8159 (tui_register_window): Declare.
8160 * tui/tui-layout.c (saved_tui_windows): New global.
8161 (tui_apply_current_layout): Use it.
8162 (tui_register_window): New function.
8163 * python/python.c (do_start_initialization): Call
8164 gdbpy_initialize_tui.
8165 (python_GdbMethods): Add "register_window_type" function.
8166 * python/python-internal.h (gdbpy_register_tui_window)
8167 (gdbpy_initialize_tui): Declare.
8168 * python/py-tui.c: New file.
8169 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8170
8171 2020-02-22 Tom Tromey <tom@tromey.com>
8172
8173 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8174
8175 2020-02-22 Tom Tromey <tom@tromey.com>
8176
8177 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8178 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8179 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8180 (tui_set_win_focus_to): Move from tui-win.c.
8181
8182 2020-02-22 Tom Tromey <tom@tromey.com>
8183
8184 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8185 functions.
8186 (known_window_types): New global.
8187 (tui_get_window_by_name): Reimplement.
8188 (initialize_known_windows): New function.
8189 (validate_window_name): Rewrite.
8190 (_initialize_tui_layout): Call initialize_known_windows.
8191
8192 2020-02-22 Tom Tromey <tom@tromey.com>
8193
8194 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8195 Remove constants.
8196 * tui/tui-winsource.h (struct tui_source_window_base)
8197 <tui_source_window_base>: Remove parameter.
8198 * tui/tui-winsource.c
8199 (tui_source_window_base::tui_source_window_base): Remove
8200 parameter.
8201 (tui_source_window_base::refill): Update.
8202 * tui/tui-stack.h (struct tui_locator_window)
8203 <tui_locator_window>: Update.
8204 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8205 Default the constructor.
8206 * tui/tui-regs.h (struct tui_data_item_window)
8207 <tui_data_item_window>: Default the constructor.
8208 (struct tui_data_window) <tui_data_window>: Likewise.
8209 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8210 Default the constructor.
8211 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8212 Default the constructor.
8213 <type>: Remove.
8214 (struct tui_win_info) <tui_win_info>: Default the constructor.
8215 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8216 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8217 Default the constructor.
8218
8219 2020-02-22 Tom Tromey <tom@tromey.com>
8220
8221 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8222 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8223 * tui/tui-win.c (tui_resize_all): Don't call
8224 tui_delete_invisible_windows.
8225 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8226 done.
8227 (tui_set_layout): Update.
8228 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8229 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8230 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8231
8232 2020-02-22 Tom Tromey <tom@tromey.com>
8233
8234 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8235 correctly.
8236
8237 2020-02-22 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8240
8241 2020-02-22 Tom Tromey <tom@tromey.com>
8242
8243 * tui/tui-winsource.h (struct tui_source_window_iterator)
8244 <inner_iterator>: New etytypedef.
8245 <tui_source_window_iterator>: Take "end" parameter.
8246 <tui_source_window_iterator>: Take iterator.
8247 <operator*, advance>: Update.
8248 <m_iter>: Change type.
8249 <m_end>: New field.
8250 (struct tui_source_windows) <begin, end>: Update.
8251 * tui/tui-layout.c (tui_windows): New global.
8252 (tui_apply_current_layout): Clear tui_windows.
8253 (tui_layout_window::apply): Update tui_windows.
8254 * tui/tui-data.h (tui_windows): Declare.
8255 (all_tui_windows): Now inline function.
8256 (class tui_window_iterator, struct all_tui_windows): Remove.
8257
8258 2020-02-22 Tom Tromey <tom@tromey.com>
8259
8260 PR tui/17850:
8261 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8262 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8263 "height" argument.
8264 (class tui_layout_window) <get_sizes>: Likewise.
8265 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8266 argument.
8267 <get_sizes>: Add "height" argument.
8268 <m_vertical>: New field.
8269 * tui/tui-layout.c (tui_layout_split::clone): Update.
8270 (tui_layout_split::get_sizes): Add "height" argument.
8271 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8272 (tui_new_layout_command): Parse "-horizontal".
8273 (_initialize_tui_layout): Update help string.
8274 (tui_layout_split::specification): Add "-horizontal" when needed.
8275 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8276 argument.
8277 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8278 New methods.
8279
8280 2020-02-22 Tom Tromey <tom@tromey.com>
8281
8282 * tui/tui-layout.h (enum tui_adjust_result): New.
8283 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8284 (class tui_layout_window) <adjust_size>: Return
8285 tui_adjust_result. Rewrite.
8286 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8287 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8288
8289 2020-02-22 Tom Tromey <tom@tromey.com>
8290
8291 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8292 parameter and return types.
8293 (class tui_layout_base) <specification>: Add "depth".
8294 (class tui_layout_window) <specification>: Add "depth".
8295 (class tui_layout_split) <specification>: Add "depth".
8296 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8297 and return types.
8298 (tui_new_layout_command): Parse sub-layouts.
8299 (_initialize_tui_layout): Update help string.
8300 (tui_layout_window::specification): Add "depth".
8301 (add_layout_command): Update.
8302
8303 2020-02-22 Tom Tromey <tom@tromey.com>
8304
8305 * NEWS: Add "tui new-layout" item.
8306 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8307 Add new-layout command to help text.
8308 (validate_window_name): New function.
8309 (tui_new_layout_command): New function.
8310 (_initialize_tui_layout): Register "new-layout".
8311 (tui_layout_window::specification): New method.
8312 (tui_layout_window::specification): New method.
8313 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8314 method.
8315 (class tui_layout_window) <specification>: New method.
8316 (class tui_layout_split) <specification>: New method.
8317
8318 2020-02-22 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8321 * tui/tui-win.c (window_name_completer): Update comment.
8322 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8323 Declare method.
8324 (class tui_layout_window) <replace_window>: Likewise.
8325 (class tui_layout_split) <replace_window>: Likewise.
8326 (tui_set_layout): Don't declare.
8327 (tui_set_initial_layout): Declare function.
8328 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8329 (asm_regs_layout): New globals.
8330 (tui_current_layout, show_layout): Remove.
8331 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8332 (find_layout, tui_apply_layout): New function.
8333 (layout_completer): Remove.
8334 (tui_next_layout): Reimplement.
8335 (tui_next_layout_command): New function.
8336 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8337 (tui_regs_layout): Reimplement.
8338 (tui_regs_layout_command): New function.
8339 (extract_display_start_addr): Rewrite.
8340 (next_layout, prev_layout): Remove.
8341 (tui_layout_window::replace_window): New method.
8342 (tui_layout_split::replace_window): New method.
8343 (destroy_layout): New function.
8344 (layout_list): New global.
8345 (add_layout_command): New function.
8346 (initialize_layouts): Update.
8347 (tui_layout_command): New function.
8348 (_initialize_tui_layout): Install "layout" commands.
8349 * tui/tui-data.h (enum tui_layout_type): Remove.
8350 (tui_current_layout): Don't declare.
8351
8352 2020-02-22 Tom Tromey <tom@tromey.com>
8353
8354 * tui/tui-regs.c (tui_reg_layout): Remove.
8355 (tui_reg_command): Use tui_regs_layout.
8356 * tui/tui-layout.h (tui_reg_command): Declare.
8357 * tui/tui-layout.c (tui_reg_command): New function.
8358
8359 2020-02-22 Tom Tromey <tom@tromey.com>
8360
8361 * tui/tui.c (tui_rl_delete_other_windows): Call
8362 tui_remove_some_windows.
8363 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8364 Declare method.
8365 (class tui_layout_window) <remove_windows>: New method.
8366 (class tui_layout_split) <remove_windows>: Declare.
8367 (tui_remove_some_windows): Declare.
8368 * tui/tui-layout.c (tui_remove_some_windows): New function.
8369 (tui_layout_split::remove_windows): New method.
8370
8371 2020-02-22 Tom Tromey <tom@tromey.com>
8372
8373 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8374 * tui/tui-layout.h (tui_next_layout): Declare.
8375 * tui/tui-layout.c (tui_next_layout): New function.
8376
8377 2020-02-22 Tom Tromey <tom@tromey.com>
8378
8379 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8380 correct coordinates.
8381
8382 2020-02-22 Tom Tromey <tom@tromey.com>
8383
8384 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8385 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8386 DATA_WIN case.
8387
8388 2020-02-22 Tom Tromey <tom@tromey.com>
8389
8390 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8391 TUI_DISASM_WIN, not tui_win_list.
8392
8393 2020-02-22 Tom Tromey <tom@tromey.com>
8394
8395 * valprint.c (generic_val_print_enum_1)
8396 (val_print_type_code_flags): Style member names.
8397 * rust-lang.c (val_print_struct, rust_print_enum)
8398 (rust_print_struct_def, rust_internal_print_type): Style member
8399 names.
8400 * p-valprint.c (pascal_object_print_value_fields): Style member
8401 names. Only call fprintf_symbol_filtered for static members.
8402 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8403 * f-valprint.c (f_val_print): Style member names.
8404 * f-typeprint.c (f_type_print_base): Style member names.
8405 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8406 call fprintf_symbol_filtered for static members.
8407 (cp_print_class_member): Style member names.
8408 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8409 member names.
8410 * ada-valprint.c (ada_print_scalar): Style enum names.
8411 (ada_val_print_enum): Likewise.
8412 * ada-typeprint.c (print_enum_type): Style enum names.
8413
8414 2020-02-21 Tom Tromey <tom@tromey.com>
8415
8416 * psympriv.h (struct partial_symtab): Update comment.
8417
8418 2020-02-21 Tom Tromey <tromey@adacore.com>
8419
8420 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8421 type is CORE_ADDR.
8422
8423 2020-02-21 Tom de Vries <tdevries@suse.de>
8424
8425 PR gdb/25534
8426 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8427 if dependencies[i]->user != NULL.
8428
8429 2020-02-21 Ali Tamur <tamur@google.com>
8430
8431 * dwarf2/read.c (dwarf2_name): Add null check.
8432
8433 2020-02-20 Tom Tromey <tom@tromey.com>
8434
8435 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8436 ">=", in binary search.
8437 (dwarf2_find_containing_comp_unit): New overload.
8438 (run_test): New self-test.
8439 (_initialize_dwarf2_read): Register new test.
8440
8441 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8442
8443 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8444 * riscv-tdep.h: Likewise.
8445 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8446 rv32-only CSR.
8447 * features/riscv/64bit-csr.xml: Regenerated.
8448
8449 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8450 Tom Tromey <tom@tromey.com>
8451
8452 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8453 of 'fputc_unfiltered'.
8454 (putchar_unfiltered): Call 'fputc_unfiltered'.
8455 (fputc_unfiltered): Call 'fputs_unfiltered'.
8456
8457 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8458
8459 * config.in: Regenerate.
8460 * configure: Regenerate.
8461 * configure.ac: Add --with-python-libdir option.
8462 * main.c: Use WITH_PYTHON_LIBDIR.
8463
8464 2020-02-19 Tom Tromey <tom@tromey.com>
8465
8466 * symtab.c (general_symbol_info::compute_and_set_names): Use
8467 obstack_strndup. Simplify call to symbol_set_demangled_name.
8468
8469 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8470
8471 * dwarf2/read.c (allocate_signatured_type_table,
8472 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8473 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8474 Remove objfile parameter, update all callers.
8475
8476 2020-02-19 Doug Evans <dje@google.com>
8477
8478 PR rust/25535
8479 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8480 rust_enum_variant calculation.
8481
8482 2020-02-19 Tom Tromey <tromey@adacore.com>
8483
8484 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8485
8486 2020-02-19 Tom Tromey <tromey@adacore.com>
8487
8488 * ada-lang.c (cache_symbol): Use obstack_strdup.
8489
8490 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8491
8492 * configure: Regenerate.
8493
8494 2020-02-19 Tom Tromey <tromey@adacore.com>
8495
8496 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8497 NULL check.
8498
8499 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8500
8501 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8502
8503 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8506 if GDBSERVER is not defined.
8507 (riscv_tdesc_cache): Likewise, also store const target_desc.
8508 (STATIC_IN_GDB): Define.
8509 (riscv_create_target_description): Update declaration with
8510 STATIC_IN_GDB.
8511 (riscv_lookup_target_description): New function, only define if
8512 GDBSERVER is not defined.
8513 * arch/riscv.h (riscv_create_target_description): Declare only
8514 when GDBSERVER is defined.
8515 (riscv_lookup_target_description): New declaration when GDBSERVER
8516 is not defined.
8517 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8518 (riscv_linux_read_features): ...this, and return
8519 riscv_gdbarch_features instead of target_desc.
8520 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8521 (riscv_linux_read_description): Rename to...
8522 (riscv_linux_read_features): ...this.
8523 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8524 Update to use riscv_gdbarch_features and
8525 riscv_lookup_target_description.
8526 * riscv-tdep.c (riscv_find_default_target_description): Use
8527 riscv_lookup_target_description instead of
8528 riscv_create_target_description.
8529
8530 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8531
8532 * valprint.c (generic_val_print_enum_1): When printing a flag
8533 enum with value 0 and there is no enumerator with value 0, print
8534 just "0" instead of "(unknown: 0x0)".
8535
8536 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * valprint.c (generic_val_print_enum_1): Print unknown part of
8539 flag enum in hex.
8540
8541 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8544 flag enums to contain duplicate enumerators.
8545 * valprint.c (generic_val_print_enum_1): Update comment.
8546
8547 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8548
8549 * dwarf2/read.c: Include "count-one-bits.h".
8550 (update_enumeration_type_from_children): If an enumerator has
8551 multiple bits set, don't treat the enumeration as a "flag enum".
8552 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8553 of flag enums have 0 or 1 bit set.
8554
8555 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8556
8557 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8558 conversion.
8559 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8560 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8561 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8562 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8563 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8564
8565 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8568
8569 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8570
8571 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8572 displaced_step_closure_up.
8573 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8574 (struct displaced_step_closure_up):
8575 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8576 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8577 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8578 Likewise.
8579 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8580 * gdbarch.c, gdbarch.h: Re-generate.
8581 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8582 displaced_step_closure_up.
8583 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8584 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8585 * infrun.h (displaced_step_closure_up): New type alias.
8586 (struct displaced_step_inferior_state) <step_closure>: Change
8587 type to displaced_step_closure_up.
8588 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8589 displaced_step_closure_up.
8590 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8591
8592 2020-02-14 Tom Tromey <tom@tromey.com>
8593
8594 * minidebug.c (gnu_debug_key): New global.
8595 (find_separate_debug_file_in_section): Use it.
8596
8597 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8598
8599 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8600 std::unique_ptr.
8601 * gdbarch.c: Re-generate.
8602 * gdbarch.h: Re-generate.
8603 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8604 change.
8605 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8606 type to std::unique_ptr.
8607 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8608 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8609 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8610 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8611 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8612 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8613 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8614 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8615 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8616
8617 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8618
8619 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8620 std::unique_ptr.
8621 (displaced_step_clear): Rename to...
8622 (displaced_step_reset): ... this. Just call displaced->reset ().
8623 (displaced_step_clear_cleanup): Rename to...
8624 (displaced_step_reset_cleanup): ... this.
8625 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8626 (displaced_step_fixup): Likewise.
8627 (resume_1): Likewise.
8628 (handle_inferior_event): Restore child's memory before calling
8629 displaced_step_fixup on the parent.
8630 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8631 to std::unique_ptr.
8632 <step_closure>: Change type to std::unique_ptr.
8633
8634 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8635
8636 * arm-tdep.c: Include count-one-bits.h.
8637 (cleanup_block_store_pc): Use count_one_bits.
8638 (cleanup_block_load_pc): Use count_one_bits.
8639 (arm_copy_block_xfer): Use count_one_bits.
8640 (thumb2_copy_block_xfer): Use count_one_bits.
8641 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8642 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8643 (thumb_get_next_pcs_raw): Use count_one_bits.
8644 (arm_get_next_pcs_raw): Use count_one_bits_l.
8645 * arch/arm.c (bitcount): Remove.
8646 * arch/arm.h (bitcount): Remove.
8647
8648 2020-02-14 Tom Tromey <tromey@adacore.com>
8649
8650 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8651 Update.
8652 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8653 * dwarf2/loc.c (call_site_find_chain_1): Return
8654 unique_xmalloc_ptr.
8655 (call_site_find_chain): Likewise.
8656
8657 2020-02-14 Richard Biener <rguenther@suse.de>
8658
8659 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8660 on expression with division operators.
8661
8662 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8663
8664 * MAINTAINERS (Write After Approval): Adding myself.
8665
8666 2020-02-12 Tom Tromey <tom@tromey.com>
8667
8668 * event-loop.c (event_data, gdb_event, event_handler_func):
8669 Remove.
8670
8671 2020-02-12 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8674 (dwarf2_frame_objfile_data): Add comment.
8675 (find_comp_unit, set_comp_unit): New functions.
8676 (dwarf2_frame_find_fde): Use find_comp_unit.
8677 (dwarf2_build_frame_info): Use set_comp_unit.
8678
8679 2020-02-12 Tom Tromey <tom@tromey.com>
8680
8681 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8682 (comp_unit): Don't initialize objfile.
8683 (execute_cfa_program): Add text_offset parameter.
8684 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8685 (dwarf2_frame_cache): Update.
8686 (dwarf2_build_frame_info): Don't set "objfile" member.
8687
8688 2020-02-12 Tom Tromey <tom@tromey.com>
8689
8690 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8691 (decode_frame_entry): Likewise.
8692 (dwarf2_build_frame_info): Update.
8693
8694 2020-02-12 Tom Tromey <tom@tromey.com>
8695
8696 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8697 (decode_frame_entry_1): Use the comp_unit obstack.
8698
8699 2020-02-12 Tom Tromey <tom@tromey.com>
8700
8701 * dwarf2/frame.c (struct comp_unit): Add initializers and
8702 constructor.
8703 (dwarf2_frame_objfile_data): Store a comp_unit.
8704 (dwarf2_frame_find_fde): Update.
8705 (dwarf2_build_frame_info): Use "new".
8706
8707 2020-02-12 Tom Tromey <tom@tromey.com>
8708
8709 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8710 (dwarf2_fde_table): Typedef for std::vector.
8711 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8712 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8713 (decode_frame_entry): Update.
8714 (dwarf2_build_frame_info): Use "new".
8715
8716 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8717
8718 * arm-tdep.c (arm_gdbarch_init): Update.
8719 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8720 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8721 have_neon, is_m>: Change to bool.
8722
8723 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8724
8725 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8726
8727 2020-02-12 Tom Tromey <tom@tromey.com>
8728
8729 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8730
8731 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8732
8733 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8734 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8735
8736 2020-02-11 Tom Tromey <tom@tromey.com>
8737
8738 * psymtab.h: Update comment.
8739
8740 2020-02-11 Tom Tromey <tom@tromey.com>
8741
8742 * gdb_obstack.h (struct auto_obstack): Use
8743 DISABLE_COPY_AND_ASSIGN.
8744
8745 2020-02-11 Tom Tromey <tom@tromey.com>
8746
8747 * dwarf2/frame.h (struct objfile): Don't forward declare.
8748
8749 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8750
8751 * cris-tdep.c (cris_supply_gregset): Change signature to match
8752 what struct regset expects.
8753 (cris_regset): New struct.
8754 (fetch_core_registers): Remove.
8755 (cris_iterate_over_regset_sections): New function.
8756 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8757 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8758
8759 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8760
8761 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8762 registers.
8763
8764 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8765
8766 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8767
8768 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * configure: Re-generate.
8771
8772 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * configure: Re-generate.
8775
8776 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8777
8778 * acinclude: Update warning.m4 path.
8779 * warning.m4: Move to gdbsupport.
8780
8781 2020-02-11 Tom Tromey <tromey@adacore.com>
8782
8783 * remote.c (remote_console_output): Update.
8784 * printcmd.c (printf_command): Update.
8785 * event-loop.c (gdb_wait_for_event): Update.
8786 * linux-nat.c (sigchld_handler): Update.
8787 * remote-sim.c (gdb_os_write_stdout): Update.
8788 (gdb_os_flush_stdout): Update.
8789 (gdb_os_flush_stderr): Update.
8790 (gdb_os_write_stderr): Update.
8791 * exceptions.c (print_exception): Update.
8792 * remote-fileio.c (remote_fileio_func_read): Update.
8793 (remote_fileio_func_write): Update.
8794 * tui/tui.c (tui_enable): Update.
8795 * tui/tui-interp.c (tui_interp::init): Update.
8796 * utils.c (init_page_info): Update.
8797 (putchar_unfiltered, fputc_unfiltered): Update.
8798 (gdb_flush): Update.
8799 (emit_style_escape): Update.
8800 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8801 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8802 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8803 (stderr_file::write): Update.
8804 (stderr_file::puts): Update.
8805 * ui-file.h (ui_file_isatty, ui_file_write)
8806 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8807 (ui_file_puts): Don't declare.
8808
8809 2020-02-10 Tom de Vries <tdevries@suse.de>
8810
8811 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8812 sentinel to char *.
8813
8814 2020-02-09 Tom de Vries <tdevries@suse.de>
8815
8816 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8817 filename if it matches "<artificial>".
8818
8819 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8820
8821 * windows-tdep.c (struct enum_value_name): New struct.
8822 (create_enum): New function.
8823 (windows_get_siginfo_type): Create and use enum types.
8824
8825 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8826
8827 * NEWS: Mention $_siginfo support for Windows.
8828 * windows-nat.c (handle_exception): Set siginfo_er.
8829 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8830 (windows_xfer_siginfo): New function.
8831 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8832 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8833 (init_windows_gdbarch_data): New function.
8834 (get_windows_gdbarch_data): New function.
8835 (windows_get_siginfo_type): New function.
8836 (windows_init_abi): Register windows_get_siginfo_type.
8837 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8838
8839 2020-02-08 Tom Tromey <tom@tromey.com>
8840
8841 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8842 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8843 <keep>: Declare method.
8844 <m_keep>: Remove member.
8845 <~cutu_reader>: Remove.
8846 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8847 (cutu_reader::cutu_reader): Update.
8848 (cutu_reader::keep): Rename from ~cutu_reader.
8849 (process_psymtab_comp_unit, build_type_psymtabs_1)
8850 (process_skeletonless_type_unit, load_partial_comp_unit)
8851 (load_full_comp_unit, dwarf2_read_addr_index)
8852 (read_signatured_type): Update.
8853
8854 2020-02-08 Tom Tromey <tom@tromey.com>
8855
8856 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8857 "want_partial_unit" parameter.
8858 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8859 Inline check for DW_TAG_partial_unit.
8860 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8861
8862 2020-02-08 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8865 read.c.
8866 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8867 read.c.
8868
8869 2020-02-08 Tom Tromey <tom@tromey.com>
8870
8871 * dwarf2/read.c (read_address): Move to comp-unit.c.
8872 (dwarf2_rnglists_process, dwarf2_ranges_process)
8873 (read_attribute_value, dwarf_decode_lines_1)
8874 (var_decode_location, decode_locdesc): Update.
8875 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8876 read.c. Remove "cu" parameter.
8877 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8878 method.
8879
8880 2020-02-08 Tom Tromey <tom@tromey.com>
8881
8882 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8883 (read_indirect_line_string): Update.
8884 * dwarf2/comp-unit.c (read_offset): Remove.
8885 (read_comp_unit_head): Update.
8886 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8887 method.
8888 (read_offset): Don't declare.
8889
8890 2020-02-08 Tom Tromey <tom@tromey.com>
8891
8892 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8893 * dwarf2/read.c (struct comp_unit_head): Move to
8894 dwarf2/comp-unit.h.
8895 (enum class rcuh_kind): Move to comp-unit.h.
8896 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8897 (read_comp_unit_head, error_check_comp_unit_head)
8898 (read_and_check_comp_unit_head): Move to comp-unit.c.
8899 (read_offset, dwarf_unit_type_name): Likewise.
8900 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8901 (cutu_reader::cutu_reader, read_call_site_scope)
8902 (find_partial_die, follow_die_offset): Update.
8903 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8904
8905 2020-02-08 Tom Tromey <tom@tromey.com>
8906
8907 * dwarf2/read.c (read_offset_1): Move to leb.c.
8908 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8909 (dwarf_decode_macro_bytes): Update.
8910 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8911 * dwarf2/leb.h (read_offset): Declare.
8912
8913 2020-02-08 Tom Tromey <tom@tromey.com>
8914
8915 * dwarf2/read.c (dwarf2_section_size): Remove.
8916 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8917 Update.
8918 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8919
8920 2020-02-08 Tom Tromey <tom@tromey.com>
8921
8922 * dwarf2/read.c (read_initial_length): Move to leb.c.
8923 * dwarf2/leb.h (read_initial_length): Declare.
8924 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8925 handle_nonstd parameter.
8926 * dwarf2/frame.c (read_initial_length): Remove.
8927 (decode_frame_entry_1): Update.
8928
8929 2020-02-08 Tom Tromey <tom@tromey.com>
8930
8931 * dwarf2/loc.c (dwarf2_find_location_expression)
8932 (dwarf_evaluate_loc_desc::get_tls_address)
8933 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8934 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8935 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8936 (dwarf2_compile_property_to_c)
8937 (dwarf2_loc_desc_get_symbol_read_needs)
8938 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8939 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8940 (loclist_describe_location, loclist_tracepoint_var_ref)
8941 (loclist_generate_c_location): Update.
8942 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8943 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8944 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8945 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8946 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8947 (dwarf2_per_cu_data::addr_size)
8948 (dwarf2_per_cu_data::ref_addr_size)
8949 (dwarf2_per_cu_data::text_offset)
8950 (dwarf2_per_cu_data::addr_type): Now methods.
8951 (per_cu_header_read_in): Make per_cu "const".
8952 (dwarf2_version): Remove.
8953 (dwarf2_per_cu_data::int_type): Now a method.
8954 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8955 (set_die_type, read_array_type, read_subrange_index_type)
8956 (read_tag_string_type, read_subrange_type): Update.
8957 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8958 offset_size, ref_addr_size, text_offset, addr_type, version,
8959 objfile, int_type, addr_sized_int_type>: Declare methods.
8960
8961 2020-02-08 Tom Tromey <tom@tromey.com>
8962
8963 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8964 Move earlier.
8965
8966 2020-02-08 Tom Tromey <tom@tromey.com>
8967
8968 * dwarf2/read.h (dwarf_line_debug): Declare.
8969 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8970 * dwarf2/read.c: Move line_header code to new files.
8971 (dwarf_line_debug): No longer static.
8972 * dwarf2/line-header.c: New file.
8973 * dwarf2/line-header.h: New file.
8974
8975 2020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.c (struct line_header) <file_full_name,
8978 file_file_name>: Return unique_xmalloc_ptr.
8979 (line_header::file_file_name): Update.
8980 (line_header::file_full_name): Update.
8981 (dw2_get_file_names_reader): Update.
8982 (macro_start_file): Update.
8983
8984 2020-02-08 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/read.c (struct line_header) <file_full_name,
8987 file_file_name>: Declare methods.
8988 (dw2_get_file_names_reader): Update.
8989 (file_file_name): Now a method.
8990 (file_full_name): Likewise.
8991 (macro_start_file): Update.
8992
8993 2020-02-08 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2/read.c (dwarf_always_disassemble)
8996 (show_dwarf_always_disassemble): Move to loc.c.
8997 (_initialize_dwarf2_read): Move "always-disassemble" registration
8998 to loc.c.
8999 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9000 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9001 static.
9002 (show_dwarf_always_disassemble): Move from read.c.
9003 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9004
9005 2020-02-08 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9008 (create_quick_file_names_table): Return htab_up.
9009 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9010 Update.
9011 * dwarf2/read.h (struct dwarf2_per_objfile)
9012 <quick_file_names_table>: Now htab_up.
9013
9014 2020-02-08 Tom Tromey <tom@tromey.com>
9015
9016 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9017
9018 2020-02-08 Tom Tromey <tom@tromey.com>
9019
9020 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9021 Rewrite.
9022 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9023 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9024 (abbrev_table::abbrev_table): No longer inline.
9025 (ABBREV_HASH_SIZE): Remove.
9026 (abbrev_table::m_abbrevs): Now an htab_up.
9027
9028 2020-02-08 Tom Tromey <tom@tromey.com>
9029
9030 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9031 (cutu_reader): Update.
9032 (build_type_psymtabs_1): Update.
9033 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9034 (abbrev_table::alloc_abbrev): Update.
9035 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9036 (abbrev_table::read): New static method, renamed from
9037 abbrev_table_read_table.
9038 (abbrev_table::alloc_abbrev)
9039 (abbrev_table::add_abbrev): Now private.
9040 (abbrev_table::abbrev_table): Now private.
9041 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9042
9043 2020-02-08 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9046 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9047 htab_up.
9048
9049 2020-02-08 Tom Tromey <tom@tromey.com>
9050
9051 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9052 htab_up.
9053 (lookup_dwo_unit_in_dwp): Update.
9054 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9055 on obstack.
9056
9057 2020-02-08 Tom Tromey <tom@tromey.com>
9058
9059 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9060 obstack.
9061
9062 2020-02-08 Tom Tromey <tom@tromey.com>
9063
9064 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9065 line_header_hash.
9066 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9067 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9068 Change type to htab_up.
9069
9070 2020-02-08 Tom Tromey <tom@tromey.com>
9071
9072 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9073 htab_up. Don't allocate on obstack.
9074 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9075 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9076 Change type to htab_up.
9077
9078 2020-02-08 Tom Tromey <tom@tromey.com>
9079
9080 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9081 Change type to htab_up.
9082 * dwarf2/read.c (create_signatured_type_table_from_index)
9083 (create_signatured_type_table_from_debug_names)
9084 (create_all_type_units, add_type_unit)
9085 (lookup_dwo_signatured_type, lookup_signatured_type)
9086 (process_skeletonless_type_unit): Update.
9087 (create_debug_type_hash_table, create_debug_types_hash_table):
9088 Change type of types_htab.
9089 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9090 htab_up. Don't allocate on obstack.
9091 (create_cus_hash_table): Change type of cus_htab parameter.
9092 (struct dwo_file) <cus, tus>: Now htab_up.
9093 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9094 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9095 (queue_and_load_all_dwo_tus): Update.
9096 * dwarf2/index-write.c (write_gdbindex): Update.
9097 (write_debug_names): Update.
9098
9099 2020-02-08 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9102 dwarf2/read.c. Remove "next" member. Add constructor ntad
9103 destructor.
9104 (struct dwarf2_per_objfile) <queue>: New member.
9105 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9106 dwarf2/read.h.
9107 (dwarf2_queue, dwarf2_queue_tail): Remove.
9108 (class dwarf2_queue_guard): Add parameter to constructor. Use
9109 DISABLE_COPY_AND_ASSIGN.
9110 <m_per_objfile>: New member.
9111 <~dwarf2_queue_guard>: Rewrite.
9112 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9113 Update.
9114 (~dwarf2_queue_item): New.
9115
9116 2020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/read.c (struct die_info) <has_children>: New member.
9119 (dw2_get_file_names_reader): Remove has_children.
9120 (dw2_get_file_names): Update.
9121 (read_cutu_die_from_dwo): Remove has_children.
9122 (cutu_reader::init_tu_and_read_dwo_dies)
9123 (cutu_reader::cutu_reader): Update.
9124 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9125 Remove has_children.
9126 (build_type_psymtabs_1, process_skeletonless_type_unit)
9127 (load_partial_comp_unit, load_full_comp_unit): Update.
9128 (create_dwo_cu_reader): Remove has_children.
9129 (create_cus_hash_table, read_die_and_children): Update.
9130 (read_full_die_1,read_full_die): Remove has_children.
9131 (read_signatured_type): Update.
9132 (class cutu_reader) <has_children>: Remove.
9133
9134 2020-02-08 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2/expr.c: Rename from dwarf2expr.c.
9137 * dwarf2/expr.h: Rename from dwarf2expr.h.
9138 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9139 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9140 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9141 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9142 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9143 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9144 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9145 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9146 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9147 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9148 * dwarf2/loc.c: Rename from dwarf2loc.c.
9149 * dwarf2/loc.h: Rename from dwarf2loc.h.
9150 * dwarf2/read.c: Rename from dwarf2read.c.
9151 * dwarf2/read.h: Rename from dwarf2read.h.
9152 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9153 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9154 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9155 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9156 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9157 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9158 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9159 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9160 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9161 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9162 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9163 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9164 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9165 Update.
9166 * Makefile.in (COMMON_SFILES): Update.
9167 (HFILES_NO_SRCDIR): Update.
9168
9169 2020-02-08 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9172 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9173
9174 2020-02-08 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2read.h (struct die_info): Don't declare.
9177
9178 2020-02-08 Tom Tromey <tom@tromey.com>
9179
9180 * dwarf2read.h (die_info_ptr): Remove typedef.
9181
9182 2020-02-08 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2read.c (read_call_site_scope)
9185 (handle_data_member_location, dwarf2_add_member_fn)
9186 (mark_common_block_symbol_computed, read_common_block)
9187 (attr_to_dynamic_prop, partial_die_info::read)
9188 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9189 (dwarf2_symbol_mark_computed, set_die_type): Update.
9190 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9191 method.
9192 (attr_form_is_block): Don't declare.
9193 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9194
9195 2020-02-08 Tom Tromey <tom@tromey.com>
9196
9197 * dwarf2read.c (dwarf2_find_base_address, )
9198 (read_call_site_scope, rust_containing_type)
9199 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9200 (handle_data_member_location, dwarf2_add_member_fn)
9201 (get_alignment, read_structure_type, process_structure_scope)
9202 (mark_common_block_symbol_computed, read_common_block)
9203 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9204 (partial_die_info::read, read_attribute_value, new_symbol)
9205 (lookup_die_type, dwarf2_get_ref_die_offset)
9206 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9207 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9208 (dwarf2_symbol_mark_computed): Update.
9209 * dwarf2/attribute.h (struct attribute) <value_as_address,
9210 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9211 methods.
9212 (value_as_address, attr_form_is_section_offset)
9213 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9214 * dwarf2/attribute.c (attribute::value_as_address)
9215 (attribute::form_is_section_offset, attribute::form_is_constant)
9216 (attribute::form_is_ref): Now methods.
9217
9218 2020-02-08 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2read.c (struct attribute, DW_STRING)
9221 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9222 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9223 (attr_form_is_block, attr_form_is_section_offset)
9224 (attr_form_is_constant, attr_form_is_ref): Move.
9225 * dwarf2/attribute.h: New file.
9226 * dwarf2/attribute.c: New file, from dwarf2read.c.
9227 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9228
9229 2020-02-08 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9232 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9233 Move.
9234 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9235 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9236 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9237 abbrev.c.
9238 * dwarf2/abbrev.h: New file.
9239 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9240 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9241
9242 2020-02-08 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9245 (dwarf2_section_size, dwarf2_get_section_info)
9246 (create_signatured_type_table_from_debug_names)
9247 (create_addrmap_from_aranges, read_debug_names_from_section)
9248 (get_gdb_index_contents_from_section, read_comp_unit_head)
9249 (error_check_comp_unit_head, read_abbrev_offset)
9250 (create_debug_type_hash_table, init_cu_die_reader)
9251 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9252 (read_comp_units_from_section, create_cus_hash_table)
9253 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9254 (create_dwp_v2_section, dwarf2_rnglists_process)
9255 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9256 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9257 (read_indirect_string_from_dwz, read_addr_index_1)
9258 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9259 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9260 (fill_in_loclist_baton): Update.
9261 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9262 get_containing_section, get_bfd_owner, get_bfd_section,
9263 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9264 (dwarf2_read_section, get_section_name, get_section_file_name)
9265 (get_containing_section, get_section_bfd_owner)
9266 (get_section_bfd_section, get_section_name, get_section_file_name)
9267 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9268 declare.
9269 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9270 (dwarf2_section_info::get_bfd_owner)
9271 (dwarf2_section_info::get_bfd_section)
9272 (dwarf2_section_info::get_name)
9273 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9274 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9275 (dwarf2_section_info::read): Now methods.
9276 * dwarf-index-write.c (class debug_names): Update.
9277
9278 2020-02-08 Tom Tromey <tom@tromey.com>
9279
9280 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9281 Move to dwarf2/section.h.
9282 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9283 (get_section_bfd_section, get_section_name)
9284 (get_section_file_name, get_section_id, get_section_flags)
9285 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9286 dwarf2/section.c.
9287 * dwarf2/section.h: New file.
9288 * dwarf2/section.c: New file, from dwarf2read.c.
9289 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9290
9291 2020-02-08 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9294 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9295 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9296 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9297 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9298 * dwarf2/leb.h: New file, from dwarf2read.c.
9299 * dwarf2/leb.c: New file, from dwarf2read.c.
9300 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9301 Remove.
9302 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9303 (COMMON_SFILES): Add dwarf2/leb.c.
9304
9305 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9306
9307 GDB 9.1 released.
9308
9309 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9310
9311 PR gdb/25190:
9312 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9313 * gdb/remote.c (remote_console_output): Update.
9314 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9315 (ui_file_puts): ...this.
9316 * gdb/ui-file.h (ui_file_puts): Add declaration.
9317 * gdb/utils.c (emit_style_escape): Update.
9318 (flush_wrap_buffer): Update.
9319 (fputs_maybe_filtered): Update.
9320 (fputs_unfiltered): Add function.
9321
9322 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9323
9324 * gdb/event-loop.c (gdb_wait_for_event): Update.
9325 * gdb/printcmd.c (printf_command): Update.
9326 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9327 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9328 (gdb_os_flush_stderr): Update.
9329 * gdb/remote.c (remote_console_output): Update.
9330 * gdb/ui-file.c (gdb_flush): Rename to...
9331 (ui_file_flush): ...this.
9332 (stderr_file::write): Update.
9333 (stderr_file::puts): Update.
9334 * gdb/ui-file.h (gdb_flush): Rename to...
9335 (ui_file_flush): ...this.
9336 * gdb/utils.c (gdb_flush): Add function.
9337 * gdb/utils.h (gdb_flush): Add declaration.
9338
9339 2020-02-07 Tom Tromey <tromey@adacore.com>
9340
9341 PR breakpoints/24915:
9342 * source.c (find_and_open_source): Do not check basenames_may_differ.
9343
9344 2020-02-07 Tom Tromey <tom@tromey.com>
9345
9346 * README: Update gdbserver documentation.
9347 * gdbserver: Move to top level.
9348 * configure.tgt (build_gdbserver): Remove.
9349 * configure.ac: Remove --enable-gdbserver.
9350 * configure: Rebuild.
9351 * Makefile.in (distclean): Don't mention gdbserver.
9352
9353 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9354
9355 * source-cache.c (source_cache::ensure): Surround
9356 get_plain_source_lines with a try/catch.
9357 (source_cache::get_line_charpos): Get rid of try/catch
9358 and only check for the return value of "ensure".
9359 * tui/tui-source.c (tui_source_window::set_contents):
9360 Simplify "nlines" calculation.
9361
9362 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9363
9364 * MAINTAINERS (Write After Approval): Add myself.
9365
9366 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9367
9368 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9369 function call.
9370
9371 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9372
9373 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9374
9375 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9376
9377 * nat/riscv-linux-tdesc.h: New file.
9378 * nat/riscv-linux-tdesc.c: New file, taking code from...
9379 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9380 ... here.
9381 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9382 NATDEPFILES.
9383
9384 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9385
9386 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9387 we don't set the fake simulator ptid to the null_ptid.
9388
9389 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9390
9391 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9392 * gdbthread.h (class thread_info) <resumed>: Likewise.
9393 * infrun.c (resume_1): Likewise.
9394 (proceed): Likewise.
9395 (infrun_thread_stop_requested): Likewise.
9396 (stop_all_threads): Likewise.
9397 (handle_inferior_event): Likewise.
9398 (restart_threads): Likewise.
9399 (finish_step_over): Likewise.
9400 (keep_going_stepped_thread): Likewise.
9401 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9402 (linux_handle_extended_wait): Likewise.
9403 * record-btrace.c (get_thread_current_frame_id): Likewise.
9404 * record-full.c (record_full_wait_1): Likewise.
9405 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9406 * target.c (target_resume): Likewise.
9407 * thread.c (set_running_thread): Likewise.
9408
9409 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9410
9411 * f-valprint.c (f77_print_array_1): Changed datatype of index
9412 variable to LONGEST from int to enable it to contain bound
9413 values correctly.
9414
9415 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9416
9417 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9418 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9419 offsets according to FLEN determined.
9420 (riscv_linux_nat_target::read_description): Determine FLEN
9421 dynamically.
9422 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9423 according to FLEN determined.
9424 (riscv_linux_nat_target::store_registers): Likewise.
9425
9426 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9427
9428 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9429 when reg->group is empty and reggroup is not.
9430
9431 2020-01-31 Tom Tromey <tromey@adacore.com>
9432
9433 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9434 Call beneath target's mourn_inferior after unpushing.
9435
9436 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9437
9438 PR tui/9765
9439 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9440 have enough lines to fill the screen, still return the lowest
9441 address we found.
9442
9443 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9444
9445 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9446 '-', '<', and '>' commands.
9447
9448 2020-01-29 Pedro Alves <palves@redhat.com>
9449 Sergio Durigan Junior <sergiodj@redhat.com>
9450
9451 * infcmd.c (construct_inferior_arguments): Assert that
9452 'argc' is greater than 0.
9453
9454 2020-01-29 Luis Machado <luis.machado@linaro.org>
9455
9456 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9457 (BRK_INSN_MASK): Define to 0xd4200000.
9458 (aarch64_program_breakpoint_here_p): New function.
9459 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9460 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9461 breakpoint.c.
9462 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9463 breakpoint.h
9464 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9465 call gdbarch_program_breakpoint_here_p.
9466 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9467 default_program_breakpoint_here_p, changed return type to bool and
9468 simplified.
9469 * breakpoint.h (program_breakpoint_here): Moved prototype to
9470 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9471 return type to bool.
9472 * gdbarch.c: Regenerate.
9473 * gdbarch.h: Regenerate.
9474 * gdbarch.sh (program_breakpoint_here_p): New method.
9475 * infrun.c (handle_signal_stop): Call
9476 gdbarch_program_breakpoint_here_p.
9477
9478 2020-01-26 Tom Tromey <tom@tromey.com>
9479
9480 * ctfread.c (struct ctf_fp_info): Reindent.
9481 (_initialize_ctfread): Remove.
9482
9483 2020-01-26 Tom Tromey <tom@tromey.com>
9484
9485 * psymtab.c (partial_map_expand_apply)
9486 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9487 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9488 (psym_print_stats, psym_expand_symtabs_for_function)
9489 (psym_map_symbol_filenames, psym_map_matching_symbols)
9490 (psym_expand_symtabs_matching)
9491 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9492 (maintenance_check_psymtabs): Use new methods.
9493 * psympriv.h (struct partial_symtab) <readin_p,
9494 get_compunit_symtab>: New methods.
9495 <readin, compunit_symtab>: Remove members.
9496 (struct standard_psymtab): New.
9497 (struct legacy_psymtab): Derive from standard_psymtab.
9498 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9499 standard_psymtab.
9500 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9501
9502 2020-01-26 Tom Tromey <tom@tromey.com>
9503
9504 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9505 read_dependencies. Add assert.
9506 * psymtab.c (partial_symtab::read_dependencies): New method.
9507 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9508 method.
9509 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9510 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9511 read_dependencies.
9512 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9513 Add assert.
9514
9515 2020-01-26 Tom Tromey <tom@tromey.com>
9516
9517 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9518 Call expand_psymtab.
9519 (xcoff_read_symtab): Call expand_psymtab.
9520 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9521 legacy_expand_psymtab.
9522 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9523 method.
9524 (struct legacy_psymtab) <expand_psymtab>: Implement.
9525 <legacy_expand_psymtab>: New member.
9526 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9527 (parse_partial_symbols): Set legacy_expand_psymtab.
9528 (psymtab_to_symtab_1): Change argument order. Call
9529 expand_psymtab.
9530 (new_psymtab): Set legacy_expand_psymtab.
9531 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9532 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9533 expand_psymtab.
9534 (dwarf2_psymtab::expand_psymtab): Rename from
9535 psymtab_to_symtab_1. Call expand_psymtab.
9536 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9537 (dbx_end_psymtab): Likewise.
9538 (dbx_psymtab_to_symtab_1): Change argument order. Call
9539 expand_psymtab.
9540 (dbx_read_symtab): Call expand_psymtab.
9541 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9542 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9543 (ctf_psymtab::read_symtab): Call expand_psymtab.
9544
9545 2020-01-26 Tom Tromey <tom@tromey.com>
9546
9547 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9548 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9549 messages.
9550 * mdebugread.c (mdebug_read_symtab): Remove prints.
9551 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9552 assert.
9553 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9554
9555 2020-01-26 Tom Tromey <tom@tromey.com>
9556
9557 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9558 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9559 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9560 legacy_symtab.
9561 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9562 * psymtab.c (psymtab_to_symtab): Call method.
9563 (dump_psymtab): Update.
9564 * psympriv.h (struct partial_symtab): Add virtual destructor.
9565 <read_symtab>: New method.
9566 (struct legacy_symtab): New.
9567 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9568 (struct pst_map) <pst>: Now a legacy_psymtab.
9569 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9570 (new_psymtab): Use legacy_psymtab.
9571 * dwarf2read.h (struct dwarf2_psymtab): New.
9572 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9573 * dwarf2read.c (dwarf2_create_include_psymtab)
9574 (dwarf2_build_include_psymtabs, create_type_unit_group)
9575 (create_partial_symtab, process_psymtab_comp_unit_reader)
9576 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9577 (set_partial_user): Use dwarf2_psymtab.
9578 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9579 (psymtab_to_symtab_1, process_full_comp_unit)
9580 (process_full_type_unit, dwarf2_ranges_read)
9581 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9582 (dwarf_decode_lines): Use dwarf2_psymtab.
9583 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9584 (add_address_entry_worker, write_one_signatured_type)
9585 (recursively_count_psymbols, recursively_write_psymbols)
9586 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9587 (write_debug_names): Likewise.
9588 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9589 <pst>: Now a legacy_psymtab.
9590 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9591 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9592 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9593 * ctfread.c (struct ctf_psymtab): New.
9594 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9595 ctf_psymtab.
9596 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9597 (create_partial_symtab): Return a ctf_psymtab.
9598 (scan_partial_symbols): Update.
9599
9600 2020-01-26 Tom Tromey <tom@tromey.com>
9601
9602 * xcoffread.c (xcoff_start_psymtab): Use new.
9603 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9604 renamed from start_psymtab_common.
9605 * psympriv.h (struct partial_symtab): Add new constructor.
9606 (start_psymtab_common): Don't declare.
9607 * mdebugread.c (parse_partial_symbols): Use new.
9608 * dwarf2read.c (create_partial_symtab): Use new.
9609 * dbxread.c (start_psymtab): Use new.
9610 * ctfread.c (create_partial_symtab): Use new.
9611
9612 2020-01-26 Tom Tromey <tom@tromey.com>
9613
9614 * xcoffread.c (xcoff_end_psymtab): Use new.
9615 * psymtab.c (start_psymtab_common): Use new.
9616 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9617 Update.
9618 * psympriv.h (struct partial_symtab): Add parameters to
9619 constructor. Don't inline.
9620 (allocate_psymtab): Don't declare.
9621 * mdebugread.c (new_psymtab): Use new.
9622 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9623 * dbxread.c (dbx_end_psymtab): Use new.
9624
9625 2020-01-26 Tom Tromey <tom@tromey.com>
9626
9627 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9628 allocate_psymtab. Update documentation.
9629 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9630 allocate_psymtab. Do not use new.
9631 (allocate_psymtab): Use new. Update.
9632
9633 2020-01-26 Tom Tromey <tom@tromey.com>
9634
9635 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9636 * psymtab.c (psym_print_stats): Update.
9637 * psympriv.h (struct partial_symtab) <readin,
9638 psymtabs_addrmap_supported, anonymous>: Now bool.
9639 * mdebugread.c (psymtab_to_symtab_1): Update.
9640 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9641 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9642 (process_full_comp_unit, process_full_type_unit): Update.
9643 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9644 * ctfread.c (psymtab_to_symtab): Update.
9645
9646 2020-01-26 Tom Tromey <tom@tromey.com>
9647
9648 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9649 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9650 * psymtab.c (psymtab_storage): Delete psymtabs.
9651 (psymtab_storage::allocate_psymtab): Use new.
9652 (psymtab_storage::discard_psymtab): Use delete.
9653 * psympriv.h (struct partial_symtab): Add constructor and
9654 initializers.
9655
9656 2020-01-26 Tom Tromey <tom@tromey.com>
9657
9658 * machoread.c: Do not include psympriv.h.
9659
9660 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9661
9662 * NEWS: Mention the new option and the set/show commands.
9663
9664 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9665
9666 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9667 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9668 (validate_exec_file): New variables, enums, functions.
9669 (exec_file_locate_attach, print_section_info): Style the filenames.
9670 (_initialize_exec): Install show_exec_file_mismatch_command and
9671 set_exec_file_mismatch_command.
9672 * gdbcore.h (validate_exec_file): Declare.
9673 * infcmd.c (attach_command): Call validate_exec_file.
9674 * remote.c ( remote_target::remote_add_inferior): Likewise.
9675
9676 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9677
9678 * frame.c (find_frame_sal): Move call to get_next_frame into more
9679 inner scope.
9680 * inline-frame.c (inilne_state) <inline_state>: Update argument
9681 types.
9682 (inilne_state) <skipped_symbol>: Rename to...
9683 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9684 (skip_inline_frames): Build vector of skipped symbols and use this
9685 to reate the inline_state.
9686 (inline_skipped_symbol): Add a comment and some assertions, fetch
9687 skipped symbol from the list.
9688
9689 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9690
9691 * buildsym.c (lte_is_less_than): Delete.
9692 (buildsym_compunit::end_symtab_with_blockvector): Create local
9693 lambda function to sort line table entries, and use
9694 std::stable_sort instead of std::sort.
9695 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9696 markers when looking for a previous line.
9697
9698 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9699
9700 * dwarf2read.c (lnp_state_machine::record_line): Include
9701 end_sequence parameter in debug print out. Record the line if we
9702 are at an end_sequence marker even if it's not the start of a
9703 statement.
9704 * symmisc.c (maintenance_print_one_line_table): Print end of
9705 sequence markers with 'END' not '0'.
9706
9707 2020-01-24 Pedro Alves <palves@redhat.com>
9708
9709 PR gdb/25410
9710 * thread.c (scoped_restore_current_thread::restore): Use
9711 switch_to_inferior_no_thread.
9712 * exec.c: Include "progspace-and-thread.h".
9713 (add_target_sections, remove_target_sections):
9714 scoped_restore_current_pspace_and_thread instead of
9715 scoped_restore_current_thread.
9716 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9717 and aspace to the inferior before calling clone_program_space.
9718 Remove stale comment.
9719
9720 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9721
9722 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9723 (arm_netbsd_nat_target::fetch_registers): ...this.
9724 (arm_nbsd_nat_target::store_registers): Rename to...
9725 (arm_netbsd_nat_target::store_registers): ...this.
9726
9727 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9728
9729 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9730 register_t.
9731
9732 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9733
9734 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9735 Update comment.
9736 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9737 Likewise.
9738 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9739 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9740 the correct replacement (iterate_over_regset_sections).
9741 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9742 Update comment.
9743
9744 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9745
9746 PR gdb/23718
9747 * gdb/python/python.c (execute_gdb_command): Call
9748 async_enable_stdin in catch block.
9749
9750 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9751
9752 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9753 SWITCH_THRU_ALL_UIS.
9754
9755 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9756
9757 PR tui/9765
9758 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9759 comment, add extra parameter, and update to store previous symbol
9760 when appropriate.
9761 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9762 add extra parameter.
9763 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9764 remove unneeded parameter, add try/catch around gdb_print_insn,
9765 rewrite to add items to asm_lines vector.
9766 (tui_find_backward_disassembly_start_address): New function.
9767 (tui_find_disassembly_address): Updated throughout.
9768 (tui_disasm_window::set_contents): Update for changes to
9769 tui_disassemble.
9770 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9771 number of lines to scroll.
9772
9773 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9774
9775 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9776 (SECT_OFF_DATA): Likewise.
9777 (SECT_OFF_RODATA): Likewise.
9778 (SECT_OFF_TEXT): Likewise.
9779 (SECT_OFF_BSS): Likewise.
9780 (struct objfile) <text_section_offset, data_section_offset>: New
9781 methods.
9782 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9783 objfile::text_section_offset.
9784 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9785 * coffread.c (coff_symtab_read): Likewise.
9786 (enter_linenos): Likewise.
9787 (process_coff_symbol): Likewise.
9788 * ctfread.c (get_objfile_text_range): Likewise.
9789 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9790 Use objfile::data_section_offset.
9791 * dwarf2-frame.c (execute_cfa_program): Use
9792 objfile::text_section_offset.
9793 (dwarf2_frame_find_fde): Likewise.
9794 * dwarf2read.c (create_addrmap_from_index): Likewise.
9795 (create_addrmap_from_aranges): Likewise.
9796 (dw2_find_pc_sect_compunit_symtab): Likewise.
9797 (process_psymtab_comp_unit_reader): Likewise.
9798 (add_partial_symbol): Likewise.
9799 (add_partial_subprogram): Likewise.
9800 (process_full_comp_unit): Likewise.
9801 (read_file_scope): Likewise.
9802 (read_func_scope): Likewise.
9803 (read_lexical_block_scope): Likewise.
9804 (read_call_site_scope): Likewise.
9805 (dwarf2_rnglists_process): Likewise.
9806 (dwarf2_ranges_process): Likewise.
9807 (dwarf2_ranges_read): Likewise.
9808 (dwarf_decode_lines_1): Likewise.
9809 (new_symbol): Likewise.
9810 (dwarf2_fetch_die_loc_sect_off): Likewise.
9811 (dwarf2_per_cu_text_offset): Likewise.
9812 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9813 * hppa-tdep.c (read_unwind_info): Likewise.
9814 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9815 * psympriv.h (struct partial_symtab): Likewise.
9816 * psymtab.c (find_pc_sect_psymtab): Likewise.
9817 * solib-svr4.c (enable_break): Likewise.
9818 * stap-probe.c (relocate_address): Use
9819 objfile::data_section_offset.
9820 * xcoffread.c (enter_line_range): Use
9821 objfile::text_section_offset.
9822 (read_xcoff_symtab): Likewise.
9823
9824 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9827 declaration to narrower scopes.
9828
9829 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9830
9831 * darwin-nat.h (struct darwin_exception_msg, enum
9832 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9833 Move up.
9834 (class darwin_nat_target) <wait_1, check_new_threads,
9835 decode_exception_message, decode_message, stop_inferior,
9836 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9837 * darwin-nat.c (darwin_check_new_threads): Rename to...
9838 (darwin_nat_target::check_new_threads): ... this.
9839 (darwin_suspend_inferior_it): Remove.
9840 (darwin_decode_exception_message): Rename to...
9841 (darwin_nat_target::decode_exception_message): ... this.
9842 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9843 (darwin_decode_message): Rename to...
9844 (darwin_nat_target::decode_message): ... this.
9845 (cancel_breakpoint): Rename to...
9846 (darwin_nat_target::cancel_breakpoint): ... this.
9847 (darwin_wait): Rename to...
9848 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9849 instead of iterate_over_inferiors.
9850 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9851 (darwin_stop_inferior): Rename to...
9852 (darwin_nat_target::stop_inferior): ... this.
9853 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9854 (darwin_init_thread_list): Rename to...
9855 (darwin_nat_target::init_thread_list): ... this.
9856 (darwin_ptrace_him): Rename to...
9857 (darwin_nat_target::ptrace_him): ... this.
9858 (darwin_nat_target::create_inferior): Pass lambda function to
9859 fork_inferior.
9860 (darwin_nat_target::detach): Call stop_inferior instead of
9861 darwin_stop_inferior.
9862 * fork-inferior.h (fork_inferior): Change init_trace_fun
9863 parameter to gdb::function_view.
9864 * fork-inferior.c (fork_inferior): Likewise.
9865
9866 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9867
9868 * i386-cygwin-tdep.c (core_process_module_section): Update.
9869 * windows-nat.c (struct lm_info_windows): Add text_offset.
9870 (windows_xfer_shared_libraries): Update.
9871 * windows-tdep.c (windows_xfer_shared_library):
9872 Add text_offset_cached argument.
9873 * windows-tdep.h (windows_xfer_shared_library): Update.
9874
9875 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9876
9877 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9878
9879 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9880
9881 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9882 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9883 replace with range-based for.
9884 (gdbsim_interrupt_inferior): Remove.
9885 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9886 with a range-based for. Inline code from
9887 gdbsim_interrupt_inferior.
9888
9889 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9890
9891 * infrun.c (proceed): Fix indentation.
9892
9893 2020-01-21 Tom Tromey <tromey@adacore.com>
9894
9895 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9896 * python/python.c (python_extension_ops): Update.
9897 (gdbpy_colorize): New function.
9898 * python/lib/gdb/__init__.py (colorize): New function.
9899 * extension.h (ext_lang_colorize): Declare.
9900 * extension.c (ext_lang_colorize): New function.
9901 * extension-priv.h (struct extension_language_ops) <colorize>: New
9902 member.
9903 * cli/cli-style.c (_initialize_cli_style): Update help text.
9904
9905 2020-01-21 Luis Machado <luis.machado@linaro.org>
9906
9907 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9908 <cond>: Change type to bool.
9909 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9910 (aarch64_displaced_step_cb): Likewise.
9911 (aarch64_displaced_step_tb): Likewise.
9912
9913 2020-01-21 Luis Machado <luis.machado@linaro.org>
9914
9915 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9916 output.
9917
9918 2020-01-21 Luis Machado <luis.machado@linaro.org>
9919
9920 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9921 <pc_adjust>: Adjust the documentation.
9922 (aarch64_displaced_step_fixup): Check if PC really moved before
9923 adjusting it.
9924
9925 2020-01-19 Tom Tromey <tom@tromey.com>
9926
9927 * disasm.c (~gdb_disassembler): New destructor.
9928 (gdb_buffered_insn_length): Call disassemble_free_target.
9929 * disasm.h (class gdb_disassembler): Declare destructor. Use
9930 DISABLE_COPY_AND_ASSIGN.
9931
9932 2020-01-19 Tom Tromey <tom@tromey.com>
9933
9934 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9935 (die_reader_func_ftype): Remove.
9936 (cutu_reader): New class.
9937 (dw2_get_file_names_reader): Remove "data" parameter.
9938 (dw2_get_file_names): Use cutu_reader.
9939 (create_debug_type_hash_table): Update.
9940 (read_cutu_die_from_dwo): Update comment.
9941 (lookup_dwo_unit): Add dwo_name parameter.
9942 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9943 die_reader_func_ftype and data parameters.
9944 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9945 Remove die_reader_func_ftype and data parameters.
9946 (~cutu_reader): New; from init_cutu_and_read_dies.
9947 (cutu_reader::cutu_reader): Rename from
9948 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9949 and data parameters.
9950 (init_cutu_and_read_dies_simple): Remove.
9951 (struct process_psymtab_comp_unit_data): Remove.
9952 (process_psymtab_comp_unit_reader): Remove data parameter; add
9953 want_partial_unit and pretend_language parameters.
9954 (process_psymtab_comp_unit): Use cutu_reader.
9955 (build_type_psymtabs_reader): Remove data parameter.
9956 (build_type_psymtabs_1): Use cutu_reader.
9957 (process_skeletonless_type_unit): Likewise.
9958 (load_partial_comp_unit_reader): Remove.
9959 (load_partial_comp_unit): Use cutu_reader.
9960 (load_full_comp_unit_reader): Remove.
9961 (load_full_comp_unit): Use cutu_reader.
9962 (struct create_dwo_cu_data): Remove.
9963 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9964 dwo_unit parameters.
9965 (create_cus_hash_table): Use cutu_reader.
9966 (struct dwarf2_read_addr_index_data): Remove.
9967 (dwarf2_read_addr_index_reader): Remove.
9968 (dwarf2_read_addr_index): Use cutu_reader.
9969 (read_signatured_type_reader): Remove.
9970 (read_signatured_type): Use cutu_reader.
9971
9972 2020-01-19 Tom Tromey <tom@tromey.com>
9973
9974 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9975 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9976 (tui_wrefresh): Declare.
9977 * tui/tui-wingeneral.c (suppress_output): New global.
9978 (tui_suppress_output, ~tui_suppress_output): New constructor and
9979 destructor.
9980 (tui_wrefresh): New function.
9981 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9982 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9983 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9984 method.
9985 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9986 tui_wrefresh.
9987 (tui_data_window::no_refresh): New method.
9988 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9989 (tui_reg_command): Use tui_suppress_output
9990 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9991 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9992 method.
9993 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9994
9995 2020-01-19 Tom Tromey <tom@tromey.com>
9996
9997 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9998 Handle case where symtab is null.
9999
10000 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10001
10002 * linux-fork.c (one_fork_p): Simplify.
10003
10004 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10005
10006 * top.c (struct qt_args): Remove.
10007 (kill_or_detach): Change return type to void, replace `void *`
10008 parameter with a proper one.
10009 (print_inferior_quit_action): Likewise.
10010 (quit_confirm): Use range-based for loop to iterate over inferiors.
10011 (quit_force): Likewise.
10012
10013 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10016 `void *` parameter with proper parameters.
10017 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10018 (print_one_inferior): Change return type to void, replace `void *`
10019 parameter with proper parameters.
10020 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10021 inferiors.
10022 (get_other_inferior): Remove.
10023 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10024 inferiors.
10025
10026 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * mi/mi-interp.c (report_initial_inferior): Remove.
10029 (mi_interp::init): Use range-based for to iterate over inferiors.
10030
10031 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * python/py-inferior.c (build_inferior_list): Remove.
10034 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10035
10036 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10037
10038 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10039 (btrace_stitch_trace): Likewise.
10040 * charset.c (intermediate_encoding): Likewise (vaild).
10041 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10042 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10043 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10044
10045 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10046
10047 * windows-tdep.c (windows_get_tlb_type):
10048 Add rtl_user_process_parameters type.
10049
10050 2020-01-16 Pedro Alves <palves@redhat.com>
10051 Norbert Lange <nolange79@gmail.com>
10052
10053 PR build/24805
10054 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10055 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10056 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10057 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10058 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10059 (ps_plog): Redeclare exported functions with default visibility.
10060
10061 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10062
10063 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10064 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10065
10066 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10067
10068 * infcmd.c (post_create_inferior): Use get_thread_regcache
10069 instead of get_current_regcache.
10070
10071 2020-01-14 Tom Tromey <tom@tromey.com>
10072
10073 PR symtab/12535:
10074 * python/python.c (gdbpy_decode_line): Treat empty string the same
10075 as no argument.
10076
10077 2020-01-14 Tom Tromey <tom@tromey.com>
10078
10079 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10080
10081 2020-01-14 Tom Tromey <tom@tromey.com>
10082
10083 * nat/linux-btrace.c: Don't include <config.h>.
10084 * nat/linux-ptrace.c: Don't include <config.h>.
10085 * nat/x86-linux-dregs.c: Don't include <config.h>.
10086
10087 2020-01-14 Tom Tromey <tom@tromey.com>
10088
10089 * configure: Rebuild.
10090 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10091
10092 2020-01-14 Tom Tromey <tom@tromey.com>
10093
10094 * nat/x86-linux-dregs.c: Include configh.h.
10095 * nat/linux-ptrace.c: Include configh.h.
10096 * nat/linux-btrace.c: Include configh.h.
10097 * defs.h: Include config.h, bfd.h.
10098 * configure.ac: Don't source common.host.
10099 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10100 * configure: Rebuild.
10101 * acinclude.m4: Update path.
10102 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10103 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10104 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10105 (CLIBS): Add LIBSUPPORT.
10106 (CDEPS): Likewise.
10107 (COMMON_SFILES): Remove gdbsupport files.
10108 (HFILES_NO_SRCDIR): Likewise.
10109 (stamp-version): Update path to create-version.sh.
10110 (ALLDEPFILES): Remove gdbsupport files.
10111
10112 2020-01-14 Tom Tromey <tom@tromey.com>
10113
10114 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10115 USE_WIN32API when needed.
10116 * configure.ac (USE_WIN32API): Don't define.
10117 (WIN32LIBS): Use WIN32APILIBS.
10118 * configure: Rebuild.
10119
10120 2020-01-14 Tom Tromey <tom@tromey.com>
10121
10122 * configure: Rebuild.
10123 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10124
10125 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10126
10127 * skip.c (skip_function_command): Make skip w/o arguments use the
10128 name of the inlined function if pc is inside any inlined function.
10129
10130 2020-01-14 Luis Machado <luis.machado@linaro.org>
10131
10132 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10133 * infrun.c (resume_1): Likewise.
10134 (handle_inferior_event): Remove stale comment.
10135 * linux-nat.c (linux_nat_target::resume): Update comments.
10136 (save_stop_reason): Likewise.
10137 (linux_nat_filter_event): Likewise.
10138 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10139
10140 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10141
10142 * elfread.c (record_minimal_symbol): Set section index to 0 for
10143 non-allocatable sections.
10144
10145
10146 2020-01-13 Ali Tamur <tamur@google.com>
10147
10148 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10149 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10150 to gdb::optional. Update comments.
10151 (dwo_file): Update comments.
10152 (read_attribute): Update API to take an additional out parameter,
10153 need_reprocess. This is used to mark attributes that need other
10154 attributes (e.g. str_offsets_base) for correct computation which may not
10155 have been read yet.
10156 (read_attribute_reprocess): New function declaration.
10157 (read_addr_index): Likewise.
10158 (read_dwo_str_index): Likewise.
10159 (read_stub_str_index): Likewise.
10160 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10161 (lookup_addr_base): New function definition.
10162 (lookup_ranges_base): Likewise.
10163 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10164 lookup_ranges_base.
10165 (init_cutu_and_read_dies): Update comments.
10166 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10167 unit. This is used to inherit parent's str_offsets_base and addr_base.
10168 Update comments.
10169 (init_cutu_and_read_dies_simple): Reflect API changes.
10170 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10171 (create_cus_hash_table): Change API to take parent compile unit.
10172 Reflect API changes.
10173 (open_and_init_dwo_file): Reflect API changes.
10174 (dwarf2_get_pc_bounds): Update comments.
10175 (dwarf2_record_block_ranges): Likewise.
10176 (read_full_die_1): Change implementation to reprocess attributes that
10177 need str_offsets_base and addr_base.
10178 (partial_die_info::read): Likewise.
10179 (read_attribute_reprocess): New function definition.
10180 (read_attribute_value): Change API to take an additional out parameter,
10181 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10182 when a non-dwo compile unit has index based attributes.
10183 (read_attribute): Reflect API changes.
10184 (read_addr_index_1): Reflect API changes. Update comments.
10185 (dwarf2_read_addr_index_data): Reflect API changes.
10186 (dwarf2_read_addr_index): Likewise.
10187 (read_str_index): Change API and implementation. This becomes a helper
10188 to be used by the new string index related methods. Update error
10189 message and comments.
10190 (read_dwo_str_index): New function definition.
10191 (read_stub_str_index): Likewise.
10192 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10193 * symfile.h (dwarf2_debug_sections): Likewise.
10194 * xcoffread.c (dwarf2_debug_sections): Likewise.
10195
10196 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10197
10198 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10199 core_reg_sect type to gdb_byte *.
10200 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10201 * cris-tdep.c (fetch_core_registers): Likewise.
10202 * corelow.c (core_target::get_core_register_section): Change
10203 type of `contents` to gdb::byte_vector.
10204
10205 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10206
10207 * tui/tui-wingeneral.c (box_win): Position the title in the center
10208 of the border.
10209
10210 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10211
10212 * corelow.c (core_target::get_core_register_section): Use
10213 std::vector instead of alloca.
10214
10215 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10216
10217 * warning.m4: Add -Wmissing-declarations to build_warnings.
10218 * configure: Re-generate.
10219
10220 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * python/python.c (init__gdb_module): Add declaration.
10223
10224 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10227 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10228 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10229 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10230 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10231 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10232 * ada-exp.y (_initialize_ada_exp): Add declaration.
10233 * ada-lang.c (_initialize_ada_language): Add declaration.
10234 * ada-tasks.c (_initialize_tasks): Add declaration.
10235 * agent.c (_initialize_agent): Add declaration.
10236 * aix-thread.c (_initialize_aix_thread): Add declaration.
10237 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10238 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10239 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10240 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10241 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10242 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10243 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10244 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10245 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10246 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10247 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10248 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10249 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10250 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10251 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10252 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10253 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10254 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10255 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10256 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10257 * annotate.c (_initialize_annotate): Add declaration.
10258 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10259 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10260 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10261 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10262 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10263 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10264 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10265 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10266 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10267 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10268 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10269 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10270 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10271 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10272 * auto-load.c (_initialize_auto_load): Add declaration.
10273 * auxv.c (_initialize_auxv): Add declaration.
10274 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10275 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10276 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10277 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10278 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10279 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10280 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10281 * breakpoint.c (_initialize_breakpoint): Add declaration.
10282 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10283 * btrace.c (_initialize_btrace): Add declaration.
10284 * charset.c (_initialize_charset): Add declaration.
10285 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10286 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10287 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10288 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10289 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10290 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10291 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10292 * coffread.c (_initialize_coffread): Add declaration.
10293 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10294 * compile/compile.c (_initialize_compile): Add declaration.
10295 * complaints.c (_initialize_complaints): Add declaration.
10296 * completer.c (_initialize_completer): Add declaration.
10297 * copying.c (_initialize_copying): Add declaration.
10298 * corefile.c (_initialize_core): Add declaration.
10299 * corelow.c (_initialize_corelow): Add declaration.
10300 * cp-abi.c (_initialize_cp_abi): Add declaration.
10301 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10302 * cp-support.c (_initialize_cp_support): Add declaration.
10303 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10304 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10305 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10306 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10307 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10308 * ctfread.c (_initialize_ctfread): Add declaration.
10309 * d-lang.c (_initialize_d_language): Add declaration.
10310 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10311 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10312 * dbxread.c (_initialize_dbxread): Add declaration.
10313 * dcache.c (_initialize_dcache): Add declaration.
10314 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10315 * disasm.c (_initialize_disasm): Add declaration.
10316 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10317 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10318 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10319 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10320 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10321 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10322 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10323 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10324 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10325 * elfread.c (_initialize_elfread): Add declaration.
10326 * exec.c (_initialize_exec): Add declaration.
10327 * extension.c (_initialize_extension): Add declaration.
10328 * f-lang.c (_initialize_f_language): Add declaration.
10329 * f-valprint.c (_initialize_f_valprint): Add declaration.
10330 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10331 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10332 * filesystem.c (_initialize_filesystem): Add declaration.
10333 * findcmd.c (_initialize_mem_search): Add declaration.
10334 * findvar.c (_initialize_findvar): Add declaration.
10335 * fork-child.c (_initialize_fork_child): Add declaration.
10336 * frame-base.c (_initialize_frame_base): Add declaration.
10337 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10338 * frame.c (_initialize_frame): Add declaration.
10339 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10340 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10341 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10342 * gcore.c (_initialize_gcore): Add declaration.
10343 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10344 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10345 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10346 * gdbarch.c (_initialize_gdbarch): Add declaration.
10347 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10348 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10349 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10350 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10351 * go-lang.c (_initialize_go_language): Add declaration.
10352 * go32-nat.c (_initialize_go32_nat): Add declaration.
10353 * guile/guile.c (_initialize_guile): Add declaration.
10354 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10355 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10356 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10357 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10358 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10359 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10360 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10361 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10362 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10363 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10364 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10365 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10366 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10367 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10368 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10369 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10370 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10371 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10372 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10373 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10374 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10375 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10376 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10377 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10378 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10379 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10380 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10381 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10382 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10383 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10384 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10385 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10386 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10387 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10388 * infcall.c (_initialize_infcall): Add declaration.
10389 * infcmd.c (_initialize_infcmd): Add declaration.
10390 * inflow.c (_initialize_inflow): Add declaration.
10391 * infrun.c (_initialize_infrun): Add declaration.
10392 * interps.c (_initialize_interpreter): Add declaration.
10393 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10394 * jit.c (_initialize_jit): Add declaration.
10395 * language.c (_initialize_language): Add declaration.
10396 * linux-fork.c (_initialize_linux_fork): Add declaration.
10397 * linux-nat.c (_initialize_linux_nat): Add declaration.
10398 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10399 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10400 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10401 * m2-lang.c (_initialize_m2_language): Add declaration.
10402 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10403 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10404 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10405 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10406 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10407 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10408 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10409 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10410 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10411 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10412 * machoread.c (_initialize_machoread): Add declaration.
10413 * macrocmd.c (_initialize_macrocmd): Add declaration.
10414 * macroscope.c (_initialize_macroscope): Add declaration.
10415 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10416 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10417 * maint.c (_initialize_maint_cmds): Add declaration.
10418 * mdebugread.c (_initialize_mdebugread): Add declaration.
10419 * memattr.c (_initialize_mem): Add declaration.
10420 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10421 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10422 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10423 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10424 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10425 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10426 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10427 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10428 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10429 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10430 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10431 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10432 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10433 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10434 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10435 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10436 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10437 * mipsread.c (_initialize_mipsread): Add declaration.
10438 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10439 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10440 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10441 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10442 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10443 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10444 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10445 * nto-procfs.c (_initialize_procfs): Add declaration.
10446 * objc-lang.c (_initialize_objc_language): Add declaration.
10447 * observable.c (_initialize_observer): Add declaration.
10448 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10449 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10450 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10451 * osabi.c (_initialize_gdb_osabi): Add declaration.
10452 * osdata.c (_initialize_osdata): Add declaration.
10453 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10454 * parse.c (_initialize_parse): Add declaration.
10455 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10456 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10457 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10458 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10459 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10460 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10461 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10462 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10463 * printcmd.c (_initialize_printcmd): Add declaration.
10464 * probe.c (_initialize_probe): Add declaration.
10465 * proc-api.c (_initialize_proc_api): Add declaration.
10466 * proc-events.c (_initialize_proc_events): Add declaration.
10467 * proc-service.c (_initialize_proc_service): Add declaration.
10468 * procfs.c (_initialize_procfs): Add declaration.
10469 * producer.c (_initialize_producer): Add declaration.
10470 * psymtab.c (_initialize_psymtab): Add declaration.
10471 * python/python.c (_initialize_python): Add declaration.
10472 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10473 * record-btrace.c (_initialize_record_btrace): Add declaration.
10474 * record-full.c (_initialize_record_full): Add declaration.
10475 * record.c (_initialize_record): Add declaration.
10476 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10477 * regcache.c (_initialize_regcache): Add declaration.
10478 * reggroups.c (_initialize_reggroup): Add declaration.
10479 * remote-notif.c (_initialize_notif): Add declaration.
10480 * remote-sim.c (_initialize_remote_sim): Add declaration.
10481 * remote.c (_initialize_remote): Add declaration.
10482 * reverse.c (_initialize_reverse): Add declaration.
10483 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10484 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10485 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10486 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10487 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10488 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10489 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10490 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10491 Add declaration.
10492 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10493 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10494 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10495 * rust-exp.y (_initialize_rust_exp): Add declaration.
10496 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10497 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10498 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10499 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10500 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10501 * score-tdep.c (_initialize_score_tdep): Add declaration.
10502 * ser-go32.c (_initialize_ser_dos): Add declaration.
10503 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10504 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10505 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10506 * ser-uds.c (_initialize_ser_socket): Add declaration.
10507 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10508 * serial.c (_initialize_serial): Add declaration.
10509 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10510 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10511 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10512 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10513 * skip.c (_initialize_step_skip): Add declaration.
10514 * sol-thread.c (_initialize_sol_thread): Add declaration.
10515 * solib-aix.c (_initialize_solib_aix): Add declaration.
10516 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10517 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10518 * solib-frv.c (_initialize_frv_solib): Add declaration.
10519 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10520 * solib-target.c (_initialize_solib_target): Add declaration.
10521 * solib.c (_initialize_solib): Add declaration.
10522 * source-cache.c (_initialize_source_cache): Add declaration.
10523 * source.c (_initialize_source): Add declaration.
10524 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10525 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10526 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10527 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10528 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10529 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10530 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10531 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10532 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10533 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10534 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10535 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10536 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10537 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10538 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10539 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10540 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10541 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10542 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10543 * stabsread.c (_initialize_stabsread): Add declaration.
10544 * stack.c (_initialize_stack): Add declaration.
10545 * stap-probe.c (_initialize_stap_probe): Add declaration.
10546 * std-regs.c (_initialize_frame_reg): Add declaration.
10547 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10548 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10549 * symfile.c (_initialize_symfile): Add declaration.
10550 * symmisc.c (_initialize_symmisc): Add declaration.
10551 * symtab.c (_initialize_symtab): Add declaration.
10552 * target.c (_initialize_target): Add declaration.
10553 * target-connection.c (_initialize_target_connection): Add
10554 declaration.
10555 * target-dcache.c (_initialize_target_dcache): Add declaration.
10556 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10557 * thread.c (_initialize_thread): Add declaration.
10558 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10559 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10560 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10561 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10562 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10563 * tracectf.c (_initialize_ctf): Add declaration.
10564 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10565 * tracefile.c (_initialize_tracefile): Add declaration.
10566 * tracepoint.c (_initialize_tracepoint): Add declaration.
10567 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10568 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10569 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10570 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10571 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10572 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10573 * tui/tui.c (_initialize_tui): Add declaration.
10574 * typeprint.c (_initialize_typeprint): Add declaration.
10575 * ui-style.c (_initialize_ui_style): Add declaration.
10576 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10577 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10578 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10579 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10580 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10581 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10582 * unittests/filtered_iterator-selftests.c
10583 (_initialize_filtered_iterator_selftests): Add declaration.
10584 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10585 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10586 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10587 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10588 * unittests/main-thread-selftests.c
10589 (_initialize_main_thread_selftests): Add declaration.
10590 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10591 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10592 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10593 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10594 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10595 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10596 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10597 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10598 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10599 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10600 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10601 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10602 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10603 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10604 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10605 declaration.
10606 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10607 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10608 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10609 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10610 * user-regs.c (_initialize_user_regs): Add declaration.
10611 * utils.c (_initialize_utils): Add declaration.
10612 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10613 * valops.c (_initialize_valops): Add declaration.
10614 * valprint.c (_initialize_valprint): Add declaration.
10615 * value.c (_initialize_values): Add declaration.
10616 * varobj.c (_initialize_varobj): Add declaration.
10617 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10618 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10619 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10620 * windows-nat.c (_initialize_windows_nat): Add declaration.
10621 (_initialize_check_for_gdb_ini): Add declaration.
10622 (_initialize_loadable): Add declaration.
10623 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10624 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10625 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10626 * xcoffread.c (_initialize_xcoffread): Add declaration.
10627 * xml-support.c (_initialize_xml_support): Add declaration.
10628 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10629 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10630 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10631 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10632
10633 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10634
10635 * regformats/regdat.sh: Generate declaration for init function.
10636
10637 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10638
10639 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10640 up.
10641 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10642 close_one_inferior>: New methods.
10643 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10644 pass down target to find_inferior_pid.
10645 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10646 Pass down target to find_inferior_ptid.
10647 (gdbsim_target::create_inferior): Pass down target to
10648 add_thread_silent.
10649 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10650 target down to find_inferior_ptid and switch_to_thread.
10651 (gdbsim_target::close): Update to call close_one_inferior.
10652 (struct resume_data): Remove.
10653 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10654 directly, rather than through a void pointer.
10655 (gdbsim_target::resume): Update to call resume_one_inferior.
10656
10657 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10658
10659 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10660
10661 2020-01-12 Pedro Alves <palves@redhat.com>
10662
10663 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10664 directly for the current inferior instead of
10665 discard_all_inferiors.
10666 (discard_all_inferiors): Delete.
10667
10668 2020-01-11 Tom Tromey <tom@tromey.com>
10669
10670 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10671 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10672 deprecated_safe_get_selected_frame.
10673
10674 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10675
10676 * inferior.c (print_inferior): Switch inferior before printing it.
10677
10678 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10679 Pedro Alves <palves@redhat.com>
10680
10681 * progspace-and-thread.c (switch_to_program_space_and_thread):
10682 Assert there's an inferior for PSPACE. Use
10683 switch_to_inferior_no_thread to switch the inferior too.
10684 * progspace.c (program_space::~program_space): Call
10685 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10686 (program_space::free_all_objfiles): Don't call clear_symtab_users
10687 here.
10688 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10689
10690 2020-01-10 Pedro Alves <palves@redhat.com>
10691
10692 * NEWS: Mention multi-target debugging, "info connections", and
10693 "add-inferior -no-connection".
10694
10695 2020-01-10 Pedro Alves <palves@redhat.com>
10696
10697 * infrun.c: Include "target-connection.h".
10698 (check_multi_target_resumption): New.
10699 (proceed): Call it.
10700 * target-connection.c (make_target_connection_string): Make
10701 extern.
10702 * target-connection.h (make_target_connection_string): Declare.
10703
10704 2020-01-10 Pedro Alves <palves@redhat.com>
10705
10706 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10707 * inferior.c (uiout_field_connection): New function.
10708 (print_inferior): Add new "connection-id" column.
10709 (add_inferior_command): Show connection number/string of added
10710 inferior.
10711 * process-stratum-target.h
10712 (process_stratum_target::connection_string): New virtual method.
10713 (process_stratum_target::connection_number): New field.
10714 * remote.c (remote_target::connection_string): New override.
10715 * target-connection.c: New file.
10716 * target-connection.h: New file.
10717 * target.c (decref_target): Remove process_stratum targets from
10718 the connection list.
10719 (target_stack::push): Add process_stratum targets to the
10720 connection list.
10721
10722 2020-01-10 Pedro Alves <palves@redhat.com>
10723
10724 Revert:
10725 2016-04-12 Pedro Alves <palves@redhat.com>
10726 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10727 Remove references to name.
10728 * serial.h (struct serial) <name>: Delete.
10729
10730 2020-01-10 Pedro Alves <palves@redhat.com>
10731
10732 * gdbarch-selftests.c (register_to_value_test): Remove "target
10733 already pushed" check.
10734
10735 2020-01-10 Pedro Alves <palves@redhat.com>
10736 John Baldwin <jhb@FreeBSD.org>
10737
10738 * aarch64-linux-nat.c
10739 (aarch64_linux_nat_target::thread_architecture): Adjust.
10740 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10741 (task_command_1): Likewise.
10742 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10743 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10744 (aix_thread_target::store_registers)
10745 (aix_thread_target::thread_alive): Adjust.
10746 * amd64-fbsd-tdep.c: Include "inferior.h".
10747 (amd64fbsd_get_thread_local_address): Pass down target.
10748 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10749 thread's gdbarch instead of target_gdbarch.
10750 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10751 get_last_target_status.
10752 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10753 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10754 inferiors.
10755 (update_inserted_breakpoint_locations): Skip if inferiors with no
10756 execution.
10757 (update_global_location_list): When handling moribund locations,
10758 find representative inferior for location's pspace, and use thread
10759 count of its process_stratum target.
10760 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10761 * bsd-uthread.c (bsd_uthread_target::wait): Use
10762 as_process_stratum_target and adjust thread_change_ptid and
10763 add_thread calls.
10764 (bsd_uthread_target::update_thread_list): Use
10765 as_process_stratum_target and adjust find_thread_ptid,
10766 thread_change_ptid and add_thread calls.
10767 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10768 find_thread_ptid call.
10769 * corelow.c (add_to_thread_list): Adjust add_thread call.
10770 (core_target_open): Adjust add_thread_silent and thread_count
10771 calls.
10772 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10773 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10774 * event-top.c (async_disconnect): Pop targets from all inferiors.
10775 * exec.c (add_target_sections): Push exec target on all inferiors
10776 sharing the program space.
10777 (remove_target_sections): Remove the exec target from all
10778 inferiors sharing the program space.
10779 (exec_on_vfork): New.
10780 * exec.h (exec_on_vfork): Declare.
10781 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10782 Pass it down.
10783 (fbsd_nat_target::update_thread_list): Adjust.
10784 (fbsd_nat_target::resume): Adjust.
10785 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10786 down.
10787 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10788 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10789 get_thread_arch_regcache call.
10790 * fork-child.c (gdb_startup_inferior): Pass target down to
10791 startup_inferior and set_executing.
10792 * gdbthread.h (struct process_stratum_target): Forward declare.
10793 (add_thread, add_thread_silent, add_thread_with_info)
10794 (in_thread_list): Add process_stratum_target parameter.
10795 (find_thread_ptid(inferior*, ptid_t)): New overload.
10796 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10797 parameter.
10798 (all_threads()): Delete overload.
10799 (all_threads, all_non_exited_threads): Add process_stratum_target
10800 parameter.
10801 (all_threads_safe): Use brace initialization.
10802 (thread_count): Add process_stratum_target parameter.
10803 (set_resumed, set_running, set_stop_requested, set_executing)
10804 (threads_are_executing, finish_thread_state): Add
10805 process_stratum_target parameter.
10806 (switch_to_thread): Use is_current_thread.
10807 * i386-fbsd-tdep.c: Include "inferior.h".
10808 (i386fbsd_get_thread_local_address): Pass down target.
10809 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10810 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10811 have_inferiors check.
10812 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10813 (inf_ptrace_target::attach): Adjust.
10814 * infcall.c (run_inferior_call): Adjust.
10815 * infcmd.c (run_command_1): Pass target to
10816 scoped_finish_thread_state.
10817 (proceed_thread_callback): Skip inferiors with no execution.
10818 (continue_command): Rename 'all_threads' local to avoid hiding
10819 'all_threads' function. Adjust get_last_target_status call.
10820 (prepare_one_step): Adjust set_running call.
10821 (signal_command): Use user_visible_resume_target. Compare thread
10822 pointers instead of inferior_ptid.
10823 (info_program_command): Adjust to pass down target.
10824 (attach_command): Mark target's 'thread_executing' flag.
10825 (stop_current_target_threads_ns): New, factored out from ...
10826 (interrupt_target_1): ... this. Switch inferior before making
10827 target calls.
10828 * inferior-iter.h
10829 (struct all_inferiors_iterator, struct all_inferiors_range)
10830 (struct all_inferiors_safe_range)
10831 (struct all_non_exited_inferiors_range): Filter on
10832 process_stratum_target too. Remove explicit.
10833 * inferior.c (inferior::inferior): Push dummy target on target
10834 stack.
10835 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10836 Add process_stratum_target parameter, and pass it down.
10837 (have_live_inferiors): Adjust.
10838 (switch_to_inferior_and_push_target): New.
10839 (add_inferior_command, clone_inferior_command): Handle
10840 "-no-connection" parameter. Use
10841 switch_to_inferior_and_push_target.
10842 (_initialize_inferior): Mention "-no-connection" option in
10843 the help of "add-inferior" and "clone-inferior" commands.
10844 * inferior.h: Include "process-stratum-target.h".
10845 (interrupt_target_1): Use bool.
10846 (struct inferior) <push_target, unpush_target, target_is_pushed,
10847 find_target_beneath, top_target, process_target, target_at,
10848 m_stack>: New.
10849 (discard_all_inferiors): Delete.
10850 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10851 (all_inferiors, all_non_exited_inferiors): Add
10852 process_stratum_target parameter.
10853 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10854 (target_last_proc_target): New global.
10855 (follow_fork_inferior): Push target on new inferior. Pass target
10856 to add_thread_silent. Call exec_on_vfork. Handle target's
10857 reference count.
10858 (follow_fork): Adjust get_last_target_status call. Also consider
10859 target.
10860 (follow_exec): Push target on new inferior.
10861 (struct execution_control_state) <target>: New field.
10862 (user_visible_resume_target): New.
10863 (do_target_resume): Call target_async.
10864 (resume_1): Set target's threads_executing flag. Consider resume
10865 target.
10866 (commit_resume_all_targets): New.
10867 (proceed): Also consider resume target. Skip threads of inferiors
10868 with no execution. Commit resumtion in all targets.
10869 (start_remote): Pass current inferior to wait_for_inferior.
10870 (infrun_thread_stop_requested): Consider target as well. Pass
10871 thread_info pointer to clear_inline_frame_state instead of ptid.
10872 (infrun_thread_thread_exit): Consider target as well.
10873 (random_pending_event_thread): New inferior parameter. Use it.
10874 (do_target_wait): Rename to ...
10875 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10876 down.
10877 (threads_are_resumed_pending_p, do_target_wait): New.
10878 (prepare_for_detach): Adjust calls.
10879 (wait_for_inferior): New inferior parameter. Handle it. Use
10880 do_target_wait_1 instead of do_target_wait.
10881 (fetch_inferior_event): Adjust. Switch to representative
10882 inferior. Pass target down.
10883 (set_last_target_status): Add process_stratum_target parameter.
10884 Save target in global.
10885 (get_last_target_status): Add process_stratum_target parameter and
10886 handle it.
10887 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10888 (context_switch): Check inferior_ptid == null_ptid before calling
10889 inferior_thread().
10890 (get_inferior_stop_soon): Pass down target.
10891 (wait_one): Rename to ...
10892 (poll_one_curr_target): ... this.
10893 (struct wait_one_event): New.
10894 (wait_one): New.
10895 (stop_all_threads): Adjust.
10896 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10897 event's target.
10898 (switch_back_to_stepped_thread): Also consider target.
10899 (print_stop_event): Update.
10900 (normal_stop): Update. Also consider the resume target.
10901 * infrun.h (wait_for_inferior): Remove declaration.
10902 (user_visible_resume_target): New declaration.
10903 (get_last_target_status, set_last_target_status): New
10904 process_stratum_target parameter.
10905 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10906 process_stratum_target parameter, and use it.
10907 (clear_inline_frame_state (thread_info*)): New.
10908 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10909 process_stratum_target parameter.
10910 (clear_inline_frame_state (thread_info*)): Declare.
10911 * linux-fork.c (delete_checkpoint_command): Pass target down to
10912 find_thread_ptid.
10913 (checkpoint_command): Adjust.
10914 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10915 instead of just tweaking inferior_ptid.
10916 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10917 (exit_lwp): Pass target down to find_thread_ptid.
10918 (attach_proc_task_lwp_callback): Pass target down to
10919 add_thread/set_running/set_executing.
10920 (linux_nat_target::attach): Pass target down to
10921 thread_change_ptid.
10922 (get_detach_signal): Pass target down to find_thread_ptid.
10923 Consider last target status's target.
10924 (linux_resume_one_lwp_throw, resume_lwp)
10925 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10926 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10927 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10928 (linux_nat_target::async_wait_fd): New.
10929 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10930 target down.
10931 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10932 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10933 * linux-thread-db.c (struct thread_db_info::process_target): New
10934 field.
10935 (add_thread_db_info): Save target.
10936 (get_thread_db_info): New process_stratum_target parameter. Also
10937 match target.
10938 (delete_thread_db_info): New process_stratum_target parameter.
10939 Also match target.
10940 (thread_from_lwp): Adjust to pass down target.
10941 (thread_db_notice_clone): Pass down target.
10942 (check_thread_db_callback): Pass down target.
10943 (try_thread_db_load_1): Always push the thread_db target.
10944 (try_thread_db_load, record_thread): Pass target down.
10945 (thread_db_target::detach): Pass target down. Always unpush the
10946 thread_db target.
10947 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10948 target down. Always unpush the thread_db target.
10949 (find_new_threads_callback, thread_db_find_new_threads_2)
10950 (thread_db_target::update_thread_list): Pass target down.
10951 (thread_db_target::pid_to_str): Pass current inferior down.
10952 (thread_db_target::get_thread_local_address): Pass target down.
10953 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10954 target down.
10955 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10956 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10957 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10958 (procfs_init_inferior): Rename to ...
10959 (procfs_target::procfs_init_inferior): ... this and adjust.
10960 (procfs_target::create_inferior, procfs_notice_thread)
10961 (procfs_do_thread_registers): Adjust.
10962 * ppc-fbsd-tdep.c: Include "inferior.h".
10963 (ppcfbsd_get_thread_local_address): Pass down target.
10964 * proc-service.c (ps_xfer_memory): Switch current inferior and
10965 program space as well.
10966 (get_ps_regcache): Pass target down.
10967 * process-stratum-target.c
10968 (process_stratum_target::thread_address_space)
10969 (process_stratum_target::thread_architecture): Pass target down.
10970 * process-stratum-target.h
10971 (process_stratum_target::threads_executing): New field.
10972 (as_process_stratum_target): New.
10973 * ravenscar-thread.c
10974 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10975 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10976 down.
10977 * record-btrace.c (record_btrace_target::info_record): Adjust.
10978 (record_btrace_target::record_method)
10979 (record_btrace_target::record_is_replaying)
10980 (record_btrace_target::fetch_registers)
10981 (get_thread_current_frame_id, record_btrace_target::resume)
10982 (record_btrace_target::wait, record_btrace_target::stop): Pass
10983 target down.
10984 * record-full.c (record_full_wait_1): Switch to event thread.
10985 Pass target down.
10986 * regcache.c (regcache::regcache)
10987 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10988 process_stratum_target parameter and handle it.
10989 (current_thread_target): New global.
10990 (get_thread_regcache): Add process_stratum_target parameter and
10991 handle it. Switch inferior before calling target method.
10992 (get_thread_regcache): Pass target down.
10993 (get_thread_regcache_for_ptid): Pass target down.
10994 (registers_changed_ptid): Add process_stratum_target parameter and
10995 handle it.
10996 (registers_changed_thread, registers_changed): Pass target down.
10997 (test_get_thread_arch_aspace_regcache): New.
10998 (current_regcache_test): Define a couple local test_target_ops
10999 instances and use them for testing.
11000 (readwrite_regcache): Pass process_stratum_target parameter.
11001 (cooked_read_test, cooked_write_test): Pass mock_target down.
11002 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11003 (get_thread_arch_aspace_regcache): Add process_stratum_target
11004 parameter.
11005 (regcache::target): New method.
11006 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11007 (regcache::registers_changed_ptid): Add process_stratum_target
11008 parameter.
11009 (regcache::m_target): New field.
11010 (registers_changed_ptid): Add process_stratum_target parameter.
11011 * remote.c (remote_state::supports_vCont_probed): New field.
11012 (remote_target::async_wait_fd): New method.
11013 (remote_unpush_and_throw): Add remote_target parameter.
11014 (get_current_remote_target): Adjust.
11015 (remote_target::remote_add_inferior): Push target.
11016 (remote_target::remote_add_thread)
11017 (remote_target::remote_notice_new_inferior)
11018 (get_remote_thread_info): Pass target down.
11019 (remote_target::update_thread_list): Skip threads of inferiors
11020 bound to other targets. (remote_target::close): Don't discard
11021 inferiors. (remote_target::add_current_inferior_and_thread)
11022 (remote_target::process_initial_stop_replies)
11023 (remote_target::start_remote)
11024 (remote_target::remote_serial_quit_handler): Pass down target.
11025 (remote_target::remote_unpush_target): New remote_target
11026 parameter. Unpush the target from all inferiors.
11027 (remote_target::remote_unpush_and_throw): New remote_target
11028 parameter. Pass it down.
11029 (remote_target::open_1): Check whether the current inferior has
11030 execution instead of checking whether any inferior is live. Pass
11031 target down.
11032 (remote_target::remote_detach_1): Pass down target. Use
11033 remote_unpush_target.
11034 (extended_remote_target::attach): Pass down target.
11035 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11036 (remote_target::append_resumption): Pass down target.
11037 (remote_target::append_pending_thread_resumptions)
11038 (remote_target::remote_resume_with_hc, remote_target::resume)
11039 (remote_target::commit_resume): Pass down target.
11040 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11041 (remote_target::interrupt_query)
11042 (remote_target::remove_new_fork_children)
11043 (remote_target::check_pending_events_prevent_wildcard_vcont)
11044 (remote_target::remote_parse_stop_reply)
11045 (remote_target::process_stop_reply): Pass down target.
11046 (first_remote_resumed_thread): New remote_target parameter. Pass
11047 it down.
11048 (remote_target::wait_as): Pass down target.
11049 (unpush_and_perror): New remote_target parameter. Pass it down.
11050 (remote_target::readchar, remote_target::remote_serial_write)
11051 (remote_target::getpkt_or_notif_sane_1)
11052 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11053 down target.
11054 (remote_target::mourn_inferior): Pass down target. Use
11055 remote_unpush_target.
11056 (remote_target::core_of_thread)
11057 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11058 (remote_target::pid_to_exec_file)
11059 (remote_target::thread_handle_to_thread_info): Pass down target.
11060 (remote_target::async_wait_fd): New.
11061 * riscv-fbsd-tdep.c: Include "inferior.h".
11062 (riscv_fbsd_get_thread_local_address): Pass down target.
11063 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11064 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11065 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11066 Adjust.
11067 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11068 * solib-svr4.c (enable_break): Pass down target.
11069 * spu-multiarch.c (parse_spufs_run): Pass down target.
11070 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11071 * target-delegates.c: Regenerate.
11072 * target.c (g_target_stack): Delete.
11073 (current_top_target): Return the current inferior's top target.
11074 (target_has_execution_1): Refer to the passed-in inferior's top
11075 target.
11076 (target_supports_terminal_ours): Check whether the initial
11077 inferior was already created.
11078 (decref_target): New.
11079 (target_stack::push): Incref/decref the target.
11080 (push_target, push_target, unpush_target): Adjust.
11081 (target_stack::unpush): Defref target.
11082 (target_is_pushed): Return bool. Adjust to refer to the current
11083 inferior's target stack.
11084 (dispose_inferior): Delete, and inline parts ...
11085 (target_preopen): ... here. Only dispose of the current inferior.
11086 (target_detach): Hold strong target reference while detaching.
11087 Pass target down.
11088 (target_thread_name): Add assertion.
11089 (target_resume): Pass down target.
11090 (target_ops::beneath, find_target_at): Adjust to refer to the
11091 current inferior's target stack.
11092 (get_dummy_target): New.
11093 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11094 has a thread running.
11095 (initialize_targets): Rename to ...
11096 (_initialize_target): ... this.
11097 * target.h: Include "gdbsupport/refcounted-object.h".
11098 (struct target_ops): Inherit refcounted_object.
11099 (target_ops::shortname, target_ops::longname): Make const.
11100 (target_ops::async_wait_fd): New method.
11101 (decref_target): Declare.
11102 (struct target_ops_ref_policy): New.
11103 (target_ops_ref): New typedef.
11104 (get_dummy_target): Declare function.
11105 (target_is_pushed): Return bool.
11106 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11107 (all_matching_threads_iterator::all_matching_threads_iterator):
11108 Handle filter target.
11109 * thread-iter.h (struct all_matching_threads_iterator, struct
11110 all_matching_threads_range, class all_non_exited_threads_range):
11111 Filter by target too. Remove explicit.
11112 * thread.c (threads_executing): Delete.
11113 (inferior_thread): Pass down current inferior.
11114 (clear_thread_inferior_resources): Pass down thread pointer
11115 instead of ptid_t.
11116 (add_thread_silent, add_thread_with_info, add_thread): Add
11117 process_stratum_target parameter. Use it for thread and inferior
11118 searches.
11119 (is_current_thread): New.
11120 (thread_info::deletable): Use it.
11121 (find_thread_ptid, thread_count, in_thread_list)
11122 (thread_change_ptid, set_resumed, set_running): New
11123 process_stratum_target parameter. Pass it down.
11124 (set_executing): New process_stratum_target parameter. Pass it
11125 down. Adjust reference to 'threads_executing'.
11126 (threads_are_executing): New process_stratum_target parameter.
11127 Adjust reference to 'threads_executing'.
11128 (set_stop_requested, finish_thread_state): New
11129 process_stratum_target parameter. Pass it down.
11130 (switch_to_thread): Also match inferior.
11131 (switch_to_thread): New process_stratum_target parameter. Pass it
11132 down.
11133 (update_threads_executing): Reimplement.
11134 * top.c (quit_force): Pop targets from all inferior.
11135 (gdb_init): Don't call initialize_targets.
11136 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11137 Declare.
11138 (windows_add_thread, windows_delete_thread): Adjust.
11139 (get_windows_debug_event): Rename to ...
11140 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11141 * tracefile-tfile.c (tfile_target_open): Pass down target.
11142 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11143 Forward declare.
11144 (switch_to_thread): Add process_stratum_target parameter.
11145 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11146 parameter. Use it.
11147 (mi_on_resume): Pass target down.
11148 * nat/fork-inferior.c (startup_inferior): Add
11149 process_stratum_target parameter. Pass it down.
11150 * nat/fork-inferior.h (startup_inferior): Add
11151 process_stratum_target parameter.
11152 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11153
11154 2020-01-10 Pedro Alves <palves@redhat.com>
11155
11156 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11157 directly. Instead find the first thread in the thread list and
11158 use switch_to_thread.
11159
11160 2020-01-10 Pedro Alves <palves@redhat.com>
11161
11162 * remote.c (remote_target::remote_add_inferior): Don't bind a
11163 process to the current inferior if the current inferior is already
11164 bound to a process.
11165
11166 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11167 Pedro Alves <palves@redhat.com>
11168
11169 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11170 If no process is specified, return null_ptid instead of
11171 inferior_ptid.
11172 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11173 TARGET_WAITKIND_SIGNALLED with no pid.
11174
11175 2020-01-10 Pedro Alves <palves@redhat.com>
11176
11177 * remote.c (first_remote_resumed_thread): New.
11178 (remote_target::wait_as): Use it as default event_ptid instead of
11179 inferior_ptid.
11180
11181 2020-01-10 Pedro Alves <palves@redhat.com>
11182
11183 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11184
11185 2020-01-10 Pedro Alves <palves@redhat.com>
11186
11187 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11188 not -1.
11189
11190 2020-01-10 Pedro Alves <palves@redhat.com>
11191
11192 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11193 ptid to get_last_target_status.
11194 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11195 ptid to get_last_target_status.
11196 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11197 get_last_target_status.
11198 (info_program_command): Don't pass a target_waitstatus to
11199 get_last_target_status.
11200 * infrun.c (init_wait_for_inferior): Use
11201 nullify_last_target_wait_ptid.
11202 (get_last_target_status): Handle nullptr arguments.
11203 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11204 (print_stop_event): Don't pass a ptid to get_last_target_status.
11205 (normal_stop): Don't pass a ptid to get_last_target_status.
11206 * infrun.h (get_last_target_status, set_last_target_status): Move
11207 comments here and update.
11208 (nullify_last_target_wait_ptid): Declare.
11209 * linux-fork.c (fork_load_infrun_state): Remove local extern
11210 declaration of nullify_last_target_wait_ptid.
11211 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11212 to get_last_target_status.
11213
11214 2020-01-10 Pedro Alves <palves@redhat.com>
11215
11216 * gdbthread.h (scoped_restore_current_thread)
11217 <dont_restore, restore, m_dont_restore>: Declare.
11218 * thread.c (thread_alive): Add assertion. Return bool.
11219 (switch_to_thread_if_alive): New.
11220 (prune_threads): Switch inferior/thread.
11221 (print_thread_info_1): Switch thread before calling target methods.
11222 (scoped_restore_current_thread::restore): New, factored out from
11223 ...
11224 (scoped_restore_current_thread::~scoped_restore_current_thread):
11225 ... this.
11226 (scoped_restore_current_thread::scoped_restore_current_thread):
11227 Add assertion.
11228 (thread_apply_all_command, thread_select): Use
11229 switch_to_thread_if_alive.
11230 * infrun.c (proceed, restart_threads, handle_signal_stop)
11231 (switch_back_to_stepped_thread): Switch current thread before
11232 calling target methods.
11233
11234 2020-01-10 Pedro Alves <palves@redhat.com>
11235
11236 * inferior.c (switch_to_inferior_no_thread): New function,
11237 factored out from ...
11238 (inferior_command): ... here.
11239 * inferior.h (switch_to_inferior_no_thread): Declare.
11240 * mi/mi-main.c (run_one_inferior): Use
11241 switch_to_inferior_no_thread.
11242
11243 2020-01-10 Pedro Alves <palves@redhat.com>
11244
11245 * infcmd.c (kill_command): Remove dead code.
11246
11247 2020-01-10 Pedro Alves <palves@redhat.com>
11248
11249 * remote.c (remote_target::mourn_inferior): No longer check
11250 whether the target is running.
11251
11252 2020-01-10 Pedro Alves <palves@redhat.com>
11253
11254 * corelow.c (core_target::has_execution): Change parameter type to
11255 inferior pointer.
11256 * inferior.c (number_of_live_inferiors): Use
11257 inferior::has_execution instead of target_has_execution_1.
11258 * inferior.h (inferior::has_execution): New.
11259 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11260 inferior::has_execution instead of target_has_execution_1.
11261 * process-stratum-target.c
11262 (process_stratum_target::has_execution): Change parameter type to
11263 inferior pointer. Check the inferior's PID instead of
11264 inferior_ptid.
11265 * process-stratum-target.h
11266 (process_stratum_target::has_execution): Change parameter type to
11267 inferior pointer.
11268 * record-full.c (record_full_core_target::has_execution): Change
11269 parameter type to inferior pointer.
11270 * target.c (target_has_execution_1): Change parameter type to
11271 inferior pointer.
11272 (target_has_execution_current): Adjust.
11273 * target.h (target_ops::has_execution): Change parameter type to
11274 inferior pointer.
11275 (target_has_execution_1): Change parameter type to inferior
11276 pointer. Change return type to bool.
11277 * tracefile.h (tracefile_target::has_execution): Change parameter
11278 type to inferior pointer.
11279
11280 2020-01-10 Pedro Alves <palves@redhat.com>
11281
11282 * exceptions.c (print_flush): Remove current_top_target() check.
11283
11284 2020-01-10 Pedro Alves <palves@redhat.com>
11285
11286 * remote.c (show_remote_exec_file): Show the current inferior's
11287 exec-file instead of the command variable's value.
11288
11289 2020-01-10 Pedro Alves <palves@redhat.com>
11290
11291 * record-full.c (record_full_resume_ptid): New global.
11292 (record_full_target::resume): Set it.
11293 (record_full_wait_1): Use record_full_resume_ptid instead of
11294 inferior_ptid.
11295
11296 2020-01-10 Pedro Alves <palves@redhat.com>
11297
11298 * gdbthread.h (scoped_restore_current_thread)
11299 <dont_restore, restore, m_dont_restore>: Declare.
11300 * thread.c (thread_alive): Add assertion. Return bool.
11301 (switch_to_thread_if_alive): New.
11302 (prune_threads): Switch inferior/thread.
11303 (print_thread_info_1): Switch thread before calling target methods.
11304 (scoped_restore_current_thread::restore): New, factored out from
11305 ...
11306 (scoped_restore_current_thread::~scoped_restore_current_thread):
11307 ... this.
11308 (scoped_restore_current_thread::scoped_restore_current_thread):
11309 Add assertion.
11310 (thread_apply_all_command, thread_select): Use
11311 switch_to_thread_if_alive.
11312
11313 2020-01-10 George Barrett <bob@bob131.so>
11314
11315 * stap-probe.c (stap_modify_semaphore): Don't check for null
11316 semaphores.
11317 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11318 for null semaphores.
11319
11320 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11321
11322 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11323 all source windows, and maintain horizontal scroll status while
11324 doing so.
11325
11326 2020-01-09 Tom Tromey <tom@tromey.com>
11327
11328 PR tui/18932:
11329 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11330 update_source_window, not print_source_lines.
11331
11332 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11333
11334 * tui/tui.c (tui_enable): Register tui hooks after calling
11335 tui_display_main.
11336
11337 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11338
11339 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11340
11341 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11342
11343 * thread.c (print_thread_info_1): Fix indentation.
11344
11345 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11346
11347 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11348 unique_xmalloc_ptr outside the if to always free the demangled name.
11349
11350 2020-01-08 Tom Tromey <tromey@adacore.com>
11351
11352 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11353 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11354 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11355 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11356 Remove.
11357 (section_offsets): New typedef.
11358 * symtab.c (fixup_section, get_msymbol_address): Update.
11359 * symmisc.c (dump_msymbols): Update.
11360 * symfile.h (relative_addr_info_to_section_offsets)
11361 (symfile_map_offsets_to_segments): Update.
11362 * symfile.c (build_section_addr_info_from_objfile)
11363 (init_objfile_sect_indices): Update.
11364 (struct place_section_arg): Change type of "offsets".
11365 (place_section): Update.
11366 (relative_addr_info_to_section_offsets): Change type of
11367 "section_offsets". Remove "num_sections" parameter.
11368 (default_symfile_offsets, syms_from_objfile_1)
11369 (set_objfile_default_section_offset): Update.
11370 (reread_symbols): No need to preserve section offsets by hand.
11371 (symfile_map_offsets_to_segments): Change type of "offsets".
11372 * stap-probe.c (relocate_address): Update.
11373 * stabsread.h (process_one_symbol): Update.
11374 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11375 (solib_target_relocate_section_addresses): Update.
11376 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11377 Update.
11378 * solib-frv.c (frv_relocate_main_executable): Update.
11379 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11380 * solib-aix.c (solib_aix_get_section_offsets): Change return
11381 type.
11382 (solib_aix_solib_create_inferior_hook): Update.
11383 * remote.c (remote_target::get_offsets): Update.
11384 * psymtab.c (find_pc_sect_psymtab): Update.
11385 * psympriv.h (struct partial_symbol) <address, text_low,
11386 text_high>: Update.
11387 * objfiles.h (obj_section_offset): Update.
11388 (struct objfile) <section_offsets>: Change type.
11389 <num_sections>: Remove.
11390 (objfile_relocate): Update.
11391 * objfiles.c (entry_point_address_query): Update
11392 (relocate_one_symbol): Change type of "section_offsets".
11393 (objfile_relocate1, objfile_relocate1): Change type of
11394 "new_offsets".
11395 (objfile_rebase1): Update.
11396 * mipsread.c (mipscoff_symfile_read): Update.
11397 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11398 parameter.
11399 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11400 (parse_external, psymtab_to_symtab_1): Update.
11401 * machoread.c (macho_symfile_offsets): Update.
11402 * ia64-tdep.c (ia64_find_unwind_table): Update.
11403 * hppa-tdep.c (read_unwind_info): Update.
11404 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11405 * dwarf2read.c (create_addrmap_from_index)
11406 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11407 (process_psymtab_comp_unit_reader, add_partial_symbol)
11408 (add_partial_subprogram, process_full_comp_unit)
11409 (read_file_scope, read_func_scope, read_lexical_block_scope)
11410 (read_call_site_scope, dwarf2_rnglists_process)
11411 (dwarf2_ranges_process, dwarf2_ranges_read)
11412 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11413 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11414 Update.
11415 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11416 Update.
11417 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11418 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11419 (process_one_symbol): Change type of "section_offsets".
11420 * ctfread.c (get_objfile_text_range): Update.
11421 * coffread.c (coff_symtab_read, enter_linenos)
11422 (process_coff_symbol): Update.
11423 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11424 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11425
11426 2020-01-08 Tom Tromey <tromey@adacore.com>
11427
11428 * dwarf2read.c (parse_macro_definition): Use std::string.
11429 (parse_macro_definition): Likewise.
11430
11431 2020-01-08 Tom Tromey <tromey@adacore.com>
11432
11433 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11434 (ATTR_ALLOC_CHUNK): Remove.
11435
11436 2020-01-08 Tom Tromey <tromey@adacore.com>
11437
11438 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11439
11440 2020-01-08 Tom Tromey <tromey@adacore.com>
11441
11442 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11443 (dwarf2_compute_name, open_dwo_file): Likewise.
11444 (process_enumeration_scope): Use std::vector.
11445 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11446 (partial_die_info::fixup, dwarf2_start_subfile)
11447 (guess_full_die_structure_name, dwarf2_name): Likewise.
11448 (determine_prefix): Update.
11449 (guess_full_die_structure_name): Make return type const.
11450 (partial_die_full_name): Return unique_xmalloc_ptr.
11451 (DW_FIELD_ALLOC_CHUNK): Remove.
11452
11453 2020-01-07 Tom Tromey <tromey@adacore.com>
11454
11455 PR build/24937:
11456 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11457
11458 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11459
11460 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11461
11462 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11463
11464 * stack.c (print_frame_info): Move disassemble_next_line code
11465 inside source_print block.
11466
11467 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11468
11469 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11470 gdb/signals.h, as we are now using native signal symbols.
11471
11472 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11473
11474 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11475 overflow by an early check of content vs threshold.
11476 * tui/tui-source.c (tui_source_window::line_is_displayed):
11477 Likewise.
11478
11479 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11480
11481 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11482
11483 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11484
11485 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11486 export table if no section contains it's RVA.
11487
11488 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11489
11490 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11491
11492 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11493
11494 * source.c (print_source_lines_base): Set last_line_listed.
11495
11496 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11497
11498 * tui/tui-disasm.c: Remove trailing spaces.
11499
11500 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11501 Pedro Alves <palves@redhat.com>
11502
11503 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11504 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11505 (windows_gdb_signal_to_target): New function, uses the above
11506 enumeration to convert GDB internal signal codes to equivalent
11507 Windows codes.
11508 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11509 * windows-nat.c: Include "gdb_wait.h".
11510 (get_windows_debug_event): Extract the fatal exception from the
11511 exit status and convert to the equivalent Posix signal number.
11512 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11513 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11514 * gdbsupport/gdb_wait.c: New file, implements
11515 windows_status_to_termsig.
11516 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11517 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11518
11519 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11520
11521 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11522 show_layout.
11523
11524 2020-01-05 Luis Machado <luis.machado@linaro.org>
11525
11526 * aarch64-linux-nat.c
11527 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11528 and bfd_mach_aarch64.
11529
11530 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11531
11532 * ui-file.c (stdio_file::can_emit_style_escape)
11533 (tee_file::can_emit_style_escape): Ensure style is used also on
11534 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11535 to gdb_stdout.
11536 * main.c (set_gdb_data_directory): Use file style to output the
11537 warning that the given pathname is not a directory.
11538 * top.c (show_history_filename, gdb_safe_append_history)
11539 (show_gdb_datadir): Use file style.
11540
11541 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11542
11543 * solib-target.c (struct lm_info_target):
11544 Change offsets to be a unique_xmalloc_ptr.
11545 (solib_target_relocate_section_addresses): Update.
11546
11547 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11548
11549 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11550
11551 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11552
11553 * MAINTAINERS (Write After Approval): Add myself.
11554
11555 2020-01-02 Luis Machado <luis.machado@linaro.org>
11556
11557 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11558 Cell BE architecture.
11559 * target.h (struct target_ops) <thread_architecture>: Likewise.
11560
11561 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11562
11563 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11564
11565 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11566
11567 * MAINTAINERS (Write After Approval): Add myself.
11568
11569 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11570
11571 * gdbarch.sh: Update copyright year range of generated files.
11572
11573 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11574
11575 Update copyright year range in all GDB files.
11576
11577 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11578
11579 * copyright.py: Convert to Python 3.
11580
11581 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11582
11583 * copyright.py: Adapt after move of gnulib directory from gdb
11584 directory to toplevel directory.
11585
11586 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11587
11588 * copyright.py (main): Exit if run from the wrong directory.
11589
11590 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11591
11592 * top.c (print_gdb_version): Change copyright year to 2020.
11593
11594 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11595
11596 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11597
11598 For older changes see ChangeLog-2019.
11599 \f
11600 Local Variables:
11601 mode: change-log
11602 left-margin: 8
11603 fill-column: 74
11604 version-control: never
11605 coding: utf-8
11606 End:
This page took 0.288457 seconds and 5 git commands to generate.